Advanced_DRM_Player/libs/shaka-player.ui.js

2079 lines
906 KiB
JavaScript
Raw Normal View History

2025-06-19 04:02:44 +02:00
/*
@license
Shaka Player
Copyright 2016 Google LLC
SPDX-License-Identifier: Apache-2.0
*/
(function(){var innerGlobal=typeof window!="undefined"?window:global;var exportTo={};(function(window,global,module){/*
Copyright The Closure Library Authors.
SPDX-License-Identifier: Apache-2.0
*/
var p;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}var ba="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};
function da(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var ea=da(this);function fa(a,b){if(b)a:{var c=ea;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ba(c,a,{configurable:!0,writable:!0,value:b})}}
fa("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}function c(f,g){this.g=f;ba(this,"description",{configurable:!0,writable:!0,value:g})}if(a)return a;c.prototype.toString=function(){return this.g};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
fa("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ea[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ba(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}
2025-06-27 11:02:59 +02:00
function t(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if("number"==typeof a.length)return{next:aa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");}function x(a){if(!(a instanceof Array)){a=t(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ia="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ka;
2025-06-19 04:02:44 +02:00
if("function"==typeof Object.setPrototypeOf)ka=Object.setPrototypeOf;else{var la;a:{var ma={a:!0},na={};try{na.__proto__=ma;la=na.a;break a}catch(a){}la=!1}ka=la?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var oa=ka;
2025-06-27 11:02:59 +02:00
function pa(a,b){a.prototype=ia(b.prototype);a.prototype.constructor=a;if(oa)oa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Kn=b.prototype}function qa(){this.s=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.B=this.i=null}function ra(a){if(a.s)throw new TypeError("Generator is already running");a.s=!0}qa.prototype.u=function(a){this.h=a};
function sa(a,b){a.i={Mi:b,Yi:!0};a.g=a.m||a.j}qa.prototype.return=function(a){this.i={return:a};this.g=this.j};function F(a,b,c){a.g=c;return{value:b}}qa.prototype.A=function(a){this.g=a};function I(a){a.g=0}function ta(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ua(a,b){a.m=0;a.j=b||0}function wa(a,b,c){a.g=b;a.m=c||0}function xa(a,b){a.m=b||0;b=a.i.Mi;a.i=null;return b}function ya(a){a.B=[a.i];a.m=0;a.j=0}
function Ba(a,b){var c=a.B.splice(0)[0];(c=a.i=a.i||c)?c.Yi?a.g=a.m||a.j:void 0!=c.A&&a.j<c.A?(a.g=c.A,a.i=null):a.g=a.j:a.g=b}function Ca(a){this.g=new qa;this.h=a}function Da(a,b){ra(a.g);var c=a.g.l;if(c)return Fa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Ga(a)}
function Fa(a,b,c,d){try{var e=b.call(a.g.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.s=!1,e;var f=e.value}catch(g){return a.g.l=null,sa(a.g,g),Ga(a)}a.g.l=null;d.call(a.g,f);return Ga(a)}function Ga(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.s=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,sa(a.g,c)}a.g.s=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Yi)throw b.Mi;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
2025-06-19 04:02:44 +02:00
function Ha(a){this.next=function(b){ra(a.g);a.g.l?b=Fa(a,a.g.l.next,b,a.g.u):(a.g.u(b),b=Ga(a));return b};this.throw=function(b){ra(a.g);a.g.l?b=Fa(a,a.g.l["throw"],b,a.g.u):(sa(a.g,b),b=Ga(a));return b};this.return=function(b){return Da(a,b)};this[Symbol.iterator]=function(){return this}}function Ia(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())})}
2025-06-27 11:02:59 +02:00
function Q(a){return Ia(new Ha(new Ca(a)))}function Ka(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
2025-06-19 04:02:44 +02:00
fa("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.s=!1;var h=this.j();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.g=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.h=function(g){if(null==this.g){this.g=[];var h=this;this.i(function(){h.l()})}this.g.push(g)};var e=ea.setTimeout;c.prototype.i=function(g){e(g,0)};c.prototype.l=function(){for(;this.g&&this.g.length;){var g=this.g;this.g=[];for(var h=0;h<g.length;++h){var k=
g[h];g[h]=null;try{k()}catch(l){this.j(l)}}}this.g=null};c.prototype.j=function(g){this.i(function(){throw g;})};b.prototype.j=function(){function g(l){return function(m){k||(k=!0,l.call(h,m))}}var h=this,k=!1;return{resolve:g(this.F),reject:g(this.l)}};b.prototype.F=function(g){if(g===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.H(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.D(g):this.m(g)}};
b.prototype.D=function(g){var h=void 0;try{h=g.then}catch(k){this.l(k);return}"function"==typeof h?this.I(h,g):this.m(g)};b.prototype.l=function(g){this.u(2,g)};b.prototype.m=function(g){this.u(1,g)};b.prototype.u=function(g,h){if(0!=this.h)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.h);this.h=g;this.i=h;2===this.h&&this.G();this.B()};b.prototype.G=function(){var g=this;e(function(){if(g.C()){var h=ea.console;"undefined"!==typeof h&&h.error(g.i)}},1)};b.prototype.C=
function(){if(this.s)return!1;var g=ea.CustomEvent,h=ea.Event,k=ea.dispatchEvent;if("undefined"===typeof k)return!0;"function"===typeof g?g=new g("unhandledrejection",{cancelable:!0}):"function"===typeof h?g=new h("unhandledrejection",{cancelable:!0}):(g=ea.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.i;return k(g)};b.prototype.B=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;
2025-06-27 11:02:59 +02:00
b.prototype.H=function(g){var h=this.j();g.cf(h.resolve,h.reject)};b.prototype.I=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(q,r){return"function"==typeof q?function(u){try{l(q(u))}catch(w){m(w)}}:r}var l,m,n=new b(function(q,r){l=q;m=r});this.cf(k(g,l),k(h,m));return n};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.cf=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.s=!0};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=t(g),m=l.next();!m.done;m=l.next())d(m.value).cf(h,k)})};b.all=function(g){var h=t(g),k=h.next();return k.done?d([]):new b(function(l,m){function n(u){return function(w){q[u]=w;r--;0==r&&l(q)}}var q=[],r=0;do q.push(void 0),r++,d(k.value).cf(n(q.length-1),m),k=h.next();
2025-06-19 04:02:44 +02:00
while(!k.done)})};return b});function La(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
2025-06-27 11:02:59 +02:00
fa("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=t(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(k){var l=typeof k;return"object"===l&&null!==k||"function"===l}function e(k){if(!La(k,g)){var l=new c;ba(k,g,{value:l})}}function f(k){var l=Object[k];l&&(Object[k]=function(m){if(m instanceof c)return m;Object.isExtensible(m)&&e(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}),
2025-06-19 04:02:44 +02:00
m=new a([[k,2],[l,3]]);if(2!=m.get(k)||3!=m.get(l))return!1;m.delete(k);m.set(l,4);return!m.has(k)&&4==m.get(l)}catch(n){return!1}}())return a;var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var h=0;b.prototype.set=function(k,l){if(!d(k))throw Error("Invalid WeakMap key");e(k);if(!La(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&La(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&La(k,
g)&&La(k[g],this.g)};b.prototype.delete=function(k){return d(k)&&La(k,g)&&La(k[g],this.g)?delete k[g][this.g]:!1};return b});
2025-06-27 11:02:59 +02:00
fa("Map",function(a){function b(){var h={};return h.Ac=h.next=h.head=h}function c(h,k){var l=h[1];return ha(function(){if(l){for(;l.head!=h[1];)l=l.Ac;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[0][l];if(m&&La(h[0],l))for(h=0;h<m.length;h++){var n=m[h];if(k!==k&&n.key!==n.key||k===n.key)return{id:l,list:m,index:h,entry:n}}return{id:l,
list:m,index:-1,entry:void 0}}function e(h){this[0]={};this[1]=b();this.size=0;if(h){h=t(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a(t([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var l=k.entries(),m=l.next();if(m.done||m.value[0]!=h||"s"!=m.value[1])return!1;m=l.next();return m.done||4!=
m.value[0].x||"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[0][l.id]=[]);l.entry?l.entry.value=k:(l.entry={next:this[1],Ac:this[1].Ac,head:this[1],key:h,value:k},l.list.push(l.entry),this[1].Ac.next=l.entry,this[1].Ac=l.entry,this.size++);return this};e.prototype.delete=function(h){h=d(this,h);return h.entry&&h.list?(h.list.splice(h.index,1),h.list.length||delete this[0][h.id],h.entry.Ac.next=
h.entry.next,h.entry.next.Ac=h.entry.Ac,h.entry.head=null,this.size--,!0):!1};e.prototype.clear=function(){this[0]={};this[1]=this[1].Ac=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).entry};e.prototype.get=function(h){return(h=d(this,h).entry)&&h.value};e.prototype.entries=function(){return c(this,function(h){return[h.key,h.value]})};e.prototype.keys=function(){return c(this,function(h){return h.key})};e.prototype.values=function(){return c(this,function(h){return h.value})};e.prototype.forEach=
2025-06-19 04:02:44 +02:00
function(h,k){for(var l=this.entries(),m;!(m=l.next()).done;)m=m.value,h.call(k,m[1],m[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var g=0;return e});function Oa(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 Oa(this,function(b){return b})}});
2025-06-27 11:02:59 +02:00
fa("Set",function(a){function b(c){this.g=new Map;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(t([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||
2025-06-19 04:02:44 +02:00
f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=
b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});fa("Array.prototype.values",function(a){return a?a:function(){return Oa(this,function(b,c){return c})}});
fa("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});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;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});function Qa(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!==Qa(this,b,"includes").indexOf(b,c||0)}});fa("String.fromCodePoint",function(a){return a?a:function(b){for(var c="",d=0;d<arguments.length;d++){var e=Number(arguments[d]);if(0>e||1114111<e||e!==Math.floor(e))throw new RangeError("invalid_code_point "+e);65535>=e?c+=String.fromCharCode(e):(e-=65536,c+=String.fromCharCode(e>>>10&1023|55296),c+=String.fromCharCode(e&1023|56320))}return c}});
2025-06-27 11:02:59 +02:00
function Ra(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{Vi:e,v:f}}return{Vi:-1,v:void 0}}fa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ra(this,b,c).Vi}});
fa("WeakSet",function(a){function b(c){this.g=new WeakMap;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;b.prototype.add=function(c){this.g.set(c,!0);return this};b.prototype.has=function(c){return this.g.has(c)};b.prototype.delete=function(c){return this.g.delete(c)};return b});
2025-06-19 04:02:44 +02:00
fa("Array.prototype.find",function(a){return a?a:function(b,c){return Ra(this,b,c).v}});fa("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Qa(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}});fa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)La(b,d)&&c.push([d,b[d]]);return c}});
var Sa="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)La(d,e)&&(a[e]=d[e])}return a};fa("Object.assign",function(a){return a||Sa});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 Oa(this,function(b,c){return[b,c]})}});fa("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});fa("String.prototype.repeat",function(a){return a?a:function(b){var c=Qa(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});fa("Number.EPSILON",function(){return Math.pow(2,-52)});
fa("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});fa("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});fa("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)La(b,d)&&c.push(b[d]);return c}});fa("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
fa("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Qa(this,b,"endsWith");void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});fa("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});function Ta(a){a=Math.trunc(a)||0;0>a&&(a+=this.length);if(!(0>a||a>=this.length))return this[a]}
fa("Array.prototype.at",function(a){return a?a:Ta});function Va(a){return a?a:Ta}fa("Int8Array.prototype.at",Va);fa("Uint8Array.prototype.at",Va);fa("Uint8ClampedArray.prototype.at",Va);fa("Int16Array.prototype.at",Va);fa("Uint16Array.prototype.at",Va);fa("Int32Array.prototype.at",Va);fa("Uint32Array.prototype.at",Va);fa("Float32Array.prototype.at",Va);fa("Float64Array.prototype.at",Va);fa("String.prototype.at",function(a){return a?a:Ta});var Wa=this||self;
function S(a,b){a=a.split(".");var c=Wa;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};/*
@license
Shaka Player
Copyright 2016 Google LLC
SPDX-License-Identifier: Apache-2.0
*/
2025-06-27 11:02:59 +02:00
function U(a,b){if(b)if(b instanceof Map)for(var c=t(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1}
2025-06-19 04:02:44 +02:00
function Xa(a){var b=new U(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}U.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};U.prototype.stopImmediatePropagation=function(){this.g=!0};U.prototype.stopPropagation=function(){};S("shaka.util.FakeEvent",U);
2025-06-27 11:02:59 +02:00
var Ya={wm:"abrstatuschanged",xm:"adaptation",ym:"audiotrackchanged",zm:"audiotrackschanged",Am:"boundarycrossed",Bm:"buffering",Cm:"canupdatestarttime",Dm:"complete",Em:"currentitemchanged",Fm:"downloadcompleted",Gm:"downloadfailed",Hm:"downloadheadersreceived",Im:"drmsessionupdate",Km:"emsg",Qm:"itemsinserted",Rm:"itemsremoved",jn:"prft",Error:"error",Lm:"expirationupdated",Mm:"firstquartile",Nm:"gapjumped",Sm:"keystatuschanged",Wm:"loaded",Xm:"loading",Zm:"manifestparsed",$m:"manifestupdated",
an:"mediaqualitychanged",cn:"mediasourcerecovered",dn:"metadataadded",Metadata:"metadata",fn:"midpoint",gn:"nospatialvideoinfo",hn:"onstatechange",ln:"ratechange",on:"segmentappended",pn:"sessiondata",qn:"spatialvideoinfo",rn:"stalldetected",sn:"started",tn:"statechanged",un:"streaming",vn:"textchanged",wn:"texttrackvisibility",xn:"thirdquartile",yn:"timelineregionadded",zn:"timelineregionenter",An:"timelineregionexit",Bn:"trackschanged",Dn:"unloading",Fn:"variantchanged"};function Za(){}function $a(){}function ab(){}function bb(a){var b=Ka.apply(1,arguments);cb.has(a)||(cb.add(a),ab.apply(Za,x(b)))}function db(){}function gb(){}function hb(){}var cb=new Set;
window.console&&((new Map).set(1,function(){return console.error.apply(console,x(Ka.apply(0,arguments)))}).set(2,function(){return console.warn.apply(console,x(Ka.apply(0,arguments)))}).set(3,function(){return console.info.apply(console,x(Ka.apply(0,arguments)))}).set(4,function(){return console.log.apply(console,x(Ka.apply(0,arguments)))}).set(5,function(){return console.debug.apply(console,x(Ka.apply(0,arguments)))}).set(6,function(){return console.debug.apply(console,x(Ka.apply(0,arguments)))}),
ab=function(){return console.warn.apply(console,x(Ka.apply(0,arguments)))},$a=function(){console.error.apply(console,x(Ka.apply(0,arguments)))});function ib(){this.g=new Map}p=ib.prototype;p.push=function(a,b){this.g.has(a)?this.g.get(a).push(b):this.g.set(a,[b])};p.get=function(a){return this.g.has(a)?this.g.get(a).slice():null};p.remove=function(a,b){if(this.g.has(a)){var c=this.g.get(a).filter(function(d){return d!=b});this.g.set(a,c);c.length||this.g.delete(a)}};p.forEach=function(a){this.g.forEach(function(b,c){a(c,b)})};p.size=function(){return this.g.size};p.keys=function(){return Array.from(this.g.keys())};function jb(){this.fb=new ib;this.Qe=this}jb.prototype.addEventListener=function(a,b){this.fb&&this.fb.push(a,b)};jb.prototype.removeEventListener=function(a,b){this.fb&&this.fb.remove(a,b)};jb.prototype.dispatchEvent=function(a){if(!this.fb)return!0;var b=this.fb.get(a.type)||[],c=this.fb.get("All");c&&(b=b.concat(c));b=t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.Qe;a.currentTarget=this.Qe;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
jb.prototype.release=function(){this.fb=null};function kb(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function lb(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0}function mb(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(b(c.value))return!0;return!1}function ob(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b(d)&&c.push(d);return c};/*
2025-06-19 04:02:44 +02:00
@license
Copyright 2008 The Closure Library Authors
SPDX-License-Identifier: Apache-2.0
*/
var pb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");/*
@license
Copyright 2006 The Closure Library Authors
SPDX-License-Identifier: Apache-2.0
*/
2025-06-27 11:02:59 +02:00
function qb(a){var b;a instanceof qb?(sb(this,a.hc),this.rd=a.rd,tb(this,a.Gb),ub(this,a.Id),this.ub=a.ub,vb(this,a.g.clone()),this.Yc=a.Yc):a&&(b=String(a).match(pb))?(sb(this,b[1]||"",!0),this.rd=xb(b[2]||""),tb(this,b[3]||"",!0),ub(this,b[4]),this.ub=xb(b[5]||"",!0),vb(this,b[6]||"",!0),this.Yc=xb(b[7]||"")):this.g=new yb(null)}p=qb.prototype;p.hc="";p.rd="";p.Gb="";p.Id=null;p.ub="";p.Yc="";
p.toString=function(){var a=[],b=this.hc;b&&a.push(zb(b,Ab,!0),":");if(b=this.Gb){a.push("//");var c=this.rd;c&&a.push(zb(c,Ab,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Id;null!=b&&a.push(":",String(b))}if(b=this.ub)this.Gb&&"/"!=b.charAt(0)&&a.push("/"),a.push(zb(b,"/"==b.charAt(0)?Bb:Cb,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Yc)&&a.push("#",zb(b,Db));return a.join("")};
p.resolve=function(a){var b=this.clone();"data"===b.hc&&(b=new qb);var c=!!a.hc;c?sb(b,a.hc):c=!!a.rd;c?b.rd=a.rd:c=!!a.Gb;c?tb(b,a.Gb):c=null!=a.Id;var d=a.ub;if(c)ub(b,a.Id);else if(c=!!a.ub){if("/"!=d.charAt(0))if(this.Gb&&!this.ub)d="/"+d;else{var e=b.ub.lastIndexOf("/");-1!=e&&(d=b.ub.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(""):".."==
h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.ub=d:c=""!==a.g.toString();c?vb(b,a.g.clone()):c=!!a.Yc;c&&(b.Yc=a.Yc);return b};p.clone=function(){return new qb(this)};function sb(a,b,c){a.hc=c?xb(b,!0):b;a.hc&&(a.hc=a.hc.replace(/:$/,""))}function tb(a,b,c){a.Gb=c?xb(b,!0):b}function ub(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Id=b}else a.Id=null}
function vb(a,b,c){b instanceof yb?a.g=b:(c||(b=zb(b,Eb)),a.g=new yb(b))}function xb(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function zb(a,b,c){return null!=a?(a=encodeURI(a).replace(b,Fb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Fb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Ab=/[#\/\?@]/g,Cb=/[#\?:]/g,Bb=/[#\?]/g,Eb=/[#\?@]/g,Db=/#/g;function yb(a){this.g=a||null}
function Gb(a){if(!a.kb&&(a.kb=new Map,a.Xd=0,a.g))for(var b=a.g.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}}p=yb.prototype;p.kb=null;p.Xd=null;function Hb(a){Gb(a);return a.Xd}p.add=function(a,b){Gb(this);this.g=null;var c=this.kb.has(a)?this.kb.get(a):null;c||this.kb.set(a,c=[]);c.push(b);this.Xd++;return this};
p.set=function(a,b){Gb(this);this.g=null;this.kb.has(a)?this.kb.set(a,[b]):this.add(a,b);return this};p.get=function(a){Gb(this);return this.kb.get(a)||[]};p.toString=function(){if(this.g)return this.g;if(!this.kb||!this.kb.size)return"";for(var a=[],b=t(this.kb.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=encodeURIComponent(d);d=this.kb.get(d);for(var e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}}return this.g=a.join("&")};
p.clone=function(){var a=new yb;a.g=this.g;if(this.kb){for(var b=new Map,c=t(this.kb),d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;b.set(d,e.concat())}a.kb=b;a.Xd=this.Xd}return a};function Ib(){}function Jb(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if((ArrayBuffer.isView(a)?a.buffer:a)==(ArrayBuffer.isView(b)?b.buffer:b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;var c=Kb(a);b=Kb(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function Lb(a){return ArrayBuffer.isView(a)?0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer:a}
2025-06-19 04:02:44 +02:00
function Kb(a,b,c){c=void 0===c?Infinity:c;return Mb(a,void 0===b?0:b,c,Uint8Array)}function Nb(a,b,c){c=void 0===c?Infinity:c;return Mb(a,void 0===b?0:b,c,Uint16Array)}function Ob(a,b,c){c=void 0===c?Infinity:c;return Mb(a,void 0===b?0:b,c,DataView)}
2025-06-27 11:02:59 +02:00
function Mb(a,b,c,d){var e=ArrayBuffer.isView(a)?a.buffer:a,f=1;"BYTES_PER_ELEMENT"in d&&(f=d.BYTES_PER_ELEMENT);var g=((a.byteOffset||0)+a.byteLength)/f;a=Math.floor(Math.max(0,Math.min(((a.byteOffset||0)+b)/f,g)));return new d(e,a,Math.floor(Math.min(a+Math.max(c,0),g))-a)}S("shaka.util.BufferUtils",Ib);Ib.toDataView=Ob;Ib.toUint16=Nb;Ib.toUint8=Kb;Ib.toArrayBuffer=Lb;Ib.equal=Jb;function V(a,b,c){var d=Ka.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1;this.message="Shaka Error "+this.code;if(Pb)try{throw Error(this.message||"Shaka Error");}catch(e){this.stack=e.stack}}V.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};S("shaka.util.Error",V);var Pb=!0;V.Severity={RECOVERABLE:1,CRITICAL:2};V.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
2025-06-19 04:02:44 +02:00
V.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,SEGMENT_MISSING:1011,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,
CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,UNSUPPORTED_EXTERNAL_THUMBNAILS_URI:2017,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,
WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,MSS_MISSING_DATA_FOR_TRANSMUXING:3020,MSS_TRANSMUXING_FAILED:3022,TRANSMUXING_NO_VIDEO_DATA:3023,STREAMING_NOT_ALLOWED:3024,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,
DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,RESTRICTIONS_CANNOT_BE_MET:4012,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,
DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,HLS_MSE_ENCRYPTED_MP2T_NOT_SUPPORTED:4040,HLS_MSE_ENCRYPTED_LEGACY_APPLE_MEDIA_KEYS_NOT_SUPPORTED:4041,NO_WEB_CRYPTO_API:4042,CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_LIVE_STREAM:4045,MSS_INVALID_XML:4046,MSS_LIVE_CONTENT_NOT_SUPPORTED:4047,AES_128_INVALID_IV_LENGTH:4048,
AES_128_INVALID_KEY_LENGTH:4049,DASH_CONFLICTING_AES_128:4050,DASH_UNSUPPORTED_AES_128:4051,DASH_INVALID_PATCH:4052,HLS_EMPTY_MEDIA_PLAYLIST:4053,DASH_MSE_ENCRYPTED_LEGACY_APPLE_MEDIA_KEYS_NOT_SUPPORTED:4054,CANNOT_ADD_EXTERNAL_CHAPTERS_TO_LIVE_STREAM:4054,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,
LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,MIN_HDCP_VERSION_NOT_MATCH:6018,ERROR_CHECKING_HDCP_VERSION:6019,MISSING_EME_SUPPORT:6020,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,SRC_EQUALS_PRELOAD_NOT_SUPPORTED:7005,
PRELOAD_DESTROYED:7006,QUEUE_INDEX_OUT_OF_BOUNDS:7007,CAST_API_UNAVAILABLE:8E3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9E3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,
KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,INDEXED_DB_INIT_TIMED_OUT:9017,CS_IMA_SDK_MISSING:1E4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004,MT_AD_MANAGER_NOT_INITIALIZED:10005,INTERSTITIAL_AD_MANAGER_NOT_INITIALIZED:10006,VAST_INVALID_XML:10007};function Qb(a){this.h=a;this.g=void 0}Qb.prototype.value=function(){void 0===this.g&&(this.g=this.h());return this.g};/*
@license
Shaka Player
Copyright 2025 Google LLC
SPDX-License-Identifier: Apache-2.0
*/
function Rb(){return Sb.value()}var Tb=null,Ub=null,Sb=new Qb(function(){var a=void 0;Tb&&(a=Tb());!a&&Ub&&(a=Ub());return a});function Vb(){}
2025-06-27 11:02:59 +02:00
function Wb(a){if(!a)return"";a=Kb(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!Rb().$h())return a=(new TextDecoder).decode(a),a.includes("\ufffd")&&$a('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),a;for(var b="",c=0;c<a.length;++c){var d=65533;0==(a[c]&128)?d=a[c]:a.length>=c+2&&192==(a[c]&224)&&128==(a[c+1]&192)?(d=(a[c]&31)<<6|a[c+1]&63,c+=1):a.length>=c+3&&224==(a[c]&240)&&128==(a[c+1]&192)&&
2025-06-19 04:02:44 +02:00
128==(a[c+2]&192)?(d=(a[c]&15)<<12|(a[c+1]&63)<<6|a[c+2]&63,c+=2):a.length>=c+4&&240==(a[c]&241)&&128==(a[c+1]&192)&&128==(a[c+2]&192)&&128==(a[c+3]&192)&&(d=(a[c]&7)<<18|(a[c+1]&63)<<12|(a[c+2]&63)<<6|a[c+3]&63,c+=3);if(65535>=d)b+=String.fromCharCode(d);else{d-=65536;var e=d&1023;b+=String.fromCharCode(55296+(d>>10));b+=String.fromCharCode(56320+e)}}return b}
function Xb(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new V(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=Ob(a);for(var e=0;e<c;e++)d[e]=a.getUint16(2*e,b);return Yb(d)}
function Zb(a){function b(d){return c.byteLength<=d||9<=c[d]&&126>=c[d]}if(!a)return"";var c=Kb(a);if(239==c[0]&&187==c[1]&&191==c[2])return Wb(c);if(254==c[0]&&255==c[1])return Xb(c.subarray(2),!1);if(255==c[0]&&254==c[1])return Xb(c.subarray(2),!0);if(0==c[0]&&0==c[2])return Xb(a,!1);if(0==c[1]&&0==c[3])return Xb(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return Wb(a);throw new V(2,2,2003);}
2025-06-27 11:02:59 +02:00
function $b(a){if(window.TextEncoder&&!Rb().$h()){var b=new TextEncoder;return Lb(b.encode(a))}a=encodeURIComponent(a);a=unescape(a);b=new Uint8Array(a.length);for(var c=0;c<a.length;c++)b[c]=a[c].charCodeAt(0);return Lb(b)}function ac(a,b){for(var c=new ArrayBuffer(2*a.length),d=new DataView(c),e=0;e<a.length;++e)d.setUint16(2*e,a.charCodeAt(e),b);return c}function Yb(a){return bc.value()(a)}
2025-06-19 04:02:44 +02:00
function cc(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&nbsp;":"\u00a0","&lrm;":"\u200e","&rlm;":"\u200f"},c=/&(?:amp|lt|gt|quot|apos|nbsp|lrm|rlm|#[xX]?[0-9a-fA-F]+);/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return"#"==e[1]?(e="x"==e[2]||"X"==e[2]?parseInt(e.substring(3),16):parseInt(e.substring(2),10),0<=e&&1114111>=e?String.fromCodePoint(e):""):b[e]||"'"}):a||""}S("shaka.util.StringUtils",Vb);Vb.resetFromCharCode=function(){bc.g=void 0};
2025-06-27 11:02:59 +02:00
Vb.toUTF16=ac;Vb.toUTF8=$b;Vb.fromBytesAutoDetect=Zb;Vb.fromUTF16=Xb;Vb.fromUTF8=Wb;var bc=new Qb(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={Qc:65536};0<b.Qc;b={Qc:b.Qc},b.Qc/=2)if(a(b.Qc))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.Qc)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.Qc));return e}}(b);return null});function dc(){}function ec(a){a=Yb(Kb(a));return btoa(a)}function gc(a,b){b=void 0==b?!0:b;a=ec(a).replace(/\+/g,"-").replace(/\//g,"_");return b?a:a.replace(/[=]*$/,"")}function hc(a){a=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b}function ic(a){for(var b=a.length/2,c=new Uint8Array(b),d=0;d<b;d++)c[d]=window.parseInt(a.substr(2*d,2),16);return c}
function jc(a){var b=Kb(a);a="";b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c=c.toString(16),1==c.length&&(c="0"+c),a+=c;return a}function kc(){for(var a=Ka.apply(0,arguments),b=0,c=0;c<a.length;++c)b+=a[c].byteLength;b=new Uint8Array(b);for(var d=c=0;d<a.length;++d){var e=a[d];ArrayBuffer.isView(e)&&1===e.BYTES_PER_ELEMENT?b.set(e,c):b.set(Kb(e),c);c+=e.byteLength}return b}S("shaka.util.Uint8ArrayUtils",dc);dc.concat=kc;dc.toHex=jc;dc.fromHex=ic;dc.fromBase64=hc;dc.toBase64=gc;
dc.toStandardBase64=ec;function lc(a,b,c){c=void 0===c?"":c;if(0==b.length)return a;if(1==a.length&&1==b.length){var d=new qb(a[0]);b=new qb(b[0]);b=d.resolve(b);c&&vb(b,c);return[b.toString()]}b=b.map(function(h){return new qb(h)});d=[];a=t(a);for(var e=a.next();!e.done;e=a.next()){e=new qb(e.value);for(var f=t(b),g=f.next();!g.done;g=f.next())g=e.resolve(g.value),c&&vb(g,c),d.push(g.toString())}return d}
2025-06-19 04:02:44 +02:00
function mc(a,b,c,d){a={keySystem:a,encryptionScheme:b,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:c||[],keyIds:new Set};d&&(a.keySystemUris=new Set([d]));return a}
function nc(a,b){b=void 0===b?"cenc":b;var c=[],d=[],e=[];a.forEach(function(g,h){var k=h;22!=k.length&&(k=gc(ic(h),!1));var l=g;22!=l.length&&(l=gc(ic(g),!1));g={kty:"oct",kid:k,k:l};c.push(g);d.push(g.kid);e.push(h)});a=JSON.stringify({keys:c});var f=JSON.stringify({kids:d});f=[{initData:Kb($b(f)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",encryptionScheme:b,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,
2025-06-27 11:02:59 +02:00
audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:f,keyIds:new Set(e)}}function oc(a,b){if(1==b.length)return b[0];a=pc(a,b);if(null!=a)return a;throw new V(2,4,4025,b);}function pc(a,b){var c=qc.get(a);c=t(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==sc?"":null}
function tc(a,b){var c=[];a=qc.get(a);a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())f=f.value,d.test(f.trim())&&c.push(f.trim())}return c}
var sc="text",uc={Ea:"video",ma:"audio",gb:sc,qg:"image",um:"application"},vc=1/15,qc=(new Map).set("audio",[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4/,/^dts[cex]$/,/^iamf/,/^mhm[12]/,/^ac3$/,/^eac3$/,/^apac$/]).set("video",[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/,/^dva/,/^dav/]).set("text",[/^vtt$/,/^wvtt/,/^stpp/]);function wc(){}function xc(a,b){a=yc(a);b=yc(b);return a.split("-")[0]==b.split("-")[0]}function zc(a,b){a=yc(a);b=yc(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length}function Ac(a,b){a=yc(a);b=yc(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[0]}
function yc(a){a=t(a.split("-x-"));var b=a.next().value;b=void 0===b?"":b;a=a.next().value;a=void 0===a?"":a;var c=t(b.split("-"));b=c.next().value;b=void 0===b?"":b;c=c.next().value;c=void 0===c?"":c;a=a?"x-"+a:"";b=b.toLowerCase();b=Bc.get(b)||b;c=c.toUpperCase();return(c?b+"-"+c:b)+(a?"-"+a:"")}function Cc(a,b){var c=Dc(a),d=Dc(b);return a!=c&&b!=d&&c==d}function Ec(a,b){a=yc(a);b=yc(b);return b==a?4:zc(b,a)?3:Ac(b,a)?2:zc(a,b)?1:0}
2025-06-19 04:02:44 +02:00
function Dc(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=Bc.get(a)||a}function Fc(a){return a.language?yc(a.language):a.audio&&a.audio.language?yc(a.audio.language):a.video&&a.video.language?yc(a.video.language):"und"}
2025-06-27 11:02:59 +02:00
function Gc(a,b){a=yc(a);var c=new Set;b=t(b);for(var d=b.next();!d.done;d=b.next())c.add(yc(d.value));b=t(c);for(d=b.next();!d.done;d=b.next())if(d=d.value,d==a)return d;b=t(c);for(d=b.next();!d.done;d=b.next())if(d=d.value,zc(d,a))return d;b=t(c);for(d=b.next();!d.done;d=b.next())if(d=d.value,Ac(d,a))return d;c=t(c);for(b=c.next();!b.done;b=c.next())if(b=b.value,zc(a,b))return b;return null}S("shaka.util.LanguageUtils",wc);wc.findClosestLocale=Gc;wc.getLocaleForVariant=Fc;
2025-06-19 04:02:44 +02:00
wc.getLocaleForText=function(a){return yc(a.language||"und")};wc.getBase=Dc;wc.relatedness=Ec;wc.areSiblings=Cc;wc.normalize=yc;wc.isSiblingOf=Ac;wc.isParentOf=zc;wc.areLanguageCompatible=xc;wc.areLocaleCompatible=function(a,b){a=yc(a);b=yc(b);return a==b};
var Bc=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze",
"cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice",
"is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao",
"mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san",
"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",
"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Hc(a){jb.call(this);this.j=yc(a);this.i=new Map;this.g=new Set;this.h=new Map}pa(Hc,jb);p=Hc.prototype;p.release=function(){jb.prototype.release.call(this)};
2025-06-27 11:02:59 +02:00
p.Di=function(a){var b=this;this.g.clear();a=t(a);for(var c=a.next();!c.done;c=a.next())this.g.add(yc(c.value));Ic(this);a=ob(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new U("unknown-locales",(new Map).set("locales",a)));a=ob(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new U("locale-changed",a))};
p.Va=function(a,b,c){a=yc(a);void 0===c&&(c=Jc);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Jc||d.set(f,e)});this.h.set(a,d);Ic(this);this.dispatchEvent(new U("locale-updated"));return this};p.Zl=function(a){for(var b=t(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};p.resolve=function(a){var b=this.i.get(a);if(b)return b;a=(new Map).set("locales",Array.from(this.g)).set("missing",a);this.dispatchEvent(new U("unknown-localization",a));return""};
p.Dk=function(){return this.g};
function Ic(a){for(var b=a.h,c=a.j,d=a.g,e=new Set,f=t(d),g=f.next(),h={};!g.done;h={oe:void 0},g=f.next()){h.oe=g.value;e.add(h.oe);e.add(Dc(h.oe));g=ob(b.keys(),function(l){return function(m){return Cc(m,l.oe)}}(h));g.sort();g=t(g);for(var k=g.next();!k.done;k=g.next())e.add(k.value);h=ob(b.keys(),function(l){return function(m){return Dc(m)==l.oe}}(h));h.sort();h=t(h);for(g=h.next();!g.done;g=h.next())e.add(g.value)}e.add(c);c=[];e=t(e);for(f=e.next();!f.done;f=e.next())(f=b.get(f.value))&&c.push(f);
c.reverse();a.i.clear();b=t(c);for(e=b.next();!e.done;e=b.next())e.value.forEach(function(l,m){a.i.set(m,l)});b=a.i.keys();e=new Set;c=t(a.g);for(f=c.next();!f.done;f=c.next())f=a.h.get(f.value)||new Map,Kc(f,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new U("missing-localizations",d)))}function Kc(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}S("shaka.ui.Localization",Hc);Hc.prototype.getCurrentLocales=Hc.prototype.Dk;
Hc.prototype.resolve=Hc.prototype.resolve;Hc.prototype.resolveDictionary=Hc.prototype.Zl;Hc.prototype.insert=Hc.prototype.Va;Hc.prototype.changeLocale=Hc.prototype.Di;Hc.prototype.release=Hc.prototype.release;var Jc=1;Hc.ConflictResolution={USE_OLD:0,USE_NEW:Jc};Hc.UNKNOWN_LOCALES="unknown-locales";Hc.UNKNOWN_LOCALIZATION="unknown-localization";Hc.MISSING_LOCALIZATIONS="missing-localizations";Hc.LOCALE_CHANGED="locale-changed";Hc.LOCALE_UPDATED="locale-updated";function Lc(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}Lc.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a)};function Mc(a){return a.h/(1-Math.pow(a.g,a.i))};function Nc(){this.h=new Lc(2);this.j=new Lc(5);this.g=0;this.i=128E3;this.l=16E3}Nc.prototype.configure=function(a){this.i=a.minTotalBytes;this.l=a.minBytes;this.h.g=Math.exp(Math.log(.5)/a.fastHalfLife);this.j.g=Math.exp(Math.log(.5)/a.slowHalfLife)};Nc.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c)}};Nc.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(Mc(this.h),Mc(this.j))};function Oc(){this.g=new ib}p=Oc.prototype;p.release=function(){this.Sa();this.g=null};p.o=function(a,b,c,d){this.g&&(a=new Pc(a,b,c,d),this.g.push(b,a))};p.qa=function(a,b,c,d){function e(g){f.Da(a,b,e);c(g)}var f=this;this.o(a,b,e,d)};p.Da=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.Da(),this.g.remove(b,e))}};
p.Sa=function(){if(this.g){for(var a=[],b=t(this.g.g.values()),c=b.next();!c.done;c=b.next())a.push.apply(a,x(c.value));a=t(a);for(b=a.next();!b.done;b=a.next())b.value.Da();this.g.g.clear()}};S("shaka.util.EventManager",Oc);Oc.prototype.removeAll=Oc.prototype.Sa;Oc.prototype.unlisten=Oc.prototype.Da;Oc.prototype.listenOnce=Oc.prototype.qa;Oc.prototype.listen=Oc.prototype.o;Oc.prototype.release=Oc.prototype.release;
function Pc(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=Qc(a,d);this.target.addEventListener(b,c,this.g)}Pc.prototype.Da=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function Qc(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 Rc(a)?b:b.capture||!1}
2025-06-19 04:02:44 +02:00
function Rc(a){var b=Sc;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}Sc=b}return b||!1}var Sc=void 0;S("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});function Tc(a,b){this.g=a;this.h=b}Tc.prototype.toString=function(){return"v"+this.g+"."+this.h};function Uc(a,b){var c=new Tc(5,0),d=Vc,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function Wc(a,b,c,d){ab([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Xc(a,b,c,d){$a([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(" "))}var Vc=null;function Yc(a,b,c,d){this.g=null;this.l=a;this.i=b;this.m=c;this.s=d;this.j=!1;a:{"undefined"===typeof libDPIModule&&ab("Could not find LCEVC Library dependencies on this page");if("undefined"!==typeof LCEVCdec)this.h=LCEVCdec;else if("undefined"!==typeof LcevcDil)this.h=LcevcDil,this.j=!0,Uc("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{ab("Could not find LCEVC Library on this page");a=!1;break a}"undefined"===typeof this.h.SupportObject?(ab("Could not find LCEVC Library on this page"),
a=!1):(this.h.SupportObject.SupportStatus||ab(this.h.SupportObject.SupportError),a="undefined"!==typeof this.h&&"undefined"!==typeof libDPIModule&&this.i instanceof HTMLCanvasElement&&this.h.SupportObject.SupportStatus)}a&&!this.g&&this.h.SupportObject.webGLSupport(this.i)&&(this.i.classList.remove("shaka-hidden"),this.g=this.j?new this.h.LcevcDil(this.l,this.i,this.m):new this.h.LCEVCdec(this.l,this.i,this.m))}
2025-06-27 11:02:59 +02:00
function Zc(a,b,c,d){"video"!==d.type||a.s&&!d.baseOriginalId||a.g&&a.g.appendBuffer(b,"video",d.id,-c,!a.s)}function $c(a){a.g&&a.i.classList.add("shaka-hidden")}Yc.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function ad(a){return a&&"undefined"!==typeof LCEVCdec?"lvc1"==a.codecs:!1}S("shaka.lcevc.Dec",Yc);Yc.prototype.release=Yc.prototype.release;function bd(a){if(cd.has(a))return cd.get(a);var b=window.ManagedMediaSource||window.MediaSource;return b?(b=b.isTypeSupported(a),cd.set(a,b),b):!1}function dd(){var a=window.ManagedSourceBuffer||window.SourceBuffer;return!!a&&!!a.prototype&&!!a.prototype.changeType}function ed(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.prototype?!!a.prototype.setLiveSeekableRange&&!!a.prototype.clearLiveSeekableRange:!1}var cd=new Map;function fd(){}fd.prototype.extract=function(){};fd.prototype.decode=function(){return[]};fd.prototype.clear=function(){};fd.prototype.getStreams=function(){return[]};function gd(){}gd.prototype.init=function(){};gd.prototype.parse=function(){return[]};function hd(){}p=hd.prototype;p.init=function(){};p.Of=function(){};p.Sd=function(){};p.remove=function(){};p.rg=function(){};S("shaka.media.IClosedCaptionParser",hd);function id(a){this.h=new Map;this.i=0;this.j=new gd;if(a=jd(a.toLowerCase()))this.j=a();this.g=new fd;if(a=kd)this.g=a(),this.h.set(this.i,this.g)}p=id.prototype;
p.init=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?-1:c;if(-1!=c&&this.i!=c){b=c;var d=this.h.get(b);this.h.set(this.i,this.g);if(d)this.g=d;else{if(d=kd)this.g=d();this.h.set(b,this.g)}}else b||this.Sd();this.j.init(a);-1!=c&&(this.i=c)};p.Of=function(a){a=this.j.parse(a);a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=Kb(b.packet);0<c.length&&this.g.extract(c,b.pts)}return this.g.decode()};p.Sd=function(){this.g.clear()};
p.remove=function(a){a=void 0===a?[]:a;a=new Set(a);for(var b=t(this.h.keys()),c=b.next();!c.done;c=b.next())if(c=c.value,!a.has(c)){var d=this.h.get(c);d&&d.clear();this.h.delete(c)}};p.rg=function(){return this.g.getStreams()};function ld(a,b){nd.set(a,b)}function jd(a){return nd.get(a)}S("shaka.media.ClosedCaptionParser",id);id.findDecoder=function(){return kd};id.unregisterDecoder=function(){kd=null};id.registerDecoder=function(a){kd=a};id.findParser=jd;id.unregisterParser=function(a){nd.delete(a)};
id.registerParser=ld;var nd=new Map,kd=null;function od(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=pd;this.scroll=qd}S("shaka.text.CueRegion",od);var pd=1;od.units={PX:0,PERCENTAGE:pd,LINES:2};var qd="";od.scrollMode={NONE:qd,UP:"up"};function rd(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function sd(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function td(a,b,c){c||(c=rd);if(a.length!=b.length)return!1;b=b.slice();a=t(a);for(var d=a.next(),e={};!d.done;e={$i:void 0},d=a.next()){e.$i=d.value;d=b.findIndex(function(f){return function(g){return c(f.$i,g)}}(e));if(-1==d)return!1;b[d]=b[b.length-1];b.pop()}return 0==b.length}
function ud(a,b,c){if(a===b)return!0;if(!a||!b)return a==b;c||(c=rd);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 vd(a){this.h=a||"";this.g=0}function wd(a){xd(a,/[ \t]+/gm)}function xd(a,b){b.lastIndex=a.g;b=b.exec(a.h);b=null==b?null:{position:b.index,length:b[0].length,results:b};if(a.g==a.h.length||null==b||b.position!=a.g)return null;a.g+=b.length;return b.results}function zd(a){return a.g==a.h.length?null:(a=xd(a,/[^ \t\n]*/gm))?a[0]:null}
function Ad(a){a=xd(a,Bd);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:(Number(a[6])||0)/1E3+c+60*b+3600*(Number(a[1])||0)}function Cd(a){return a?Ad(new vd(a)):null}var Bd=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function Dd(){}function Ed(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||ArrayBuffer.isView(d))return d;if(c.has(d))return null;var e=Array.isArray(d);if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new WeakSet;return b(a)}function Fd(a){var b={},c;for(c in a)b[c]=a[c];return b}
function Gd(a){if(Array.isArray(a)){for(var b=[],c=0;c<a.length;c++){var d=c.toString(),e=a[c];void 0!==e&&(e=Gd(e))&&b.push(d+":"+e)}a="["+b.join(",")+"]"}else if("function"==typeof a)a="";else if(a instanceof Object){c=Object.keys(a);c.sort();b=[];c=t(c);for(d=c.next();!d.done;d=c.next())e=d.value,d=JSON.stringify(e),e=a[e],void 0!==e&&(e=Gd(e))&&b.push(d+":"+e);a="{"+b.join(",")+"}"}else a=JSON.stringify(a);return a}S("shaka.util.ObjectUtils",Dd);Dd.alphabeticalKeyOrderStringify=Gd;
Dd.shallowCloneObject=Fd;Dd.cloneObject=Ed;/*
2025-06-19 04:02:44 +02:00
@license
tXml
Copyright 2015 Tobias Nickel
SPDX-License-Identifier: MIT
*/
2025-06-27 11:02:59 +02:00
function Hd(a,b){var c=void 0===c?!1:c;a=Zb(a);return Id(a,b,c)}function Id(a,b,c){a=Jd(a,void 0===c?!1:c);return!b&&a.length?a[0]:(a=a.find(function(d){return b.split(",").includes(d.tagName)}))?a:null}function Kd(a){return Ld.has(a)?Ld.get(a):""}
function Jd(a,b){function c(f,g){g=void 0===g?!1:g;for(var h=[];a[e];)if(60==a.charCodeAt(e)){if(47===a.charCodeAt(e+1)){g=e+2;e=a.indexOf(">",e);g=a.substring(g,e);var k=g.indexOf(f);if(-1==k){var l=f.indexOf(".");0<l&&(k=g.indexOf(f.substring(0,l)))}if(-1==k)throw f=a.substring(0,e).split("\n"),Error("Unexpected close tag\nLine: "+(f.length-1)+"\nColumn: "+(f[f.length-1].length+1)+"\nChar: "+a[e]);e+1&&(e+=1);break}else if(33===a.charCodeAt(e+1)){if(45==a.charCodeAt(e+2)){for(;-1!==e&&(62!==a.charCodeAt(e)||
2025-06-19 04:02:44 +02:00
45!=a.charCodeAt(e-1)||45!=a.charCodeAt(e-2)||-1==e);)e=a.indexOf(">",e+1);-1===e&&(e=a.length)}else if(91===a.charCodeAt(e+2)&&91===a.charCodeAt(e+8)&&"cdata"===a.substr(e+3,5).toLowerCase()){k=a.indexOf("]]\x3e",e);-1==k?(h.push(a.substr(e+9)),e=a.length):(h.push(a.substring(e+9,k)),e=k+3);continue}e++;continue}a:{l=g;e++;var m=d(),n={};for(k=[];62!==a.charCodeAt(e)&&a[e];){var q=a.charCodeAt(e);if(64<q&&91>q||96<q&&123>q){q=d();for(var r=a.charCodeAt(e);r&&39!==r&&34!==r&&!(64<r&&91>r||96<r&&123>
2025-06-27 11:02:59 +02:00
r)&&62!==r;)e++,r=a.charCodeAt(e);var u=e+1;e=a.indexOf(a[e],u);u=a.slice(u,e);if(39===r||34===r){if(-1===e){l={tagName:m,attributes:n,children:k,parent:null};if(b)for(m=0;m<k.length;m++)"string"!==typeof k[m]&&(k[m].parent=l);k=l;break a}}else u=null,e--;if(q.startsWith("xmlns:")){r=u;var w=q.split(":")[1];Ld.set(r,w);Md.set(w,r)}"tt"===m&&"xml:space"===q&&"preserve"===u&&(l=!0);n[q]=u}e++}47!==a.charCodeAt(e-1)?(e++,k=c(m,l)):e++;l={tagName:m,attributes:n,children:k,parent:null};m=k.length;for(n=
2025-06-19 04:02:44 +02:00
0;n<m;n++)q=k[n],"string"!==typeof q?b&&(q.parent=l):n==m-1&&"\n"==q&&k.pop();k=l}h.push(k);if("string"===typeof k)break;"?"===k.tagName[0]&&k.children&&(h.push.apply(h,x(k.children)),k.children=[])}else k=e,e=a.indexOf("<",e)-1,-2===e&&(e=a.length),k=a.slice(k,e+1),g?0<k.length&&h.push(k):h.length&&1==k.length&&"\n"==k[0]?h.push(k):0<k.trim().length&&h.push(k),e++;return h}function d(){for(var f=e;-1==="\r\n\t>/= ".indexOf(a[e])&&a[e];)e++;return a.slice(f,e)}var e=0;return c("")}
2025-06-27 11:02:59 +02:00
function Nd(a){return"string"===typeof a}function Od(a){var b=[];if(!a.children)return[];a=t(a.children);for(var c=a.next();!c.done;c=a.next())c=c.value,"string"!==typeof c&&b.push(c);return b}function Pd(a,b){var c=[];if(!a.children)return[];a=t(a.children);for(var d=a.next();!d.done;d=a.next())d=d.value,d.tagName===b&&c.push(d);return c}function Qd(a){if("string"===typeof a)return cc(a);a=a.children.reduce(function(b,c){return"string"===typeof c?b+c:b},"");return""===a?null:cc(a)}
function Rd(a){if(!Array.from(a.children).every(function(b){return"string"===typeof b}))return null;(a=Qd(a))&&(a=a.trim());return a}function Sd(a,b,c){c=void 0===c?[]:c;a.tagName===b&&c.push(a);if(a.children){a=t(a.children);for(var d=a.next();!d.done;d=a.next())Sd(d.value,b,c)}return c}function Td(a,b){a=Pd(a,b);return 1!=a.length?null:a[0]}function Ud(a,b,c){a=Vd(a,b,c);return 1!=a.length?null:a[0]}
function Wd(a,b,c,d){d=void 0===d?null:d;var e=null;a=a.attributes[b];null!=a&&(e=c(a));return null==e?d:e}function Xd(a,b,c){b=Kd(b);return a.attributes[b+":"+c]||null}function Vd(a,b,c){var d=Kd(b);b=[];if(a.children)for(c=d?d+":"+c:c,a=t(a.children),d=a.next();!d.done;d=a.next())(d=d.value)&&d.tagName===c&&b.push(d);return b}function Yd(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())if(d=Xd(a,d.value,c))return d;return null}
function Zd(a){if(!a)return null;/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(a)&&(a+="Z");a=Date.parse(a);return isNaN(a)?null:a/1E3}function $d(a){if(!a)return null;a=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$","i").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 ae(a){var b=/([0-9]+)-([0-9]+)/.exec(a);if(!b)return null;a=Number(b[1]);if(!isFinite(a))return null;b=Number(b[2]);return isFinite(b)?{start:a,end:b}:null}function be(a){a=Number(a);return 0===a%1?a:null}function ce(a){a=Number(a);return 0===a%1&&0<a?a:null}function ee(a){a=Number(a);return 0===a%1&&0<=a?a:null}function fe(a){a=Number(a);return isNaN(a)?null:a}function ge(a){return a?"true"===a.toLowerCase():!1}
function he(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}
function ie(a){var b=[];a=cc(a).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/);a=t(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.match(/^([\w]+)/);if(d){var e=c.match(/(@id='(.*?)')/),f=c.match(/(@t='(\d+)')/),g=c.match(/(@n='(\d+)')/),h=c.match(/\[(\d+)\]/);b.push({name:d[0],id:e?e[0].match(/'(.*?)'/)[0].replace(/'/gm,""):null,t:f?Number(f[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,n:g?Number(g[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,position:h?Number(h[1])-1:null,Ec:c.split("/@")[1]||
null})}else c.startsWith("@")&&b.length&&(b[b.length-1].Ec=c.slice(1))}return b}
function je(a,b){var c=ie(b.attributes.sel||"");if(c.length){var d=c[c.length-1],e=b.attributes.pos||null;c=d.position;null==c&&(null!==d.t&&(c=ke(a,"t",d.t)),null!==d.n&&(c=ke(a,"n",d.n)));null===c?c="prepend"===e?0:a.length:"prepend"===e?--c:"after"===e&&++c;e=b.tagName;(d=d.Ec)&&a[c]?le(a[c],e,d,Rd(b)||""):("remove"!==e&&"replace"!==e||a.splice(c,1),"add"!==e&&"replace"!==e||a.splice.apply(a,[c,0].concat(x(b.children))))}}
function ke(a,b,c){var d=0;a=t(a);for(var e=a.next();!e.done;e=a.next()){if(Number(e.value.attributes[b])===c)return d;d++}return null}function le(a,b,c,d){if("remove"===b)delete a.attributes[c];else if("add"===b||"replace"===b)a.attributes[c]=d}
function me(a){var b="",c=a.tagName.split(":");0<c.length&&(b=c[0],b=Md.has(b)?Md.get(b):"");b=document.createElementNS(b,a.tagName);for(var d in a.attributes)b.setAttribute(d,a.attributes[d]);a=t(a.children);for(d=a.next();!d.done;d=a.next())d=d.value,c=void 0,"string"==typeof d?c=new Text(d):c=me(d),b.appendChild(c);return b}
function ne(a){if(!a)return null;var b={tagName:a.tagName,attributes:Fd(a.attributes),children:[],parent:null};a=t(a.children);for(var c=a.next();!c.done;c=a.next())c=c.value,"string"===typeof c?b.children.push(c):(c=ne(c),c.parent=b,b.children.push(c));return b}var Ld=new Map,Md=new Map;function oe(a,b,c){this.startTime=a;this.endTime=b;this.payload=c;this.region=new od;this.position=null;this.positionAlign=pe;this.size=0;this.textAlign=qe;this.direction=re;this.writingMode=te;this.lineInterpretation=ue;this.line=null;this.lineHeight="";this.lineAlign=ve;this.displayAlign=we;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=xe;this.fontStyle=ye;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.textCombineUpright=
"";this.textDecoration=[];this.textStrokeWidth=this.textStrokeColor=this.textShadow="";this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.rubyTag=null;this.cellResolution={Wc:32,rows:15}}function ze(a,b){a=new oe(a,b,"");a.lineBreak=!0;return a}oe.prototype.clone=function(){var a=new oe(0,0,""),b;for(b in this)a[b]=this[b],Array.isArray(a[b])&&(a[b]=a[b].slice());return a};
2025-06-19 04:02:44 +02:00
function Ae(a,b){if(a.payload!=b.payload||!(.001>Math.abs(a.startTime-b.startTime)&&.001>Math.abs(a.endTime-b.endTime)))return!1;for(var c in a)if("startTime"!=c&&"endTime"!=c&&"payload"!=c)if("nestedCues"==c){if(!ud(a.nestedCues,b.nestedCues,Ae))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(!ud(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}
2025-06-27 11:02:59 +02:00
function Be(a,b){b=void 0===b?new Map:b;var c=a.payload;if(c.includes("<")){0===b.size&&De(b);var d=c;c=[];for(var e=-1,f=0;f<d.length;f++)"<"===d[f]?e=f+1:">"===d[f]&&0<e&&(e=d.substr(e,f-e),e.match(Ge)&&c.push(e),e=-1);c=t(c);for(f=c.next();!f.done;f=c.next())f=f.value,d=d.replace("<"+f+">",'<div time="'+f+'">'),d+="</div>";a:{f=d;e=[];var g=-1;c="";d=!1;for(var h=0;h<f.length;h++)if("/"===f[h]){var k=f.indexOf(">",h);if(-1===k){c=f;break a}if((k=f.substring(h+1,k))&&"v"==k){d=!0;var l=null;e.length&&
(l=e[e.length-1]);if(l){if(l===k)c+="/"+k+">";else{if(!l.startsWith("v")){c+=f[h];continue}c+="/"+l+">"}h+=k.length+1}else c+=f[h]}else c+=f[h]}else"<"===f[h]?(g=h+1,"v"!=f[g]&&(g=-1)):">"===f[h]&&0<g&&(e.push(f.substr(g,h-g)),g=-1),c+=f[h];f=t(e);for(e=f.next();!e.done;e=f.next())e=e.value,g=e.replace(" ",".voice-"),c=c.replace("<"+e+">","<"+g+">"),c=c.replace("</"+e+">","</"+g+">"),d||(c+="</"+g+">")}c=He(c);a.payload="";try{var m=Id("<span>"+c+"</span>","span")}catch(n){}if(m)if(m=m.children,1!=
m.length||m[0].tagName)for(m=t(m),c=m.next();!c.done;c=m.next())Ie(c.value,a,b);else a.payload=cc(c);else a.payload=cc(c)}else a.payload=cc(c)}function De(a){for(var b=t(Object.entries(Je)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new oe(0,0,"");e.color=d;a.set("."+c,e)}b=t(Object.entries(Ke));for(c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new oe(0,0,""),e.backgroundColor=d,a.set("."+c,e)}
function He(a){var b={"< ":""," >":" &gt;"},c=/(< +>|<\s|\s>)/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||""}):a||""}
function Ie(a,b,c){var d=b.clone();d.nestedCues=[];d.payload="";d.rubyTag="";d.line=null;d.region=new od;d.position=null;d.size=0;d.textAlign=qe;if(a.tagName)for(var e=t(a.tagName.split(/(?=[ .])+/g)),f=e.next();!f.done;f=e.next()){var g=f=f.value;if(g.startsWith(".voice-")){var h=g.split("-").pop();g='v[voice="'+h+'"]';c.has(g)||(g="v[voice="+h+"]")}c.has(g)&&(h=d,g=c.get(g))&&(h.backgroundColor=Le(g.backgroundColor,h.backgroundColor),h.color=Le(g.color,h.color),h.fontFamily=Le(g.fontFamily,h.fontFamily),
h.fontSize=Le(g.fontSize,h.fontSize),h.textShadow=Le(g.textShadow,h.textShadow),h.fontWeight=g.fontWeight,h.fontStyle=g.fontStyle,h.opacity=g.opacity,h.rubyTag=g.rubyTag,h.textCombineUpright=g.textCombineUpright,h.wrapLine=g.wrapLine);switch(f){case "br":d=ze(d.startTime,d.endTime);b.nestedCues.push(d);return;case "b":d.fontWeight=Me;break;case "i":d.fontStyle=Ne;break;case "u":d.textDecoration.push(Oe);break;case "font":if(f=a.attributes.color)d.color=f;break;case "div":f=a.attributes.time;if(!f)break;
if(f=Cd(f))d.startTime=f;break;case "ruby":case "rp":case "rt":d.rubyTag=f}}e=a.children;if(Nd(a)||1==e.length&&Nd(e[0]))for(c=Qd(a).split("\n"),a=!0,c=t(c),e=c.next();!e.done;e=c.next())e=e.value,a||(a=ze(d.startTime,d.endTime),b.nestedCues.push(a)),0<e.length&&(a=d.clone(),a.payload=cc(e),b.nestedCues.push(a)),a=!1;else for(b.nestedCues.push(d),b=t(e),a=b.next();!a.done;a=b.next())Ie(a.value,d,c)}function Le(a,b){return a&&0<a.length?a:b}S("shaka.text.Cue",oe);oe.parseCuePayload=Be;oe.equal=Ae;
oe.prototype.clone=oe.prototype.clone;var pe="auto";oe.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:pe};var qe="center",Pe={LEFT:"left",RIGHT:"right",CENTER:qe,START:"start",END:"end"};oe.textAlign=Pe;var we="after",Qe={BEFORE:"before",CENTER:"center",AFTER:we};oe.displayAlign=Qe;var re="ltr";oe.direction={HORIZONTAL_LEFT_TO_RIGHT:re,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var te="horizontal-tb";oe.writingMode={HORIZONTAL_TOP_TO_BOTTOM:te,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};
var ue=0;oe.lineInterpretation={LINE_NUMBER:ue,PERCENTAGE:1};var ve="start",Re={CENTER:"center",START:ve,END:"end"};oe.lineAlign=Re;var Je={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};oe.defaultTextColor=Je;var Ke={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};oe.defaultTextBackgroundColor=Ke;var xe=400,Me=700;oe.fontWeight={NORMAL:xe,BOLD:Me};
var ye="normal",Ne="italic",Se={NORMAL:ye,ITALIC:Ne,OBLIQUE:"oblique"};oe.fontStyle=Se;var Oe="underline";oe.textDecoration={UNDERLINE:Oe,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var Ge=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function Te(){}Te.prototype.destroy=function(){};function Ue(a,b,c){Ve.set(a.toLowerCase().split(";")[0]+"-"+c,{priority:c,Pf:b})}function We(a,b){for(var c=a.toLowerCase().split(";")[0],d=t([Xe,Ye,Ze,$e]),e=d.next();!e.done;e=d.next())if(e=Ve.get(c+"-"+e.value)){var f=e.Pf(),g=f.isSupported(a,b);f.destroy();if(g)return e.Pf}return null}S("shaka.transmuxer.TransmuxerEngine",Te);Te.findTransmuxer=We;Te.unregisterTransmuxer=function(a,b){Ve.delete(a.toLowerCase().split(";")[0]+"-"+b)};
Te.registerTransmuxer=Ue;Te.prototype.destroy=Te.prototype.destroy;var Ve=new Map,$e=1,Ze=2,Ye=3,Xe=4;Te.PluginPriority={FALLBACK:$e,PREFERRED_SECONDARY:Ze,PREFERRED:Ye,APPLICATION:Xe};function af(){}function bf(a,b){var c=a;b&&!cf.includes(a)&&(c+='; codecs="'+b+'"');return c}function df(a,b){b&&(a+='; codecs="'+b+'"');return a}function ef(a,b,c){var d=bf(a,b);b=df(a,b);We(b)?(a=We(b))?(a=a(),c=a.convertCodecs(c,b),a.destroy()):c=b:c="video/mp2t"!=a&&"audio"==c?d.replace("video","audio"):d;return c}function ff(a){return a.split(";")[0].split("/")[1]}
function gf(a){var b=hf(a);a=b[0].toLowerCase();b=b[1].toLowerCase();switch(!0){case "mp4a"===a&&"69"===b:case "mp4a"===a&&"6b"===b:case "mp4a"===a&&"40.34"===b:return"mp3";case "mp4a"===a&&"66"===b:case "mp4a"===a&&"67"===b:case "mp4a"===a&&"68"===b:case "mp4a"===a&&"40.2"===b:case "mp4a"===a&&"40.02"===b:case "mp4a"===a&&"40.5"===b:case "mp4a"===a&&"40.05"===b:case "mp4a"===a&&"40.29"===b:case "mp4a"===a&&"40.42"===b:return"aac";case "mp4a"===a&&"a5"===b:case "ac3"===a:case "ac-3"===a:return"ac-3";
2025-06-19 04:02:44 +02:00
case "mp4a"===a&&"a6"===b:case "eac3"===a:case "ec-3"===a:return"ec-3";case "ac-4"===a:return"ac-4";case "mp4a"===a&&"b2"===b:return"dtsx";case "mp4a"===a&&"a9"===b:return"dtsc";case "vp09"===a:case "vp9"===a:return"vp9";case "avc1"===a:case "avc3"===a:return"avc";case "hvc1"===a:case "hev1"===a:return"hevc";case "vvc1"===a:case "vvi1"===a:return"vvc";case "dvh1"===a:case "dvhe"===a:return b&&b.startsWith("05")?"dovi-p5":"dovi-hevc";case "dvav"===a:case "dva1"===a:return"dovi-avc";case "dav1"===a:return"dovi-av1";
2025-06-27 11:02:59 +02:00
case "dvc1"===a:case "dvi1"===a:return"dovi-vvc"}return a}function jf(a){var b=[];a=t(a.split(","));for(var c=a.next();!c.done;c=a.next())c=hf(c.value),b.push(c[0]);return b.sort().join(",")}function kf(a){return a.split(";")[0]}function lf(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""}function mf(a){return"application/x-mpegurl"===a||"application/vnd.apple.mpegurl"===a}
function hf(a){a=a.split(".");var b=a[0];a.shift();return[b,a.join(".")]}S("shaka.util.MimeUtils",af);af.getFullTypeWithAllCodecs=df;af.getFullType=bf;(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");var cf=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function nf(a){this.i=null;this.j=a;this.C=!1;this.l=this.u=0;this.m=Infinity;this.h=this.g=null;this.D="";this.B=function(){};this.s=new Map}function of(a,b){pf.set(a,b)}function qf(a){return pf.get(a)}function sf(a){return pf.has(a)?!0:"application/cea-608"==a||"application/cea-708"==a?!!kd:!1}nf.prototype.destroy=function(){this.j=this.i=null;this.s.clear();return Promise.resolve()};
function tf(a,b,c,d,e){var f,g,h,k,l,m,n;return Q(function(q){if(1==q.g)return F(q,Promise.resolve(),2);if(!a.i||!a.j)return q.return();if(null==c||null==d)return a.i.parseInit(Kb(b)),q.return();f=a.C?c:a.u;g={periodStart:a.u,segmentStart:c,segmentEnd:d,vttOffset:f};h=a.i.parseMedia(Kb(b),g,e,[]);k=t(h);for(l=k.next();!l.done;l=k.next())m=l.value,a.B(m,e||null,g);n=h.filter(function(r){return r.startTime>=a.l&&r.startTime<a.m});a.j.append(n);null==a.g&&(a.g=Math.max(c,a.l));a.h=Math.min(d,a.m);I(q)})}
nf.prototype.remove=function(a,b){var c=this;return Q(function(d){if(1==d.g)return F(d,Promise.resolve(),2);!c.j||!c.j.remove(a,b)||null==c.g||b<=c.g||a>=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&b<c.h?c.g=b:a>c.g&&b>=c.h&&(c.h=a));I(d)})};function uf(a,b,c){a.l=b;a.m=c}function vf(a,b,c){a.D=b;if(b=a.s.get(b))for(var d=t(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.j.append(e)}
function wf(a,b,c){b.startTime+=c;b.endTime+=c;b=t(b.nestedCues);for(var d=b.next();!d.done;d=b.next())wf(a,d.value,c)}
function xf(a,b,c,d,e){var f=c+" "+d,g=new Map;b=t(b);for(var h=b.next();!h.done;h=b.next()){var k=h.value;h=k.stream;k=k.cue;g.has(h)||g.set(h,new Map);g.get(h).has(f)||g.get(h).set(f,[]);wf(a,k,e);k.startTime>=a.l&&k.startTime<a.m&&(g.get(h).get(f).push(k),h==a.D&&a.j.append([k]))}e=t(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.s.has(f)||a.s.set(f,new Map),b=t(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),a.s.get(f).set(h,k);a.g=null==a.g?Math.max(c,
a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m))}S("shaka.text.TextEngine",nf);nf.prototype.destroy=nf.prototype.destroy;nf.findParser=qf;nf.unregisterParser=function(a){pf.delete(a)};nf.registerParser=of;var pf=new Map;function yf(a){this.h=a;this.g=null}yf.prototype.X=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};yf.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function zf(a){this.h=a;this.g=null}zf.prototype.Ka=function(){this.stop();this.h();return this};zf.prototype.X=function(a){var b=this;this.stop();this.g=(new yf(function(){b.h()})).X(a);return this};zf.prototype.ya=function(a){var b=this;this.stop();this.g=(new yf(function(){b.g.X(a);b.h()})).X(a);return this};zf.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};S("shaka.util.Timer",zf);zf.prototype.stop=zf.prototype.stop;zf.prototype.tickEvery=zf.prototype.ya;
zf.prototype.tickAfter=zf.prototype.X;zf.prototype.tickNow=zf.prototype.Ka;function Af(a,b){return a.concat(b)}function Bf(){}function Cf(a){return null!=a}function Df(a,b){return Promise.race([b,new Promise(function(c,d){(new zf(d)).X(a)})])};function Ef(){}
function Ff(a,b,c,d,e){function f(y){var z=String(y.width||"")+String(y.height||"")+String(Math.round(y.frameRate||0))+(y.hdr||"")+y.fastSwitching;y.dependencyStream&&(z+=y.dependencyStream.baseOriginalId||"");return z}function g(y){var z=y.language+(y.channelsCount||0)+(y.audioSamplingRate||0)+y.roles.join(",")+y.label+y.groupId+y.fastSwitching;y.dependencyStream&&(z+=y.dependencyStream.baseOriginalId||"");return z}if(e.length){var h=a.textStreams;e=t(e);for(var k=e.next(),l={};!k.done;l={ji:void 0},
k=e.next())if(l.ji=k.value,k=h.filter(function(y){return function(z){return z.codecs.startsWith(y.ji)||z.mimeType.startsWith(y.ji)?!0:!1}}(l)),k.length){h=k;break}a.textStreams=h}h=a.variants;if(b.length||c.length)h=Gf(h,b,c);if(d.length){b=new ib;c=t(h);for(h=c.next();!h.done;h=c.next())h=h.value,b.push(String(h.video.width||0),h);var m=[];b.forEach(function(y,z){y=0;var A=[];z=t(z);for(var B=z.next(),D={};!B.done;D={og:void 0},B=z.next())D.og=B.value,B=d.filter(function(G){return function(C){return G.og.decodingInfos[0][C]}}(D)).length,
B>y?(y=B,A=[D.og]):B==y&&A.push(D.og);m.push.apply(m,x(A))});h=m}c=new Set;b=new Set;h=t(h);for(e=h.next();!e.done;e=h.next())e=e.value,e.audio&&c.add(e.audio),e.video&&b.add(e.video);h=Array.from(c).sort(function(y,z){return y.bandwidth-z.bandwidth});var n=[];c=new Map;h=t(h);for(e=h.next();!e.done;e=h.next()){e=e.value;k=g(e);l=c.get(k)||[];if(l.length){var q=l[l.length-1],r=gf(q.codecs),u=gf(e.codecs);r!=u||e.bandwidth&&q.bandwidth&&!(e.bandwidth>q.bandwidth)||(l.push(e),n.push(e.id))}else l.push(e),
n.push(e.id);c.set(k,l)}var w={vp8:1,avc:1,"dovi-avc":.95,vp9:.9,vp09:.9,hevc:.85,"dovi-hevc":.8,"dovi-p5":.75,av01:.7,"dovi-av1":.65,vvc:.6};h=Array.from(b).sort(function(y,z){if(!y.bandwidth||!z.bandwidth||y.bandwidth==z.bandwidth){if(y.codecs&&z.codecs&&y.codecs!=z.codecs&&y.width==z.width){var A=gf(y.codecs),B=gf(z.codecs);if(A!=B)return(w[A]||1)-(w[B]||1)}return y.width-z.width}return y.bandwidth-z.bandwidth});b=dd();var v=[];c=new Map;h=t(h);for(e=h.next();!e.done;e=h.next()){e=e.value;k=f(e);
l=c.get(k)||[];if(l.length){q=l[l.length-1];if(!b&&(r=gf(q.codecs),u=gf(e.codecs),r!==u))continue;r=gf(q.codecs);u=gf(e.codecs);r!=u||e.bandwidth&&q.bandwidth&&!(e.bandwidth>q.bandwidth)||(l.push(e),v.push(e.id))}else l.push(e),v.push(e.id);c.set(k,l)}a.variants=a.variants.filter(function(y){var z=y.audio;y=y.video;return z&&!n.includes(z.id)||y&&!v.includes(y.id)?!1:!0})}
function Gf(a,b,c){b=t(b);for(var d=b.next(),e={};!d.done;e={videoCodec:void 0},d=b.next())if(e.videoCodec=d.value,d=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.videoCodec)}}(e)),d.length){a=d;break}c=t(c);b=c.next();for(d={};!b.done;d={audioCodec:void 0},b=c.next())if(d.audioCodec=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.audioCodec)}}(d)),b.length){a=b;break}return a}
function Hf(a,b,c){a.variants=a.variants.filter(function(d){return If(d,b,c)})}
function If(a,b,c){function d(h,k,l){return h>=k&&h<=l}var e=a.video;if(e&&e.width&&e.height){var f=e.width,g=e.height;g>f&&(g=t([g,f]),f=g.next().value,g=g.next().value);if(!d(f,b.minWidth,Math.min(b.maxWidth,c.width))||!d(g,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))return!1}return a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||a&&a.audio&&a.audio.channelsCount&&!d(a.audio.channelsCount,b.minChannelsCount,b.maxChannelsCount)||
!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}function Jf(a,b,c,d){c=void 0===c?[]:c;d=void 0===d?{}:d;return Q(function(e){if(1==e.g)return F(e,Kf(a,b,0<b.offlineSessionIds.length,c,d),2);Lf(b);return F(e,Mf(b),0)})}
function Kf(a,b,c,d,e){var f,g;return Q(function(h){if(1==h.g)return Rb().Jj()&&Nf(b.variants),F(h,Of(b.variants,c,!1,d),2);f=null;a&&(g=a.g)&&(f=g.keySystem);b.variants=b.variants.filter(function(k){var l=Pf(k,f,e);if(!l){var m=[];k.audio&&m.push(Qf(k.audio));k.video&&m.push(Qf(k.video))}return l});I(h)})}
function Nf(a){var b=(new Map).set("dvav","avc3").set("dva1","avc1").set("dvhe","hev1").set("dvh1","hvc1").set("dvc1","vvc1").set("dvi1","vvi1"),c=new Set;a=t(a);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&c.add(d.video);c=t(c);for(a=c.next();!a.done;a=c.next()){a=a.value;d=t(b);for(var e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;if(a.codecs.includes(e)){a.codecs=a.codecs.replace(e,f);break}}}}
function Pf(a,b,c){if(!a.decodingInfos.some(function(k){return!k.supported||b&&(k=k.keySystemAccess)&&(c[k.keySystem]||k.keySystem)!=b?!1:!0}))return!1;var d=Rb(),e="Xbox"===d.Rb();d="MOBILE"===d.Ja()&&"GECKO"===d.Ga();var f=a.video,g=f&&f.width||0,h=f&&f.height||0;if(e&&f&&(1920<g||1080<h)&&(f.codecs.includes("avc1.")||f.codecs.includes("avc3."))||(e=f&&f.dependencyStream)&&!ad(e))return!1;a=a.audio;return d&&a&&a.encrypted&&a.codecs.toLowerCase().includes("opus")||a&&a.dependencyStream?!1:!0}
function Rf(a,b){var c,d,e,f,g,h,k;return Q(function(l){if(1==l.g){c=function(m,n){if(m){var q=Fd(m);q.supported=m.supported&&n.supported;q.powerEfficient=m.powerEfficient&&n.powerEfficient;q.smooth=m.smooth&&n.smooth;n.keySystemAccess&&!q.keySystemAccess&&(q.keySystemAccess=n.keySystemAccess);return q}return n};d=null;e=[];f=t(b);g=f.next();for(h={};!g.done;h={cache:void 0,bf:void 0},g=f.next())k=g.value,h.bf=Gd(k),h.cache=Sf,h.cache.has(h.bf)?d=c(d,h.cache.get(h.bf)):e.push(Tf(k).then(function(m){return function(n){var q=
null;n=t(n||[]);for(var r=n.next();!r.done;r=n.next())q=c(q,r.value);q&&(m.cache.set(m.bf,q),d=c(d,q))}}(h)));return F(l,Promise.all(e),2)}d&&a.decodingInfos.push(d);I(l)})}
function Tf(a){var b=[""];a.video&&(b=lf(a.video.contentType).split(","));var c=[""];a.audio&&(c=lf(a.audio.contentType).split(","));var d=[];b=t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;for(var f=t(c),g=f.next(),h={};!g.done;h={Xc:void 0},g=f.next())g=g.value,h.Xc=Ed(a),a.video&&(h.Xc.video.contentType=bf(kf(h.Xc.video.contentType),e)),a.audio&&(h.Xc.audio.contentType=bf(kf(h.Xc.audio.contentType),g)),d.push(new Promise(function(k){return function(l,m){("MOBILE"==Rb().Ja()?Df(5,navigator.mediaCapabilities.decodingInfo(k.Xc)):
navigator.mediaCapabilities.decodingInfo(k.Xc)).then(function(n){l(n)}).catch(m)}}(h)))}return Promise.all(d).catch(function(){JSON.stringify(a);return null})}
function Of(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G;return Q(function(C){switch(C.g){case 1:if(e=a.some(function(E){return E.decodingInfos.length}))return C.return();f=t(d);g=f.next();h={};case 2:if(g.done){C.A(4);break}h.nj=g.value;k=!1;l=t(a);m=l.next();case 5:if(m.done){C.A(7);break}n=m.value;q=Uf(n,b,c).filter(function(E){return function(H){H=H[0];return(H.keySystemConfiguration&&H.keySystemConfiguration.keySystem)===E.nj}}(h));r=t(q);u=r.next();case 8:if(u.done){C.A(10);break}w=u.value;
return F(C,Rf(n,w),9);case 9:u=r.next();C.A(8);break;case 10:n.decodingInfos.length&&(k=!0);m=l.next();C.A(5);break;case 7:if(k)return C.return();h={nj:void 0};g=f.next();C.A(2);break;case 4:v=t(a),y=v.next();case 12:if(y.done){C.A(0);break}z=y.value;A=Uf(z,b,c).filter(function(E){E=E[0];E=E.keySystemConfiguration&&E.keySystemConfiguration.keySystem;return!E||!d.includes(E)});B=t(A);D=B.next();case 15:if(D.done){y=v.next();C.A(12);break}G=D.value;return F(C,Rf(z,G),16);case 16:D=B.next(),C.A(15)}})}
function Uf(a,b,c){var d=a.audio,e=a.video,f=[],g=[];if(e)for(var h=t(e.fullMimeTypes),k=h.next();!k.done;k=h.next()){k=k.value;var l=lf(k);if(l.includes(",")&&!d){var m=l.split(","),n=kf(k);l=oc("video",m);m=oc("audio",m);m=Vf(m,n);n=ef(n,m,"audio");g.push({contentType:n,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1})}l=Wf(l);k={contentType:ef(kf(k),l,"video"),width:e.width||64,height:e.height||64,bitrate:e.bandwidth||a.bandwidth||1,framerate:e.frameRate||1};if(e.hdr)switch(e.hdr){case "SDR":k.transferFunction=
"srgb";break;case "PQ":k.transferFunction="pq";break;case "HLG":k.transferFunction="hlg"}e.colorGamut&&(k.colorGamut=e.colorGamut);f.push(k)}if(d)for(h=t(d.fullMimeTypes),k=h.next();!k.done;k=h.next())l=k.value,k=kf(l),l=Vf(lf(l),k),k=ef(k,l,"audio"),g.push({contentType:k,channels:d.channelsCount||2,bitrate:d.bandwidth||a.bandwidth||1,samplerate:d.audioSamplingRate||1,spatialRendering:d.spatialAudio});h=[];0==f.length&&f.push(null);0==g.length&&g.push(null);f=t(f);for(k=f.next();!k.done;k=f.next())for(k=
k.value,l=t(g),n=l.next();!n.done;n=l.next())n=n.value,m={type:c?"file":"media-source"},k&&(m.video=k),n&&(m.audio=n),h.push(m);g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return[h];a=[];c=new Map;g=t(g);for(f=g.next();!f.done;f=g.next())f=f.value,c.get(f.keySystem)||c.set(f.keySystem,[]),c.get(f.keySystem).push(f);g=b?"required":"optional";b=b?["persistent-license"]:["temporary"];f=t(c.keys());for(k=f.next();!k.done;k=f.next()){k=k.value;n=c.get(k);l=new Map;
n=t(n);for(m=n.next();!m.done;m=n.next()){m=m.value;var q=m.videoRobustness+","+m.audioRobustness;l.get(q)||l.set(q,[]);l.get(q).push(m)}l=t(l.values());for(n=l.next();!n.done;n=l.next()){n=n.value;m=[];q=t(h);for(var r=q.next();!r.done;r=q.next()){r=Object.assign({},r.value);for(var u={keySystem:k,initDataType:"cenc",persistentState:g,distinctiveIdentifier:"optional",sessionTypes:b},w=t(n),v=w.next();!v.done;v=w.next()){v=v.value;if(v.initData&&v.initData.length){for(var y=new Set,z=t(v.initData),
A=z.next();!A.done;A=z.next())y.add(A.value.initDataType);u.initDataType=v.initData[0].initDataType}v.distinctiveIdentifierRequired&&(u.distinctiveIdentifier="required");v.persistentStateRequired&&(u.persistentState="required");v.sessionType&&(u.sessionTypes=[v.sessionType]);d&&(u.audio?(v.encryptionScheme&&(u.audio.encryptionScheme=u.audio.encryptionScheme||v.encryptionScheme),u.audio.robustness=u.audio.robustness||v.audioRobustness):(u.audio={robustness:v.audioRobustness},v.encryptionScheme&&(u.audio.encryptionScheme=
v.encryptionScheme)),""==u.audio.robustness&&delete u.audio.robustness);e&&(u.video?(v.encryptionScheme&&(u.video.encryptionScheme=u.video.encryptionScheme||v.encryptionScheme),u.video.robustness=u.video.robustness||v.videoRobustness):(u.video={robustness:v.videoRobustness},v.encryptionScheme&&(u.video.encryptionScheme=v.encryptionScheme)),""==u.video.robustness&&delete u.video.robustness)}r.keySystemConfiguration=u;m.push(r)}a.push(m)}}return a}
function Vf(a,b){var c=Rb();return"flac"==a.toLowerCase()?"WEBKIT"!=c.Ga()?"flac":"fLaC":"opus"===a.toLowerCase()?"WEBKIT"!=c.Ga()?"opus":"mp4"==ff(b)?"Opus":"opus":"ac-3"==a.toLowerCase()&&c.we()?"ec-3":a}function Wf(a){if(a.includes("avc1")){var b=a.split(".");if(3==b.length)return a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4)}else if("vp9"==a)return"vp09.00.41.08";return a}
function Lf(a){a.textStreams=a.textStreams.filter(function(b){b=bf(b.mimeType,b.codecs);return sf(b)})}
function Mf(a){var b,c,d,e,f,g,h,k;return Q(function(l){switch(l.g){case 1:b=[],c=t(a.imageStreams),d=c.next();case 2:if(d.done){l.A(4);break}e=d.value;f=e.mimeType;"application/mp4"==f&&"mjpg"==e.codecs&&(f="image/jpg");if(Xf.has(f)){l.A(5);break}g=Yf.get(f);if(!g){Xf.set(f,!1);l.A(5);break}return F(l,Zf(g),7);case 7:h=l.h,Xf.set(f,h);case 5:(k=Xf.get(f))&&b.push(e);d=c.next();l.A(2);break;case 4:a.imageStreams=b,I(l)}})}
function Zf(a){return new Promise(function(b){var c=new Image;c.src=a;"decode"in c?c.decode().then(function(){b(!0)}).catch(function(){b(!1)}):c.onload=c.onerror=function(){b(2===c.height)}})}
function $f(a){var b=a.audio,c=a.video,d=b?b.mimeType:null,e=c?c.mimeType:null,f=b?b.codecs:null,g=c?c.codecs:null,h=b?b.groupId:null,k=[];c&&k.push(c.mimeType);b&&k.push(b.mimeType);k=k[0]||null;var l=[];b&&l.push(b.kind);c&&l.push(c.kind);l=l[0]||null;var m=new Set;if(b)for(var n=t(b.roles),q=n.next();!q.done;q=n.next())m.add(q.value);if(c)for(n=t(c.roles),q=n.next();!q.done;q=n.next())m.add(q.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,kind:l,
2025-06-19 04:02:44 +02:00
width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:k,audioMimeType:d,videoMimeType:e,codecs:"",audioCodec:f,videoCodec:g,primary:a.primary,roles:Array.from(m),audioRoles:null,forced:!1,videoId:null,audioId:null,audioGroupId:h,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,
originalLanguage:null};if(c){a.videoId=c.id;a.originalVideoId=c.originalId;a.width=c.width||null;a.height=c.height||null;a.frameRate=c.frameRate||null;a.pixelAspectRatio=c.pixelAspectRatio||null;a.videoBandwidth=c.bandwidth||null;a.hdr=c.hdr||null;a.colorGamut=c.colorGamut||null;a.videoLayout=c.videoLayout||null;if(d=c.dependencyStream)a.width=d.width||a.width,a.height=d.height||a.height,a.videoCodec=d.codecs||a.videoCodec;if(g.includes(",")){a.channelsCount=c.channelsCount;a.audioSamplingRate=c.audioSamplingRate;
a.spatialAudio=c.spatialAudio;a.originalLanguage=c.originalLanguage;a.audioMimeType=e;c=g.split(",");try{a.videoCodec=oc("video",c),a.audioCodec=oc("audio",c)}catch(r){}}}b&&(a.audioId=b.id,a.originalAudioId=b.originalId,a.channelsCount=b.channelsCount,a.audioSamplingRate=b.audioSamplingRate,a.audioBandwidth=b.bandwidth||null,a.spatialAudio=b.spatialAudio,a.label=b.label,a.audioRoles=b.roles,a.accessibilityPurpose=b.accessibilityPurpose,a.originalLanguage=b.originalLanguage,b=b.dependencyStream)&&
2025-06-27 11:02:59 +02:00
(a.audioCodec=b.codecs||a.audioCodec);b=[];a.videoCodec&&b.push(a.videoCodec);a.audioCodec&&b.push(a.audioCodec);a.codecs=b.join(", ");return a}function ag(a){return{id:a.id,active:!1,type:sc,bandwidth:a.bandwidth||0,language:a.language,label:a.label,kind:a.kind||null,mimeType:a.mimeType,codecs:a.codecs||null,primary:a.primary,roles:a.roles,accessibilityPurpose:a.accessibilityPurpose,forced:a.forced,originalTextId:a.originalId,originalLanguage:a.originalLanguage}}
function bg(a){var b=a.width||null,c=a.height||null,d=null;a.segmentIndex&&(d=cg(a.segmentIndex));var e=a.tilesLayout;d&&(e=d.tilesLayout||e);e&&null!=b&&(b/=Number(e.split("x")[0]));e&&null!=c&&(c/=Number(e.split("x")[1]));return{id:a.id,type:"image",bandwidth:a.bandwidth||0,width:b,height:c,mimeType:a.mimeType,codecs:a.codecs||null,tilesLayout:e||null,originalImageId:a.originalId}}function dg(a){a.__shaka_id||(a.__shaka_id=eg++);return a.__shaka_id}
function fg(a){var b={id:dg(a),active:"disabled"!=a.mode,type:sc,bandwidth:0,language:yc(a.language||"und"),label:a.label,kind:a.kind,mimeType:null,codecs:null,primary:!1,roles:[],accessibilityPurpose:null,forced:"forced"==a.kind,originalTextId:a.id,originalLanguage:a.language};"captions"==a.kind&&(b.mimeType="unknown");"subtitles"==a.kind&&(b.mimeType="text/vtt");a.kind&&(b.roles=[a.kind]);return b}
function gg(a,b){var c=a?a.language:null;c={id:dg(a||b),active:a?a.enabled:b.selected,type:"variant",bandwidth:0,language:yc(c||"und"),label:a?a.label:null,kind:a?a.kind:null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:a?"main"==a.kind:!1,roles:[],forced:!1,audioRoles:null,videoId:null,audioId:null,audioGroupId:null,channelsCount:null,audioSamplingRate:null,
2025-06-19 04:02:44 +02:00
spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:b?b.id:null,originalAudioId:a?a.id:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:c};a&&a.kind&&(c.roles=[a.kind],c.audioRoles=[a.kind]);a&&a.configuration&&(a.configuration.codec&&(c.audioCodec=a.configuration.codec,c.codecs=c.audioCodec),a.configuration.bitrate&&(c.audioBandwidth=a.configuration.bitrate,c.bandwidth+=c.audioBandwidth),a.configuration.sampleRate&&(c.audioSamplingRate=
a.configuration.sampleRate),a.configuration.numberOfChannels&&(c.channelsCount=a.configuration.numberOfChannels));if(b&&b.configuration&&(b.configuration.codec&&(c.videoCodec=b.configuration.codec,c.codecs=c.codecs?c.codecs+(","+c.videoCodec):c.videoCodec),b.configuration.bitrate&&(c.videoBandwidth=b.configuration.bitrate,c.bandwidth+=c.videoBandwidth),b.configuration.framerate&&(c.frameRate=b.configuration.framerate),b.configuration.width&&(c.width=b.configuration.width),b.configuration.height&&
2025-06-27 11:02:59 +02:00
(c.height=b.configuration.height),b.configuration.colorSpace&&b.configuration.colorSpace.transfer))switch(b.configuration.colorSpace.transfer){case "pq":c.hdr="PQ";break;case "hlg":c.hdr="HLG";break;case "bt709":c.hdr="SDR"}return c}function hg(a){return a.allowedByApplication&&a.allowedByKeySystem&&0==a.disabledUntilTime}function ig(a){return a.filter(function(b){return hg(b)})}
function jg(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=Gc(yc(b),a.map(function(k){return k.language}));h&&(e=a.filter(function(k){return yc(k.language)==h}))}e=e.filter(function(k){return k.forced==d});if(c){if(a=kg(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(Af,[]);return a.length?
kg(e,a[0]):e}function kg(a,b){return a.filter(function(c){return c.roles.includes(b)})}function lg(a,b){b.length&&(b=b.filter(function(c){return gf(a.codecs)==gf(c.codecs)}).sort(function(c,d){return c.bandwidth&&d.bandwidth&&c.bandwidth!=d.bandwidth?c.bandwidth-d.bandwidth:(c.width||0)-(d.width||0)}),a.trickModeVideo=b[0],1<b.length&&(b=b.find(function(c){return a.width==c.width&&a.height==c.height})))&&(a.trickModeVideo=b)}
function Qf(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"}
function mg(a,b,c){if(0==c.autoShowText)return!1;if(1==c.autoShowText)return!0;var d=yc(c.preferredTextLanguage);b=yc(b.language);if(2==c.autoShowText)return xc(b,d);if(3==c.autoShowText){if(!a)return!1;a=yc(a.language);return xc(b,d)&&!xc(a,b)}ab("Invalid autoShowText setting!");return!1}S("shaka.util.StreamUtils",Ef);Ef.meetsRestrictions=If;
var Sf=new Map,eg=0,Xf=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),Yf=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function ng(){var a=this;this.G=null;this.l=!1;this.s=new Nc;this.j=new Oc;navigator.connection&&navigator.connection.addEventListener&&this.j.o(navigator.connection,"change",function(){if(a.l&&a.g.useNetworkInformation){a.s=new Nc;a.g&&a.s.configure(a.g.advanced);var b=a.chooseVariant();b&&navigator.onLine&&a.G(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch)}});this.F=[];this.H=1;this.I=!1;this.h=this.m=this.g=this.u=null;this.B=new zf(function(){if(a.l&&(a.g.restrictToElementSize||a.g.restrictToScreenSize)){var b=
a.chooseVariant();b&&a.G(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch)}});this.C=window;"documentPictureInPicture"in window&&this.j.o(window.documentPictureInPicture,"enter",function(){a.C=window.documentPictureInPicture.window;a.B&&a.B.Ka();a.j.qa(a.C,"pagehide",function(){a.C=window;a.B&&a.B.Ka()})});this.D=this.i=null}p=ng.prototype;p.stop=function(){this.G=null;this.l=!1;this.F=[];this.H=1;this.m=this.u=null;this.h&&(this.h.disconnect(),this.h=null);this.B.stop();this.D=this.i=null};
2025-06-19 04:02:44 +02:00
p.release=function(){this.j.release();this.B=null};p.init=function(a){this.G=a};
p.chooseVariant=function(){var a=Infinity,b=Infinity;if(this.g.restrictToScreenSize){var c=this.g.ignoreDevicePixelRatio?1:this.C.devicePixelRatio;a=this.C.screen.height*c;b=this.C.screen.width*c}if(this.h&&this.g.restrictToElementSize){c=this.g.ignoreDevicePixelRatio?1:this.C.devicePixelRatio;var d=this.m.clientHeight,e=this.m.clientWidth;this.i&&document.pictureInPictureElement&&document.pictureInPictureElement==this.m&&(d=this.i.height,e=this.i.width);a=Math.min(a,d*c);b=Math.min(b,e*c)}c=this.F.filter(function(l){return l&&
2025-06-27 11:02:59 +02:00
!(l.audio&&l.audio.fastSwitching||l.video&&l.video.fastSwitching)});c.length||(c=this.F);d=c;c.length!=this.F.length&&(d=this.F.filter(function(l){return l&&(l.audio&&l.audio.fastSwitching||l.video&&l.video.fastSwitching?!0:!1)}));c=og(this,this.g.restrictions,d,Infinity,Infinity);if(Infinity!=a||Infinity!=b){c=pg(c);c=t(c);for(e=c.next();!e.done;e=c.next())if(e=e.value,e.height>=a&&e.width>=b){a=e.height;b=e.width;break}c=og(this,this.g.restrictions,d,a,b)}a=this.getBandwidthEstimate();d.length&&
!c.length&&(c=og(this,null,d,Infinity,Infinity),c=[c[0]]);b=c[0]||null;for(d=0;d<c.length;d++){e=c[d];for(var f=isNaN(this.H)?1:Math.abs(this.H),g=f*e.bandwidth/this.g.bandwidthDowngradeTarget,h={bandwidth:Infinity},k=d+1;k<c.length;k++)if(e.bandwidth!=c[k].bandwidth){h=c[k];break}f=f*h.bandwidth/this.g.bandwidthUpgradeTarget;a>=g&&a<=f&&(b.bandwidth!=e.bandwidth||b.bandwidth==e.bandwidth&&b.video&&e.video&&(b.video.width<e.video.width||b.video.height<e.video.height))&&(b=e)}this.u=Date.now();return b};
p.enable=function(){this.l=!0};p.disable=function(){this.l=!1};p.segmentDownloaded=function(a,b,c,d){var e=a;this.g.removeLatencyFromFirstPacketTime&&d&&1===d.packetNumber&&d.timeToFirstByte&&(e=a-d.timeToFirstByte);e<this.g.cacheLoadThreshold||(this.s.sample(e,b),c&&null!=this.u&&this.l&&qg(this))};p.trySuggestStreams=function(){null!=this.u&&this.l&&qg(this)};
2025-06-19 04:02:44 +02:00
p.getBandwidthEstimate=function(){var a=this.g.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&(a=1E6*navigator.connection.downlink);if(navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&this.g.preferNetworkInformationBandwidth)return a;a=this.s.getBandwidthEstimate(a);return this.D?this.D.getBandwidthEstimate(a):a};p.setVariants=function(a){this.F=a};p.playbackRateChanged=function(a){this.H=a};
2025-06-27 11:02:59 +02:00
p.setMediaElement=function(a){function b(){c.B.X(rg)}var c=this;this.m=a;this.h&&(this.h.disconnect(),this.h=null);this.m&&"ResizeObserver"in window&&(this.h=new ResizeObserver(b),this.h.observe(this.m));this.j.o(a,"enterpictureinpicture",function(d){d.pictureInPictureWindow&&(c.i=d.pictureInPictureWindow,c.j.o(c.i,"resize",b))});this.j.o(a,"leavepictureinpicture",function(){c.i&&c.j.Da(c.i,"resize",b);c.i=null})};p.setCmsdManager=function(a){this.D=a};
p.configure=function(a){this.g=a;this.s&&this.g&&this.s.configure(this.g.advanced)};function qg(a){if(!a.I){var b=a.s;if(!(b.g>=b.i))return;a.I=!0;a.u-=1E3*(a.g.switchInterval-a.g.minTimeToSwitch)}Date.now()-a.u<1E3*a.g.switchInterval||(b=a.chooseVariant(),a.getBandwidthEstimate(),b&&a.G(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch))}
function og(a,b,c,d,e){if(a.D){var f=a.D.Qi();f&&(c=c.filter(function(g){return g.bandwidth&&f?g.bandwidth<=f:!0}))}b&&(c=c.filter(function(g){return If(g,b,{width:e,height:d})}));return c.sort(function(g,h){return g.bandwidth-h.bandwidth})}function pg(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.video)&&c.height&&c.width&&b.push({height:c.height,width:c.width});return b.sort(function(d,e){return d.width-e.width})}S("shaka.abr.SimpleAbrManager",ng);ng.prototype.configure=ng.prototype.configure;
ng.prototype.setCmsdManager=ng.prototype.setCmsdManager;ng.prototype.setMediaElement=ng.prototype.setMediaElement;ng.prototype.playbackRateChanged=ng.prototype.playbackRateChanged;ng.prototype.setVariants=ng.prototype.setVariants;ng.prototype.getBandwidthEstimate=ng.prototype.getBandwidthEstimate;ng.prototype.trySuggestStreams=ng.prototype.trySuggestStreams;ng.prototype.segmentDownloaded=ng.prototype.segmentDownloaded;ng.prototype.disable=ng.prototype.disable;ng.prototype.enable=ng.prototype.enable;
ng.prototype.chooseVariant=ng.prototype.chooseVariant;ng.prototype.init=ng.prototype.init;ng.prototype.release=ng.prototype.release;ng.prototype.stop=ng.prototype.stop;var rg=1;S("shaka.config.CrossBoundaryStrategy",{KEEP:"keep",RESET:"reset",RESET_TO_ENCRYPTED:"reset_to_encrypted",RESET_ON_ENCRYPTION_CHANGE:"RESET_ON_ENCRYPTION_CHANGE"});function sg(a,b){if(a===b||!a.length||!b.length)return!0;a=t(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;if(tg(c))return!0;for(var d=t(b),e=d.next();!e.done;e=d.next())if(e=e.value,c.keySystem===e.keySystem||tg(e))return!0}return!1}
function wg(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.keySystem==f.keySystem){e=new Map;for(var g=t((d.initData||[]).concat(f.initData||[])),h=g.next();!h.done;h=g.next())h=h.value,e.set(h.keyId,h);e=Array.from(e.values());g=d.keyIds&&f.keyIds?new Set([].concat(x(d.keyIds),x(f.keyIds))):d.keyIds||f.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri||
f.licenseServerUri,distinctiveIdentifierRequired:d.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:d.persistentStateRequired||f.persistentStateRequired,videoRobustness:d.videoRobustness||f.videoRobustness,audioRobustness:d.audioRobustness||f.audioRobustness,serverCertificate:d.serverCertificate||f.serverCertificate,serverCertificateUri:d.serverCertificateUri||f.serverCertificateUri,initData:e,keyIds:g});break}else tg(d)?c.push(d):tg(f)&&c.push(f)}return c}
function xg(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function yg(a){return a?!!a.match(/^com\.apple\.fps/):!1}function tg(a){return(a=a.licenseServerUri)?a.startsWith("data:application/json;base64,"):!1}var zg=new Qb(function(){return Lb(new Uint8Array([0]))}),Ag=new Map;function Fg(a,b){var c=Gg();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.s=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.m=null==a.backoffFactor?c.backoffFactor:a.backoffFactor;this.g=0;this.h=this.j;if(this.i=void 0===b?!1:b)this.g=1}
function Hg(a){var b,c;return Q(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new V(2,7,1010);b=a.g;a.g++;if(0==b)return d.return();c=a.h*(1+(2*Math.random()-1)*a.s);return F(d,new Promise(function(e){(new zf(e)).X(c/1E3)}),2)}a.h*=a.m;I(d)})}function Gg(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function Ig(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}Ig.prototype.resolve=function(){};Ig.prototype.reject=function(){};function Jg(a,b){this.promise=a;this.i=b;this.g=null}function Kg(a){return new Jg(Promise.reject(a),function(){return Promise.resolve()})}function Lg(){var a=Promise.reject(new V(2,7,7001));a.catch(function(){});return new Jg(a,function(){return Promise.resolve()})}function Mg(a){return new Jg(Promise.resolve(a),function(){return Promise.resolve()})}function Ng(a){return new Jg(a,function(){return a.catch(function(){})})}Jg.prototype.abort=function(){this.g||(this.g=this.i());return this.g};
function Og(a){return new Jg(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}Jg.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
Jg.prototype.ab=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=Pg(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Ig;f.catch(function(){});var g=new V(2,7,7001);this.promise.then(c(!0),c(!1));return new Jg(f,function(){return d()})};
function Pg(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()}}}ea.Object.defineProperties(Jg.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return null!==this.g}}});S("shaka.util.AbortableOperation",Jg);Jg.prototype.chain=Jg.prototype.ab;Jg.prototype["finally"]=Jg.prototype.finally;
Jg.all=Og;Jg.prototype.abort=Jg.prototype.abort;Jg.notAbortable=Ng;Jg.completed=Mg;Jg.aborted=Lg;Jg.failed=Kg;function Qg(){this.g=[]}function Rg(a,b){a.g.push(b.finally(function(){sd(a.g,b)}))}Qg.prototype.destroy=function(){for(var a=[],b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function Sg(a,b,c,d,e,f,g){jb.call(this);this.i=null;this.j=!1;this.u=new Qg;this.g=new Set;this.h=new Set;this.s=a||null;this.m=b||null;this.B=c||null;this.C=d||null;this.D=e||null;this.G=f||null;this.F=g||null;this.l=new Map}pa(Sg,jb);p=Sg.prototype;p.configure=function(a){this.i=a};function Tg(a,b,c,d){d=void 0===d?!1:d;c=c||Ug;var e=Vg.get(a);(!e||c>=e.priority)&&Vg.set(a,{priority:c,Pf:b,Pl:d})}
function Wg(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())b.g.add(d.value);a=t(a.h);for(c=a.next();!c.done;c=a.next())b.h.add(c.value)}p.Sl=function(a){this.g.add(a)};p.pm=function(a){this.g.delete(a)};p.hk=function(){this.g.clear()};p.Tl=function(a){this.h.add(a)};p.qm=function(a){this.h.delete(a)};p.ik=function(){this.h.clear()};p.Fi=function(){this.l.clear()};
function Xg(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}p.destroy=function(){this.j=!0;this.g.clear();this.h.clear();this.l.clear();jb.prototype.release.call(this);return this.u.destroy()};
p.request=function(a,b,c){var d=this,e=new Yg;if(this.j){var f=Promise.reject(new V(2,7,7001));f.catch(function(){});return new Zg(f,function(){return Promise.resolve()},e)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?Ed(b.retryParameters):Gg();b.uris=Ed(b.uris);f=$g(this,a,b,c);var g=f.ab(function(){return ah(d,a,b,c,new Fg(b.retryParameters,!1),0,null,e)}),h=g.ab(function(q){return bh(d,a,q,c)}),k=Date.now(),l=0;f.promise.then(function(){l=Date.now()-k},function(){});
var m=0;g.promise.then(function(){m=Date.now()},function(){});var n=h.ab(function(q){var r=Date.now()-m,u=q.response;u.timeMs+=l;u.timeMs+=r;q.ql||!d.s||u.fromCache||"HEAD"==b.method||a!=ch||d.s(u.timeMs,u.data.byteLength,dh(c),b,c);d.F&&d.F(a,u,c);return u},function(q){q&&(q.severity=2);throw q;});f=new Zg(n.promise,function(){return n.abort()},e);Rg(this.u,f);return f};
function $g(a,b,c,d){function e(h){f=f.ab(function(){c.body&&(c.body=Lb(c.body));return h(b,c,d)})}var f=Mg(void 0);a.D&&e(a.D);a=t(a.g);for(var g=a.next();!g.done;g=a.next())e(g.value);return f.ab(void 0,function(h){if(h instanceof V&&7001==h.code)throw h;throw new V(2,1,1006,h);})}
function ah(a,b,c,d,e,f,g,h){a.i.forceHTTP&&(c.uris[f]=c.uris[f].replace("https://","http://"));a.i.forceHTTPS&&(c.uris[f]=c.uris[f].replace("http://","https://"));0<f&&a.G&&a.G(b,d,c.uris[f],c.uris[f-1]);var k=new qb(c.uris[f]),l=k.hc,m=!1;l||(l=location.protocol,l=l.slice(0,-1),sb(k,l),c.uris[f]=k.toString());l=l.toLowerCase();var n=(l=Vg.get(l))?l.Pf:null;if(!n)return Kg(new V(2,1,1E3,k));var q=l.Pl;(k=a.l.get(k.Gb))&&(c.headers["common-access-token"]=k);var r=null,u=null,w=!1,v=!1,y;return Ng(Hg(e)).ab(function(){if(a.j)return Lg();
y=Date.now();var z=0;c.requestStartTime=Date.now();var A=n(c.uris[f],c,b,function(G,C,E){r&&r.stop();u&&u.X(D/1E3);a.s&&b==ch&&(z++,c.packetNumber=z,a.s(G,C,dh(d),c,d),m=!0,h.g=E)},function(G){v=!0;c.timeToFirstByte=Date.now()-c.requestStartTime;a.m&&a.m(G,c,b)},{minBytesForProgressEvents:a.i.minBytesForProgressEvents});if(!q)return A;var B=c.retryParameters.connectionTimeout;B&&(r=new zf(function(){w=!0;A.abort()}),r.X(B/1E3));var D=c.retryParameters.stallTimeout;D&&(u=new zf(function(){w=!0;A.abort()}));
return A}).ab(function(z){r&&r.stop();u&&u.stop();void 0==z.timeMs&&(z.timeMs=Date.now()-y);var A=z.headers["common-access-token"];if(A){var B=new qb(z.uri);a.l.set(B.Gb,A)}A={response:z,ql:m};!v&&a.m&&a.m(z.headers,c,b);a.B&&a.B(c,z);return A},function(z){r&&r.stop();u&&u.stop();if(a.C){var A=null,B=0;z instanceof V&&(A=z,1001==z.code&&(B=z.data[1]));a.C(c,A,B,w)}if(a.j)return Lg();w&&(z=new V(1,1,1003,c.uris[f],b));if(z instanceof V){if(7001==z.code)throw z;if(1010==z.code)throw g;if(1==z.severity){A=
(new Map).set("error",z);A=new U("retry",A);A.cancelable=!0;a.dispatchEvent(A);if(A.defaultPrevented)throw z;f=(f+1)%c.uris.length;return ah(a,b,c,d,e,f,z,h)}}throw z;})}
function bh(a,b,c,d){var e=Mg(void 0);a=t(a.h);for(var f=a.next(),g={};!f.done;g={uj:void 0},f=a.next())g.uj=f.value,e=e.ab(function(h){return function(){var k=c.response;k.data&&(k.data=Lb(k.data));return(0,h.uj)(b,k,d)}}(g));return e.ab(function(){return c},function(h){var k=2;if(h instanceof V){if(7001==h.code)throw h;k=h.severity}throw new V(k,1,1007,h);})}function dh(a){if(a){var b=a.segment;a=a.stream;if(b&&a&&a.fastSwitching&&b.s)return!1}return!0}S("shaka.net.NetworkingEngine",Sg);
Sg.prototype.request=Sg.prototype.request;Sg.prototype.destroy=Sg.prototype.destroy;Sg.makeRequest=Xg;Sg.defaultRetryParameters=function(){return Gg()};Sg.prototype.clearCommonAccessTokenMap=Sg.prototype.Fi;Sg.prototype.clearAllResponseFilters=Sg.prototype.ik;Sg.prototype.unregisterResponseFilter=Sg.prototype.qm;Sg.prototype.registerResponseFilter=Sg.prototype.Tl;Sg.prototype.clearAllRequestFilters=Sg.prototype.hk;Sg.prototype.unregisterRequestFilter=Sg.prototype.pm;
Sg.prototype.registerRequestFilter=Sg.prototype.Sl;Sg.unregisterScheme=function(a){Vg.delete(a)};Sg.registerScheme=Tg;Sg.prototype.configure=Sg.prototype.configure;function Yg(){this.g=0}Sg.NumBytesRemainingClass=Yg;function Zg(a,b,c){Jg.call(this,a,b);this.h=c}pa(Zg,Jg);Sg.PendingRequest=Zg;var ch=1;Sg.RequestType={MANIFEST:0,SEGMENT:ch,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8};
Sg.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5,MPD_PATCH:6,MEDIATAILOR_SESSION_INFO:7,MEDIATAILOR_TRACKING_INFO:8,MEDIATAILOR_STATIC_RESOURCE:9,MEDIATAILOR_TRACKING_EVENT:10,INTERSTITIAL_ASSET_LIST:11,INTERSTITIAL_AD_URL:12};var Ug=3;Sg.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:Ug};var Vg=new Map;function eh(a){this.g=!1;this.h=new Ig;this.i=a}eh.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 fh(a,b){if(a.g){if(b instanceof V&&7003==b.code)throw b;throw new V(2,7,7003,b);}};function gh(a){for(var b=new Map,c=t(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function hh(a){var b={};a.forEach(function(c,d){b[d]=c});return b};function ih(a,b){this.h=Ob(a);this.i=b==jh;this.g=0}p=ih.prototype;p.Oa=function(){return this.g<this.h.byteLength};p.Ua=function(){return this.g};p.getLength=function(){return this.h.byteLength};p.aa=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a}catch(b){throw kh();}};p.Fa=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a}catch(b){throw kh();}};p.W=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a}catch(b){throw kh();}};
p.Jh=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a}catch(b){throw kh();}};p.Ld=function(){try{if(this.i){var a=this.h.getUint32(this.g,!0);var b=this.h.getUint32(this.g+4,!0)}else b=this.h.getUint32(this.g,!1),a=this.h.getUint32(this.g+4,!1)}catch(c){throw kh();}if(2097151<b)throw new V(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};p.Xb=function(a){if(this.g+a>this.h.byteLength)throw kh();var b=Kb(this.h,this.g,a);this.g+=a;return b};
p.skip=function(a){if(this.g+a>this.h.byteLength)throw kh();this.g+=a};p.vj=function(a){if(this.g<a)throw kh();this.g-=a};p.seek=function(a){if(0>a||a>this.h.byteLength)throw kh();this.g=a};p.jd=function(){for(var a=this.g;this.Oa()&&0!=this.h.getUint8(this.g);)this.g+=1;a=Kb(this.h,a,this.g-a);this.g+=1;return Wb(a)};function kh(){return new V(2,3,3E3)}S("shaka.util.DataViewReader",ih);ih.prototype.readTerminatedString=ih.prototype.jd;ih.prototype.seek=ih.prototype.seek;ih.prototype.rewind=ih.prototype.vj;
ih.prototype.skip=ih.prototype.skip;ih.prototype.readBytes=ih.prototype.Xb;ih.prototype.readUint64=ih.prototype.Ld;ih.prototype.readInt32=ih.prototype.Jh;ih.prototype.readUint32=ih.prototype.W;ih.prototype.readUint16=ih.prototype.Fa;ih.prototype.readUint8=ih.prototype.aa;ih.prototype.getLength=ih.prototype.getLength;ih.prototype.getPosition=ih.prototype.Ua;ih.prototype.hasMoreData=ih.prototype.Oa;var jh=1;ih.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:jh};function lh(){this.i=new Map;this.h=new Map;this.g=!1}p=lh.prototype;p.box=function(a,b){a=mh(a);this.i.set(a,nh);this.h.set(a,b);return this};p.V=function(a,b){a=mh(a);this.i.set(a,oh);this.h.set(a,b);return this};p.stop=function(){this.g=!0};p.parse=function(a,b,c){a=new ih(a,0);for(this.g=!1;a.Oa()&&!this.g;)this.Gd(0,a,b,c)};
p.Gd=function(a,b,c,d){var e=b.Ua();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.W(),g=b.W(),h=ph(g),k=!1;switch(f){case 0:f=b.getLength()-e;break;case 1:if(d&&b.Ua()+8>b.getLength()){this.g=!0;return}f=b.Ld();k=!0}var l=this.h.get(g);if(l){var m=null,n=null;if(this.i.get(g)==oh){if(d&&b.Ua()+4>b.getLength()){this.g=!0;return}n=b.W();m=n>>>24;n&=16777215}g=e+f;c&&g>b.getLength()&&(g=b.getLength());d&&g>b.getLength()?this.g=!0:(g-=b.Ua(),b=0<g?b.Xb(g):new Uint8Array(0),b=new ih(b,0),l({name:h,parser:this,
partialOkay:c||!1,stopOnPartial:d||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.Ua(),b.getLength()-b.Ua()))}};function qh(a){for(var b=rh(a);a.reader.Oa()&&!a.parser.g;)a.parser.Gd(a.start+b,a.reader,a.partialOkay,a.stopOnPartial)}function sh(a){for(var b=rh(a),c=a.reader.W(),d=0;d<c&&(a.parser.Gd(a.start+b,a.reader,a.partialOkay,a.stopOnPartial),!a.parser.g);d++);}
function th(a){var b=rh(a);for(a.reader.skip(78);a.reader.Oa()&&!a.parser.g;)a.parser.Gd(a.start+b,a.reader,a.partialOkay,a.stopOnPartial)}function uh(a){var b=rh(a);a.reader.skip(8);var c=a.reader.Fa();a.reader.skip(6);2==c?a.reader.skip(48):a.reader.skip(12);for(1==c&&a.reader.skip(16);a.reader.Oa()&&!a.parser.g;)a.parser.Gd(a.start+b,a.reader,a.partialOkay,a.stopOnPartial)}function vh(a){return function(b){a(b.reader.Xb(b.reader.getLength()-b.reader.Ua()))}}
function mh(a){var b=0;a=t(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function ph(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function rh(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}S("shaka.util.Mp4Parser",lh);lh.headerSize=rh;lh.typeToString=ph;lh.allData=vh;lh.audioSampleEntry=uh;lh.visualSampleEntry=th;lh.sampleDescription=sh;lh.children=qh;lh.prototype.parseNext=lh.prototype.Gd;lh.prototype.parse=lh.prototype.parse;
lh.prototype.stop=lh.prototype.stop;lh.prototype.fullBox=lh.prototype.V;lh.prototype.box=lh.prototype.box;var nh=0,oh=1;function wh(a){var b=this;this.g=[];this.h=[];this.data=[];(new lh).box("moov",qh).box("moof",qh).V("pssh",function(c){if(!(1<c.version)){var d=Kb(c.reader.h,-12,c.size);b.data.push(d);b.g.push(jc(c.reader.Xb(16)));if(0<c.version){d=c.reader.W();for(var e=0;e<d;e++){var f=jc(c.reader.Xb(16));b.h.push(f)}}}}).parse(a)}
function xh(a,b,c,d){var e=a.length,f=b.length+16+e;0<d&&(f+=4+16*c.size);var g=new Uint8Array(f),h=Ob(g),k=0;h.setUint32(k,f);k+=4;h.setUint32(k,1886614376);k+=4;1>d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0<d)for(h.setUint32(k,c.size),k+=4,b=t(c),c=b.next();!c.done;c=b.next())c=ic(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function yh(a){var b=this;this.D=a;this.j=this.B=null;this.ba=this.Z=!1;this.H=0;this.g=null;this.s=new Oc;this.i=new Map;this.P=[];this.C=new Map;this.J=!1;this.m=new Ig;this.h=null;this.u=function(c){2==c.severity&&b.m.reject(c);a.onError(c)};this.U=new Map;this.$=new Map;this.K=new zf(function(){return zh(b)});this.N=!1;this.L=[];this.R=!1;this.I=new zf(function(){Ah(b)});this.m.catch(function(){});this.l=new eh(function(){return Bh(b)});this.Y=!1;this.F=this.G=null;this.O=function(){return!1}}
p=yh.prototype;p.destroy=function(){return this.l.destroy()};function Bh(a){return Q(function(b){switch(b.g){case 1:return a.s.release(),a.s=null,a.m.reject(),a.I.stop(),a.I=null,a.K.stop(),a.K=null,F(b,Ch(a),2);case 2:if(!a.j){b.A(3);break}ta(b,4);return F(b,a.j.setMediaKeys(null),6);case 6:wa(b,5);break;case 4:xa(b);case 5:a.j=null;case 3:a.g=null,a.B=null,a.C=new Map,a.h=null,a.u=function(){},a.D=null,a.Y=!1,a.G=null,I(b)}})}p.configure=function(a,b){this.h=a;b&&(this.O=b);this.I&&this.I.ya(this.h.updateExpirationTime)};
function Dh(a,b,c){a.ba=!0;a.C=new Map;a.N=c;return Eh(a,b,!1)}function Fh(a,b,c,d){d=void 0===d?!0:d;a.C=new Map;c=t(c);for(var e=c.next();!e.done;e=c.next())a.C.set(e.value,{initData:null,initDataType:null});c=t(a.h.persistentSessionsMetadata);for(e=c.next();!e.done;e=c.next())e=e.value,a.C.set(e.sessionId,{initData:e.initData,initDataType:e.initDataType});a.N=0<a.C.size;return Eh(a,b,d)}
function Gh(a,b,c,d,e,f){var g=new Map;e={audioCapabilities:e,videoCapabilities:f,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:b};e.drmInfos=[{keySystem:b,licenseServerUri:c,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioRobustness:"",videoRobustness:"",serverCertificate:d,serverCertificateUri:"",initData:null,keyIds:null}];g.set(b,e);return Hh(a,g,[])}
function Eh(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B;return Q(function(D){if(1==D.g){Ih(a.h.clearKeys,b);d=b.some(function(G){return G.video&&G.video.drmInfos.length||G.audio&&G.audio.drmInfos.length?!0:!1});e=gh(a.h.servers);f=gh(a.h.advanced||{});!d&&c&&Jh(b,e);g=new WeakSet;h=t(b);for(k=h.next();!k.done;k=h.next())for(l=k.value,m=Kh(l),n=t(m),q=n.next();!q.done;q=n.next())r=q.value,g.has(r)||(g.add(r),Lh(r,e,f,a.h.keySystemsMapping));u=function(G,C){var E=[];G=t(G);for(var H=G.next();!H.done;H=
G.next()){H=H.value;var K=H[C]||f.has(H.keySystem)&&f.get(H.keySystem)[C]||"",J;if(J=""==K)J=(J=H.keySystem)?!!J.match(/^com\.widevine\.alpha/):!1;J&&("audioRobustness"==C?K=[a.h.defaultAudioRobustnessForWidevine]:"videoRobustness"==C&&(K=[a.h.defaultVideoRobustnessForWidevine]));if("string"===typeof K)E.push(H);else if(Array.isArray(K))for(0===K.length&&(K=[""]),K=t(K),J=K.next();!J.done;J=K.next()){var L={};E.push(Object.assign({},H,(L[C]=J.value,L)))}}return E};w=new WeakSet;v=t(b);for(y=v.next();!y.done;y=
v.next())z=y.value,z.video&&!w.has(z.video)&&(z.video.drmInfos=u(z.video.drmInfos,"videoRobustness"),z.video.drmInfos=u(z.video.drmInfos,"audioRobustness"),w.add(z.video)),z.audio&&!w.has(z.audio)&&(z.audio.drmInfos=u(z.audio.drmInfos,"videoRobustness"),z.audio.drmInfos=u(z.audio.drmInfos,"audioRobustness"),w.add(z.audio));return F(D,Of(b,a.N,a.Y,a.h.preferredKeySystems),2)}fh(a.l);A=d||0<e.size;if(!A)return a.Z=!0,D.return(Promise.resolve());B=Hh(a,void 0,b);return D.return(d?B:B.catch(function(){}))})}
function Mh(a){var b;return Q(function(c){switch(c.g){case 1:if(a.j.mediaKeys)return c.return();if(!a.G){c.A(2);break}return F(c,a.G,3);case 3:return fh(a.l),c.return();case 2:return ta(c,4),a.G=a.j.setMediaKeys(a.B),F(c,a.G,6);case 6:wa(c,5);break;case 4:b=xa(c),a.u(new V(2,6,6003,b.message));case 5:fh(a.l),I(c)}})}function Nh(a,b){return Q(function(c){if(1==c.g)return F(c,Mh(a),2);Oh(a,b.initDataType,Kb(b.initData));I(c)})}
p.$b=function(a){var b=this,c,d,e;return Q(function(f){if(1==f.g){if(b.j===a)return f.return();if(!b.B)return b.s.qa(a,"encrypted",function(){b.u(new V(2,6,6010))}),f.return();b.j=a;b.s.qa(b.j,"play",function(){for(var g=t(b.L),h=g.next();!h.done;h=g.next())Ph(b,h.value);b.R=!0;b.L=[]});b.j.remote?(b.s.o(b.j.remote,"connect",function(){return Ch(b)}),b.s.o(b.j.remote,"connecting",function(){return Ch(b)}),b.s.o(b.j.remote,"disconnect",function(){return Ch(b)})):"webkitCurrentPlaybackTargetIsWireless"in
b.j&&b.s.o(b.j,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Ch(b)});b.F=b.g?b.g.initData.find(function(g){return 0<g.initData.length})||null:null;c=b.g.keySystem;d="com.apple.fps"==c;e=Rb().Ga();"GECKO"===e&&c.startsWith("com.microsoft.playready.recommendation")&&(d=!0);return d||!(b.F||b.C.size||b.h.parseInbandPsshEnabled)?(b.s.o(b.j,"encrypted",function(g){return Nh(b,g)}),f.A(2)):F(f,Mh(b),2)}Qh(b).catch(function(){});I(f)})};
function Rh(a){var b,c,d,e,f;return Q(function(g){switch(g.g){case 1:if(!a.B||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.A(2);break}b=Xg([a.g.serverCertificateUri],a.h.retryParameters);ta(g,3);c=a.D.xc.request(5,b,{isPreload:a.O()});return F(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=Kb(d.data);wa(g,4);break;case 3:throw e=xa(g),new V(2,6,6017,e);case 4:if(a.l.g)return g.return();case 2:if(!a.g.serverCertificate||!a.g.serverCertificate.length)return g.return();
ta(g,6);return F(g,a.B.setServerCertificate(a.g.serverCertificate),8);case 8:wa(g,0);break;case 6:throw f=xa(g),new V(2,6,6004,f.message);}})}function Sh(a,b){var c,d,e;return Q(function(f){if(1==f.g)return F(f,Th(a,b,{initData:null,initDataType:null}),2);if(3!=f.g){c=f.h;if(!c)return f.return();d=[];if(e=a.i.get(c))e.Nb=new Ig,d.push(e.Nb);d.push(c.remove());return F(f,Promise.all(d),3)}a.i.delete(c);I(f)})}
function Qh(a){var b,c,d,e,f;return Q(function(g){if(1==g.g){if(!a.C.size)return g.A(2);a.C.forEach(function(h,k){Th(a,k,h)});return F(g,a.m,3)}if(2!=g.g){b=a.g&&a.g.keyIds||new Set([]);if(0<b.size&&Uh(a))return g.return(a.m);a.J=!1;a.m=new Ig;a.m.catch(function(){})}c=(a.g?a.g.initData:[])||[];d=t(c);for(e=d.next();!e.done;e=d.next())f=e.value,Oh(a,f.initDataType,f.initData);Vh(a)&&a.m.resolve();return g.return(a.m)})}
function Oh(a,b,c){if(c.length){if(a.h.ignoreDuplicateInitData){var d=a.i.values();d=t(d);for(var e=d.next();!e.done;e=d.next())if(Jb(c,e.value.initData))return;var f=!1;a.C.forEach(function(g){!f&&Jb(c,g.initData)&&(f=!0)});if(f)return}a.J=!0;0<a.i.size&&Vh(a)&&(a.m.resolve(),a.J=!1,a.m=new Ig,a.m.catch(function(){}));Wh(a,b,c,a.g.sessionType)}}function Xh(a){a=a.i.keys();a=kb(a,function(b){return b.sessionId});return Array.from(a)}
p.eh=function(){var a=this,b=this.i.keys();b=kb(b,function(c){var d=a.i.get(c);return{sessionId:c.sessionId,sessionType:d.type,initData:d.initData,initDataType:d.initDataType}});return Array.from(b)};p.be=function(){var a=Infinity,b=this.i.keys();b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};function Yh(a){return a.H?a.H:NaN}p.nf=function(){return hh(this.$)};
function Hh(a,b,c){var d,e,f,g,h,k,l,m;return Q(function(n){switch(n.g){case 1:d=new Map;if(c.length){e=Zh(a,c,d);n.A(2);break}return F(n,$h(a,b),3);case 3:e=n.h;case 2:f=e;if(!f){if(!navigator.requestMediaKeySystemAccess)throw new V(2,6,6020);throw new V(2,6,6001);}fh(a.l);ta(n,4);f.getConfiguration();g=a.h.keySystemsMapping[f.keySystem]||f.keySystem;if(c.length){var q=g;var r=d.get(g);var u=[],w=[],v=[],y=[],z=[],A=new Set,B=new Set;ai(r,u,w,y,v,z,A,B);var D=a.N?"persistent-license":"temporary";
q={keySystem:q,encryptionScheme:u[0],licenseServerUri:w[0],distinctiveIdentifierRequired:r[0].distinctiveIdentifierRequired,persistentStateRequired:r[0].persistentStateRequired,sessionType:r[0].sessionType||D,audioRobustness:r[0].audioRobustness||"",videoRobustness:r[0].videoRobustness||"",serverCertificate:y[0],serverCertificateUri:v[0],initData:z,keyIds:A};0<B.size&&(q.keySystemUris=B);r=t(r);for(B=r.next();!B.done;B=r.next())B=B.value,B.distinctiveIdentifierRequired&&(q.distinctiveIdentifierRequired=
B.distinctiveIdentifierRequired),B.persistentStateRequired&&(q.persistentStateRequired=B.persistentStateRequired);r=q}else r=g,B=b.get(g),q=[],u=[],w=[],v=[],y=[],z=new Set,ai(B.drmInfos,q,u,v,w,y,z),r={keySystem:r,encryptionScheme:q[0],licenseServerUri:u[0],distinctiveIdentifierRequired:"required"==B.distinctiveIdentifier,persistentStateRequired:"required"==B.persistentState,sessionType:B.sessionTypes[0]||"temporary",audioRobustness:(B.audioCapabilities?B.audioCapabilities[0].robustness:"")||"",
videoRobustness:(B.videoCapabilities?B.videoCapabilities[0].robustness:"")||"",serverCertificate:v[0],serverCertificateUri:w[0],initData:y,keyIds:z};a.g=r;if(!a.g.licenseServerUri)throw new V(2,6,6012,a.g.keySystem);return F(n,f.createMediaKeys(),6);case 6:h=n.h;fh(a.l);a.B=h;if(!(""!=a.h.minHdcpVersion&&"getStatusForPolicy"in a.B)){n.A(7);break}ta(n,8);return F(n,a.B.getStatusForPolicy({minHdcpVersion:a.h.minHdcpVersion}),10);case 10:k=n.h;if("usable"!=k)throw new V(2,6,6018);fh(a.l);wa(n,7,4);break;
case 8:l=xa(n,4);if(l instanceof V)throw l;throw new V(2,6,6019,l.message);case 7:return a.Z=!0,F(n,Rh(a),11);case 11:fh(a.l);wa(n,0);break;case 4:m=xa(n);fh(a.l,m);a.g=null;if(m instanceof V)throw m;throw new V(2,6,6002,m.message);}})}
function Zh(a,b,c){for(var d=t(b),e=d.next();!e.done;e=d.next()){e=t(Kh(e.value));for(var f=e.next();!f.done;f=e.next())f=f.value,c.has(f.keySystem)||c.set(f.keySystem,[]),c.get(f.keySystem).push(f)}if(1==c.size&&c.has(""))throw new V(2,6,6E3);d=a.h.preferredKeySystems;d.length||(e=gh(a.h.servers),1==e.size&&(d=Array.from(e.keys())));e=t(d);var g=e.next();for(f={};!g.done;f={oj:void 0},g=e.next()){f.oj=g.value;g=t(b);for(var h=g.next();!h.done;h=g.next())if(h=h.value.decodingInfos.find(function(n){return function(q){return q.supported&&
null!=q.keySystemAccess&&q.keySystemAccess.keySystem==n.oj}}(f)))return h.keySystemAccess}e=t([!0,!1]);for(f=e.next();!f.done;f=e.next())for(f=f.value,g=t(b),h=g.next();!h.done;h=g.next()){h=t(h.value.decodingInfos);for(var k=h.next();!k.done;k=h.next())if(k=k.value,k.supported&&k.keySystemAccess){var l=k.keySystemAccess.keySystem;if(!d.includes(l)){var m=c.get(l);!m&&a.h.keySystemsMapping[l]&&(m=c.get(a.h.keySystemsMapping[l]));l=t(m);for(m=l.next();!m.done;m=l.next())if(!!m.value.licenseServerUri==
2025-06-19 04:02:44 +02:00
f)return k.keySystemAccess}}}return null}
2025-06-27 11:02:59 +02:00
function $h(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y;return Q(function(z){switch(z.g){case 1:if(1==b.size&&b.has(""))throw new V(2,6,6E3);d=t(b.values());for(e=d.next();!e.done;e=d.next())f=e.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;g=t(a.h.preferredKeySystems);h=g.next();case 2:if(h.done){z.A(4);break}k=h.value;if(!b.has(k)){z.A(3);break}l=b.get(k);ta(z,6);return F(z,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
z.h,z.return(c);case 6:xa(z);case 7:fh(a.l);case 3:h=g.next();z.A(2);break;case 4:m=t([!0,!1]),n=m.next();case 9:if(n.done){z.A(11);break}q=n.value;r=t(b.keys());u=r.next();case 12:if(u.done){n=m.next();z.A(9);break}w=u.value;v=b.get(w);y=v.drmInfos.some(function(A){return!!A.licenseServerUri});if(y!=q){z.A(13);break}ta(z,15);return F(z,navigator.requestMediaKeySystemAccess(w,[v]),17);case 17:return c=z.h,z.return(c);case 15:xa(z);case 16:fh(a.l);case 13:u=r.next();z.A(12);break;case 11:return z.return(c)}})}
function bi(a){Vh(a)&&a.m.resolve()}function ci(a,b){(new zf(function(){b.loaded=!0;bi(a)})).X(di)}
function Th(a,b,c){var d,e,f,g,h,k,l;return Q(function(m){switch(m.g){case 1:try{d=a.B.createSession("persistent-license")}catch(n){return e=new V(2,6,6005,n.message),a.u(e),m.return(Promise.reject(e))}a.s.o(d,"message",function(n){a.j&&a.h.delayLicenseRequestUntilPlayed&&a.j.paused&&!a.R?a.L.push(n):Ph(a,n)});a.s.o(d,"keystatuseschange",function(n){return ei(a,n)});f={initData:c.initData,initDataType:c.initDataType,loaded:!1,Eh:Infinity,Nb:null,type:"persistent-license"};a.i.set(d,f);ta(m,2);return F(m,
d.load(b),4);case 4:return g=m.h,fh(a.l),g||(a.i.delete(d),h=a.h.persistentSessionOnlinePlayback?1:2,a.u(new V(h,6,6013)),f.loaded=!0),ci(a,f),bi(a),m.return(d);case 2:k=xa(m),fh(a.l,k),a.i.delete(d),l=a.h.persistentSessionOnlinePlayback?1:2,a.u(new V(l,6,6005,k.message)),f.loaded=!0,bi(a);case 3:return m.return(Promise.resolve())}})}
function Wh(a,b,c,d){try{var e=a.B.createSession(d)}catch(f){a.u(new V(2,6,6005,f.message));return}a.s.o(e,"message",function(f){a.j&&a.h.delayLicenseRequestUntilPlayed&&a.j.paused&&!a.R?a.L.push(f):Ph(a,f)});a.s.o(e,"keystatuseschange",function(f){return ei(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Eh:Infinity,Nb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof V||(b=new V(2,6,6016,f));a.u(b);return}a.h.logLicenseExchange&&gc(c);e.generateRequest(b,c).catch(function(f){if(!a.l.g){a.i.delete(e);
var g=f.errorCode;if(g&&g.systemCode){var h=g.systemCode;0>h&&(h+=Math.pow(2,32));h="0x"+h.toString(16)}a.u(new V(2,6,6006,f.message,f,h))}})}function fi(a){return Q(function(b){return 1==b.g?a.J?F(b,a.m,3):b.A(0):F(b,Promise.all(a.P.map(function(c){return c.promise})),0)})}
function Ph(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w;Q(function(v){switch(v.g){case 1:c=b.target;a.h.logLicenseExchange&&gc(b.message);d=a.i.get(c);e=a.g.licenseServerUri;f=a.h.advanced[a.g.keySystem];"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer);g=Xg([e],a.h.retryParameters);g.body=b.message;g.method="POST";g.licenseRequestType=b.messageType;g.sessionId=c.sessionId;g.drmInfo=a.g;d&&(g.initData=d.initData,g.initDataType=d.initDataType);if(f&&f.headers)for(h in f.headers)g.headers[h]=
f.headers[h];if("org.w3.clearkey"===a.g.keySystem){var y=g,z=a.g;try{var A=Zb(y.body);if(A){var B=JSON.parse(A);B.type||(B.type=z.sessionType,y.body=$b(JSON.stringify(B)))}}catch(D){}}if(xg(a.g.keySystem))if(y=Xb(g.body,!0,!0),y.includes("PlayReadyKeyMessage")){y=Id(y,"PlayReadyKeyMessage");z=Sd(y,"HttpHeader");z=t(z);for(A=z.next();!A.done;A=z.next())B=A.value,A=Sd(B,"name")[0],B=Sd(B,"value")[0],g.headers[Qd(A)]=Qd(B);y=Sd(y,"Challenge")[0];g.body=hc(Qd(y))}else g.headers["Content-Type"]="text/xml; charset=utf-8";
k=Date.now();ta(v,2);m=a.D.xc.request(2,g,{isPreload:a.O()});a.P.push(m);return F(v,m.promise,4);case 4:l=v.h;sd(a.P,m);wa(v,3);break;case 2:n=xa(v);if(a.l.g)return v.return();q=new V(2,6,6007,n);1==a.i.size?(a.u(q),d&&d.Nb&&d.Nb.reject(q)):(d&&d.Nb&&d.Nb.reject(q),a.i.delete(c),Vh(a)&&(a.m.resolve(),a.K.X(.1)));return v.return();case 3:if(a.l.g)return v.return();a.H+=(Date.now()-k)/1E3;a.h.logLicenseExchange&&gc(l.data);ta(v,5);return F(v,c.update(l.data),7);case 7:wa(v,6);break;case 5:return r=
xa(v),u=new V(2,6,6008,r.message),a.u(u),d&&d.Nb&&d.Nb.reject(u),v.return();case 6:if(a.l.g)return v.return();w=new U("drmsessionupdate");a.D.onEvent(w);d&&(d.Nb&&d.Nb.resolve(),ci(a,d));I(v)}})}
function ei(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}h=Rb();if(xg(a.g.keySystem)&&16==g.byteLength&&h.Ph()){h=Ob(g);var k=h.getUint32(0,!0),l=h.getUint16(4,!0),m=h.getUint16(6,!0);h.setUint32(0,k,!1);h.setUint16(4,l,!1);h.setUint16(6,m,!1)}"status-pending"!=f&&(c.loaded=!0);"expired"==f&&(d=!0);g=jc(g).slice(0,32);a.U.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.Nb&&(a.i.delete(b),gi(b));Vh(a)&&(a.m.resolve(),
a.K.X(ki))}function zh(a){var b=a.U,c=a.$;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.u(new V(2,6,6014));a.D.Lf(hh(c))}
function li(){var a,b,c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L,N,O,M,P,R,T;return Q(function(ca){if(1==ca.g){a="org.w3.clearkey com.widevine.alpha com.widevine.alpha.experiment com.microsoft.playready com.microsoft.playready.hardware com.microsoft.playready.recommendation com.microsoft.playready.recommendation.3000 com.microsoft.playready.recommendation.3000.clearlead com.chromecast.playready com.apple.fps.1_0 com.apple.fps com.huawei.wiseplay".split(" ");if(!(window.MediaKeys&&window.navigator&&
window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)){b={};c=t(a);for(d=c.next();!d.done;d=c.next())e=d.value,b[e]=null;return ca.return(b)}f="1.0 1.1 1.2 1.3 1.4 2.0 2.1 2.2 2.3".split(" ");g=["SW_SECURE_CRYPTO","SW_SECURE_DECODE","HW_SECURE_CRYPTO","HW_SECURE_DECODE","HW_SECURE_ALL"];h=["150","2000","3000"];k={"com.widevine.alpha":g,"com.widevine.alpha.experiment":g,"com.microsoft.playready.recommendation":h};l=[{contentType:'video/mp4; codecs="avc1.42E01E"'},
{contentType:'video/webm; codecs="vp8"'}];m=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}];n={videoCapabilities:l,audioCapabilities:m,initDataTypes:["cenc","sinf","skd","keyids"]};q=[null,"cenc","cbcs","cbcs-1-9"];r=new Map;u=Rb();w=function(Y,Ma){var Na,Ea,va,Ja,Pa,za,ja,Aa,eb,fb,nb,wb,rb;return Q(function(Ua){switch(Ua.g){case 1:return ta(Ua,2),F(Ua,Ma.createMediaKeys(),5);case 5:Na=Ua.h;case 4:wa(Ua,3);break;case 2:return xa(Ua),Ua.return();case 3:va=
(Ea=Ma.getConfiguration().sessionTypes)?Ea.includes("persistent-license"):!1;u.gj()&&(va=!1);Ja=Ma.getConfiguration().videoCapabilities;Pa=Ma.getConfiguration().audioCapabilities;za={persistentState:va,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[],minHdcpVersions:[]};r.has(Y)&&r.get(Y)?za=r.get(Y):r.set(Y,za);(ja=Ja[0].encryptionScheme)&&!za.encryptionSchemes.includes(ja)&&za.encryptionSchemes.push(ja);(Aa=Ja[0].robustness)&&!za.videoRobustnessLevels.includes(Aa)&&za.videoRobustnessLevels.push(Aa);
(eb=Pa[0].robustness)&&!za.audioRobustnessLevels.includes(eb)&&za.audioRobustnessLevels.push(eb);if("getStatusForPolicy"in Na){fb=[];nb=t(f);wb=nb.next();for(rb={};!wb.done;rb={ge:void 0},wb=nb.next())rb.ge=wb.value,za.minHdcpVersions.includes(rb.ge)||fb.push(Na.getStatusForPolicy({minHdcpVersion:rb.ge}).then(function(se){return function(rc){"usable"!=rc||za.minHdcpVersions.includes(se.ge)||za.minHdcpVersions.push(se.ge)}}(rb)));return F(Ua,Promise.all(fb),0)}Ua.A(0)}})};v=function(Y,Ma,Na,Ea){var va,
Ja,Pa,za,ja,Aa,eb,fb,nb,wb,rb;return Q(function(Ua){switch(Ua.g){case 1:ta(Ua,2);va=Ed(n);Ja=t(va.videoCapabilities);for(Pa=Ja.next();!Pa.done;Pa=Ja.next())za=Pa.value,za.encryptionScheme=Ma,za.robustness=Na;ja=t(va.audioCapabilities);for(Aa=ja.next();!Aa.done;Aa=ja.next())eb=Aa.value,eb.encryptionScheme=Ma,eb.robustness=Ea;fb=Ed(va);fb.persistentState="required";fb.sessionTypes=["persistent-license"];nb=[fb,va];rb=Rb();return"MOBILE"==rb.Ja()?F(Ua,Df(5,navigator.requestMediaKeySystemAccess(Y,nb)),
7):F(Ua,navigator.requestMediaKeySystemAccess(Y,nb),6);case 6:wb=Ua.h;Ua.A(5);break;case 7:wb=Ua.h;case 5:return F(Ua,w(Y,wb),8);case 8:wa(Ua,0);break;case 2:xa(Ua),I(Ua)}})};y=function(Y,Ma,Na,Ea){var va,Ja,Pa,za;return Q(function(ja){switch(ja.g){case 1:return ta(ja,2),va={type:"media-source",video:{contentType:l[0].contentType,width:640,height:480,bitrate:1,framerate:1},audio:{contentType:m[0].contentType,channels:2,bitrate:1,samplerate:1},keySystemConfiguration:{keySystem:Y,video:{encryptionScheme:Ma,
robustness:Na},audio:{encryptionScheme:Ma,robustness:Ea}}},Pa=Rb(),"MOBILE"==Pa.Ja()?F(ja,Df(5,navigator.mediaCapabilities.decodingInfo(va)),7):F(ja,navigator.mediaCapabilities.decodingInfo(va),6);case 6:Ja=ja.h;ja.A(5);break;case 7:Ja=ja.h;case 5:return za=Ja.keySystemAccess,F(ja,w(Y,za),8);case 8:wa(ja,0);break;case 2:xa(ja),I(ja)}})};z=t(a);for(A=z.next();!A.done;A=z.next())B=A.value,r.set(B,null);D=function(Y){return"WEBKIT"===Rb().Ga()&&"org.w3.clearkey"===Y?!1:!0};G=[];C=t(q);for(E=C.next();!E.done;E=
C.next())for(H=E.value,K=t(a),J=K.next();!J.done;J=K.next())L=J.value,D(L)&&(G.push(v(L,H,"","")),G.push(y(L,H,"","")));N=t(a);for(O=N.next();!O.done;O=N.next())for(M=O.value,P=t(k[M]||[]),R=P.next();!R.done;R=P.next())T=R.value,D(M)&&(G.push(v(M,null,T,"")),G.push(v(M,null,"",T)),G.push(y(M,null,T,"")),G.push(y(M,null,"",T)));return F(ca,Promise.all(G),2)}return ca.return(hh(r))})}
function gi(a){return Q(function(b){if(1==b.g)return ta(b,2),F(b,Df(mi,Promise.all([a.close().catch(function(){}),a.closed])),4);if(2!=b.g)return wa(b,0);xa(b);I(b)})}
function Ch(a){var b;return Q(function(c){b=Array.from(a.i.entries());a.i.clear();return F(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return Q(function(g){if(1==g.g)return ta(g,2),a.ba||a.C.has(e.sessionId)||"persistent-license"!==f.type||a.h.persistentSessionOnlinePlayback?F(g,gi(e),5):F(g,e.remove(),5);if(2!=g.g)return wa(g,0);xa(g);I(g)})})),0)})}function Kh(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}
function Ah(a){a.i.forEach(function(b,c){var d=b.Eh,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.D.onExpirationUpdated(c.sessionId,e),b.Eh=e)})}function Vh(a){a=a.i.values();return lb(a,function(b){return b.loaded})}function Uh(a){for(var b=t(a.g&&a.g.keyIds||new Set([])),c=b.next();!c.done;c=b.next())if("usable"!==a.U.get(c.value))return!1;return!0}
function Jh(a,b){var c=[];b.forEach(function(d,e){c.push({keySystem:e,licenseServerUri:d,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});a=t(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.video&&(b.video.drmInfos=c),b.audio&&(b.audio.drmInfos=c)}
function ai(a,b,c,d,e,f,g,h){var k=[];a=t(a);for(var l=a.next(),m={};!l.done;m={Qa:void 0},l=a.next()){m.Qa=l.value;b.includes(m.Qa.encryptionScheme)||b.push(m.Qa.encryptionScheme);"org.w3.clearkey"==m.Qa.keySystem&&m.Qa.licenseServerUri.startsWith("data:application/json;base64,")?k.includes(m.Qa.licenseServerUri)||k.push(m.Qa.licenseServerUri):c.includes(m.Qa.licenseServerUri)||c.push(m.Qa.licenseServerUri);e.includes(m.Qa.serverCertificateUri)||e.push(m.Qa.serverCertificateUri);m.Qa.serverCertificate&&
(d.some(function(r){return function(u){return Jb(u,r.Qa.serverCertificate)}}(m))||d.push(m.Qa.serverCertificate));if(m.Qa.initData){l=t(m.Qa.initData);for(var n=l.next(),q={};!n.done;q={sh:void 0},n=l.next())q.sh=n.value,f.some(function(r){return function(u){var w=r.sh;return u.keyId&&u.keyId==w.keyId?!0:u.initDataType==w.initDataType&&Jb(u.initData,w.initData)}}(q))||f.push(q.sh)}if(m.Qa.keyIds)for(l=t(m.Qa.keyIds),n=l.next();!n.done;n=l.next())g.add(n.value);if(m.Qa.keySystemUris&&h)for(m=t(m.Qa.keySystemUris),
l=m.next();!l.done;l=m.next())h.add(l.value)}if(1==k.length)c.push(k[0]);else if(0<k.length){b=[];k=t(k);for(d=k.next();!d.done;d=k.next())d=window.atob(d.value.split("data:application/json;base64,").pop()),d=JSON.parse(d),b.push.apply(b,x(d.keys));k=JSON.stringify({keys:b});c.push("data:application/json;base64,"+window.btoa(k))}}
function Lh(a,b,c,d){var e=a.keySystem;if(e&&("org.w3.clearkey"!=e||!a.licenseServerUri)){b.size&&b.get(e)&&(b=b.get(e),a.licenseServerUri=b);a.keyIds||(a.keyIds=new Set);if(c=c.get(e))a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.serverCertificate||(a.serverCertificate=c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=
c.serverCertificateUri);d[e]&&(a.keySystem=d[e]);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==e&&(a.keySystem="com.chromecast.playready")}}function Ih(a,b){a=gh(a);if(0!=a.size){a=nc(a);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.video&&(c.video.drmInfos=[a]),c.audio&&(c.audio.drmInfos=[a])}}var mi=1,di=5,ki=.5;function ni(a,b,c){c=void 0===c?!0:c;this.h=a;this.g=new Set([a]);b=b||[];a=t(b);for(b=a.next();!b.done;b=a.next())this.add(b.value,c)}
ni.prototype.add=function(a,b){var c=this.h;b=void 0===b?!0:b;var d;if(!(d=!!c.audio!=!!a.audio||!!c.video!=!!a.video||c.language!=a.language)&&(d=c.audio&&a.audio)){d=c.audio;var e=a.audio;d=!(!((!d.channelsCount||!e.channelsCount||2<d.channelsCount||2<e.channelsCount)&&d.channelsCount!=e.channelsCount||d.spatialAudio!==e.spatialAudio||b&&!oi(d,e))&&pi(d.roles,e.roles)&&d.groupId===e.groupId)}!d&&(d=c.video&&a.video)&&(c=c.video,d=a.video,d=!((!b||oi(c,d))&&pi(c.roles,d.roles)));return d?!1:(this.g.add(a),
!0)};ni.prototype.values=function(){return this.g.values()};function oi(a,b){if(a.mimeType!=b.mimeType)return!1;a=a.codecs.split(",").map(function(d){return jf(d)});b=b.codecs.split(",").map(function(d){return jf(d)});if(a.length!=b.length)return!1;a.sort();b.sort();for(var c=0;c<a.length;c++)if(a[c]!=b[c])return!1;return!0}
function pi(a,b){a=new Set(a);b=new Set(b);a.delete("main");b.delete("main");if(a.size!=b.size)return!1;a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b.has(c.value))return!1;return!0}S("shaka.media.AdaptationSet",ni);S("shaka.config.CodecSwitchingStrategy",{RELOAD:"reload",SMOOTH:"smooth"});function qi(){}qi.prototype.create=function(){};qi.prototype.configure=function(){};qi.prototype.getConfiguration=function(){};S("shaka.media.AdaptationSetCriteria",qi);function ri(){this.g=si;this.i=(new Map).set(si,2).set(ti,1);this.h=0}var ti=0,si=1;/*
2025-06-19 04:02:44 +02:00
@license
Shaka Player
Copyright 2023 Google LLC
SPDX-License-Identifier: Apache-2.0
*/
2025-06-27 11:02:59 +02:00
function ui(a,b,c){this.g=a;this.i=b;this.h=c}function vi(a,b){return Q(function(c){if(1==c.g)return F(c,Jf(a.h,b,a.g.drm.preferredKeySystems,a.g.drm.keySystemsMapping),2);a.g.streaming.dontChooseCodecs||Ff(b,a.g.preferredVideoCodecs,a.g.preferredAudioCodecs,a.g.preferredDecodingAttributes,a.g.preferredTextFormats);if(!b.variants.some(hg))throw new V(2,4,4032);return c.return(wi(a,b))})}
function xi(a,b){var c=a.g.restrictions;a=a.i;var d=!1;b=t(b.variants);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.allowedByApplication;e.allowedByApplication=If(e,c,a);f!=e.allowedByApplication&&(d=!0)}return d}
function wi(a,b){var c=xi(a,b);if(b){var d=a.h?a.h.g:null;if(d&&a.h.B){for(var e=new Set,f=t(b.variants),g=f.next();!g.done;g=f.next())g=g.value,g.audio&&e.add(g.audio),g.video&&e.add(g.video);e=t(e);for(f=e.next();!f.done;f=e.next())yi(a,d.keySystem,f.value)}zi(a,b)}return c}function yi(a,b,c){c=t(c.drmInfos);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.keySystem==b){d=t(d.initData||[]);for(var e=d.next();!e.done;e=d.next())e=e.value,Oh(a.h,e.initDataType,e.initData)}}
function zi(a,b){a=a.h?a.h.nf():{};var c=Object.keys(a);c=c.length&&"00"==c[0];var d=!1,e=!1,f=new Set,g=new Set,h=new Set;b=t(b.variants);for(var k=b.next();!k.done;k=b.next())k=k.value,k.audio&&h.add(k.audio),k.video&&h.add(k.video),k.allowedByApplication?k.allowedByKeySystem&&(d=!0):e=!0;h=t(h);for(b=h.next();!b.done;b=h.next())if(b=b.value,b.keyIds.size)for(b=t(b.keyIds),k=b.next();!k.done;k=b.next()){k=k.value;var l=a[c?"00":k];l?Ai.includes(l)&&g.add(l):f.add(k)}if(!d)throw a={hasAppRestrictions:e,
missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new V(2,4,4012,a);}var Ai=["output-restricted","internal-error"];function Bi(){}function Ci(a,b){Di.set(a,b)}function Ei(){var a={};Rb();if(Fi())for(var b=t(Di.keys()),c=b.next();!c.done;c=b.next())a[c.value]=!0;b=t(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(c=b.next();!c.done;c=b.next())c=c.value,a[c]=Fi()?Di.has(c):""!=Gi().canPlayType(c);return a}function Hi(a,b){if(b){var c=Di.get(b.toLowerCase());if(c)return c}throw new V(2,4,4E3,a,b);}S("shaka.media.ManifestParser",Bi);
Bi.unregisterParserByMime=function(a){Di.delete(a)};Bi.registerParserByMime=Ci;Bi.registerParserByExtension=function(){Uc("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")};Bi.AccessibilityPurpose={En:"visually impaired",Om:"hard of hearing",nn:"spoken subtitles"};var Di=new Map;function Ii(a,b){var c=null,d=null,e=null,f=null,g=a.W();b&1&&(e=a.Ld());b&2&&(f=a.W());b&8&&(c=a.W());b&16&&(d=a.W());return{trackId:g,Yd:c,Zd:d,fk:e,wj:f}}function Ji(a,b){return 1==b?(b=a.W(),a=a.W(),{baseMediaDecodeTime:b*Math.pow(2,32)+a}):{baseMediaDecodeTime:a.W()}}function Ki(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));b=a.W();a.skip(4);a=a.Fa();return{timescale:b,language:String.fromCharCode((a>>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}}
function Li(a,b,c){var d=a.W(),e=[],f=null;c&1&&(f=a.Jh());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={Rh:null,sampleSize:null,Xf:null};c&256&&(h.Rh=a.W());c&512&&(h.sampleSize=a.W());c&1024&&a.skip(4);c&2048&&(h.Xf=0==b?a.W():a.Jh());e.push(h)}return{Jn:d,Qh:e,Ng:f}}function Mi(a){a.skip(6);a.skip(2);a.skip(8);var b=a.Fa();a.skip(2);a.skip(2);a.skip(2);a=a.Fa()+a.Fa()/65536;return{channelCount:b,sampleRate:a}}function Ni(a){a=a.W();return{codec:ph(a)}}
function Oi(a){var b=null,c=null,d=a.Xb(4);var e=String.fromCharCode(d[0]);e+=String.fromCharCode(d[1]);e+=String.fromCharCode(d[2]);e+=String.fromCharCode(d[3]);if("nclx"===e){switch(a.Fa()){case 1:case 5:case 6:case 7:b="srgb";break;case 9:b="rec2020";break;case 11:case 12:b="p3"}d=a.Fa();a.Fa();switch(d){case 1:case 6:case 13:case 14:case 15:c="SDR";break;case 16:c="PQ";break;case 18:c="HLG"}}return{colorGamut:b,Ge:c}}
function Pi(a,b){b=void 0===b?!1:b;a=a.toString(16).toUpperCase();return b?a:("0"+a).slice(-2)}function Qi(a){return(10>a?"0":"")+a};function Ri(a){if(!Si){Si=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);Ti=Ui("ftyp",b,d,b,c);b=Ui("dref",Vi);Wi=Ui("dinf",b)}this.g=a}
function Xi(a){for(var b=[],c=t(a.g),d=c.next();!d.done;d=c.next()){var e=b,f=e.push;var g=d.value;d=Ui;var h=g.id+1;var k=g.stream.width||0,l=g.stream.height||0;"audio"==g.type&&(l=k=0);var m=g.duration*g.timescale,n=Math.floor(m/(Yi+1));m=Math.floor(m%(Yi+1));h=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Zi(h,4)),[0,0,0,0],x(Zi(n,4)),x(Zi(m,4)),[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],x(Zi(k,2)),[0,0],x(Zi(l,
2)),[0,0]));h=Ui("tkhd",h);k=Ui;n=g.duration*g.timescale;l=Math.floor(n/(Yi+1));n=Math.floor(n%(Yi+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Zi(g.timescale,4)),x(Zi(l,4)),x(Zi(n,4)),x(Zi(m,2)),[0,0]));l=Ui("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=$i;break;case "audio":m=aj}n=Ui("hdlr",m);a:{switch(g.type){case "video":g=Ui("minf",Ui("vmhd",bj),Wi,cj(g));break a;
case "audio":g=Ui("minf",Ui("smhd",dj),Wi,cj(g));break a}g=new Uint8Array([])}g=k("mdia",l,n,g);d=d("trak",h,g);f.call(e,d)}b=kc.apply(dc,x(b));f=a.g[0];c=Ui;d=f.duration*f.timescale;e=Math.floor(d/(Yi+1));d=Math.floor(d%(Yi+1));e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(x(Zi(f.timescale,4)),x(Zi(e,4)),x(Zi(d,4)),[0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,
255]));e=Ui("mvhd",e);d=[];a=t(a.g);for(k=a.next();!k.done;k=a.next())g=d,h=g.push,k=new Uint8Array([0,0,0,0].concat(x(Zi(k.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),k=Ui("trex",k),h.call(g,k);a=kc.apply(dc,x(d));a=Ui("mvex",a);d=[];if(f.encrypted){f=t(f.stream.drmInfos);for(g=f.next();!g.done;g=f.next())if(g=g.value,g.initData)for(g=t(g.initData),h=g.next();!h.done;h=g.next())d.push(h.value.initData);f=kc.apply(dc,x(d))}else f=new Uint8Array([]);a=c("moov",e,b,a,f);b=new Uint8Array(Ti.byteLength+
a.byteLength);b.set(Ti);b.set(a,Ti.byteLength);return b}
function cj(a){var b=Ui,c="aac";a.codecs.includes("mp3")?c="mp3":a.codecs.includes("ac-3")?c=Rb().we()?"ec-3":"ac-3":a.codecs.includes("ec-3")?c="ec-3":a.codecs.includes("opus")&&(c="opus");var d=new Uint8Array([]);switch(a.type){case "video":if(a.codecs.includes("avc1")){c=a.stream.width||0;d=a.stream.height||0;if(0<a.Wa.byteLength)var e=Ui("avcC",a.Wa);else{e=Ui;for(var f=7,g=[],h=[],k=0,l=0,m=0,n=0;n<a.Eb.length;n++){var q=ej(a.Eb[n]);switch(q[0]&31){case 7:g.push(q);f+=q.length+2;break;case 8:h.push(q),
f+=q.length+2}}0<g.length&&(k=g[0][1],m=g[0][2],l=g[0][3]);f=new Uint8Array(f);n=0;f[n++]=1;f[n++]=k;f[n++]=m;f[n++]=l;f[n++]=255;f[n++]=224|g.length;for(k=0;k<g.length;k++)f[n++]=(g[k].length&65280)>>8,f[n++]=g[k].length&255,f.set(g[k],n),n+=g[k].length;f[n++]=h.length;for(g=0;g<h.length;g++)f[n++]=(h[g].length&65280)>>8,f[n++]=h[g].length&255,f.set(h[g],n),n+=h[g].length;e=e("avcC",f)}c=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(x(Zi(c,2)),x(Zi(d,2)),[0,72,0,0,0,72,
0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]));d="avc1";h=fj(a);g=new Uint8Array([]);a.encrypted&&(g=gj(0,a.stream,a.codecs),d="encv");d=Ui(d,c,e,h,g)}else a.codecs.includes("hvc1")&&(d=a.stream.width||0,e=a.stream.height||0,c=new Uint8Array([]),0<a.Wa.byteLength&&(c=Ui("hvcC",a.Wa)),d=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(x(Zi(d,2)),x(Zi(e,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,
105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),e="hvc1",h=fj(a),g=new Uint8Array([]),a.encrypted&&(g=gj(0,a.stream,a.codecs),e="encv"),d=Ui(e,d,c,h,g));break;case "audio":if("mp3"==c)a=Ui(".mp3",hj(a));else if("ac-3"==c)c=Ui("dac3",a.Ma),d="ac-3",e=new Uint8Array([]),a.encrypted&&(e=gj(0,a.stream,a.codecs),d="enca"),a=Ui(d,hj(a),c,e);else if("ec-3"==c)c=Ui("dec3",a.Ma),d="ec-3",e=new Uint8Array([]),a.encrypted&&(e=gj(0,a.stream,a.codecs),
d="enca"),a=Ui(d,hj(a),c,e);else if("opus"==c)c=Ui("dOps",a.Ma),d="Opus",e=new Uint8Array([]),a.encrypted&&(e=gj(0,a.stream,a.codecs),d="enca"),a=Ui(d,hj(a),c,e);else{if(0<a.Ma.byteLength)c=Ui("esds",a.Ma);else{c=Ui;d=a.id+1;e=a.stream.channelsCount||2;g=a.stream.audioSamplingRate||44100;k=oc("audio",a.codecs.split(","));l={96E3:0,88200:1,64E3:2,48E3:3,44100:4,32E3:5,24E3:6,22050:7,16E3:8,12E3:9,11025:10,8E3:11,7350:12};h=l[g];if("mp4a.40.5"===k||"mp4a.40.29"===k)h=l[2*g];g=parseInt(k.split(".").pop(),
10);d=new Uint8Array([0,0,0,0,3,25].concat(x(Zi(d,2)),[0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,g<<3|h>>>1,h<<7|e<<3,6,1,2]));c=c("esds",d)}d="mp4a";e=new Uint8Array([]);a.encrypted&&(e=gj(0,a.stream,a.codecs),d="enca");a=Ui(d,hj(a),c,e)}d=a}a=Ui("stsd",ij,d);return b("stbl",a,Ui("stts",jj),Ui("stsc",kj),Ui("stsz",lj),Ui("stco",mj))}function fj(a){if(!a.bb&&!a.eb)return new Uint8Array([]);var b=a.eb;a=new Uint8Array([].concat(x(Zi(a.bb,4)),x(Zi(b,4))));return Ui("pasp",a)}
function hj(a){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,a.stream.channelsCount||2,0,16,0,0,0,0].concat(x(Zi(a.stream.audioSamplingRate||44100,2)),[0,0]))}
function gj(a,b,c){a=Ui;c=new Uint8Array([].concat(x(Zi(nj(c.split(".")[0]),4))));c=Ui("frma",c);var d="cenc";var e=b.drmInfos[0];e&&e.encryptionScheme&&(d=e.encryptionScheme);d=new Uint8Array([0,0,0,0].concat(x(Zi(nj(d),4)),[0,1,0,0]));d=Ui("schm",d);e=Ui;var f=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);b=t(b.drmInfos);for(var g=b.next();!g.done;g=b.next())if((g=g.value)&&g.keyIds&&g.keyIds.size){g=t(g.keyIds);for(var h=g.next();!h.done;h=g.next())f=ej(h.value)}b=new Uint8Array([0,0,0,0,0,
0,1,8]);b=Ui("tenc",b,f);return a("sinf",c,d,e("schi",b))}
function oj(a){var b=[];a=t(a.g);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.push,e=d.apply;var f=Ui;var g=new Uint8Array([0,0,0,0].concat(x(Zi(c.data?c.data.Yb:0,4))));g=Ui("mfhd",g);var h;var k=c.data?c.data.Cb:[];var l=new Uint8Array(4+k.length);for(h=0;h<k.length;h++){var m=k[h].flags;l[h+4]=m.pb<<4|m.sb<<2|m.rb}k=Ui("sdtp",l);var n=k.length+92;l=Ui;h=new Uint8Array([0,0,0,58].concat(x(Zi(c.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]));h=Ui("tfhd",h);m=c.data?c.data.baseMediaDecodeTime:
0;var q=Math.floor(m%(Yi+1));m=new Uint8Array([1,0,0,0].concat(x(Zi(Math.floor(m/(Yi+1)),4)),x(Zi(q,4))));m=Ui("tfdt",m);var r=n;n=c.data?c.data.Cb:[];q=n.length;var u=12+16*q,w=new Uint8Array(u);r+=8+u;w.set(["video"===c.type?1:0,0,15,1].concat(x(Zi(q,4)),x(Zi(r,4))),0);for(r=0;r<q;r++){var v=n[r];u=Zi(v.duration,4);var y=Zi(v.size,4),z=v.flags;v=Zi(v.xb,4);w.set([].concat(x(u),x(y),[z.zb<<2|z.pb,z.sb<<6|z.rb<<4|z.Ab,z.ob&61440,z.ob&15],x(v)),12+16*r)}n=Ui("trun",w);k=l("traf",h,m,n,k);f=f("moof",
g,k);e.call(d,b,[f,pj(c)])}return kc.apply(dc,x(b))}function pj(a){a=(a.data?a.data.Cb:[]).map(function(b){return b.data});a=kc.apply(dc,x(a));return Ui("mdat",a)}function Zi(a,b){var c=[];for(--b;0<=b;b--)c.push(a>>8*b&255);return c}function ej(a){for(var b=new Uint8Array(a.length/2),c=0;c<a.length/2;c+=1)b[c]=parseInt(String(a[2*c]+a[2*c+1]),16);return b}function nj(a){for(var b=0,c=0;c<a.length;c+=1)b|=a.charCodeAt(c)<<8*(a.length-c-1);return b}
function Ui(a){var b=Ka.apply(1,arguments),c=qj.get(a);c||(c=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)],qj.set(a,c));for(var d=8,e=b.length-1;0<=e;e--)d+=b[e].byteLength;e=new Uint8Array(d);e[0]=d>>24&255;e[1]=d>>16&255;e[2]=d>>8&255;e[3]=d&255;e.set(c,4);c=0;for(d=8;c<b.length;c++)e.set(b[c],d),d+=b[c].byteLength;return e}
var Si=!1,Yi=Math.pow(2,32)-1,qj=new Map,$i=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),aj=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),jj=new Uint8Array([0,0,0,0,0,0,0,0]),kj=new Uint8Array([0,0,0,0,0,0,0,0]),mj=new Uint8Array([0,0,0,0,0,0,0,0]),lj=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),bj=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),dj=new Uint8Array([0,
0,0,0,0,0,0,0]),ij=new Uint8Array([0,0,0,0,0,0,0,1]),Ti=new Uint8Array([]),Vi=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Wi=new Uint8Array([]);function rj(a){a=Kb(a);var b=null;(new lh).box("moov",qh).box("trak",qh).box("mdia",qh).box("minf",qh).box("stbl",qh).V("stsd",sh).box("enca",function(c){b=c.reader.h;return uh(c)}).box("sinf",qh).box("frma",function(c){c.parser.stop();"ec-3"===Ni(c.reader).codec&&b&&2!==b.getUint16(16)&&b.setUint16(16,2)}).parse(a);return a}
function sj(a,b,c){function d(r){n.push({box:r,ij:1701733217})}function e(r){n.push({box:r,ij:1701733238})}function f(r){k=!0;r.parser.stop()}function g(r){m.push(r);qh(r)}var h=b=Kb(b),k=!1,l,m=[],n=[];(new lh).box("moov",g).box("trak",g).box("mdia",g).box("minf",g).box("stbl",g).V("stsd",function(r){l=r;m.push(r);sh(r)}).V("encv",f).V("enca",f).V("dvav",e).V("dva1",e).V("dvh1",e).V("dvhe",e).V("dvc1",e).V("dvi1",e).V("hev1",e).V("hvc1",e).V("avc1",e).V("avc3",e).V("ac-3",d).V("ec-3",d).V("ac-4",
d).V("Opus",d).V("fLaC",d).V("mp4a",d).parse(b);if(k)return b;if(0==n.length||!l)throw hb(jc(b)),new V(2,3,3019,c);n.reverse();c=t(n);for(var q=c.next();!q.done;q=c.next())q=q.value,h=tj(a,h,l,q.box,m,q.ij);return Rb().rj()?(a=new Uint8Array(b.byteLength+h.byteLength),a.set(h),a.set(b,h.byteLength),a):h}
function uj(a){a=Kb(a);var b=[];(new lh).box("mdat",function(g){b.push(g)}).parse(a);for(var c=[],d=0;d<b.length;d++){var e=b[d-1],f=b[d];c.push(vj(a.subarray(e?e.start+e.size:0,f.start+f.size)))}return kc.apply(dc,x(c))}
function vj(a){function b(n){g.push(n);qh(n)}var c,d,e,f,g=[];(new lh).box("moof",b).box("traf",b).V("tfhd",function(n){c=n;e=Ii(n.reader,n.flags)}).V("trun",function(n){d=n;f=Li(n.reader,n.version,n.flags)}).parse(a);if(e&&2!==e.wj){var h=c.start+rh(c)+4+(null!==e.fk?8:0),k=Ob(a);if(null!==e.wj)k.setUint32(h,2);else{wj(a,c.start,c.size+4);var l=k.getUint32(c.start+8);k.setUint32(c.start+8,l|2);f&&null!==f.Ng&&k.setInt32(d.start+rh(d)+4,f.Ng+4);l=a.subarray(0,h);k=a.subarray(h);a=new Uint8Array(a.byteLength+
4);a.set(l);l=[];for(var m=3;0<=m;m--)l.push(2>>8*m&255);a.set(new Uint8Array(l),h);a.set(k,h+4);h=t(g);for(k=h.next();!k.done;k=h.next())k=k.value,wj(a,k.start,k.size+4)}}return a}
function tj(a,b,c,d,e,f){var g=gj(new Ri([]),a,d.name),h=b.subarray(d.start,d.start+d.size);a=new Uint8Array(d.size+g.byteLength);a.set(h,0);Ob(a).setUint32(4,f);a.set(g,d.size);wj(a,0,a.byteLength);f=new Uint8Array(b.byteLength+a.byteLength);d=Rb().wf()?d.start:d.start+d.size;g=b.subarray(d);f.set(b.subarray(0,d));f.set(a,d);f.set(g,d+a.byteLength);b=t(e);for(e=b.next();!e.done;e=b.next())e=e.value,wj(f,e.start,e.size+a.byteLength);a=Ob(f,c.start);c=rh(c);b=a.getUint32(c);a.setUint32(c,b+1);return f}
function wj(a,b,c){a=Ob(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}
function xj(a){function b(e){d.push({start:e.start,size:e.size});qh(e)}var c=Kb(a),d=[];(new lh).box("moov",b).box("trak",b).box("mdia",b).box("minf",b).box("stbl",b).box("stsd",function(e){d.push({start:e.start,size:e.size});for(var f=Ob(c,e.start),g=0;g<e.size-3;g++){var h=f.getUint32(g);1633889587==h?f.setUint32(g,1700998451):1684103987==h&&f.setUint32(g,1684366131)}}).parse(c);return c};function yj(a,b,c,d,e,f,g,h){this.S=a;this.startByte=b;this.endByte=c;this.Ed=void 0===d?null:d;this.timescale=void 0===e?null:e;this.h=void 0===f?null:f;this.aesKey=void 0===g?null:g;this.g=this.mimeType=this.codecs=null;this.encrypted=void 0===h?!1:h}yj.prototype.Ic=function(){return this.startByte};yj.prototype.Gc=function(){return this.endByte};yj.prototype.ze=function(a){this.h=a};yj.prototype.cc=function(){return this.h};
function zj(a,b){return a===b?!0:a&&b?a.Ic()==b.Ic()&&a.Gc()==b.Gc()&&ud(a.S().sort(),b.S().sort())&&Jb(a.cc(),b.cc()):a==b}S("shaka.media.InitSegmentReference",yj);yj.prototype.getEndByte=yj.prototype.Gc;yj.prototype.getStartByte=yj.prototype.Ic;
function Aj(a,b,c,d,e,f,g,h,k,l,m,n,q,r,u,w){l=void 0===l?[]:l;r=void 0===r?Bj:r;this.startTime=a;this.j=this.endTime=b;this.D=c;this.startByte=d;this.endByte=e;this.ea=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.g=l;this.tilesLayout=void 0===m?"":m;this.C=void 0===n?null:n;this.h=void 0===q?null:q;this.status=r;this.preload=!1;this.l=!0;this.m=!1;this.aesKey=void 0===u?null:u;this.thumbnailSprite=null;this.i=-1;this.B=void 0===w?!1:w;this.F=this.s=!1;a=t(this.g);
for(b=a.next();!b.done;b=a.next())b.value.ej();this.B&&this.g.length&&this.g[this.g.length-1].dj();this.u=this.bandwidth=this.mimeType=this.codecs=null;this.G=!1}p=Aj.prototype;p.S=function(){return this.D()};p.getStartTime=function(){return this.startTime};p.Fk=function(){return this.endTime};p.Ic=function(){return this.startByte};p.Gc=function(){return this.endByte};p.fl=function(){return this.tilesLayout};p.cl=function(){return this.C};p.Jc=function(){return this.status};
p.Hl=function(){this.status=Cj};p.Bh=function(){this.preload=!0};p.isPreload=function(){return this.preload};p.Dd=function(){this.l=!1};p.xl=function(){return this.l};p.ej=function(){this.s=!0};p.zl=function(){return this.s};p.dj=function(){this.F=!0};p.yl=function(){return this.F};p.cj=function(){this.m=!0};p.rl=function(){return this.m};p.dg=function(a){this.thumbnailSprite=a};p.al=function(){return this.thumbnailSprite};
p.offset=function(a){this.startTime+=a;this.endTime+=a;this.j+=a;for(var b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.j+=a};p.gi=function(a){null==this.h?$a("Sync attempted without sync time!"):(a=this.h-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};p.ze=function(a,b){this.u=a;this.G=void 0===b?!1:b};p.cc=function(a){var b=this.u;(void 0===a||a)&&this.G&&(this.u=null);return b};
function Dj(a,b){a.ea=b;a=t(a.g);for(var c=a.next();!c.done;c=a.next())Dj(c.value,b)}S("shaka.media.SegmentReference",Aj);Aj.prototype.getSegmentData=Aj.prototype.cc;Aj.prototype.setSegmentData=Aj.prototype.ze;Aj.prototype.syncAgainst=Aj.prototype.gi;Aj.prototype.offset=Aj.prototype.offset;Aj.prototype.getThumbnailSprite=Aj.prototype.al;Aj.prototype.setThumbnailSprite=Aj.prototype.dg;Aj.prototype.hasByterangeOptimization=Aj.prototype.rl;Aj.prototype.markAsByterangeOptimization=Aj.prototype.cj;
Aj.prototype.isLastPartial=Aj.prototype.yl;Aj.prototype.markAsLastPartial=Aj.prototype.dj;Aj.prototype.isPartial=Aj.prototype.zl;Aj.prototype.markAsPartial=Aj.prototype.ej;Aj.prototype.isIndependent=Aj.prototype.xl;Aj.prototype.markAsNonIndependent=Aj.prototype.Dd;Aj.prototype.isPreload=Aj.prototype.isPreload;Aj.prototype.markAsPreload=Aj.prototype.Bh;Aj.prototype.markAsUnavailable=Aj.prototype.Hl;Aj.prototype.getStatus=Aj.prototype.Jc;Aj.prototype.getTileDuration=Aj.prototype.cl;
Aj.prototype.getTilesLayout=Aj.prototype.fl;Aj.prototype.getEndByte=Aj.prototype.Gc;Aj.prototype.getStartByte=Aj.prototype.Ic;Aj.prototype.getEndTime=Aj.prototype.Fk;Aj.prototype.getStartTime=Aj.prototype.getStartTime;Aj.prototype.getUris=Aj.prototype.S;var Bj=0,Cj=1;Aj.Status={vm:Bj,Cn:Cj,Ym:2};function Ej(a){return 1==a.length&&1E-4>a.end(0)-a.start(0)}function Fj(a){return!a||Ej(a)?null:a.length?a.end(a.length-1):null}function Gj(a,b){return!a||!a.length||Ej(a)||b>a.end(a.length-1)?!1:b>=a.start(0)}function Hj(a,b){if(!a||!a.length||Ej(a))return 0;var c=0;a=t(Ij(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;e>b&&(c+=e-Math.max(d,b))}return c}
function Jj(a,b,c){if(!a||!a.length||Ej(a))return null;a=Ij(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function Ij(a){if(!a)return[];for(var b=[],c=0;c<a.length;c++)b.push({start:a.start(c),end:a.end(c)});return b};function Kj(){}function W(a){return document.createElement(a)}function Lj(){var a=document.createElement("button");a.setAttribute("type","button");return a}function Mj(a,b){var c=document.createElement("source");c.src=a;c.type=void 0===b?"":b;return c}function Nj(a){for(var b=!1,c=a.getElementsByTagName("source"),d=c.length-1;0<=d;--d)a.removeChild(c[d]),b=!0;a.src&&(a.removeAttribute("src"),b=!0);return b}
function Oj(a){a=a.getElementsByClassName("shaka-overflow-quality-mark");return a.length?a[0]:null}function Pj(a){for(;a.firstChild;)a.removeChild(a.firstChild)}function Gi(){if(Qj)return Qj;Rj||(Rj=new zf(function(){Qj=null}));(Qj=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Qj=document.createElement("video"));Rj.X(1);return Qj}
function Sj(a,b){var c,d,e,f,g;return Q(function(h){if(1==h.g)return"fonts"in document&&"FontFace"in window?F(h,document.fonts.ready,2):h.return();if(!("entries"in document.fonts))return h.return();c=function(k){k=k.entries();for(var l=[],m=k.next();!1===m.done;)l.push(m.value),m=k.next();return l};d=t(c(document.fonts));for(e=d.next();!e.done;e=d.next())if(f=e.value,f.family===a&&"swap"===f.display)return h.return();g=new FontFace(a,"url("+b+")",{display:"swap"});document.fonts.add(g);I(h)})}
S("shaka.util.Dom",Kj);Kj.removeAllChildren=Pj;Kj.clearSourceFromVideo=Nj;var Rj=null,Qj=null;/*
2025-06-19 04:02:44 +02:00
@license
Shaka Player
Copyright 2022 Google LLC
SPDX-License-Identifier: Apache-2.0
*/
2025-06-27 11:02:59 +02:00
function Tj(){}function Uj(a,b){return b+10<=a.length&&73===a[b]&&68===a[b+1]&&51===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]?!0:!1}function Vj(a,b){return b+10<=a.length&&51===a[b]&&68===a[b+1]&&73===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]?!0:!1}function Wj(a,b){var c=(a[b]&127)<<21;c|=(a[b+1]&127)<<14;c|=(a[b+2]&127)<<7;return c|=a[b+3]&127}
function Xj(a){var b={key:a.type,description:"",data:"",mimeType:null,pictureType:null};if("APIC"===a.type){if(2>a.size||3!==a.data[0])return null;var c=a.data.subarray(1).indexOf(0);if(-1===c)return null;var d=Wb(Kb(a.data,1,c)),e=a.data[2+c],f=a.data.subarray(3+c).indexOf(0);if(-1===f)return null;var g=Wb(Kb(a.data,3+c,f)),h;"--\x3e"===d?h=Wb(Kb(a.data,4+c+f)):h=Lb(a.data.subarray(4+c+f));b.mimeType=d;b.pictureType=e;b.description=g;b.data=h;return b}if("TXXX"===a.type){if(2>a.size||3!==a.data[0])return null;
2025-06-19 04:02:44 +02:00
d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=Wb(Kb(a.data,1,d));a=Wb(Kb(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("WXXX"===a.type){if(2>a.size||3!==a.data[0])return null;d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=Wb(Kb(a.data,1,d));a=Wb(Kb(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("PRIV"===a.type){if(2>a.size)return null;c=a.data.indexOf(0);if(-1===c)return null;c=Wb(Kb(a.data,0,c));b.description=c;"com.apple.streaming.transportStreamTimestamp"==
c?(c=a.data.subarray(c.length+1),a=c[3]&1,c=(c[4]<<23)+(c[5]<<15)+(c[6]<<7)+c[7],c/=45,a&&(c+=4.772185884E7),b.data=c):(a=Lb(a.data.subarray(c.length+1)),b.data=a);return b}if("T"===a.type[0]){if(2>a.size||3!==a.data[0])return null;a=Wb(a.data.subarray(1)).replace(/\0*$/,"");b.data=a;return b}return"W"===a.type[0]?(a=Wb(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=Lb(a.data),b):null}
2025-06-27 11:02:59 +02:00
function Yj(a){for(var b=0,c=[];Uj(a,b);){var d=Wj(a,b+6);a[b+5]>>6&1&&(b+=10);b+=10;for(d=b+d;b+10<d;){var e=a.subarray(b),f=Wj(e,4);e={type:String.fromCharCode(e[0],e[1],e[2],e[3]),size:f,data:e.subarray(10,10+f)};(f=Xj(e))&&c.push(f);b+=e.size+10}Vj(a,b)&&(b+=10)}return c}function Zj(a,b){for(var c=b=void 0===b?0:b,d=0;Uj(a,b);)a[b+5]>>6&1&&(d+=10),d+=10,d+=Wj(a,b+6),Vj(a,b+10)&&(d+=10),b+=d;return 0<d?a.subarray(c,c+d):new Uint8Array([])}S("shaka.util.Id3Utils",Tj);Tj.getID3Data=Zj;
Tj.getID3Frames=Yj;function ak(a){return(new Date(Date.UTC(1900,0,1,0,0,0,0)+a)).getTime()};/*
2025-06-19 04:02:44 +02:00
Copyright Brightcove, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
2025-06-27 11:02:59 +02:00
function bk(a,b){this.j=a;if(void 0===b?0:b){b=new Uint8Array(a.byteLength);for(var c=0,d=0;d<a.byteLength;d++)2<=d&&3==a[d]&&0==a[d-1]&&0==a[d-2]||(b[c]=a[d],c++);this.j=Kb(b,0,c)}this.i=this.j.byteLength;this.g=this.h=0}function ck(a){var b=a.j.byteLength-a.i,c=new Uint8Array(4),d=Math.min(4,a.i);0!==d&&(c.set(a.j.subarray(b,b+d)),a.h=(new ih(c,0)).W(),a.g=8*d,a.i-=d)}function dk(a,b){if(a.g<=b){b-=a.g;var c=Math.floor(b/8);b-=8*c;a.g-=c;ck(a)}a.h<<=b;a.g-=b}
function ek(a,b){var c=Math.min(a.g,b),d=a.h>>>32-c;a.g-=c;0<a.g?a.h<<=c:0<a.i&&ck(a);c=b-c;return 0<c?d<<c|ek(a,c):d}function fk(a){var b;for(b=0;b<a.g;++b)if(0!==(a.h&2147483648>>>b))return a.h<<=b,a.g-=b,b;ck(a);return b+fk(a)}function gk(a){dk(a,1+fk(a))}function hk(a){var b=fk(a);return ek(a,b+1)-1}function ik(a){a=hk(a);return 1&a?1+a>>>1:-1*(a>>>1)}function jk(a){return 1===ek(a,1)}function kk(a){return ek(a,8)}
function lk(a,b){for(var c=8,d=8,e=0;e<b;e++)0!==d&&(d=ik(a),d=(c+d+256)%256),c=0===d?c:d}function mk(a){kk(a);hk(a);return hk(a)}S("shaka.util.ExpGolomb",bk);function nk(){this.G=null;this.H=!1;this.m=this.I=null;this.j=[];this.g=[];this.B=this.C=null;this.i=[];this.h=[];this.D=null;this.l=[];this.F=this.s=this.u=null}p=nk.prototype;p.clearData=function(){this.j=[];this.g=[];this.i=[];this.h=[];this.l=[]};
p.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,ok(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e<c;e+=188)if(71==a[e]){var f=!!(a[e+1]&64),g=((a[e+1]&31)<<8)+a[e+2];if(1<(a[e+3]&48)>>4){var h=e+5+a[e+4];if(h==e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.G=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.G:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,uf:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&15)<<8|f[h+11]);h<
k;){var l=(f[h+1]&31)<<8|f[h+2],m=(f[h+3]&15)<<8|f[h+4];switch(f[h]){case 6:if(0<m)for(var n=h+5,q=m;2<q;){var r=f[n+1]+2;switch(f[n]){case 5:var u=Yb(f.subarray(n+2,n+r));-1==g.audio&&"Opus"===u?(g.audio=l,g.audioCodec="opus"):-1==g.video&&"AV01"===u&&(g.video=l,g.videoCodec="av1");break;case 106:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");break;case 122:-1==g.audio&&(g.audio=l,g.audioCodec="ec3");break;case 124:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 127:"opus"==g.audioCodec&&(u=
null,128===f[n+2]&&(u=f[n+3]),null!=u&&(this.F={channelCount:0===(u&15)?2:u&15,gk:u,sampleRate:48E3}))}n+=r;q-=r}break;case 15:-1==g.audio&&(g.audio=l,g.audioCodec="aac");break;case 17:-1==g.audio&&(g.audio=l,g.audioCodec="aac-loas");break;case 21:-1==g.uf&&(g.uf=l);break;case 27:-1==g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1==g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1==g.video&&(g.video=l,g.videoCodec="hvc");break;case 129:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");
2025-06-19 04:02:44 +02:00
break;case 132:case 135:-1==g.audio&&(g.audio=l,g.audioCodec="ec3")}h+=m+5}f=g;-1!=f.video&&(this.I=f.video,this.m=f.videoCodec);-1!=f.audio&&(this.C=f.audio,this.B=f.audioCodec);-1!=f.uf&&(this.D=f.uf);d&&!this.H&&(d=!1,e=b-188);this.H=!0;break;case this.I:h=a.subarray(h,e+188);f?this.j.push([h]):this.j.length&&this.j[this.j.length-1]&&this.j[this.j.length-1].push(h);break;case this.C:h=a.subarray(h,e+188);f?this.i.push([h]):this.i.length&&this.i[this.i.length-1]&&this.i[this.i.length-1].push(h);
break;case this.D:h=a.subarray(h,e+188);f?this.l.push([h]):this.l.length&&this.l[this.l.length-1]&&this.l[this.l.length-1].push(h);break;default:d=!0}}return this};
2025-06-27 11:02:59 +02:00
function pk(a,b){if(1!==(b[0]<<16|b[1]<<8|b[2]))return null;var c={data:new Uint8Array(0),packetLength:b[4]<<8|b[5],pts:null,dts:null,nalus:[]};if(c.packetLength&&c.packetLength>b.byteLength-6)return null;var d=b[7];if(d&192){var e=536870912*(b[9]&14)+4194304*(b[10]&255)+16384*(b[11]&254)+128*(b[12]&255)+(b[13]&254)/2;null==a.u&&(a.u=e);c.pts=qk(e,a.u);a.u=c.pts;c.dts=c.pts;d&64&&(d=536870912*(b[14]&14)+4194304*(b[15]&255)+16384*(b[16]&254)+128*(b[17]&255)+(b[18]&254)/2,null==a.s&&(a.s=d),c.dts=c.pts!=
e?qk(d,a.s):d);a.s=c.dts}a=b[8]+9;if(b.byteLength<=a)return null;c.data=b.subarray(a);return c}p.Ol=function(a){Uc("TsParser.parseAvcNalus","Please use parseNalus function instead.");return this.Gh(a,{qe:null,state:null})};
p.Gh=function(a,b){var c=a.pts?a.pts/9E4:null;a=a.data;var d=a.byteLength,e=1;"hvc"==this.m&&(e=2);var f=b.state||0,g=f,h=0,k=[],l=-1,m=0;-1==f&&(l=0,m="hvc"==this.m?a[0]>>1&63:a[0]&31,f=0,h=1);for(;h<d;){var n=a[h++];if(f)if(1===f)f=n?0:2;else if(n)if(1==n){n=h-f-1;if(0<=l)k.push({data:a.subarray(l+e,n),fullData:a.subarray(l,n),type:m,time:c,state:null});else if(f=k.length?k[k.length-1]:b.qe)g&&h<=4-g&&f.state&&(f.data=f.data.subarray(0,f.data.byteLength-g),f.fullData=f.fullData.subarray(0,f.fullData.byteLength-
2025-06-19 04:02:44 +02:00
g)),0<n&&(n=a.subarray(0,n),f.data=kc(f.data,n),f.fullData=kc(f.fullData,n),f.state=0);h<d?(m="hvc"==this.m?a[h]>>1&63:a[h]&31,l=h,f=0):f=-1}else f=0;else f=3;else f=n?0:1}0<=l&&0<=f&&k.push({data:a.subarray(l+e,d),fullData:a.subarray(l,d),type:m,time:c,state:f});!k.length&&b.qe&&(c=k.length?k[k.length-1]:b.qe)&&(c.data=kc(c.data,a),c.fullData=kc(c.fullData,a));b.state=f;return k};
2025-06-27 11:02:59 +02:00
p.getMetadata=function(){for(var a=[],b=t(this.l),c=b.next();!c.done;c=b.next())c=kc.apply(dc,x(c.value)),(c=pk(this,c))&&a.push({cueTime:c.pts?c.pts/9E4:null,data:c.data,frames:Yj(c.data),dts:c.dts,pts:c.pts});return a};
p.yb=function(){if(this.i.length&&!this.h.length)for(var a=t(this.i),b=a.next();!b.done;b=a.next()){var c=kc.apply(dc,x(b.value)),d=pk(this,c);b=this.h.length?this.h[this.h.length-1]:null;d&&null!=d.pts&&null!=d.dts&&(!b||b.pts!=d.pts&&b.dts!=d.dts)?this.h.push(d):this.h.length&&(c=d?d.data:c)&&(b=this.h.pop(),b.data=kc(b.data,c),this.h.push(b))}return this.h};
p.dd=function(a){a=void 0===a?!0:a;if(this.j.length&&!this.g.length){for(var b=t(this.j),c=b.next();!c.done;c=b.next()){var d=kc.apply(dc,x(c.value)),e=pk(this,d);c=this.g.length?this.g[this.g.length-1]:null;e&&null!=e.pts&&null!=e.dts&&(!c||c.pts!=e.pts&&c.dts!=e.dts)?this.g.push(e):this.g.length&&(d=e?e.data:d)&&(c=this.g.pop(),c.data=kc(c.data,d),this.g.push(c))}if(a){b={qe:null,state:null};c=[];d=t(this.g);for(e=d.next();!e.done;e=d.next())e=e.value,e.nalus=this.Gh(e,b),e.nalus.length&&(c.push(e),
b.qe=e.nalus[e.nalus.length-1]);this.g=c}}return a?this.g:(a=this.g,this.g=[],a)};p.getStartTime=function(a){if("audio"==a){a=null;var b=this.yb();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.dd(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null};p.ae=function(){return{audio:this.B,video:this.m}};p.tf=function(){for(var a=[],b=t(this.dd()),c=b.next();!c.done;c=b.next())a.push.apply(a,x(c.value.nalus));return a};
p.ll=function(){Uc("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var a=this.nh();return{height:a.height,width:a.width}};p.nh=function(){return"hvc"==this.m?rk(this):sk(this)};function tk(a){var b=a.dd();return 1<b.length&&(a=b[0].pts,b=b[1].pts,!isNaN(b-a))?String(1/(b-a)*9E4):null}
function sk(a){var b={height:null,width:null,codec:null,frameRate:null},c=a.tf();if(!c.length)return b;c=c.find(function(r){return 7==r.type});if(!c)return b;c=new bk(c.data);var d=kk(c),e=kk(c),f=kk(c);gk(c);if(uk.includes(d)){var g=hk(c);3===g&&dk(c,1);gk(c);gk(c);dk(c,1);if(jk(c)){g=3!==g?8:12;for(var h=0;h<g;h++)jk(c)&&(6>h?lk(c,16):lk(c,64))}}gk(c);g=hk(c);if(0===g)hk(c);else if(1===g)for(dk(c,1),gk(c),gk(c),g=hk(c),h=0;h<g;h++)gk(c);gk(c);dk(c,1);g=hk(c);h=hk(c);var k=ek(c,1);0===k&&dk(c,1);
dk(c,1);var l=0,m=0,n=0,q=0;jk(c)&&(l=hk(c),m=hk(c),n=hk(c),q=hk(c));b.height=String((2-k)*(h+1)*16-2*n-2*q);b.width=String(16*(g+1)-2*l-2*m);b.codec="avc1."+("0"+d.toString(16).toUpperCase()).slice(-2)+("0"+e.toString(16).toUpperCase()).slice(-2)+("0"+f.toString(16).toUpperCase()).slice(-2);b.frameRate=tk(a);return b}
function rk(a){var b={height:null,width:null,codec:null,frameRate:null},c=a.tf();if(!c.length)return b;c=c.find(function(D){return 33==D.type});if(!c)return b;var d=new bk(c.fullData,!0);kk(d);kk(d);ek(d,4);var e=ek(d,3);jk(d);var f=ek(d,2),g=ek(d,1),h=ek(d,5),k=ek(d,32);c=kk(d);for(var l=kk(d),m=kk(d),n=kk(d),q=kk(d),r=kk(d),u=kk(d),w=[],v=[],y=0;y<e;y++)w.push(jk(d)),v.push(jk(d));if(0<e)for(y=e;8>y;y++)ek(d,2);for(y=0;y<e;y++)w[y]&&ek(d,88),v[y]&&kk(d);hk(d);e=hk(d);3==e&&ek(d,1);w=hk(d);v=hk(d);
var z=y=0,A=0,B=0;jk(d)&&(y+=hk(d),z+=hk(d),A+=hk(d),B+=hk(d));b.width=String(w-(y+z)*(1===e||2===e?2:1));b.height=String(v-(A+B)*(1===e?2:1));d=function(D){for(var G=0,C=0;32>C;C++)G|=(D>>C&1)<<31-C;return G>>>0}(k);g=1==g?"H":"L";f="hvc1"+("."+["","A","B","C"][f]+h);f+="."+d.toString(16).toUpperCase();f+="."+g+u;r&&(f+="."+r.toString(16).toUpperCase());q&&(f+="."+q.toString(16).toUpperCase());n&&(f+="."+n.toString(16).toUpperCase());m&&(f+="."+m.toString(16).toUpperCase());l&&(f+="."+l.toString(16).toUpperCase());
c&&(f+="."+c.toString(16).toUpperCase());b.codec=f;b.frameRate=tk(a);return b}function qk(a,b){var c=1;for(a>b&&(c=-1);4294967296<Math.abs(b-a);)a+=8589934592*c;return a}function vk(a){return 0>ok(a)?!1:!0}function ok(a){for(var b=Math.min(1E3,a.length-564),c=0;c<b;){if(71==a[c]&&71==a[c+188]&&71==a[c+376])return c;c++}return-1}S("shaka.util.TsParser",nk);nk.syncOffset=ok;nk.probe=vk;nk.prototype.getVideoInfo=nk.prototype.nh;nk.prototype.getVideoResolution=nk.prototype.ll;
nk.prototype.getVideoNalus=nk.prototype.tf;nk.prototype.getCodecs=nk.prototype.ae;nk.prototype.getStartTime=nk.prototype.getStartTime;nk.prototype.getVideoData=nk.prototype.dd;nk.prototype.getAudioData=nk.prototype.yb;nk.prototype.getMetadata=nk.prototype.getMetadata;nk.prototype.parseNalus=nk.prototype.Gh;nk.prototype.parseAvcNalus=nk.prototype.Ol;nk.prototype.parse=nk.prototype.parse;nk.prototype.clearData=nk.prototype.clearData;nk.Timescale=9E4;
var uk=[100,110,122,244,44,83,86,118,128,138,139,134];function wk(a,b,c,d,e){var f=this;this.g=a;this.N=c;this.B=d;this.Z=b;this.l=new Map;this.D=new Map;this.fb=new Map;this.h=null;this.Ia=!1;this.L=e||null;this.s=new Map;this.u=new Oc;this.j=new Map;this.I=null;this.J=new Ig;this.sa="";this.cb=!1;this.ra=!0;this.K=!1;this.C=this.O=null;this.i=xk(this,this.J);this.La=this.F=!1;this.H=new eh(function(){return yk(f)});this.G=!1;this.P="UNKNOWN";this.Ta=this.Ya=!1;this.Na=new Ig;this.m=!1;this.oa=null;this.Y=new Map;this.ba=this.R=this.na=this.U=null;
this.$=new Ig;this.g.remote&&(this.K="disconnected"!=this.g.remote.state,this.u.o(this.g.remote,"connect",function(){f.K="disconnected"!=f.g.remote.state}),this.u.o(this.g.remote,"connecting",function(){f.K="disconnected"!=f.g.remote.state}),this.u.o(this.g.remote,"disconnect",function(){f.K="disconnected"!=f.g.remote.state}))}
function xk(a,b){a.ra=!0;if(window.ManagedMediaSource){a.C||(a.g.disableRemotePlayback=!0);var c=new ManagedMediaSource;a.u.o(c,"startstreaming",function(){a.ra=!0});a.u.o(c,"endstreaming",function(){a.ra=!1})}else c=new MediaSource;a.u.qa(c,"sourceopen",function(){URL.revokeObjectURL(a.sa);b.resolve()});a.u.qa(a.g,"playing",function(){a.cb=!0});a.sa=zk(c);a.B.useSourceElements?(a.g.removeAttribute("src"),a.O&&a.g.removeChild(a.O),a.C&&a.g.removeChild(a.C),a.O=Mj(a.sa),a.g.appendChild(a.O),a.C&&a.g.appendChild(a.C),
a.g.load()):a.g.src=a.sa;return c}function Ak(a,b,c){a.g&&window.ManagedMediaSource&&a.i&&a.B.useSourceElements&&(a.C&&a.g.removeChild(a.C),a.C=Mj(b,c),a.g.appendChild(a.C),a.g.disableRemotePlayback=!1)}
function Bk(){var a='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",video/mp4; codecs="dvh1.05.01",video/mp4; codecs="dvh1.20.01",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="ac-4.02.01.01",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",audio/mp4; codecs="apac.31.00",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(x(cf)),b=
{};Rb();a=t(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;sf(c)?b[c]=!0:b[c]=Fi()?bd(c)||(We(c)?!0:!1):""!=Gi().canPlayType(c);var d=c.split(";")[0];b[d]=b[d]||b[c]}return b}p=wk.prototype;p.destroy=function(){return this.H.destroy()};
function yk(a){var b,c,d,e,f,g,h,k,l,m,n,q,r,u,w;return Q(function(v){if(1==v.g){b=[];c=t(a.s);for(d=c.next();!d.done;d=c.next())for(e=d.value,f=t(e),g=f.next().value,h=f.next().value,k=h[0],l=g,a.s.set(l,h.slice(0,1)),k&&b.push(k.p.catch(Bf)),m=t(h.slice(1)),n=m.next();!n.done;n=m.next())q=n.value,q.p.reject(new V(2,7,7003,void 0));a.h&&b.push(a.h.destroy());return F(v,Promise.all(b),2)}r=t(a.j.values());for(u=r.next();!u.done;u=r.next())w=u.value,w.destroy();a.u&&(a.u.release(),a.u=null);a.g&&a.C&&
a.g.removeChild(a.C);a.g&&a.O&&(a.g.removeChild(a.O),a.g.load(),a.g.disableRemotePlayback=!1);a.g=null;a.O=null;a.C=null;a.B=null;a.i=null;a.h=null;a.Z=null;a.l.clear();a.fb.clear();a.j.clear();a.I=null;a.s.clear();a.L=null;a.Y.clear();a.N=null;I(v)})}
p.init=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?"UNKNOWN":c;d=void 0===d?!1:d;var e=this,f,g,h,k,l,m;return Q(function(n){if(1==n.g)return f=uc,F(n,e.J,2);if(3!=n.g){if(!Ck(e)&&!Dk(e))return n.A(3);$a("Expected MediaSource to be open during init(); reopening the media source.");e.J=new Ig;e.i=xk(e,e.J);return F(n,e.J,3)}e.G=b;e.P=c;e.Ya=d;e.Ta=!e.G&&"HLS"==e.P&&!e.Ya;e.Y.clear();e.U=null;e.na=null;e.R=null;e.ba=null;e.$=new Ig;g=t(a.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=a.get(k),
Ek(e,k,l,l.codecs),e.m?(e.s.set(f.ma,[]),e.s.set(f.Ea,[])):e.s.set(k,[]);(m=a.get(f.ma))&&m.isAudioMuxedInVideo&&(e.m=!0);I(n)})};
function Ek(a,b,c,d){"audio"==b&&d&&(d=Vf(d,c.mimeType));var e=bf(c.mimeType,d);if(b==sc)Fk(a,e,a.G,c.external);else{var f=a.B.forceTransmux;if(!bd(e)||!a.G&&cf.includes(e))f=!0;var g=df(c.mimeType,d);if(f){f=pc("audio",(d||"").split(","));d=pc("video",(d||"").split(","));if(f&&d){a.m=!0;Ek(a,"audio",c,f);Ek(a,"video",c,d);return}if(d=We(g))e=d(),a.j.set(b,e),e=e.convertCodecs(b,g)}g=e+a.B.addExtraFeaturesToSourceBuffer(e);fh(a.H);try{var h=a.i.addSourceBuffer(g)}catch(k){throw new V(2,3,3015,k,"The mediaSource_ status was "+
a.i.readyState+" expected 'open'",null);}a.G&&(h.mode=Gk);a.u.o(h,"error",function(){var k=a.s.get(b)[0];k.p.reject(new V(2,3,3014,a.g.error?a.g.error.code:0,k.uri))});a.u.o(h,"updateend",function(){return Hk(a,b)});a.l.set(b,h);a.D.set(b,e);a.fb.set(b,!!c.drmInfos.length)}}p.configure=function(a){this.B=a;this.h&&(this.h.B=a.modifyCueCallback)};function Ik(a){return a.ra&&!a.K&&!a.F}
function Fk(a,b,c,d){a.h||(a.h=new nf(a.Z),a.h&&(a.h.B=a.B.modifyCueCallback));var e=a.h;d=d||a.Ia;a=a.P;"application/cea-608"==b||"application/cea-708"==b?e.i=null:(e.i=pf.get(b)(),e.i.setSequenceMode?e.i.setSequenceMode(c):Uc("Text parsers w/ setSequenceMode",'Text parsers should have a "setSequenceMode" method!'),e.i.setManifestType?e.i.setManifestType(a):Uc("Text parsers w/ setManifestType",'Text parsers should have a "setManifestType" method!'),e.C=d)}
function Ck(a){return a.F?!1:a.i?"ended"==a.i.readyState:!0}function Dk(a){return a.F?!1:a.i?"closed"==a.i.readyState:!0}function Jk(a,b){a.l.size?b==sc?a=a.h.g:(a=Kk(a,b),a=!a||Ej(a)?null:1==a.length&&0>a.start(0)?0:a.length?a.start(0):null):a=null;return a}function Lk(a,b){return a.l.size?b==sc?a.h.h:Fj(Kk(a,b)):null}function Mk(a,b,c){if(b==sc)return a=a.h,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=Kk(a,b);return Hj(a,c)}
p.Qb=function(){var a={total:this.F?[]:Ij(this.g.buffered),audio:Ij(Kk(this,"audio")),video:Ij(Kk(this,"video")),text:[]};if(this.h){var b=this.h.g,c=this.h.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function Kk(a,b){if(a.F||a.K)return null;try{return a.l.get(b).buffered}catch(c){return a.l.has(b),null}}
function Nk(a,b,c,d,e,f){var g=null,h=[],k=Kb(c);if(cf.includes(f))b=Yj(k),b.length&&d&&((c=b.find(function(r){return"com.apple.streaming.transportStreamTimestamp"===r.description}))&&"number"==typeof c.data&&(g=Math.round(c.data)/1E3),a.N.onMetadata([{cueTime:d.startTime,data:k,frames:b,dts:d.startTime,pts:d.startTime}],0,d.endTime));else if(f.includes("/mp4")&&d&&d.ea&&d.ea.timescale){var l=d.ea.timescale;if(!isNaN(l)){var m=null!=e.emsgSchemeIdUris&&0<e.emsgSchemeIdUris.length||a.B.dispatchAllEmsgBoxes,
n=0,q=!1;k=new lh;m&&k.V("emsg",function(r){var u=e.emsgSchemeIdUris;if(0===r.version){var w=r.reader.jd();var v=r.reader.jd();var y=r.reader.W();var z=r.reader.W();var A=r.reader.W();var B=r.reader.W();var D=d.startTime+z/y}else y=r.reader.W(),D=r.reader.Ld()/y+d.timestampOffset,z=D-d.startTime,A=r.reader.W(),B=r.reader.W(),w=r.reader.jd(),v=r.reader.jd();r=r.reader.Xb(r.reader.getLength()-r.reader.Ua());if(u&&u.includes(w)||a.B.dispatchAllEmsgBoxes)if("urn:mpeg:dash:event:2012"==w)a.N.Nl();else if(u=
D+A/y,y={startTime:D,endTime:u,schemeIdUri:w,value:v,timescale:y,presentationTimeDelta:z,eventDuration:A,id:B,messageData:r},B=(new Map).set("detail",y),(new U("emsg",B)).cancelable=!0,a.N.Ll(y),"https://aomedia.org/emsg/ID3"==w||"https://developer.apple.com/streaming/emsg-id3"==w)if(w=Yj(r),w.length)a.N.onMetadata([{cueTime:D,data:r,frames:w,dts:D,pts:D}],0,u)});k.V("prft",function(r){var u=r.reader,w=r.version;u.W();r=u.W();var v=u.W();r=1E3*r+v/Math.pow(2,32)*1E3;0===w?u=u.W():(w=u.W(),u=u.W(),
u=w*Math.pow(2,32)+u);r=ak(r);u=(new Map).set("detail",{wallClockTime:r,programStartDate:new Date(r-u/l*1E3)});u=new U("prft",u);a.N.onEvent(u)}).box("moof",qh).box("traf",qh).V("tfdt",function(r){q||(n=Ji(r.reader,r.version).baseMediaDecodeTime/l,q=!0,m||r.parser.stop())}).parse(c,!0);q&&0==d.timestampOffset&&(g=n)}}else f.includes("/mp4")||f.includes("/webm")||!vk(k)||(a.Y.has(b)?a.Y.get(b).clearData():a.Y.set(b,new nk),h=a.Y.get(b).parse(k),k=h.getStartTime(b),null!=k&&(g=k),h=h.getMetadata());
2025-06-19 04:02:44 +02:00
return{timestamp:g,metadata:h}}
2025-06-27 11:02:59 +02:00
function Ok(a,b,c,d,e,f,g,h,k,l,m){g=void 0===g?!1:g;h=void 0===h?!1:h;k=void 0===k?!1:k;l=void 0===l?!1:l;var n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L;return Q(function(N){switch(N.g){case 1:n=uc;if(b!=n.gb){N.A(2);break}if("HLS"!=a.P){N.A(3);break}return F(N,a.Na,4);case 4:q=N.h,a.h.u=q;case 3:return F(N,tf(a.h,c,d?d.startTime:null,d?d.endTime:null,d?d.S()[0]:null),5);case 5:return N.return();case 2:if(l||!a.m){N.A(6);break}return F(N,Ok(a,n.ma,c,d,e,f,g,h,k,!0),7);case 7:return F(N,Ok(a,n.Ea,c,d,e,
f,g,h,k,!0),8);case 8:return N.return();case 6:if(!a.l.has(b))return N.return();r=a.l.get(b).timestampOffset;u=a.D.get(b);a.j.has(b)&&(u=a.j.get(b).getOriginalMimeType());if(d&&(w=Nk(a,b,c,d,e,u),v=w.timestamp,y=w.metadata,null!=v&&(null==a.U&&b==n.Ea&&(a.U=v,a.na=d.startTime,null!=a.R&&(z=0,a.na==a.ba&&(z=a.U-a.R),a.$.resolve(z))),null==a.R&&b==n.ma&&(a.R=v,a.ba=d.startTime,null!=a.U&&(A=0,a.na==a.ba&&(A=a.U-a.R),a.$.resolve(A))),B=v,D=cf,!a.G&&D.includes(a.D.get(b))&&(B=0),G=d.startTime-B,C=Math.abs(r-
G),(.001<=C||g||h)&&(!k||0<G||!r)&&(r=G,a.Ta&&(Pk(a,b,function(){return Qk(a,b)},null),Pk(a,b,function(){return Rk(a,b,r)},null))),(E=b==n.Ea||!a.l.has(n.Ea))&&a.Na.resolve(r)),y.length))a.N.onMetadata(y,r,d?d.endTime:null);f&&b==n.Ea&&(a.h||Fk(a,"application/cea-608",a.G,!1),a.I||(H=u.split(";",1)[0],a.I=new id(H)),d?(K=a.I.Of(c),K.length&&xf(a.h,K,d.startTime,d.endTime,r)):a.I.init(c,h,m));if(!a.j.has(b)){N.A(9);break}return F(N,a.j.get(b).transmux(c,e,d,a.i.duration,b),10);case 10:c=N.h;case 9:c=
Sk(a,e,c,d,b);if(!d||!a.G||b==n.gb){N.A(11);break}if(!g&&!h){N.A(11);break}J=d.startTime;if("HLS"!=a.P||a.m||b!=n.ma||!a.l.has(n.Ea)){N.A(13);break}return F(N,a.$,14);case 14:L=N.h,.15<Math.abs(L)&&(J-=L);case 13:Pk(a,b,function(){return Qk(a,b)},null),Pk(a,b,function(){return Rk(a,b,J)},null);case 11:return F(N,Pk(a,b,function(){var O=c;a.L&&Zc(a.L,O,r,e);a.l.get(b).appendBuffer(O)},d?d.S()[0]:null),15);case 15:I(N)}})}function Tk(a,b){var c=Lk(a,"video")||0;vf(a.h,b,c)}
function Uk(a){a.h&&vf(a.h,"",0)}p.remove=function(a,b,c,d){var e=this,f;return Q(function(g){return 1==g.g?(f=uc,a==f.Ea&&e.I&&e.I.remove(d),a==f.gb?F(g,e.h.remove(b,c),0):c>b?F(g,Pk(e,a,function(){return Vk(e,a,b,c)},null),5):g.A(0)):e.m?F(g,Pk(e,f.ma,function(){return Vk(e,f.ma,b,c)},null),0):g.A(0)})};
function Wk(a,b){var c;return Q(function(d){return 1==d.g?(c=uc,b==c.gb?a.h?F(d,a.h.remove(0,Infinity),0):d.return():F(d,Pk(a,b,function(){return Vk(a,b,0,a.i.duration)},null),4)):a.m?F(d,Pk(a,c.ma,function(){return Vk(a,c.ma,0,a.i.duration)},null),0):d.A(0)})}p.flush=function(a){var b=this,c;return Q(function(d){return 1==d.g?(c=uc,a==c.gb?d.return():F(d,Pk(b,a,function(){b.g.currentTime-=.001;Hk(b,a)},null),2)):b.m?F(d,Pk(b,c.ma,function(){var e=c.ma;b.g.currentTime-=.001;Hk(b,e)},null),0):d.A(0)})};
function Xk(a,b,c,d,e,f,g,h,k){var l,m,n;return Q(function(q){if(1==q.g){l=uc;if(b==l.gb)return f||(a.h.u=c),uf(a.h,d,e),q.return();m=[];return F(q,Yk(a,b,g,h,k),2)}n=q.h;n||(m.push(Pk(a,b,function(){return Qk(a,b)},null)),a.m&&m.push(Pk(a,l.ma,function(){return Qk(a,l.ma)},null)));f||(m.push(Pk(a,b,function(){return Rk(a,b,c)},null)),a.m&&m.push(Pk(a,l.ma,function(){return Rk(a,l.ma,c)},null)));if(0!=d||Infinity!=e)m.push(Pk(a,b,function(){return Zk(a,b,d,e)},null)),a.m&&m.push(Pk(a,l.ma,function(){return Zk(a,
l.ma,d,e)},null));return m.length?F(q,Promise.all(m),0):q.A(0)})}function $k(a,b,c){var d,e;return Q(function(f){if(1==f.g){d=uc;if(b==d.gb)return f.return();b==d.Ea&&(a.Na=new Ig);if(!a.G||(e=Lk(a,b))&&.1>Math.abs(e-c))return f.return();Pk(a,b,function(){return Qk(a,b)},null);a.m&&Pk(a,d.ma,function(){return Qk(a,d.ma)},null);return F(f,Pk(a,b,function(){return Rk(a,b,c)},null),2)}return a.m?F(f,Pk(a,d.ma,function(){return Rk(a,d.ma,c)},null),0):f.A(0)})}
p.endOfStream=function(a){var b=this;return Q(function(c){return F(c,al(b,function(){Ck(b)||Dk(b)||(a?b.i.endOfStream(a):b.i.endOfStream())}),0)})};p.vb=function(a){var b=this;return Q(function(c){return F(c,al(b,function(){if(b.B.durationReductionEmitsUpdateEnd&&a<b.i.duration)for(var d=t(b.l.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f={start:function(){},p:new Ig,uri:null};b.s.get(e).unshift(f)}b.i.duration=a;b.oa=a}),0)})};p.getDuration=function(){return this.i.duration};
function bl(a,b,c){Q(function(d){return a.H.g||a.g.error||a.K||a.F||Ck(a)||Dk(a)?d.return():F(d,al(a,function(){Ck(a)||Dk(a)||a.i.setLiveSeekableRange(b,c)}),0)})}function cl(a){Q(function(b){return a.H.g||a.g.error||a.K||a.F||Ck(a)||Dk(a)?b.return():F(b,al(a,function(){Ck(a)||Dk(a)||a.i.clearLiveSeekableRange()}),0)})}function Vk(a,b,c,d){d<=c?Hk(a,b):a.l.get(b).remove(c,d)}
function Qk(a,b){var c=a.l.get(b),d=c.appendWindowStart,e=c.appendWindowEnd;c.abort();c.appendWindowStart=d;c.appendWindowEnd=e;Hk(a,b)}function Rk(a,b,c){0>c&&(c+=.001);var d=!0;"HLS"==a.P&&(d=Lk(a,b),d=!d||.15<Math.abs(d-c)?!0:!1);d&&(a.l.get(b).timestampOffset=c);Hk(a,b)}function Zk(a,b,c,d){var e=a.l.get(b);if(e.appendWindowEnd!==d||e.appendWindowStart!==c)e.appendWindowStart=0,e.appendWindowEnd=d,e.appendWindowStart=c;Hk(a,b)}
function Hk(a,b){if(a.F||a.H.g){var c=a.s.get(b);c&&c.length&&((c=c[0])&&c.p&&c.p.resolve(),a.s.set(b,[]))}else if(c=a.s.get(b)[0])c.p.resolve(),dl(a,b)}function Pk(a,b,c,d){fh(a.H);c={start:c,p:new Ig,uri:d};a.s.get(b).push(c);1==a.s.get(b).length&&ml(a,b);return c.p}
function al(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u;return Q(function(w){switch(w.g){case 1:fh(a.H);c=[];d=Array.from(a.l.keys());e=t(d);f=e.next();for(g={};!f.done;g={ready:void 0},f=e.next())h=f.value,g.ready=new Ig,k={start:function(v){return function(){return v.ready.resolve()}}(g),p:g.ready,uri:null},l=a.s.get(h),l.push(k),c.push(g.ready),1==l.length&&k.start();ta(w,2);return F(w,Promise.all(c),4);case 4:wa(w,3);break;case 2:throw m=xa(w),m;case 3:return ta(w,5,6),F(w,b(),6);case 6:ya(w);n=t(d);for(q=
n.next();!q.done;q=n.next())r=q.value,dl(a,r);Ba(w,0);break;case 5:throw u=xa(w),new V(2,3,3015,u,a.g.error||"No error in the media element",null);}})}function dl(a,b){a.s.get(b).shift();ml(a,b)}function ml(a,b){var c=a.s.get(b)[0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new V(2,3,3017,b)):Ik(a)?c.p.reject(new V(2,3,3015,d,a.g.error||"No error in the media element",c.uri)):c.p.reject(new V(2,3,3024,b)),dl(a,b)}}function nl(a,b){a.Z=b;a.h&&(a.h.j=b)}
function Sk(a,b,c,d,e){if("mp4"!=ff(a.D.get(e)))return c;var f=null===d,g=a.fb.get(e),h=a.N.Jk(),k=!1;d&&d.ea&&(k=d.ea.encrypted);d=d?d.S()[0]:null;var l=Rb();a.B.correctEc3Enca&&f&&"audio"===e&&(c=rj(c));a.B.insertFakeEncryptionInInit&&g&&l.xe(h,e)&&(f?c=sj(b,c,d):!k&&l.sj(e)&&(c=uj(c)));f&&l.we()&&(c=xj(c));return c}
function ol(a,b,c,d){return Pk(a,b,function(){if(b!==sc){a.D.get(b);if(dd()){a.j.has(b)&&(a.j.get(b).destroy(),a.j.delete(b));d&&a.j.set(b,d);var e=c+a.B.addExtraFeaturesToSourceBuffer(c);a.l.get(b).changeType(e);a.D.set(b,c)}Hk(a,b)}},null)}
function pl(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D;return Q(function(G){if(1==G.g){if(a.F||a.K)return G.return();c=uc;a.F=!0;a.m=!1;d=a.g.currentTime;e=a.g.autoplay;a.g.paused||(a.La=!0);a.cb&&(a.g.autoplay=!1);ua(G,2);a.u.Sa();f=t(a.j.values());for(g=f.next();!g.done;g=f.next())h=g.value,h.destroy();k=t(a.l.values());for(l=k.next();!l.done;l=k.next()){m=l.value;try{a.i.removeSourceBuffer(m)}catch(C){}}a.j.clear();a.l.clear();n=a.i.duration;a.J=new Ig;a.i=xk(a,a.J);return F(G,a.J,4)}if(2!=
G.g){!isNaN(n)&&n?a.i.duration=n:!isNaN(a.oa)&&a.oa&&(a.i.duration=a.oa);q=new Ig;r=a.i.sourceBuffers;u=b.size;w=0;v=function(){w++;w===u&&(q.resolve(),a.u.Da(r,"addsourcebuffer",v))};a.u.o(r,"addsourcebuffer",v);y=t(b.keys());for(z=y.next();!z.done;z=y.next())A=z.value,B=b.get(A),Ek(a,A,B,B.codecs);(D=b.get(c.ma))&&D.isAudioMuxedInVideo&&(a.m=!0);a.m&&!a.s.has(c.ma)&&a.s.set(c.ma,[]);a.g.currentTime=d;return F(G,q,2)}ya(G);a.F=!1;fh(a.H);a.u.qa(a.g,"canplaythrough",function(){a.H.g||(a.g.autoplay=
e,a.La&&(a.La=!1,a.g.play()))});return Ba(G,0)})}function ql(a,b){return al(a,function(){return pl(a,b)})}function rl(a,b,c,d){var e=!1,f=pc("audio",(d||"").split(",")),g=pc("video",(d||"").split(",")),h=g;"audio"==b&&(h=f);h||(h=d);d=bf(c,h);var k=kf(a.D.get(b)),l=a.B.forceTransmux;!bd(d)||!a.G&&cf.includes(d)?l=!0:l||c==k||(l="WEBKIT"===Rb().Ga()&&cf.includes(c));if(l&&(a=df(c,h),c=We(a))){var m=c();f&&g&&(e=!0);d=m.convertCodecs(b,a)}b=gf(lf(d));return{kc:m,nm:e,Ai:kf(d),codec:b,mimeType:d}}
function sl(a,b,c,d,e){if(b==sc)return{type:tl,If:c,kc:null};var f=gf(lf(a.D.get(b))),g=kf(a.D.get(b)),h=rl(a,b,c,d),k=h.kc,l=h.nm,m=h.Ai,n=h.codec;h=h.mimeType;var q=!0;l&&a.D.has("audio")&&(c=rl(a,"audio",c,d),d=gf(lf(a.D.get("audio"))),q=kf(a.D.get("audio")),q=d==c.codec&&q==c.Ai,c.kc&&c.kc.destroy());if(f===n&&g===m&&q)return{type:tl,If:h,kc:k};f=!0;if(a.m&&!e.has("audio")||l&&k&&!a.j.has(b))f=!1;if(f&&"smooth"===a.B.codecSwitchingStrategy&&dd())return{type:ul,If:h,kc:k};k&&k.destroy();return{type:vl,
If:h,kc:null}}function Yk(a,b,c,d,e){var f,g,h,k,l,m;return Q(function(n){if(1==n.g){f=uc;g=sl(a,b,c,d,e);h=g.type;k=g.kc;l=g.If;if(m=e.get(f.ma))a.m=m.isAudioMuxedInVideo;if(h==tl)return a.j.has(b)&&!k?(a.j.get(b).destroy(),a.j.delete(b)):!a.j.has(b)&&k?a.j.set(b,k):k&&(a.j.has(b)&&a.j.get(b).transmux!==k.transmux?(a.j.get(b).destroy(),a.j.set(b,k)):k.destroy()),n.return(!1);if(h==ul)return F(n,ol(a,b,l,k),3);if(h!=vl)return n.A(3);k&&k.destroy();return F(n,ql(a,e),3)}return n.return(!0)})}
function wl(a,b,c,d,e){a=sl(a,b,c,d,e);a.kc&&a.kc.destroy();return a.type==vl}var zk=window.URL.createObjectURL,Gk="sequence",tl="none",vl="reset",ul="changeType";function xl(a,b,c){this.i=a;this.D=b;this.u=this.l=Infinity;this.h=1;this.g=this.j=null;this.B=0;this.C=!0;this.I=!1;this.H=0;this.F=void 0===c?!0:c;this.G=0;this.s=!1;this.m=a}p=xl.prototype;p.getDuration=function(){return this.l};p.Pk=function(){return this.h};p.Gj=function(a){this.i=a};p.vb=function(a){this.l=a};p.Vk=function(){return this.i};p.Dj=function(a){this.B=a};p.nd=function(a){a&&!this.C&&(this.I=!0);this.C=a};p.ag=function(a){this.u=a};p.rf=function(){return this.u};
p.Uh=function(a){this.D=a};p.Ek=function(){return this.D};p.lj=function(a,b){if(0!=a.length){var c=(Date.now()+this.B)/1E3;a=a.filter(function(e){return e.start+b<c});if(0!=a.length){var d=a[a.length-1].end+b;this.Jf(a[0].start+b);this.h=a.reduce(function(e,f){return Math.max(e,f.end-f.start)},this.h);this.g=Math.max(this.g,d);null!=this.i&&this.F&&!this.s&&(this.i=c-this.g-this.h)}}};
p.re=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.B)/1E3;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d<e.startTime||(b=Math.min(b,e.startTime),c=Math.max(c,e.endTime),this.h=Math.max(this.h,e.endTime-e.startTime));this.Jf(b);this.g=Math.max(this.g,c);null!=this.i&&this.F&&!this.s&&(this.i=d-this.g-this.h)}};p.kj=function(a,b){this.Jf(a);Infinity==b||this.T()||(this.g=Math.max(this.g,b))};p.Qk=function(){return this.g};p.Df=function(){this.s=!0};
p.Bl=function(){return this.s};p.Wh=function(a){this.m=a};p.Ik=function(){return this.m};p.Jf=function(a){null==this.j?this.j=a:this.I||(this.j=Math.min(this.j,a))};p.Ch=function(a){this.h=Math.max(this.h,a)};p.offset=function(a){null!=this.j&&(this.j+=a);null!=this.g&&(this.g+=a)};p.T=function(){return Infinity==this.l&&!this.C};p.fd=function(){return Infinity!=this.l&&!this.C};p.Kb=function(){return Math.max(this.H,this.Hc()-this.u)};p.Ij=function(a){this.H=a};
p.Hc=function(){return this.T()||this.fd()?Math.min(Math.max(0,(Date.now()+this.B)/1E3-this.h-this.i)+this.G,this.l):this.g?Math.min(this.g,this.l):this.l};p.ce=function(a){var b=Math.max(this.j,this.H);return Infinity==this.u?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Hc()-this.u+a,this.Jb()))};p.bc=function(){return this.ce(0)};p.Jb=function(){return Math.max(0,this.Hc()-(this.T()||this.fd()?this.D:0))};p.Vj=function(){return null==this.i||null!=this.g&&this.F?!1:!0};
p.Cj=function(a){this.G=a};p.tk=function(){return this.G};S("shaka.media.PresentationTimeline",xl);xl.prototype.getAvailabilityTimeOffset=xl.prototype.tk;xl.prototype.setAvailabilityTimeOffset=xl.prototype.Cj;xl.prototype.usingPresentationStartTime=xl.prototype.Vj;xl.prototype.getSeekRangeEnd=xl.prototype.Jb;xl.prototype.getSeekRangeStart=xl.prototype.bc;xl.prototype.getSafeSeekRangeStart=xl.prototype.ce;xl.prototype.getSegmentAvailabilityEnd=xl.prototype.Hc;xl.prototype.setUserSeekStart=xl.prototype.Ij;
xl.prototype.getSegmentAvailabilityStart=xl.prototype.Kb;xl.prototype.isInProgress=xl.prototype.fd;xl.prototype.isLive=xl.prototype.T;xl.prototype.offset=xl.prototype.offset;xl.prototype.notifyMaxSegmentDuration=xl.prototype.Ch;xl.prototype.notifyMinSegmentStartTime=xl.prototype.Jf;xl.prototype.getInitialProgramDateTime=xl.prototype.Ik;xl.prototype.setInitialProgramDateTime=xl.prototype.Wh;xl.prototype.isStartTimeLocked=xl.prototype.Bl;xl.prototype.lockStartTime=xl.prototype.Df;
xl.prototype.getMaxSegmentEndTime=xl.prototype.Qk;xl.prototype.notifyPeriodDuration=xl.prototype.kj;xl.prototype.notifySegments=xl.prototype.re;xl.prototype.notifyTimeRange=xl.prototype.lj;xl.prototype.getDelay=xl.prototype.Ek;xl.prototype.setDelay=xl.prototype.Uh;xl.prototype.getSegmentAvailabilityDuration=xl.prototype.rf;xl.prototype.setSegmentAvailabilityDuration=xl.prototype.ag;xl.prototype.setStatic=xl.prototype.nd;xl.prototype.setClockOffset=xl.prototype.Dj;
xl.prototype.getPresentationStartTime=xl.prototype.Vk;xl.prototype.setDuration=xl.prototype.vb;xl.prototype.setPresentationStartTime=xl.prototype.Gj;xl.prototype.getMaxSegmentDuration=xl.prototype.Pk;xl.prototype.getDuration=xl.prototype.getDuration;function yl(a,b,c,d){var e=this;this.u=d;this.g=a;this.C=b;this.h=c;this.s=new Oc;this.l=!1;this.F=a.readyState;this.G=this.D=this.j=0;this.m=zl(this);this.B=!1;this.s.o(a,"waiting",function(){return Al(e)});this.i=(new zf(function(){Al(e)})).ya(this.h.gapJumpTimerTime)}yl.prototype.release=function(){this.s&&(this.s.release(),this.s=null);null!=this.i&&(this.i.stop(),this.i=null);this.m&&(this.m.release(),this.m=null);this.g=this.C=this.u=null};
yl.prototype.Mf=function(){this.B=!0;this.i&&this.i.ya(this.h.gapJumpTimerTime);Al(this)};
function Al(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.l)return}else a.l=!1;if(!a.g.paused||a.g.currentTime==a.j&&(a.g.autoplay||a.g.currentTime!=a.j)){a.g.readyState!=a.F&&(a.F=a.g.readyState);var b;if(!(b=!a.m)){b=a.m;var c=b.h,d=Bl(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.m!=d)b.l=f,b.g=e,b.m=d,b.i=!1;e=f-b.l;if(d=e>=b.s&&d&&!b.i)b.j&&b.j(b.g,e),b.i=!0,b.g=c.g.currentTime;b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Jj(c,b,a.h.gapDetectionThreshold),null==d||0==d&&!a.B||(e=c.start(d),
(f=a.h.gapPadding)&&(e=Math.ceil(100*(e+f))/100),e>=a.C.Jb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.j&&(a.j=e),a.D++,a.u(new U("gapjumped")))))}}}
function zl(a){if(!a.h.stallEnabled)return null;var b=a.h.stallThreshold,c=a.h.stallSkip;return new Cl(new Dl(a.g),b,function(){var d;return Q(function(e){if(1==e.g)return d=Ij(a.g.buffered),d.length?c?(a.g.currentTime+=c,e.A(2)):F(e,a.g.play(),3):e.return();if(2!=e.g){if(!a.g)return e.return();a.g.pause();a.g.play()}a.G++;a.u(new U("stalldetected"));I(e)})})}function Cl(a,b,c){this.h=a;this.m=Bl(a);this.g=a.g.currentTime;this.l=Date.now()/1E3;this.i=!1;this.s=b;this.j=c}
Cl.prototype.release=function(){this.h&&this.h.release();this.j=this.h=null};function Dl(a){var b=this;this.g=a;this.h=new Oc;this.i=!1;this.h.o(this.g,"audiofocuspaused",function(){b.i=!0});this.h.o(this.g,"audiofocusgranted",function(){b.i=!1});this.h.o(this.g,"audiofocuslost",function(){b.i=!0})}
function Bl(a){if(a.g.paused||0==a.g.playbackRate||a.i||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(Ij(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}Dl.prototype.release=function(){this.h&&this.h.release();this.h=null};function El(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Fl.value().get(b),c.qa(a,b,d))}var Fl=new Qb(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Gl(a,b,c,d){var e=this;this.g=a;this.m=b;this.u=c;this.l=null;this.j=function(){null==e.l&&(e.l=d());return e.l};this.s=!1;this.h=new Oc;this.i=new Hl(a);El(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Il(e,e.j())})}Gl.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.m=function(){};this.g=null};function Jl(a){return a.s?a.g.currentTime:a.j()}
function Kl(a,b){0<a.g.readyState?Ll(a.i,b):El(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Il(a,a.j())})}function Il(a,b){.001>Math.abs(a.g.currentTime-b)?Ml(a):(a.h.qa(a.g,"seeking",function(){Ml(a)}),Ll(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function Ml(a){a.s=!0;a.h.o(a.g,"seeking",function(){return a.m()});a.u(a.g.currentTime)}
function Hl(a){var b=this;this.g=a;this.m=10;this.j=this.l=this.i=0;this.h=new zf(function(){0>=b.i?b.h.stop():b.g.currentTime!=b.l||b.g.currentTime===b.j?b.h.stop():(b.g.currentTime=b.j,b.i--)})}Hl.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};function Ll(a,b){a.l=a.g.currentTime;a.j=b;a.i=a.m;a.g.currentTime=b;a.h.ya(.1)};function Nl(a){this.g=a;this.i=!1;this.h=null;this.j=new Oc}p=Nl.prototype;p.ready=function(){function a(){if(null==b.h||0==b.h&&Infinity!=b.g.duration)b.i=!0;else{var c=b.g.currentTime,d=null;if("number"===typeof b.h)d=b.h;else if(b.h instanceof Date){var e=Ol(b);null!==e&&(d=b.h.getTime()/1E3-e,d=Pl(b,d))}null==d?b.i=!0:(0>d&&(d=Math.max(0,c+d)),c!=d?(b.j.qa(b.g,"seeking",function(){b.i=!0}),b.g.currentTime=d):b.i=!0)}}var b=this;El(this.g,HTMLMediaElement.HAVE_FUTURE_DATA,this.j,function(){a()})};
p.release=function(){this.j&&(this.j.release(),this.j=null);this.g=null};p.sg=function(a){this.h=this.i?this.h:a};p.Ue=function(){var a=this.i?this.g.currentTime:this.h;a instanceof Date&&(a=a.getTime()/1E3-(Ol(this)||0),a=Pl(this,a));return a||0};p.ri=function(){return 0};p.pi=function(){return 0};p.jj=function(){};p.Xi=function(){var a=Fj(this.g.buffered);return null!=a&&a>=this.g.duration-1};function Ol(a){return a.g.getStartDate&&(a=a.g.getStartDate().getTime(),!isNaN(a))?a/1E3:null}
function Pl(a,b){a=a.g.seekable;0<a.length&&(b=Math.max(a.start(0),b),b=Math.min(a.end(a.length-1),b));return b}
function Ql(a,b,c,d,e,f){var g=this;this.h=a;this.g=b.presentationTimeline;this.l=c;this.u=e;this.s=null;this.j=new yl(a,b.presentationTimeline,c,f);this.i=new Gl(a,function(){a:{var h=g.j;h.l=!0;h.B=!1;h.i&&h.i.ya(h.h.gapJumpTimerTime);Al(h);var k=Jl(g.i);h=Rl(g,k);if(!ed()&&.001<Math.abs(h-k)){k=!1;var l=Rb().xj();if(l){var m=Date.now()/1E3;if(!g.s||g.s<m-l)g.s=m,k=!0}else k=!0;if(k){Kl(g.i,h);h=void 0;break a}}g.u();h=void 0}return h},function(h){var k=g.j;k.g.seeking&&!k.l&&(k.l=!0,k.j=h);k.i&&
k.i.ya(k.h.gapJumpTimerTime);Al(k)},function(){return Sl(g,d)});this.m=new zf(function(){if(0!=g.h.readyState&&!g.h.paused){var h=Jl(g.i),k=g.g.bc(),l=g.g.Jb();3>l-k&&(k=l-3);h<k&&(h=Rl(g,h),g.h.currentTime=h)}})}p=Ql.prototype;p.ready=function(){this.m.ya(.25)};p.release=function(){this.i&&(this.i.release(),this.i=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.h=this.i=this.g=this.l=null;this.u=function(){}};p.sg=function(a){Kl(this.i,Sl(this,a))};
p.Ue=function(){var a=Jl(this.i);return 0<this.h.readyState&&!this.h.paused?Tl(this,a):a};p.ri=function(){return this.j.G};p.pi=function(){return this.j.D};function Sl(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.bc():a.g.Jb():b instanceof Date?b=b.getTime()/1E3-(a.g.m||a.g.i):0>b&&(b=a.g.Jb()+b);return Ul(a,Tl(a,b))}p.jj=function(){this.j.Mf()};p.Xi=function(){if(this.g.T()){var a=this.g.Hc(),b=Fj(this.h.buffered);if(null!=b&&b>=a)return!0}return!1};
function Ul(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}function Rl(a,b){var c=a.l.rebufferingGoal,d=a.l.safeSeekOffset,e=a.g.bc(),f=a.g.Jb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.ce(c),k=a.g.ce(d);c=a.g.ce(c+d);return b>=g?Ul(a,b):b>f?f-a.l.safeSeekEndOffset:b<e?a.g.T()&&a.l.returnToEndOfLiveWindowWhenOutside?f-a.l.safeSeekEndOffset:Gj(a.h.buffered,k)?k:c:b>=h||Gj(a.h.buffered,b)?b:c}function Tl(a,b){var c=a.g.bc();if(b<c)return c;a=a.g.Jb();return b>a?a:b};function Vl(a){this.g=a;this.m=null;this.i=0;this.s=!1}p=Vl.prototype;p.getNumReferences=function(){return this.g.length};p.getNumEvicted=function(){return this.i};p.release=function(){this.s||(this.g=[],this.m&&this.m.stop(),this.m=null)};p.Il=function(){this.s=!0};p.Hb=function(a){for(var b=t(this.g),c=b.next();!c.done;c=b.next())a(c.value)};function cg(a){return a.g[0]||null}
p.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.i}return this.g.length&&a<this.g[0].startTime?this.i:null};p.get=function(a){if(0==this.g.length)return null;a-=this.i;return 0>a||a>=this.g.length?null:this.g[a]};p.offset=function(a){if(!this.s)for(var b=t(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};
2025-06-19 04:02:44 +02:00
p.Ff=function(a){if(!this.s&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,x(a))}};p.pe=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.Ff(a);this.hb(b)};p.hb=function(a){if(!this.s){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.i+=b-this.g.length}};
2025-06-27 11:02:59 +02:00
p.yd=function(a,b,c){c=void 0===c?!1:c;if(!this.s){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.i++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],b=new Aj(a.startTime,b,a.D,a.startByte,a.endByte,a.ea,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.g,a.tilesLayout,a.C,a.h,a.status,a.aesKey),b.mimeType=a.mimeType,b.codecs=a.codecs,b.i=a.i,this.g[this.g.length-1]=b)}};
p.ig=function(a,b){var c=this;this.s||(this.m&&this.m.stop(),this.m=new zf(function(){var d=b();d?c.g.push.apply(c.g,x(d)):(c.m.stop(),c.m=null)}),this.m.ya(a))};Vl.prototype[Symbol.iterator]=function(){return this.ac(0)};
Vl.prototype.ac=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.find(a);if(null==d)return null;var e=this.get(d);c?d++:d--;var f=-1;if(e&&0<e.g.length)for(var g=e.g.length-1;0<=g;--g){var h=e.g[g];if(a>=h.startTime&&a<h.endTime){if(!b){for(;g&&!h.l;)g--,h=e.g[g];if(!h.l)return $a("No independent partial segment found!"),null}c?d--:d++;f=g-1;break}}return new Wl(this,d,f,c)};Vl.prototype.hf=function(){return-1};
function Xl(a,b,c){a=new Aj(a,a+b,function(){return c},0,null,null,a,a,a+b);return new Vl([a])}S("shaka.media.SegmentIndex",Vl);Vl.forSingleSegment=Xl;Vl.prototype.getIteratorForTime=Vl.prototype.ac;Vl.prototype.updateEvery=Vl.prototype.ig;Vl.prototype.fit=Vl.prototype.yd;Vl.prototype.evict=Vl.prototype.hb;Vl.prototype.mergeAndEvict=Vl.prototype.pe;Vl.prototype.offset=Vl.prototype.offset;Vl.prototype.get=Vl.prototype.get;Vl.prototype.find=Vl.prototype.find;Vl.prototype.markImmutable=Vl.prototype.Il;
Vl.prototype.release=Vl.prototype.release;Vl.prototype.getNumEvicted=Vl.prototype.getNumEvicted;Vl.prototype.getNumReferences=Vl.prototype.getNumReferences;function Wl(a,b,c,d){this.i=a;this.h=b;this.g=c;this.reverse=d}p=Wl.prototype;p.Pd=function(a){this.reverse=a};p.lk=function(){return this.h};p.current=function(){var a=this.i.get(this.h);a&&0<a.g.length&&a.B&&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};
p.next=function(){var a=this.i.get(this.h);this.reverse?a&&0<a.g.length?(this.g--,0>this.g&&(this.h--,this.g=(a=this.i.get(this.h))&&0<a.g.length?a.g.length-1:0)):(this.h--,this.g=0):a&&0<a.g.length?(this.g++,a.B&&this.g==a.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0);a=this.current();return{value:a,done:!a}};p.Nh=function(){var a=this.current();if(a.s&&!a.l&&(a=this.i.get(this.h))&&0<a.g.length)for(var b=a.g[this.g];b.l&&!(0>=this.g);)this.g--,b=a.g[this.g]};
S("shaka.media.SegmentIterator",Wl);Wl.prototype.resetToLastIndependent=Wl.prototype.Nh;Wl.prototype.next=Wl.prototype.next;Wl.prototype.current=Wl.prototype.current;Wl.prototype.currentPosition=Wl.prototype.lk;Wl.prototype.setReverse=Wl.prototype.Pd;function Yl(){Vl.call(this,[]);this.h=[]}pa(Yl,Vl);p=Yl.prototype;p.clone=function(){var a=new Yl;a.h=this.h.slice();a.i=this.i;return a};p.release=function(){for(var a=t(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]};
p.Hb=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.Hb(a)};function Zl(a,b){a=t(a.h);for(var c=a.next();!c.done;c=a.next())b(c.value)}p.find=function(a){for(var b=this.i,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.getNumEvicted()+d.getNumReferences()}return null};function $l(a,b){a=t(a.h);for(var c=a.next();!c.done;c=a.next())if(c=c.value,null!=c.find(b))return c.hf();return-1}
p.get=function(a){for(var b=this.i,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;e=d.getNumReferences();b+=d.getNumEvicted()+e}return null};p.offset=function(){};p.Ff=function(){};p.hb=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.hb(a);for(;1<this.h.length&&0==this.h[0].getNumReferences();)a=this.h.shift(),this.i+=a.getNumEvicted(),a.release()};p.pe=function(){};p.yd=function(){};p.ig=function(){};S("shaka.media.MetaSegmentIndex",Yl);
Yl.prototype.updateEvery=Yl.prototype.ig;Yl.prototype.fit=Yl.prototype.yd;Yl.prototype.mergeAndEvict=Yl.prototype.pe;Yl.prototype.evict=Yl.prototype.hb;Yl.prototype.merge=Yl.prototype.Ff;Yl.prototype.offset=Yl.prototype.offset;Yl.prototype.get=Yl.prototype.get;Yl.prototype.find=Yl.prototype.find;Yl.prototype.forEachTopLevelReference=Yl.prototype.Hb;Yl.prototype.release=Yl.prototype.release;function am(a){var b=this;this.g=a;this.j=!1;this.i=this.g.qf();this.h=new zf(function(){b.g.hj(.25*b.i)})}am.prototype.release=function(){this.set(this.bd());this.h&&(this.h.stop(),this.h=null);this.g=null};am.prototype.set=function(a){this.i=a;bm(this)};am.prototype.bd=function(){return this.g.bd()};function bm(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.qf()!=b&&a.g.Xh(b);return}catch(c){}a.h.ya(.25);0!=a.g.qf()&&a.g.Xh(0)};function cm(a){var b=this;this.j=a;this.h=new Oc;this.g=new Set;this.i=(new zf(function(){dm(b,!1)})).Ka();a.paused||this.i.ya(.25);this.h.o(a,"playing",function(){b.i.Ka().ya(.25)});this.h.o(a,"pause",function(){b.i.stop()})}cm.prototype.release=function(){this.h&&(this.h.release(),this.h=null);this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function dm(a,b){var c=a.j.currentTime;a=t(a.g);for(var d=a.next();!d.done;d=a.next())d.value.j(c,b)};function em(a){jb.call(this);this.g=new Map;this.h=a}pa(em,jb);em.prototype.release=function(){this.g.clear();jb.prototype.release.call(this)};function fm(a,b){var c=a.g.get(b);c||(c={ve:[],Mg:null,contentType:b},a.g.set(b,c));return c}function gm(a,b,c){var d=fm(a,b.contentType);hm(a,d);a={Ed:b,position:c};d=d.ve;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
em.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;var d=c.Mg;a:{var e=c.ve;for(var f=e.length-1;0<=f;f--){var g=e[f];if(g.position<=a){e=g.Ed;break a}}e=null}f=e&&!(d===e||d&&e&&d.bandwidth==e.bandwidth&&d.audioSamplingRate==e.audioSamplingRate&&d.codecs==e.codecs&&d.contentType==e.contentType&&d.frameRate==e.frameRate&&d.height==e.height&&d.mimeType==e.mimeType&&d.channelsCount==e.channelsCount&&d.pixelAspectRatio==e.pixelAspectRatio&&d.width==e.width);
g=e&&d&&e.label&&d.label&&d.label!==e.label;var h=e&&d&&e.language&&d.language&&d.language!==e.language;d=e&&d&&e.roles&&d.roles&&!ud(d.roles,e.roles);(g||h||d)&&im(this,a,e.contentType)&&(c.Mg=e,d=new U("audiotrackchange",new Map([["quality",e],["position",a]])),this.dispatchEvent(d));f&&im(this,a,e.contentType)&&(c.Mg=e,JSON.stringify(e),c=new U("qualitychange",new Map([["quality",e],["position",a]])),this.dispatchEvent(c))}};
function im(a,b,c){return(a=a.h()[c])&&0<a.length&&(c=a[a.length-1].end,b>=a[0].start&&b<c)?!0:!1}function hm(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.ve;b.ve=e.filter(function(f,g){return f.position<=c&&g+1<e.length&&e[g+1].position<=c||f.position>=d?!1:!0})}else b.ve=[]}
function jm(a){var b={bandwidth:a.bandwidth||0,audioSamplingRate:null,codecs:a.codecs,contentType:a.type,frameRate:null,height:null,mimeType:a.mimeType,channelsCount:null,pixelAspectRatio:null,width:null,label:null,roles:a.roles,language:null};"video"==a.type&&(b.frameRate=a.frameRate||null,b.height=a.height||null,b.pixelAspectRatio=a.pixelAspectRatio||null,b.width=a.width||null);"audio"==a.type&&(b.audioSamplingRate=a.audioSamplingRate,b.channelsCount=a.channelsCount,b.label=a.label||null,b.language=
a.language);return b};function km(a){jb.call(this);this.h=new Map;this.i=a;this.g=null}pa(km,jb);km.prototype.release=function(){this.h.clear();this.g&&(this.g.stop(),this.g=null);jb.prototype.release.call(this)};function lm(a,b){var c=b.schemeIdUri+"_"+b.id+"_"+(b.startTime.toFixed(1)+"_"+b.endTime.toFixed(1));a.h.has(c)||(a.h.set(c,b),b=new U("regionadd",new Map([["region",b]])),a.dispatchEvent(b),mm(a))}
function mm(a){a.g||(a.g=(new zf(function(){for(var b=a.i(),c=t(a.h),d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;e.endTime<b.start&&(a.h.delete(d),d=new U("regionremove",new Map([["region",e]])),a.dispatchEvent(d))}!a.h.size&&a.g&&(a.g.stop(),a.g=null)})).ya(2))};function nm(a,b,c,d){this.m=a;this.i=b;this.l=c;this.h=new Map;this.j=new Map;this.g=null;this.s=d}function om(a,b){a.l=b;a=t(a.h.values());for(var c=a.next();!c.done;c=a.next())c.value.g=b}
function pm(a,b,c){c=void 0===c?!1:c;if(!a.i.segmentIndex)return Promise.resolve();a.g||(a.g=a.i.segmentIndex.ac(b,!0,a.s));if(!a.g)return Promise.resolve();c&&a.g.next();for(b=[];a.h.size<a.m;){c=a.g.next().value;if(!c)break;var d=!0;c.isPreload()&&null!=c.endByte&&(d=!1);2==c.Jc()&&(d=!1);c.cc(!1)&&(d=!1);d&&c.ea&&b.push(qm(a,c.ea));d&&!a.h.has(c)&&(d=new rm(a.l),b.push(sm(d,c,a.i)),a.h.set(c,d))}tm(a);return Promise.all(b)}
function qm(a,b){if(!a.i.segmentIndex||b.cc()||Array.from(a.j.keys()).some(function(e){return zj(e,b)}))return Promise.resolve();var c=new rm(a.l),d=sm(c,b,a.i);a.j.set(b,c);return d}function um(a,b){b=t(b.keys());for(var c=b.next();!c.done;c=b.next())(c=c.value)&&vm(a,c)}function wm(a){um(a,a.h);um(a,a.j);a.g=null}nm.prototype.hb=function(a,b){b=void 0===b?!1:b;for(var c=t(this.h.keys()),d=c.next();!d.done;d=c.next())d=d.value,a>d.endTime&&vm(this,d);b&&tm(this)};
nm.prototype.Pd=function(a){this.s=a;this.g&&this.g.Pd(a)};function tm(a){for(var b=Array.from(a.h.keys()),c=t(a.j.keys()),d=c.next(),e={};!d.done;e={uh:void 0},d=c.next())e.uh=d.value,b.some(function(f){return function(g){return zj(g.ea,f.uh)}}(e))||vm(a,e.uh)}function xm(a,b){a.m=b;for(var c=Array.from(a.h.keys());c.length>b;){var d=c.pop();d&&vm(a,d)}tm(a)}function ym(a,b){b&&b!==a.i&&(wm(a),a.i=b)}function vm(a,b){var c=a.h;b instanceof yj&&(c=a.j);a=c.get(b);c.delete(b);a&&a.abort()}
function rm(a){this.g=a;this.se=this.ci=null}function sm(a,b,c){var d=new Uint8Array(0);a.se=a.g(b,c,function(e){return Q(function(f){if(1==f.g)return 0<d.byteLength?d=kc(d,e):d=e,a.ci?F(f,a.ci(d),3):f.A(0);d=new Uint8Array(0);I(f)})});return a.se.promise.catch(function(e){return e instanceof V&&7001==e.code?Promise.resolve():Promise.reject(e)})}rm.prototype.abort=function(){this.se&&this.se.abort()};function zm(a){var b=kf(a),c=b.split("/")[0];a=lf(a);return{type:c,mimeType:b,codecs:a,language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map,Ge:null,colorGamut:null,frameRate:null}}
function Am(a,b,c){function d(C){y=C.name;var E=C.reader;E.skip(24);var H=E.Fa(),K=E.Fa();E.skip(50);q=String(H);n=String(K);C.reader.Oa()&&qh(C)}function e(C){var E=Mi(C.reader);r=E.channelCount;u=E.sampleRate;f(C.name)}function f(C){C=C.toLowerCase();switch(C){case "avc1":case "avc3":h.push(C+".42E01E");l=!0;break;case "hev1":case "hvc1":h.push(C+".1.6.L93.90");l=!0;break;case "dvh1":case "dvhe":h.push(C+".05.04");l=!0;break;case "vp09":h.push(C+".00.10.08");l=!0;break;case "av01":h.push(C+".0.01M.08");
l=!0;break;case "mp4a":g.push("mp4a.40.2");k=!0;break;case "ac-3":case "ec-3":case "ac-4":case "opus":case "flac":g.push(C);k=!0;break;case "apac":g.push("apac.31.00"),k=!0}}var g=[],h=[],k=!1,l=!1,m=null,n=null,q=null,r=null,u=null,w=null,v=null,y;(new lh).box("moov",qh).box("trak",qh).box("mdia",qh).V("mdhd",function(C){m=Ki(C.reader,C.version).language}).box("minf",qh).box("stbl",qh).V("stsd",sh).box("mp4a",function(C){var E=Mi(C.reader);r=E.channelCount;u=E.sampleRate;C.reader.Oa()?qh(C):f(C.name)}).box("esds",
function(C){C=C.reader;for(var E="mp4a",H,K;C.Oa();){H=C.aa();for(var J=C.aa();J&128;)J=C.aa();if(3==H)C.Fa(),J=C.aa(),J&128&&C.Fa(),J&64&&C.skip(C.aa()),J&32&&C.Fa();else if(4==H)K=C.aa(),C.skip(12);else if(5==H)break}K&&(E+="."+Pi(K),5==H&&C.Oa()&&(H=C.aa(),K=(H&248)>>3,31===K&&C.Oa()&&(K=32+((H&7)<<3)+((C.aa()&224)>>5)),E+="."+K));g.push(E);k=!0}).box("ac-3",e).box("ec-3",e).box("ac-4",e).box("Opus",e).box("fLaC",e).box("apac",e).box("avc1",d).box("avc3",d).box("hev1",d).box("hvc1",d).box("dva1",
d).box("dvav",d).box("dvh1",d).box("dvhe",d).box("vp09",d).box("av01",d).box("avcC",function(C){var E=y||"";switch(y){case "dvav":E="avc3";break;case "dva1":E="avc1"}C=C.reader;C.skip(1);C=E+"."+Pi(C.aa())+Pi(C.aa())+Pi(C.aa());h.push(C);l=!0}).box("hvcC",function(C){var E=y||"";switch(y){case "dvh1":E="hvc1";break;case "dvhe":E="hev1"}var H=C.reader;H.skip(1);C=H.aa();var K=["","A","B","C"][C>>6],J=C&31,L=H.W(),N=(C&32)>>5?"H":"L";C=[H.aa(),H.aa(),H.aa(),H.aa(),H.aa(),H.aa()];H=H.aa();for(var O=
0,M=0;32>M;M++){O|=L&1;if(31==M)break;O<<=1;L>>=1}E=E+("."+K+J)+("."+Pi(O,!0));E+="."+N+H;K="";for(J=C.length;J--;)if((N=C[J])||K)K="."+N.toString(16).toUpperCase()+K;E+=K;h.push(E);l=!0}).box("dvcC",function(C){var E=y||"";switch(y){case "hvc1":E="dvh1";break;case "hev1":E="dvhe";break;case "avc1":E="dva1";break;case "avc3":E="dvav";break;case "av01":E="dav1"}var H=C.reader;H.skip(2);C=H.aa();H=H.aa();h.push(E+"."+Qi(C>>1&127)+"."+Qi(C<<5&32|H>>3&31));l=!0}).box("dvvC",function(C){var E=y||"";switch(y){case "hvc1":E=
"dvh1";break;case "hev1":E="dvhe";break;case "avc1":E="dva1";break;case "avc3":E="dvav";break;case "av01":E="dav1"}var H=C.reader;H.skip(2);C=H.aa();H=H.aa();h.push(E+"."+Qi(C>>1&127)+"."+Qi(C<<5&32|H>>3&31));l=!0}).V("vpcC",function(C){var E=y||"",H=C.reader;C=H.aa();var K=H.aa();H=H.aa()>>4&15;h.push(E+"."+Qi(C)+"."+Qi(K)+"."+Qi(H));l=!0}).box("av1C",function(C){var E=y||"";switch(y){case "dav1":E="av01"}var H=C.reader;H.skip(1);C=H.aa();H=H.aa();var K=C>>>5,J=(H&64)>>6;h.push(E+"."+K+"."+Qi(C&
31)+(H>>>7?"H":"M")+"."+Qi(2===K&&J?(H&32)>>5?12:10:J?10:8)+"."+((H&16)>>4)+"."+((H&8)>>3)+((H&4)>>2)+(H&3)+"."+Qi(1)+"."+Qi(1)+"."+Qi(1)+".0");l=!0}).box("enca",uh).box("encv",th).box("sinf",qh).box("frma",function(C){C=Ni(C.reader).codec;f(C)}).box("colr",function(C){h=h.map(function(K){if(K.startsWith("av01.")){var J=C.reader,L=J.Ua(),N=J.Xb(4);var O=String.fromCharCode(N[0]);O+=String.fromCharCode(N[1]);O+=String.fromCharCode(N[2]);O+=String.fromCharCode(N[3]);if("nclx"===O){N=J.Fa();O=J.Fa();
var M=J.Fa(),P=J.aa()>>7,R=K.split(".");10==R.length&&(R[6]=Qi(N),R[7]=Qi(O),R[8]=Qi(M),R[9]=String(P),K=R.join("."))}J.seek(L)}return K});var E=Oi(C.reader),H=E.colorGamut;w=E.Ge;v=H}).parse(a||b,!0,!0);if(!g.length&&!h.length)return null;var z=k&&!l,A=new Map;if(l&&!c){c=new id("video/mp4");a&&c.init(a);try{c.Of(b);for(var B=t(c.rg()),D=B.next();!D.done;D=B.next()){var G=D.value;A.set(G,G)}}catch(C){}c.Sd()}return{type:z?"audio":"video",mimeType:z?"audio/mp4":"video/mp4",codecs:Bm(g.concat(h)).join(", "),
language:m,height:n,width:q,channelCount:r,sampleRate:u,closedCaptions:A,Ge:w,colorGamut:v,frameRate:null}}function Bm(a){var b=new Set,c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=jf(d);b.has(e)||(c.push(d),b.add(e))}b=tc("audio",c);d=tc("video",c);a=tc(sc,c);d=Cm(d);b=b.concat(d).concat(a);return c.length&&!b.length?c:b}
function Cm(a){if(1>=a.length)return a;var b=a.find(function(c){return c.startsWith("dvav.")||c.startsWith("dva1.")||c.startsWith("dvh1.")||c.startsWith("dvhe.")||c.startsWith("dav1.")||c.startsWith("dvc1.")||c.startsWith("dvi1.")});return b?bd('video/mp4; codecs="'+b+'"')?[b]:a.filter(function(c){return c!=b}):a}
function Dm(a){var b=null;(new lh).box("moov",qh).box("trak",qh).box("mdia",qh).box("minf",qh).box("stbl",qh).V("stsd",sh).box("encv",th).box("enca",uh).box("sinf",qh).box("schi",qh).V("tenc",function(c){c=c.reader;c.aa();c.aa();c.aa();c.aa();b=jc(c.Xb(16))}).parse(a,!0);return b}
function Em(a,b,c){var d,e,f,g,h;return Q(function(k){if(1==k.g)return d=b,d.cryptoKey?k.A(2):F(k,d.fetchKey(),3);e=d.iv;if(!e)for(e=Kb(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;"CBC"==b.blockCipherMode?h={name:"AES-CBC",iv:e}:h={name:"AES-CTR",counter:e,length:64};return k.return(window.crypto.subtle.decrypt(h,d.cryptoKey,a))})};function Fm(a,b,c,d,e){a=Xg(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function Gm(a,b){var c=this;this.g=b;this.j=a;this.i=null;this.J=new Map;this.D=1;this.B=this.s=null;this.O=0;this.h=new Map;this.I=!1;this.P=null;this.C=!1;this.l=new eh(function(){return Hm(c)});this.L=Date.now()/1E3;this.m=new Map;this.N={projection:null,hfov:null};this.U=0;this.R=Infinity;this.F=null;this.K=[];this.u=new zf(function(){if(c.j&&c.g)if(c.j.presentationTimeline.T()){var d=c.j.presentationTimeline.bc(),e=c.j.presentationTimeline.Jb();1<e-d?bl(c.g.ha,d,e):cl(c.g.ha)}else cl(c.g.ha),
c.u&&c.u.stop();else c.u&&c.u.stop()});this.G=null;this.H=new zf(function(){var d=c.g.video;!d.ended&&c.G&&(d.currentTime=c.G,c.G=null)})}p=Gm.prototype;p.destroy=function(){return this.l.destroy()};
function Hm(a){var b,c,d,e,f,g,h;return Q(function(k){if(1==k.g){a.u&&a.u.stop();a.u=null;a.H&&a.H.stop();a.H=null;b=[];c=t(a.h.values());for(d=c.next();!d.done;d=c.next())e=d.value,Im(e),b.push(Jm(e)),e.ia&&(wm(e.ia),e.ia=null);f=t(a.m.values());for(g=f.next();!g.done;g=f.next())h=g.value,wm(h);return F(k,Promise.all(b),2)}a.h.clear();a.m.clear();a.g=null;a.j=null;a.i=null;a.G=null;I(k)})}
p.configure=function(a){this.i=a;this.P=new Fg({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);if(a.disableAudioPrefetch){var b=this.h.get("audio");b&&b.ia&&(wm(b.ia),b.ia=null);b=t(this.m.keys());for(var c=b.next();!c.done;c=b.next())c=c.value,wm(this.m.get(c)),this.m.delete(c)}a.disableTextPrefetch&&(b=this.h.get(sc))&&
b.ia&&(wm(b.ia),b.ia=null);a.disableVideoPrefetch&&(b=this.h.get("video"))&&b.ia&&(wm(b.ia),b.ia=null);b=t(this.h.keys());for(c=b.next();!c.done;c=b.next())c=this.h.get(c.value),c.ia?(xm(c.ia,a.segmentPrefetchLimit),0<a.segmentPrefetchLimit||(wm(c.ia),c.ia=null)):0<a.segmentPrefetchLimit&&(c.ia=Km(this,c.stream));a.disableAudioPrefetch||Lm(this)};function Mm(a,b,c){a.j.presentationTimeline.T()||(a.U=b,a.R=c)}
p.start=function(a){var b=this;return Q(function(c){if(1==c.g)return F(c,Nm(b,a||new Map),2);fh(b.l);b.I=!0;I(c)})};function Om(a,b){var c,d,e,f,g,h,k;Q(function(l){switch(l.g){case 1:return c=uc,a.O++,d=a.O,ta(l,2),F(l,Wk(a.g.ha,c.gb),4);case 4:wa(l,3);break;case 2:if(e=xa(l),a.g)a.g.onError(e);case 3:f=bf(b.mimeType,b.codecs),Fk(a.g.ha,f,a.j.sequenceMode,b.external),g=a.g.ha.Z,(h=g.isTextVisible()||a.i.alwaysStreamText)&&a.O==d&&(k=Pm(a,b),a.h.set(c.gb,k),Qm(a,k,0)),I(l)}})}
function Rm(a){var b=a.h.get(sc);b&&(Im(b),Jm(b).catch(function(){}),a.F=a.h.get(sc),a.h.delete(sc),b.stream&&b.stream.closeSegmentIndex&&b.stream.closeSegmentIndex());a.B=null}
function Sm(a,b){for(var c=0>a.g.Xa(),d=t(a.h.values()),e=d.next();!e.done;e=d.next())e=e.value,e.Aa&&e.Aa.Pd(c),e.ia&&e.ia.Pd(c);d=t(a.m.values());for(e=d.next();!e.done;e=d.next())e.value.Pd(c);if(c=a.h.get("video"))if(d=c.stream)if(b)(b=d.trickModeVideo)&&!c.Oc&&(Tm(a,b,!1,0,!1),c.Oc=d);else if(b=c.Oc)c.Oc=null,Tm(a,b,!0,0,!1)}
function Um(a,b,c,d,e,f){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;f=void 0===f?!1:f;a.s=b;a.I&&(b.video&&Tm(a,b.video,c,d,e,f),b.audio&&Tm(a,b.audio,c,d,e,f))}function Vm(a,b){Q(function(c){if(1==c.g)return a.F=null,a.B=b,a.I?b.segmentIndex?c.A(2):F(c,b.createSegmentIndex(),2):c.return();Tm(a,b,!0,0,!1);I(c)})}function Wm(a){var b=a.h.get(sc);b&&Tm(a,b.stream,!0,0,!0)}
function Xm(a,b){for(var c=t(a.J.entries()),d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;d.includes(b.type)&&(e(),a.J.delete(d))}}
function Tm(a,b,c,d,e,f){var g=a.h.get(b.type);g||b.type!=sc?g&&(g.Oc&&(b.trickModeVideo?(g.Oc=b,b=b.trickModeVideo):g.Oc=null),g.stream!=b||e)&&(a.m.has(b)?g.ia=a.m.get(b):g.ia&&ym(g.ia,b),b.type==sc&&(e=bf(b.mimeType,b.codecs),Fk(a.g.ha,e,a.j.sequenceMode,b.external)),!a.m.has(g.stream)&&g.stream.closeSegmentIndex&&(g.Za?(e="("+g.type+":"+g.stream.id+")",a.J.has(e)||a.J.set(e,g.stream.closeSegmentIndex)):g.stream.closeSegmentIndex()),e=g.stream.isAudioMuxedInVideo!=b.isAudioMuxedInVideo,g.stream=
b,g.Aa=null,g.zg=!!f,b.dependencyStream?g.$d=Pm(a,b.dependencyStream):g.$d=null,e&&(g.Bb=null,g.tc=null,g.sc=null,b.isAudioMuxedInVideo&&(b=null,"video"===g.type?b=a.h.get("audio"):"audio"===g.type&&(b=a.h.get("video")),b&&(Jm(b).catch(function(){}),b.Bb=null,b.tc=null,b.sc=null,Ym(a,b),Zm(a,b).catch(function(h){if(a.g)a.g.onError(h)})))),c?g.Vc?g.pg=!0:g.Za?(g.Tc=!0,g.gf=d,g.pg=!0):(Im(g),$m(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)})):g.Za||g.Db||Qm(a,g,0),Zm(a,g).catch(function(h){if(a.g)a.g.onError(h)})):
Om(a,b)}
function Zm(a,b){var c,d;return Q(function(e){if(1==e.g){if(!b.Mb)return e.return();c=b.stream;d=b.Mb;return c.segmentIndex?e.A(2):F(e,c.createSegmentIndex(),2)}if(b.Mb!=d||b.stream!=c)return e.return();var f=a.g.cd();var g=Lk(a.g.ha,b.type),h=b.stream.segmentIndex.find(b.Ra?b.Ra.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.endByte?k.endByte-k.startByte:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.ea)&&(h+=(k.endByte?k.endByte-k.startByte:null)||
0),k=a.g.getBandwidthEstimate(),f=8*h/k<(g||0)-f-a.i.rebufferingGoal||b.Mb.h.g>h?!0:!1):f=!1;f&&b.Mb.abort();I(e)})}
p.md=function(){if(this.g){for(var a=this.g.cd(),b=t(this.h.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.h.get(d);var e=this.g.ha;d==sc?(e=e.h,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Kk(e,d),e=Gj(e,a));if(!e){this.L=0;c.ia&&(c.ia.g=null);if("audio"===c.type){e=t(this.m.values());for(var f=e.next();!f.done;f=e.next())f.value.g=null}c.Aa=null;(null!=Lk(this.g.ha,d)||c.Za)&&Ym(this,c);c.Mb&&(c.Mb.abort(),c.Mb=null);d===sc&&(d=this.g.ha,d.I&&d.I.Sd());c.md=!0}}"keep"!==this.i.crossBoundaryStrategy&&
an(this)}};function Ym(a,b){b.Vc||b.Tc||(b.Za?(b.Tc=!0,b.gf=0):null==Jk(a.g.ha,b.type)?null==b.Db&&Qm(a,b,0):(Im(b),$m(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
function Nm(a,b){var c,d,e,f,g,h,k,l;return Q(function(m){if(1==m.g){if(!a.s)throw new V(2,5,5006);c=bn(a,!0);d=a.g.ha;return F(m,d.init(c,a.j.sequenceMode,a.j.type,a.j.ignoreManifestTimestampsInSegmentsMode),2)}fh(a.l);a.updateDuration();e=t(c.keys());for(f=e.next();!f.done;f=e.next())g=f.value,h=c.get(g),a.h.has(g)||(k=Pm(a,h),b.has(h.id)&&(l=b.get(h.id),om(l,function(n,q,r){return cn(n,q,r||null,a.i.retryParameters,a.g.xc)}),k.ia=l),a.h.set(g,k),Qm(a,k,0));I(m)})}
function Pm(a,b){var c={stream:b,type:b.type,Aa:null,ia:Km(a,b),Ra:null,Bb:null,Cf:null,tc:null,sc:null,Af:null,Bf:null,Oc:null,endOfStream:!1,Za:!1,Db:null,Tc:!1,gf:0,pg:!1,Vc:!1,md:!0,zg:!1,Kh:!1,fe:!1,Mb:null,$d:null};b.dependencyStream&&(c.$d=Pm(a,b.dependencyStream));return c}
function Km(a,b){if("video"===b.type&&a.i.disableVideoPrefetch||"audio"===b.type&&a.i.disableAudioPrefetch||b.type===sc&&("application/cea-608"==b.mimeType||"application/cea-708"==b.mimeType)||b.type===sc&&a.i.disableTextPrefetch)return null;if(a.m.has(b))return a.m.get(b);var c=a.h.get(b.type);return(c=c&&c.ia)&&b===c.i?c:0<a.i.segmentPrefetchLimit?new nm(a.i.segmentPrefetchLimit,b,function(d,e,f){return cn(d,e,f||null,a.i.retryParameters,a.g.xc)},0>a.g.Xa()):null}
function Lm(a){for(var b=a.i.segmentPrefetchLimit,c=a.i.prefetchAudioLanguages,d=t(a.j.variants),e=d.next(),f={};!e.done;f={Pb:void 0},e=d.next())if(f.Pb=e.value,f.Pb.audio)if(a.m.has(f.Pb.audio)){if(e=a.m.get(f.Pb.audio),xm(e,b),!(0<b&&c.some(function(h){return function(k){return xc(h.Pb.audio.language,k)}}(f)))){var g=a.h.get(f.Pb.audio.type);e!==(g&&g.ia)&&wm(e);a.m.delete(f.Pb.audio)}}else 0>=b||!c.some(function(h){return function(k){return xc(h.Pb.audio.language,k)}}(f))||!(e=Km(a,f.Pb.audio))||
(f.Pb.audio.segmentIndex||f.Pb.audio.createSegmentIndex(),a.m.set(f.Pb.audio,e))}p.updateDuration=function(){var a=ed(),b=this.j.presentationTimeline.getDuration();Infinity>b?(a&&(this.u&&this.u.stop(),cl(this.g.ha)),this.g.ha.vb(b)):a?(this.u&&this.u.ya(.5),this.g.ha.vb(Infinity)):this.g.ha.vb(Math.pow(2,32))};
function dn(a,b){var c,d,e,f,g,h;return Q(function(k){switch(k.g){case 1:fh(a.l);if(b.Za||null==b.Db||b.Vc)return k.return();b.Db=null;if(!b.Tc){k.A(2);break}return F(k,$m(a,b,b.pg,b.gf),3);case 3:return k.return();case 2:Xm(a,b);if(b.stream.segmentIndex){k.A(4);break}c=b.stream;ta(k,5);return F(k,b.stream.createSegmentIndex(),7);case 7:wa(k,6);break;case 5:return d=xa(k),F(k,en(a,b,d),8);case 8:return k.return();case 6:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.Za||b.Db||
Qm(a,b,0),k.return();case 4:ta(k,9);e=fn(a,b);null!=e&&(Qm(a,b,e),b.fe=!1);wa(k,10);break;case 9:return f=xa(k),F(k,en(a,b,f),11);case 11:return k.return();case 10:g=Array.from(a.h.values());if(!a.I||!g.every(function(l){return l.endOfStream})){k.A(0);break}return F(k,a.g.ha.endOfStream(),13);case 13:fh(a.l),h=a.g.ha.getDuration(),0!=h&&h<a.j.presentationTimeline.getDuration()&&a.j.presentationTimeline.vb(h),I(k)}})}
function fn(a,b){if(gn(b))return Tk(a.g.ha,b.stream.originalId||""),null;b.type==sc&&Uk(a.g.ha);if(b.stream.isAudioMuxedInVideo)return null;var c=a.i.updateIntervalSeconds/Math.max(1,Math.abs(a.g.Xa()));if(!Ik(a.g.ha)&&b.type!=sc)return c/2;var d=a.g.cd();if("audio"===b.type)for(var e=t(a.m.keys()),f=e.next();!f.done;f=e.next())f=a.m.get(f.value),f.hb(d,!0),pm(f,d);e=b.Ra?b.Ra.endTime:d;var g=Mk(a.g.ha,b.type,d);f=Math.max(1,Math.max(a.i.rebufferingGoal,a.i.bufferingGoal)*a.D);var h=a.j.presentationTimeline.getDuration()-
e,k=Lk(a.g.ha,b.type);if(1E-6>h&&k)return b.endOfStream=!0,"video"==b.type&&(a=a.h.get(sc))&&gn(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(g>=f)return c/2;h=!b.Aa;k=hn(a,b,d,k);if(!k)return c;g=!1;h&&b.zg&&(g=!0,b.zg=!1);h=Infinity;var l=Array.from(a.h.values());l=t(l);for(var m=l.next();!m.done;m=l.next())m=m.value,gn(m)||m.Aa&&!m.Aa.current()||(h=Math.min(h,m.Ra?m.Ra.endTime:d));if(e>=h+a.j.presentationTimeline.h)return c;if("keep"!==a.i.crossBoundaryStrategy&&jn(a,b,k))return null;b.ia&&b.Aa&&
!a.m.has(b.stream)&&(b.ia.hb(k.startTime+.001),pm(b.ia,k.startTime).catch(function(){}));kn(a,b,d,k,g).catch(function(){});b.$d&&ln(a,b.$d,d,f);return null}
function hn(a,b,c,d){if(b.Aa)return(c=b.Aa.current())&&b.Ra&&.001>Math.abs(b.Ra.startTime-c.startTime)&&(c=b.Aa.next().value),c;if(b.Ra||d)return c=b.Ra?b.Ra.endTime:d,a=0>a.g.Xa(),b.stream.segmentIndex&&(b.Aa=b.stream.segmentIndex.ac(c,!1,a)),b.Aa&&b.Aa.next().value;d=a.j.sequenceMode?0:a.i.inaccurateManifestTolerance;var e=Math.max(c-d,0);a=0>a.g.Xa();var f=null;d&&(b.stream.segmentIndex&&(b.Aa=b.stream.segmentIndex.ac(e,!1,a)),f=b.Aa&&b.Aa.next().value);f||(b.stream.segmentIndex&&(b.Aa=b.stream.segmentIndex.ac(c,
2025-06-19 04:02:44 +02:00
!1,a)),f=b.Aa&&b.Aa.next().value);return f}
2025-06-27 11:02:59 +02:00
function kn(a,b,c,d,e){var f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G;return Q(function(C){switch(C.g){case 1:f=uc;g=b.stream;h=b.Aa;b.Za=!0;ta(C,2);if(2==d.Jc())throw new V(1,1,1011);return F(C,mn(a,b,d,e),4);case 4:fh(a.l);if(a.C)return C.return();k="video/mp4"==g.mimeType||"audio/mp4"==g.mimeType;l=window.ReadableStream;if((m=a.i.lowLatencyMode&&a.j.isLowLatency)&&l&&k&&("HLS"!=a.j.type||d.m))return r=new Uint8Array(0),w=u=!1,y=function(E){var H,K,J,L;return Q(function(N){switch(N.g){case 1:if(u)return N.return();w=
!0;fh(a.l);if(a.C)return N.return();ta(N,2);r=kc(r,E);H=!1;K=0;(new lh).box("mdat",function(O){K=O.size+O.start;H=!0}).parse(r,!1,!0);if(!H){N.A(4);break}J=r.subarray(0,K);r=r.subarray(K);return F(N,nn(a,b,c,g,d,J,!0,e),5);case 5:b.ia&&b.Aa&&pm(b.ia,d.startTime,!0);case 4:wa(N,0);break;case 2:v=L=xa(N),I(N)}})},F(C,on(a,b,d,y),9);n=on(a,b,d);return F(C,n,7);case 7:q=C.h;fh(a.l);if(a.C)return C.return();fh(a.l);return b.Tc?(b.Za=!1,Qm(a,b,0),C.return()):F(C,nn(a,b,c,g,d,q,!1,e),6);case 9:z=C.h;if(v)throw v;
if(w){C.A(10);break}u=!0;fh(a.l);return a.C?C.return():b.Tc?(b.Za=!1,Qm(a,b,0),C.return()):F(C,nn(a,b,c,g,d,z,!1,e),10);case 10:b.ia&&b.Aa&&pm(b.ia,d.startTime,!0);case 6:fh(a.l);if(a.C)return C.return();b.Ra=d;h.next();b.Za=!1;b.Kh=!1;A=a.g.ha.Qb();B=A[b.type];gb(JSON.stringify(B));b.Tc||(D=null,b.type===f.Ea?D=a.h.get(f.ma):b.type===f.ma&&(D=a.h.get(f.Ea)),D&&D.type==f.ma?a.g.Mf(d,b.stream,D.stream.isAudioMuxedInVideo):a.g.Mf(d,b.stream,b.stream.codecs.includes(",")));Qm(a,b,0);wa(C,0);break;case 2:G=
xa(C);fh(a.l,G);if(a.C)return C.return();b.Za=!1;if(7001==G.code)b.Za=!1,Im(b),Qm(a,b,0),C.A(0);else if(b.type==f.gb&&a.i.ignoreTextStreamFailures)a.h.delete(f.gb),C.A(0);else{if(3017==G.code)return F(C,pn(a,b,G),0);b.fe=!0;1==G.category&&b.ia&&vm(b.ia,d);G.severity=2;return F(C,en(a,b,G),0)}}})}
function ln(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,u;return Q(function(w){switch(w.g){case 1:e=b.stream;for(h=(g=(f=e.segmentIndex)&&f.ac(c))&&g.next().value;h&&a.K.includes(h.startTime);)h=g&&g.next().value;if(!h){w.A(0);break}k=h.ea;if(!k||zj(k,b.Bb)){w.A(3);break}b.Bb=k;ta(w,4);return F(w,on(a,b,k),6);case 6:l=w.h;var v=a.g.ha;v.L&&Zc(v.L,l,0,e);a.K=[];wa(w,3);break;case 4:throw m=xa(w),b.Bb=null,m;case 3:if(b.Ra&&b.Ra==h){w.A(0);break}b.Ra=h;ta(w,8);return F(w,on(a,b,h),10);case 10:n=w.h;v=a.g.ha;v.L&&
Zc(v.L,n,0,e);a.K.push(h.startTime);wa(w,9);break;case 8:throw q=xa(w),b.Ra=null,q;case 9:r=Math.max.apply(Math,[0].concat(x(a.K)));u=a.g.cd();if(u+d>r)return F(w,ln(a,b,h.startTime,d),0);w.A(0)}})}
function pn(a,b,c){var d,e,f,g,h,k;return Q(function(l){if(1==l.g){d=Array.from(a.h.values());if(e=d.some(function(m){return m!=b&&m.Kh}))return l.A(2);f=0===a.i.maxDisabledTime&&1011==c.code?1:a.i.maxDisabledTime;if(g=a.g.disableStream(b.stream,f))return l.return();if(a.i.avoidEvictionOnQuotaExceededError)return Qm(a,b,4),l.return();h=Math.round(100*a.D);if(20<h)a.D-=.2;else if(4<h)a.D-=.04;else return b.fe=!0,a.C=!0,a.g.onError(c),l.return();b.Kh=!0;k=a.g.cd();return F(l,qn(a,b,k),2)}Qm(a,b,4);
I(l)})}
function mn(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A;return Q(function(B){switch(B.g){case 1:e=uc;f=null==b.Ra;g=[];h=Math.max(0,Math.max(c.appendWindowStart,a.U)-.1);k=Math.min(c.appendWindowEnd,a.R)+.1;l=c.codecs||b.stream.codecs;m=jf(l);n=kf(c.mimeType||b.stream.mimeType);q=c.timestampOffset;if(q==b.Cf&&h==b.tc&&k==b.sc&&m==b.Af&&n==b.Bf){B.A(2);break}r=b.Af&&b.Bf&&wl(a.g.ha,b.type,n,l,bn(a));if(!r){B.A(3);break}u=null;b.type===e.Ea?u=a.h.get(e.ma):b.type===e.ma&&(u=a.h.get(e.Ea));if(!u){B.A(3);break}return F(B,
Jm(u).catch(function(){}),5);case 5:u.Bb=null,u.tc=null,u.sc=null,Ym(a,u);case 3:return F(B,rn(a,b,q,h,k,c,m,n),2);case 2:return zj(c.ea,b.Bb)||(b.Bb=c.ea,c.l&&c.ea&&(w=on(a,b,c.ea),v=function(){var D,G,C,E,H,K,J,L,N;return Q(function(O){switch(O.g){case 1:return ta(O,2),F(O,w,4);case 4:return D=O.h,fh(a.l),G=null,C=new Map,E={projection:null,hfov:null},H=new lh,H.box("moov",qh).box("trak",qh).box("mdia",qh).V("mdhd",function(M){G=Ki(M.reader,M.version).timescale}).box("hdlr",function(M){M=M.reader;
M.skip(8);switch(M.jd()){case "soun":C.set(e.ma,G);break;case "vide":C.set(e.Ea,G)}G=null}),b.type===e.Ea&&H.box("minf",qh).box("stbl",qh).V("stsd",sh).box("encv",th).box("avc1",th).box("avc3",th).box("hev1",th).box("hvc1",th).box("dvav",th).box("dva1",th).box("dvh1",th).box("dvhe",th).box("dvc1",th).box("dvi1",th).box("vexu",qh).box("proj",qh).V("prji",function(M){M=M.reader.jd();E.projection=M}).box("hfov",function(M){M=M.reader.W()/1E3;E.hfov=M}),H.parse(D,!0,!0),b.type===e.Ea&&sn(a,E),C.has(b.type)?
c.ea.timescale=C.get(b.type):null!=G&&(c.ea.timescale=G),K=b.stream.segmentIndex,K instanceof Yl&&(J=$l(K,c.startTime)),L=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,F(O,a.g.Bi(b.type,D),5);case 5:return F(O,Ok(a.g.ha,b.type,D,null,b.stream,L,b.md,d,!1,!1,J),6);case 6:wa(O,0);break;case 2:throw N=xa(O),b.Bb=null,N;}})},y=c.startTime,f&&(z=Lk(a.g.ha,b.type),null!=z&&(y=z)),a.g.Ml(y,c.ea),g.push(v()))),A=b.Ra?b.Ra.i:-1,c.i!=A&&g.push($k(a.g.ha,b.type,c.startTime)),F(B,Promise.all(g),0)}})}
function rn(a,b,c,d,e,f,g,h){var k,l,m,n,q;return Q(function(r){switch(r.g){case 1:k=uc;l=bn(a);ta(r,2);b.tc=d;b.sc=e;g&&(b.Af=g);h&&(b.Bf=h);b.Cf=c;m=a.j.sequenceMode||"HLS"==a.j.type;n=null;b.type===k.Ea?n=a.h.get(k.ma):b.type===k.ma&&(n=a.h.get(k.Ea));if(!(n&&n.stream&&n.stream.isAudioMuxedInVideo)){r.A(4);break}return F(r,Xk(a.g.ha,n.type,c,d,e,m,n.stream.mimeType,n.stream.codecs,l),4);case 4:return F(r,Xk(a.g.ha,b.type,c,d,e,m,f.mimeType||b.stream.mimeType,f.codecs||b.stream.codecs,l),6);case 6:wa(r,
0);break;case 2:throw q=xa(r),b.tc=null,b.sc=null,b.Af=null,b.Bf=null,b.Cf=null,q;}})}
function nn(a,b,c,d,e,f,g,h){g=void 0===g?!1:g;h=void 0===h?!1:h;var k,l,m,n,q;return Q(function(r){switch(r.g){case 1:return k=d.closedCaptions&&0<d.closedCaptions.size,a.i.shouldFixTimestampOffset&&(l="video/mp4"==d.mimeType||"audio/mp4"==d.mimeType,m=null,e.ea&&(m=e.ea.timescale),(n=l&&m&&"video"===d.type&&"DASH"==a.j.type)&&(new lh).box("moof",qh).box("traf",qh).V("tfdt",function(u){var w,v,y,z,A,B;return Q(function(D){w=Ji(u.reader,u.version);v=w.baseMediaDecodeTime;if(!v)return D.return();y=
-v/m;z=Number(b.Cf)||0;if(!(z<y))return D.A(0);A=b.tc;B=b.sc;return F(D,rn(a,b,y,A,B,e),0)})}).parse(f,!1,g)),F(r,qn(a,b,c),2);case 2:return fh(a.l),q=b.md,b.md=!1,F(r,a.g.Bi(b.type,f),3);case 3:return F(r,Ok(a.g.ha,b.type,f,e,d,k,q,h,g),4);case 4:fh(a.l),I(r)}})}
function qn(a,b,c){var d,e,f,g,h,k,l,m,n;return Q(function(q){if(1==q.g){d=b.stream.segmentIndex;d instanceof Yl&&(d.hb(a.j.presentationTimeline.Kb()),e=[],Zl(d,function(r){e.push(r.hf())}));f=Math.max(a.i.bufferBehind*a.D,a.j.presentationTimeline.h);g=Jk(a.g.ha,b.type);if(null==g)return a.F==b&&(a.F=null),q.return();h=c-g;k=a.i.evictionGoal;l=a.j.presentationTimeline.bc();m=a.j.presentationTimeline.Jb();n=h-f;m-l>k&&(n=Math.max(h-f,l-k-g));return n<=k?q.return():F(q,a.g.ha.remove(b.type,g,g+n,e),
2)}if(4!=q.g)return fh(a.l),a.F?F(q,qn(a,a.F,c),4):q.A(0);fh(a.l);I(q)})}function gn(a){return a&&a.type==sc&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
function on(a,b,c,d){var e,f,g,h,k;return Q(function(l){switch(l.g){case 1:if(e=c.cc())return l.return(e);f=null;if(b.ia){var m=b.ia,n=m.h;c instanceof yj&&(n=m.j);n.has(c)?(m=n.get(c),d&&(m.ci=d),f=m.se):f=null}f||(f=cn(c,b.stream,d||null,a.i.retryParameters,a.g.xc));g=0;b.Aa&&(g=b.Aa.h);b.Mb=f;return F(l,f.promise,2);case 2:h=l.h;b.Mb=null;k=h.data;if(!c.aesKey){l.A(3);break}return F(l,Em(k,c.aesKey,g),4);case 4:k=l.h;case 3:return l.return(k)}})}
function cn(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a instanceof Aj?a:void 0,h=g?1:0;a=Fm(a.S(),a.startByte,a.endByte,d,c);a.contentType=b.type;return e.request(ch,a,{type:h,stream:b,segment:g,isPreload:f})}
function $m(a,b,c,d){var e,f;return Q(function(g){if(1==g.g)return b.Tc=!1,b.pg=!1,b.gf=0,b.Vc=!0,b.Ra=null,b.Aa=null,b.ia&&!a.m.has(b.stream)&&wm(b.ia),d?(e=a.g.cd(),f=a.g.ha.getDuration(),F(g,a.g.ha.remove(b.type,e+d,f),3)):F(g,Wk(a.g.ha,b.type),4);if(3!=g.g)return fh(a.l),c?F(g,a.g.ha.flush(b.type),3):g.A(3);fh(a.l);b.Vc=!1;b.endOfStream=!1;b.Za||b.Db||Qm(a,b,0);I(g)})}
function Qm(a,b,c){var d=b.type;if(d!=sc||a.h.has(d))b.Db=(new yf(function(){var e;return Q(function(f){if(1==f.g)return ta(f,2),F(f,dn(a,b),4);if(2!=f.g)return wa(f,0);e=xa(f);if(a.g)a.g.onError(e);I(f)})})).X(c)}function Im(a){null!=a.Db&&(a.Db.stop(),a.Db=null)}function Jm(a){return Q(function(b){return a.Mb?F(b,a.Mb.abort(),0):b.A(0)})}
function en(a,b,c){var d;return Q(function(e){if(1==e.g)return 3024==c.code?(b.Za=!1,Im(b),Qm(a,b,0),e.return()):F(e,Hg(a.P),2);fh(a.l);if(1===c.category&&1003!=c.code){if(b.Oc)return Sm(a,!1),e.return();d=0===a.i.maxDisabledTime&&1011==c.code?1:a.i.maxDisabledTime;c.handled=a.g.disableStream(b.stream,d);c.handled&&(c.severity=1)}if(!c.handled||1011!=c.code)a.g.onError(c);c.handled||a.i.failureCallback(c);I(e)})}
function tn(a,b){b=void 0===b?!1:b;var c=void 0===c?!0:c;var d,e,f,g,h;return Q(function(k){if(1==k.g){d=Date.now()/1E3;e=a.i.minTimeBetweenRecoveries;if(!b){if(!a.i.allowMediaSourceRecoveries||d-a.L<e)return k.return(!1);a.L=d}f=uc;if(g=a.h.get(f.ma))g.Bb=null,g.tc=null,g.sc=null,c&&Ym(a,g),Jm(g).catch(function(){}),g.Aa&&g.Aa.Nh(),Im(g);if(h=a.h.get(f.Ea))h.Bb=null,h.tc=null,h.sc=null,c&&Ym(a,h),Jm(h).catch(function(){}),h.Aa&&h.Aa.Nh(),Im(h);return F(k,ql(a.g.ha,bn(a)),2)}!h||h.Vc||h.Za||h.Db||
Qm(a,h,0);!g||g.Vc||g.Za||g.Db||Qm(a,g,0);return k.return(!0)})}function sn(a,b){if(a.N.projection!=b.projection||a.N.hfov!=b.hfov){if(null!=b.projection||null!=b.hfov){var c=(new Map).set("detail",b);c=new U("spatialvideoinfo",c)}else c=new U("nospatialvideoinfo");c.cancelable=!0;a.g.onEvent(c);a.N=b}}function an(a){if("keep"!==a.i.crossBoundaryStrategy){a.H.stop();var b=a.g.cd(),c=a.h.get("video")||a.h.get("audio");c&&(c=c.Bb)&&null!==c.g&&(b=c.g-b,0>b||1<b||(a.G=c.g+.1,a.H.X(b)))}}
function jn(a,b,c){if(b.type===sc)return!1;var d=b.Bb;if(!d)return!1;var e=c.ea;c=d.g!==e.g;"reset_to_encrypted"===a.i.crossBoundaryStrategy&&(d.encrypted||e.encrypted||(c=!1),d.encrypted&&(a.i.crossBoundaryStrategy="keep"));"RESET_ON_ENCRYPTION_CHANGE"===a.i.crossBoundaryStrategy&&d.encrypted==e.encrypted&&(c=!1);if(c&&b.md){var f=a.g.video,g=f.paused;tn(a,!0).then(function(){var h=(new Map).set("oldEncrypted",d.encrypted).set("newEncrypted",e.encrypted);a.g.onEvent(new U("boundarycrossed",h));g||
f.play()})}return c}function bn(a,b){b=void 0===b?!1:b;var c=new Map;a.s.audio&&c.set("audio",a.s.audio);a.s.video&&c.set("video",a.s.video);b&&a.B&&c.set(sc,a.B);return c};function un(){}
function vn(a,b,c,d,e){var f=e in d;var g=f?c.constructor==Object&&0==Object.keys(d).length:c.constructor==Object&&0==Object.keys(c).length;var h=f||g,k=!0,l;for(l in b){var m=e+"."+l,n=f?d[e]:c[l];h||l in c?void 0===b[l]?void 0===n||h?delete a[l]:a[l]=Ed(n):g?a[l]=b[l]:n.constructor==Object&&b[l]&&b[l].constructor==Object?(a[l]||(a[l]=Ed(n)),m=vn(a[l],b[l],n,d,m),k=k&&m):typeof b[l]!=typeof n||null==b[l]||"function"!=typeof b[l]&&b[l].constructor!=n.constructor?($a("Invalid config, wrong type for "+m),
k=!1):"function"==typeof c[l]&&c[l].length!=b[l].length?(ab("Unexpected number of arguments for "+m),a[l]=b[l]):a[l]=Array.isArray(a[l])?b[l].slice():b[l]:($a("Invalid config, unrecognized key "+m),k=!1)}return k}function wn(a,b){for(var c={},d=c,e=0,f=0;;){e=a.indexOf(".",e);if(0>e)break;if(0==e||"\\"!=a[e-1])f=a.substring(f,e).replace(/\\\./g,"."),d[f]={},d=d[f],f=e+1;e+=1}d[a.substring(f).replace(/\\\./g,".")]=b;return c}function xn(a,b){return a&&b}
function yn(a,b){function c(f){for(var g=t(Object.keys(f)),h=g.next();!h.done;h=g.next())if(h=h.value,!(f[h]instanceof HTMLElement))if(e(f[h])&&0===Object.keys(f[h]).length)delete f[h];else{var k=f[h];Array.isArray(k)&&0===k.length?delete f[h]:"function"==typeof f[h]?delete f[h]:e(f[h])&&(c(f[h]),0===Object.keys(f[h]).length&&delete f[h])}}function d(f,g){return Object.keys(f).reduce(function(h,k){var l=f[k];if(g.hasOwnProperty(k))if(l instanceof HTMLElement&&g[k]instanceof HTMLElement)l.isEqualNode(g[k])||
(h[k]=l);else if(e(l)&&e(g[k])){if(l=d(l,g[k]),0<Object.keys(l).length||!e(l))h[k]=l}else Array.isArray(l)&&Array.isArray(g[k])?td(l,g[k])||(h[k]=l):Number.isNaN(l)&&Number.isNaN(g[k])||l!==g[k]&&(h[k]=l);else h[k]=l;return h},{})}function e(f){return f&&"object"===typeof f&&!Array.isArray(f)}a=d(a,b);c(a);return a}S("shaka.util.ConfigUtils",un);un.getDifferenceFromConfigObjects=yn;un.convertToConfigObject=wn;un.mergeConfigObjects=vn;S("shaka.config.RepeatMode",{OFF:0,ALL:1,SINGLE:2});function zn(){}function An(a){a=Zb(a);return(new qb(a)).Gb}function Bn(a,b,c){function d(h){Ob(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Kb(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new V(2,6,6015);var e;"string"==typeof b?e=ac(b,!0):e=b;a=Zb(a);a=ac(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}function Cn(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Zb(a).split("skd://").pop();return Bn(a,c,b)}
function Dn(a,b){2===a&&(a=b.drmInfo)&&yg(a.keySystem)&&(b.headers["Content-Type"]="application/octet-stream")}S("shaka.drm.FairPlay",zn);
zn.commonFairPlayResponse=function(a,b){if(2===a&&(a=b.originalRequest.drmInfo)&&yg(a.keySystem)){try{var c=Wb(b.data)}catch(e){return}a=!1;c=c.trim();"<ckc>"===c.substr(0,5)&&"</ckc>"===c.substr(-6)&&(c=c.slice(5,-6),a=!0);if(!a)try{var d=JSON.parse(c);d.ckc&&(c=d.ckc,a=!0);d.CkcMessage&&(c=d.CkcMessage,a=!0);d.License&&(c=d.License,a=!0)}catch(e){}a&&(b.data=Lb(hc(c)))}};zn.muxFairPlayRequest=function(a,b){Dn(a,b)};
zn.expressplayFairPlayRequest=function(a,b){if(2===a){var c=b.drmInfo;c&&yg(c.keySystem)&&Dn(a,b)}};zn.conaxFairPlayRequest=function(a,b){Dn(a,b)};zn.ezdrmFairPlayRequest=function(a,b){Dn(a,b)};zn.verimatrixFairPlayRequest=function(a,b){2===a&&(a=b.drmInfo)&&yg(a.keySystem)&&(a=Kb(b.body),a=gc(a),b.headers["Content-Type"]="application/x-www-form-urlencoded",b.body=$b("spc="+a))};zn.muxInitDataTransform=function(a,b,c){return Cn(a,b,c)};
zn.expressplayInitDataTransform=function(a,b,c){return Cn(a,b,c)};zn.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Zb(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(2*c.length);d=Nb(d);for(var e=0,f=c.length;e<f;e++)d[e]=c.charCodeAt(e);return Bn(a,d,b)};zn.ezdrmInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Zb(a).split(";").pop();return Bn(a,c,b)};
zn.verimatrixInitDataTransform=function(a,b,c){return Cn(a,b,c)};zn.initDataTransform=Bn;zn.defaultGetContentId=An;zn.isFairPlaySupported=function(){var a;return Q(function(b){if(1==b.g)return a={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},ta(b,2),F(b,navigator.requestMediaKeySystemAccess("com.apple.fps",[a]),4);if(2!=b.g)return b.return(!0);xa(b);return b.return(!1)})};function En(){this.g=null}En.prototype.configure=function(a){this.g=a};En.prototype.getConfiguration=function(){return this.g};
En.prototype.create=function(a){var b;if(this.g.language){var c=Fn(a,this.g.language);c.length&&(b=c)}b||(b=a.filter(function(f){return f.primary}),b=b.length?b:a);a=Gn(b,this.g.role);a.length&&(b=a);this.g.videoLayout&&(a=Hn(b,this.g.videoLayout),a.length&&(b=a));this.g.Lc&&(a=In(b,this.g.Lc),a.length&&(b=a));var d=[this.g.channelCount,this.g.preferredAudioChannelCount];a=d.filter(function(f,g){return f&&d.indexOf(f)===g});if(a.length)for(a=t(a),c=a.next();!c.done;c=a.next())if(c=Jn(b,c.value),c.length){b=
c;break}this.g.Uc&&(a=Kn(b,this.g.Uc),a.length&&(b=a));this.g.Rd&&(a=Ln(b,this.g.Rd),a.length&&(b=a));a=Mn(b,this.g.spatialAudio);a.length&&(b=a);var e=[this.g.audioCodec,this.g.Td].concat(x(this.g.preferredAudioCodecs));a=e.filter(function(f,g){return f&&e.indexOf(f)===g});if(a.length)for(a=t(a),c=a.next();!c.done;c=a.next())if(c=Nn(b,c.value),c.length){b=c;break}return new ni(b[0],b,!("smooth"==this.g.codecSwitchingStrategy&&dd()))};
function Fn(a,b){b=yc(b);var c=Gc(b,a.map(function(d){return Fc(d)}));return c?a.filter(function(d){return c==Fc(d)}):[]}function Gn(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):0==c.audio.roles.length:!1})}function Kn(a,b){return a.filter(function(c){return c.audio&&c.audio.label?c.audio.label.toLowerCase()==b.toLowerCase():!1})}function Ln(a,b){return a.filter(function(c){return c.video&&c.video.label?c.video.label.toLowerCase()==b.toLowerCase():!1})}
function Jn(a,b){return a.filter(function(c){return c.audio&&c.audio.channelsCount&&c.audio.channelsCount>b?!1:!0}).sort(function(c,d){return c.audio||d.audio?c.audio?d.audio?(d.audio.channelsCount||0)-(c.audio.channelsCount||0):1:-1:0})}function In(a,b){if("AUTO"==b){var c=a.some(function(d){return d.video&&d.video.hdr&&"HLG"==d.video.hdr?!0:!1});b=On(c)}return a.filter(function(d){return d.video&&d.video.hdr&&d.video.hdr!=b?!1:!0})}
function Hn(a,b){return a.filter(function(c){return c.video&&c.video.videoLayout&&c.video.videoLayout!=b?!1:!0})}function Mn(a,b){return a.filter(function(c){return c.audio&&c.audio.spatialAudio!=b?!1:!0})}function Nn(a,b){return a.filter(function(c){return c.audio&&c.audio.codecs!=b?!1:!0})};function Pn(){}
function Qn(){var a=Infinity,b=Rb();navigator.connection&&navigator.connection.saveData&&(a=360);var c={retryParameters:Gg(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(h,k,l){"apple"===window.shakaMediaKeysPolyfill&&"skd"==k&&(k=l.serverCertificate,l=An(h),h=Bn(h,l,k));return h},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:!1,
minHdcpVersion:"",ignoreDuplicateInitData:!0,defaultAudioRobustnessForWidevine:"SW_SECURE_CRYPTO",defaultVideoRobustnessForWidevine:"SW_SECURE_DECODE"},d="reload",e=!1;dd()&&b.pd()&&(d="smooth",e=!0);e={retryParameters:Gg(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,disableIFrames:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,raiseFatalErrorOnManifestUpdateRequestFailure:!1,continueLoadingWhenPaused:!0,ignoreSupplementalCodecs:!1,
2025-06-19 04:02:44 +02:00
updatePeriod:-1,ignoreDrmInfo:!1,dash:{clockSyncUri:"",disableXlinkProcessing:!0,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready",
2025-06-27 11:02:59 +02:00
"urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:94ce86fb-07ff-4f43-adb8-93d2fa968ca2":"com.apple.fps","urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c":"com.huawei.wiseplay"},manifestPreprocessor:Rn,manifestPreprocessorTXml:Sn,sequenceMode:!1,multiTypeVariantsAllowed:e,useStreamOnceInPeriodFlattening:!1,enableFastSwitching:!0},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,
ignoreManifestProgramDateTimeForTypes:[],mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',liveSegmentsDelay:3,sequenceMode:b.od(),ignoreManifestTimestampsInSegmentsMode:!1,disableCodecGuessing:!1,disableClosedCaptionsDetection:!1,allowLowLatencyByteRangeOptimization:!0,allowRangeRequestsToGuessMimeType:!1},mss:{manifestPreprocessor:Rn,manifestPreprocessorTXml:Sn,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}};
var f={trackSelectionCallback:function(h){return Q(function(k){return k.return(h)})},downloadSizeCallback:function(h){var k;return Q(function(l){if(1==l.g)return navigator.storage&&navigator.storage.estimate?F(l,navigator.storage.estimate(),3):l.return(!0);k=l.h;return l.return(k.usage+h<.95*k.quota)})},progressCallback:function(h,k){return xn([h,k])},usePersistentLicense:!0,numberOfParallelDownloads:5},g={drm:c,manifest:e,streaming:{retryParameters:Gg(),failureCallback:function(h){return xn([h])},
2025-06-19 04:02:44 +02:00
rebufferingGoal:0,bufferingGoal:10,bufferBehind:30,evictionGoal:1,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,gapPadding:0,gapJumpTimerTime:.25,durationBackoff:1,safeSeekOffset:5,safeSeekEndOffset:0,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsForFairPlay:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,preferNativeDash:!1,preferNativeHls:!1,updateIntervalSeconds:1,observeQualityChanges:!1,maxDisabledTime:30,segmentPrefetchLimit:1,
prefetchAudioLanguages:[],disableAudioPrefetch:!1,disableTextPrefetch:!1,disableVideoPrefetch:!1,liveSync:{enabled:!1,targetLatency:.5,targetLatencyTolerance:.5,maxPlaybackRate:1.1,minPlaybackRate:.95,panicMode:!1,panicThreshold:60,dynamicTargetLatency:{enabled:!1,stabilityThreshold:60,rebufferIncrement:.5,maxAttempts:10,maxLatency:4,minLatency:1}},allowMediaSourceRecoveries:!0,minTimeBetweenRecoveries:5,vodDynamicPlaybackRate:!1,vodDynamicPlaybackRateLowBufferRate:.95,vodDynamicPlaybackRateBufferRatio:.5,
2025-06-27 11:02:59 +02:00
preloadNextUrlWindow:30,loadTimeout:30,clearDecodingCache:!1,dontChooseCodecs:!1,shouldFixTimestampOffset:!1,avoidEvictionOnQuotaExceededError:!1,crossBoundaryStrategy:"keep",returnToEndOfLiveWindowWhenOutside:!1},networking:{forceHTTP:!1,forceHTTPS:!1,minBytesForProgressEvents:16E3},mediaSource:{codecSwitchingStrategy:d,addExtraFeaturesToSourceBuffer:function(h){return xn([h],"")},forceTransmux:!1,insertFakeEncryptionInInit:!0,correctEc3Enca:!1,modifyCueCallback:function(h,k){return xn([h,k])},dispatchAllEmsgBoxes:!1,
useSourceElements:!0,durationReductionEmitsUpdateEnd:!0},offline:f,abrFactory:function(){return new ng},adaptationSetCriteriaFactory:function(){return new (Function.prototype.bind.apply(En,[null].concat(x(Ka.apply(0,arguments)))))},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,
2025-06-19 04:02:44 +02:00
minBandwidth:0,maxBandwidth:Infinity,minChannelsCount:0,maxChannelsCount:Infinity},advanced:{minTotalBytes:128E3,minBytes:16E3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,restrictToScreenSize:!1,ignoreDevicePixelRatio:!1,clearBufferSwitch:!1,safeMarginSwitch:0,cacheLoadThreshold:20,minTimeToSwitch:0,preferNetworkInformationBandwidth:!1,removeLatencyFromFirstPacketTime:!0},autoShowText:3,preferredAudioLanguage:"",preferredAudioLabel:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",
preferredAudioChannelCount:2,preferredVideoHdrLevel:"AUTO",preferredVideoLayout:"",preferredVideoLabel:"",preferredVideoCodecs:[],preferredAudioCodecs:[],preferredTextFormats:[],preferForcedSubs:!1,preferSpatialAudio:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:Infinity,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity,minChannelsCount:0,maxChannelsCount:Infinity},playRangeStart:0,playRangeEnd:Infinity,
textDisplayer:{captionsUpdatePeriod:.25,fontScaleFactor:1},textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",rtpSafetyFactor:5,useHeaders:!1,includeKeys:[],version:1},cmsd:{enabled:!0,applyMaximumSuggestedBitrate:!0,estimatedThroughputWeightRatio:.5},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1,poster:!0},ads:{customPlayheadTracker:!1,skipPlayDetection:!1,supportsMultipleMediaElements:!0,disableHLSInterstitial:!1,disableDASHInterstitial:!1,
2025-06-27 11:02:59 +02:00
allowPreloadOnDomElements:!0,allowStartInMiddleOfInterstitial:!0},ignoreHardwareResolution:!1,queue:{preloadNextUrlWindow:30,repeatMode:0}};f.trackSelectionCallback=function(h){return Q(function(k){return k.return(Tn(h,g.preferredAudioLanguage,g.preferredVideoHdrLevel))})};return b.$a(g)}
function Un(){return{streaming:{inaccurateManifestTolerance:0,segmentPrefetchLimit:2,updateIntervalSeconds:.1,maxDisabledTime:1,retryParameters:{baseDelay:100}},manifest:{dash:{autoCorrectDrift:!1},retryParameters:{baseDelay:100}},drm:{retryParameters:{baseDelay:100}}}}
function Vn(a,b,c){var d={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:[],audioRobustness:[],sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:"",headers:{}}};return vn(a,b,c||Qn(),d,"")}
function Tn(a,b,c){var d=c;"AUTO"==d&&(c=a.some(function(h){return h.hdr&&"HLG"==h.hdr?!0:!1}),d=On(c));var e=a.filter(function(h){return"variant"!=h.type||h.hdr&&h.hdr!=d?!1:!0});c=[];var f=Gc(b,e.map(function(h){return h.language}));f&&(c=e.filter(function(h){return yc(h.language)==f}));0==c.length&&(c=e.filter(function(h){return h.primary}));0==c.length&&(e.map(function(h){return h.language}),c=e);var g=c.filter(function(h){return h.height&&480>=h.height});g.length&&(g.sort(function(h,k){return k.height-
h.height}),c=g.filter(function(h){return h.height==g[0].height}));b=[];c.length&&(e=Math.floor(c.length/2),c.sort(function(h,k){return h.bandwidth-k.bandwidth}),b.push(c[e]));a=t(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=sc&&"image"!=c.type||b.push(c);return b}function Rn(a){return xn([a],a)}function Sn(a){return xn([a],a)}S("shaka.util.PlayerConfiguration",Pn);Pn.mergeConfigObjects=Vn;Pn.createDefaultForLL=Un;Pn.createDefault=Qn;function Wn(){this.g=null;this.h=[]}function Xn(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=t(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}function Yn(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Zn(){this.i=this.h=null;this.g=[]}function $n(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 ao(){this.C=this.U=NaN;this.l="";this.j=this.bj=this.u=this.B=this.J=this.D=this.s=this.m=this.I=this.F=this.i=this.P=this.R=this.L=this.N=this.O=NaN;this.K=0;this.G=this.H=NaN;this.g=new Wn;this.h=new Zn}function bo(a,b,c){a.O=b;a.N=c}function co(a,b,c){a.U=b;a.C=c}function eo(a,b){a.i=isNaN(a.i)?b:Math.max(a.i,b)}function fo(a,b){a.j=isNaN(a.j)?b:a.j+b}
function go(a){var b=a.U,c=a.C,d=a.l,e=a.B,f=a.N,g=a.O,h=a.L,k=a.R,l=a.P,m=a.u,n=a.i,q=a.F,r=a.I,u=a.m,w=Xn(a.g,"playing"),v=Xn(a.g,"paused"),y=Xn(a.g,"buffering"),z=a.s,A=a.D,B=a.J,D=a.bj,G=a.j,C=a.K,E=a.H,H=a.G,K=Yn(a.g),J=[];a=t(a.h.g);for(var L=a.next();!L.done;L=a.next())L=L.value,J.push({timestamp:L.timestamp,id:L.id,type:L.type,fromAdaptation:L.fromAdaptation,bandwidth:L.bandwidth});return{width:b,height:c,currentCodecs:d,streamBandwidth:e,decodedFrames:f,droppedFrames:g,corruptedFrames:h,
stallsDetected:k,gapsJumped:l,estimatedBandwidth:m,completionPercent:n,loadLatency:q,manifestTimeSeconds:r,drmTimeSeconds:u,playTime:w,pauseTime:v,bufferingTime:y,licenseTime:z,liveLatency:A,maxSegmentDuration:B,manifestSizeBytes:D,bytesDownloaded:G,nonFatalErrorCount:C,manifestPeriodCount:E,manifestGapCount:H,stateHistory:K,switchHistory:J}};function ho(a,b,c,d){jb.call(this);this.N=a;this.U=b;this.La=d.networkingEngine;this.m=c;this.B=null;this.Ia=0;this.Ya=d.vd;this.F=d.Fl;this.cb=d.Gl;this.g=d.config;this.l=this.G=this.h=null;this.oa=!1;this.H=d.Rl;this.ra=!1;this.i=null;this.ba=!1;this.j=this.D=null;this.Z=!1;this.L=new Map;this.sa=!1;this.Na=d.Ql;this.Y=new ao;this.na=new Ig;this.u=new Ig;this.O=null;this.s=!1;this.$=d.ek;this.R=this.J=null;this.Ta=d.dk;this.P=!1;this.K=[];this.I=[];this.C=!0}pa(ho,jb);
function io(a,b,c){(a=b?a.I:a.K)?a.push(c):c()}function jo(a){if(a.I)for(var b=t(a.I),c=b.next();!c.done;c=b.next())c=c.value,c();a.I=null}function ko(a,b){a.O=b;a.P=!0;if(a.K){b=t(a.K);for(var c=b.next();!c.done;c=b.next())c=c.value,c()}a.K=null}p=ho.prototype;p.getStartTime=function(){return this.m};p.$c=function(){return this.N};p.ih=function(){return this.h};function lo(a){a.Z=!0;return a.j}function mo(a){a.ra=!0;return a.H}p.getStats=function(){return this.Y};
function no(a){a.ba=!0;return a.i}p.Uk=function(){return this.J?$f(this.J):null};p.Tk=function(){return this.R?ag(this.R):null};function oo(a){a.sa=!0;return a.L}
p.start=function(){var a=this;(function(){var b;return Q(function(c){switch(c.g){case 1:return F(c,Promise.resolve(),2);case 2:return ta(c,3),F(c,po(a),5);case 5:qo(a);if("webkit"===window.shakaMediaKeysPolyfill){c.A(6);break}return F(c,ro(a),7);case 7:qo(a);case 6:return F(c,so(a),8);case 8:qo(a);if(!a.$||!a.i){c.A(9);break}return F(c,fi(a.i),10);case 10:qo(a);case 9:a.u.resolve();wa(c,0);break;case 3:b=xa(c),b instanceof V&&(7001==b.code||7003==b.code)||a.u.reject(b),I(c)}})})()};
p.dispatchEvent=function(a){return this.O?this.O.dispatchEvent(a):jb.prototype.dispatchEvent.call(this,a)};p.onError=function(a){2===a.severity&&(this.u.reject(a),this.destroy());var b=(new Map).set("detail",a);b=new U("error",b);this.dispatchEvent(b);b.defaultPrevented&&(a.handled=!0)};function qo(a){if(a.s)throw new V(2,7,7003);}function to(a,b){a.dispatchEvent(new U("onstatechange",(new Map).set("state",b)))}
function po(a){var b,c,d,e,f,g,h,k,l;return Q(function(m){switch(m.g){case 1:to(a,"manifest-parser");a.l||(a.G=Hi(a.N,a.U),a.l=a.G(),a.l.configure(a.g.manifest,function(){return a.C}));b=Date.now()/1E3;to(a,"manifest");if(a.h){m.A(2);break}return F(m,a.l.start(a.N,a.cb),3);case 3:a.h=m.h;if(1!=a.h.variants.length){m.A(2);break}c=[];d=a.h.variants[0];e=t([d.video,d.audio]);for(f=e.next();!f.done;f=e.next())(g=f.value)&&!g.segmentIndex&&c.push(g.createSegmentIndex());if(!(0<c.length)){m.A(2);break}return F(m,
Promise.all(c),2);case 2:return a.na.resolve(),h=new U("manifestparsed",void 0),F(m,Promise.resolve(),7);case 7:a.dispatchEvent(h);if(0==a.h.variants.length)throw new V(2,4,4036);uo(a.h);k=Date.now()/1E3;l=k-b;a.Y.I=l;I(m)}})}
function ro(a,b){var c,d,e,f,g,h;return Q(function(k){switch(k.g){case 1:if(!a.h||a.i)return k.return();to(a,"drm-engine");a.Ia=Date.now()/1E3;a.i=a.Ya();a.F.h=a.i;a.i.configure(a.g.drm,function(){return a.C});c=xi(a.F,a.h);if(!c){k.A(2);break}d=new U("trackschanged",void 0);return F(k,Promise.resolve(),3);case 3:qo(a),a.dispatchEvent(d);case 2:return e=ig(a.h.variants),f=!0,a.h&&a.h.presentationTimeline&&"HLS"!=a.h.type&&(f=a.h.presentationTimeline.T()),F(k,Fh(a.i,e,a.h.offlineSessionIds,f),4);case 4:qo(a);
if(!b){k.A(5);break}return F(k,a.i.$b(b),6);case 6:qo(a);case 5:return F(k,vi(a.F,a.h),7);case 7:g=k.h;if(!g){k.A(0);break}h=new U("trackschanged",void 0);return F(k,Promise.resolve(),9);case 9:a.dispatchEvent(h),I(k)}})}p.configure=function(a,b){a=wn(a,b);Vn(this.g,a)};p.getConfiguration=function(){return Ed(this.g)};
function so(a){var b,c,d,e,f,g,h;return Q(function(k){a.B||(a.B=a.g.adaptationSetCriteriaFactory(),a.B.configure({language:a.g.preferredAudioLanguage,role:a.g.preferredVariantRole,channelCount:a.g.preferredAudioChannelCount,Lc:a.g.preferredVideoHdrLevel,spatialAudio:a.g.preferSpatialAudio,videoLayout:a.g.preferredVideoLayout,Uc:a.g.preferredAudioLabel,Rd:a.g.preferredVideoLabel,codecSwitchingStrategy:a.g.mediaSource.codecSwitchingStrategy,audioCodec:"",Td:"",We:0,preferredAudioCodecs:a.g.preferredAudioCodecs,
preferredAudioChannelCount:a.g.preferredAudioChannelCount}));a.Ta&&(b=a.g.abrFactory,a.D=b,a.j=b(),a.j.configure(a.g.abr));if(!a.$)return k.A(0);c=a.h.presentationTimeline.T();d=ig(a.h.variants);e=a.B.create(d);a.j.configure(a.g.abr);a.j.setVariants(Array.from(e.values()));f=a.j.chooseVariant();if(!f)return k.A(0);g=[];a.J=f;f.video&&g.push(vo(a,f.video,c));f.audio&&g.push(vo(a,f.audio,c));(h=jg(a.h.textStreams,a.g.preferredTextLanguage,a.g.preferredTextRole,a.g.preferForcedSubs)[0]||null)&&mg(f.audio,
h,a.g)&&(g.push(vo(a,h,c)),a.R=h);return F(k,Promise.all(g),0)})}
function vo(a,b,c){var d,e,f,g,h;return Q(function(k){if(1==k.g)return d=a.g.streaming.segmentPrefetchLimit||2,e=new nm(d,b,function(l,m,n){return cn(l,m,n||null,a.g.streaming.retryParameters,a.La,a.C)},!1),a.L.set(b.id,e),b.segmentIndex?k.A(2):F(k,b.createSegmentIndex(),2);f="number"===typeof a.m?a.m:0;g=b.segmentIndex.ac(f);h=null;g&&(h=g.current(),h||(h=g.next().value));h||(h=cg(b.segmentIndex));return h?c?h.ea?F(k,qm(e,h.ea),0):k.A(0):F(k,pm(e,h.startTime),0):k.A(0)})}p.tm=function(){return this.u};
p.destroy=function(){var a=this,b,c,d;return Q(function(e){switch(e.g){case 1:a.s=!0;if(!a.l||a.oa){e.A(2);break}return F(e,a.l.stop(),2);case 2:if(!a.j||a.Z){e.A(4);break}return F(e,a.j.stop(),4);case 4:a.H&&!a.ra&&a.H.release();if(!a.i||a.ba){e.A(6);break}return F(e,a.i.destroy(),6);case 6:if(0<a.L.size&&!a.sa)for(b=t(a.L.values()),c=b.next();!c.done;c=b.next())d=c.value,wm(d);I(e)}})};
function uo(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))}S("shaka.media.PreloadManager",ho);ho.prototype.destroy=ho.prototype.destroy;ho.prototype.waitForFinish=ho.prototype.tm;ho.prototype.getPrefetchedTextTrack=ho.prototype.Tk;ho.prototype.getPrefetchedVariantTrack=ho.prototype.Uk;function wo(a,b){jb.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{td:null,sd:xo,ed:function(d,e){return yo(c,"enter",d,e)}},{td:zo,sd:xo,ed:function(d,e){return yo(c,"enter",d,e)}},{td:Ao,sd:xo,ed:function(d,e){return yo(c,"enter",d,e)}},{td:xo,sd:zo,ed:function(d,e){return yo(c,"exit",d,e)}},{td:xo,sd:Ao,ed:function(d,e){return yo(c,"exit",d,e)}},{td:zo,sd:Ao,ed:function(d,e){e?yo(c,"skip",d,e):(yo(c,"enter",d,e),yo(c,"exit",d,e))}},{td:Ao,sd:zo,ed:function(d,e){return yo(c,"skip",
d,e)}}];this.h=new Oc;this.h.o(this.i,"regionremove",function(d){c.g.delete(d.region)})}pa(wo,jb);wo.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;jb.prototype.release.call(this)};
wo.prototype.j=function(a,b){if(!this.l||0!=a){this.l=!1;for(var c=t(this.i.h.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?zo:a>d.endTime?Ao:xo;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.td==e&&h.sd==f&&h.ed(d,b)}}};function yo(a,b,c,d){b=new U(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var zo=1,xo=2,Ao=3;function Bo(a,b,c){var d,e,f,g,h,k,l;return Q(function(m){switch(m.g){case 1:var n=(new qb(a)).ub.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=Co.get(d))return m.return(e);f=0;g=Xg([a],c);ta(m,2);g.method="HEAD";return F(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];wa(m,3);break;case 2:k=xa(m);if(!k||1002!=k.code&&1001!=k.code){m.A(3);break}g.method="GET";return F(m,b.request(f,g).promise,6);case 6:l=m.h,e=l.headers["content-type"];case 3:return m.return(e?
2025-06-19 04:02:44 +02:00
e.toLowerCase().split(";").shift():"")}})}
2025-06-27 11:02:59 +02:00
var Co=(new Map).set("mp4","video/mp4").set("m4v","video/mp4").set("m4a","audio/mp4").set("webm","video/webm").set("weba","audio/webm").set("mkv","video/webm").set("ts","video/mp2t").set("ogv","video/ogg").set("ogg","audio/ogg").set("mpg","video/mpeg").set("mpeg","video/mpeg").set("mov","video/quicktime").set("m3u8","application/x-mpegurl").set("mpd","application/dash+xml").set("ism","application/vnd.ms-sstr+xml").set("mp3","audio/mpeg").set("aac","audio/aac").set("flac","audio/flac").set("wav","audio/wav").set("sbv",
2025-06-19 04:02:44 +02:00
"text/x-subviewer").set("srt","text/srt").set("vtt","text/vtt").set("webvtt","text/vtt").set("ttml","application/ttml+xml").set("lrc","application/x-subtitle-lrc").set("ssa","text/x-ssa").set("ass","text/x-ssa").set("jpeg","image/jpeg").set("jpg","image/jpeg").set("png","image/png").set("svg","image/svg+xml").set("webp","image/webp").set("avif","image/avif").set("html","text/html").set("htm","text/html");/*
@license
Copyright 2013 Ali Al Dallal
Licensed under the MIT license.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
2025-06-27 11:02:59 +02:00
for(var Do={ach:"Lwo",ady:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",af:"Afrikaans","af-NA":"Afrikaans (Namibia)","af-ZA":"Afrikaans (South Africa)",ak:"T\u0255\u0265i",ar:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629","ar-AR":"\u0627\u0644\u0639\u0631\u0628\u064a\u0629","ar-MA":"\u0627\u0644\u0639\u0631\u0628\u064a\u0629","ar-SA":"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)","ay-BO":"Aymar aru",az:"Az\u0259rbaycan dili","az-AZ":"Az\u0259rbaycan dili",
2025-06-19 04:02:44 +02:00
"be-BY":"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",bg:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438","bg-BG":"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",bn:"\u09ac\u09be\u0982\u09b2\u09be","bn-IN":"\u09ac\u09be\u0982\u09b2\u09be (\u09ad\u09be\u09b0\u09a4)","bn-BD":"\u09ac\u09be\u0982\u09b2\u09be(\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)","bs-BA":"Bosanski",ca:"Catal\u00e0","ca-ES":"Catal\u00e0",cak:"Maya Kaqchikel","ck-US":"\u13e3\u13b3\u13a9 (tsalagi)",
cs:"\u010ce\u0161tina","cs-CZ":"\u010ce\u0161tina",cy:"Cymraeg","cy-GB":"Cymraeg",da:"Dansk","da-DK":"Dansk",de:"Deutsch","de-AT":"Deutsch (\u00d6sterreich)","de-DE":"Deutsch (Deutschland)","de-CH":"Deutsch (Schweiz)",dsb:"Dolnoserb\u0161\u0107ina",el:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac","el-GR":"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",en:"English","en-GB":"English (UK)","en-AU":"English (Australia)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-IN":"English (India)",
"en-PI":"English (Pirate)","en-UD":"English (Upside Down)","en-US":"English (US)","en-ZA":"English (South Africa)","en@pirate":"English (Pirate)",eo:"Esperanto","eo-EO":"Esperanto",es:"Espa\u00f1ol","es-AR":"Espa\u00f1ol (Argentine)","es-419":"Espa\u00f1ol (Latinoam\u00e9rica)","es-CL":"Espa\u00f1ol (Chile)","es-CO":"Espa\u00f1ol (Colombia)","es-EC":"Espa\u00f1ol (Ecuador)","es-ES":"Espa\u00f1ol (Espa\u00f1a)","es-LA":"Espa\u00f1ol (Latinoam\u00e9rica)","es-NI":"Espa\u00f1ol (Nicaragua)","es-MX":"Espa\u00f1ol (M\u00e9xico)",
"es-US":"Espa\u00f1ol (Estados Unidos)","es-VE":"Espa\u00f1ol (Venezuela)",et:"eesti keel","et-EE":"Eesti (Estonia)",eu:"Euskara","eu-ES":"Euskara",fa:"\u0641\u0627\u0631\u0633\u06cc","fa-IR":"\u0641\u0627\u0631\u0633\u06cc","fb-LT":"Leet Speak",ff:"Fulah",fi:"Suomi","fi-FI":"Suomi","fo-FO":"F\u00f8royskt",fr:"Fran\u00e7ais","fr-CA":"Fran\u00e7ais (Canada)","fr-FR":"Fran\u00e7ais (France)","fr-BE":"Fran\u00e7ais (Belgique)","fr-CH":"Fran\u00e7ais (Suisse)","fy-NL":"Frysk",ga:"Gaeilge","ga-IE":"Gaeilge (Gaelic)",
gl:"Galego","gl-ES":"Galego","gn-PY":"Ava\u00f1e'\u1ebd","gu-IN":"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0","gx-GR":"\u1f19\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ae \u1f00\u03c1\u03c7\u03b1\u03af\u03b1",he:"\u05e2\u05d1\u05e8\u05d9\u05ea\u200f","he-IL":"\u05e2\u05d1\u05e8\u05d9\u05ea\u200f",hi:"\u0939\u093f\u0928\u094d\u0926\u0940","hi-IN":"\u0939\u093f\u0928\u094d\u0926\u0940",hr:"Hrvatski","hr-HR":"Hrvatski",hsb:"Hornjoserb\u0161\u0107ina",ht:"Krey\u00f2l",hu:"Magyar","hu-HU":"Magyar","hy-AM":"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",
id:"Bahasa Indonesia","id-ID":"Bahasa Indonesia",is:"\u00cdslenska","is-IS":"\u00cdslenska (Iceland)",it:"Italiano","it-IT":"Italiano",ja:"\u65e5\u672c\u8a9e","ja-JP":"\u65e5\u672c\u8a9e","jv-ID":"Basa Jawa","ka-GE":"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8","kk-KZ":"\u049a\u0430\u0437\u0430\u049b\u0448\u0430",km:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a","km-KH":"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a",kab:"Taqbaylit",kn:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1","kn-IN":"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1 (India)",
ko:"\ud55c\uad6d\uc5b4","ko-KR":"\ud55c\uad6d\uc5b4 (\u97e9\u56fd)",ku:"Kurd\u00ee","ku-TR":"Kurd\u00ee",la:"Latin","la-VA":"Latin",lb:"L\u00ebtzebuergesch","li-NL":"L\u00e8mb\u00f6rgs",lt:"Lietuvi\u0173","lt-LT":"Lietuvi\u0173",lv:"Latvie\u0161u","lv-LV":"Latvie\u0161u",mai:"\u092e\u0948\u0925\u093f\u0932\u0940, \u09ae\u09c8\u09a5\u09bf\u09b2\u09c0","mg-MG":"Malagasy",mk:"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438","mk-MK":"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 (\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438)",
ml:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02","ml-IN":"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02","mn-MN":"\u041c\u043e\u043d\u0433\u043e\u043b",mr:"\u092e\u0930\u093e\u0920\u0940","mr-IN":"\u092e\u0930\u093e\u0920\u0940",ms:"Bahasa Melayu","ms-MY":"Bahasa Melayu",mt:"Malti","mt-MT":"Malti",my:"\u1017\u1019\u102c\u1005\u1000\u102c",nb:"Norsk (bokm\u00e5l)","nb-NO":"Norsk (bokm\u00e5l)",ne:"\u0928\u0947\u092a\u093e\u0932\u0940","ne-NP":"\u0928\u0947\u092a\u093e\u0932\u0940",nl:"Nederlands","nl-BE":"Nederlands (Belgi\u00eb)",
"nl-NL":"Nederlands (Nederland)","nn-NO":"Norsk (nynorsk)",no:"Norsk",oc:"Occitan","or-IN":"\u0b13\u0b21\u0b3c\u0b3f\u0b06",pa:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40","pa-IN":"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40 (\u0a2d\u0a3e\u0a30\u0a24 \u0a28\u0a42\u0a70)",pl:"Polski","pl-PL":"Polski","ps-AF":"\u067e\u069a\u062a\u0648",pt:"Portugu\u00eas","pt-BR":"Portugu\u00eas (Brasil)","pt-PT":"Portugu\u00eas (Portugal)","qu-PE":"Qhichwa","rm-CH":"Rumantsch",ro:"Rom\u00e2n\u0103","ro-RO":"Rom\u00e2n\u0103",ru:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439",
"ru-RU":"\u0420\u0443\u0441\u0441\u043a\u0438\u0439","sa-IN":"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d","se-NO":"Davvis\u00e1megiella","si-LK":"\u0db4\u0dc5\u0dcf\u0dad",sk:"Sloven\u010dina","sk-SK":"Sloven\u010dina (Slovakia)",sl:"Sloven\u0161\u010dina","sl-SI":"Sloven\u0161\u010dina","so-SO":"Soomaaliga",sq:"Shqip","sq-AL":"Shqip",sr:"\u0421\u0440\u043f\u0441\u043a\u0438","sr-RS":"\u0421\u0440\u043f\u0441\u043a\u0438 (Serbia)",su:"Basa Sunda",sv:"Svenska","sv-SE":"Svenska",sw:"Kiswahili",
"sw-KE":"Kiswahili",ta:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd","ta-IN":"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",te:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41","te-IN":"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",tg:"\u0437\u0430\u0431\u043e\u0301\u043d\u0438 \u0442\u043e\u04b7\u0438\u043a\u04e3\u0301","tg-TJ":"\u0442\u043e\u04b7\u0438\u043a\u04e3",th:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22","th-TH":"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",tl:"Filipino","tl-PH":"Filipino",
tlh:"tlhIngan-Hol",tr:"T\u00fcrk\u00e7e","tr-TR":"T\u00fcrk\u00e7e","tt-RU":"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",uk:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430","uk-UA":"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",ur:"\u0627\u0631\u062f\u0648","ur-PK":"\u0627\u0631\u062f\u0648",uz:"O'zbek","uz-UZ":"O'zbek",vi:"Ti\u1ebfng Vi\u1ec7t","vi-VN":"Ti\u1ebfng Vi\u1ec7t","xh-ZA":"isiXhosa",yi:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9","yi-DE":"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",
2025-06-27 11:02:59 +02:00
zh:"\u4e2d\u6587","zh-HANS":"\u4e2d\u6587\u7b80\u4f53","zh-HANT":"\u4e2d\u6587\u7e41\u9ad4","zh-CN":"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09","zh-HK":"\u4e2d\u6587\uff08\u9999\u6e2f\uff09","zh-SG":"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09","zh-TW":"\u4e2d\u6587\uff08\u53f0\u7063\uff09","zu-ZA":"isiZulu"},Eo=t(Object.keys(Do)),Fo=Eo.next();!Fo.done;Fo=Eo.next()){var Go=Fo.value;Do[Go.toLowerCase()]=Do[Go]};function Ho(a,b){if(a.lineBreak)return"\n";if(a.nestedCues.length)return a.nestedCues.map(function(g){return Ho(g,a)}).join("");if(!a.payload)return a.payload;var c=[],d=a.fontWeight>=Me,e=a.fontStyle==Ne,f=a.textDecoration.includes(Oe);d&&c.push(["b"]);e&&c.push(["i"]);f&&c.push(["u"]);e=a.color;""==e&&b&&(e=b.color);d="";(e=Io(e))&&(d+="."+e);e=a.backgroundColor;""==e&&b&&(e=b.backgroundColor);(b=Io(e))&&(d+=".bg_"+b);d&&c.push(["c",d]);return c.reduceRight(function(g,h){var k=t(h);h=k.next().value;
2025-06-19 04:02:44 +02:00
k=k.next().value;return"<"+h+(void 0===k?"":k)+">"+g+"</"+h+">"},a.payload)}
2025-06-27 11:02:59 +02:00
function Io(a){a=a.toLowerCase();var b=a.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);b?a="#"+(parseInt(b[1],10)|256).toString(16).slice(1)+(parseInt(b[2],10)|256).toString(16).slice(1)+(parseInt(b[3],10)|256).toString(16).slice(1):a.startsWith("#")&&7<a.length&&(a=a.slice(0,7));switch(a){case "white":case "#fff":case "#ffffff":return"white";case "lime":case "#0f0":case "#00ff00":return"lime";case "cyan":case "#0ff":case "#00ffff":return"cyan";case "red":case "#f00":case "#ff0000":return"red";
case "yellow":case "#ff0":case "#ffff00":return"yellow";case "magenta":case "#f0f":case "#ff00ff":return"magenta";case "blue":case "#00f":case "#0000ff":return"blue";case "black":case "#000":case "#000000":return"black"}return null}function Jo(a,b){var c=[];a=t(Ko(a));for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.isContainer)c.push.apply(c,x(Jo(d.nestedCues,d)));else{var e=d.clone();e.nestedCues=[];e.payload=Ho(d,b);c.push(e)}return c}
function Ko(a){var b=[];a=t(a);for(var c=a.next(),d={};!c.done;d={Jg:void 0},c=a.next())d.Jg=c.value,b.some(function(e){return function(f){return Ae(e.Jg,f)}}(d))||b.push(d.Jg);return b}
function Lo(a){function b(d){for(var e=5381,f=d.length;f;)e=33*e^d.charCodeAt(--f);return(e>>>0).toString()}if(a.startTime>=a.endTime)return null;var c=new VTTCue(a.startTime,a.endTime,a.payload);c.id=b(a.startTime.toString())+b(a.endTime.toString())+b(a.payload);c.lineAlign=a.lineAlign;c.positionAlign=a.positionAlign;a.size&&(c.size=a.size);try{c.align=a.textAlign}catch(d){}"center"==a.textAlign&&"center"!=c.align&&(c.align="middle");"vertical-lr"==a.writingMode?c.vertical="lr":"vertical-rl"==a.writingMode&&
2025-06-19 04:02:44 +02:00
(c.vertical="rl");1==a.lineInterpretation&&(c.snapToLines=!1);null!=a.line&&(c.line=a.line);null!=a.position&&(c.position=a.position);return c}
2025-06-27 11:02:59 +02:00
function Mo(a,b){var c=Jo(b),d=[];b=a.cues?Array.from(a.cues):[];c=t(c);for(var e=c.next(),f={};!e.done;f={Bd:void 0},e=c.next())f.Bd=e.value,!b.some(function(g){return function(h){return h.startTime==g.Bd.startTime&&h.endTime==g.Bd.endTime&&h.text==g.Bd.payload?!0:!1}}(f))&&f.Bd.payload&&(e=Lo(f.Bd))&&d.push(e);b=d.slice().sort(function(g,h){return g.startTime!=h.startTime?g.startTime-h.startTime:g.endTime!=h.endTime?g.endTime-h.startTime:"line"in VTTCue.prototype?d.indexOf(h)-d.indexOf(g):d.indexOf(g)-
d.indexOf(h)});b=t(b);for(c=b.next();!c.done;c=b.next())a.addCue(c.value)}function No(a,b){var c=!1;"disabled"===a.mode&&(c=!0,a.mode="hidden");for(var d=0;d<a.cues.length;){var e=a.cues[d];b(e)?a.removeCue(e):d++}c&&(a.mode="disabled")};function Oo(a){var b=this;this.i=a;this.l=new Oc;this.j=null;this.h=new Map;this.g=-1;this.u=!1;this.s=null;this.C=function(){b.l.Da(b.i,"textchanged",b.m);b.l.Da(b.j.textTracks,"change",b.B);for(var c=t(b.h.values()),d=c.next();!d.done;d=c.next())d.value.remove();b.h.clear();b.g=-1;b.j=null};this.m=function(){var c=new Map,d=b.i.rc();d=t(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;if(b.h.has(e.id)){var f=b.h.get(e.id);e.active||"disabled"===f.track.mode||(f.track.mode="disabled");b.h.delete(e.id)}else{f=
b.j.ownerDocument.createElement("track");f.kind=Po(e);var g=f,h=void 0;if(e.label)h=e.label;else if(e.language)if(e.language in Do)h=Do[e.language];else{var k=Dc(e.language);k in Do&&(h=Do[k]+" ("+e.language+")")}h||(h=e.originalTextId,e.language&&e.language!==e.originalTextId&&(h+=" ("+e.language+")"));g.label=h;e.language in Do&&(f.srclang=e.language);"CHROMIUM"===Rb().Ga()&&(f.src="data:,WEBVTT");f.track.mode="disabled";b.j.appendChild(f)}c.set(e.id,f);e.active&&(b.g=e.id)}d=t(b.h.values());for(e=
d.next();!e.done;e=d.next())e.value.remove();-1<b.g&&(c.has(b.g)?(d=c.get(b.g).track,"disabled"===d.mode&&(d.mode=b.u?"showing":"hidden")):b.g=-1);b.h=c};this.B=function(){if(!b.s){var c=b.j;b.s=(new zf(function(){b.s=null;if(b.j===c){var d=-1,e=!1;if(b.h.has(b.g)){var f=b.h.get(b.g);"showing"===f.track.mode?(d=b.g,e=!0):"hidden"===f.track.mode&&(d=b.g)}if(!e)for(e=t(b.h),f=e.next();!f.done;f=e.next()){var g=t(f.value);f=g.next().value;g=g.next().value;if("showing"===g.track.mode){d=f;break}else 0>
d&&"hidden"===g.track.mode&&(d=f)}e=t(b.h);for(f=e.next();!f.done;f=e.next())g=t(f.value),f=g.next().value,g=g.next().value,f!==d&&"disabled"!==g.track.mode&&(g.track.mode="disabled");b.g!==d&&(b.g=d,-1<d&&b.i.$f({id:d}));b.i.Ae(-1<d&&"showing"===b.h.get(d).track.mode)}})).X(0)}};this.l.o(a,"loaded",function(){return b.enableTextDisplayer()});this.enableTextDisplayer()}p=Oo.prototype;p.configure=function(){};
p.remove=function(a,b){if(this.i)this.h.has(this.g)&&No(this.h.get(this.g).track,function(c){return c.startTime<b&&c.endTime>a});else return!1;return!0};p.append=function(a){this.h.has(this.g)&&Mo(this.h.get(this.g).track,a)};p.destroy=function(){this.i&&(this.j&&this.C(),this.i=null);this.l&&(this.l.release(),this.l=null);return Promise.resolve()};p.isTextVisible=function(){return this.u};
p.setTextVisibility=function(a){this.u=a;if(this.h.has(this.g)){var b=this.h.get(this.g).track;"disabled"!==b.mode&&(a=a?"showing":"hidden",b.mode!==a&&(b.mode=a))}else if(this.i&&3===this.i.m)if(b=Array.from(this.i.h.textTracks).filter(function(d){return["captions","subtitles","forced"].includes(d.kind)}),a){a=null;b=t(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,"showing"===c.mode){a=null;break}else a||"hidden"!==c.mode||(a=c);a&&(a.mode="showing")}else for(a=t(b),b=a.next();!b.done;b=
a.next())b=b.value,"showing"===b.mode&&(b.mode="hidden")};p.setTextLanguage=function(){};p.enableTextDisplayer=function(){!this.j&&this.i&&2===this.i.m&&(this.j=this.i.h,this.l.qa(this.i,"unloading",this.C),this.l.o(this.i,"textchanged",this.m),this.l.o(this.j.textTracks,"change",this.B),this.m())};
function Po(a){var b=Rb();return a.forced&&"WEBKIT"===b.Ga()?"forced":"caption"===a.kind||a.roles&&a.roles.some(function(c){return c.includes("transcribes-spoken-dialog")})&&a.roles.some(function(c){return c.includes("describes-music-and-sound")})?"captions":"subtitles"}S("shaka.text.NativeTextDisplayer",Oo);Oo.prototype.enableTextDisplayer=Oo.prototype.enableTextDisplayer;Oo.prototype.setTextLanguage=Oo.prototype.setTextLanguage;Oo.prototype.setTextVisibility=Oo.prototype.setTextVisibility;
Oo.prototype.isTextVisible=Oo.prototype.isTextVisible;Oo.prototype.destroy=Oo.prototype.destroy;Oo.prototype.append=Oo.prototype.append;Oo.prototype.remove=Oo.prototype.remove;Oo.prototype.configure=Oo.prototype.configure;function Qo(a,b){Uc("SimpleTextDisplayer","Please migrate to NativeTextDisplayer");this.h=a;this.i=b;this.g=null;a=t(Array.from(this.h.textTracks));for(b=a.next();!b.done;b=a.next())b=b.value,"metadata"!==b.kind&&"chapters"!==b.kind&&(b.mode="disabled",b.label==this.i&&(this.g=b));this.g&&(this.g.mode="hidden")}p=Qo.prototype;p.configure=function(){};p.remove=function(a,b){if(!this.g)return!1;No(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
p.append=function(a){this.g&&Mo(this.g,a)};p.destroy=function(){this.g&&(No(this.g,function(){return!0}),this.g.mode="disabled");this.g=this.h=null;return Promise.resolve()};p.isTextVisible=function(){return this.g?"showing"==this.g.mode:!1};p.setTextVisibility=function(a){a&&!this.g&&Ro(this);this.g&&(this.g.mode=a?"showing":"hidden")};p.setTextLanguage=function(){};p.enableTextDisplayer=function(){Ro(this)};function Ro(a){a.h&&!a.g&&(a.g=a.h.addTextTrack("subtitles",a.i),a.g.mode="hidden")}
S("shaka.text.SimpleTextDisplayer",Qo);Qo.prototype.enableTextDisplayer=Qo.prototype.enableTextDisplayer;Qo.prototype.setTextLanguage=Qo.prototype.setTextLanguage;Qo.prototype.setTextVisibility=Qo.prototype.setTextVisibility;Qo.prototype.isTextVisible=Qo.prototype.isTextVisible;Qo.prototype.destroy=Qo.prototype.destroy;Qo.prototype.append=Qo.prototype.append;Qo.prototype.remove=Qo.prototype.remove;Qo.prototype.configure=Qo.prototype.configure;function So(){}p=So.prototype;p.configure=function(){};p.remove=function(){};p.append=function(){};p.destroy=function(){};p.isTextVisible=function(){return!1};p.setTextVisibility=function(){};p.setTextLanguage=function(){};p.enableTextDisplayer=function(){};S("shaka.text.StubTextDisplayer",So);So.prototype.enableTextDisplayer=So.prototype.enableTextDisplayer;So.prototype.setTextLanguage=So.prototype.setTextLanguage;So.prototype.setTextVisibility=So.prototype.setTextVisibility;
So.prototype.isTextVisible=So.prototype.isTextVisible;So.prototype.destroy=So.prototype.destroy;So.prototype.append=So.prototype.append;So.prototype.remove=So.prototype.remove;So.prototype.configure=So.prototype.configure;function To(a,b){var c=this;this.m=!1;this.h=[];this.j=a;this.s=b;this.C=this.u=null;this.g=W("div");this.g.classList.add("shaka-text-container");this.g.style.textAlign="center";this.g.style.display="flex";this.g.style.flexDirection="column";this.g.style.alignItems="center";this.g.style.justifyContent="flex-end";this.B=new zf(function(){c.j.paused||Uo(c)});Vo(this);this.l=new Map;this.i=new Oc;this.i.o(document,"fullscreenchange",function(){Uo(c,!0)});this.i.o(this.j,"seeking",function(){Uo(c,!0)});
this.i.o(this.j,"ratechange",function(){Vo(c)});this.i.o(this.j,"resize",function(){var d=c.j,e=d.videoWidth;d=d.videoHeight;e&&d?c.u=e/d:c.u=null});this.D=null;"ResizeObserver"in window&&(this.D=new ResizeObserver(function(){Uo(c,!0)}),this.D.observe(this.g));this.F=new Map}p=To.prototype;p.configure=function(a){this.C=a;Vo(this);Uo(this,!0)};
p.append=function(a){var b=[].concat(x(this.h));a=t(Ko(a));for(var c=a.next(),d={};!c.done;d={Kg:void 0},c=a.next())d.Kg=c.value,b.some(function(e){return function(f){return Ae(f,e.Kg)}}(d))||this.h.push(d.Kg);this.h.length&&Vo(this);Uo(this)};
p.destroy=function(){if(!this.g)return Promise.resolve();this.g.parentElement&&this.s.removeChild(this.g);this.g=null;this.m=!1;this.h=[];this.B&&(this.B.stop(),this.B=null);this.l.clear();this.i&&(this.i.release(),this.i=null);this.D&&(this.D.disconnect(),this.D=null);return Promise.resolve()};p.remove=function(a,b){if(!this.g)return!1;var c=this.h.length;this.h=this.h.filter(function(d){return d.startTime<a||d.endTime>=b});Uo(this,c>this.h.length);this.h.length||Vo(this);return!0};
p.isTextVisible=function(){return this.m};p.setTextVisibility=function(a){(this.m=a)?(this.g.parentElement||this.s.appendChild(this.g),Uo(this,!0)):this.g.parentElement&&this.s.removeChild(this.g)};p.setTextLanguage=function(a){a&&"und"!=a?this.g.setAttribute("lang",a):this.g.setAttribute("lang","")};p.enableTextDisplayer=function(){};function Vo(a){a.B&&(a.h.length?a.B.ya((a.C?a.C.captionsUpdatePeriod:.25)/Math.max(1,Math.abs(a.j.playbackRate))):a.B.stop())}
function Wo(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1}
function Xo(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.l.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.Zj:null;l&&(g.push(l.Lg),l.ld&&g.push(l.ld),m||(f=!0,a.l.delete(k),l=null));m&&(h.push(k),l?Wo(a,n)||(f=!0):(Yo(a,k,e),l=a.l.get(k),n=l.Zj,f=!0));0<k.nestedCues.length&&n&&Xo(a,k.nestedCues,n,d,e);e.pop()}if(f){d=t(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(q,r){return q.startTime!=
r.startTime?q.startTime-r.startTime:q.endTime-r.endTime});h=t(h);for(d=h.next();!d.done;d=h.next())d=a.l.get(d.value),d.ld?(d.ld.contains(c)&&d.ld.removeChild(c),c.appendChild(d.ld),d.ld.appendChild(d.Lg)):c.appendChild(d.Lg)}}function Uo(a,b){if(a.g){var c=a.j.currentTime;if(!a.m||(void 0===b?0:b)){b=t(a.F.values());for(var d=b.next();!d.done;d=b.next())Pj(d.value);Pj(a.g);a.l.clear();a.F.clear()}a.m&&Xo(a,a.h,a.g,c,[])}}
function Yo(a,b,c){var d=1<c.length,e=d?"span":"div";b.lineBreak&&(e="br");b.rubyTag&&(e=b.rubyTag);d=!d&&0<b.nestedCues.length;var f=W(e);"br"!=e&&Zo(a,f,b,c,d);c=null;if(b.region&&b.region.id){var g=b.region,h=a.u===4/3?2.5:1.9;c=g.id+"_"+g.width+"x"+g.height+(g.heightUnits==pd?"%":"px")+"-"+g.viewportAnchorX+"x"+g.viewportAnchorY+(g.viewportAnchorUnits==pd?"%":"px");if(a.F.has(c))c=a.F.get(c);else{e=W("span");var k=g.heightUnits==pd?"%":"px",l=g.widthUnits==pd?"%":"px",m=g.viewportAnchorUnits==
2025-06-19 04:02:44 +02:00
pd?"%":"px";e.id="shaka-text-region---"+c;e.classList.add("shaka-text-region");e.style.position="absolute";var n=g.height,q=g.width;2===g.heightUnits&&(n=5.33*g.height,k="%");2===g.widthUnits&&(q=g.width*h,l="%");e.style.height=n+k;e.style.width=q+l;2===g.viewportAnchorUnits?(h=g.viewportAnchorY/75*100,k=g.viewportAnchorX/(a.u===4/3?160:210)*100,h-=g.regionAnchorY*n/100,k-=g.regionAnchorX*q/100,e.style.top=h+"%",e.style.left=k+"%"):(e.style.top=g.viewportAnchorY-g.regionAnchorY*n/100+m,e.style.left=
g.viewportAnchorX-g.regionAnchorX*q/100+m);0!==g.heightUnits&&0!==g.widthUnits&&0!==g.viewportAnchorUnits&&(g=Math.max(0,Math.min(100-(parseInt(e.style.width.slice(0,-1),10)||0),parseInt(e.style.left.slice(0,-1),10)||0)),e.style.top=Math.max(0,Math.min(100-(parseInt(e.style.height.slice(0,-1),10)||0),parseInt(e.style.top.slice(0,-1),10)||0))+"%",e.style.left=g+"%");e.style.display="flex";e.style.flexDirection="column";e.style.alignItems="center";e.style.justifyContent="before"==b.displayAlign?"flex-start":
2025-06-27 11:02:59 +02:00
"center"==b.displayAlign?"center":"flex-end";a.F.set(c,e);c=e}}e=f;d&&(e=W("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.l.set(b,{Lg:f,Zj:e,ld:c})}function $o(a){var b=a.direction,c=a.positionAlign;a=a.textAlign;return c!==pe?c:"left"===a||"start"===a&&b===re||"end"===a&&"rtl"===b?"line-left":"right"===a||"start"===a&&"rtl"===b||"end"===a&&b===re?"line-right":"center"}
function Zo(a,b,c,d,e){var f=b.style,g=0==c.nestedCues.length,h=1<d.length;f.whiteSpace="pre-wrap";var k=c.payload.replace(/\s+$/g,function(m){return"\u00a0".repeat(m.length)});f.webkitTextStrokeColor=c.textStrokeColor;f.webkitTextStrokeWidth=c.textStrokeWidth;f.color=c.color;f.direction=c.direction;f.opacity=c.opacity;f.paddingLeft=ap(c.linePadding,c,a.s);f.paddingRight=ap(c.linePadding,c,a.s);f.textCombineUpright=c.textCombineUpright;f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage=
"url('"+c.backgroundImage+"')",f.backgroundRepeat="no-repeat",f.backgroundSize="contain",f.backgroundPosition="center",c.backgroundColor&&(f.backgroundColor=c.backgroundColor),f.width="100%",f.height="100%";else{if(c.nestedCues.length)var l=b;else l=W("span"),b.appendChild(l);c.border&&(l.style.border=c.border);e||((b=bp(d,function(m){return m.backgroundColor}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"));k&&(l.setAttribute("translate","no"),l.textContent=k)}if(h&&
2025-06-19 04:02:44 +02:00
!d[d.length-1].isContainer)f.display="inline";else{f.display="flex";f.flexDirection="column";f.alignItems="center";if("left"==c.textAlign||"start"==c.textAlign)f.width="100%",f.alignItems="start";else if("right"==c.textAlign||"end"==c.textAlign)f.width="100%",f.alignItems="end";f.justifyContent="before"==c.displayAlign?"flex-start":"center"==c.displayAlign?"center":"flex-end"}g||(f.margin="0");f.fontFamily=c.fontFamily;f.fontWeight=c.fontWeight.toString();f.fontStyle=c.fontStyle;f.letterSpacing=c.letterSpacing;
2025-06-27 11:02:59 +02:00
f.fontSize=ap(c.fontSize,c,a.s,a.C?a.C.fontScaleFactor:1);d=c.line;null!=d&&(g=c.lineInterpretation,g==ue&&(g=1,h=16,a.u&&1>a.u&&(h=32),d=0>d?100+d/h*100:d/h*100),1==g&&(f.position="absolute",c.writingMode==te?(f.width="100%",c.lineAlign==ve?f.top=d+"%":"end"==c.lineAlign&&(f.bottom=100-d+"%")):"vertical-lr"==c.writingMode?(f.height="100%",c.lineAlign==ve?f.left=d+"%":"end"==c.lineAlign&&(f.right=100-d+"%")):(f.height="100%",c.lineAlign==ve?f.right=d+"%":"end"==c.lineAlign&&(f.left=100-d+"%"))));
f.lineHeight=c.lineHeight;a=$o(c);"line-left"==a?(f.cssFloat="left",null!==c.position&&(f.position="absolute",c.writingMode==te?(f.left=c.position+"%",f.width="auto"):f.top=c.position+"%")):"line-right"==a?(f.cssFloat="right",null!==c.position&&(f.position="absolute",c.writingMode==te?(f.right=100-c.position+"%",f.width="auto"):f.bottom=c.position+"%")):null!==c.position&&50!=c.position&&(f.position="absolute",c.writingMode==te?(f.left=c.position+"%",f.width="auto"):f.top=c.position+"%");f.textAlign=
c.textAlign;f.textDecoration=c.textDecoration.join(" ");f.writingMode=c.writingMode;"writingMode"in document.documentElement.style&&f.writingMode==c.writingMode||(f.webkitWritingMode=c.writingMode);c.size&&(c.writingMode==te?f.width=c.size+"%":f.height=c.size+"%")}
function ap(a,b,c,d){d=void 0===d?1:d;var e=(e=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(e[1]),unit:e[2]}:null;if(!e)return a;a=e.unit;d*=e.value;switch(a){case "%":return d/100*c.clientHeight/b.cellResolution.rows+"px";case "c":return c.clientHeight*d/b.cellResolution.rows+"px";default:return d+a}}function bp(a,b){for(var c=a.length-1;0<=c;c--){var d=b(a[c]);if(d||0===d)return d}return null}S("shaka.text.UITextDisplayer",To);To.prototype.enableTextDisplayer=To.prototype.enableTextDisplayer;
To.prototype.setTextLanguage=To.prototype.setTextLanguage;To.prototype.setTextVisibility=To.prototype.setTextVisibility;To.prototype.isTextVisible=To.prototype.isTextVisible;To.prototype.remove=To.prototype.remove;To.prototype.destroy=To.prototype.destroy;To.prototype.append=To.prototype.append;To.prototype.configure=To.prototype.configure;function cp(a,b){function c(f){for(var g=f,h=t(b),k=h.next();!k.done;k=h.next())k=k.value,k.end&&k.start<f&&(g+=k.end-k.start);f=Math.floor(g/3600);h=Math.floor(g/60%60);k=Math.floor(g%60);g=Math.floor(1E3*g%1E3);return(10>f?"0":"")+f+":"+(10>h?"0":"")+h+":"+(10>k?"0":"")+k+"."+(100>g?10>g?"00":"0":"")+g}var d=Jo(a);a="WEBVTT\n\n";d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,a+=c(e.startTime)+" --\x3e "+c(e.endTime)+function(f){var g=[];switch(f.textAlign){case "left":g.push("align:left");
break;case "right":g.push("align:right");break;case qe:g.push("align:middle");break;case "start":g.push("align:start");break;case "end":g.push("align:end")}switch(f.writingMode){case "vertical-lr":g.push("vertical:lr");break;case "vertical-rl":g.push("vertical:rl")}return g.length?" "+g.join(" "):""}(e)+"\n",a+=e.payload+"\n\n";return a}S("shaka.text.WebVttGenerator",function(){});function dp(a,b){this.h=a;this.g=b;this.i=void 0;this.u=!1;this.F=!0;this.l=this.C=!1;this.s=this.m=void 0;this.B=0;this.G=!1;this.D=new Oc;this.j=null}dp.prototype.setMediaElement=function(a){this.j=a;ep(this)};dp.prototype.configure=function(a){this.g=a};function fp(a){a.u=!1;a.F=!0;a.C=!1;a.l=!1;a.m=0;a.s=0;a.B=0;a.G=!1;a.j=null;a.D.Sa()}function gp(a,b){a.l=b;a.l?a.i==hp?a.i=ip:a.i==jp&&(a.i=kp):a.i==ip?a.i=hp:a.i==kp&&(a.i=jp)}
function lp(a,b){if(a.g&&a.g.enabled&&a.g.version==mp&&a.j&&a.j.autoplay){var c=a.j.play();c&&c.then(function(){a.B=b}).catch(function(){a.B=0})}}
function np(a,b,c){try{if(!a.g.enabled)return b;var d=op(a);a:{switch(c.toLowerCase()){case "audio/mp4":case "audio/webm":case "audio/ogg":case "audio/mpeg":case "audio/aac":case "audio/flac":case "audio/wav":var e=pp;break a;case "video/webm":case "video/mp4":case "video/mpeg":case "video/mp2t":e=qp;break a;case "application/x-mpegurl":case "application/vnd.apple.mpegurl":case "application/dash+xml":case "video/vnd.mpeg.dash.mpd":case "application/vnd.ms-sstr+xml":e=rp;break a}e=void 0}d.ot=e;d.su=
!0;var f=sp(d);return tp(b,f)}catch(g){return bb("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}function ep(a){a.D.qa(a.j,"play",function(){a.m||(a.m=Date.now())});a.D.qa(a.j,"playing",function(){a.s||(a.s=Date.now())})}function op(a){a.g.sessionId||(a.g.sessionId=window.crypto.randomUUID());return{v:a.g.version,sf:a.i,sid:a.g.sessionId,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}}
function up(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled)if(a=vp(a,c),d)d=wp(a),Object.keys(d).length&&Object.assign(b.headers,d);else{var e=sp(a);e&&(b.uris=b.uris.map(function(f){return tp(f,e)}))}}function xp(a,b){var c=a.g.includeKeys;return c.length?Object.keys(b).reduce(function(d,e){c.includes(e)&&(d[e]=b[e]);return d},{}):b}
function yp(a){if(0===a.type)return zp;if(a=a.stream){var b=a.type;if("video"==b)return a.codecs&&a.codecs.includes(",")?qp:Ap;if("audio"==b)return pp;if("text"==b)return"application/mp4"===a.mimeType?Bp:Cp}}function Dp(a,b){b=a.h.Qb()[b];if(!b.length)return NaN;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):NaN}
function Ep(a,b){b=a.h.Qb()[b];if(!b.length)return 0;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):0}function Fp(a,b){var c=a.h.qb();if(!c.length)return NaN;a=c[0];c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case Ap:return a.videoBandwidth||NaN;case pp:return a.audioBandwidth||NaN;default:return a.bandwidth}}
function vp(a,b){b=void 0===b?{}:b;Object.assign(b,op(a));b.pr=a.h.Xa();var c=b.ot===Ap||b.ot===qp;a.C&&c&&(b.bs=!0,b.su=!0,a.C=!1);null==b.su&&(b.su=a.F);b.v===mp&&(a.h.T()&&(b.ltc=a.h.pf()),c=!a.G&&a.s&&a.m?a.s-(a.B||a.m):void 0,void 0!=c&&(b.msd=c,a.G=!0));return xp(a,b)}
function sp(a){function b(n){return 100*c(n/100)}function c(n){return Math.round(n)}function d(n){return!Number.isNaN(n)&&null!=n&&""!==n&&!1!==n}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(n){return encodeURIComponent(n)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=t(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h];if(d(k)&&("v"!==h||1!==k)&&("pr"!=h||1!==k)){var l=f[h];l&&(k=l(k));l=typeof k;var m=void 0;m="string"===l&&"ot"!==h&&"sf"!==h&&"st"!==h?h+"="+JSON.stringify(k):"boolean"===
l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function wp(a){var b=Object.keys(a),c={},d=["Object","Request","Session","Status"],e=[{},{},{},{}],f={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,ltc:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,msd:2,bs:3,rtp:3};b=t(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[null!=f[g]?f[g]:1][g]=a[g];for(a=0;a<e.length;a++)(f=sp(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
function tp(a,b){if(!b||a.includes("offline:"))return a;a=new qb(a);a.g.set("CMCD",b);return a.toString()}var rp="m",pp="a",Ap="v",qp="av",zp="i",Cp="c",Bp="tt",mp=2,hp="d",ip="ld",jp="h",kp="lh";S("shaka.util.CmcdManager.StreamingFormat",{DASH:hp,Um:ip,HLS:jp,Vm:kp,mn:"s",OTHER:"o"});function Gp(a){this.h=a;this.g=null}p=Gp.prototype;p.configure=function(a){this.h=a};p.Qi=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(Hp)?1E3*this.g.get(Hp):null};p.Pi=function(){return this.h.enabled&&this.g&&this.g.has(Ip)?1E3*this.g.get(Ip):null};p.Wk=function(){return this.h.enabled&&this.g&&this.g.has(Xp)?this.g.get(Xp):null};p.Xk=function(){return this.h.enabled&&this.g&&this.g.has(Yp)?this.g.get(Yp):null};
p.getBandwidthEstimate=function(a){var b=this.Pi();if(!b)return a;var c=this.h.estimatedThroughputWeightRatio;return 0<c&&1>=c?a*(1-c)+b*c:a};function Zp(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}S("shaka.util.CmsdManager",Gp);Gp.prototype.getBandwidthEstimate=Gp.prototype.getBandwidthEstimate;Gp.prototype.getRoundTripTime=Gp.prototype.Xk;Gp.prototype.getResponseDelay=Gp.prototype.Wk;Gp.prototype.getEstimatedThroughput=Gp.prototype.Pi;
Gp.prototype.getMaxBitrate=Gp.prototype.Qi;var Ip="etp",Hp="mb",Xp="rd",Yp="rtt";function $p(){this.g=null;this.h=[]}function aq(a,b){return Q(function(c){if(1==c.g)return a.g?F(c,new Promise(function(d){return a.h.push(d)}),2):c.A(2);a.g=b;I(c)})}$p.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function X(a,b,c){b=void 0===b?null:b;jb.call(this);var d=this;this.m=bq;this.h=null;this.Ne=b;this.Y=!1;this.Se=new Oc;this.He=new Oc;this.j=new Oc;this.dc=new Oc;this.Jd=new Oc;this.F=this.I=this.D=this.H=null;this.Te=0;this.$=new $p;this.N=this.wc=this.U=this.i=this.yc=this.G=this.l=this.Ee=this.P=this.ti=this.na=this.K=this.Ta=this.sa=this.Fe=this.O=this.Ia=this.J=this.cb=null;this.Z=!1;this.Na=this.u=null;this.Me=1E9;this.Re=[];this.Ya=[];this.ug=-1;this.g=cq(this);this.wg=Un();this.R=null;this.Ve=
-1;this.Lb=null;this.oa={width:Infinity,height:Infinity};this.Le=new ui(this.g,this.oa,null);this.Pe=[];this.B=null;this.L=this.g.adaptationSetCriteriaFactory();this.L.configure({language:this.g.preferredAudioLanguage,role:this.g.preferredVariantRole,channelCount:0,Lc:this.g.preferredVideoHdrLevel,spatialAudio:this.g.preferSpatialAudio,videoLayout:this.g.preferredVideoLayout,Uc:this.g.preferredAudioLabel,Rd:this.g.preferredVideoLabel,codecSwitchingStrategy:this.g.mediaSource.codecSwitchingStrategy,
audioCodec:"",Td:"",We:0,preferredAudioCodecs:this.g.preferredAudioCodecs,preferredAudioChannelCount:this.g.preferredAudioChannelCount});this.Kd=this.g.preferredTextLanguage;this.Ke=this.g.preferredTextRole;this.Je=this.g.preferForcedSubs;this.Ie=[];c&&c(this);this.K=dq(this);this.na=new Gp(this.g.cmsd);this.H=eq(this);this.Md=this.ba=this.ra=this.C=null;this.yg=!1;this.vg=[];this.xg=new zf(function(){return Q(function(e){if(1==e.g)return d.ba?F(e,d.$b(d.Md,!0),3):e.A(0);if(4!=e.g)return F(e,d.load(d.ba),
4);d.yg?d.Md.pause():d.Md.play();d.ba=null;d.yg=!1;I(e)})});fq&&(this.C=fq(),this.C.configure(this.g.ads),this.Jd.o(this.C,"ad-content-pause-requested",function(e){var f;return Q(function(g){if(1==g.g){d.xg.stop();if(d.ba)return g.A(0);d.Md=d.h;d.yg=d.isEnded();f=e.saveLivePosition||!1;return F(g,d.Ki(!0,f),3)}d.ba=g.h;I(g)})}),this.Jd.o(this.C,"ad-content-resume-requested",function(e){e=e.offset||0;if(d.ba){var f=d.ba;f.m&&e&&("number"===typeof f.m?f.m+=e:f.m.setTime(f.m.getTime()+1E3*e))}d.xg.X(.1)}),
this.Jd.o(this.C,"ad-content-attach-requested",function(){return Q(function(e){return d.h||!d.Md?e.A(0):F(e,d.$b(d.Md,!0),0)})}));gq&&(this.ra=gq(this),this.ra.configure(this.g.queue));this.Se.o(window,"online",function(){hq(d);d.Oh()});this.Oe=new zf(function(){for(var e=Date.now()/1E3,f=!1,g=!0,h=t(d.i.variants),k=h.next();!k.done;k=h.next())k=k.value,0<k.disabledUntilTime&&k.disabledUntilTime<=e&&(k.disabledUntilTime=0,f=!0),0<k.disabledUntilTime&&(g=!1);g&&d.Oe.stop();f&&iq(d,!1,void 0,!1,!1)});
this.La=null;a&&(Uc("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.$b(a,!0));this.s=null}pa(X,jb);function jq(a){null!=a.P&&($c(a.P),a.P.release(),a.P=null)}function kq(a,b,c){c||b.lcevc.enabled?(jq(a),null==a.P&&(a.P=new Yc(a.h,a.ti,b.lcevc,c),a.I&&(a.I.L=a.P))):jq(a)}function lq(a,b){return new U(a,b)}p=X.prototype;
p.destroy=function(){var a=this,b;return Q(function(c){switch(c.g){case 1:if(a.m==mq)return c.return();jq(a);b=a.detach();a.m=mq;return F(c,b,2);case 2:return F(c,a.Og(),3);case 3:a.Se&&(a.Se.release(),a.Se=null);a.He&&(a.He.release(),a.He=null);a.j&&(a.j.release(),a.j=null);a.dc&&(a.dc.release(),a.dc=null);a.Jd&&(a.Jd.release(),a.Jd=null);a.Na=null;a.g=null;a.B=null;a.Ne=null;a.K=null;a.na=null;if(!a.H){c.A(4);break}return F(c,a.H.destroy(),5);case 5:a.H=null;case 4:a.u&&(a.u.release(),a.u=null),
a.ra&&(a.ra.destroy(),a.ra=null),jb.prototype.release.call(a),I(c)}})};function nq(a,b){oq.set(a,b)}function pq(){window.Promise||ab("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||(navigator.userAgent||"").includes("Trident/"))return!1;Rb();return Fi()?!0:""!=Gi().canPlayType("application/x-mpegurl")}function qq(a,b){a.dispatchEvent(lq("onstatechange",(new Map).set("state",b)))}
p.$b=function(a,b){b=void 0===b?!0:b;var c=this,d,e,f;return Q(function(g){switch(g.g){case 1:if(c.m==mq)throw new V(2,7,7E3);d=c.h&&c.h==a;if(!c.h||c.h==a){g.A(2);break}return F(g,c.detach(),2);case 2:return F(g,rq(c,"attach"),4);case 4:if(g.h)return g.return();ta(g,5,6);d||(qq(c,"attach"),e=function(){var h=sq(c,!1);h&&tq(c,h)},c.He.o(a,"error",e),c.h=a,c.K&&c.K.setMediaElement(a));Rb();if(!b||!Fi()||c.I){g.A(6);break}return F(g,uq(c),6);case 6:ya(g);c.$.release();Ba(g,0);break;case 5:return f=
xa(g),F(g,c.detach(),10);case 10:throw f;}})};p.xi=function(a){this.ti=a};p.detach=function(a){a=void 0===a?!1:a;var b=this;return Q(function(c){if(1==c.g){if(b.m==mq)throw new V(2,7,7E3);return F(c,b.lc(!1,a),2)}if(3!=c.g)return F(c,rq(b,"detach"),3);if(c.h)return c.return();try{b.h&&(b.He.Sa(),b.h=null),qq(b,"detach"),b.C&&!a&&b.C.release()}finally{b.$.release()}I(c)})};
function rq(a,b){var c;return Q(function(d){return 1==d.g?(c=++a.Te,F(d,aq(a.$,b),2)):c!=a.Te?(a.$.release(),d.return(!0)):d.return(!1)})}
p.lc=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d,e,f,g,h,k,l,m,n,q,r,u,w;return Q(function(v){switch(v.g){case 1:return c.m!=mq&&(c.m=bq),F(v,rq(c,"unload"),2);case 2:if(v.h)return v.return();ua(v,3);c.Z=!1;qq(c,"unload");jq(c);d=c.Ie.map(function(y){return y()});c.Ie=[];return F(v,Promise.all(d),5);case 5:c.dispatchEvent(lq("unloading"));c.Fe&&(c.Fe.release(),c.Fe=null);c.sa&&(c.sa.release(),c.sa=null);c.Ta&&(c.Ta.release(),c.Ta=null);c.h&&(c.j.Sa(),c.dc.Sa());c.Oe.stop();c.cb&&
(c.cb.release(),c.cb=null);c.Ia&&(c.Ia.stop(),c.Ia=null);if(!c.G){v.A(6);break}return F(v,c.G.stop(),7);case 7:c.G=null,c.yc=null;case 6:if(!c.u){v.A(8);break}return F(v,c.u.stop(),8);case 8:if(!c.l){v.A(10);break}return F(v,c.l.destroy(),11);case 11:c.l=null;case 10:c.J&&(c.J.release(),c.J=null);c.F&&(c.F.release(),c.F=null);if("webkit"!==window.shakaMediaKeysPolyfill||!c.D){v.A(12);break}return F(v,c.D.destroy(),13);case 13:c.D=null;case 12:if(!c.I){v.A(14);break}return F(v,c.I.destroy(),15);case 15:c.I=
null;case 14:if(c.C&&!b)c.C.onAssetUnload();c.ba&&!b&&(c.ba.destroy(),c.ba=null);b||c.xg.stop();c.K&&fp(c.K);c.na&&(c.na.g=null);if(!c.s){v.A(16);break}return F(v,c.s.destroy(),17);case 17:c.s=null;case 16:c.Y=!1;if(c.h){e=t(c.vg);for(f=e.next();!f.done;f=e.next())g=f.value,g.src.startsWith("blob:")&&URL.revokeObjectURL(g.src),g.remove();c.vg=[];Nj(c.h)&&c.h.load()}if(!c.D){v.A(18);break}return F(v,c.D.destroy(),19);case 19:c.D=null;case 18:c.La&&c.U!=c.La.$c()&&(c.La.s||c.La.destroy(),c.La=null);
c.U=null;c.wc=null;c.O=null;if(c.i){h=t(c.i.variants);for(k=h.next();!k.done;k=h.next())for(l=k.value,m=t([l.audio,l.video]),n=m.next();!n.done;n=m.next())(q=n.value)&&q.segmentIndex&&q.segmentIndex.release();r=t(c.i.textStreams);for(u=r.next();!u.done;u=r.next())w=u.value,w.segmentIndex&&w.segmentIndex.release()}c.g&&c.g.streaming.clearDecodingCache&&(Sf.clear(),Ag.clear());c.i=null;c.B=new ao;c.si=null;c.Lb=null;c.R=null;c.Ve=-1;c.Re=[];c.Ya=[];c.ug=-1;c.H&&c.H.Fi();vq(c);case 3:ya(v);c.$.release();
Ba(v,4);break;case 4:Rb();if(a&&Fi()&&!c.I&&c.h)return F(v,uq(c),0);v.A(0)}})};p.sm=function(a){this.N=a};
p.load=function(a,b,c){b=void 0===b?null:b;var d=this,e,f,g,h,k,l,m,n,q,r,u,w,v,y;return Q(function(z){switch(z.g){case 1:if(d.m==mq)throw new V(2,7,7E3);e=null;f="";if(a instanceof ho){if(a.s)throw new V(2,7,7006);e=a;f=e.$c()||""}else f=a||"";return F(z,aq(d.$,"load"),2);case 2:d.$.release();if(!d.h)throw new V(2,7,7002);if(!d.U){z.A(3);break}d.U=f;return F(z,d.lc(!1),3);case 3:g=++d.Te;h=function(){return Q(function(A){if(1==A.g)return d.Te==g?A.A(0):e?F(A,e.destroy(),3):A.A(3);throw new V(2,7,
7E3);})};k=function(A,B){return Q(function(D){switch(D.g){case 1:return ua(D,2),F(D,aq(d.$,B),4);case 4:return F(D,h(),5);case 5:return F(D,A(),6);case 6:return F(D,h(),7);case 7:e&&d.g&&(e.g=d.g);case 2:ya(D),d.$.release(),Ba(D,0)}})};ta(z,5,6);null==b&&e&&(b=e.getStartTime());d.N=b;d.Z=!1;d.dispatchEvent(lq("loading"));if(e){c=e.U;z.A(8);break}if(c){z.A(8);break}return F(z,k(function(){return Q(function(A){if(1==A.g)return F(A,wq(d,f),2);c=A.h;I(A)})},"guessMimeType_"),8);case 8:l=!!e;if(e){ko(e,
d);d.B=e.getStats();z.A(11);break}return F(z,xq(d,f,b,c,!0,d.g),12);case 12:(e=z.h)?(e.C=!1,ko(e,d),d.B=e.getStats(),e.start(),e.u.catch(function(){})):d.B=new ao;case 11:m=!e;n=Date.now()/1E3;d.B=e?e.getStats():new ao;d.U=f;d.wc=c||null;vq(d);q=function(){var A=d.Qb(),B={start:0,end:0};if(A.total.length){B.start=Infinity;A=t(A.total);for(var D=A.next();!D.done;D=A.next())D=D.value,D.start<B.start&&(B.start=D.start),D.end>B.end&&(B.end=D.end)}return B};d.sa=new km(q);d.sa.addEventListener("regionadd",
function(A){yq(d,A.region,"metadataadded")});if(m)return F(z,k(function(){return Q(function(A){return F(A,zq(d,c),0)})},"initializeSrcEqualsDrmInner_"),23);d.Ta=new km(q);return F(z,k(function(){return Q(function(A){if(1==A.g)return F(A,Promise.race([e.na,e.u]),2);d.yc=e.G;var B=e;B.oa=!0;d.G=B.l;d.i=e.ih();I(A)})},"waitForFinish"),15);case 15:if(d.I){z.A(16);break}return F(z,k(function(){return Q(function(A){return F(A,uq(d),0)})},"initializeMediaSourceEngineInner_"),16);case 16:return d.i&&d.i.textStreams.length&&
(d.s.enableTextDisplayer?d.s.enableTextDisplayer():Uc("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method!')),F(z,k(function(){return Q(function(A){return F(A,e.u,0)})},"waitForFinish"),18);case 18:d.g=e.getConfiguration();d.Le=e.F;d.G&&d.G.setMediaElement&&d.h&&d.G.setMediaElement(d.h);d.Fe=mo(e);d.Ee=e.Na;if(r=e.B)d.L=r;l&&d.h&&"AUDIO"===d.h.nodeName&&(Aq(d),d.configure("manifest.disableVideo",!0));if(e.i){z.A(19);break}return F(z,k(function(){return Q(function(A){return F(A,
ro(e,d.h),0)})},"drmEngine_.init"),19);case 19:return d.D=no(e),F(z,k(function(){return Q(function(A){return F(A,d.D.$b(d.h),0)})},"drmEngine_.attach"),21);case 21:return!(u=e.D)||d.Na&&d.Na==u||(d.u=lo(e),d.Na=e.D,"function"!=typeof d.u.setMediaElement&&(Uc("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),d.u.setMediaElement=function(){}),"function"!=typeof d.u.setCmsdManager&&(Uc("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),
d.u.setCmsdManager=function(){}),"function"!=typeof d.u.trySuggestStreams&&(Uc("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),d.u.trySuggestStreams=function(){})),w=oo(e),v=e.J,F(z,k(function(){return Q(function(A){return F(A,Bq(d,n,v,w),0)})},"loadInner_"),22);case 22:jo(e);d.wc&&Rb().eg()&&mf(d.wc)&&Ak(d.I,d.U,d.wc);z.A(14);break;case 23:return F(z,k(function(){return Q(function(A){return F(A,Cq(d,n,c),0)})},"srcEqualsInner_"),14);case 14:d.dispatchEvent(lq("loaded"));
case 6:ya(z);if(!e){z.A(25);break}return F(z,e.destroy(),25);case 25:d.La=null;Ba(z,0);break;case 5:y=xa(z);if(!y||7E3==y.code){z.A(27);break}return F(z,d.lc(!1),27);case 27:throw y;}})};function Aq(a){for(var b=t(a.i.variants),c=b.next();!c.done;c=b.next())c=c.value,c.video&&(c.video.closeSegmentIndex(),c.video=null),c.bandwidth=c.audio&&c.audio.bandwidth?c.audio.bandwidth:0;a.i.variants=a.i.variants.filter(function(d){return d.audio})}
p.om=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d;return Q(function(e){return 1==e.g?F(e,Dq(c),2):3!=e.g?(d=e.h,F(e,c.lc(a,b),3)):e.return(d)})};p.Ki=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;var c=this,d;return Q(function(e){return 1==e.g?F(e,Dq(c,b),2):3!=e.g?(d=e.h,F(e,c.detach(a),3)):e.return(d)})};
function Dq(a,b){b=void 0===b?!1:b;var c,d;return Q(function(e){if(1==e.g){c=null;if(!(a.i&&a.G&&a.yc&&a.U&&a.g))return e.A(2);d=a.h.currentTime;a.T()&&!b&&(d=null);return F(e,Eq(a,a.U,d,a.wc,a.g,!0,!1,!1),3)}if(2!=e.g){c=e.h;a.Pe.push(c);a.G&&a.G.setMediaElement&&a.G.setMediaElement(null);var f=c,g=a.G,h=a.yc;f.h=a.i;f.l=g;f.G=h;f=c;g=a.Na;f.j=a.u;f.D=g;c.B=a.L;c.start();a.i=null;a.G=null;a.yc=null;a.u=null;a.Na=null}return e.return(c)})}
p.preload=function(a,b,c,d){b=void 0===b?null:b;var e=this,f,g;return Q(function(h){if(1==h.g)return f=cq(e),Vn(f,d||e.g,cq(e)),F(h,xq(e,a,b,c,!1,f),2);(g=h.h)?g.start():tq(e,new V(2,7,7005));return h.return(g)})};p.Og=function(){var a=this,b,c,d,e;return Q(function(f){b=[];c=t(a.Pe);for(d=c.next();!d.done;d=c.next())e=d.value,e.s||b.push(e.destroy());a.Pe=[];return F(f,Promise.all(b),0)})};
function xq(a,b,c,d,e,f){e=void 0===e?!1:e;var g,h,k,l,m;return Q(function(n){if(1==n.g)return d?n.A(2):F(n,wq(a,b),3);2!=n.g&&(d=n.h);if(g=Fq(a,d))return n.return(null);h=f||a.g;k=!1;l=!0;e&&(a.u&&a.Na==h.abrFactory&&(l=!1),a.h&&"AUDIO"===a.h.nodeName&&(k=!0));m=Eq(a,b,c,d||null,h,!e,k,l);m=e?m.then(function(q){q.C=!1;return q}):m.then(function(q){a.Pe.push(q);return q});return n.return(m)})}
function Eq(a,b,c,d,e,f,g,h){f=void 0===f?!0:f;g=void 0===g?!1:g;h=void 0===h?!0:h;var k,l,m,n,q,r,u,w,v,y,z,A,B,D,G;return Q(function(C){if(1==C.g){k=null;l=Ed(e);g&&(l.manifest.disableVideo=!0);m=function(){return k.P&&k.s?null:k};n=function(){return m()?m().getConfiguration():a.g};if(Infinity!=a.oa.width||Infinity!=a.oa.height||a.g.ignoreHardwareResolution)return C.A(2);q=Rb();return F(C,q.nc(),3)}2!=C.g&&(r=C.h,a.oa.width=r.width,a.oa.height=r.height);u=new ui(l,a.oa,null);w={networkingEngine:a.H,
filter:function(E){var H,K;return Q(function(J){if(1==J.g)return F(J,vi(u,E),2);if(4!=J.g){H=J.h;if(!H)return J.A(0);K=lq("trackschanged");return F(J,Promise.resolve(),4)}k.dispatchEvent(K);I(J)})},makeTextStreamsForClosedCaptions:function(E){return Gq(a,E)},onTimelineRegionAdded:function(E){lm(k.H,E)},onEvent:function(E){return k.dispatchEvent(E)},onError:function(E){return k.onError(E)},isLowLatencyMode:function(){return n().streaming.lowLatencyMode},updateDuration:function(){a.l&&k.P&&a.l.updateDuration()},
newDrmInfo:function(E){var H=k.i,K=H?H.g:null;K&&H.B&&yi(u,K.keySystem,E)},onManifestUpdated:function(){var E=(new Map).set("isLive",a.T());k.dispatchEvent(lq("manifestupdated",E));io(k,!1,function(){if(a.C)a.C.onManifestUpdated(a.T())})},getBandwidthEstimate:function(){return a.u.getBandwidthEstimate()},onMetadata:function(E,H,K,J){var L=E;if("com.apple.hls.interstitial"==E&&(L="com.apple.quicktime.HLS",E={startTime:H,endTime:K,values:J},a.C))a.C.onHLSInterstitialMetadata(a,a.h,E);J=t(J);E=J.next();
for(var N={};!E.done;N={Ih:void 0},E=J.next())N.Ih=E.value,"ID"!=N.Ih.name&&io(k,!1,function(O){return function(){Hq(a,H,K,L,O.Ih)}}(N))},disableStream:function(E){return a.disableStream(E,a.g.streaming.maxDisabledTime)},addFont:function(E,H){return a.addFont(E,H)}};v=new km(function(){return a.xa()});v.addEventListener("regionadd",function(E){var H=E.region;Iq(a,"timelineregionadded",H,k);io(k,!1,function(){a.C&&(a.C.onDashTimedMetadata(H),a.C.onDASHInterstitialMetadata(a,a.h,H))})});y=null;l.streaming.observeQualityChanges&&
(y=new em(function(){return a.Qb()}),y.addEventListener("qualitychange",function(E){Jq(a,E.quality,E.position)}),y.addEventListener("audiotrackchange",function(E){Jq(a,E.quality,E.position,!0)}));z=!0;A={xc:a.H,onError:function(E){return k.onError(E)},Lf:function(E){io(k,!0,function(){if(a.D)a:{var H=E,K=lq("keystatuschanged");a.dispatchEvent(K);var J=Object.keys(H);1==J.length&&""==J[0]&&(J=["00"],H={"00":H[""]});K=1==J.length&&"00"==J[0];var L=!1;if(J.length){J=a.keySystem();for(var N=gh(a.g.drm.clearKeys),
O=t(a.i.variants),M=O.next();!M.done;M=O.next()){M=M.value;var P=[];M.audio&&P.push(M.audio);M.video&&P.push(M.video);P=t(P);for(var R=P.next();!R.done;R=P.next()){var T=R.value;R=M.allowedByKeySystem;if(T.keyIds.size)if(T.drmInfos.length&&!N.size){T=t(T.drmInfos);for(var ca=T.next();!ca.done;ca=T.next())if(ca=ca.value,ca.keyIds.size&&ca.keySystem==J){M.allowedByKeySystem=!0;ca=t(ca.keyIds);for(var Y=ca.next();!Y.done;Y=ca.next())if(Y=Y.value,(Y=H[K?"00":Y])||a.D.F)M.allowedByKeySystem=M.allowedByKeySystem&&
!!Y&&!Ai.includes(Y)}}else for(M.allowedByKeySystem=!0,T=t(T.keyIds),ca=T.next();!ca.done;ca=T.next())if(ca=ca.value,(ca=H[K?"00":ca])||a.D.F)M.allowedByKeySystem=M.allowedByKeySystem&&!!ca&&!Ai.includes(ca);R!=M.allowedByKeySystem&&(L=!0)}}}if(L&&(Kq(a),!Lq(a)))break a;(H=a.l.s)&&!H.allowedByKeySystem&&iq(a)}})},onExpirationUpdated:function(E,H){var K=lq("expirationupdated");k.dispatchEvent(K);if((K=k.l)&&K.onExpirationUpdated)K.onExpirationUpdated(E,H)},onEvent:function(E){k.dispatchEvent(E);"drmsessionupdate"==
E.type&&z&&(z=!1,E=Date.now()/1E3-k.Ia,(a.B||k.getStats()).m=E,a.P&&$c(a.P))}};B=eq(a,m);Wg(a.H,B);D=function(){return a.vd(A)};G={config:l,Gl:w,Rl:v,Ql:y,vd:D,Fl:u,networkingEngine:B,ek:f,dk:h};k=new ho(b,d,c,G);return C.return(k)})}function wq(a,b){var c,d,e;return Q(function(f){if(1==f.g)return c=a.g.manifest.retryParameters,F(f,Bo(b,a.H,c),2);d=f.h;"application/x-mpegurl"==d&&(e=Rb(),"WEBKIT"===e.Ga()&&(d="application/vnd.apple.mpegurl"));return f.return(d)})}
function Fq(a,b){if(!Fi(Rb()))return!0;if(b){if(""==(a.h||Gi()).canPlayType(b))return!1;if(!Fi(Rb())||!Di.has(b))return!0;if(mf(b))return"WEBKIT"===Rb().Ga()&&(a.g.drm.servers["com.apple.fps"]||a.g.drm.servers["com.apple.fps.1_0"])?a.g.streaming.useNativeHlsForFairPlay:a.g.streaming.preferNativeHls;if("application/dash+xml"===b||"video/vnd.mpeg.dash.mpd"===b)return a.g.streaming.preferNativeDash}return!1}
function Mq(a){var b=a.g.textDisplayFactory;if(a.si!==b){var c=a.s;a.s=b();a.s.configure?a.s.configure(a.g.textDisplayer):Uc("Text displayer w/ configure",'Text displayer should have a "configure" method!');a.s.setTextLanguage||Uc("Text displayer w/ setTextLanguage",'Text displayer should have a "setTextLanguage" method!');c?(a.s.setTextVisibility(c.isTextVisible()),c.destroy().catch(function(){})):a.s.setTextVisibility(a.Y);a.I&&nl(a.I,a.s);a.si=b;a.l&&Wm(a.l)}else a.s&&a.s.configure&&a.s.configure(a.g.textDisplayer)}
function uq(a){var b,c,d;return Q(function(e){if(1==e.g)return Rb(),qq(a,"media-source"),a.g.mediaSource.useSourceElements&&Nj(a.h),Mq(a),b=Nq(a.h,a.s,{Jk:function(){return a.keySystem()},onMetadata:function(f,g,h){f=t(f);for(var k=f.next();!k.done;k=f.next())if(k=k.value,k.data&&"number"==typeof k.cueTime&&k.frames){var l=k.cueTime+g,m=h;m&&l>m&&(m=l);for(var n=t(k.frames),q=n.next();!q.done;q=n.next())Hq(a,l,m,"org.id3",q.value);if(a.C)a.C.onHlsTimedMetadata(k,l)}},Ll:function(f){a.Ta&&lm(a.Ta,
{schemeIdUri:f.schemeIdUri,startTime:f.startTime,endTime:f.endTime,id:String(f.id),emsg:f})},onEvent:function(f){return a.dispatchEvent(f)},Nl:function(){a.G&&a.G.update&&a.G.update()}},a.P,a.g.mediaSource),c=a.g.manifest,d=c.segmentRelativeVttTiming,b.Ia=d,F(e,b.J,2);a.I=b;I(e)})}
function Oq(a,b,c){function d(){return Pq(a)}a.j.o(b,"playing",d);a.j.o(b,"pause",d);a.j.o(b,"ended",d);a.j.o(b,"ratechange",function(){var f=a.h.playbackRate;0!=f&&(a.J&&(a.J.set(f),a.m==Qq&&a.u.playbackRateChanged(f),Rq(a,f)),f=lq("ratechange"),a.dispatchEvent(f))});b.remote&&(a.j.o(b.remote,"connect",function(){a.l&&"connected"==b.remote.state&&Sq(a);Kq(a)}),a.j.o(b.remote,"connecting",function(){return Kq(a)}),a.j.o(b.remote,"disconnect",function(){return Q(function(f){if(1==f.g)return a.l&&"disconnected"==
b.remote.state?F(f,tn(a.l),3):f.A(2);2!=f.g&&Sq(a);Kq(a);I(f)})}));b.audioTracks&&(a.j.o(b.audioTracks,"addtrack",function(){return Kq(a)}),a.j.o(b.audioTracks,"removetrack",function(){return Kq(a)}),a.j.o(b.audioTracks,"change",function(){return Kq(a)}));b.videoTracks&&(a.j.o(b.videoTracks,"addtrack",function(){return Kq(a)}),a.j.o(b.videoTracks,"removetrack",function(){return Kq(a)}),a.j.o(b.videoTracks,"change",function(){return Kq(a)}));if(b.textTracks){var e=function(){a.m===Tq&&a.s instanceof
Oo&&Sq(a);Kq(a)};a.j.o(b.textTracks,"addtrack",function(f){if(f.track)switch(f=f.track,f.kind){case "metadata":Uq(a,f);break;case "chapters":Vq(a,f);break;default:e()}});a.j.o(b.textTracks,"removetrack",e);a.j.o(b.textTracks,"change",e);"keep"!==a.g.streaming.crossBoundaryStrategy&&(a.j.o(b,"waiting",function(){a.l&&an(a.l)}),a.j.o(b,"timeupdate",function(){a.l&&an(a.l)}))}"none"!=b.preload&&a.j.qa(b,"loadedmetadata",function(){a.B.F=Date.now()/1E3-c})}
function Bq(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L,N,O,M;return Q(function(P){switch(P.g){case 1:qq(a,"load");e=a.h;a.J=new am({qf:function(){return e.playbackRate},bd:function(){return e.defaultPlaybackRate},Xh:function(R){e.playbackRate=R},hj:function(R){e.currentTime+=R}});Oq(a,e,b);"onchange"in window.screen&&a.j.o(window.screen,"change",function(){if(a.L.getConfiguration){var R=a.L.getConfiguration();"AUTO"==R.Lc?Lq(a):"AUTO"==a.g.preferredVideoHdrLevel&&a.g.abr.enabled&&
(R.Lc="AUTO",a.L.configure(R),Lq(a))}});f=!1;g=t(a.i.variants);for(h=g.next();!h.done;h=g.next())k=h.value,(l=k.video&&k.video.dependencyStream)&&(f=ad(l));kq(a,a.g,f);a.Kd=a.g.preferredTextLanguage;a.Ke=a.g.preferredTextRole;a.Je=a.g.preferForcedSubs;Wq(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);a.u.init(function(R,T,ca){a.i&&a.l&&R!=a.l.s&&Xq(a,R,!0,void 0===T?!1:T,void 0===ca?0:ca)});a.u.setMediaElement(e);a.u.setCmsdManager(a.na);a.l=Yq(a);a.l.configure(a.g.streaming);a.m=Qq;
a.dispatchEvent(lq("streaming"));m=c;case 2:(q=a.l.s)||m||(m=Lq(a)?a.u.chooseVariant():null);r=[];n=q||m;u=t([n.video,n.audio]);for(w=u.next();!w.done;w=u.next())(v=w.value)&&!v.segmentIndex&&(r.push(v.createSegmentIndex()),v.dependencyStream&&r.push(v.dependencyStream.createSegmentIndex()));if(!(0<r.length)){P.A(4);break}return F(P,Promise.all(r),4);case 4:if(!n||0!=n.disabledUntilTime){P.A(2);break}if(a.G&&a.G.onInitialVariantChosen)a.G.onInitialVariantChosen(n);a.i.isLowLatency&&(a.g.streaming.lowLatencyMode?
a.configure(a.wg):ab("Low-latency live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details."));a.K&&(gp(a.K,a.i.isLowLatency&&a.g.streaming.lowLatencyMode),lp(a.K,1E3*b));Wq(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);Mm(a.l,a.g.playRangeStart,a.g.playRangeEnd);a.Z=!0;a.dispatchEvent(lq("canupdatestarttime"));y=function(R){a.F=Zq(a,R);a.cb=$q(a,R);ar(a,e,!1)};
a.g.streaming.startAtSegmentBoundary||(z=a.N,null==z&&a.i.startTime&&(z=a.i.startTime),y(z));if(q){P.A(7);break}if(!a.g.streaming.startAtSegmentBoundary){P.A(8);break}A=a.i.presentationTimeline;a.N instanceof Date&&(D=A.m||A.i,G=a.N.getTime()/1E3-D,null!=G&&(B=G));null==B&&(B="number"===typeof a.N?a.N:a.h.currentTime);null==a.N&&a.i.startTime&&(B=a.i.startTime);C=A.bc();E=A.Jb();B<C?B=C:B>E&&(B=E);return F(P,br(m,B),9);case 9:H=P.h,y(H);case 8:Xq(a,m,!0,!1,0);case 7:return a.F.ready(),K=a.rc().find(function(R){return R.active}),
K||((J=jg(a.i.textStreams,a.Kd,a.Ke,a.Je)[0]||null)&&$n(a.B.h,J,!0),m&&(J?(mg(m.audio,J,a.g)&&(a.Y=!0),a.Y&&a.s.setTextVisibility(!0)):(a.Y=!1,a.s.setTextVisibility(!1)),cr(a)),J&&(a.g.streaming.alwaysStreamText||a.gd())&&(Vm(a.l,J),dr(a))),F(P,a.l.start(d),10);case 10:a.g.abr.enabled&&(a.u.enable(),er(a));Kq(a);Lq(a);a.i.variants.some(function(R){return R.primary});if((L=a.T())&&(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled||a.i.serviceDescription||a.g.streaming.liveSync.panicMode)||a.g.streaming.vodDynamicPlaybackRate)N=
function(){return fr(a)},a.j.o(e,"timeupdate",N);L||(O=function(){return gr(a)},a.j.o(e,"timeupdate",O),gr(a),a.i.nextUrl&&(0<a.g.streaming.preloadNextUrlWindow&&(M=function(){var R;return Q(function(T){if(1==T.g){R=a.xa().end-a.h.currentTime;if(isNaN(R)||!(R<=a.g.streaming.preloadNextUrlWindow))return T.A(0);a.j.Da(e,"timeupdate",M);return F(T,a.preload(a.i.nextUrl),4)}a.La=T.h;I(T)})},a.j.o(e,"timeupdate",M)),a.j.o(e,"ended",function(){a.load(a.La||a.i.nextUrl)})));if(a.C)a.C.onManifestUpdated(L);
I(P)}})}
function zq(a,b){var c,d,e,f,g;return Q(function(h){return 1==h.g?(c=uc,d=Date.now()/1E3,e=!0,a.D=a.vd({xc:a.H,onError:function(k){tq(a,k)},Lf:function(){},onExpirationUpdated:function(){var k=lq("expirationupdated");a.dispatchEvent(k)},onEvent:function(k){a.dispatchEvent(k);"drmsessionupdate"==k.type&&e&&(e=!1,a.B.m=Date.now()/1E3-d)}}),a.D.configure(a.g.drm),f={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},
g={id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:b?kf(b):"",codecs:b?lf(b):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:c.Ea,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set,isAudioMuxedInVideo:!1,
baseOriginalId:null},g.fullMimeTypes.add(bf(g.mimeType,g.codecs)),b.startsWith("audio/")?(g.type=c.ma,f.audio=g):f.video=g,a.D.Y=!0,F(h,Fh(a.D,[f],[]),2)):F(h,a.D.$b(a.h),0)})}
function Cq(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,u;return Q(function(w){switch(w.g){case 1:qq(a,"src-equals");d=a.h;a.F=new Nl(d);e=!1;a.Ie.push(function(){e=!0});a.dispatchEvent(lq("canupdatestarttime"));null!=a.N&&a.F.sg(a.N);a.cb=hr(a,a.N||0);a.J=new am({qf:function(){return d.playbackRate},bd:function(){return d.defaultPlaybackRate},Xh:function(v){d.playbackRate=v},hj:function(v){d.currentTime+=v}});ar(a,d,!0);d.textTracks&&(Mq(a),f=function(v){if(!(a.s instanceof Oo)){var y=ir(a).find(function(z){return"disabled"!==
z.mode});y&&(y.mode=v?"showing":"hidden");a.s instanceof Qo&&(y=jr(a))&&(y.mode=!v&&a.s.isTextVisible()?"showing":"hidden")}},a.j.o(d,"enterpictureinpicture",function(){return f(!0)}),a.j.o(d,"leavepictureinpicture",function(){return f(!1)}),d.remote?(a.j.o(d.remote,"connect",function(){return f(!1)}),a.j.o(d.remote,"connecting",function(){return f(!1)}),a.j.o(d.remote,"disconnect",function(){return f(!1)})):"webkitCurrentPlaybackTargetIsWireless"in d&&a.j.o(d,"webkitcurrentplaybacktargetiswirelesschanged",
function(){return f(!1)}),g=d,g.webkitSupportsFullscreen&&a.j.o(g,"webkitpresentationmodechanged",function(){return f("inline"!==g.webkitPresentationMode)}));Oq(a,d,b);h=np(a.K,a.U,c);!h.includes("#t=")&&(0<a.g.playRangeStart||isFinite(a.g.playRangeEnd))&&(h+="#t=",0<a.g.playRangeStart&&(h+=a.g.playRangeStart),isFinite(a.g.playRangeEnd)&&(h+=","+a.g.playRangeEnd));if(!a.I){w.A(2);break}return F(w,a.I.destroy(),3);case 3:a.I=null;case 2:return Nj(d),d.src=h,k=Rb(),"TV"==k.Ja()&&d.load(),"none"!=d.preload&&
!d.autoplay&&mf(c)&&"WEBKIT"===k.Ga()&&d.load(),a.m=Tq,a.dispatchEvent(lq("streaming")),l=new Ig,El(d,HTMLMediaElement.HAVE_METADATA,a.j,function(){a.F.ready();l.resolve()}),m=function(){return new Promise(function(v){var y=new zf(v);a.j.o(d.textTracks,"change",function(){return y.X(.5)});y.X(.5)})},El(d,HTMLMediaElement.HAVE_CURRENT_DATA,a.j,function(){var v,y,z,A,B;return Q(function(D){if(1==D.g)return F(D,m(),2);if(e)return D.return();kr(a);v=ir(a);v.some(function(G){return"showing"===G.mode})&&
(a.Y=!0,a.s.setTextVisibility(!0));if(!(a.s instanceof Oo))for(v.length&&(a.s.enableTextDisplayer?a.s.enableTextDisplayer():Uc("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method')),y=!1,z=t(v),A=z.next();!A.done;A=z.next())B=A.value,"disabled"!==B.mode&&(y?(B.mode="disabled",ab("Found more than one enabled text track, disabling it",B)):(lr(a,B),y=!0));mr(a);I(D)})}),d.error?l.reject(sq(a)):"none"==d.preload&&(ab('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.'),
l.resolve()),a.j.qa(d,"error",function(){l.reject(sq(a))}),F(w,Df(a.g.streaming.loadTimeout,l),4);case 4:if((n=a.T())&&(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled||a.g.streaming.liveSync.panicMode)||a.g.streaming.vodDynamicPlaybackRate)q=function(){return fr(a)},a.j.o(d,"timeupdate",q);n||(r=function(){return gr(a)},a.j.o(d,"timeupdate",r),gr(a));a.C&&(a.C.onManifestUpdated(n),n&&(u=a.xa().end,a.j.o(d,"progress",function(){var v=a.xa().end;u!=v&&(a.C.onManifestUpdated(a.T()),u=v)})));
a.Z=!0;I(w)}})}function kr(a){var b=a.g.preferredAudioLanguage;""!=b&&a.yj(b,a.g.preferredVariantRole)}function mr(a){var b=a.g.preferredTextLanguage;""!=b&&a.Sh(b,a.g.preferredTextRole,a.g.preferForcedSubs)}
function Uq(a,b){if("metadata"==b.kind){b.mode="hidden";a.j.o(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,Hq(a,e.startTime,e.endTime,e.type,e.value),a.C)a.C.onCueMetadataChange(e.value);if(b.cues){d=[];e=t(b.cues);for(var f=e.next(),g={};!f.done;g={Fc:void 0},f=e.next())g.Fc=f.value,"com.apple.quicktime.HLS"==g.Fc.type&&null!=g.Fc.startTime&&(f=d.find(function(h){return function(k){return k.startTime==h.Fc.startTime&&k.endTime==h.Fc.endTime}}(g)),
f||(f={startTime:g.Fc.startTime,endTime:g.Fc.endTime,values:[]},d.push(f)),f.values.push(g.Fc.value));d=t(d);for(e=d.next();!e.done;e=d.next())e=e.value,e.values.some(function(h){return"X-ASSET-URI"==h.key||"X-ASSET-LIST"==h.key})&&a.C&&(e.values.push({key:"CUE",description:"",data:0!=e.startTime||a.T()?"ONCE":"ONCE,PRE",mimeType:null,pictureType:null}),a.C.onHLSInterstitialMetadata(a,a.h,e))}});var c=(new zf(function(){var d=nr(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Ka().X(.5);
a.Ie.push(function(){c.stop()})}}function yq(a,b,c){b=(new Map).set("startTime",b.startTime).set("endTime",b.endTime).set("metadataType",b.schemeIdUri).set("payload",b.payload);a.dispatchEvent(lq(c,b))}function Hq(a,b,c,d,e){a.sa&&(b={schemeIdUri:d,startTime:b,endTime:c||Infinity,id:"",payload:e},b.id=JSON.stringify(b),lm(a.sa,b))}function Vq(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new zf(function(){b.mode="hidden"})).Ka().X(.5);a.Ie.push(function(){c.stop()})}}
p.Vl=function(){for(var a=this.$;a.g;)a.release()};p.vd=function(a){return new yh(a)};
function eq(a,b){function c(f){b()?b().dispatchEvent(f):a.dispatchEvent(f)}function d(f){b()?io(b(),!0,f):f()}b||(b=function(){return null});var e=new Sg(function(f,g,h,k,l){var m=b()?b().j:a.u;m&&m.segmentDownloaded(f,g,h,k,l)},function(f,g,h){g=(new Map).set("headers",f).set("request",g).set("requestType",h);c(lq("downloadheadersreceived",g));d(function(){if(a.na){var k=a.na;if(k.h.enabled){var l=f["cmsd-static"];if(l)try{var m=new Map,n=l.split(",");for(l=0;l<n.length;l++){var q=n[l].split("=");
m.set(q[0],Zp(q[1]))}}catch(y){}if(m=f["cmsd-dynamic"]){try{var r=new Map,u=m.split(";");for(m=1;m<u.length;m++){var w=u[m].split("=");r.set(w[0],Zp(w[1]))}var v=r}catch(y){v=null}v&&(k.g=v)}}}})},function(f,g){f=(new Map).set("request",f).set("response",g);c(lq("downloadcompleted",f))},function(f,g,h,k){f=(new Map).set("request",f).set("error",g).set("httpResponseCode",h).set("aborted",k);c(lq("downloadfailed",f))},function(f,g,h){d(function(){var k=a.K,l=h;l=void 0===l?{}:l;if(k.g.enabled)if("HEAD"===
g.method)up(k,g);else switch(f){case 0:try{if(k.g.enabled){if(l.type){a:{switch(l.type){case 4:var m=k.l?ip:hp;break a;case 3:case 2:m=k.l?kp:jp;break a;case 5:m="s";break a}m=void 0}k.i=m}up(k,g,{ot:rp,su:!k.u})}}catch(M){bb("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",M)}break;case ch:try{if(k.g.enabled){var n=g.uris[0],q=l.segment;m=0;q&&(m=q.endTime-q.startTime);var r={d:1E3*m,st:k.h.T()?"l":"v"};r.ot=yp(l);var u=r.ot===Ap||r.ot===pp||r.ot===qp||r.ot===Bp,w=l.stream;if(w){var v=
k.h.Xa();if(u&&(r.bl=Dp(k,w.type),r.ot!==Bp)){var y=Ep(k,w.type);r.dl=v?y/Math.abs(v):y}w.bandwidth&&(r.br=w.bandwidth/1E3);if(w.segmentIndex&&q){var z=w.segmentIndex.ac(q.endTime,!0,0>v);if(z){var A=z.next().value;if(A&&A!=q){if(n&&!ud(q.S(),A.S())){var B=A.S()[0],D=new URL(B),G=new URL(n);if(D.origin!==G.origin)var C=B;else{for(var E=D.pathname.split("/").slice(1),H=G.pathname.split("/").slice(1,-1);E[0]===H[0];)E.shift(),H.shift();for(;H.length;)H.shift(),E.unshift("..");C=E.join("/")}r.nor=C}if((A.startByte||
A.endByte)&&(q.startByte!=A.startByte||q.endByte!=A.endByte)){var K=A.startByte+"-";A.endByte&&(K+=A.endByte);r.nrr=K}}}var J=k.h.Xa()||1,L=Ep(k,w.type)||500,N=w.bandwidth;var O=N?N*(q.endTime-q.startTime)/1E3/(L/J/1E3)*k.g.rtpSafetyFactor:NaN;isNaN(O)||(r.rtp=O)}}u&&r.ot!==Bp&&(r.tb=Fp(k,r.ot)/1E3);up(k,g,r)}}catch(M){bb("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",M)}break;case 2:case 5:case 6:up(k,g,{ot:"k"});break;case 4:up(k,g,{ot:"o"})}})},function(f,g,h,k){(f=b()?b().l:a.G)&&
f.banLocation&&f.banLocation(k)},function(f,g){if(g.data){g=g.data.byteLength;var h=b()?b().getStats():a.B;h&&(fo(h,g),0===f&&(h.bj=g))}});e.configure(a.g.networking);return e}function Zq(a,b){return new Ql(a.h,a.i,a.g.streaming,b,function(){a.cb&&dm(a.cb,!0);a.l&&a.l.md();a.O&&or(a)},function(c){return a.dispatchEvent(c)})}
function $q(a,b){var c=a.T()||"number"===typeof b&&0<b;b=new wo(a.Fe,c);b.addEventListener("enter",function(f){Iq(a,"timelineregionenter",f.region)});b.addEventListener("exit",function(f){Iq(a,"timelineregionexit",f.region)});b.addEventListener("skip",function(f){var g=f.region;f.seeking||(Iq(a,"timelineregionenter",g),Iq(a,"timelineregionexit",g))});var d=new wo(a.sa,c);d.addEventListener("enter",function(f){yq(a,f.region,"metadata")});c=new wo(a.Ta,c);c.addEventListener("enter",function(f){f=(new Map).set("detail",
f.region.emsg);a.dispatchEvent(lq("emsg",f))});var e=new cm(a.h);e.g.add(b);e.g.add(d);e.g.add(c);a.Ee&&e.g.add(a.Ee);return e}function hr(a,b){b=new wo(a.sa,b instanceof Date||0<b);b.addEventListener("enter",function(d){yq(a,d.region,"metadata")});var c=new cm(a.h);c.g.add(b);return c}
function ar(a,b,c){a.O=new ri;a.O.g=ti;pr(a);vq(a);a.Ia=new zf(function(){or(a)});a.g.streaming.rebufferingGoal&&a.Ia.ya(.25);a.j.o(b,"waiting",function(){return or(a)});a.j.o(b,"canplaythrough",function(){return or(a)});a.j.o(b,"playing",function(){return or(a)});a.j.o(b,"seeked",function(){return or(a)});c&&(a.j.o(b,"stalled",function(){return or(a)}),a.j.o(b,"progress",function(){return or(a)}),a.j.o(b,"timeupdate",function(){return or(a)}))}
function pr(a){var b=a.g.streaming.rebufferingGoal;a.O.i.set(si,Math.min(.5,b/2)).set(ti,b)}function or(a){var b=a.isEnded()||a.F.Xi(),c=Hj(a.h.buffered,a.h.currentTime),d=a.O,e=d.i.get(d.g),f=d.g;b=b||c>=e&&0<c?si:ti;d.g=b;(f=f!=b)&&b===si&&(d.h=Date.now());f&&vq(a)}function Nq(a,b,c,d,e){return new wk(a,b,c,e,d)}
function dq(a){return new dp({getBandwidthEstimate:function(){return a.u?a.u.getBandwidthEstimate():NaN},Qb:function(){return a.Qb()},getCurrentTime:function(){return a.h?a.h.currentTime:0},Xa:function(){return a.Xa()},Ib:function(){return a.Ib()},qb:function(){return a.qb()},T:function(){return a.T()},pf:function(){return a.pf()}},a.g.cmcd)}
function Yq(a){return new Gm(a.i,{cd:function(){return a.F?a.F.Ue():0},getBandwidthEstimate:function(){return a.u.getBandwidthEstimate()},Xa:function(){return a.Xa()},video:a.h,ha:a.I,xc:a.H,onError:function(b){return tq(a,b)},onEvent:function(b){return a.dispatchEvent(b)},Mf:function(b,c,d){var e=b.startTime;b=b.endTime;c=c.type;if(c!=sc){if(a.F){a.F.jj();var f=Jk(a.I,c);!a.T()&&a.h.paused&&!a.h.seeking&&null!=f&&0<f&&a.F.Ue()<f&&a.F.sg(f)}or(a)}d=(new Map).set("start",e).set("end",b).set("contentType",
c).set("isMuxed",d);a.dispatchEvent(lq("segmentappended",d))},Ml:function(b,c){(c=c.Ed)&&a.Ee&&gm(a.Ee,c,b)},Bi:function(b,c){var d=a.D;if(d.h.parseInbandPsshEnabled&&!d.F&&["audio","video"].includes(b)){b=new wh(Kb(c));c=0;for(var e=t(b.data),f=e.next();!f.done;f=e.next())c+=f.value.length;if(0==c)d=Promise.resolve();else{c=new Uint8Array(c);e=0;b=t(b.data);for(f=b.next();!f.done;f=b.next())f=f.value,c.set(f,e),e+=f.length;Oh(d,"cenc",c);d=d.m}}else d=Promise.resolve();return d},disableStream:function(b,
2025-06-19 04:02:44 +02:00
c){return a.disableStream(b,c)}})}
2025-06-27 11:02:59 +02:00
p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=wn(a,b));a.streaming&&"forceTransmuxTS"in a.streaming&&(Uc("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource=a.mediaSource||{},a.mediaSource.mediaSource=a.streaming.forceTransmuxTS,delete a.streaming.forceTransmuxTS);a.streaming&&"forceTransmux"in a.streaming&&(Uc("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource=a.mediaSource||
{},a.mediaSource.mediaSource=a.streaming.forceTransmux,delete a.streaming.forceTransmux);if(a.streaming&&"useNativeHlsOnSafari"in a.streaming){Uc("streaming.useNativeHlsOnSafari configuration","Please Use streaming.useNativeHlsForFairPlay or streaming.preferNativeHls instead.");var c=Rb();a.streaming.preferNativeHls=a.streaming.useNativeHlsOnSafari&&"WEBKIT"===c.Ga();delete a.streaming.useNativeHlsOnSafari}a.streaming&&"boolean"==typeof a.streaming.liveSync&&(Uc("streaming.liveSync","Please Use streaming.liveSync.enabled instead."),
2025-06-19 04:02:44 +02:00
c=a.streaming.liveSync,a.streaming.liveSync={},a.streaming.liveSync.enabled=c);if(a.streaming&&!(a.streaming.liveSync&&"targetLatency"in a.streaming.liveSync)&&("liveSyncMinLatency"in a.streaming||"liveSyncMaxLatency"in a.streaming)){c=a.streaming.liveSyncMinLatency||0;var d=Math.abs((a.streaming.liveSyncMaxLatency||1)-c)/2;a.streaming.liveSync=a.streaming.liveSync||{};a.streaming.liveSync.targetLatency=c+d;a.streaming.liveSync.targetLatencyTolerance=d}a.streaming&&"liveSyncMaxLatency"in a.streaming&&
(Uc("streaming.liveSyncMaxLatency","Please Use streaming.liveSync.targetLatency and streaming.liveSync.targetLatencyTolerance instead. Or, set the values in your DASH manifest"),delete a.streaming.liveSyncMaxLatency);a.streaming&&"liveSyncMinLatency"in a.streaming&&(Uc("streaming.liveSyncMinLatency","Please Use streaming.liveSync.targetLatency and streaming.liveSync.targetLatencyTolerance instead. Or, set the values in your DASH manifest"),delete a.streaming.liveSyncMinLatency);a.streaming&&"liveSyncTargetLatency"in
a.streaming&&(Uc("streaming.liveSyncTargetLatency","Please Use streaming.liveSync.targetLatency instead."),a.streaming.liveSync=a.streaming.liveSync||{},a.streaming.liveSync.targetLatency=a.streaming.liveSyncTargetLatency,delete a.streaming.liveSyncTargetLatency);a.streaming&&"liveSyncTargetLatencyTolerance"in a.streaming&&(Uc("streaming.liveSyncTargetLatencyTolerance","Please Use streaming.liveSync.targetLatencyTolerance instead."),a.streaming.liveSync=a.streaming.liveSync||{},a.streaming.liveSync.targetLatencyTolerance=
a.streaming.liveSyncTargetLatencyTolerance,delete a.streaming.liveSyncTargetLatencyTolerance);a.streaming&&"liveSyncPlaybackRate"in a.streaming&&(Uc("streaming.liveSyncPlaybackRate","Please Use streaming.liveSync.maxPlaybackRate instead."),a.streaming.liveSync=a.streaming.liveSync||{},a.streaming.liveSync.maxPlaybackRate=a.streaming.liveSyncPlaybackRate,delete a.streaming.liveSyncPlaybackRate);a.streaming&&"liveSyncMinPlaybackRate"in a.streaming&&(Uc("streaming.liveSyncMinPlaybackRate","Please Use streaming.liveSync.minPlaybackRate instead."),
a.streaming.liveSync=a.streaming.liveSync||{},a.streaming.liveSync.minPlaybackRate=a.streaming.liveSyncMinPlaybackRate,delete a.streaming.liveSyncMinPlaybackRate);a.streaming&&"liveSyncPanicMode"in a.streaming&&(Uc("streaming.liveSyncPanicMode","Please Use streaming.liveSync.panicMode instead."),a.streaming.liveSync=a.streaming.liveSync||{},a.streaming.liveSync.panicMode=a.streaming.liveSyncPanicMode,delete a.streaming.liveSyncPanicMode);a.streaming&&"liveSyncPanicThreshold"in a.streaming&&(Uc("streaming.liveSyncPanicThreshold",
"Please Use streaming.liveSync.panicThreshold instead."),a.streaming.liveSync=a.streaming.liveSync||{},a.streaming.liveSync.panicThreshold=a.streaming.liveSyncPanicThreshold,delete a.streaming.liveSyncPanicThreshold);if(a.mediaSource&&"sourceBufferExtraFeatures"in a.mediaSource){Uc("mediaSource.sourceBufferExtraFeatures configuration","Please Use mediaSource.addExtraFeaturesToSourceBuffer() instead.");var e=a.mediaSource.sourceBufferExtraFeatures;a.mediaSource.addExtraFeaturesToSourceBuffer=function(){return e};
delete a.mediaSource.sourceBufferExtraFeatures}a.manifest&&a.manifest.hls&&"useSafariBehaviorForLive"in a.manifest.hls&&(Uc("manifest.hls.useSafariBehaviorForLive configuration","Please Use liveSync config to keep on live Edge instead."),delete a.manifest.hls.useSafariBehaviorForLive);a.streaming&&"parsePrftBox"in a.streaming&&(Uc("streaming.parsePrftBox configuration","Now fired without needing a configuration."),delete a.streaming.parsePrftBox);a.manifest&&a.manifest.dash&&"enableAudioGroups"in
a.manifest.dash&&(Uc("manifest.dash.enableAudioGroups configuration","It is now enabled by default and cannot be disabled."),delete a.manifest.dash.enableAudioGroups);a.streaming&&"dispatchAllEmsgBoxes"in a.streaming&&(Uc("streaming.dispatchAllEmsgBoxes configuration","Please Use mediaSource.dispatchAllEmsgBoxes instead."),a.mediaSource=a.mediaSource||{},a.mediaSource.dispatchAllEmsgBoxes=a.streaming.dispatchAllEmsgBoxes,delete a.streaming.dispatchAllEmsgBoxes);a.streaming&&"autoLowLatencyMode"in
a.streaming&&(Uc("streaming.autoLowLatencyMode configuration","Please Use streaming.lowLatencyMode instead."),a.streaming.lowLatencyMode=a.streaming.autoLowLatencyMode,delete a.streaming.autoLowLatencyMode);a.manifest&&a.manifest.dash&&"ignoreSupplementalCodecs"in a.manifest.dash&&(Uc("manifest.dash.ignoreSupplementalCodecs configuration","Please Use manifest.ignoreSupplementalCodecs instead."),a.manifest.ignoreSupplementalCodecs=a.manifest.dash.ignoreSupplementalCodecs,delete a.manifest.dash.ignoreSupplementalCodecs);
a.manifest&&a.manifest.hls&&"ignoreSupplementalCodecs"in a.manifest.hls&&(Uc("manifest.hls.ignoreSupplementalCodecs configuration","Please Use manifest.ignoreSupplementalCodecs instead."),a.manifest.ignoreSupplementalCodecs=a.manifest.hls.ignoreSupplementalCodecs,delete a.manifest.hls.ignoreSupplementalCodecs);a.manifest&&a.manifest.dash&&"updatePeriod"in a.manifest.dash&&(Uc("manifest.dash.updatePeriod configuration","Please Use manifest.updatePeriod instead."),a.manifest.updatePeriod=a.manifest.dash.updatePeriod,
delete a.manifest.dash.updatePeriod);a.manifest&&a.manifest.hls&&"updatePeriod"in a.manifest.hls&&(Uc("manifest.hls.updatePeriod configuration","Please Use manifest.updatePeriod instead."),a.manifest.updatePeriod=a.manifest.hls.updatePeriod,delete a.manifest.hls.updatePeriod);a.manifest&&a.manifest.dash&&"ignoreDrmInfo"in a.manifest.dash&&(Uc("manifest.dash.ignoreDrmInfo configuration","Please Use manifest.ignoreDrmInfo instead."),a.manifest.ignoreDrmInfo=a.manifest.dash.ignoreDrmInfo,delete a.manifest.dash.ignoreDrmInfo);
if(a.drm&&a.drm.advanced){c=!1;for(var f in a.drm.advanced){var g=a.drm.advanced[f];d=g.videoRobustness;g=g.audioRobustness;"videoRobustness"in a.drm.advanced[f]&&!Array.isArray(a.drm.advanced[f].videoRobustness)&&(a.drm.advanced[f].videoRobustness=[d],c=!0);"audioRobustness"in a.drm.advanced[f]&&!Array.isArray(a.drm.advanced[f].audioRobustness)&&(a.drm.advanced[f].audioRobustness=[g],c=!0)}c&&Uc("AdvancedDrmConfiguration's videoRobustness and audioRobustness","These properties are no longer strings but array of strings, please update your usage of these properties.")}a.streaming&&
"forceHTTP"in a.streaming&&(Uc("streaming.forceHTTP configuration","Please Use networking.forceHTTP instead."),a.networking=a.networking||{},a.networking.forceHTTP=a.streaming.forceHTTP,delete a.streaming.forceHTTP);a.streaming&&"forceHTTPS"in a.streaming&&(Uc("streaming.forceHTTPS configuration","Please Use networking.forceHTTP instead."),a.networking=a.networking||{},a.networking.forceHTTPS=a.streaming.forceHTTPS,delete a.streaming.forceHTTPS);a.streaming&&"minBytesForProgressEvents"in a.streaming&&
2025-06-27 11:02:59 +02:00
(Uc("streaming.minBytesForProgressEvents configuration","Please Use networking.minBytesForProgressEvents instead."),a.networking=a.networking||{},a.networking.minBytesForProgressEvents=a.streaming.minBytesForProgressEvents,delete a.streaming.minBytesForProgressEvents);a.streaming&&"crossBoundaryStrategy"in a.streaming&&"keep"!=a.streaming.crossBoundaryStrategy&&(a.streaming.inaccurateManifestTolerance=0);f=Vn(this.g,a,cq(this));qr(this);return f};p.kk=function(a){this.wg=a};
function qr(a){a.Le=new ui(a.g,a.oa,a.D);if(a.G){var b=Ed(a.g.manifest);a.h&&"AUDIO"===a.h.nodeName&&(b.disableVideo=!0);a.G.configure(b)}a.D&&a.D.configure(a.g.drm);if(a.l){a.l.configure(a.g.streaming);try{a.m!=mq&&wi(a.Le,a.i)&&Kq(a)}catch(c){tq(a,c)}a.u&&Lq(a);b=a.l.s;!b||b.allowedByApplication&&b.allowedByKeySystem||iq(a)}a.H&&a.H.configure(a.g.networking);a.I&&(a.I.configure(a.g.mediaSource),a.I.Ia=a.g.manifest.segmentRelativeVttTiming);a.s&&Mq(a);a.u&&(a.u.configure(a.g.abr),a.g.abr.enabled?
a.u.enable():a.u.disable(),er(a));a.O&&pr(a);a.Ia&&(a.g.streaming.rebufferingGoal?a.Ia.ya(.25):a.Ia.stop());a.i&&Wq(a.i.presentationTimeline,a.g.playRangeStart,a.g.playRangeEnd);a.C&&a.C.configure(a.g.ads);a.K&&a.K.configure(a.g.cmcd);a.na&&a.na.configure(a.g.cmsd);a.ra&&a.ra.configure(a.g.queue)}p.getConfiguration=function(){var a=cq(this);Vn(a,this.g,cq(this));return a};p.Ak=function(){return this.wg};p.Ri=function(){var a=cq(this);Vn(a,this.g,cq(this));return yn(this.g,cq(this))};
p.Oi=function(){if(this.h){var a=this.h.buffered.length;a=a?this.h.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.h.currentTime+b,this.xa().end);if(a>=b)return 1;if(!(a<=this.h.currentTime)&&a<b)return(a-this.h.currentTime)/(b-this.h.currentTime)}return 0};p.tj=function(){for(var a in this.g)delete this.g[a];Vn(this.g,cq(this),cq(this));qr(this)};p.Kk=function(){return this.m};p.jh=function(){return this.i?this.i.type:null};p.Rk=function(){return this.h};
p.Ib=function(){return this.H};p.$c=function(){return this.U};p.mf=function(){return this.C?this.C:null};p.lh=function(){return this.ra?this.ra:null};p.T=function(){return this.i&&!this.Ca()?this.i.presentationTimeline.T():this.h&&(this.h.src||this.Ca())?Infinity==this.h.duration:!1};p.fd=function(){return this.i?this.i.presentationTimeline.fd():!1};
p.Cd=function(){if(this.i&&!this.Ca()){var a=this.i.variants;return a.length?!a[0].video:!1}return this.h&&(this.h.src||this.Ca())?this.h.videoTracks?0==this.h.videoTracks.length:0==this.h.videoHeight:!1};p.xh=function(){if(this.i&&!this.Ca()){var a=this.i.variants;if(!a.length)return!1;a=a[0];return a.audio||!a.video?!1:!a.video.codecs.includes(",")}return this.h&&(this.h.src||this.Ca())&&this.h.audioTracks?0==this.h.audioTracks.length:!1};
p.xa=function(){if(this.i&&!this.Ca()){if(!this.Z&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.bc(),end:a.Jb()}}if(this.h&&(this.h.src||this.Ca())&&(a=this.h.seekable)&&a.length){var b=this.g?this.g.playRangeStart:0;b=Math.max(a.start(0),b);var c=this.g?this.g.playRangeEnd:Infinity;a=Math.min(a.end(a.length-1),c);return{start:b,end:a}}return{start:0,end:0}};p.ol=function(){this.T()&&(this.h.currentTime=this.xa().end)};p.vl=function(){return this.Z};
p.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};p.drmInfo=function(){return this.D?this.D.g:null};p.be=function(){return this.D?this.D.be():Infinity};p.eh=function(){return this.D?this.D.eh():[]};p.nf=function(){return this.D?this.D.nf():{}};p.xf=function(){return this.O?this.O.g==ti:!!this.U};p.Xa=function(){return this.h?this.J?this.J.i:1:0};p.oi=function(a){this.m==Qq&&this.l&&Sm(this.l,a)};
p.Sc=function(a,b){b=void 0===b?!0:b;0==a?ab("A trick play rate of 0 is unsupported!"):(this.J.set(a),this.m==Qq&&(this.u.playbackRateChanged(a),this.oi(b&&1!=a)),Rq(this,a))};p.ud=function(){var a=this.J.bd();this.m==Tq&&this.J.set(a);this.m==Qq&&(this.J.set(a),this.u.playbackRateChanged(a),this.oi(!1));this.dc.Sa()};
p.qb=function(){if(this.i&&!this.Ca()){for(var a=this.l?this.l.s:null,b=[],c=0,d=t(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,hg(e)){var f=$f(e);f.active=e==a;f.active||1==c||null==a||e.video!=a.video||e.audio!=a.audio||(f.active=!0);f.active&&c++;b.push(f)}return b}if(this.h&&this.h.audioTracks){var g=rr(this);a=Array.from(this.h.audioTracks);return a.length?a.map(function(h){return gg(h,g)}):g?[gg(null,g)]:[]}return[]};
p.rc=function(){if(this.i){if(this.Ca())return[];for(var a=this.l?this.l.B:null,b=[],c=t(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=ag(d);e.active=d==a;b.push(e)}return b}return this.h&&this.h.src&&this.h.textTracks?ir(this).map(function(f){return fg(f)}):[]};p.hh=function(){var a=this.Re;this.i&&(a=this.i.imageStreams);return a.map(function(b){return bg(b)})};
p.pk=function(a){var b=this,c,d;return Q(function(e){if(1==e.g)return F(e,sr(b,a),2);c=e.h;if(!c)return e.return(null);d=[];c.segmentIndex.Hb(function(f){var g=tr(f.tilesLayout||c.tilesLayout);if(g)for(var h=g.rows*g.Wc,k=f.j-f.startTime,l=0;l<h;l++){var m=ur(f,c,f.startTime+k*l/h,g);d.push(m)}});c.closeSegmentIndex&&c.closeSegmentIndex();return e.return(d)})};function tr(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{Wc:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}
p.Si=function(a,b){var c=this,d,e,f,g;return Q(function(h){if(1==h.g)return F(h,sr(c,a),2);d=h.h;if(!d)return h.return(null);e=d.segmentIndex.find(b);if(null==e)return h.return(null);f=d.segmentIndex.get(e);return(g=tr(f.tilesLayout||d.tilesLayout))?h.return(ur(f,d,b,g)):h.return(null)})};
function sr(a,b){var c,d;return Q(function(e){if(1==e.g){if(a.m!=Qq&&a.m!=Tq)return e.return(null);c=a.Re;a.i&&(c=a.i.imageStreams);d=c[0];if(!d)return e.return(null);null!=b&&(d=c.find(function(f){return f.id==b}));return d?d.segmentIndex?e.A(2):F(e,d.createSegmentIndex(),2):e.return(null)}return e.return(d)})}
function ur(a,b,c,d){var e=b.width||0,f=b.height||0,g=e/d.Wc,h=f/d.rows,k=d.Wc*d.rows,l=a.j-a.startTime;l=a.C||l/k;var m=a.startTime,n=0,q=0;1<k&&(q=Math.floor((c-a.startTime)/l),m=a.startTime+q*l,n=q%d.Wc*g,q=Math.floor(q/d.Wc)*h);d=!1;if(c=a.thumbnailSprite)d=!0,h=c.height,n=c.positionX,q=c.positionY,g=c.width;return{segment:a,imageHeight:f,imageWidth:e,height:h,positionX:n,positionY:q,startTime:m,duration:l,uris:a.S(),startByte:a.Ic(),endByte:a.Gc(),width:g,sprite:d,mimeType:a.mimeType||b.mimeType,
2025-06-19 04:02:44 +02:00
codecs:a.codecs||b.codecs}}
2025-06-27 11:02:59 +02:00
p.$f=function(a){function b(){var d=c.i.textStreams.find(function(e){return e.id==a.id});d&&d!=c.l.B&&($n(c.B.h,d,!1),Vm(c.l,d),Sq(c),dr(c),c.Kd=d.language)}var c=this;if(this.i&&this.F&&(b(),!this.Ca()))return;(function(){if(c.h&&c.h.textTracks){var d=ir(c),e=d.find(function(h){return dg(h)===a.id});if(e){if(c.s instanceof Oo){d=t(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=f===e?c.Y?"showing":"hidden":"disabled";f.mode!==g&&(f.mode=g)}}else d=d.find(function(h){return"disabled"!==h.mode}),
d!==e&&(d&&(d.mode="disabled",c.j.Da(d,"cuechange"),c.s.remove(0,Infinity)),e&&lr(c,e));Sq(c);dr(c)}}})()};
function lr(a,b){a.j.o(b,"cuechange",function(){a.s.remove(0,Math.max(0,a.h.currentTime-a.g.streaming.bufferBehind));var c={periodStart:0,segmentStart:0,segmentEnd:a.h.duration,vttOffset:0},d=[],e=Array.from(b.activeCues||[]);e=t(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;if(Infinity===f.endTime||f.endTime<f.startTime)f=null;else{var g=new oe(f.startTime,f.endTime,f.text);g.line="number"===typeof f.line?f.line:null;f.lineAlign&&(g.lineAlign=f.lineAlign);g.lineInterpretation=f.snapToLines?
ue:1;g.position="number"===typeof f.position?f.position:null;f.positionAlign&&(g.positionAlign=f.positionAlign);g.size=f.size;g.textAlign=f.align;"lr"===f.vertical?g.writingMode="vertical-lr":"rl"===f.vertical&&(g.writingMode="vertical-rl");f.region&&(g.region.id=f.region.id,g.region.height=f.region.lines,g.region.heightUnits=2,g.region.regionAnchorX=f.region.regionAnchorX,g.region.regionAnchorY=f.region.regionAnchorY,g.region.scroll=f.region.scroll,g.region.viewportAnchorX=f.region.viewportAnchorX,
g.region.viewportAnchorY=f.region.viewportAnchorY,g.region.viewportAnchorUnits=pd,g.region.width=f.region.width,g.region.widthUnits=pd);Be(g);f=g}f&&((g=a.g.mediaSource.modifyCueCallback)&&g(f,null,c),d.push(f))}a.s.append(d)});b.mode=document.pictureInPictureElement?"showing":"hidden"}
p.ye=function(a,b,c){function d(){var f=e.i.variants.find(function(h){return h.id==a.id});if(f&&hg(f)){var g=e.l.s;e.g.abr.enabled&&(g.video!=f.video||g.audio&&f.audio&&g.audio.language==f.audio.language&&g.audio.channelsCount==f.audio.channelsCount&&g.audio.label==f.audio.label)&&ab("Changing tracks while abr manager is enabled will likely result in the selected track being overridden. Consider disabling abr before calling selectVariantTrack().");e.Ca()?Xq(e,f,!1,!1,0):Xq(e,f,!1,b||!1,c||0);e.L.configure({language:f.language,
role:f.audio&&f.audio.roles&&f.audio.roles[0]||"",channelCount:f.audio&&f.audio.channelsCount?f.audio.channelsCount:0,Lc:f.video&&f.video.hdr?f.video.hdr:"",spatialAudio:f.audio&&f.audio.spatialAudio?f.audio.spatialAudio:!1,videoLayout:f.video&&f.video.videoLayout?f.video.videoLayout:"",Uc:f.audio&&f.audio.label?f.audio.label:"",Rd:"",codecSwitchingStrategy:e.g.mediaSource.codecSwitchingStrategy,audioCodec:f.audio&&f.audio.codecs?f.audio.codecs:"",Td:g.audio&&g.audio.codecs?g.audio.codecs:"",We:g.audio&&
g.audio.channelsCount?g.audio.channelsCount:0,preferredAudioCodecs:e.g.preferredAudioCodecs,preferredAudioChannelCount:e.g.preferredAudioChannelCount});Lq(e)}}var e=this;b=void 0===b?!1:b;c=void 0===c?0:c;if(this.i&&this.F&&(d(),!this.Ca()))return;(function(){if(a.originalAudioId&&e.h&&e.h.audioTracks){var f=Array.from(e.h.audioTracks);f=t(f);for(var g=f.next();!g.done;g=f.next())if(g=g.value,dg(g)==a.id){vr(e,g);break}}})()};
p.zj=function(a,b){function c(){var e=d.L.getConfiguration();e.audioCodec=a.codecs||"";e.Uc=a.label||"";e.channelCount=a.channelsCount||0;e.language=a.language;e.role=a.roles[0]||"";e.spatialAudio=a.spatialAudio;d.L.configure(e);iq(d,!0,b,!1,!1)}var d=this;b=void 0===b?0:b;if(this.i&&this.F&&(c(),!this.Ca()))return;(function(){if(d.h&&d.h.audioTracks){var e=Array.from(d.h.audioTracks),f=null;e=t(e);for(var g=e.next();!g.done;g=e.next())if(g=g.value,g.label==a.label&&g.language==a.language&&g.kind==
a.roles[0]){f=g;break}f&&vr(d,f)}})()};
p.getAudioTracks=function(){if(this.i&&!this.Ca()){var a=this.qb();if(!a.length)return[];var b=a.find(function(f){return f.active});if(!b)return[];var c=a;this.m!=Qq||this.Ca()||(c=a.filter(function(f){return f.originalVideoId===b.originalVideoId&&f.audioCodec}));if(!c.length)return[];a=new Map;c=t(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=d.originalAudioId;e||null==d.audioId||(e=String(d.audioId));e&&a.set(e,{active:d.active,language:d.language,label:d.label,mimeType:d.audioMimeType,
codecs:d.audioCodec,primary:d.primary,roles:d.audioRoles||[],accessibilityPurpose:d.accessibilityPurpose,channelsCount:d.channelsCount,audioSamplingRate:d.audioSamplingRate,spatialAudio:d.spatialAudio,originalLanguage:d.originalLanguage})}return Array.from(a.values())}return this.h&&this.h.audioTracks?Array.from(this.h.audioTracks).map(function(f){var g=f.language;g={active:f.enabled,language:yc(g||"und"),label:f.label,mimeType:null,codecs:null,primary:"main"==f.kind,roles:[],accessibilityPurpose:null,
channelsCount:null,audioSamplingRate:null,spatialAudio:!1,originalLanguage:g};f.kind&&g.roles.push(f.kind);f.configuration&&(f.configuration.codec&&(g.codecs=f.configuration.codec),f.configuration.sampleRate&&(g.audioSamplingRate=f.configuration.sampleRate),f.configuration.numberOfChannels&&(g.channelsCount=f.configuration.numberOfChannels));return g}):[]};
p.Aj=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;var d=this.qb();if(d.length){var e=d.find(function(f){return f.active});e&&(d=d.find(function(f){return f.audioId===e.audioId&&(f.videoBandwidth||f.bandwidth)==a.bandwidth&&f.width==a.width&&f.height==a.height&&f.frameRate==a.frameRate&&f.pixelAspectRatio==a.pixelAspectRatio&&f.hdr==a.hdr&&f.colorGamut==a.colorGamut&&f.videoLayout==a.videoLayout&&f.videoMimeType==a.mimeType&&f.videoCodec==a.codecs}))&&!d.active&&this.ye(d,b,c)}};
p.getVideoTracks=function(){if(this.m==Tq||this.Ca())return[];var a=this.qb();if(!a.length)return[];var b=a.find(function(f){return f.active});if(!b)return[];var c=a.filter(function(f){return f.originalAudioId===b.originalAudioId&&f.audioId===b.audioId&&f.audioGroupId===b.audioGroupId&&f.videoCodec});if(!c.length)return[];a=new Map;c=t(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=d.originalVideoId;e||null==d.videoId||(e=String(d.videoId));e&&a.set(e,{active:d.active,bandwidth:d.videoBandwidth||
d.bandwidth,width:d.width,height:d.height,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,colorGamut:d.colorGamut,videoLayout:d.videoLayout,mimeType:d.videoMimeType,codecs:d.videoCodec})}return Array.from(a.values())};p.rk=function(){return wr(this.qb())};p.$k=function(){return wr(this.rc())};p.qk=function(){return Array.from(xr(this.qb()))};p.Zk=function(){return Array.from(xr(this.rc()))};
p.yj=function(a,b,c,d,e,f,g){function h(){function l(u,w){return u.video||w.video?u.video&&w.video?Math.abs((u.video.height||0)-(w.video.height||0))+Math.abs((u.video.width||0)-(w.video.width||0)):Infinity:0}var m=k.l.s;k.L=k.g.adaptationSetCriteriaFactory();k.L.configure({language:a,role:b||"",channelCount:c||0,Lc:"",spatialAudio:f||!1,videoLayout:"",Uc:g||"",Rd:"",codecSwitchingStrategy:k.g.mediaSource.codecSwitchingStrategy,audioCodec:e||"",Td:m.audio&&m.audio.codecs?m.audio.codecs:"",We:m.audio&&
m.audio.channelsCount?m.audio.channelsCount:0,preferredAudioCodecs:k.g.preferredAudioCodecs,preferredAudioChannelCount:k.g.preferredAudioChannelCount});var n=k.L.create(k.i.variants),q=null;n=t(n.values());for(var r=n.next();!r.done;r=n.next())r=r.value,hg(r)&&(!q||l(q,m)>l(r,m))&&(q=r);q!=m&&(q?(m=$f(q),k.ye(m,!0,d||0)):iq(k))}var k=this;c=void 0===c?0:c;d=void 0===d?0:d;e=void 0===e?"":e;f=void 0===f?!1:f;g=void 0===g?"":g;if(this.i&&this.F&&(h(),!this.Ca()))return;(function(){if(k.h&&k.h.audioTracks){var l=
jg(k.qb(),a,b||"",!1)[0];l&&k.ye(l)}})()};p.Sh=function(a,b,c){function d(){e.Kd=a;e.Ke=b||"";e.Je=c||!1;var f=jg(e.i.textStreams,e.Kd,e.Ke,e.Je)[0]||null;f&&f!=e.l.B&&($n(e.B.h,f,!1),e.g.streaming.alwaysStreamText||e.gd())&&(Vm(e.l,f),Sq(e),dr(e))}var e=this;c=void 0===c?!1:c;if(this.i&&this.F&&(d(),!this.Ca()))return;(function(){var f=jg(e.rc(),a,b||"",c||!1)[0];f&&e.$f(f)})()};
p.dm=function(a,b,c){function d(){for(var f=null,g=t(e.i.variants),h=g.next();!h.done;h=g.next())if(h=h.value,h.audio.label==a){f=h;break}null!=f&&(e.L=e.g.adaptationSetCriteriaFactory(),e.L.configure({language:f.language,role:"",channelCount:0,Lc:"",spatialAudio:!1,videoLayout:"",Rd:"",Uc:a,codecSwitchingStrategy:e.g.mediaSource.codecSwitchingStrategy,audioCodec:"",Td:"",We:0,preferredAudioCodecs:e.g.preferredAudioCodecs,preferredAudioChannelCount:e.g.preferredAudioChannelCount}),iq(e,b,c))}var e=
this;b=void 0===b?!0:b;c=void 0===c?0:c;if(this.i&&this.F&&(d(),!this.Ca()))return;(function(){if(e.h&&e.h.audioTracks){var f=Array.from(e.h.audioTracks),g=null;f=t(f);for(var h=f.next();!h.done;h=f.next())h=h.value,h.label==a&&(g=h);g&&vr(e,g)}})()};p.gd=function(){var a=this.Y;return this.s?this.s.isTextVisible():a};p.xk=function(){return this.Ya.map(function(a){return ag(a)})};
p.wk=function(a){Uc("getChapters","Please use an getChaptersAsync.");if(!this.Ya.length)return[];var b=yc(a);a=this.Ya.filter(function(f){return yc(f.language)==b});if(!a.length)return[];var c=[],d=new Set;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,e.segmentIndex&&e.segmentIndex.Hb(function(f){var g=f.S()[0],h=f.startTime+"-"+f.endTime+"-"+g;f={id:h,title:g,startTime:f.startTime,endTime:f.endTime};d.has(h)||(c.push(f),d.add(h))});return c};
p.fh=function(a){var b=this,c,d,e,f,g,h,k;return Q(function(l){switch(l.g){case 1:if(!b.Ya.length)return l.return([]);c=yc(a);d=b.Ya.filter(function(m){return yc(m.language)==c});if(!d.length)return l.return([]);e=[];f=new Set;g=t(d);h=g.next();case 2:if(h.done){l.A(4);break}k=h.value;if(k.segmentIndex){l.A(5);break}return F(l,k.createSegmentIndex(),5);case 5:k.segmentIndex.Hb(function(m){var n=m.S()[0],q=m.startTime+"-"+m.endTime+"-"+n;m={id:q,title:n,startTime:m.startTime,endTime:m.endTime};f.has(q)||
(e.push(m),f.add(q))});h=g.next();l.A(2);break;case 4:return l.return(e)}})};function ir(a){return Array.from(a.h.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function jr(a){return Array.from(a.h.textTracks).find(function(b){return"Shaka Player TextTrack"==b.label})}function nr(a){return Array.from(a.h.textTracks).filter(function(b){return"metadata"==b.kind})}
p.Ae=function(a){a=!!a;this.Y!=a&&(this.Y=a,this.m==Qq?(this.s.setTextVisibility(a),this.g.streaming.alwaysStreamText||(a?this.l.B||(a=jg(this.i.textStreams,this.Kd,this.Ke,this.Je),0<a.length&&(Vm(this.l,a[0]),Sq(this),dr(this))):Rm(this.l))):this.h&&this.h.src&&this.h.textTracks&&this.s.setTextVisibility(a),cr(this))};
p.Sk=function(){if(this.F)var a=this.F.Ue();else{if(null==this.N)return new Date;if(this.N instanceof Date)return this.N;a=this.N}if(this.i&&!this.Ca()){var b=this.i.presentationTimeline;return new Date(1E3*((b.m||b.i)+a))}return this.h&&this.h.getStartDate?(b=this.h.getStartDate(),isNaN(b.getTime())?null:new Date(b.getTime()+1E3*a)):null};
p.kh=function(){if(this.i&&!this.Ca()){var a=this.i.presentationTimeline;return new Date(1E3*(a.m||a.i))}return this.h&&this.h.getStartDate?(a=this.h.getStartDate(),isNaN(a.getTime())?null:a):null};p.rf=function(){return this.T()?this.i?this.i.presentationTimeline.rf():null:null};p.Qb=function(){if(this.m==Qq)return this.I.Qb();var a={total:[],audio:[],video:[],text:[]};this.m==Tq&&(a.total=Ij(this.h.buffered));return a};
p.pf=function(){if(!this.h||!this.h.currentTime)return null;var a=this.kh().getTime()+1E3*this.h.currentTime;return Math.floor(Date.now()-a)};
p.getStats=function(){if(this.m!=Qq&&this.m!=Tq)return{width:NaN,height:NaN,currentCodecs:"",streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,manifestSizeBytes:NaN,bytesDownloaded:NaN,nonFatalErrorCount:NaN,manifestPeriodCount:NaN,manifestGapCount:NaN,
switchHistory:[],stateHistory:[]};Pq(this);var a=this.h,b=a.currentTime/a.duration;isNaN(b)||this.T()||eo(this.B,Math.round(100*b));this.F&&(this.B.P=this.F.pi(),this.B.R=this.F.ri());a.getVideoPlaybackQuality&&(b=a.getVideoPlaybackQuality(),bo(this.B,Number(b.droppedVideoFrames),Number(b.totalVideoFrames)),this.B.L=Number(b.corruptedVideoFrames));this.B.s=this.D?Yh(this.D):NaN;co(this.B,a.videoWidth||NaN,a.videoHeight||NaN);this.B.l="";this.T()&&null!=this.kh()&&(a=this.pf()||0,this.B.D=a/1E3);b=
this.qb().find(function(e){return e.active});a=this.rc().find(function(e){return e.active});if(b){if(b.bandwidth){var c=this.J?this.J.i:1,d=c*b.bandwidth;a&&a.bandwidth&&(d+=c*a.bandwidth);this.B.B=d}b.width&&b.height&&co(this.B,b.width||NaN,b.height||NaN);b=b.codecs;a&&(b+=","+(a.codecs||a.mimeType));b&&(this.B.l=b)}this.m!=Qq||this.Ca()||(this.i&&(this.B.H=this.i.periodCount,this.B.G=this.i.gapCount,this.i.presentationTimeline&&(this.B.J=this.i.presentationTimeline.h)),a=this.u.getBandwidthEstimate(),
this.B.u=a);this.m==Tq&&fo(this.B,NaN);return go(this.B)};
p.Ud=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,q,r,u,w,v,y,z,A;return Q(function(B){switch(B.g){case 1:if(h.m!=Qq&&h.m!=Tq)throw new V(1,7,7004);"subtitles"!=c&&"captions"!=c&&ab("Using a kind value different of `subtitles` or `captions` can cause unwanted issues.");if(d){B.A(2);break}return F(B,yr(h,a),3);case 3:d=B.h;case 2:k=[];h.C&&(k=h.C.getCuePoints());if(h.m!=Tq){B.A(4);break}l=Rb();g&&"WEBKIT"===l.Ga()&&(c="forced");return F(B,zr(h,a,b,c,d,f||"",k),5);case 5:m=B.h;if(m.track)return Kq(h),
B.return(fg(m.track));throw new V(1,2,2012);case 4:n=uc;q=h.xa();r=q.end-q.start;h.i&&(r=h.i.presentationTimeline.getDuration());if(Infinity==r)throw new V(1,4,4033);if(!k.length){B.A(6);break}return F(B,Ar(h,a,h.H,h.g.streaming.retryParameters),7);case 7:u=B.h,w=Br(h,u,d,k),v=new Blob([w],{type:"text/vtt"}),a=zk(v),d="text/vtt";case 6:y={id:h.Me++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Xl(0,r,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,
drmInfos:[],keyIds:new Set,language:b,originalLanguage:b,label:f||null,type:n.gb,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([bf(d||"",e||"")]),isAudioMuxedInVideo:!1,baseOriginalId:null};z=bf(y.mimeType,y.codecs);A=sf(z);if(!A)throw new V(2,2,2014,d);h.i.textStreams.push(y);Kq(h);return B.return(ag(y))}})};
p.Ye=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B;return Q(function(D){switch(D.g){case 1:if(c.m!=Qq&&c.m!=Tq)throw new V(1,7,7004);if(b){D.A(2);break}return F(D,yr(c,a),3);case 3:b=D.h;case 2:if("text/vtt"!=b)throw new V(1,2,2017,a);d=uc;e=c.xa();f=e.end-e.start;c.i&&(f=c.i.presentationTimeline.getDuration());if(Infinity==f)throw new V(1,4,4045);return F(D,Ar(c,a,c.H,c.g.streaming.retryParameters),4);case 4:g=D.h;h=qf(b);if(!h)throw new V(2,2,2014,b);k=h();l={periodStart:0,segmentStart:0,
segmentEnd:f,vttOffset:0};m=Kb(g);n=k.parseMedia(m,l,a,[]);q=[];r=t(n);u=r.next();for(w={};!u.done;w={ng:void 0,wd:void 0},u=r.next())w.wd=u.value,w.ng=null,v=function(G){return function(){null==G.ng&&(G.ng=lc([a],[G.wd.payload]));return G.ng||[]}}(w),y=new Aj(w.wd.startTime,w.wd.endTime,v,0,null,null,0,0,Infinity),w.wd.payload.includes("#xywh")&&(z=w.wd.payload.split("#xywh=")[1].split(","),4===z.length&&y.dg({height:parseInt(z[3],10),positionX:parseInt(z[0],10),positionY:parseInt(z[1],10),width:parseInt(z[2],
10)})),q.push(y);A=b;if(!q.length){D.A(5);break}return F(D,Bo(q[0].S()[0],c.H,c.g.manifest.retryParameters),6);case 6:A=D.h;case 5:return B={id:c.Me++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Vl(q),mimeType:A||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:d.qg,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,
audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([bf(A||"","")]),isAudioMuxedInVideo:!1,baseOriginalId:null},c.m==Tq?c.Re.push(B):c.i.imageStreams.push(B),Kq(c),D.return(bg(B))}})};
p.Xe=function(a,b,c){var d=this,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z;return Q(function(A){switch(A.g){case 1:if(d.m!=Qq&&d.m!=Tq)throw new V(1,7,7004);if(c){A.A(2);break}return F(A,yr(d,a),3);case 3:c=A.h;case 2:e=uc;f=d.xa();g=f.end-f.start;d.i&&(g=d.i.presentationTimeline.getDuration());if(Infinity==g)throw new V(1,4,4054);return F(A,Ar(d,a,d.H,d.g.streaming.retryParameters),4);case 4:h=A.h;k=qf(c);if(!k)throw new V(2,2,2014,c);l=k();m={periodStart:0,segmentStart:0,segmentEnd:g,vttOffset:0};n=Kb(h);q=
l.parseMedia(n,m,a,[]);r=[];u=t(q);w=u.next();for(v={};!w.done;v={jf:void 0},w=u.next())v.jf=w.value,y=new Aj(v.jf.startTime,v.jf.endTime,function(B){return function(){return[B.jf.payload]}}(v),0,null,null,0,0,Infinity),r.push(y);z={id:d.Me++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Vl(r),mimeType:"text/plain",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:b,originalLanguage:b,label:null,type:e.gb,primary:!1,trickModeVideo:null,
dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([bf("text/plain","")]),isAudioMuxedInVideo:!1,baseOriginalId:null};d.Ya.push(z);Kq(d);return A.return(ag(z))}})};
function yr(a,b){var c;return Q(function(d){switch(d.g){case 1:return ta(d,2),F(d,Bo(b,a.H,a.g.streaming.retryParameters),4);case 4:c=d.h;wa(d,3);break;case 2:xa(d);case 3:if(c)return d.return(c);throw new V(1,2,2011,b);}})}
function zr(a,b,c,d,e,f,g){var h,k,l,m;return Q(function(n){if(1==n.g)return"text/vtt"!=e||g.length?F(n,Ar(a,b,a.H,a.g.streaming.retryParameters),3):n.A(2);2!=n.g&&(h=n.h,k=Br(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=zk(l),e="text/vtt");m=document.createElement("track");var q=a.K,r=b;try{if(q.g.enabled){var u=op(q);u.ot=Cp;u.su=!0;var w=sp(u);var v=tp(r,w)}else v=r}catch(y){bb("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",y),v=r}m.src=v;m.label=f;m.kind=d;m.srclang=c;a.h.getAttribute("crossorigin")||
a.h.setAttribute("crossorigin","anonymous");a.h.appendChild(m);a.vg.push(m);return n.return(m)})}function Ar(a,b,c,d){var e,f,g;return Q(function(h){if(1==h.g){e=ch;f=Xg([b],d);f.method="GET";var k=a.K;try{k.g.enabled&&up(k,f,{ot:Cp,su:!0})}catch(l){bb("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return F(h,c.request(e,f).promise,2)}g=h.h;return h.return(g.data)})}
function Br(a,b,c,d){var e=qf(c);if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.h.duration,vttOffset:0},b=Kb(b),b=c.parseMedia(b,a,null,[]),cp(b,d);throw new V(2,2,2014,c);}p.jm=function(a,b){this.oa.width=a;this.oa.height=b};p.Oh=function(a){if(this.m==Qq){var b=this.l;a=void 0===a?.1:a;if(b.l.g)b=!1;else if(b.C)b=!1;else{for(var c=t(b.h.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.fe||d.Za||d.Db||(d.fe=!1,Qm(b,d,a));b=!0}}else b=!1;return b};
p.ih=function(){ab("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for.");return this.i};p.Ok=function(){return this.yc};
p.Gk=function(){var a={video:null,audio:null,text:null};if(this.m!=Qq)return a;var b=this.l.s,c=this.h.currentTime;b=t([b.video,b.audio,this.l.B]);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.segmentIndex){var e=d.segmentIndex.find(c);e=d.segmentIndex.get(e);e={codecs:e.codecs||d.codecs,mimeType:e.mimeType||d.mimeType,bandwidth:e.bandwidth||d.bandwidth};"video"==d.type?(e.width=d.width,e.height=d.height,a.video=e):"audio"==d.type?a.audio=e:d.type==sc&&(a.text=e)}return a};
function cq(a){var b=Qn();b.streaming.failureCallback=function(c){if(a.T()){var d=null;1001==c.code||1002==c.code?(d=1,a.g.streaming.lowLatencyMode&&(d=.1)):1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.Oh(d))}};b.textDisplayFactory=function(){var c=Rb();return a.Ne&&(document.fullscreenEnabled||"WEBKIT"!==c.Ga())?new To(a.h,a.Ne):"track"in document.createElement("track")?new Oo(a):new So};return b}p.Zh=function(a){this.Ne=a};
function Gq(a,b){for(var c=new Set,d=t(b.textStreams),e=d.next();!e.done;e=d.next())e=e.value,"application/cea-608"!=e.mimeType&&"application/cea-708"!=e.mimeType||c.add(e.originalId);d=t(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=t(e.closedCaptions.keys()),g=f.next();!g.done;g=f.next())if(g=g.value,!c.has(g)){var h=g.startsWith("CC")?"application/cea-608":"application/cea-708",k=new Yl,l=e.closedCaptions.get(g);h={id:a.Me++,originalId:g,groupId:null,
createSegmentIndex:function(){return Promise.resolve()},segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:l,originalLanguage:l,label:null,type:sc,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:e.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set([bf(h,"")]),isAudioMuxedInVideo:!1,baseOriginalId:null};
2025-06-19 04:02:44 +02:00
b.textStreams.push(h);c.add(g)}}
2025-06-27 11:02:59 +02:00
function br(a,b){var c,d,e,f,g;return Q(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n,q;return Q(function(r){if(1==r.g)return k?k.segmentIndex?r.A(2):F(r,k.createSegmentIndex(),2):r.return(null);n=(m=k.segmentIndex.ac(l))?m.next().value:null;if(!n)return r.return(null);q=n.startTime;return r.return(q)})},F(h,e(c,b),2);if(3!=h.g)return f=h.h,F(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)})}
function vq(a){var b=a.xf();if(a.B&&a.O&&a.F){if(0==a.g.streaming.rebufferingGoal){var c=a.J;c.j=!1;bm(c)}else c=a.J,c.j=b,bm(c);a.K&&(c=a.K,b||c.u||(c.u=!0),c.u&&b&&(c.C=!0),c.F=b);Pq(a);c=a.g.streaming.liveSync.dynamicTargetLatency.maxAttempts;if(a.g.streaming.liveSync.dynamicTargetLatency.enabled&&b&&a.Ve<c){c=a.g.streaming.liveSync.dynamicTargetLatency.maxLatency;var d=a.g.streaming.liveSync.targetLatencyTolerance,e=a.g.streaming.liveSync.dynamicTargetLatency.rebufferIncrement;a.R&&(a.R=Math.min(a.R+
++a.Ve*e,c-d))}}b=(new Map).set("buffering",b);a.dispatchEvent(lq("buffering",b))}function Rq(a,b){a.dc.Sa();a.dc.o(a.h,"timeupdate",function(){var c=a.h.currentTime,d=a.xa(),e=a.T(),f=e?a.g.streaming.safeSeekOffset:0;0<b?(!e||1<=b)&&Math.floor(c)>=Math.floor(d.end)&&a.ud():Math.floor(c)<=Math.floor(d.start+f)&&a.ud()})}
function Pq(a){if(a.B&&a.O){var b=a.B.g,c="playing";a.O.g==ti?c="buffering":a.isEnded()?c="ended":a.h.paused&&(c="paused");var d=c;if(null==b.g)b.g={timestamp:Date.now()/1E3,state:d,duration:0},b=!0;else{var e=Date.now()/1E3;b.g.duration=e-b.g.timestamp;b.g.state==d?b=!1:(b.h.push(b.g),b.g={timestamp:e,state:d,duration:0},b=!0)}b&&(c=(new Map).set("newstate",c),a.dispatchEvent(lq("statechanged",c)))}}
function fr(a){var b=a.h.playbackRate,c=a.T();if(a.g.streaming.vodDynamicPlaybackRate&&!c){var d=a.g.streaming.vodDynamicPlaybackRateLowBufferRate,e=a.Oi();e<=a.g.streaming.vodDynamicPlaybackRateBufferRatio?b!=d&&a.Sc(d,!1):1==e&&b!==a.J.bd()&&a.ud()}if(c&&(c=a.xa(),Number.isFinite(c.end)&&!(a.h.currentTime<c.start||a.h.paused))){d=a.g.streaming.liveSync.targetLatencyTolerance;e=a.g.streaming.liveSync.dynamicTargetLatency.enabled;var f=a.g.streaming.liveSync.dynamicTargetLatency.stabilityThreshold;
2025-06-19 04:02:44 +02:00
if(a.g.streaming.liveSync&&a.g.streaming.liveSync.enabled){var g=a.g.streaming.liveSync.targetLatency;var h=g+d;var k=Math.max(0,g-d);var l=a.g.streaming.liveSync.maxPlaybackRate;var m=a.g.streaming.liveSync.minPlaybackRate}else a.i&&a.i.serviceDescription&&(g=a.i.serviceDescription.targetLatency,null!=a.i.serviceDescription.targetLatency?h=a.i.serviceDescription.targetLatency+d:null!=a.i.serviceDescription.maxLatency&&(h=a.i.serviceDescription.maxLatency),null!=a.i.serviceDescription.targetLatency?
2025-06-27 11:02:59 +02:00
k=Math.max(0,a.i.serviceDescription.targetLatency-d):null!=a.i.serviceDescription.minLatency&&(k=a.i.serviceDescription.minLatency),l=a.i.serviceDescription.maxPlaybackRate||a.g.streaming.liveSync.maxPlaybackRate,m=a.i.serviceDescription.minPlaybackRate||a.g.streaming.liveSync.minPlaybackRate);a.R||"number"!==typeof g||(a.R=g);var n=a.g.streaming.liveSync.dynamicTargetLatency.maxAttempts;e&&a.Lb&&null!==a.R&&"number"===typeof g&&a.Ve<n&&Date.now()-a.Lb>1E3*f&&(f=a.g.streaming.liveSync.dynamicTargetLatency.minLatency,
a.R=Math.max(a.R-(g-f)/2,f+d),a.Lb=Date.now());e&&null!==a.R&&(h=a.R+d,k=a.R-d);g=c.end-a.h.currentTime;d=0;a.m==Tq&&(e=a.h.buffered,0<e.length&&(d=e.end(e.length-1),d=Math.max(l,d-c.end)));c=a.g.streaming.liveSync.panicMode;e=1E3*a.g.streaming.liveSync.panicThreshold;f=Date.now()-a.O.h;c&&!m&&(m=a.g.streaming.liveSync.minPlaybackRate);c&&m&&f<=e?b!=m&&a.Sc(m,!1):void 0!=h&&l&&g-d>h?(b!=l&&a.Sc(l,!1),a.Lb=null):void 0!=k&&m&&g-d<k?(b!=m&&a.Sc(m,!1),a.Lb=null):b!==a.J.bd()&&(a.ud(),a.Lb=Date.now())}}
function gr(a){if(a.h){var b=function(e,f){var g=void 0===g?Number.EPSILON:g;if(e===f)g=!0;else{var h=Math.abs(e-f);g=h<=g?!0:g!==Number.EPSILON?Math.abs(h-g)<=Number.EPSILON:!1}return(g||f>e)&&a.ug<e?(a.ug=e,!0):!1},c=a.xa();c=c.end-c.start;c=0<c?a.h.currentTime/c:0;if(!isNaN(c)){c*=100;if(b(0,c))var d=lq("started");else if(b(25,c))d=lq("firstquartile");else if(b(50,c))d=lq("midpoint");else if(b(75,c))d=lq("thirdquartile");else{if(b(100,c)||100<c)d=lq("complete");a.g&&Infinity!=a.g.playRangeEnd&&
a.isEnded()&&a.h.pause()}d&&a.dispatchEvent(d)}}}function Lq(a){try{zi(a.Le,a.i)}catch(c){return tq(a,c),!1}var b=ig(a.i.variants);b=a.L.create(b);a.u.setVariants(Array.from(b.values()));return!0}function iq(a,b,c,d,e){b=void 0===b?!0:b;c=void 0===c?0:c;d=void 0===d?!1:d;e=void 0===e?!0:e;var f;(f=Lq(a)?a.u.chooseVariant():null)&&Xq(a,f,e,b,c,d)}
function Xq(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a.l.s;if(b==g)d&&Um(a.l,b,d,e,!0);else{var h=a.B.h;h.h!=b&&(h.h=b,h.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));Um(a.l,b,d,e,f,c);d=null;g&&(d=$f(g));g=$f(b);g.active=!0;if(a.P&&(e=a.P,b=b.video)){b.dependencyStream&&(b=b.dependencyStream);f=0;h=-1;switch(b.mimeType){case "video/webm":f=1;break;case "video/mp4":f=2}switch(a.jh()){case "DASH":h=1;break;case "HLS":h=0}e.g&&(e.g.setLevelSwitching(b.id,
!0),e.g.setContainerFormat(f),e.j||e.g.setStreamingFormat(h))}c?(c=(new Map).set("oldTrack",d).set("newTrack",g),c=lq("adaptation",c),Cr(a,c)):Dr(a,d,g);Er(a,d,g)}}function vr(a,b){var c=Array.from(a.h.audioTracks).find(function(e){return e.enabled});b.enabled=!0;if(c){b.id!==c.id&&(c.enabled=!1);var d=rr(a);c=gg(c,d);b=gg(b,d);Dr(a,c,b);Er(a,c,b)}}function rr(a){return a.h&&a.h.videoTracks?Array.from(a.h.videoTracks).find(function(b){return b.selected}):null}
function Kq(a){var b=lq("trackschanged");Cr(a,b);Fr(a)}function Dr(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);b=lq("variantchanged",b);Cr(a,b)}function Er(a,b,c){var d=!1;b&&b.audioId==c.audioId&&b.audioGroupId==c.audioGroupId||(d=!0);d&&Fr(a)}function Fr(a){var b=lq("audiotrackschanged");Cr(a,b)}function Sq(a){var b=lq("textchanged");Cr(a,b)}function cr(a){var b=lq("texttrackvisibility");Cr(a,b)}
function er(a){a.g.abr.enabled||hq(a);var b=(new Map).set("newStatus",a.g.abr.enabled);Cr(a,lq("abrstatuschanged",b))}function dr(a){var b=a.rc().find(function(c){return c.active});b&&a.s&&a.s.setTextLanguage&&a.s.setTextLanguage(b.language)}function hq(a,b){b=void 0===b?!0:b;if(a.m==Qq){a.Oe.stop();for(var c=t(a.i.variants),d=c.next();!d.done;d=c.next())d.value.disabledUntilTime=0;b&&Lq(a)}}
p.disableStream=function(a,b){if(!this.g.abr.enabled||this.m===mq||!navigator.onLine||0==b||!this.i)return!1;if(this.i.variants.some(function(h){var k=h[a.type];return k&&k.id!==a.id&&!h.disabledUntilTime?"audio"==a.type?a.language===k.language:!0:!1})){for(var c=!1,d=!1,e=t(this.i.variants),f=e.next();!f.done;f=e.next()){f=f.value;var g=f[a.type];g&&(g.id===a.id?(f.disabledUntilTime=Date.now()/1E3+b,c=!0):g.trickModeVideo&&g.trickModeVideo.id==a.id&&(d=!0))}if(!c&&d)return!1;this.Oe.ya(1);b=this.Qb().video.reduce(function(h,
k){return h+k.end-k.start},0);iq(this,!1,b,!0,!1);return!0}return!1};
function tq(a,b){var c,d,e,f,g;return Q(function(h){switch(h.g){case 1:if(a.m==mq)return h.return();1===b.severity&&a.B.K++;c=!0;if(!(a.Z&&a.i&&a.l)||3016!=b.code&&3014!=b.code&&3015!=b.code&&3024!=b.code&&3018!=b.code){h.A(2);break}d=Rb();if("WEBKIT"===d.Ga()&&3016==b.code)return h.return();ta(h,3);return F(h,tn(a.l),5);case 5:e=h.h;c=!e;e&&(f=lq("mediasourcerecovered"),a.dispatchEvent(f));wa(h,2);break;case 3:xa(h),c=!0;case 2:if(!c)return h.return();2===b.severity&&hq(a,!1);g=lq("error",(new Map).set("detail",
b));a.dispatchEvent(g);g.defaultPrevented&&(b.handled=!0);I(h)}})}p.addFont=function(a,b){return Sj(a,b)};function Iq(a,b,c,d){d=void 0===d?a:d;a=(new Map).set("detail",{schemeIdUri:c.schemeIdUri,value:c.value,startTime:c.startTime,endTime:c.endTime,id:c.id,timescale:c.timescale,eventElement:c.eventElement,eventNode:c.eventNode});d.dispatchEvent(lq(b,a))}
function Jq(a,b,c,d){d=void 0===d?!1:d;b=(new Map).set("mediaQuality",{bandwidth:b.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate,height:b.height,mimeType:b.mimeType,channelsCount:b.channelsCount,pixelAspectRatio:b.pixelAspectRatio,width:b.width,label:b.label,roles:b.roles,language:b.language}).set("position",c);a.dispatchEvent(lq(d?"audiotrackchanged":"mediaqualitychanged",b))}
function sq(a,b){b=void 0===b?!0:b;if(!a.h.error)return b?new V(2,3,3016):null;var c=a.h.error.code;if(!b&&1==c)return null;if(b=a.h.error.msExtendedCode)0>b&&(b+=Math.pow(2,32)),b=b.toString(16);return new V(2,3,3016,c,b,a.h.error.message)}function Wq(a,b,c){0<b&&(a.T()||a.Ij(b));b=a.getDuration();c<b&&(a.T()||a.vb(c))}function Cr(a,b){Q(function(c){if(1==c.g)return F(c,Promise.resolve(),2);a.m!=mq&&a.dispatchEvent(b);I(c)})}
function xr(a){var b=new Set;a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(yc(c.language)):b.add("und");return b}
function wr(a){for(var b=new Map,c=new Map,d=0;d<a.length;d++){var e=a[d],f="und",g=[];e.language&&(f=yc(e.language));"variant"==e.type?g=e.audioRoles:g=e.roles;g&&g.length||(g=[""]);b.has(f)||b.set(f,new Set);g=t(g);for(var h=g.next();!h.done;h=g.next())h=h.value,b.get(f).add(h),e.label&&(c.has(f)||c.set(f,new Map),c.get(f).set(h,e.label))}var k=[];b.forEach(function(l,m){l=t(l);for(var n=l.next();!n.done;n=l.next()){n=n.value;var q=null;c.has(m)&&c.get(m).has(n)&&(q=c.get(m).get(n));k.push({language:m,
role:n,label:q})}});return k}p.Ca=function(){return this.h&&this.h.remote?"disconnected"!=this.h.remote.state:!1};p.isEnded=function(){return!this.h||this.h.ended?!0:this.Z&&!this.T()&&this.h.currentTime>=this.xa().end};S("shaka.Player",X);X.prototype.isEnded=X.prototype.isEnded;X.prototype.isRemotePlayback=X.prototype.Ca;X.prototype.addFont=X.prototype.addFont;X.prototype.setVideoContainer=X.prototype.Zh;X.prototype.getFetchedPlaybackInfo=X.prototype.Gk;X.prototype.getManifestParserFactory=X.prototype.Ok;
X.prototype.getManifest=X.prototype.ih;X.prototype.retryStreaming=X.prototype.Oh;X.prototype.setMaxHardwareResolution=X.prototype.jm;X.prototype.addChaptersTrack=X.prototype.Xe;X.prototype.addThumbnailsTrack=X.prototype.Ye;X.prototype.addTextTrackAsync=X.prototype.Ud;X.prototype.getStats=X.prototype.getStats;X.prototype.getBufferedInfo=X.prototype.Qb;X.prototype.getSegmentAvailabilityDuration=X.prototype.rf;X.prototype.getPresentationStartTimeAsDate=X.prototype.kh;
X.prototype.getPlayheadTimeAsDate=X.prototype.Sk;X.prototype.setTextTrackVisibility=X.prototype.Ae;X.prototype.getChaptersAsync=X.prototype.fh;X.prototype.getChapters=X.prototype.wk;X.prototype.getChaptersTracks=X.prototype.xk;X.prototype.isTextTrackVisible=X.prototype.gd;X.prototype.selectVariantsByLabel=X.prototype.dm;X.prototype.selectTextLanguage=X.prototype.Sh;X.prototype.selectAudioLanguage=X.prototype.yj;X.prototype.getTextLanguages=X.prototype.Zk;X.prototype.getAudioLanguages=X.prototype.qk;
X.prototype.getTextLanguagesAndRoles=X.prototype.$k;X.prototype.getAudioLanguagesAndRoles=X.prototype.rk;X.prototype.getVideoTracks=X.prototype.getVideoTracks;X.prototype.selectVideoTrack=X.prototype.Aj;X.prototype.getAudioTracks=X.prototype.getAudioTracks;X.prototype.selectAudioTrack=X.prototype.zj;X.prototype.selectVariantTrack=X.prototype.ye;X.prototype.selectTextTrack=X.prototype.$f;X.prototype.getThumbnails=X.prototype.Si;X.prototype.getAllThumbnails=X.prototype.pk;
X.prototype.getImageTracks=X.prototype.hh;X.prototype.getTextTracks=X.prototype.rc;X.prototype.getVariantTracks=X.prototype.qb;X.prototype.cancelTrickPlay=X.prototype.ud;X.prototype.trickPlay=X.prototype.Sc;X.prototype.useTrickPlayTrackIfAvailable=X.prototype.oi;X.prototype.getPlaybackRate=X.prototype.Xa;X.prototype.isBuffering=X.prototype.xf;X.prototype.getKeyStatuses=X.prototype.nf;X.prototype.getActiveSessionsMetadata=X.prototype.eh;X.prototype.getExpiration=X.prototype.be;
X.prototype.drmInfo=X.prototype.drmInfo;X.prototype.keySystem=X.prototype.keySystem;X.prototype.isFullyLoaded=X.prototype.vl;X.prototype.goToLive=X.prototype.ol;X.prototype.seekRange=X.prototype.xa;X.prototype.isVideoOnly=X.prototype.xh;X.prototype.isAudioOnly=X.prototype.Cd;X.prototype.isInProgress=X.prototype.fd;X.prototype.isLive=X.prototype.T;X.prototype.getQueueManager=X.prototype.lh;X.prototype.getAdManager=X.prototype.mf;X.prototype.getAssetUri=X.prototype.$c;
X.prototype.getNetworkingEngine=X.prototype.Ib;X.prototype.getMediaElement=X.prototype.Rk;X.prototype.getManifestType=X.prototype.jh;X.prototype.getLoadMode=X.prototype.Kk;X.prototype.resetConfiguration=X.prototype.tj;X.prototype.getBufferFullness=X.prototype.Oi;X.prototype.getNonDefaultConfiguration=X.prototype.Ri;X.prototype.getConfigurationForLowLatency=X.prototype.Ak;X.prototype.getConfiguration=X.prototype.getConfiguration;X.prototype.configurationForLowLatency=X.prototype.kk;
X.prototype.configure=X.prototype.configure;X.prototype.releaseAllMutexes=X.prototype.Vl;X.prototype.destroyAllPreloads=X.prototype.Og;X.prototype.preload=X.prototype.preload;X.prototype.detachAndSavePreload=X.prototype.Ki;X.prototype.unloadAndSavePreload=X.prototype.om;X.prototype.load=X.prototype.load;X.prototype.updateStartTime=X.prototype.sm;X.prototype.unload=X.prototype.lc;X.prototype.detach=X.prototype.detach;X.prototype.attachCanvas=X.prototype.xi;X.prototype.attach=X.prototype.$b;
X.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g,h;return Q(function(k){switch(k.g){case 1:b={};if(!a){k.A(2);break}return F(k,li(),3);case 3:b=k.h;case 2:return c=Ei(),d=Bk(),e=Rb(),F(k,e.nc(),4);case 4:return f=k.h,g={manifest:c,media:d,drm:b,hardwareResolution:f},h=oq,h.forEach(function(l,m){g[m]=l()}),k.return(g)}})};X.isBrowserSupported=pq;X.setQueueManagerFactory=function(a){gq=a};X.setAdManagerFactory=function(a){fq=a};X.registerSupportPlugin=nq;X.prototype.destroy=X.prototype.destroy;
var mq=0,bq=1,Qq=2,Tq=3;X.LoadMode={DESTROYED:mq,NOT_LOADED:bq,MEDIA_SOURCE:Qq,SRC_EQUALS:Tq};X.version="v4.15.4";var Gr=["4","15"];Vc=new function(a){this.g=a;this.i=Wc;this.h=Xc}(new Tc(Number(Gr[0]),Number(Gr[1])));var oq=new Map,fq=null,gq=null;function Hr(){this.g=[];this.i=this.m=this.l=this.j=this.h=0}function Ir(a){return a.g.length?a.g.reduce(function(b,c){return b+c},0)/a.g.length:0};function Jr(a,b,c){var d=this;this.g=a;this.h=b;this.m=c;this.i=!1;this.j=this.h.getVolume();this.l=new Oc;this.l.o(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.l.o(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}p=Jr.prototype;p.needsSkipUI=function(){return!1};p.isClientRendering=function(){return!0};p.hasCustomClick=function(){return!0};p.isUsingAnotherMediaElement=function(){return!0};p.getDuration=function(){return this.g.getDuration()};
2025-06-19 04:02:44 +02:00
p.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};p.getRemainingTime=function(){return this.h.getRemainingTime()};p.isPaused=function(){return this.i};p.isSkippable=function(){return 0<=this.g.getSkipTimeOffset()};p.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};p.canSkipNow=function(){return this.h.getAdSkippableState()};p.skip=function(){return this.h.skip()};p.pause=function(){return this.h.pause()};
p.play=function(){return this.h.resume()};p.getVolume=function(){return this.h.getVolume()};p.setVolume=function(a){this.m.volume=a;return this.h.setVolume(a)};p.isMuted=function(){return 0==this.h.getVolume()};p.isLinear=function(){return this.g.isLinear()};p.resize=function(a,b){this.h.resize(a,b)};p.setMuted=function(a){(this.m.muted=a)?(this.j=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.j)};p.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};
p.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition()};p.getTitle=function(){return this.g.getTitle()};p.getDescription=function(){return this.g.getDescription()};p.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()};p.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};p.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};p.getVastAdId=function(){return""};p.getAdId=function(){return this.g.getAdId()};
2025-06-27 11:02:59 +02:00
p.getCreativeAdId=function(){return this.g.getCreativeAdId()};p.getAdvertiserName=function(){return this.g.getAdvertiserName()};p.getMediaUrl=function(){return this.g.getMediaUrl()};p.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};p.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};p.release=function(){this.h=this.g=null};S("shaka.ads.ClientSideAd",Jr);Jr.prototype.release=Jr.prototype.release;Jr.prototype.getPodIndex=Jr.prototype.getPodIndex;
Jr.prototype.getTimeOffset=Jr.prototype.getTimeOffset;Jr.prototype.getMediaUrl=Jr.prototype.getMediaUrl;Jr.prototype.getAdvertiserName=Jr.prototype.getAdvertiserName;Jr.prototype.getCreativeAdId=Jr.prototype.getCreativeAdId;Jr.prototype.getAdId=Jr.prototype.getAdId;Jr.prototype.getVastAdId=Jr.prototype.getVastAdId;Jr.prototype.getVastMediaWidth=Jr.prototype.getVastMediaWidth;Jr.prototype.getVastMediaHeight=Jr.prototype.getVastMediaHeight;Jr.prototype.getVastMediaBitrate=Jr.prototype.getVastMediaBitrate;
Jr.prototype.getDescription=Jr.prototype.getDescription;Jr.prototype.getTitle=Jr.prototype.getTitle;Jr.prototype.getPositionInSequence=Jr.prototype.getPositionInSequence;Jr.prototype.getSequenceLength=Jr.prototype.getSequenceLength;Jr.prototype.setMuted=Jr.prototype.setMuted;Jr.prototype.resize=Jr.prototype.resize;Jr.prototype.isLinear=Jr.prototype.isLinear;Jr.prototype.isMuted=Jr.prototype.isMuted;Jr.prototype.setVolume=Jr.prototype.setVolume;Jr.prototype.getVolume=Jr.prototype.getVolume;
Jr.prototype.play=Jr.prototype.play;Jr.prototype.pause=Jr.prototype.pause;Jr.prototype.skip=Jr.prototype.skip;Jr.prototype.canSkipNow=Jr.prototype.canSkipNow;Jr.prototype.getTimeUntilSkippable=Jr.prototype.getTimeUntilSkippable;Jr.prototype.isSkippable=Jr.prototype.isSkippable;Jr.prototype.isPaused=Jr.prototype.isPaused;Jr.prototype.getRemainingTime=Jr.prototype.getRemainingTime;Jr.prototype.getMinSuggestedDuration=Jr.prototype.getMinSuggestedDuration;Jr.prototype.getDuration=Jr.prototype.getDuration;
Jr.prototype.isUsingAnotherMediaElement=Jr.prototype.isUsingAnotherMediaElement;Jr.prototype.hasCustomClick=Jr.prototype.hasCustomClick;Jr.prototype.isClientRendering=Jr.prototype.isClientRendering;Jr.prototype.needsSkipUI=Jr.prototype.needsSkipUI;function Kr(){}
function Lr(a,b){var c=[];a=t(Pd(a,"Ad"));for(var d=a.next();!d.done;d=a.next())if(d=Td(d.value,"InLine"))if(d=Td(d,"Creatives")){d=t(Pd(d,"Creative"));for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=Td(e,"Linear");f&&Mr(c,b,f);if(e=Td(e,"NonLinearAds")){e=Pd(e,"NonLinear");e=t(e);for(var g=e.next();!g.done;g=e.next())a:{f=c;var h=b,k=g.value,l=Td(k,"StaticResource");if(l)g=l.attributes.creativeType;else{l=Td(k,"HTMLResource");if(!l)break a;g="text/html"}if(l=Rd(l)){"text/html"===g&&(l="data:text/html;charset=UTF-8,"+
encodeURIComponent(l));var m=Wd(k,"width",be)||Wd(k,"expandedWidth",be),n=Wd(k,"height",be)||Wd(k,"expandedHeight",be);if(m||n){var q=null;(k=k.attributes.minSuggestedDuration)&&(q=Cd(k));k=0;null!=h&&(k=h);f.push({id:null,groupId:null,startTime:k,endTime:null,uri:l,mimeType:g,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:q,once:!0,pre:null==h,post:Infinity==h,timelineRange:!1,loop:!1,overlay:{viewport:{x:0,y:0},topLeft:{x:0,y:0},size:{x:m||0,y:n||0}},displayOnBackground:!1,
2025-06-19 04:02:44 +02:00
currentVideo:null,background:null})}}}}}}return c}
2025-06-27 11:02:59 +02:00
function Mr(a,b,c){var d=0;null!=b&&(d=b);var e=null;c.attributes.skipoffset&&(e=Cd(c.attributes.skipoffset),isNaN(e)&&(e=null));if(c=Td(c,"MediaFiles")){var f=Pd(c,"MediaFile");c=f;f=f.filter(function(h){return"streaming"==h.attributes.delivery});f.length&&(c=f);c=c.sort(function(h,k){return(parseInt(k.attributes.height,10)||0)-(parseInt(h.attributes.height,10)||0)});c=t(c);for(f=c.next();!f.done;f=c.next())if(f=f.value,!f.attributes.apiFramework){var g=Rd(f);if(g){a.push({id:null,groupId:null,startTime:d,
endTime:null,uri:g,mimeType:f.attributes.type||null,isSkippable:null!=e,skipOffset:e,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:null,once:!0,pre:null==b,post:Infinity==b,timelineRange:!1,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null});break}}}}S("shaka.ads.Utils",Kr);Kr.ADS_LOADED="ads-loaded";Kr.AD_STARTED="ad-started";Kr.AD_FIRST_QUARTILE="ad-first-quartile";Kr.AD_MIDPOINT="ad-midpoint";Kr.AD_THIRD_QUARTILE="ad-third-quartile";Kr.AD_COMPLETE="ad-complete";
Kr.AD_STOPPED="ad-stopped";Kr.AD_SKIPPED="ad-skipped";Kr.AD_VOLUME_CHANGED="ad-volume-changed";Kr.AD_MUTED="ad-muted";Kr.AD_PAUSED="ad-paused";Kr.AD_RESUMED="ad-resumed";Kr.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";Kr.CUEPOINTS_CHANGED="ad-cue-points-changed";Kr.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";Kr.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";Kr.AD_CLICKED="ad-clicked";Kr.AD_PROGRESS="ad-progress";Kr.AD_BUFFERING="ad-buffering";Kr.AD_IMPRESSION="ad-impression";
Kr.AD_DURATION_CHANGED="ad-duration-changed";Kr.AD_CLOSED="ad-closed";Kr.AD_LOADED="ad-loaded";Kr.ALL_ADS_COMPLETED="all-ads-completed";Kr.AD_LINEAR_CHANGED="ad-linear-changed";Kr.AD_METADATA="ad-metadata";Kr.AD_RECOVERABLE_ERROR="ad-recoverable-error";Kr.AD_ERROR="ad-error";Kr.AD_BREAK_READY="ad-break-ready";Kr.AD_INTERACTION="ad-interaction";Kr.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";Kr.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";Kr.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function Nr(a,b,c,d,e){var f=this;this.u=a;this.i=b;this.F=!1;this.B=this.s=null;this.G=NaN;this.l=e;this.j=null;this.h=new Oc;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.D=new google.ima.AdDisplayContainer(this.u,this.i);this.D.initialize();this.m=new google.ima.AdsLoader(this.D);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.15.4");this.g=null;this.C=d||new google.ima.AdsRenderingSettings;this.h.o(this.m,
google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(g){Or(f,g)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){Pr(f,g)});this.h.o(this.i,"ended",function(){f.m.contentComplete()});this.h.qa(this.i,"play",function(){f.F=!0})}Nr.prototype.configure=function(a){this.s=a};Nr.prototype.stop=function(){this.g&&this.g.stop();this.u&&Pj(this.u)};
Nr.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy();this.D.destroy()};function Pr(a,b){b.getError();b=(new Map).set("originalEvent",b);a.l(new U("ad-error",b));Qr(a,null);a.l(new U("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
function Or(a,b){a.l(new U("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.G)));if(a.s.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.C);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.o(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.o(a.i,"volumechange",function(){a.j&&(a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))})}else a.g=b.getAdsManager(a.i,a.C);a.l(new U("ima-ad-manager-loaded",(new Map).set("imaAdManager",
a.g)));var d=a.g.getCuePoints();if(d.length){b=[];d=t(d);for(var e=d.next();!e.done;e=d.next())b.push({start:e.value,end:null});a.l(new U("ad-cue-points-changed",(new Map).set("cuepoints",b)))}Rr(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight),a.h.o(a.i,"loadeddata",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight)}),"ResizeObserver"in window?(a.B=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight)}),a.B.observe(a.i)):a.h.o(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth,
a.i.offsetHeight)}),a.F||a.s.skipPlayDetection?a.g.start():a.h.qa(a.i,"play",function(){a.F=!0;a.g.start()})}catch(f){Qr(a,null)}}
function Rr(a){function b(c,d){c=(new Map).set("originalEvent",c);a.l(new U(d,c))}a.h.o(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){Pr(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){Sr(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.STARTED,function(c){Sr(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.o(a.g,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.o(a.g,google.ima.AdEvent.Type.THIRD_QUARTILE,
function(c){b(c,"ad-third-quartile")});a.h.o(a.g,google.ima.AdEvent.Type.COMPLETE,function(c){b(c,"ad-complete")});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(c){Qr(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){Qr(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.SKIPPED,function(c){b(c,"ad-skipped")});a.h.o(a.g,google.ima.AdEvent.Type.VOLUME_CHANGED,function(c){b(c,"ad-volume-changed")});a.h.o(a.g,google.ima.AdEvent.Type.VOLUME_MUTED,function(c){b(c,"ad-muted")});
2025-06-19 04:02:44 +02:00
a.h.o(a.g,google.ima.AdEvent.Type.PAUSED,function(c){a.j&&(a.j.i=!0,b(c,"ad-paused"))});a.h.o(a.g,google.ima.AdEvent.Type.RESUMED,function(c){a.j&&(a.j.i=!1,b(c,"ad-resumed"))});a.h.o(a.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(c){a.j&&b(c,"ad-skip-state-changed")});a.h.o(a.g,google.ima.AdEvent.Type.CLICK,function(c){b(c,"ad-clicked")});a.h.o(a.g,google.ima.AdEvent.Type.AD_PROGRESS,function(c){b(c,"ad-progress")});a.h.o(a.g,google.ima.AdEvent.Type.AD_BUFFERING,function(c){b(c,"ad-buffering")});
a.h.o(a.g,google.ima.AdEvent.Type.IMPRESSION,function(c){b(c,"ad-impression")});a.h.o(a.g,google.ima.AdEvent.Type.DURATION_CHANGE,function(c){b(c,"ad-duration-changed")});a.h.o(a.g,google.ima.AdEvent.Type.USER_CLOSE,function(c){b(c,"ad-closed")});a.h.o(a.g,google.ima.AdEvent.Type.LOADED,function(c){b(c,"ad-loaded")});a.h.o(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){b(c,"all-ads-completed")});a.h.o(a.g,google.ima.AdEvent.Type.LINEAR_CHANGED,function(c){b(c,"ad-linear-changed")});a.h.o(a.g,
google.ima.AdEvent.Type.AD_METADATA,function(c){b(c,"ad-metadata")});a.h.o(a.g,google.ima.AdEvent.Type.LOG,function(c){b(c,"ad-recoverable-error")});a.h.o(a.g,google.ima.AdEvent.Type.AD_BREAK_READY,function(c){b(c,"ad-break-ready")});a.h.o(a.g,google.ima.AdEvent.Type.INTERACTION,function(c){b(c,"ad-interaction")})}
2025-06-27 11:02:59 +02:00
function Sr(a,b){var c=b.getAd();c?(a.j=new Jr(c,a.g,a.i),b.type!=google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED||a.s.supportsMultipleMediaElements||a.l(new U("ad-content-pause-requested")),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.l(new U("ad-started",b)),a.j.isLinear()&&(a.u.setAttribute("ad-active","true"),a.s.customPlayheadTracker||a.i.pause(),a.i.muted?(b=a.j,b.j=a.i.volume,b.h.setVolume(0)):a.j.setVolume(a.i.volume))):ab("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")}
function Qr(a,b){b&&b.type==google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED&&!a.s.supportsMultipleMediaElements&&a.l(new U("ad-content-resume-requested"));a.l(new U("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.u.removeAttribute("ad-active"),a.s.customPlayheadTracker||a.i.ended||a.i.play())};function Tr(a,b,c,d,e,f){this.g=a;this.i=b;this.j=(this.h=b.isSkippable)?b.skipOffset||0:b.skipOffset;this.l=b.skipFor;this.B=c;this.s=d;this.m=e;this.u=f;this.C=b.overlay}p=Tr.prototype;p.needsSkipUI=function(){return!0};p.isClientRendering=function(){return!0};p.hasCustomClick=function(){return!1};p.isUsingAnotherMediaElement=function(){return this.u};p.getDuration=function(){var a=this.g.duration;return isNaN(a)?-1:a};p.getMinSuggestedDuration=function(){return this.getDuration()};
2025-06-19 04:02:44 +02:00
p.getRemainingTime=function(){var a=this.g.duration;return isNaN(a)?-1:a-this.g.currentTime};p.isPaused=function(){return this.g.paused};p.isSkippable=function(){return this.h&&null!=this.l?this.getDuration()-this.getRemainingTime()<this.j+this.l:this.h};p.getTimeUntilSkippable=function(){if(this.isSkippable()){var a=this.getRemainingTime()+this.j-this.getDuration();return Math.max(a,0)}return Math.max(this.getRemainingTime(),0)};p.canSkipNow=function(){return this.h&&0==this.getTimeUntilSkippable()};
p.skip=function(){this.canSkipNow()&&this.B()};p.pause=function(){return this.g.pause()};p.play=function(){return this.g.play()};p.getVolume=function(){return this.g.volume};p.setVolume=function(a){this.g.volume=a};p.isMuted=function(){return this.g.muted};p.isLinear=function(){return null==this.C};p.resize=function(){};p.setMuted=function(a){this.g.muted=a};p.getSequenceLength=function(){return this.s};p.getPositionInSequence=function(){return this.m};p.getTitle=function(){return""};
p.getDescription=function(){return""};p.getVastMediaBitrate=function(){return 0};p.getVastMediaHeight=function(){return 0};p.getVastMediaWidth=function(){return 0};p.getVastAdId=function(){return""};p.getAdId=function(){return this.i.id||""};p.getCreativeAdId=function(){return""};p.getAdvertiserName=function(){return""};p.getMediaUrl=function(){return this.i.uri};p.getTimeOffset=function(){return 0};p.getPodIndex=function(){return 0};p.release=function(){this.g=null};
2025-06-27 11:02:59 +02:00
S("shaka.ads.InterstitialAd",Tr);Tr.prototype.release=Tr.prototype.release;Tr.prototype.getPodIndex=Tr.prototype.getPodIndex;Tr.prototype.getTimeOffset=Tr.prototype.getTimeOffset;Tr.prototype.getMediaUrl=Tr.prototype.getMediaUrl;Tr.prototype.getAdvertiserName=Tr.prototype.getAdvertiserName;Tr.prototype.getCreativeAdId=Tr.prototype.getCreativeAdId;Tr.prototype.getAdId=Tr.prototype.getAdId;Tr.prototype.getVastAdId=Tr.prototype.getVastAdId;Tr.prototype.getVastMediaWidth=Tr.prototype.getVastMediaWidth;
Tr.prototype.getVastMediaHeight=Tr.prototype.getVastMediaHeight;Tr.prototype.getVastMediaBitrate=Tr.prototype.getVastMediaBitrate;Tr.prototype.getDescription=Tr.prototype.getDescription;Tr.prototype.getTitle=Tr.prototype.getTitle;Tr.prototype.getPositionInSequence=Tr.prototype.getPositionInSequence;Tr.prototype.getSequenceLength=Tr.prototype.getSequenceLength;Tr.prototype.setMuted=Tr.prototype.setMuted;Tr.prototype.resize=Tr.prototype.resize;Tr.prototype.isLinear=Tr.prototype.isLinear;
Tr.prototype.isMuted=Tr.prototype.isMuted;Tr.prototype.setVolume=Tr.prototype.setVolume;Tr.prototype.getVolume=Tr.prototype.getVolume;Tr.prototype.play=Tr.prototype.play;Tr.prototype.pause=Tr.prototype.pause;Tr.prototype.skip=Tr.prototype.skip;Tr.prototype.canSkipNow=Tr.prototype.canSkipNow;Tr.prototype.getTimeUntilSkippable=Tr.prototype.getTimeUntilSkippable;Tr.prototype.isSkippable=Tr.prototype.isSkippable;Tr.prototype.isPaused=Tr.prototype.isPaused;Tr.prototype.getRemainingTime=Tr.prototype.getRemainingTime;
Tr.prototype.getMinSuggestedDuration=Tr.prototype.getMinSuggestedDuration;Tr.prototype.getDuration=Tr.prototype.getDuration;Tr.prototype.isUsingAnotherMediaElement=Tr.prototype.isUsingAnotherMediaElement;Tr.prototype.hasCustomClick=Tr.prototype.hasCustomClick;Tr.prototype.isClientRendering=Tr.prototype.isClientRendering;Tr.prototype.needsSkipUI=Tr.prototype.needsSkipUI;function Ur(a,b,c){this.g=a;this.j=b;this.h=c;this.i=null==a.overlay}p=Ur.prototype;p.needsSkipUI=function(){return!0};p.isClientRendering=function(){return!0};p.hasCustomClick=function(){return!1};p.isUsingAnotherMediaElement=function(){return!1};p.getDuration=function(){return-1};p.getMinSuggestedDuration=function(){return this.getDuration()};p.getRemainingTime=function(){return-1};p.isPaused=function(){return!1};p.isSkippable=function(){return!1};p.getTimeUntilSkippable=function(){return 0};
2025-06-19 04:02:44 +02:00
p.canSkipNow=function(){return!1};p.skip=function(){};p.pause=function(){};p.play=function(){};p.getVolume=function(){return 1};p.setVolume=function(){};p.isMuted=function(){return!1};p.isLinear=function(){return this.i};p.resize=function(){};p.setMuted=function(){};p.getSequenceLength=function(){return this.j};p.getPositionInSequence=function(){return this.h};p.getTitle=function(){return""};p.getDescription=function(){return""};p.getVastMediaBitrate=function(){return 0};p.getVastMediaHeight=function(){return 0};
2025-06-27 11:02:59 +02:00
p.getVastMediaWidth=function(){return 0};p.getVastAdId=function(){return""};p.getAdId=function(){return this.g.id||""};p.getCreativeAdId=function(){return""};p.getAdvertiserName=function(){return""};p.getMediaUrl=function(){return this.g.uri};p.getTimeOffset=function(){return 0};p.getPodIndex=function(){return 0};p.release=function(){};S("shaka.ads.InterstitialStaticAd",Ur);Ur.prototype.release=Ur.prototype.release;Ur.prototype.getPodIndex=Ur.prototype.getPodIndex;Ur.prototype.getTimeOffset=Ur.prototype.getTimeOffset;
Ur.prototype.getMediaUrl=Ur.prototype.getMediaUrl;Ur.prototype.getAdvertiserName=Ur.prototype.getAdvertiserName;Ur.prototype.getCreativeAdId=Ur.prototype.getCreativeAdId;Ur.prototype.getAdId=Ur.prototype.getAdId;Ur.prototype.getVastAdId=Ur.prototype.getVastAdId;Ur.prototype.getVastMediaWidth=Ur.prototype.getVastMediaWidth;Ur.prototype.getVastMediaHeight=Ur.prototype.getVastMediaHeight;Ur.prototype.getVastMediaBitrate=Ur.prototype.getVastMediaBitrate;Ur.prototype.getDescription=Ur.prototype.getDescription;
Ur.prototype.getTitle=Ur.prototype.getTitle;Ur.prototype.getPositionInSequence=Ur.prototype.getPositionInSequence;Ur.prototype.getSequenceLength=Ur.prototype.getSequenceLength;Ur.prototype.setMuted=Ur.prototype.setMuted;Ur.prototype.resize=Ur.prototype.resize;Ur.prototype.isLinear=Ur.prototype.isLinear;Ur.prototype.isMuted=Ur.prototype.isMuted;Ur.prototype.setVolume=Ur.prototype.setVolume;Ur.prototype.getVolume=Ur.prototype.getVolume;Ur.prototype.play=Ur.prototype.play;Ur.prototype.pause=Ur.prototype.pause;
Ur.prototype.skip=Ur.prototype.skip;Ur.prototype.canSkipNow=Ur.prototype.canSkipNow;Ur.prototype.getTimeUntilSkippable=Ur.prototype.getTimeUntilSkippable;Ur.prototype.isSkippable=Ur.prototype.isSkippable;Ur.prototype.isPaused=Ur.prototype.isPaused;Ur.prototype.getRemainingTime=Ur.prototype.getRemainingTime;Ur.prototype.getMinSuggestedDuration=Ur.prototype.getMinSuggestedDuration;Ur.prototype.getDuration=Ur.prototype.getDuration;Ur.prototype.isUsingAnotherMediaElement=Ur.prototype.isUsingAnotherMediaElement;
Ur.prototype.hasCustomClick=Ur.prototype.hasCustomClick;Ur.prototype.isClientRendering=Ur.prototype.isClientRendering;Ur.prototype.needsSkipUI=Ur.prototype.needsSkipUI;function Vr(a,b,c,d){var e=this;this.L=null;this.C=a;this.D=b;this.g=c;this.G=null;this.B=!0;this.h=this.g;this.i=d;this.R=new Set;this.H=new Set;this.F=new Map;this.K=new Map;this.j=new X;Wr(this);this.I=new Oc;this.l=new Oc;this.J=!1;this.Z=this.s=this.u=this.m=null;this.$=!1;this.O=-1;this.Y=function(){if(!e.J&&e.m&&!e.D.Ca()){e.m=e.g.currentTime;var f=Xr(e);f&&Yr(e,f,1,1,Date.now())}};this.U=function(){if(!(e.J||e.m||e.D.Ca())){e.m=e.g.currentTime;var f=Xr(e,!0);f&&Yr(e,f,1,1,Date.now())}};this.ba=
function(){if(!e.J&&e.m&&!e.D.Ca()){var f=e.g.currentTime;e.u&&!e.u.pre&&!e.u.post&&f<(e.u.endTime||e.u.startTime)&&(e.u=null)}};this.P=new zf(this.Y);this.N=new zf(function(){var f,g,h,k,l,m,n,q,r,u,w;return Q(function(v){switch(v.g){case 1:if(!e.H.size||null==e.m){v.A(0);break}f=e.D.m;if(f==mq||f==bq)return v.return();g=!1;h=Array.from(e.H);k=e.D.xa();l=t(h);m=l.next();case 3:if(m.done){v.A(5);break}n=m.value;if(n==e.u){v.A(4);break}q=n.endTime||n.startTime;if(!(1<=k.start-q)){r=n.startTime-e.m;
0<r&&10>=r&&(!e.F.has(n)&&Zr(n)&&e.F.set(n,e.j.preload(n.uri,null,n.mimeType||void 0)),$r(e,n));v.A(4);break}if(!e.F.has(n)){v.A(7);break}return F(v,e.F.get(n),8);case 8:(u=v.h)&&u.destroy(),e.F.delete(n);case 7:as(e,n),w=JSON.stringify(n),e.R.has(w)&&e.R.delete(w),e.H.delete(n),bs(e),n.overlay||(g=!0);case 4:m=l.next();v.A(3);break;case 5:g&&cs(e),I(v)}})});this.configure(this.D.getConfiguration().ads)}p=Vr.prototype;p.configure=function(a){this.L=a;ds(this)};
function es(a){if(!a.$&&a.H.size){a.I.o(a.g,"playing",a.U);a.I.o(a.g,"timeupdate",a.U);a.I.o(a.g,"seeked",a.ba);a.I.o(a.g,"ended",a.Y);if("requestVideoFrameCallback"in a.g&&!fs()){var b=a.g,c=function(){-1!=a.O&&(a.Y(),-1!=a.O&&(a.O=b.requestVideoFrameCallback(c)))};a.O=b.requestVideoFrameCallback(c)}else a.P.ya(.025);a.N&&a.N.ya(1);a.$=!0}}
function bs(a){a.$&&!a.H.size&&(a.I.Da(a.g,"playing",a.U),a.I.Da(a.g,"timeupdate",a.U),a.I.Da(a.g,"seeked",a.ba),a.I.Da(a.g,"ended",a.Y),-1!=a.O&&(a.g.cancelVideoFrameCallback(a.O),a.O=-1),a.P&&a.P.stop(),a.N&&a.N.stop(),a.$=!1)}
function ds(a){if(a.C&&a.L&&!a.J){var b=a.L.supportsMultipleMediaElements,c=a.g;c.webkitSupportsFullscreen&&c.webkitDisplayingFullscreen&&(b=!1);a.B==b&&(a.B=!b,a.B?(a.h=a.g,a.G&&(a.G.parentElement&&a.C.removeChild(a.G),a.G=null)):(a.G||(b=document.createElement(a.g.tagName),b.autoplay=!0,b.style.position="absolute",b.style.top="0",b.style.left="0",b.style.width="100%",b.style.height="100%",b.style.display="none",b.setAttribute("playsinline",""),a.G=b),a.h=a.G))}else a.B=!0}
p.stop=function(){this.l&&this.l.Sa();this.R.clear();this.H.clear();this.j.Og();if(this.F.size){var a=Array.from(this.F.values());a=t(a);for(var b=a.next();!b.done;b=a.next())(b=b.value)&&b.then(function(c){c&&c.destroy()})}this.F.clear();if(this.K.size)for(a=Array.from(this.K.keys()),a=t(a),b=a.next();!b.done;b=a.next())as(this,b.value);this.K.clear();this.j.detach();this.J=!1;this.u=this.m=null;this.B=!0;this.h=this.g;this.G=null;gs(this);bs(this);this.C&&Pj(this.C);this.s&&(this.s.stop(),this.s=
null)};p.release=function(){this.stop();this.I&&this.I.release();this.l&&this.l.release();this.P&&(this.P.stop(),this.P=null);this.N&&(this.N.stop(),this.N=null);this.j.destroy()};p.Sb=function(){return this.j};function hs(a,b){var c;Q(function(d){if(1==d.g)return Wr(a),F(d,is(a,b),2);c=d.h;c.length?js(a,c):ab("Unsupported HLS interstitial",b);I(d)})}
function ks(a,b){var c=Td(b.eventNode,"OverlayEvent"),d=c.attributes.uri,e=c.attributes.mimeType,f="true"==c.attributes.loop,g=Wd(c,"z",be);if(d&&0!=g){var h=null,k=Td(c,"Background");if(k){var l=k.attributes.uri;l?h="center / contain no-repeat url('"+l+"')":h=Rd(k)}k=1920;l=1080;var m=Td(c,"Viewport");if(m){k=Wd(m,"x",be);if(null==k)return;l=Wd(m,"y",be);if(null==l)return}var n={viewport:{x:k,y:l},topLeft:{x:0,y:0},size:{x:k,y:l}},q=Td(c,"Overlay");if(m&&q){var r=Td(q,"TopLeft"),u=Td(q,"Size");if(r&&
u){q=Wd(r,"x",be);if(null==q)return;r=Wd(r,"y",be);if(null==r)return;var w=Wd(u,"x",be);if(null==w)return;u=Wd(u,"y",be);if(null==u)return;n.topLeft.x=q;n.topLeft.y=r;n.size.x=w;n.size.y=u}}q=null;c=Td(c,"Squeeze");if(m&&c&&(u=Td(c,"TopLeft"),c=Td(c,"Size"),u&&c)){m=Wd(u,"x",be);if(null==m)return;q=Wd(u,"y",be);if(null==q)return;u=Wd(c,"x",be);if(null==u)return;c=Wd(c,"y",be);if(null==c)return;q={viewport:{x:k,y:l},topLeft:{x:m,y:q},size:{x:u,y:c}}}js(a,[{id:b.id,groupId:null,startTime:b.startTime,
2025-06-19 04:02:44 +02:00
endTime:b.endTime,uri:d,mimeType:e,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!0,resumeOffset:null,playoutLimit:null,once:!1,pre:!1,post:!1,timelineRange:!0,loop:f,overlay:n,displayOnBackground:-1==g,currentVideo:q,background:h}])}}
2025-06-27 11:02:59 +02:00
p.addAdUrlInterstitial=function(a){var b=this,c,d,e,f,g,h,k,l,m;return Q(function(n){switch(n.g){case 1:return c={type:12},F(n,ls(b,a,c),2);case 2:d=n.h;e=Hd(d,"VAST,vmap:VMAP");if(!e)throw new V(2,10,10007);f=[];if("VAST"==e.tagName){f=Lr(e,b.m);n.A(3);break}if("vmap:VMAP"!=e.tagName){n.A(3);break}for(var q=[],r=t(Pd(e,"vmap:AdBreak")),u=r.next();!u.done;u=r.next()){var w=u.value,v=w.attributes.timeOffset;v&&(u=null,"start"==v?u=0:"end"==v?u=Infinity:u=Cd(v),(w=Td(w,"vmap:AdSource"))&&(w=Td(w,"vmap:AdTagURI"))&&
(w=Qd(w))&&q.push({time:u,uri:w}))}g=t(q);h=g.next();case 5:if(h.done){n.A(3);break}k=h.value;return F(n,ls(b,k.uri,c),8);case 8:l=n.h;m=Hd(l,"VAST");if(!m)throw new V(2,10,10007);f.push.apply(f,x(Lr(m,k.time)));h=g.next();n.A(5);break;case 3:js(b,f),I(n)}})};
function js(a,b){var c,d,e,f,g,h,k,l;Q(function(m){switch(m.g){case 1:c=!1,d=t(b),e=d.next();case 2:if(e.done){m.A(4);break}f=e.value;if(!f.uri){ab("Missing URL in interstitial",f);m.A(3);break}if(f.mimeType){m.A(5);break}ta(m,6);g=a.j.Ib();return F(m,Bo(f.uri,g,a.D.getConfiguration().streaming.retryParameters),8);case 8:f.mimeType=m.h;wa(m,5);break;case 6:xa(m);case 5:h=f.id||JSON.stringify(f);if(a.R.has(h)){m.A(3);break}f.loop&&!f.overlay&&ab("Loop is only supported in overlay interstitials",f);
f.overlay||(c=!0);a.R.add(h);a.H.add(f);k=!1;f.pre&&null==a.m?k=!0:0!=f.startTime||f.canJump?null!=a.m&&(l=f.startTime-a.m,0<l&&10>=l&&(k=!0)):k=!0;k&&(!a.F.has(f)&&Zr(f)&&a.F.set(f,a.j.preload(f.uri,null,f.mimeType||void 0)),$r(a,f));case 3:e=d.next();m.A(2);break;case 4:c&&cs(a),es(a),I(m)}})}
function Xr(a,b,c){b=void 0===b?!1:b;c=void 0===c?null:c;var d=0,e=null;if(a.H.size&&null!=a.m){var f=a.g.ended,g=Array.from(a.H).sort(function(n,q){return q.startTime-n.startTime}),h=g;h=b?g.filter(function(n){return n.pre}):f?g.filter(function(n){return n.post}):g.filter(function(n){return!n.pre&&!n.post});g=t(h);for(h=g.next();!h.done;h=g.next()){h=h.value;var k=!1;if(b)k=h.pre;else if(f)k=h.post;else if(!h.pre&&!h.post){var l=a.m-Math.round(1E3*h.startTime)/1E3,m=1;a.L.allowStartInMiddleOfInterstitial&&
2025-06-19 04:02:44 +02:00
h.endTime&&Infinity!=h.endTime&&(m=h.endTime-h.startTime);0<l&&(l<=m||!h.canJump)&&(k=null==c&&a.u&&!a.u.pre&&!a.u.post&&a.u.startTime>=h.startTime?!1:!0)}k&&(!a.u||h.startTime>=a.u.startTime)&&(d==(c||0)?e=h:e&&!h.canJump&&.001<Math.round(1E3*h.startTime)/1E3-Math.round(1E3*e.startTime)/1E3&&(e=h,d=0),d++)}}return e}
2025-06-27 11:02:59 +02:00
function Yr(a,b,c,d,e,f){f=void 0===f?0:f;a.u=b;ds(a);a.B||!a.C||a.h.parentElement||a.C.appendChild(a.h);1==d&&1==c&&(c=Array.from(a.H).filter(function(g){return b.pre?g.pre==b.pre:b.post?g.post==b.post:.001>Math.abs(g.startTime-b.startTime)}).length);b.once&&(f++,a.H.delete(b),bs(a),b.overlay||cs(a));b.mimeType&&(b.mimeType.startsWith("image/")||"text/html"===b.mimeType)?b.overlay?ms(a,b,c,d,f):ab("Unsupported interstitial",b):a.B&&b.overlay?ab("Unsupported interstitial",b):ns(a,b,c,d,e,f)}
function ms(a,b,c,d,e){function f(){a.s&&(a.s.stop(),a.s=null);a.C.removeChild(k);gs(a,b);a.i(new U("ad-stopped"));a.l.Sa();var q=Xr(a,b.pre,d-e);q?Yr(a,q,c,++d,Date.now(),e):a.J=!1}a.J=!0;var g=b.overlay,h="text/html"==b.mimeType?"iframe":"img",k=document.createElement(h);k.style.objectFit="contain";k.style.position="absolute";k.style.border="none";os(a,b);a.i(new U("ad-started",(new Map).set("ad",new Ur(b,c,d))));"iframe"==h?k.src=b.uri:(k.src=b.uri,k.onerror=function(q){a.i(new U("ad-error",(new Map).set("originalEvent",
q)));f()});var l=g.viewport,m=g.topLeft;g=g.size;0==l.x&&0==l.y?(k.width=b.overlay.size.x,k.height=b.overlay.size.y,k.style.bottom="10%",k.style.left="0",k.style.right="0",k.style.width="100%",b.overlay.size.y||"iframe"!=h||(k.style.height="auto")):(k.style.height=g.y/l.y*100+"%",k.style.left=m.x/l.x*100+"%",k.style.top=m.y/l.y*100+"%",k.style.width=g.x/l.x*100+"%");a.C.appendChild(k);var n=Date.now();a.s&&a.s.stop();a.s=new zf(function(){b.playoutLimit&&(Date.now()-n)/1E3>b.playoutLimit?(a.i(new U("ad-complete")),
2025-06-19 04:02:44 +02:00
f()):b.endTime&&a.g.currentTime>b.endTime?(a.i(new U("ad-complete")),f()):a.g.currentTime<b.startTime&&(a.i(new U("ad-skipped")),f())});b.playoutLimit&&!b.endTime?a.s.X(b.playoutLimit):b.endTime&&a.s.ya(.025);a.l.o(a.g,"seeked",function(){var q=a.g.currentTime;if(q<b.startTime||b.endTime&&q>b.endTime)a.s&&a.s.stop(),a.i(new U("ad-skipped")),f()})}
2025-06-27 11:02:59 +02:00
function ns(a,b,c,d,e,f){var g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H;Q(function(K){switch(K.g){case 1:g=Date.now();a.J=!0;if(!a.B||1!=d){K.A(2);break}a.i(new U("ad-content-pause-requested",(new Map).set("saveLivePosition",!0)));h=new Ig;k=function(J){return Q(function(L){if(1==L.g)return"detach"!=J.state?L.A(0):fs()?F(L,new Promise(function(N){return(new zf(N)).X(.1)}),3):L.A(3);h.resolve();a.l.Da(a.D,"onstatechange",k);I(L)})};a.l.o(a.D,"onstatechange",k);return F(K,h,2);case 2:return os(a,b),a.B||
(a.h.style.display="",b.overlay?(a.h.loop=b.loop,l=b.overlay.viewport,m=b.overlay.topLeft,n=b.overlay.size,a.h.style.height=n.y/l.y*100+"%",a.h.style.left=m.x/l.x*100+"%",a.h.style.top=m.y/l.y*100+"%",a.h.style.width=n.x/l.x*100+"%"):(a.g.pause(),null!=b.resumeOffset&&0!=b.resumeOffset&&(a.g.currentTime+=b.resumeOffset),a.h.loop=!1,a.h.style.height="100%",a.h.style.left="0",a.h.style.top="0",a.h.style.width="100%")),q=!1,r=function(){if(!a.B&&!b.overlay&&null==b.resumeOffset)if(b.timelineRange&&b.endTime&&
Infinity!=b.endTime)a.g.currentTime!=b.endTime&&(a.g.currentTime=b.endTime);else{var J=Date.now();a.g.currentTime+=(J-e)/1E3;e=J}},u=function(J){var L,N;return Q(function(O){if(1==O.g){r();L=Xr(a,b.pre,d-f);if(J&&b.groupId)for(;L&&L.groupId==b.groupId;)d++,L=Xr(a,b.pre,d-f);a.s&&(!b.groupId||L&&L.groupId!=b.groupId)&&(a.s.stop(),a.s=null);gs(a,b);if(L&&!L.overlay)return O.A(2);b.post&&(a.m=null,a.u=null);return a.B?F(O,a.j.detach(),4):F(O,a.j.lc(),4)}2!=O.g&&(a.B&&(N=b.resumeOffset,null==N&&(N=b.timelineRange&&
b.endTime&&Infinity!=b.endTime?b.endTime-(a.m||0):(Date.now()-e)/1E3),a.i(new U("ad-content-resume-requested",(new Map).set("offset",N)))),a.i(new U("ad-stopped")),a.l.Sa(),a.J=!1,a.B?cs(a):(a.h.style.display="none",r(),a.g.ended||a.g.play()));ds(a);L&&(a.i(new U("ad-stopped")),a.l.Sa(),Yr(a,L,c,++d,e,f));I(O)})},w=function(J){return Q(function(L){if(q)return L.return();q=!0;a.i(new U("ad-error",(new Map).set("originalEvent",J)));return F(L,u(!1),0)})},v=function(){return Q(function(J){if(1==J.g){if(q)return J.return();
q=!0;return F(J,u(!1),2)}a.i(new U("ad-complete"));I(J)})},a.Z=function(){return Q(function(J){if(q)return J.return();q=!0;a.i(new U("ad-skipped"));return F(J,u(!0),0)})},y=new Tr(a.h,b,a.Z,c,d,!a.B),a.B||(y.setMuted(a.g.muted),y.setVolume(a.g.volume)),a.i(new U("ad-started",(new Map).set("ad",y))),(z=y.canSkipNow())&&a.i(new U("ad-skip-state-changed")),a.l.qa(a.j,"error",w),a.l.o(a.h,"timeupdate",function(){if(a.h.duration){var J=y.canSkipNow();z!=J&&0<y.getRemainingTime()&&0<y.getDuration()&&a.i(new U("ad-skip-state-changed"));
2025-06-19 04:02:44 +02:00
z=J}}),a.l.qa(a.j,"firstquartile",function(){r();a.i(new U("ad-first-quartile"))}),a.l.qa(a.j,"midpoint",function(){r();a.i(new U("ad-midpoint"))}),a.l.qa(a.j,"thirdquartile",function(){r();a.i(new U("ad-third-quartile"))}),a.l.qa(a.j,"complete",v),a.l.o(a.h,"play",function(){a.i(new U("ad-resumed"))}),a.l.o(a.h,"pause",function(){var J=a.j.getConfiguration();a.h.currentTime>=J.playRangeEnd?v():a.i(new U("ad-paused"))}),a.l.o(a.h,"volumechange",function(){a.h.muted?a.i(new U("ad-muted")):a.i(new U("ad-volume-changed"))}),
2025-06-27 11:02:59 +02:00
ta(K,4),Wr(a),b.startTime&&b.endTime&&Infinity!=b.endTime&&b.startTime!=b.endTime&&(A=b.endTime-b.startTime,0<A&&a.j.configure("playRangeEnd",A)),b.playoutLimit&&!a.s&&(a.s=(new zf(function(){a.Z()})).X(b.playoutLimit),a.j.configure("playRangeEnd",b.playoutLimit)),F(K,a.j.$b(a.h),6);case 6:return B=null,a.L.allowStartInMiddleOfInterstitial&&null!=a.m&&(D=a.m-b.startTime,.25<Math.abs(D)&&(B=D)),a.F.has(b)?F(K,a.F.get(b),10):F(K,a.j.load(b.uri,B,b.mimeType||void 0),8);case 10:return G=K.h,a.F.delete(b),
G?F(K,a.j.load(G),8):F(K,a.j.load(b.uri,B,b.mimeType||void 0),8);case 8:a.h.play();C=(Date.now()-g)/1E3;a.i(new U("ads-loaded",(new Map).set("loadTime",C)));a.B&&a.g.play();b.overlay&&(E=function(){var J=a.g.currentTime-b.startTime;.1<Math.abs(J-a.h.currentTime)&&(a.h.currentTime=J)},a.l.qa(a.h,"playing",E),a.l.o(a.g,"seeking",E),a.l.o(a.g,"seeked",function(){var J=a.g.currentTime;(J<b.startTime||b.endTime&&J>b.endTime)&&a.Z()}));wa(K,0);break;case 4:H=xa(K);if(!a.J)return K.return();w(H);I(K)}})}
function os(a,b){b.displayOnBackground&&(a.g.style.zIndex="1");if(null!=b.currentVideo){var c=b.currentVideo;a.g.style.transformOrigin="top left";var d=!0,e=[],f=c.topLeft.x/c.viewport.x*100;0<f&&100>=f&&(e.push("translateX("+f+"%)"),d=!1);f=c.topLeft.y/c.viewport.y*100;0<f&&100>=f&&(e.push("translateY("+f+"%)"),d=!1);f=c.size.x/c.viewport.x;1>f&&e.push("scaleX("+f+")");c=c.size.y/c.viewport.y;1>f&&e.push("scaleY("+c+")");e.length&&(a.g.style.transform=e.join(" "));d&&(a.g.style.transition="transform 250ms")}a.C&&
(a.C.style.pointerEvents="none",b.background&&(a.C.style.background=b.background));a.G&&(a.G.style.background=b.overlay?"":"rgb(0, 0, 0)")}function gs(a,b){if(!b||b.displayOnBackground)a.g.style.zIndex="";b&&null==b.currentVideo||(a.g.style.transformOrigin="",a.g.style.transition="",a.g.style.transform="");a.C&&(a.C.style.pointerEvents="",!b||b.background)&&(a.C.style.background="");a.G&&(a.G.style.background="")}
function is(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L,N,O,M,P,R,T,ca,Y,Ma,Na,Ea,va,Ja,Pa,za;return Q(function(ja){switch(ja.g){case 1:c=[];if(!b)return ja.return(c);d=b.values.find(function(Aa){return"X-ASSET-URI"==Aa.key});e=b.values.find(function(Aa){return"X-ASSET-LIST"==Aa.key});if(!d&&!e)return ja.return(c);f=null;if(g=b.values.find(function(Aa){return"ID"==Aa.key}))f=g.data;h=null==f?Math.floor(10*b.startTime)/10:b.startTime;(k=b.endTime)&&Infinity!=b.endTime&&"number"==
typeof b.endTime&&(k=null==f?Math.floor(10*b.endTime)/10:b.endTime);l=b.values.find(function(Aa){return"X-RESTRICT"==Aa.key});n=m=!0;l&&l.data&&(q=l.data,m=!q.includes("SKIP"),n=!q.includes("JUMP"));r=m?0:null;if(u=b.values.find(function(Aa){return"X-ENABLE-SKIP-AFTER"==Aa.key}))w=u.data,r=parseFloat(w),isNaN(r)&&(r=m?0:null);v=null;if(y=b.values.find(function(Aa){return"X-ENABLE-SKIP-FOR"==Aa.key}))z=y.data,v=parseFloat(z),isNaN(r)&&(v=null);A=null;if(B=b.values.find(function(Aa){return"X-RESUME-OFFSET"==
Aa.key}))D=B.data,A=parseFloat(D),isNaN(A)&&(A=null);G=null;if(C=b.values.find(function(Aa){return"X-PLAYOUT-LIMIT"==Aa.key}))E=C.data,G=parseFloat(E),isNaN(G)&&(G=null);J=K=H=!1;if(L=b.values.find(function(Aa){return"CUE"==Aa.key}))N=L.data,H=N.includes("ONCE"),K=N.includes("PRE"),J=N.includes("POST");O=!1;(M=b.values.find(function(Aa){return"X-TIMELINE-OCCUPIES"==Aa.key}))?(P=M.data,O=P.includes("RANGE")):!B&&a.D.T()&&(O=!K&&!J);if(d){R=d.data;if(!R)return ja.return(c);c.push({id:f,groupId:null,
startTime:h,endTime:k,uri:R,mimeType:null,isSkippable:m,skipOffset:r,skipFor:v,canJump:n,resumeOffset:A,playoutLimit:G,once:H,pre:K,post:J,timelineRange:O,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null});ja.A(2);break}if(!e){ja.A(2);break}T=e.data;if(!T)return ja.return(c);ta(ja,4);ca={type:11};return F(ja,ls(a,T,ca),6);case 6:Y=ja.h;Ma=Wb(Y);Na=JSON.parse(Ma);if(Ea=Na["SKIP-CONTROL"])va=Ea["ENABLE-SKIP-AFTER"],"number"==typeof va&&(r=parseFloat(va),isNaN(va)&&(r=m?
0:null)),Ja=Ea["ENABLE-SKIP-FOR"],"number"==typeof Ja&&(v=parseFloat(Ja),isNaN(Ja)&&(v=null));for(Pa=0;Pa<Na.ASSETS.length;Pa++)za=Na.ASSETS[Pa],za.URI&&c.push({id:f+"_shaka_asset_"+Pa,groupId:f,startTime:h,endTime:k,uri:za.URI,mimeType:null,isSkippable:m,skipOffset:r,skipFor:v,canJump:n,resumeOffset:A,playoutLimit:G,once:H,pre:K,post:J,timelineRange:O,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null});wa(ja,2);break;case 4:xa(ja);case 2:return ja.return(c)}})}
function cs(a){for(var b=[],c=t(a.H),d=c.next(),e={};!d.done;e={Cc:void 0},d=c.next())d=d.value,d.overlay||(e.Cc={start:d.startTime,end:null},d.pre?(e.Cc.start=0,e.Cc.end=null):d.post?(e.Cc.start=-1,e.Cc.end=null):d.timelineRange&&(e.Cc.end=d.endTime),b.find(function(f){return function(g){return f.Cc.start==g.start&&f.Cc.end==g.end}}(e))||b.push(e.Cc));a.i(new U("ad-cue-points-changed",(new Map).set("cuepoints",b)))}
function Wr(a){a.j.configure(a.D.Ri());a.j.configure("ads.disableHLSInterstitial",!0);a.j.configure("ads.disableDASHInterstitial",!0);a.j.configure("playRangeEnd",Infinity);Wg(a.D.Ib(),a.j.Ib())}function ls(a,b,c){var d,e,f;return Q(function(g){if(1==g.g)return d=Xg([b],Gg()),e=a.D.Ib().request(7,d,c),F(g,e.promise,2);f=g.h;return g.return(f.data)})}function Zr(a){return(a=a.mimeType)?!a.startsWith("image/")&&"text/html"!==a:!0}
function fs(){var a=Rb().Ja();return"TV"==a||"CONSOLE"==a||"CAST"==a?!0:!1}function $r(a,b){if(!(a.K.has(b)||a.L&&!a.L.allowPreloadOnDomElements)){var c=function(f){var g=document.createElement("link");g.rel="preload";g.href=f;g.as="image";document.head.appendChild(g);return g},d=[];if(b.background){var e=b.background.match(/url\(('|")?([^'"()]+)('|")\)?/);e&&d.push(c(e[2]))}b.mimeType.startsWith("image/")&&d.push(c(b.uri));a.K.set(b,d)}}
function as(a,b){if(a.K.has(b)){var c=a.K.get(b);c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.parentNode.removeChild(d);a.K.delete(b)}};function ps(a,b,c,d,e){this.h=a;this.j=Cd(this.h.skipOffset);this.g=e;this.i=b;this.l=c;this.s=d;this.m=!1}p=ps.prototype;p.needsSkipUI=function(){return!0};p.isClientRendering=function(){return!1};p.hasCustomClick=function(){return!1};p.isUsingAnotherMediaElement=function(){return!1};p.getDuration=function(){return this.h.durationInSeconds};p.getMinSuggestedDuration=function(){return this.getDuration()};p.getRemainingTime=function(){return this.h.startTimeInSeconds+this.h.durationInSeconds-this.g.currentTime};
2025-06-19 04:02:44 +02:00
p.isPaused=function(){return this.g.paused};p.isSkippable=function(){return"number"==typeof this.j?!0:!1};p.getTimeUntilSkippable=function(){if("number"!=typeof this.j)return this.getRemainingTime();var a=this.getRemainingTime()+this.j-this.getDuration();return Math.max(a,0)};p.canSkipNow=function(){return 0==this.getTimeUntilSkippable()};p.skip=function(){this.m=!0;this.g.currentTime+=this.getRemainingTime()};p.pause=function(){return this.g.pause()};p.play=function(){return this.g.play()};
p.getVolume=function(){return this.g.volume};p.setVolume=function(a){this.g.volume=a};p.isMuted=function(){return this.g.muted};p.isLinear=function(){return this.s};p.resize=function(){};p.setMuted=function(a){this.g.muted=a};p.getSequenceLength=function(){return this.l?this.l:1};p.getPositionInSequence=function(){return this.i?this.i:1};p.getTitle=function(){return this.h.adTitle};p.getDescription=function(){return""};p.getVastMediaBitrate=function(){return 0};p.getVastMediaHeight=function(){return 0};
2025-06-27 11:02:59 +02:00
p.getVastMediaWidth=function(){return 0};p.getVastAdId=function(){return this.h.vastAdId||""};p.getAdId=function(){return this.h.adId};p.getCreativeAdId=function(){return this.h.creativeId};p.getAdvertiserName=function(){return""};p.getMediaUrl=function(){return null};p.getTimeOffset=function(){return 0};p.getPodIndex=function(){return 0};p.release=function(){this.l=this.i=this.g=this.h=null};S("shaka.ads.MediaTailorAd",ps);ps.prototype.release=ps.prototype.release;ps.prototype.getPodIndex=ps.prototype.getPodIndex;
ps.prototype.getTimeOffset=ps.prototype.getTimeOffset;ps.prototype.getMediaUrl=ps.prototype.getMediaUrl;ps.prototype.getAdvertiserName=ps.prototype.getAdvertiserName;ps.prototype.getCreativeAdId=ps.prototype.getCreativeAdId;ps.prototype.getAdId=ps.prototype.getAdId;ps.prototype.getVastAdId=ps.prototype.getVastAdId;ps.prototype.getVastMediaWidth=ps.prototype.getVastMediaWidth;ps.prototype.getVastMediaHeight=ps.prototype.getVastMediaHeight;ps.prototype.getVastMediaBitrate=ps.prototype.getVastMediaBitrate;
ps.prototype.getDescription=ps.prototype.getDescription;ps.prototype.getTitle=ps.prototype.getTitle;ps.prototype.getPositionInSequence=ps.prototype.getPositionInSequence;ps.prototype.getSequenceLength=ps.prototype.getSequenceLength;ps.prototype.setMuted=ps.prototype.setMuted;ps.prototype.resize=ps.prototype.resize;ps.prototype.isLinear=ps.prototype.isLinear;ps.prototype.isMuted=ps.prototype.isMuted;ps.prototype.setVolume=ps.prototype.setVolume;ps.prototype.getVolume=ps.prototype.getVolume;
ps.prototype.play=ps.prototype.play;ps.prototype.pause=ps.prototype.pause;ps.prototype.skip=ps.prototype.skip;ps.prototype.canSkipNow=ps.prototype.canSkipNow;ps.prototype.getTimeUntilSkippable=ps.prototype.getTimeUntilSkippable;ps.prototype.isSkippable=ps.prototype.isSkippable;ps.prototype.isPaused=ps.prototype.isPaused;ps.prototype.getRemainingTime=ps.prototype.getRemainingTime;ps.prototype.getMinSuggestedDuration=ps.prototype.getMinSuggestedDuration;ps.prototype.getDuration=ps.prototype.getDuration;
ps.prototype.isUsingAnotherMediaElement=ps.prototype.isUsingAnotherMediaElement;ps.prototype.hasCustomClick=ps.prototype.hasCustomClick;ps.prototype.isClientRendering=ps.prototype.isClientRendering;ps.prototype.needsSkipUI=ps.prototype.needsSkipUI;function qs(a,b,c,d){this.C=a;this.J=b;this.h=c;this.l=null;this.O=NaN;this.i=d;this.I=!1;this.B=null;this.j=[];this.L=[];this.K=this.D=this.g=null;this.F=new Map;this.m=[];this.u=[];this.G="";this.N=!0;this.H="";this.s=new Oc}qs.prototype.stop=function(){for(var a=t(this.m),b=a.next();!b.done;b=a.next())b=b.value,this.s.Da(b.target,b.type,b.listener);rs(this);this.m=[];this.u=[];this.G="";this.N=!0;this.H="";this.B=null;this.j=[];this.L=[];this.F.clear()};
qs.prototype.release=function(){this.stop();this.s&&this.s.release()};qs.prototype.onManifestUpdated=function(a){this.I=a;""!=this.G&&(ss(this,this.G,this.N),this.N=!1)};qs.prototype.getCuePoints=function(){for(var a=[],b=t(this.j),c=b.next();!c.done;c=b.next()){c=t(c.value.ads);for(var d=c.next();!d.done;d=c.next())d=d.value,a.push({start:d.startTimeInSeconds,end:d.startTimeInSeconds+d.durationInSeconds})}return a};
function ts(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,u;Q(function(w){if(1==w.g)return d={type:7},e=Xg([b],Gg()),e.method="POST",c&&(f=JSON.stringify(c),e.body=$b(f)),g=a.J.request(7,e,d),ta(w,2),F(w,g.promise,4);if(2!=w.g){h=w.h;k=Wb(h.data);l=JSON.parse(k);if(l.manifestUrl&&l.trackingUrl)m=new qb(b),n=new qb(l.trackingUrl),a.G=m.resolve(n).toString(),q=Date.now()/1E3,r=q-a.O,a.i(new U("ads-loaded",(new Map).set("loadTime",r))),u=new qb(l.manifestUrl),a.l.resolve(m.resolve(u).toString()),a.l=null;else throw Error("Insufficient data from MediaTailor.");
return wa(w,0)}xa(w);if(!a.H.length)return a.l.reject("MediaTailor request returned an error and there was no backup asset uri provided."),a.l=null,w.return();a.l.resolve(a.H);a.l=null;I(w)})}
function ss(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z;Q(function(A){if(1==A.g)return d={type:8},e=Xg([b],Gg()),f=a.J.request(7,e,d),ta(A,2),F(A,f.promise,4);if(2!=A.g){g=A.h;h=[];k=Wb(g.data);l=JSON.parse(k);if(0<l.avails.length){if(JSON.stringify(a.j)!=JSON.stringify(l.avails)){a.j=l.avails;m=t(a.j);for(n=m.next();!n.done;n=m.next())for(q=n.value,r=t(q.nonLinearAdsList),u=r.next();!u.done;u=r.next())for(w=u.value,v=t(w.nonLinearAdList),y=v.next();!y.done;y=v.next())z=y.value,us(a,z);h=a.getCuePoints();
a.i(new U("ad-cue-points-changed",(new Map).set("cuepoints",h)))}}else a.j.length&&a.i(new U("ad-cue-points-changed",(new Map).set("cuepoints",h))),rs(a),a.j=[];c&&(a.I||0<h.length)&&vs(a);return wa(A,0)}xa(A);I(A)})}
function us(a,b){var c,d,e,f,g,h,k,l,m;Q(function(n){if(1==n.g){if(!b.staticResource)return n.return();c=ws(b);if(d=a.F.get(c))return n.return();e={type:9};f=Xg([b.staticResource],Gg());g=a.J.request(7,f,e);ta(n,2);a.F.set(c,[]);return F(n,g.promise,4)}if(2!=n.g)return h=n.h,k=Wb(h.data),l=JSON.parse(k),m=l.apps,a.F.set(c,m),wa(n,0);xa(n);a.F.delete(c);I(n)})}
function ws(a){return[a.adId,a.adParameters,a.adSystem,a.adTitle,a.creativeAdId,a.creativeId,a.creativeSequence,a.height,a.width,a.staticResource].join("")}function vs(a){xs(a);a.I||(ys(a),a.s.o(a.h,"seeked",function(){ys(a)}),a.s.o(a.h,"ended",function(){rs(a)}));a.s.o(a.h,"timeupdate",function(){xs(a)})}
function ys(a){var b=a.h.currentTime;if(0!=b&&null==a.B){for(var c,d,e=t(a.j),f=e.next();!f.done;f=e.next()){f=f.value;for(var g=t(f.ads),h=g.next();!h.done;h=g.next())if(h=h.value,!d)h.startTimeInSeconds<b&&(d=h,c=f);else if(h.startTimeInSeconds<b&&h.startTimeInSeconds>d.startTimeInSeconds+d.durationInSeconds){d=h;c=f;break}}c&&d&&!a.L.includes(d.adId)&&(a.B=b,a.h.currentTime=c.startTimeInSeconds)}}
function xs(a){if(a.h.duration&&(a.g||a.j.length)){var b=a.h.currentTime,c=!1;if(a.g){c=!0;var d=a.D,e=d.startTimeInSeconds+.5*d.durationInSeconds,f=d.startTimeInSeconds+.75*d.durationInSeconds;b>=d.startTimeInSeconds+.25*d.durationInSeconds&&!a.u.includes("firstQuartile")?(a.u.push("firstQuartile"),zs(a,"firstQuartile")):b>=e&&!a.u.includes("midpoint")?(a.u.push("midpoint"),zs(a,"midpoint")):b>=f&&!a.u.includes("thirdQuartile")&&(a.u.push("thirdQuartile"),zs(a,"thirdQuartile"));d=a.g.getRemainingTime();
e=a.g.getDuration();a.g.canSkipNow()&&0<d&&0<e&&zs(a,"skipStateChanged");0<e&&(0>=d||d>e)&&rs(a)}if(!a.g||!a.g.isLinear()){a:for(d=t(a.j),e=d.next();!e.done;e=d.next()){e=e.value;if(a.g&&a.g.isLinear())break;for(f=0;f<e.ads.length;f++){var g=e.ads[f],h=g.startTimeInSeconds+g.durationInSeconds;if(g.startTimeInSeconds<=b&&h>b){if(a.L.includes(g.adId)){if(a.h.ended)continue;a.h.currentTime=h;break a}rs(a);a.K=e;a.g=new ps(g,f+1,e.ads.length,!0,a.h);a.D=g;0===f&&zs(a,"breakStart");As(a);break}}}if(!a.g)for(d=
t(a.j),e=d.next();!e.done;e=d.next()){e=e.value;if(a.g)break;for(f=0;f<e.nonLinearAdsList.length;f++)if(g=e.nonLinearAdsList[f],g.nonLinearAdList.length){h=e.startTimeInSeconds;var k=a.F.get(ws(g.nonLinearAdList[0]));if(h<=b&&k&&k.length){rs(a);h=a;k=t(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.data.source.length){var m=document.createElement("img");m.src=l.data.source[0].url;m.style.top=(l.placeholder.top||0)+"%";m.style.height=100-(l.placeholder.top||0)+"%";m.style.left=(l.placeholder.left||
0)+"%";m.style.maxWidth=100-(l.placeholder.left||0)+"%";m.style.objectFit="contain";m.style.position="absolute";h.C.appendChild(m)}a.K=e;a.g=new ps(g,f+1,e.ads.length,!1,a.h);a.D=g;0===f&&zs(a,"breakStart");As(a);break}}}c&&!a.g&&(b=a.h.currentTime,a.B&&a.B>b&&(a.h.currentTime=a.B),a.B=null)}}}
function rs(a){if(a.g){for(;a.C.lastChild;)a.C.removeChild(a.C.firstChild);a.I||a.L.push(a.D.adId);var b=a.g.m;(void 0===b?0:b)?zs(a,"skip"):zs(a,"complete");b=t(a.m);for(var c=b.next();!c.done;c=b.next())c=c.value,a.s.Da(c.target,c.type,c.listener);a.m=[];a.u=[];b=a.g.getPositionInSequence();c=a.g.getSequenceLength();b===c&&zs(a,"breakEnd");a.g=null;a.D=null;a.K=null}}
function As(a){var b=!1;a.h.paused?b=!0:(zs(a,"impression"),zs(a,"start"));a.m.push({target:a.h,type:"volumechange",listener:function(){a.h.muted&&zs(a,"mute")}});a.m.push({target:a.h,type:"volumechange",listener:function(){a.h.muted||zs(a,"unmute")}});a.m.push({target:a.h,type:"play",listener:function(){b?(zs(a,"impression"),zs(a,"start"),b=!1):zs(a,"resume")}});a.m.push({target:a.h,type:"pause",listener:function(){zs(a,"pause")}});for(var c=t(a.m),d=c.next();!d.done;d=c.next())d=d.value,a.s.o(d.target,
2025-06-19 04:02:44 +02:00
d.type,d.listener)}
2025-06-27 11:02:59 +02:00
function zs(a,b){var c=a.D.trackingEvents.find(function(f){return f.eventType==b});c||(c=a.K.adBreakTrackingEvents.find(function(f){return f.eventType==b}));if(c){var d={type:10};c=t(c.beaconUrls);for(var e=c.next();!e.done;e=c.next())(e=e.value)&&""!=e&&(e=Xg([e],Gg()),e.method="POST",a.J.request(7,e,d))}switch(b){case "impression":a.i(new U("ad-impression"));break;case "start":a.i(new U("ad-started",(new Map).set("ad",a.g)));break;case "mute":a.i(new U("ad-muted"));break;case "unmute":a.i(new U("ad-volume-changed"));break;
2025-06-19 04:02:44 +02:00
case "resume":a.i(new U("ad-resumed"));break;case "pause":a.i(new U("ad-paused"));break;case "firstQuartile":a.i(new U("ad-first-quartile"));break;case "midpoint":a.i(new U("ad-midpoint"));break;case "thirdQuartile":a.i(new U("ad-third-quartile"));break;case "complete":a.i(new U("ad-complete"));a.i(new U("ad-stopped"));break;case "skip":a.i(new U("ad-skipped"));a.i(new U("ad-stopped"));break;case "breakStart":a.C.setAttribute("ad-active","true");break;case "breakEnd":a.C.removeAttribute("ad-active");
2025-06-27 11:02:59 +02:00
break;case "skipStateChanged":a.i(new U("ad-skip-state-changed"))}};function Bs(a,b){this.g=a;this.i=null;this.h=b}p=Bs.prototype;p.needsSkipUI=function(){return!0};p.isClientRendering=function(){return!1};p.hasCustomClick=function(){return!0};p.isUsingAnotherMediaElement=function(){return!1};p.getDuration=function(){return this.i?this.i.duration:-1};p.getMinSuggestedDuration=function(){return this.getDuration()};p.getRemainingTime=function(){return this.i?this.i.duration-this.i.currentTime:-1};p.isPaused=function(){return this.h.paused};p.isSkippable=function(){return this.g.isSkippable()};
2025-06-19 04:02:44 +02:00
p.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};p.canSkipNow=function(){return 0==this.getTimeUntilSkippable()};p.skip=function(){this.h.currentTime+=this.getRemainingTime()};p.pause=function(){return this.h.pause()};p.play=function(){return this.h.play()};p.getVolume=function(){return this.h.volume};p.setVolume=function(a){this.h.volume=a};p.isMuted=function(){return this.h.muted};p.isLinear=function(){return!0};p.resize=function(){};
p.setMuted=function(a){this.h.muted=a};p.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};p.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition()};p.getTitle=function(){return this.g.getTitle()};p.getDescription=function(){return this.g.getDescription()};p.getVastMediaBitrate=function(){return 0};p.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};p.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};
2025-06-27 11:02:59 +02:00
p.getVastAdId=function(){return""};p.getAdId=function(){return this.g.getAdId()};p.getCreativeAdId=function(){return this.g.getCreativeAdId()};p.getAdvertiserName=function(){return this.g.getAdvertiserName()};p.getMediaUrl=function(){return null};p.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};p.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};p.release=function(){this.h=this.i=this.g=null};S("shaka.ads.ServerSideAd",Bs);
Bs.prototype.release=Bs.prototype.release;Bs.prototype.getPodIndex=Bs.prototype.getPodIndex;Bs.prototype.getTimeOffset=Bs.prototype.getTimeOffset;Bs.prototype.getMediaUrl=Bs.prototype.getMediaUrl;Bs.prototype.getAdvertiserName=Bs.prototype.getAdvertiserName;Bs.prototype.getCreativeAdId=Bs.prototype.getCreativeAdId;Bs.prototype.getAdId=Bs.prototype.getAdId;Bs.prototype.getVastAdId=Bs.prototype.getVastAdId;Bs.prototype.getVastMediaWidth=Bs.prototype.getVastMediaWidth;
Bs.prototype.getVastMediaHeight=Bs.prototype.getVastMediaHeight;Bs.prototype.getVastMediaBitrate=Bs.prototype.getVastMediaBitrate;Bs.prototype.getDescription=Bs.prototype.getDescription;Bs.prototype.getTitle=Bs.prototype.getTitle;Bs.prototype.getPositionInSequence=Bs.prototype.getPositionInSequence;Bs.prototype.getSequenceLength=Bs.prototype.getSequenceLength;Bs.prototype.setMuted=Bs.prototype.setMuted;Bs.prototype.resize=Bs.prototype.resize;Bs.prototype.isLinear=Bs.prototype.isLinear;
Bs.prototype.isMuted=Bs.prototype.isMuted;Bs.prototype.setVolume=Bs.prototype.setVolume;Bs.prototype.getVolume=Bs.prototype.getVolume;Bs.prototype.play=Bs.prototype.play;Bs.prototype.pause=Bs.prototype.pause;Bs.prototype.skip=Bs.prototype.skip;Bs.prototype.canSkipNow=Bs.prototype.canSkipNow;Bs.prototype.getTimeUntilSkippable=Bs.prototype.getTimeUntilSkippable;Bs.prototype.isSkippable=Bs.prototype.isSkippable;Bs.prototype.isPaused=Bs.prototype.isPaused;Bs.prototype.getRemainingTime=Bs.prototype.getRemainingTime;
Bs.prototype.getMinSuggestedDuration=Bs.prototype.getMinSuggestedDuration;Bs.prototype.getDuration=Bs.prototype.getDuration;Bs.prototype.isUsingAnotherMediaElement=Bs.prototype.isUsingAnotherMediaElement;Bs.prototype.hasCustomClick=Bs.prototype.hasCustomClick;Bs.prototype.isClientRendering=Bs.prototype.isClientRendering;Bs.prototype.needsSkipUI=Bs.prototype.needsSkipUI;function Cs(a,b,c,d){var e=this;this.u=a;this.l=b;this.j=null;this.F=NaN;this.i=d;this.G=!1;this.B=this.m=this.s=null;this.C="";this.D=[];this.h=new Oc;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.g=new google.ima.dai.api.StreamManager(this.l,this.u,a);this.i(new U("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g)));this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){Ds(e,f)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.C.length?
e.j.resolve(e.C):e.j.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.j=null});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.m=new Bs(f,e.l);e.B&&(e.m.i=e.B);e.i(new U("ad-started",(new Map).set("ad",e.m)));e.u.setAttribute("ad-active","true")});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.u.removeAttribute("ad-active");
2025-06-19 04:02:44 +02:00
var f=e.l.currentTime;e.s&&e.s>f&&(e.l.currentTime=e.s,e.s=null)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.B=f.getStreamData().adProgressData;e.m&&(e.m.i=e.B)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.i(new U("ad-first-quartile"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.i(new U("ad-midpoint"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.i(new U("ad-third-quartile"))});
2025-06-27 11:02:59 +02:00
this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.i(new U("ad-complete"));e.i(new U("ad-stopped"));e.u.removeAttribute("ad-active");e.m=null});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.i(new U("ad-skipped"));e.i(new U("ad-stopped"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(f){var g=f.getStreamData();f=[];g=t(g.cuepoints);for(var h=g.next();!h.done;h=g.next())h=h.value,f.push({start:h.start,end:h.end});e.D=
f;e.i(new U("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}p=Cs.prototype;p.configure=function(){};p.stop=function(){this.C="";this.s=null;this.D=[]};p.release=function(){this.stop();this.h&&this.h.release()};p.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.g.onTimedMetadata(b)}};p.getCuePoints=function(){return this.D};
function Ds(a,b){a.i(new U("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.F)));b=b.getStreamData().url;a.j.resolve(b);a.j=null;a.G||a.h.o(a.l,"seeked",function(){var c=a.l.currentTime;if(0!=c){a.g.streamTimeForContentTime(c);var d=a.g.previousCuePointForStreamTime(c);d&&!d.played&&(a.s=c,a.l.currentTime=d.start)}})};function Es(){jb.call(this);this.h=this.i=this.j=this.g=null;this.m=new Hr;this.s=navigator.language;this.l=null}pa(Es,jb);p=Es.prototype;p.setLocale=function(a){this.s=a};p.configure=function(a){this.l=a;this.g&&this.g.configure(this.l);this.j&&this.j.configure(this.l);this.h&&this.h.configure(this.l)};p.initInterstitial=function(a,b,c){var d=this;this.g&&this.g.release();this.g=new Vr(a,b,c,function(e){return Fs(d,e)});this.g.configure(this.l)};
p.initClientSide=function(a,b,c){var d=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new V(2,10,1E4);this.j&&this.j.release();this.j=new Nr(a,b,this.s,c,function(e){return Fs(d,e)});this.j.configure(this.l)};p.release=function(){this.g&&(this.g.release(),this.g=null);this.j&&(this.j.release(),this.j=null);this.i&&(this.i.release(),this.i=null);this.h&&(this.h.release(),this.h=null);jb.prototype.release.call(this)};
p.onAssetUnload=function(){this.g&&this.g.stop();this.j&&this.j.stop();this.i&&this.i.stop();this.h&&this.h.stop();this.dispatchEvent(new U("ad-stopped"));this.dispatchEvent(new U("ad-content-attach-requested"));this.m=new Hr};p.requestClientSideAds=function(a){if(!this.j)throw new V(1,10,10001);var b=this.j;b.g&&b.g.destroy();b.m&&b.m.contentComplete();b.G=Date.now()/1E3;b.m.requestAds(a)};
p.updateClientSideAdsRenderingSettings=function(a){if(!this.j)throw new V(1,10,10001);var b=this.j;b.C=a;b.g&&b.g.updateAdsRenderingSettings(b.C)};p.initMediaTailor=function(a,b,c){var d=this;this.i&&this.i.release();this.i=new qs(a,b,c,function(e){return Fs(d,e)})};p.requestMediaTailorStream=function(a,b,c){if(!this.i)throw new V(1,10,10005);var d=this.i;c=void 0===c?"":c;d.l?a=Promise.reject(new V(1,10,10004)):(d.l=new Ig,ts(d,a,b),d.H=c||"",d.O=Date.now()/1E3,a=d.l);return a};
p.addMediaTailorTrackingUrl=function(a){if(!this.i)throw new V(1,10,10005);var b=this.i;b.G=a;b.i(new U("ads-loaded",(new Map).set("loadTime",0)))};p.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new V(2,10,10002);this.h&&this.h.release();this.h=new Cs(a,b,this.s,function(d){return Fs(c,d)});this.h.configure(this.l)};
p.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.h)throw new V(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&ab('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 overridden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.15.4";c=this.h;c.j?a=Promise.reject(new V(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
(c.G=!0),c.j=new Ig,c.g.requestStream(a),c.C=b||"",c.F=Date.now()/1E3,a=c.j);return a};p.replaceServerSideAdTagParameters=function(a){if(!this.h)throw new V(1,10,10003);(a.mpt||a.mpv)&&ab('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 overridden.');a.mpt="Shaka Player";a.mpv="v4.15.4";this.h.g.replaceAdTagParameters(a)};
p.getServerSideCuePoints=function(){Uc("AdManager.getServerSideCuePoints","Please use getCuePoints function.");return this.getCuePoints()};p.getCuePoints=function(){var a=[];this.h&&(a=a.concat(this.h.getCuePoints()));this.i&&(a=a.concat(this.i.getCuePoints()));return a};p.getStats=function(){var a=this.m;return{loadTimes:a.g,averageLoadTime:Ir(a),started:a.h,overlayAds:a.j,playedCompletely:a.l,skipped:a.m,errors:a.i}};p.onManifestUpdated=function(a){if(this.i)this.i.onManifestUpdated(a)};
p.onDashTimedMetadata=function(a){this.h&&"urn:google:dai:2018"==a.schemeIdUri&&this.h.g.processMetadata(a.schemeIdUri,a.eventNode?a.eventNode.attributes.messageData:null,a.startTime)};p.onHlsTimedMetadata=function(a,b){this.h&&this.h.g.processMetadata("ID3",a.data,b)};p.onCueMetadataChange=function(a){if(this.h)this.h.onCueMetadataChange(a)};p.onHLSInterstitialMetadata=function(a,b,c){this.l&&this.l.disableHLSInterstitial||(this.g||this.initInterstitial(null,a,b),this.g&&hs(this.g,c))};
p.onDASHInterstitialMetadata=function(a,b,c){if(!this.l||!this.l.disableDASHInterstitial){var d=c.schemeIdUri;if("urn:mpeg:dash:event:alternativeMPD:insert:2025"==d||"urn:mpeg:dash:event:alternativeMPD:replace:2025"==d){if(this.g||this.initInterstitial(null,a,b),this.g&&(a=this.g,b="urn:mpeg:dash:event:alternativeMPD:replace:2025"==c.schemeIdUri,d="urn:mpeg:dash:event:alternativeMPD:insert:2025"==c.schemeIdUri,b||d)){for(var e=c.startTime,f=c.endTime,g=null,h=0,k,l=t(c.eventNode.children),m=l.next();!m.done;m=
l.next())if(m=m.value,"AlternativeMPD"==m.tagName){if(m=m.attributes.uri){k=m;break}}else if("InsertPresentation"==m.tagName||"ReplacePresentation"==m.tagName){var n=m.attributes.url;if(n){k=n;(l=Wd(m,"maxDuration",be))&&(g=l/c.timescale);(l=Wd(m,"returnOffset",be))&&(h=l/c.timescale);b&&h&&(f=e+h);break}}k&&js(a,[{id:c.id,groupId:null,startTime:e,endTime:f,uri:k,mimeType:null,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!0,resumeOffset:d?h:null,playoutLimit:g,once:!1,pre:!1,post:!1,timelineRange:b&&
!d,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null}])}}else("urn:mpeg:dash:event:2012"==d||"urn:scte:dash:scte214-events"==d)&&c.eventNode&&Td(c.eventNode,"OverlayEvent")&&(this.g||this.initInterstitial(null,a,b),this.g&&ks(this.g,c))}};p.addCustomInterstitial=function(a){if(!this.g)throw new V(1,10,10006);js(this.g,[a])};p.addAdUrlInterstitial=function(a){if(!this.g)throw new V(1,10,10006);return this.g.addAdUrlInterstitial(a)};
p.getInterstitialPlayer=function(){if(!this.g)throw new V(1,10,10006);return this.g.Sb()};function Fs(a,b){if(b&&b.type)switch(b.type){case "ads-loaded":a.m.g.push(b.loadTime);break;case "ad-started":a.m.h++;var c=b.ad;c&&!c.isLinear()&&a.m.j++;break;case "ad-complete":a.m.l++;break;case "ad-skipped":a.m.m++;break;case "ad-error":a.m.i++}a.dispatchEvent(b)}S("shaka.ads.AdManager",Es);Es.prototype.getInterstitialPlayer=Es.prototype.getInterstitialPlayer;Es.prototype.addAdUrlInterstitial=Es.prototype.addAdUrlInterstitial;
Es.prototype.addCustomInterstitial=Es.prototype.addCustomInterstitial;Es.prototype.onDASHInterstitialMetadata=Es.prototype.onDASHInterstitialMetadata;Es.prototype.onHLSInterstitialMetadata=Es.prototype.onHLSInterstitialMetadata;Es.prototype.onCueMetadataChange=Es.prototype.onCueMetadataChange;Es.prototype.onHlsTimedMetadata=Es.prototype.onHlsTimedMetadata;Es.prototype.onDashTimedMetadata=Es.prototype.onDashTimedMetadata;Es.prototype.onManifestUpdated=Es.prototype.onManifestUpdated;
Es.prototype.getStats=Es.prototype.getStats;Es.prototype.getCuePoints=Es.prototype.getCuePoints;Es.prototype.getServerSideCuePoints=Es.prototype.getServerSideCuePoints;Es.prototype.replaceServerSideAdTagParameters=Es.prototype.replaceServerSideAdTagParameters;Es.prototype.requestServerSideStream=Es.prototype.requestServerSideStream;Es.prototype.initServerSide=Es.prototype.initServerSide;Es.prototype.addMediaTailorTrackingUrl=Es.prototype.addMediaTailorTrackingUrl;
Es.prototype.requestMediaTailorStream=Es.prototype.requestMediaTailorStream;Es.prototype.initMediaTailor=Es.prototype.initMediaTailor;Es.prototype.updateClientSideAdsRenderingSettings=Es.prototype.updateClientSideAdsRenderingSettings;Es.prototype.requestClientSideAds=Es.prototype.requestClientSideAds;Es.prototype.onAssetUnload=Es.prototype.onAssetUnload;Es.prototype.release=Es.prototype.release;Es.prototype.initClientSide=Es.prototype.initClientSide;Es.prototype.initInterstitial=Es.prototype.initInterstitial;
Es.prototype.configure=Es.prototype.configure;Es.prototype.setLocale=Es.prototype.setLocale;Es.ADS_LOADED="ads-loaded";Es.AD_STARTED="ad-started";Es.AD_FIRST_QUARTILE="ad-first-quartile";Es.AD_MIDPOINT="ad-midpoint";Es.AD_THIRD_QUARTILE="ad-third-quartile";Es.AD_COMPLETE="ad-complete";Es.AD_STOPPED="ad-stopped";Es.AD_SKIPPED="ad-skipped";Es.AD_VOLUME_CHANGED="ad-volume-changed";Es.AD_MUTED="ad-muted";Es.AD_PAUSED="ad-paused";Es.AD_RESUMED="ad-resumed";Es.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";
Es.CUEPOINTS_CHANGED="ad-cue-points-changed";Es.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";Es.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";Es.AD_CLICKED="ad-clicked";Es.AD_PROGRESS="ad-progress";Es.AD_BUFFERING="ad-buffering";Es.AD_IMPRESSION="ad-impression";Es.AD_DURATION_CHANGED="ad-duration-changed";Es.AD_CLOSED="ad-closed";Es.AD_LOADED="ad-loaded";Es.ALL_ADS_COMPLETED="all-ads-completed";Es.AD_LINEAR_CHANGED="ad-linear-changed";Es.AD_METADATA="ad-metadata";
Es.AD_RECOVERABLE_ERROR="ad-recoverable-error";Es.AD_ERROR="ad-error";Es.AD_BREAK_READY="ad-break-ready";Es.AD_INTERACTION="ad-interaction";Es.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested";Es.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested";Es.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";fq=function(){return new Es};function Gs(a){return JSON.stringify(a,function(b,c){if("function"!=typeof c){if(c instanceof Event||c instanceof U){var d={};for(e in c)(b=c[e])&&"object"==typeof b?"detail"==e&&(d[e]=b):e in Event||(d[e]=b);return d}if(c instanceof Error){var e=new Set(["name","message","stack"]);for(d in c)e.add(d);d=t(Object.getOwnPropertyNames(c));for(b=d.next();!b.done;b=d.next())e.add(b.value);d={};e=t(e);for(b=e.next();!b.done;b=e.next())b=b.value,d[b]=c[b];c={__type__:"Error",contents:d}}else if(c instanceof
TimeRanges){e={__type__:"TimeRanges",length:c.length,start:[],end:[]};c=t(Ij(c));for(d=c.next();!d.done;d=c.next())d=d.value,b=d.end,e.start.push(d.start),e.end.push(b);c=e}else c=ArrayBuffer.isView(c)&&1===c.BYTES_PER_ELEMENT?{__type__:"Uint8Array",entries:Array.from(c)}:"number"==typeof c?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c;return c}})}
function Hs(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=Is(c);else if(c&&"object"==typeof c&&"Uint8Array"==c.__type__)d=new Uint8Array(c.entries);else if(c&&"object"==typeof c&&"Error"==c.__type__){b=c.contents;c=Error(b.message);for(d in b)c[d]=b[d];d=c}else d=c;return d})}
function Is(a){return{length:a.length,start:function(b){return a.start[b]},end:function(b){return a.end[b]}}}
var Js="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),Ks="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),Ls=["loop","playbackRate"],Ms=["pause","play"],Ns=(new Map).set("getAssetUri",2).set("getAudioLanguages",4).set("getAudioLanguagesAndRoles",4).set("getBufferFullness",1).set("getBufferedInfo",2).set("getExpiration",2).set("getKeyStatuses",2).set("getPlaybackRate",2).set("getTextLanguages",
4).set("getTextLanguagesAndRoles",4).set("isAudioOnly",10).set("isBuffering",1).set("isInProgress",1).set("isLive",10).set("isTextTrackVisible",1).set("isVideoOnly",10).set("keySystem",10).set("seekRange",1).set("getLoadMode",10).set("getManifestType",10).set("isFullyLoaded",1).set("isEnded",1),Os=(new Map).set("getConfiguration",4).set("getConfigurationForLowLatency",4).set("getStats",5).set("getAudioTracks",2).set("getChaptersTracks",2).set("getImageTracks",2).set("getVideoTracks",2).set("getTextTracks",
2).set("getVariantTracks",2),Ps=(new Map).set("getPlayheadTimeAsDate",1).set("getPresentationStartTimeAsDate",20).set("getSegmentAvailabilityDuration",20),Qs=[["getConfiguration","configure","getConfigurationForLowLatency","configurationForLowLatency"]],Rs=[["isTextTrackVisible","setTextTrackVisibility"]],Ss="cancelTrickPlay configure configurationForLowLatency getChapters resetConfiguration retryStreaming selectAudioLanguage selectAudioTrack selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel selectVideoTrack setTextTrackVisibility trickPlay updateStartTime goToLive useTrickPlayTrackIfAvailable".split(" "),
Ts="addChaptersTrack addTextTrackAsync addThumbnailsTrack getAllThumbnails getChaptersAsync getThumbnails attach attachCanvas detach load unload".split(" ");function Us(a,b,c,d,e,f,g){var h=this;this.G=a;this.J=g;this.l=new zf(b);this.K=c;this.u=!1;this.B=d;this.F=e;this.L=f;this.i=this.m=!1;this.I="";this.s=null;this.C=function(){return Vs(h)};this.D=function(k,l){k=Hs(l);switch(k.type){case "event":var m=k.targetName,n=Xa(k.event);h.B(m,n);break;case "update":m=k.update;for(n in m){k=h.g[n]||{};for(var q in m[n])k[q]=m[n][q]}h.u&&(h.K(),h.u=!1);break;case "asyncComplete":if(q=k.id,n=k.error,l=k.res,k=h.h.get(q),h.h.delete(q),k)if(n){q=new V(n.severity,
n.category,n.code);for(m in n)q[m]=n[m];k.reject(q)}else k.resolve(l)}};this.g={video:{},player:{}};this.H=0;this.h=new Map;this.j=null;Ws.add(this)}p=Us.prototype;p.destroy=function(){Ws.delete(this);Xs(this);Ys&&Zs(this);this.l&&(this.l.stop(),this.l=null);this.F=this.B=null;this.i=this.m=!1;this.D=this.C=this.j=this.h=this.g=this.s=null;return Promise.resolve()};p.Pa=function(){return this.i};p.Tf=function(){return this.I};
p.init=function(){if(this.G.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.l.Ka();var a=new chrome.cast.SessionRequest(this.G,[],null,this.J,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(Ws),d=c.next();!d.done;d=c.next()){d=d.value;var e=b;d.j=new Ig;d.u=!0;$s(d,e)}},function(b){for(var c=t(Ws),d=c.next();!d.done;d=c.next())d=d.value,at="available"==b,d.l.Ka()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});at&&this.l.X(bt);(a=Ys)&&
a.status!=chrome.cast.SessionStatus.STOPPED?(this.j=new Ig,this.u=!0,$s(this,a)):Ys=null}else window.__onGCastApiAvailable!==ct&&(dt=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=ct)};p.Th=function(a){this.s=a;this.i&&et(this,{type:"appData",appData:this.s})};
p.cast=function(){var a=this;return Q(function(b){if(!a.m)throw new V(1,8,8E3);if(!at)throw new V(1,8,8001);if(a.i)throw new V(1,8,8002);a.j=new Ig;chrome.cast.requestSession(function(c){return $s(a,c)},function(c){return ft(a,c)});return F(b,a.j,0)})};function gt(a){a.i&&chrome.cast.requestSession(function(b){return $s(a,b)},function(b){return ft(a,b)})}p.zd=function(){if(this.i){Xs(this);if(Ys){Zs(this);try{Ys.stop(function(){},function(){})}catch(a){}Ys=null}Vs(this)}};
p.get=function(a,b){var c=this;if("video"==a){if(Ms.includes(b))return function(){return c.qj.apply(c,[a,b].concat(x(Ka.apply(0,arguments))))}}else if("player"==a){if(Ps.has(b)&&!this.get("player","isLive")())return function(){};if(Ss.includes(b))return function(){return c.qj.apply(c,[a,b].concat(x(Ka.apply(0,arguments))))};if(Ts.includes(b))return function(){return c.Wl.apply(c,[a,b].concat(x(Ka.apply(0,arguments))))};if(Ns.has(b)||Os.has(b))return function(){return c.g[a][b]}}return this.g[a][b]};
p.set=function(a,b,c){this.g[a][b]=c;et(this,{type:"set",targetName:a,property:b,value:c})};function $s(a,b){var c=a.L();Ys=b;b.addUpdateListener(a.C);b.addMessageListener("urn:x-cast:com.google.shaka.v2",a.D);Vs(a);et(a,{type:"init",initState:c,appData:a.s});a.j.resolve()}function ft(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.j.reject(new V(2,8,c,b))}
p.qj=function(a,b){et(this,{type:"call",targetName:a,methodName:b,args:Ka.apply(2,arguments)})};p.Wl=function(a,b){var c=Ka.apply(2,arguments),d=new Ig,e=this.H.toString();this.H++;this.h.set(e,d);try{et(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function Zs(a){var b=Ys;b.removeUpdateListener(a.C);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.D)}
function Vs(a){var b=Ys?"connected"==Ys.status:!1;if(a.i&&!b){a.F();for(var c in a.g)a.g[c]={};Xs(a)}a.i=b;a.I=b?Ys.receiver.friendlyName:"";a.l.Ka()}function Xs(a){if(a.h)for(var b=t(a.h.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=a.h.get(c);a.h.delete(c);d.reject(new V(1,7,7E3))}}
function et(a,b){b=Gs(b);var c=Ys;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},db)}catch(d){throw b=new V(2,8,8005,d),c=new U("error",(new Map).set("detail",b)),a.B("player",c),a.zd(),b;}}var bt=.02,at=!1,Ys=null,dt=null,Ws=new Set;function ct(a){dt?window.__onGCastApiAvailable=dt:delete window.__onGCastApiAvailable;dt=null;if(a)for(var b=t(Ws),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function ht(a,b,c,d){d=void 0===d?!1:d;jb.call(this);var e=this;this.i=a;this.h=b;this.l=this.s=this.m=this.u=this.j=null;this.H=c;this.G=d;this.D=[];this.C=[];this.B=[];this.F=new Map;this.g=null;window.chrome?(this.g=new Us(c,function(){return it(e)},function(){return jt(e)},function(f,g){return kt(e,f,g)},function(){return lt(e)},function(){return mt(e)},d),nt(this)):(this.j=this.i,this.u=this.h)}pa(ht,jb);p=ht.prototype;
p.destroy=function(a){this.g&&(void 0===a?0:a)&&this.g.zd();this.l&&(this.l.release(),this.l=null);a=[];this.h&&(a.push(this.h.destroy()),this.h=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.u=this.j=this.i=null;jb.prototype.release.call(this);return Promise.all(a)};p.Kc=function(){return this.j};p.Sb=function(){return this.u};p.Dg=function(){return this.g?this.g.m&&at:!1};p.Pa=function(){return this.g?this.g.Pa():!1};p.Tf=function(){return this.g?this.g.Tf():""};
p.cast=function(){var a=this;return Q(function(b){return 1==b.g?a.g?F(b,a.g.cast(),2):b.return():a.h?F(b,a.h.lc(),0):b.return()})};p.Th=function(a){this.g&&this.g.Th(a)};p.Oj=function(){this.g&&gt(this.g)};p.zd=function(){this.g&&this.g.zd()};
p.Ei=function(a,b){b=void 0===b?!1:b;var c=this;return Q(function(d){if(1==d.g){if(a==c.H&&b==c.G)return d.return();c.H=a;c.G=b;if(!c.g)return d.return();c.g.zd();return F(d,c.g.destroy(),2)}c.g=null;c.g=new Us(a,function(){return it(c)},function(){return jt(c)},function(e,f){return kt(c,e,f)},function(){return lt(c)},function(){return mt(c)},b);c.g.init();I(d)})};
function nt(a){a.g.init();a.l=new Oc;for(var b=t(Js),c=b.next();!c.done;c=b.next())a.l.o(a.i,c.value,function(f){a.g.Pa()||(f=Xa(f),a.m.dispatchEvent(f))});for(var d in Ya)a.l.o(a.h,Ya[d],function(f){a.g.Pa()||a.s.dispatchEvent(f)});a.j={};b={};for(var e in a.i)b={me:b.me},b.me=e,Object.defineProperty(a.j,b.me,{configurable:!1,enumerable:!0,get:function(f){return function(){return ot(a,f.me)}}(b),set:function(f){return function(g){var h=f.me;a.g.Pa()?a.g.set("video",h,g):a.i[h]=g}}(b)});a.u={};pt(a,
function(f){Object.defineProperty(a.u,f,{configurable:!1,enumerable:!0,get:function(){return qt(a,f)}})});rt(a);a.m=new jb;a.m.Qe=a.j;a.s=new jb;a.s.Qe=a.u;a.l.o(a.h,"unloading",function(){a.g&&a.g.Pa()||st(a)})}function rt(a){var b=new Map;pt(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.F.set(c,d):a.F.set(d,c)):b.set(d,c)})}
function pt(a,b){function c(k){return"constructor"==k||"function"!=typeof d[k]?!1:!e.has(k)}var d=a.h,e=new Set,f;for(f in d)c(f)&&(e.add(f),b(f,d[f]));a=Object.getPrototypeOf(d);for(f=Object.getPrototypeOf({});a&&a!=f;){for(var g=t(Object.getOwnPropertyNames(a)),h=g.next();!h.done;h=g.next())h=h.value,c(h)&&(e.add(h),b(h,d[h]));a=Object.getPrototypeOf(a)}}
function mt(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.$c(),startTime:null,addThumbnailsTrackCalls:a.D,addTextTrackAsyncCalls:a.C,addChaptersTrackCalls:a.B};a.i.pause();for(var c=t(Ls),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.i[d];a.i.ended||(b.startTime=a.i.currentTime);c=t(Qs);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.h[e[0]]();b.player[d]=e}c=t(Rs);for(d=c.next();!d.done;d=c.next())e=d.value,d=e[1],e=a.h[e[0]](),b.playerAfterLoad[d]=e;return b}
function it(a){var b=new U("caststatuschanged");a.dispatchEvent(b)}function jt(a){var b=new U(a.j.paused?"pause":"play");a.m.dispatchEvent(b)}
function lt(a){for(var b=t(Qs),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[1];d=a.g.get("player",d[0])();a.h[c](d)}var e=a.D,f=a.C,g=a.B;st(a);var h=a.g.get("player","getAssetUri")();d=a.g.get("video","ended");b=Promise.resolve();var k=a.i.autoplay;c=null;d||(c=a.g.get("video","currentTime"));var l;(d=a.g.get("player","getTextTracks")())&&d.length&&(l=d.find(function(q){return q.active}));var m=a.g.get("player","isTextTrackVisible")();h&&(a.i.autoplay=!1,b=a.h.load(h,c));var n={};c=t(Ls);for(d=
c.next();!d.done;d=c.next())d=d.value,n[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var q=t(e),r=q.next();!r.done;r=q.next()){r=r.value;var u;(u=a.Sb()).Ye.apply(u,x(r))}q=t(f);for(u=q.next();!u.done;u=q.next()){u=u.value;var w;(w=a.Sb()).Ud.apply(w,x(u))}w=t(g);for(q=w.next();!q.done;q=w.next()){q=q.value;var v;(v=a.Sb()).Xe.apply(v,x(q))}v=t(Ls);for(w=v.next();!w.done;w=v.next())w=w.value,a.i[w]=n[w];v=t(Rs);for(w=v.next();!w.done;w=v.next())q=w.value,w=q[1],q=a.g.get("player",q[0])(),a.h[w](q);
a.h.Ae(m);l&&a.h.Sh(l.language,l.roles,l.forced);a.i.autoplay=k;h&&a.i.play()}},function(q){q=(new Map).set("detail",q);q=new U("error",q);a.h.dispatchEvent(q)})}
function ot(a,b){if("addEventListener"==b)return function(d,e,f){return a.m.addEventListener(d,e,f)};if("removeEventListener"==b)return function(d,e,f){return a.m.removeEventListener(d,e,f)};if(a.g.Pa()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.Pa()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)}
function qt(a,b,c){c=void 0===c?!1:c;a.F.has(b)&&(b=a.F.get(b));if("addEventListener"==b)return function(d,e,f){return a.s.addEventListener(d,e,f)};if("removeEventListener"==b)return function(d,e,f){return a.s.removeEventListener(d,e,f)};if("getMediaElement"==b)return function(){return a.j};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.Ib()};if("getDrmEngine"==b)return function(){return a.h.D};if("getAdManager"==
b)return function(){return a.h.mf()};if("getQueueManager"==b)return function(){return a.h.lh()};if("setVideoContainer"==b)return function(d){return a.h.Zh(d)};if(!c){if("addThumbnailsTrack"==b)return function(){var d=Ka.apply(0,arguments);a.D.push(d);return qt(a,b,!0).apply(null,x(d))};if("addTextTrackAsync"==b)return function(){var d=Ka.apply(0,arguments);a.C.push(d);return qt(a,b,!0).apply(null,x(d))};if("addChaptersTrack"==b)return function(){var d=Ka.apply(0,arguments);a.B.push(d);return qt(a,
b,!0).apply(null,x(d))}}if(a.g.Pa()){if("getManifest"==b||"drmInfo"==b)return function(){ab(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){ab(b+"() does not work while casting!");return Promise.resolve()};if("getChapters"==b)return function(){ab(b+"() does not work while casting!");return[]}}return a.g.Pa()&&0==Object.keys(a.g.g.video).length&&(Ns.has(b)||Os.has(b))||!a.g.Pa()?a.h[b].bind(a.h):a.g.get("player",b)}
function kt(a,b,c){a.g.Pa()&&("video"==b?a.m.dispatchEvent(c):"player"==b&&("unloading"==c.type&&st(a),a.s.dispatchEvent(c)))}function st(a){a.D=[];a.C=[];a.B=[]}S("shaka.cast.CastProxy",ht);ht.prototype.changeReceiverId=ht.prototype.Ei;ht.prototype.forceDisconnect=ht.prototype.zd;ht.prototype.suggestDisconnect=ht.prototype.Oj;ht.prototype.setAppData=ht.prototype.Th;ht.prototype.cast=ht.prototype.cast;ht.prototype.receiverName=ht.prototype.Tf;ht.prototype.isCasting=ht.prototype.Pa;
ht.prototype.canCast=ht.prototype.Dg;ht.prototype.getPlayer=ht.prototype.Sb;ht.prototype.getVideo=ht.prototype.Kc;ht.prototype.destroy=ht.prototype.destroy;function tt(a,b,c,d){jb.call(this);var e=this;this.h=a;this.g=b;this.j=new Oc;this.H={video:a,player:b};this.F=c||function(){};this.I=d||function(f){return f};this.i=null;this.G=!1;this.s=!0;this.m=0;this.C=!1;this.B=!0;this.u=this.l=null;this.D=new zf(function(){ut(e)});vt(this)}pa(tt,jb);p=tt.prototype;p.isConnected=function(){return this.G};p.wl=function(){return this.s};p.gm=function(a){this.i=a};p.jk=function(){this.i=null};
p.hm=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};p.fm=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};p.em=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
p.destroy=function(){var a=this,b,c;return Q(function(d){if(1==d.g)return a.j&&(a.j.release(),a.j=null),b=[],a.g&&(b.push(a.g.destroy()),a.g=null),a.D&&(a.D.stop(),a.D=null),a.h=null,a.H=null,a.F=null,a.G=!1,a.s=!0,a.l=null,a.u=null,jb.prototype.release.call(a),F(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();I(d)})};
function vt(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return wt(a)};b.onSenderDisconnected=function(){return wt(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&xt(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);xt(a,{type:"event",targetName:"video",event:{type:"volumechange"}},a.l)};a.u=b.getCastMessageBus("urn:x-cast:com.google.cast.media");a.u.onMessage=function(e){return yt(a,
e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return zt(a,e)};b.start();b=t(Js);for(var c=b.next();!c.done;c=b.next())a.j.o(a.h,c.value,function(e){return At(a,"video",e)});for(var d in Ya)a.j.o(a.g,Ya[d],function(e){return At(a,"player",e)});a.j.o(a.h,"loadeddata",function(){a.C=!0});a.j.o(a.g,"loading",function(){a.s=!1;Bt(a)});a.j.o(a.h,"playing",function(){a.s=!1;Bt(a)});a.j.o(a.h,"pause",function(){Bt(a)});a.j.o(a.g,"unloading",function(){a.s=!0;Bt(a)});
a.j.o(a.h,"ended",function(){(new zf(function(){a.h&&a.h.ended&&(a.s=!0,Bt(a))})).X(Ct)})}function wt(a){a.m=0;a.B=!0;a.G=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;Bt(a)}function Bt(a){var b;Q(function(c){if(1==c.g)return F(c,Promise.resolve(),2);if(!a.g)return c.return();b=new U("caststatuschanged");a.dispatchEvent(b);Dt(a)||Et(a);I(c)})}
function Ft(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D;Q(function(G){switch(G.g){case 1:for(d in b.player)e=b.player[d],a.g[d](e);a.F(c);f=a.h.autoplay;return b.manifest?(a.h.autoplay=!1,ta(G,5),F(G,a.g.load(b.manifest,b.startTime),7)):F(G,Promise.resolve(),3);case 7:if(b.addThumbnailsTrackCalls)for(g=t(b.addThumbnailsTrackCalls),h=g.next();!h.done;h=g.next())k=h.value,a.g.Ye.apply(a.g,x(k));if(b.addTextTrackAsyncCalls)for(l=t(b.addTextTrackAsyncCalls),m=l.next();!m.done;m=l.next())n=m.value,
a.g.Ud.apply(a.g,x(n));if(b.addChaptersTrackCalls)for(q=t(b.addChaptersTrackCalls),r=q.next();!r.done;r=q.next())u=r.value,a.g.Xe.apply(a.g,x(u));wa(G,3);break;case 5:return w=xa(G),v=(new Map).set("detail",w),y=new U("error",v),a.g&&a.g.dispatchEvent(y),G.return();case 3:if(!a.g)return G.return();for(z in b.video)A=b.video[z],a.h[z]=A;for(B in b.playerAfterLoad)D=b.playerAfterLoad[B],a.g[B](D);a.h.autoplay=f;b.manifest&&(a.h.play(),Et(a));I(G)}})}
function At(a,b,c){a.g&&(ut(a),xt(a,{type:"event",targetName:b,event:c},a.l))}
function ut(a){a.D.X(Gt);for(var b={video:{},player:{}},c=t(Ks),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.h[d];a.g.T()&&Ps.forEach(function(e,f){0==a.m%e&&(b.player[f]=a.g[f]())});Ns.forEach(function(e,f){0==a.m%e&&(b.player[f]=a.g[f]())});if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;xt(a,{type:"update",update:b},a.l);Os.forEach(function(e,f){0==a.m%e&&(e={player:{}},e.player[f]=a.g[f](),xt(a,{type:"update",update:e},
a.l))});a.C&&(a.m+=1);Dt(a)}function Dt(a){return a.B&&(a.h.duration||a.g.T())?(Ht(a),a.B=!1,!0):!1}function Ht(a,b){var c={contentId:a.g.$c(),streamType:a.g.T()?"LIVE":"BUFFERED",contentType:""};a.g.T()||(c.duration=a.h.duration);a.i&&(c.metadata=a.i);Et(a,void 0===b?0:b,c)}
function zt(a,b){var c=Hs(b.data);switch(c.type){case "init":a.m=0;a.C=!1;a.B=!0;Ft(a,c.initState,c.appData);ut(a);break;case "appData":a.F(c.appData);break;case "set":var d=c.targetName,e=c.property;c=c.value;if("video"==d)if(b=cast.receiver.CastReceiverManager.getInstance(),"volume"==e){b.setSystemVolumeLevel(c);break}else if("muted"==e){b.setSystemVolumeMuted(c);break}a.H[d][e]=c;break;case "call":d=a.H[c.targetName];d[c.methodName].apply(d,c.args);break;case "asyncCall":d=c.targetName;e=c.methodName;
"player"==d&&"load"==e&&(a.m=0,a.C=!1);var f=c.id,g=b.senderId;b=a.H[d];c=b[e].apply(b,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.B=!0}));c.then(function(h){return It(a,g,f,null,h)},function(h){return It(a,g,f,h,null)})}}
function yt(a,b){var c=Hs(b.data);switch(c.type){case "PLAY":a.h.play();Et(a);break;case "PAUSE":a.h.pause();Et(a);break;case "SEEK":b=c.currentTime;var d=c.resumeState;null!=b&&(a.h.currentTime=Number(b));d&&"PLAYBACK_START"==d?(a.h.play(),Et(a)):d&&"PLAYBACK_PAUSE"==d&&(a.h.pause(),Et(a));break;case "STOP":a.g.lc().then(function(){a.g&&Et(a)});break;case "GET_STATUS":Ht(a,Number(c.requestId));break;case "VOLUME":d=c.volume;b=d.level;d=d.muted;var e=a.h.volume,f=a.h.muted;null!=b&&(a.h.volume=Number(b));
null!=d&&(a.h.muted=d);e==a.h.volume&&f==a.h.muted||Et(a);break;case "LOAD":a.m=0;a.C=!1;a.B=!1;b=c.media;d=c.currentTime;e=a.I(b.contentId);f=c.autoplay||!0;a.F(b.customData);f&&(a.h.autoplay=!0);a.g.load(e,d).then(function(){a.g&&Ht(a)}).catch(function(g){var h="LOAD_FAILED";7==g.category&&7E3==g.code&&(h="LOAD_CANCELLED");xt(a,{requestId:Number(c.requestId),type:h},a.u)});break;default:xt(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.u)}}
function It(a,b,c,d,e){a.g&&xt(a,{type:"asyncComplete",id:c,error:d,res:e},a.l,b)}function xt(a,b,c,d){a.G&&(a=Gs(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function Et(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.h.playbackRate,playerState:a.s?Jt:a.g.xf()?Kt:a.h.paused?Lt:Mt,currentTime:a.h.currentTime,supportedMediaCommands:63,volume:{level:a.h.volume,muted:a.h.muted}};c&&(d.media=c);xt(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.u)}
S("shaka.cast.CastReceiver",tt);tt.prototype.destroy=tt.prototype.destroy;tt.prototype.setContentArtist=tt.prototype.em;tt.prototype.setContentImage=tt.prototype.fm;tt.prototype.setContentTitle=tt.prototype.hm;tt.prototype.clearContentMetadata=tt.prototype.jk;tt.prototype.setContentMetadata=tt.prototype.gm;tt.prototype.isIdle=tt.prototype.wl;tt.prototype.isConnected=tt.prototype.isConnected;var Gt=.5,Ct=5,Jt="IDLE",Mt="PLAYING",Kt="BUFFERING",Lt="PAUSED";function Nt(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=Ot(d,e,h,k,l,m);f<=g;f++){for(var q=c[f],r=-1,u=-1,w=0;w<q.length;w++)if(null!=q[w]&&""!==q[w].g.trim()){r=w;break}for(w=q.length-1;0<=w;w--)if(null!=q[w]&&""!==q[w].g.trim()){u=w;break}if(-1===
r||-1===u)q=Pt(d,e),a.nestedCues.push(q);else{for(;r<=u;r++)if(w=q[r]){var v=w.l,y=w.i,z=w.j,A=w.h;if(v!=h||y!=k||z!=l||A!=m)n.payload&&a.nestedCues.push(n),n=Ot(d,e,v,y,z,A),h=v,k=y,l=z,m=A;n.payload+=w.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=Pt(d,e),a.nestedCues.push(n));n=Ot(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}function Ot(a,b,c,d,e,f){a=new oe(a,b,"");c&&a.textDecoration.push(Oe);d&&(a.fontStyle=Ne);a.color=e;a.backgroundColor=f;return a}
function Pt(a,b){a=new oe(a,b,"");a.lineBreak=!0;return a}function Qt(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function Rt(a,b){this.i=[];this.g=1;this.h=0;this.D=a;this.C=b;this.j=this.m=!1;this.l="white";this.s="black";this.u=this.B=null;St(this)}function Tt(a,b,c){var d="CC"+((a.D<<1|a.C)+1),e=new oe(b,c,"");e.lineInterpretation=1;var f=Ut.get(a.g);f&&(e.line=f);null!=a.u&&null!=a.B&&(e.position=10+Math.min(70,10*a.u)+2.5*a.B);(b=Nt(e,d,a.i,b,c))&&15<a.g+b.cue.nestedCues.length-3&&(f=Ut.get(a.g+3-b.cue.nestedCues.length))&&(e.line=f);return b}function St(a){Vt(a,0,15);a.g=1}
function Wt(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case 0:d=Xt.has(c)?Xt.get(c):String.fromCharCode(c);break;case 1:d=Yt.get(c);break;case 2:a.i[a.g].pop();d=Zt.get(c);break;case 3:a.i[a.g].pop(),d=$t.get(c)}d&&a.i[a.g].push(new Qt(d,a.m,a.j,a.s,a.l))}}function au(a,b,c,d){if(!(0>c||0>b))if(b>=c)for(--d;0<=d;d--)a.i[b+d]=a.i[c+d].map(function(f){return f});else for(var e=0;e<d;e++)a.i[b+e]=a.i[c+e].map(function(f){return f})}function Vt(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
var Xt=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"]]),Yt=new Map([[48,"\u00ae"],[49,"\u00b0"],[50,"\u00bd"],[51,"\u00bf"],[52,"\u2122"],[53,"\u00a2"],[54,"\u00a3"],[55,"\u266a"],[56,"\u00e0"],[57," "],[58,"\u00e8"],[59,"\u00e2"],[60,"\u00ea"],[61,"\u00ee"],[62,"\u00f4"],[63,"\u00fb"]]),Zt=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],[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"]]),$t=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"],[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"]]),Ut=new Map([[1,10],[2,15.33],[3,20.66],[4,26],[5,31.33],[6,36.66],[7,42],[8,47.33],[9,52.66],[10,58],[11,63.33],[12,68.66],[13,74],[14,79.33],[15,84.66]]);function bu(a,b){this.h=0;this.s=new Rt(a,b);this.i=new Rt(a,b);this.g=this.j=new Rt(a,b);this.l=0;this.m=null}function cu(a,b,c){a.g=a.i;var d=a.g,e=null;3!==a.h&&4!==a.h&&(e=Tt(d,a.l,c),c=a.i,c.g=0<c.h?c.h:0,Vt(c,0,15),c=a.j,c.g=0<c.h?c.h:0,Vt(c,0,15),d.g=15);a.h=3;d.h=b;return e}function du(a){a.h=1;a.g=a.j;a.g.h=0}function eu(a){bb("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.s;a.h=4}var fu="black green blue cyan red yellow magenta black".split(" "),gu="white green blue cyan red yellow magenta white_italics".split(" ");function hu(a,b){this.I=b;this.L=a;this.J=this.l=!1;this.m=this.s=this.G=this.K=this.H=0;this.F=2;this.i=[];this.g=this.h=this.j=0;this.D=this.B=!1;this.C="white";this.u="black";iu(this)}function iu(a){a.i=[];for(var b=0;16>b;b++)a.i.push(ju())}function ju(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function ku(a,b){lu(a)&&(a.i[a.h][a.g]=new Qt(b,a.D,a.B,a.u,a.C),a.g++)}function lu(a){var b=a.g<a.m&&0<=a.g;return a.h<a.s&&0<=a.h&&b}hu.prototype.isVisible=function(){return this.l};
function mu(a){for(var b=0,c=1;16>c;c++,b++)a.i[b]=a.i[c];for(c=0;1>c;c++,b++)a.i[b]=ju()}
function nu(a,b,c){var d=new oe(a.j,b,"");d.textAlign=0===a.F?"left":1===a.F?"right":qe;var e=d.region;a.I&&(e.id+="svc"+a.I);e.id+="win"+a.L;e.height=a.s;e.width=a.m;e.heightUnits=2;e.widthUnits=2;e.viewportAnchorX=a.H;e.viewportAnchorY=a.K;e.viewportAnchorUnits=a.J?pd:2;switch(a.G){case 0:e.regionAnchorX=0;e.regionAnchorY=0;break;case 1:e.regionAnchorX=50;e.regionAnchorY=0;break;case 2:e.regionAnchorX=100;e.regionAnchorY=0;break;case 3:e.regionAnchorX=0;e.regionAnchorY=50;break;case 4:e.regionAnchorX=
50;e.regionAnchorY=50;break;case 5:e.regionAnchorX=100;e.regionAnchorY=50;break;case 6:e.regionAnchorX=0;e.regionAnchorY=100;break;case 7:e.regionAnchorX=50;e.regionAnchorY=100;break;case 8:e.regionAnchorX=100,e.regionAnchorY=100}if(c=Nt(d,"svc"+c,a.i,a.j,b))a.j=b;return c}hu.prototype.display=function(){this.l=!0};function ou(){this.i=[];this.h=null;this.g=0}function pu(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 qu(a.h)),a.h=null,a.g=0))}function qu(a){this.g=0;this.h=a}qu.prototype.Oa=function(){return this.g<this.h.length};qu.prototype.Ua=function(){return this.g};function ru(a){if(!a.Oa())throw new V(2,2,3E3);return a.h[a.g++]}qu.prototype.skip=function(a){if(this.g+a>this.h.length)throw new V(2,2,3E3);this.g+=a};
qu.prototype.vj=function(a){if(0>this.g-a)throw new V(2,2,3E3);this.g-=a};function su(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
function tu(a,b,c,d){if(!a.g)return[];if(24==c)return c=ru(b).value,d=ru(b).value,c=function(f){return f.map(function(g){return("0"+(g&255).toString(16)).slice(-2)}).join("")}([c,d]),ku(a.g,String.fromCharCode(parseInt(c,16))),[];b=a.g;var e=null;switch(c){case 8:!lu(b)||0>=b.g&&0>=b.h||(0>=b.g?(b.g=b.m-1,b.h--):b.g--,b.i[b.h][b.g]=null);break;case 13:b.isVisible()&&(e=nu(b,d,a.i));b.h+1>=b.s?mu(b):b.h++;b.g=0;break;case 14:b.isVisible()&&(e=nu(b,d,a.i));b.i[b.h]=ju();b.g=0;break;case 12:b.isVisible()&&
(e=nu(b,d,a.i)),iu(b),b.h=0,b.g=0}return e?[e]:[]}
function uu(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=ru(b).value;b=[];c=t(vu(a,c));for(var e=c.next();!e.done;e=c.next()){e=a.h[e.value];if(e.isVisible()){var f=nu(e,d,a.i);f&&b.push(f)}iu(e)}return b}if(137===c)for(b=ru(b).value,b=t(vu(a,b)),c=b.next();!c.done;c=b.next())c=a.h[c.value],c.isVisible()||(c.j=d),c.display();else{if(138===c){c=ru(b).value;b=null;c=t(vu(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=nu(e,d,a.i)),e.l=!1;return b?
[b]:[]}if(139===c){c=ru(b).value;b=null;c=t(vu(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=nu(e,d,a.i):e.j=d,e.l=!e.l;return b?[b]:[]}if(140===c)return b=ru(b).value,wu(a,b,d);if(143===c)return d=wu(a,255,d),xu(a),d;if(144===c)b.skip(1),d=ru(b).value,a.g&&(a.g.B=0<(d&128),a.g.D=0<(d&64));else if(145===c)d=ru(b).value,c=ru(b).value,b.skip(1),a.g&&(b=yu((c&48)>>4,(c&12)>>2,c&3),a.g.C=yu((d&48)>>4,(d&12)>>2,d&3),a.g.u=b);else if(146===c)d=ru(b).value,b=ru(b).value,a.g&&(a=
a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),b.skip(1),d=ru(b).value,b.skip(1),a.g&&(a.g.F=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];e||(f=new hu(c,a.i),f.j=d,a.h[c]=f);d=ru(b).value;f=ru(b).value;var g=ru(b).value,h=ru(b).value,k=ru(b).value;b=ru(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.D=!1,b.B=!1,b.C="white",b.u="black");b=a.h[c];b.l=0<(d&32);b.K=f&127;b.H=g;b.G=(h&240)>>4;b.J=0<(f&128);b.s=(h&15)+1;b.m=(k&63)+1;a.g=a.h[c]}}}return[]}
function vu(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}function wu(a,b,c){var d=[];b=t(vu(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(f=nu(f,c,a.i))&&d.push(f);a.h[e]=null}return d}function xu(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function yu(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return zu[a<<2|b<<1|c]}
var Au=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"]]),zu="black blue green cyan red magenta yellow white".split(" ");function Bu(){this.h=[];this.g=[];this.i=new ou;this.l=0;this.m=new Map([["CC1",new bu(0,0)],["CC2",new bu(0,1)],["CC3",new bu(1,0)],["CC4",new bu(1,1)]]);this.u=this.s=0;this.j=new Map;this.C=!0;this.B=new Set;Cu(this)}Bu.prototype.clear=function(){this.l=0;this.h=[];this.g=[];var a=this.i;a.i=[];a.h=[];a.g=0;Cu(this);a=t(this.j.values());for(var b=a.next();!b.done;b=a.next())xu(b.value)};
function Cu(a){a.s=0;a.u=0;for(var b=t(a.m.values()),c=b.next();!c.done;c=b.next())c=c.value,c.h=0,c.g=c.j,c.m=null,St(c.i),St(c.j),St(c.s);a.C=!0}
Bu.prototype.extract=function(a,b){if(this.C){for(var c=t(this.m.values()),d=c.next();!d.done;d=c.next())d.value.l=b;this.C=!1}a=new ih(a,0);if(!(8>a.getLength())&&181===a.aa()&&49===a.Fa()&&1195456820===a.W()&&3===a.aa()&&(c=a.aa(),0!==(c&64)))for(c&=31,a.skip(1),d=0;d<c;d++){var e=a.aa(),f=(e&4)>>2,g=a.aa(),h=a.aa();f&&(e&=3,0===e||1===e?this.h.push({pts:b,type:e,Fb:g,mc:h,order:this.h.length}):(this.g.push({pts:b,type:e,value:g,order:this.g.length}),this.g.push({pts:b,type:2,value:h,order:this.g.length})))}};
Bu.prototype.decode=function(){function a(e,f){return e.pts-f.pts||e.order-f.order}var b=[];this.h.sort(a);this.g.sort(a);for(var c=t(this.h),d=c.next();!d.done;d=c.next())(d=Du(this,d.value))&&b.push(d);c=t(this.g);for(d=c.next();!d.done;d=c.next())pu(this.i,d.value);c=t(this.i.i);for(d=c.next();!d.done;d=c.next())d=Eu(this,d.value),b.push.apply(b,x(d));this.i.i=[];this.h=[];this.g=[];return b};
function Du(a,b){var c=b.type;if(16===(b.Fb&112)){var d=b.Fb>>3&1;0===c?a.s=d:a.u=d}d="CC"+((c<<1|(c?a.u:a.s))+1);c=a.m.get(d);if(255===b.Fb&&255===b.mc||!b.Fb&&!b.mc||!Fu(b.Fb)||!Fu(b.mc))return 45<=++a.l&&Cu(a),null;a.l=0;b.Fb&=127;b.mc&=127;var e=b.Fb;if(1<=e&&15>=e||!b.Fb&&!b.mc)return null;e=null;if(16===(b.Fb&112))a:{a.B.add(d),d=b.Fb;a=b.mc;if(c.m===(d<<8|a))c.m=null;else if(c.m=d<<8|a,16===(d&240)&&64===(a&192)){b=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(d&7)<<1|a>>5&1];d="white";e=!1;var f=
null;var g=95<a?a-96:a-64;13>=g?d=gu[Math.floor(g/2)]:15>=g?e=!0:f=Math.floor((g-16)/2);a=1===(a&1);4!==c.h&&(g=c.g,3===c.h&&b!==g.g&&(c=1+b-g.h,au(g,c,1+g.g-g.h,g.h),Vt(g,0,c-1),Vt(g,b+1,15-b)),g.g=b,g.m=a,g.j=e,g.l=d,g.u=f,g.s="black")}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",Wt(c.g,0,32),d=!1,b=gu[(a&14)>>1],"white_italics"===b&&(b="white",d=!0),c.g.m=1===(a&1),c.g.j=d,c.g.l=b;else if(16===(d&247)&&32===(a&240)||23===(d&247)&&45===(a&255))b="black",0===(d&7)&&(b=fu[(a&
14)>>1]),c.g.s=b;else if(17===(d&247)&&48===(a&240))Wt(c.g,1,a);else if(18===(d&246)&&32===(a&224))Wt(c.g,d&1?3:2,a);else{if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.mc){case 32:du(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=cu(c,2,a);break;case 38:d=cu(c,3,a);break;case 39:d=cu(c,4,a);break;case 40:Wt(c.g,0,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.l=a;break;case 42:St(c.s);eu(c);break;case 43:eu(c);break;case 44:b=c.i;d=null;4!==c.h&&(d=Tt(b,c.l,a));Vt(b,0,15);break;case 45:b=
c.g;3!==c.h?d=null:(d=Tt(b,c.l,a),e=b.g-b.h+1,au(b,e-1,e,b.h),Vt(b,0,e-1),Vt(b,b.g,15-b.g),c.l=a);break;case 46:Vt(c.j,0,15);break;case 47:b=null,4!==c.h&&(b=Tt(c.i,c.l,a)),d=c.j,c.j=c.i,c.i=d,du(c),c.l=a,d=b}e=d;break a}(23==d||31==d)&&33<=a&&35>=a&&(c.g.B=a-32)}e=null}else a=b.mc,Wt(c.g,0,b.Fb),Wt(c.g,0,a);return e}
function Eu(a,b){var c=[];try{for(;b.Oa();){var d=ru(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=ru(b).value&63);if(0!=e){a.B.add("svc"+e);a.j.has(e)||a.j.set(e,new su(e));for(var g=a.j.get(e),h=b.Ua();b.Ua()-h<f;){e=g;var k=b,l=ru(k),m=l.value,n=l.pts;if(16===m){var q=ru(k);m=m<<16|q.value}if(0<=m&&31>=m)var r=tu(e,k,m,n);else if(128<=m&&159>=m)r=uu(e,k,m,n);else{if(4096<=m&&4127>=m)e=k,k=m&255,8<=k&&15>=k?e.skip(1):16<=k&&23>=k?e.skip(2):24<=k&&31>=k&&e.skip(3);else if(4224<=m&&4255>=m)e=k,k=m&
255,128<=k&&135>=k?e.skip(4):136<=k&&143>=k&&e.skip(5);else if(32<=m&&127>=m)k=m,e.g&&(127===k?ku(e.g,"\u266a"):ku(e.g,String.fromCharCode(k)));else if(160<=m&&255>=m)e.g&&ku(e.g,String.fromCharCode(m));else if(4128<=m&&4223>=m){if(k=m&255,e.g)if(Au.has(k)){var u=Au.get(k);ku(e.g,u)}else ku(e.g,"_")}else 4256<=m&&4351>=m&&e.g&&(160!=(m&255)?ku(e.g,"_"):ku(e.g,"[CC]"));r=[]}c.push.apply(c,x(r))}}}}catch(w){if(w instanceof V&&3E3===w.code)bb("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");
else throw w;}return c}function Fu(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b}Bu.prototype.getStreams=function(){return Array.from(this.B)};S("shaka.cea.CeaDecoder",Bu);kd=function(){return new Bu};function Gu(a){for(var b=[],c=a,d=a=0;d<c.length;)2==a&&3==c[d]?(a=0,c=[].concat(x(c)),c.splice(d,1),c=new Uint8Array(c)):0==c[d]?a++:a=0,d++;a=c;for(d=0;d<a.length;){for(c=0;255==a[d];)c+=255,d++;c+=a[d++];for(var e=0;255==a[d];)e+=255,d++;e+=a[d++];4==c&&b.push(a.subarray(d,d+e));d+=e}return b};function Hu(){this.j=new Map;this.i=this.h=0;this.g=Iu}
Hu.prototype.init=function(a){function b(f){f=f.name;Ju.has(f)&&(c.g=Ju.get(f))}var c=this,d=[],e=[];(new lh).box("moov",qh).box("mvex",qh).V("trex",function(f){var g=f.reader;g.skip(4);g.skip(4);f=g.W();g=g.W();c.h=f;c.i=g}).box("trak",qh).V("tkhd",function(f){var g=f.reader;f=f.version;1==f?(g.skip(8),g.skip(8)):(g.skip(4),g.skip(4));var h=g.W();1==f?g.skip(8):g.skip(4);g.skip(4);g.skip(8);g.skip(2);g.skip(2);g.skip(2);g.skip(2);g.skip(36);g.Fa();g.Fa();g.Fa();g.Fa();d.push(h)}).box("mdia",qh).V("mdhd",
function(f){f=Ki(f.reader,f.version);e.push(f.timescale)}).box("minf",qh).box("stbl",qh).V("stsd",sh).box("avc1",b).box("avc3",b).box("dvav",b).box("dva1",b).box("hev1",b).box("hvc1",b).box("dvh1",b).box("dvhe",b).box("vvc1",b).box("vvi1",b).box("dvc1",b).box("dvi1",b).box("encv",th).box("sinf",qh).box("frma",function(f){f=Ni(f.reader).codec;Ju.has(f)&&(c.g=Ju.get(f))}).parse(a,!0,!0);if(!d.length||!e.length||d.length!=e.length)throw new V(2,2,2010);this.g==Iu&&ab("Unable to determine bitstream format for CEA parsing!");
2025-06-19 04:02:44 +02:00
d.forEach(function(f,g){c.j.set(f,e[g])})};
2025-06-27 11:02:59 +02:00
Hu.prototype.parse=function(a){var b=this;if(this.g==Iu)return[];var c=[],d=0,e=[];(new lh).box("moof",function(f){d=f.start;e=[];qh(f)}).box("traf",function(f){e.push({baseMediaDecodeTime:null,Yd:b.h,Zd:b.i,mj:[],timescale:9E4});qh(f)}).V("trun",function(f){var g=e[e.length-1];f=Li(f.reader,f.version,f.flags);g.mj.push(f)}).V("tfhd",function(f){var g=e[e.length-1];f=Ii(f.reader,f.flags);g.Yd=f.Yd||b.h;g.Zd=f.Zd||b.i;f=f.trackId;b.j.has(f)&&(g.timescale=b.j.get(f))}).V("tfdt",function(f){var g=e[e.length-
1];f=Ji(f.reader,f.version);g.baseMediaDecodeTime=f.baseMediaDecodeTime}).box("mdat",function(f){for(var g=d-f.start-8,h=f.reader.Ua(),k=t(e),l=k.next();!l.done;l=k.next())l=l.value,null===l.baseMediaDecodeTime?ab("Unable to find base media decode time for CEA captions!"):(f.reader.seek(h),Ku(b,f.reader,l.baseMediaDecodeTime,l.timescale,l.Yd,l.Zd,g,l.mj,c))}).parse(a,!1,!0);return c};
function Ku(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(u){return u.Qh});n=[].concat.apply([],x(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].Ng);b.Oa();){g=b.W();var q=b.aa(),r=null;r=!1;h=1;switch(a.g){case Lu:r=q&31;r=6==r;break;case Mu:h=2;b.skip(1);r=q>>1&63;r=39==r||40==r;break;case Nu:h=2;b.skip(1);r=q>>1&63;r=23==r||24==r;break;default:return}if(r)for(q=0,l<n.length&&(q=n[l].Xf||0),q=(c+q)/d,h=t(Gu(b.Xb(g-h))),r=h.next();!r.done;r=h.next())k.push({packet:r.value,pts:q});else try{b.skip(g-
h)}catch(u){break}m-=g+4;0==m&&(c=l<n.length?c+(n[l].Rh||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f)}}S("shaka.cea.Mp4CeaParser",Hu);var Iu=0,Lu=1,Mu=2,Nu=3,Ju=(new Map).set("avc1",Lu).set("avc3",Lu).set("dvav",Lu).set("dva1",Lu).set("hev1",Mu).set("hvc1",Mu).set("dvh1",Mu).set("dvhe",Mu).set("vvc1",Nu).set("vvi1",Nu).set("dvc1",Nu).set("dvi1",Nu);ld("video/mp4",function(){return new Hu});function Ou(){this.g=null}Ou.prototype.init=function(){};Ou.prototype.parse=function(a){this.g?this.g.clearData():this.g=new nk;var b=[];a=Kb(a);if(!vk(a))return b;a=this.g.parse(a);var c=a.ae(),d=a.tf();a=[];switch(c.video){case "avc":a.push(6);break;case "hvc":a.push(39),a.push(40)}if(!a.length)return b;c=t(d);for(d=c.next();!d.done;d=c.next())if(d=d.value,a.includes(d.type)&&null!=d.time)for(var e=t(Gu(d.data)),f=e.next();!f.done;f=e.next())b.push({packet:f.value,pts:d.time});return b};
S("shaka.cea.TsCeaParser",Ou);ld("video/mp2t",function(){return new Ou});function Pu(a){var b=0,c=Ob(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=Kb(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}function Qu(a){a=hc(Qd(a));a=Pu(a).filter(function(b){return b.type===Ru})[0];if(!a)return null;a=Xb(a.value,!0);return(a=Id(a,"WRMHEADER"))?a:null}
function Su(a){try{var b=Qu(a);if(b)a:{for(var c=t(Sd(b,"DATA")),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.children)for(var f=t(e.children),g=f.next();!g.done;g=f.next()){var h=g.value;if("LA_URL"==h.tagName){var k=Qd(h);break a}}}k=""}else k="";return k}catch(l){return""}}var Ru=1;function Tu(a,b,c){var d=Uu(a),e=null;a=[];var f=[],g=null,h=new Set(d.map(function(l){return l.keyId}));h.delete(null);var k="cenc";if(1<h.size)throw new V(2,4,4010);if(!b){f=d.filter(function(l){return"urn:mpeg:dash:sea:2012"==l.Nd});if(1<f.length)throw new V(2,4,4050);f.length&&(g=Vu(f[0]));(f=d.find(function(l){return"urn:mpeg:dash:mp4protection:2011"==l.Nd}))&&f.encryptionScheme&&(k=f.encryptionScheme);f=d.filter(function(l){return"urn:mpeg:dash:mp4protection:2011"==l.Nd?(e=l.init||e,!1):"urn:mpeg:dash:sea:2012"!=
l.Nd});f.length&&(a=Wu(e,k,f,c,h),0==a.length&&(a=[mc("",k,e)]))}if(d.length&&!g&&(b||!f.length))for(a=[],b=t(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(mc(c,k,e));if(h=Array.from(h)[0]||null)for(k=t(a),b=k.next();!b.done;b=k.next())for(b=t(b.value.initData),c=b.next();!c.done;c=b.next())c.value.keyId=h;return{Ii:h,Gn:e,drmInfos:a,Ag:g,Ni:!0}}
function Xu(a,b,c,d){var e=Tu(a,c,d);if(b.Ni){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.Ni=!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 V(2,4,4008);return e.Ii||b.Ii}
function Yu(a){var b=Ud(a.node,"https://dashif.org/CPS","Laurl");if(b&&(b=Qd(b)))return b;if((b=Ud(a.node,"urn:microsoft:playready","pro"))&&Qd(b))return Su(b);if(a=Ud(a.node,"urn:mpeg:cenc:2013","pssh"))if(a=Qd(a)){b=hc(a);a=8;b=Ob(b);var c=b.getUint8(a);a+=20;0<c&&(a+=4+16*b.getUint32(a));a=Kb(b,a+4);a=ec(a);a=Id("<pro>"+a+"</pro>");return Su(a)}return""}
function Wu(a,b,c,d,e){var f=[];c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=d[g.Nd];if(h){var k;if((k=Ud(g.node,"urn:microsoft:playready","pro"))&&Qd(k)){k=Qd(k);k=hc(k);var l=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);k=[{initData:xh(k,l,new Set,0),initDataType:"cenc",keyId:g.keyId}]}else k=null;l=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===g.Nd){l=g;var m=e;if(0==m.size)l=null;else{var n=new Uint8Array([16,119,239,236,192,178,77,2,
172,227,60,30,82,226,251,75]),q=new Uint8Array([]);l=[{initData:xh(q,n,m,1),initDataType:"cenc",keyId:l.keyId}]}}k=mc(h,b,g.init||a||k||l);if(h=Zu.get(h))k.licenseServerUri=h(g);f.push(k)}}return f}function Uu(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=$u(c.value))&&b.push(c);return b}
function $u(a){var b=a.attributes.schemeIdUri,c=Xd(a,"urn:mpeg:cenc:2013","default_KID"),d=Vd(a,"urn:mpeg:cenc:2013","pssh").map(Rd),e=a.attributes.value;if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new V(2,4,4009);var f=[];try{f=d.map(function(g){return{initDataType:"cenc",initData:hc(g),keyId:null}})}catch(g){throw new V(2,4,4007);}return{node:a,Nd:b,keyId:c,init:0<f.length?f:null,encryptionScheme:e}}
function Vu(a){if(!window.crypto||!window.crypto.subtle)throw ab("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new V(2,4,4042);var b=Ud(a.node,"urn:mpeg:dash:schema:sea:2012","SegmentEncryption");if(!b)throw new V(2,4,4051);if("urn:mpeg:dash:sea:aes128-cbc:2013"!=b.attributes.schemeIdUri)throw new V(2,4,4051);b=Ud(a.node,"urn:mpeg:dash:schema:sea:2012","CryptoPeriod");if(!b)throw new V(2,4,4051);a=b.attributes.IV;b=cc(b.attributes.keyUriTemplate);
if(!a||!b)throw new V(2,4,4051);a=ic(a.substr(2));if(16!=a.byteLength)throw new V(2,4,4048);return{Cl:b,iv:a}}
var Zu=(new Map).set("com.apple.fps",function(a){if("apple"===window.shakaMediaKeysPolyfill)throw new V(2,4,4054);if(a=Ud(a.node,"https://dashif.org/CPS","Laurl"))if(a=Qd(a))return a;return""}).set("com.widevine.alpha",function(a){var b=Ud(a.node,"https://dashif.org/CPS","Laurl");return b&&(b=Qd(b))?b:(a=Ud(a.node,"urn:microsoft","laurl"))?cc(a.attributes.licenseUrl)||"":""}).set("com.microsoft.playready",Yu).set("com.microsoft.playready.recommendation",Yu).set("com.microsoft.playready.software",
Yu).set("com.microsoft.playready.hardware",Yu).set("org.w3.clearkey",function(a){var b=Ud(a.node,"https://dashif.org/CPS","Laurl");return b&&(b=Qd(b))?b:(a=Ud(a.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===a.attributes.Lic_type&&a&&(a=Qd(a))?a:""});function av(a,b,c,d,e,f){var g=(new Map).set("RepresentationID",b).set("Number",c).set("SubNumber",d).set("Bandwidth",e).set("Time",f);return a.replace(/\$(RepresentationID|Number|SubNumber|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(h,k,l,m){if("$$"==h)return"$";var n=g.get(k);if(null==n)return h;"RepresentationID"==k&&l&&(l=void 0);"Time"==k&&"bigint"!=typeof n&&(.2<=Math.abs(n-Math.round(n))&&ab("Calculated $Time$ values must be close to integers"),n=Math.round(n));switch(m){case void 0:case "d":case "i":case "u":h=
2025-06-19 04:02:44 +02:00
n.toString();break;case "o":h=n.toString(8);break;case "x":h=n.toString(16);break;case "X":h=n.toString(16).toUpperCase();break;default:h=n.toString()}l=window.parseInt(l,10)||1;return Array(Math.max(0,l-h.length)+1).join("0")+h})}
2025-06-27 11:02:59 +02:00
function bv(a,b){var c=cv(a,b,"timescale"),d=1;c&&(d=ce(c)||1);c=cv(a,b,"duration");var e=(c=ce(c||""))?c/d:null,f=cv(a,b,"startNumber"),g=Number(cv(a,b,"presentationTimeOffset"))||0,h=ee(f||"");if(null==f||null==h)h=1;f=null;if(b=dv(a,b,"SegmentTimeline")){b=Pd(b,"S");f=d;a=a.va.duration||Infinity;for(var k=h,l=[],m=-g,n=0;n<b.length;++n){var q=b[n],r=b[n+1],u=Wd(q,"t",ee),w=Wd(q,"d",ee),v=Wd(q,"r",be);q=Wd(q,"k",be)||0;null!=u&&(u-=g);if(w){u=null!=u?u:m;v=v||0;if(0>v)if(r){r=Wd(r,"t",ee);if(null==
r)break;else if(u>=r)break;v=Math.ceil((r-u)/w)-1}else{if(Infinity==a)break;else if(u/f>=a)break;v=Math.ceil((a*f-u)/w)-1}0<l.length&&u!=m&&(l[l.length-1].end=u/f);for(r=0;r<=v;++r)m=u+w,l.push({start:u/f,end:m/f,ni:u,zc:q,cm:l.length+k}),u=m}}f=l}return{timescale:d,hg:c,mb:e,Be:h,fc:g/d||0,mi:g,timeline:f}}function ev(a,b){return[b(a.M),b(a.ua),b(a.za)].filter(Cf)}function cv(a,b,c){b=ev(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=d.value.attributes[c]);d=b.next());return a}
function dv(a,b,c){b=ev(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=Td(d.value,c));d=b.next());return a}
function fv(a,b,c,d,e,f){for(var g=Xd(a,"http://www.w3.org/1999/xlink","href"),h=Xd(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Object.keys(a.attributes)),l=k.next();!l.done;l=k.next()){l=l.value;var m=l.split(":"),n=Kd("http://www.w3.org/1999/xlink");m[0]==n&&delete a.attributes[l]}if(5<=f)return Kg(new V(2,4,4028));if("onLoad"!=h)return Kg(new V(2,4,4027));var q=lc([d],[g]);return e.request(0,Xg(q,b)).ab(function(r){r=Hd(r.data,a.tagName);if(!r)return Kg(new V(2,4,4001,g));for(a.children=
[];r.children.length;){var u=r.children.shift();a.children.push(u)}u=t(Object.keys(r.attributes));for(var w=u.next();!w.done;w=u.next())w=w.value,a.attributes[w]=r.attributes[w];return gv(a,b,c,q[0],e,f+1)})}
function gv(a,b,c,d,e,f){f=void 0===f?0:f;if(Xd(a,"http://www.w3.org/1999/xlink","href")){var g=fv(a,b,c,d,e,f);c&&(g=g.ab(void 0,function(){return gv(a,b,c,d,e,f)}));return g}g=[];for(var h=t(Od(a)),k=h.next(),l={};!k.done;l={Vd:void 0},k=h.next())l.Vd=k.value,"urn:mpeg:dash:resolve-to-zero:2013"==Xd(l.Vd,"http://www.w3.org/1999/xlink","href")?a.children=a.children.filter(function(m){return function(n){return n!==m.Vd}}(l)):"SegmentTimeline"!=l.Vd.tagName&&g.push(gv(l.Vd,b,c,d,e,f));return Og(g).ab(function(){return a})}
;function hv(a,b,c,d,e,f,g){var h,k=(new lh).V("sidx",function(l){h=iv(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new V(2,3,3004);}
function iv(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.W();if(0==k)throw new V(2,3,3005);if(0==g.version){var l=g.reader.W();var m=g.reader.W()}else l=g.reader.Ld(),m=g.reader.Ld();g.reader.skip(2);var n=g.reader.Fa();a=a+g.size+m;for(m=0;m<n;m++){var q=g.reader.W(),r=(q&2147483648)>>>31;q&=2147483647;var u=g.reader.W();g.reader.skip(4);if(1==r)throw new V(2,3,3006);h.push(new Aj(l/k+c,(l+u)/k+c,function(){return f},a,a+q-1,b,c,d,e));l+=u;a+=q}g.parser.stop();return h};function jv(a){this.h=Ob(a);this.g=new ih(this.h,0)}jv.prototype.Oa=function(){return this.g.Oa()};
function kv(a){var b=lv(a);if(7<b.length)throw new V(2,3,3002);var c=0;b=t(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=lv(a);a:{d=t(mv);for(var e=d.next();!e.done;e=d.next())if(Jb(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.Ua();else{if(8==b.length&&b[1]&224)throw new V(2,3,3001);for(e=d=0;e<b.length;e++){var f=b[e];d=0==e?f&(1<<8-b.length)-1:256*d+f}b=d}b=a.g.Ua()+b<=a.h.byteLength?b:a.h.byteLength-a.g.Ua();d=Ob(a.h,a.g.Ua(),b);a.g.skip(b);return new nv(c,
d)}function lv(a){var b=a.g.Ua(),c=a.g.aa();if(0==c)throw new V(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Kb(a.h,b,c)}var mv=[[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 nv(a,b){this.id=a;this.g=b}
function ov(a){if(8<a.g.byteLength)throw new V(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new V(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function pv(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new jv(a.g);for(var n=null,q=null;a.Oa();){var r=kv(a);if(187==r.id){var u=qv(r);u&&(r=c*u.rm,u=b+u.Ul,null!=n&&m.push(new Aj(n+g,r+g,l,q,u-1,f,g,h,k)),n=r,q=u)}}null!=n&&m.push(new Aj(n+g,d+g,l,q,null,f,g,h,k));return m}
function qv(a){var b=new jv(a.g);a=kv(b);if(179!=a.id)throw new V(2,3,3013);a=ov(a);b=kv(b);if(183!=b.id)throw new V(2,3,3012);b=new jv(b.g);for(var c=0;b.Oa();){var d=kv(b);if(241==d.id){c=ov(d);break}}return{rm:a,Ul:c}};function rv(a,b,c){b=dv(a,b,"Initialization");if(!b)return null;var d=a.M.jb(),e=b.attributes.sourceURL;e&&(d=lc(d,[cc(e)],a.Ob()));e=0;var f=null;if(b=Wd(b,"range",ae))e=b.start,f=b.end;c=new yj(function(){return d},e,f,sv(a),null,null,c,a.ua.encrypted);c.codecs=a.M.codecs;c.mimeType=a.M.mimeType;a.va&&(c.g=a.va.start+a.va.duration);return c}
function tv(a,b,c){var d=Number(cv(a,uv,"presentationTimeOffset"))||0,e=cv(a,uv,"timescale"),f=1;e&&(f=ce(e)||1);var g=d/f||0,h=rv(a,uv,c);vv(a,h);var k=Fd(a);return{endTime:-1,timeline:-1,Zc:function(){var l=dv(k,uv,"RepresentationIndex");var m=k.M.jb();l&&(l=cc(l.attributes.sourceURL))&&(m=lc(m,[l],k.Ob()));l=wv(k);return xv(k,b,h,m,l.start,l.end,g)},timescale:f}}
function xv(a,b,c,d,e,f,g){var h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E;return Q(function(H){if(1==H.g)return h=a.presentationTimeline,k=!a.qc||!a.va.Zi,l=a.va.start,m=a.va.duration,n=a.M.mimeType.split("/")[1],q=b,r=null,u=[q(d,e,f,!1),"webm"==n?q(c.S(),c.startByte,c.endByte,!0):null],q=null,F(H,Promise.all(u),2);w=H.h;v=w[0];y=w[1]||null;z=null;A=l-g;B=l;D=m?l+m:Infinity;if("mp4"==n)var K=hv(v,e,d,c,A,B,D);else{K=v;var J=new jv(y);if(440786851!=kv(J).id)throw new V(2,3,3008);var L=kv(J);if(408125543!=
L.id)throw new V(2,3,3009);J=L.g.byteOffset;L=new jv(L.g);for(var N=null;L.Oa();){var O=kv(L);if(357149030==O.id){N=O;break}}if(!N)throw new V(2,3,3010);N=new jv(N.g);O=1E6;for(L=null;N.Oa();){var M=kv(N);if(2807729==M.id)O=ov(M);else if(17545==M.id)if(4==M.g.byteLength)L=M.g.getFloat32(0);else if(8==M.g.byteLength)L=M.g.getFloat64(0);else throw new V(2,3,3003);}if(null==L)throw new V(2,3,3011);N=O/1E9;L*=N;K=kv(new jv(K));if(475249515!=K.id)throw new V(2,3,3007);K=pv(K,J,N,L,d,c,A,B,D)}z=K;G=t(z);
for(C=G.next();!C.done;C=G.next())E=C.value,E.codecs=a.M.codecs,E.mimeType=a.M.mimeType,E.bandwidth=a.bandwidth;h.re(z);r=new Vl(z);k&&r.yd(B,D,!0);return H.return(r)})}function uv(a){return a.Od}function wv(a){var b=dv(a,uv,"RepresentationIndex");a=cv(a,uv,"indexRange");a=ae(a||"");b&&(a=Wd(b,"range",ae,a));return a}function vv(a,b){yv(a,b);if(!wv(a))throw new V(2,4,4002);}
function yv(a,b){var c=a.M.mimeType.split("/")[1];if(a.M.contentType!=sc&&"mp4"!=c&&"webm"!=c)throw new V(2,4,4006);if("webm"==c&&!b)throw new V(2,4,4005);}
function sv(a){var b=a.M;return{bandwidth:a.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate||null,height:b.height||null,mimeType:b.mimeType,channelsCount:b.Kf,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null,label:a.ua.label||null,roles:a.roles||null,language:a.ua.language||null}};function zv(a,b,c){var d=rv(a,Av,c),e=Bv(a);if(!e.mb&&!e.timeline&&1<e.Fd.length)throw new V(2,4,4002);if(!e.mb&&!a.va.duration&&!e.timeline&&1==e.Fd.length)throw new V(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new V(2,4,4002);var f=null,g=null;a.za.id&&a.M.id&&(g=b.get(a.za.id+","+a.M.id))&&(f=g.segmentIndex);var h=Cv(a.va.start,a.va.duration,a.M.jb,e,d,c,a.M.mimeType,a.M.codecs,a.bandwidth,a.Ob);b=!f;f?f.pe(h,a.presentationTimeline.Kb()):f=new Vl(h);a.presentationTimeline.re(h);a.qc&&
a.va.Zi||f.yd(a.va.start,a.va.duration?a.va.start+a.va.duration:Infinity,b);g&&(g.segmentIndex=f);return{endTime:-1,timeline:-1,Zc:function(){f&&0!=f.getNumReferences()||f.Ff(h);return Promise.resolve(f)},timescale:e.timescale}}function Av(a){return a.Bc}function Bv(a){var b=Dv(a);a=bv(a,Av);var c=a.Be;0==c&&(c=1);var d=0;a.mb?d=a.mb*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{mb:a.mb,startTime:d,Be:c,fc:a.fc,timescale:a.timescale,timeline:a.timeline,Fd:b}}
function Cv(a,b,c,d,e,f,g,h,k,l){var m=d.Fd.length;d.timeline&&d.timeline.length!=d.Fd.length&&(m=Math.min(d.timeline.length,d.Fd.length));for(var n=a-d.fc,q=b?a+b:Infinity,r=[],u=d.startTime,w={},v=0;v<m;w={jg:void 0,Yf:void 0},v++){w.Yf=d.Fd[v];var y=u;u=void 0;u=null!=d.mb?y+d.mb:d.timeline?d.timeline[v].end:y+b;w.jg=null;w=new Aj(a+y,a+u,function(z){return function(){null==z.jg&&(z.jg=lc(c(),[z.Yf.Jl],l()));return z.jg}}(w),w.Yf.start,w.Yf.end,e,n,a,q,[],"",null,null,Bj,f);w.codecs=h;w.mimeType=
g;w.bandwidth=k;r.push(w)}return r}function Dv(a){return[a.M.Bc,a.ua.Bc,a.za.Bc].filter(Cf).map(function(b){return Pd(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.attributes.indexRange&&!a.rh&&(a.rh=!0);var c=cc(b.attributes.media);b=Wd(b,"mediaRange",ae,{start:0,end:null});return{Jl:c,start:b.start,end:b.end}})};function Ev(a,b,c,d,e,f,g,h,k,l){k||a.M.vf||(a.M.vf=cv(a,Fv,"initialization"));var m=a.M.vf?Gv(a,g):null,n=Hv(a);Iv(n);var q=Fd(a);if(n.je)return yv(a,m),{endTime:-1,timeline:-1,Zc:function(){var y=av(n.je,q.M.originalId,null,null,q.bandwidth||null,null);y=lc(q.M.jb(),[y]);return xv(q,b,m,y,0,null,n.fc)},timescale:n.timescale};if(n.mb)return d||"image"===a.ua.contentType||"text"===a.ua.contentType||(d=a.va.start,l=a.za.id,c=a.va.duration,l=(l=null!=l&&f.get(l)||c)?d+l:Infinity,a.presentationTimeline.Ch(n.mb),
a.presentationTimeline.kj(d,l)),{endTime:-1,timeline:-1,Zc:function(){return Jv(q,n,e,m,f,g,h,a.M.Zf)},timescale:n.timescale};var r=null;d=d=null;a.za.id&&a.M.id&&(d=a.za.id+","+a.M.id,d=c.get(d))&&(r=d.segmentIndex);var u=a.va.start,w=a.va.duration?u+a.va.duration:Infinity;if(r)l=r,Kv(l,n,u,w,m),l.hb(a.presentationTimeline.Kb());else{c=0;k=-1;if(null!=a.za.id&&null!=a.M.id){var v=l.get(a.za.id);if(v)k=v.timeline;else for(l=t(l.values()),v=l.next();!v.done;v=l.next())if(v=v.value,Math.abs(n.fc-v.endTime)<=
vc&&v.Lh.includes(a.M.id)){k=v.timeline;break}else v.timeline>=c&&(c=v.timeline+1)}-1==k&&(k=c);r=new Lv(n,a.M.originalId,a.bandwidth,a.M.jb,a.Ob,u,w,m,g,a.M.Zf,k)}n.timeline&&"image"!==a.ua.contentType&&"text"!==a.ua.contentType&&a.presentationTimeline.lj(r.h?r.h.timeline:[],u);d&&a.qc&&(d.segmentIndex=r);d=(d=(d=n.timeline)&&d[d.length-1])?d.end+n.fc:-1;l=-1;r instanceof Lv&&(l=r.hf());return{endTime:d,timeline:l,Zc:function(){r instanceof Lv&&0==r.getNumReferences()&&Kv(r,n,u,w,m);return Promise.resolve(r)},
timescale:n.timescale}}function Fv(a){return a.Pc}function Hv(a){var b=bv(a,Fv),c=cv(a,Fv,"media"),d=cv(a,Fv,"index"),e=cv(a,Fv,"k"),f=0;e&&(f=parseInt(e,10));return{hg:b.hg,mb:b.mb,timescale:b.timescale,Be:b.Be,fc:b.fc,mi:b.mi,timeline:b.timeline,ec:c&&cc(c),je:d,mimeType:a.M.mimeType,codecs:a.M.codecs,bandwidth:a.bandwidth,Kl:f}}
function Iv(a){var b=a.je?1:0;b+=a.timeline?1:0;b+=a.mb?1:0;if(0==b)throw new V(2,4,4002);1!=b&&(a.je&&(a.timeline=null),a.hg=null,a.mb=null);if(!a.je&&!a.ec)throw new V(2,4,4002);}
function Jv(a,b,c,d,e,f,g,h){function k(L){var N=L-v,O=N*w,M=b.hg,P=N*M;"BigInt"in window&&P>Number.MAX_SAFE_INTEGER&&(P=BigInt(N)*BigInt(M));O+=q;N=O+w;M=Math.min(N,m());var R=[],T=b.Kl;if(T)for(var ca=(M-O)/T,Y={},Ma=0;Ma<T;Y={Mj:void 0},Ma++){var Na=O+ca*Ma,Ea=Na+ca;Y.Mj=Ma+1;Y=new Aj(Na,Ea,function(va){return function(){var Ja=av(y,A,L,va.Mj,z,P);return lc(B(),[Ja],D())}}(Y),0,null,d,G,q,m(),[],"",null,null,Bj,f);Y.codecs=a.M.codecs;Y.mimeType=a.M.mimeType;0==h?0<Ma&&Y.Dd():0!=Ma%h&&Y.Dd();R.push(Y)}O=
new Aj(O,M,function(){if(T)return[];var va=av(y,A,L,null,z,P);return lc(B(),[va],D())},0,null,d,G,q,m(),R,"",null,null,Bj,f,0<R.length);O.codecs=a.M.codecs;O.mimeType=a.M.mimeType;O.bandwidth=a.bandwidth;O.j=N;return O}function l(){var L=[Math.max(n.Kb(),q),Math.min(n.Hc(),m())].map(function(N){return N-q});L=[Math.ceil(L[0]/w),Math.ceil(L[1]/w)-1];a.M.wb&&L[1]++;return L.map(function(N){return N+v})}function m(){var L=null!=r&&e.get(r)||u;return L?q+L:Infinity}var n=a.presentationTimeline,q=a.va.start,
r=a.za.id,u=a.va.duration,w=b.mb,v=b.Be,y=b.ec,z=a.bandwidth||null,A=a.M.originalId,B=a.M.jb,D=a.Ob,G=q-b.fc,C=l();c=a.qc?Math.max(C[0],C[1]-c+1):C[0];g=g||C[1];C=[];for(var E=c;E<=g;++E){var H=k(E);C.push(H)}var K=new Vl(C);C=n.Hc()<m();E=n.T();if(C||E){var J=Math.max(c,g+1);c=w;a.M.wb&&(c=.1);K.ig(c,function(){var L=n.Kb();K.hb(L);var N=t(l());N.next();N=N.next().value;for(var O=[];J<=N;){var M=k(J);O.push(M);J++}return L>m()&&!O.length?null:O})}return Promise.resolve(K)}
function Gv(a,b){var c=a.M.vf;c||(c=cv(a,Fv,"initialization"));if(!c)return null;c=cc(c);var d=a.M.originalId,e=a.bandwidth||null,f=a.M.jb,g=a.Ob;b=new yj(function(){var h=av(c,d,null,null,e,null);return lc(f(),[h],g())},0,null,sv(a),null,null,b,a.ua.encrypted);b.codecs=a.M.codecs;b.mimeType=a.M.mimeType;a.va&&(b.g=a.va.start+a.va.duration);return b}
function Lv(a,b,c,d,e,f,g,h,k,l,m){Vl.call(this,[]);this.h=a;this.F=b;this.C=c;this.D=d;this.H=e;this.j=f;this.l=g;this.u=h;this.B=k;this.G=l;this.I=m;Mv(this)}pa(Lv,Vl);p=Lv.prototype;p.getNumReferences=function(){return this.h?this.h.timeline.length:0};p.release=function(){Vl.prototype.release.call(this);this.h=null};
2025-06-19 04:02:44 +02:00
p.hb=function(a){if(this.h){for(var b=0,c=this.h.timeline,d=0;d<c.length;d+=1)if(c[d].end+this.j<=a)b+=1;else break;0<b&&(this.h.timeline=c.slice(b),this.g.length>=b&&(this.g=this.g.slice(b)),this.i+=b,0===this.getNumReferences()&&this.release())}};
2025-06-27 11:02:59 +02:00
function Kv(a,b,c,d,e){Nv(a,e);if(a.h){c=a.h.timeline;a.h.ec!==b.ec&&(a.h.ec=b.ec);if(c.length){var f=c[c.length-1];b=b.timeline.filter(function(g){return g.end>f.end})}else b=b.timeline.slice();0<b.length&&a.h.timeline.push.apply(a.h.timeline,x(b));a.l!==d&&(a.l=d)}else a.h=b,a.j=c,a.l=d;Mv(a)}function Nv(a,b){if(a.u!==b){a.u=b;a=t(a.g);for(var c=a.next();!c.done;c=a.next())(c=c.value)&&Dj(c,b)}}
function Mv(a){if(a.h&&!a.s){for(var b=[],c=t(a.h.timeline),d=c.next();!d.done;d=c.next())d=d.value,d.start>=a.l||0>=d.end||b.push(d);a.h.timeline=b;a.hb(a.j)}}
2025-06-19 04:02:44 +02:00
p.find=function(a){if(this.h&&this.h.timeline&&this.h.timeline.length&&a<this.h.timeline[0].start+this.j)return this.i;if(!this.h)return null;var b=this.h.timeline;if(a<this.j||a>=this.l)return null;for(var c=b.length-1,d=0;d<b.length;d++){var e=b[d],f=e.start+this.j;e=d<c?b[d+1].start+this.j:Infinity===this.l?e.end+this.j:this.l;if(a>=f&&a<e)return d+this.i}return null};
2025-06-27 11:02:59 +02:00
p.get=function(a){var b=this;a-=this.i;if(0>a||a>=this.getNumReferences()||!this.h)return null;var c=this.g[a];if(!c){c=this.h.timeline[a];var d=c.cm,e=c.ni+this.h.mi,f=this.j-this.h.fc,g=this.j+c.end,h=g;a===this.getNumReferences()-1&&Infinity!==this.l&&(h=.1<Math.abs(h-this.l)?Math.min(h,this.l):this.l);var k=this.h.codecs,l=this.h.mimeType,m=this.h.bandwidth,n=[],q=!1;c.zc&&this.h&&this.h.ec&&(q=this.h.ec.includes("$SubNumber$"));if(q){q=(c.end-c.start)/c.zc;for(var r={},u=0;u<c.zc;r={kg:void 0,
Nj:void 0},u++){var w=c.start+q*u,v=w+q;r.Nj=u+1;r.kg=null;r=new Aj(this.j+w,this.j+v,function(y){return function(){if(!b.h)return[];null==y.kg&&(y.kg=Ov(b.h.ec,b.F,d,b.C,e,y.Nj,b.D,b.H));return y.kg}}(r),0,null,this.u,f,this.j,this.l,[],"",null,null,Bj,this.B);r.codecs=k;r.mimeType=l;r.bandwidth=m;0==this.G?0<u&&r.Dd():0!=u%this.G&&r.Dd();n.push(r)}}c=new Aj(this.j+c.start,h,function(){return 0<n.length||!b.h?[]:Ov(b.h.ec,b.F,d,b.C,e,null,b.D,b.H)},0,null,this.u,f,this.j,this.l,n,"",null,null,Bj,
this.B,0<n.length);c.codecs=k;c.mimeType=l;c.j=g;c.bandwidth=m;this.g[a]=c}return c};p.Hb=function(a){Mv(this);for(var b=0;b<this.getNumReferences();b++){var c=this.get(b+this.i);c&&a(c)}};function Ov(a,b,c,d,e,f,g,h){a=av(a,b,c,f,d||null,e);return lc(g(),[a],h()).map(function(k){return k.toString()})}p.hf=function(){return this.I};function Pv(a){this.s=null;this.B=a;this.G=new Qg;this.i=[];this.h=null;this.m=[];this.C=null;this.F=[];this.D=300;this.l=new Map;this.j=new Map;this.g=null;this.u="UNKNOWN"}Pv.prototype.configure=function(a){this.s=a};Pv.prototype.destroy=function(){this.B=this.s=null;this.i=[];this.h=null;this.m=[];this.F=[];this.l.clear();null!=this.g&&(this.g.stop(),this.g=null);return this.G.destroy()};Pv.prototype.setManifestType=function(a){this.u=a};
function Qv(a,b){var c,d,e,f,g,h,k;return Q(function(l){if(1==l.g)return c=lc(a.i,[Rv(a,b)]),d=Xg(c,a.s.retryParameters),e=a.B.networkingEngine.request(8,d),Rg(a.G,e),ta(l,2),F(l,e.promise,4);if(2!=l.g)return f=l.h,g=Wb(f.data),h=JSON.parse(g),1==h.VERSION&&Sv(a,h,f.uri),wa(l,0);if((k=xa(l))&&7001==k.code)return l.return();null!=a.g&&(a.g.stop(),a.g=null);a.g=new zf(function(){Qv(a,b)});a.g.X(a.D);I(l)})}
function Rv(a,b){if(!a.m.length)return b;b=new qb(b);var c=a.C||a.m[0],d=Math.round(a.B.getBandwidthEstimate()),e=b.g;"DASH"==a.u?(e.add("_DASH_pathway",c),e.add("_DASH_throughput",String(d))):"HLS"==a.u&&(e.add("_HLS_pathway",c),e.add("_HLS_throughput",String(d)));Hb(e)&&vb(b,e);return b.toString()}function Sv(a,b,c){null!=a.g&&(a.g.stop(),a.g=null);var d=b["RELOAD-URI"]||c;a.g=new zf(function(){Qv(a,d)});if(c=b.TTL)a.D=c;a.g.X(a.D);a.m=b["PATHWAY-PRIORITY"]||[];a.F=b["PATHWAY-CLONES"]||[]}
function Tv(a,b,c,d){var e=a.l.get(b);e||(e=new Map);e.set(c,d);a.l.set(b,e)}Pv.prototype.banLocation=function(a){this.j.set(a,Date.now()+6E4)};
function Uv(a,b,c){c=void 0===c?!1:c;b=a.l.get(b)||new Map;for(var d=[],e=t(a.m),f=e.next(),g={};!f.done;g={Hd:void 0},f=e.next())if(g.Hd=f.value,f=b.get(g.Hd))d.push({Hh:g.Hd,location:f});else if(f=a.F.find(function(k){return function(l){return l.Pm==k.Hd}}(g))){var h=b.get(f["BASE-ID"]);h&&(f["URI-REPLACEMENT"].$j?(h=new qb(h),tb(h,f["URI-REPLACEMENT"].$j),d.push({Hh:g.Hd,location:h.toString()})):d.push({Hh:g.Hd,location:h}))}e=Date.now();g=t(a.j.keys());for(f=g.next();!f.done;f=g.next())f=f.value,
h=a.j.get(f),e>h&&a.j.delete(f);d=d.filter(function(k){for(var l=t(a.j.keys()),m=l.next();!m.done;m=l.next())if(m.value.includes((new qb(k.location)).Gb))return!1;return!0});d.length&&(a.C=d[0].Hh);d=d.map(function(k){return k.location});if(!d.length&&a.h)for(e=t(a.h.split(",")),g=e.next();!g.done;g=e.next())if(g=b.get(g.value))a.C=a.h,d.push(g);if(!d.length)for(b=t(b.values()),e=b.next();!e.done;e=b.next())d.push(e.value);return c?d:lc(a.i,d)};function Vv(){this.l=[];this.h=[];this.g=[];this.j=[];this.i=[];this.u=this.s=!1;this.m=new Set}p=Vv.prototype;p.release=function(){for(var a=t(this.h.concat(this.g,this.j,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.h=[];this.g=[];this.j=[];this.i=[];this.l=[];this.u=this.s=!1;this.m.clear()};p.jl=function(){return this.l};p.mh=function(){return this.j.slice()};p.Hk=function(){return this.i};
p.Ji=function(a,b){if(a){if("audio"==a.type)for(var c=t(this.h),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a});else if("video"==a.type)for(c=t(this.g),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a}),d.trickModeVideo&&(d.trickModeVideo.matchedStreams=d.trickModeVideo.matchedStreams.filter(function(e){return e!==a})),d.dependencyStream&&(d.dependencyStream.matchedStreams=d.dependencyStream.matchedStreams.filter(function(e){return e!==
a}));else if(a.type==sc)for(c=t(this.j),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a});else if("image"==a.type)for(c=t(this.i),d=c.next();!d.done;d=c.next())d=d.value,d.matchedStreams=d.matchedStreams.filter(function(e){return e!==a});a.segmentIndex&&a.closeSegmentIndex();this.m.delete(b)}};
function Wv(a,b){var c=[],d=[],e=[],f=[];a=t(a);for(var g=a.next();!g.done;g=a.next()){var h=g.value;g=new Map(h.audioStreams.map(function(n){return[Xv(n),n]}));var k=new Map(h.videoStreams.map(function(n){return[Yv(n),n]})),l=new Map(h.textStreams.map(function(n){return[Zv(n),n]}));h=new Map(h.imageStreams.map(function(n){return[$v(n),n]}));if(b){var m=aw(sc);l.set(Zv(m),m);m=aw("image");h.set($v(m),m)}c.push(g);d.push(k);e.push(l);f.push(h)}return{zi:c,Xj:d,Sj:e,Wi:f}}
p.Hg=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L,N,O,M,P,R,T,ca;return Q(function(Y){if(1==Y.g){e=uc;if(!b&&1==a.length)return f=Wv(a,!1),g=f.zi,h=f.Xj,k=f.Sj,l=f.Wi,d.h=Array.from(g[0].values()),d.g=Array.from(h[0].values()),d.j=Array.from(k[0].values()),d.i=Array.from(l[0].values()),Y.A(2);m=c?d.m.size:0;n=-1;for(q=0;q<a.length;q++)r=a[q],d.m.has(r.id)||(d.m.add(r.id),-1==n&&(n=q));if(-1==n)return Y.return();u=Wv(a,!0);w=u.zi;v=u.Xj;y=u.Sj;z=u.Wi;
return F(Y,Promise.all([bw(d,d.h,w,n,cw,dw,m),bw(d,d.g,v,n,cw,dw,m),bw(d,d.j,y,n,cw,dw,m),bw(d,d.i,z,n,cw,dw,m)]),2)}A=0;B=[];if(d.g.length&&d.h.length)for(J=t(d.h),L=J.next();!L.done;L=J.next())for(N=L.value,O=t(d.g),M=O.next();!M.done;M=O.next())P=M.value,R=wg(N.drmInfos,P.drmInfos),N.drmInfos.length&&P.drmInfos.length&&!R.length||(T=(N.bandwidth||0)+(P.bandwidth||0),N.dependencyStream&&(T+=N.dependencyStream.bandwidth||0),P.dependencyStream&&(T+=P.dependencyStream.bandwidth||0),ca=A++,B.push({id:ca,
language:N.language,disabledUntilTime:0,primary:N.primary,audio:N,video:P,bandwidth:T,drmInfos:R,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(D=d.g.length?d.g:d.h,G=t(D),C=G.next();!C.done;C=G.next())E=C.value,H=A++,K=E.bandwidth||0,E.dependencyStream&&(K+=E.dependencyStream.bandwidth||0),B.push({id:H,language:E.language,disabledUntilTime:0,primary:E.primary,audio:E.type==e.ma?E:null,video:E.type==e.Ea?E:null,bandwidth:K,drmInfos:E.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,
decodingInfos:[]});d.l=B;I(Y)})};
function ew(a){var b,c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L,N,O;return Q(function(M){switch(M.g){case 1:b=uc;if(1==a.length)return M.return(a[0]);c=a.map(function(P){return new Map(P.filter(function(R){return R.type===b.ma}).map(function(R){return[Xv(R),R]}))});d=a.map(function(P){return new Map(P.filter(function(R){return R.type===b.Ea}).map(function(R){return[Yv(R),R]}))});e=a.map(function(P){return new Map(P.filter(function(R){return R.type===b.gb}).map(function(R){return[Zv(R),R]}))});
f=a.map(function(P){return new Map(P.filter(function(R){return R.type===b.qg}).map(function(R){return[$v(R),R]}))});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=fw(b.gb),k.set(Zv(l),l);m=t(f);for(n=m.next();!n.done;n=m.next())q=n.value,r=fw(b.qg),q.set($v(r),r);u=new Vv;return F(M,bw(u,[],c,0,gw,hw,0),2);case 2:return w=M.h,F(M,bw(u,[],d,0,gw,hw,0),3);case 3:return v=M.h,F(M,bw(u,[],e,0,gw,hw,0),4);case 4:return y=M.h,F(M,bw(u,[],f,0,gw,hw,0),5);case 5:z=M.h;A=0;if(v.length&&w.length)for(E=
t(w),H=E.next();!H.done;H=E.next())for(K=H.value,J=t(v),L=J.next();!L.done;L=J.next())N=L.value,O=A++,N.variantIds.push(O),K.variantIds.push(O);else for(B=v.concat(w),D=t(B),G=D.next();!G.done;G=D.next())C=G.value,C.variantIds=[A++];return M.return(v.concat(w).concat(y).concat(z))}})}
function bw(a,b,c,d,e,f,g){var h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K;return Q(function(J){switch(J.g){case 1:h=[];for(k=0;k<c.length;k++)k>=d?h.push(new Set(c[k].values())):h.push(new Set);l=t(b);m=l.next();case 2:if(m.done){J.A(4);break}n=m.value;return F(J,iw(a,n,c,d,f,h,g),5);case 5:q=J.h;if(!q)throw new V(2,4,4037);m=l.next();J.A(2);break;case 4:r=t(h);for(u=r.next();!u.done;u=r.next())for(w=u.value,v=t(w),y=v.next();!y.done;y=v.next())z=y.value,(A=jw(a,z,c,e,f,h))&&b.push(A);B=t(h);for(D=B.next();!D.done;D=
B.next())for(G=D.value,C=t(G),E=C.next(),H={};!E.done;H={ai:void 0},E=C.next())if(H.ai=E.value,!kw(H.ai)&&(K=b.some(function(L){return function(N){return lw(a,L.ai,N)}}(H))))throw new V(2,4,4037);return J.return(b)}})}function iw(a,b,c,d,e,f,g){return Q(function(h){if(1==h.g)return mw(a,c,b,0<g),b.matchedStreams?b.segmentIndex?F(h,nw(b,d+g),2):h.A(2):h.return(!1);ow(b,d,e,f,g);return h.return(!0)})}
function nw(a,b){var c,d,e,f,g,h;return Q(function(k){if(1==k.g){c=[];d=a.matchedStreams;for(e=b;e<d.length;e++)f=d[e],c.push(f.createSegmentIndex()),f.trickModeVideo&&!f.trickModeVideo.segmentIndex&&c.push(f.trickModeVideo.createSegmentIndex()),f.dependencyStream&&!f.dependencyStream.segmentIndex&&c.push(f.dependencyStream.createSegmentIndex());return F(k,Promise.all(c),2)}if(a.segmentIndex instanceof Yl)for(g=b;g<d.length;g++)h=d[g],h.segmentIndex&&a.segmentIndex.h.push(h.segmentIndex);I(k)})}
function jw(a,b,c,d,e,f){if(kw(b))return null;var g=d(b);mw(a,c,g);g.createSegmentIndex&&(g.createSegmentIndex=function(){return Q(function(h){if(g.segmentIndex)return h.A(0);g.segmentIndex=new Yl;return F(h,nw(g,0),0)})});if(!g.matchedStreams||!g.matchedStreams.length)return null;ow(g,0,e,f,0);return g}
function ow(a,b,c,d,e){var f=a.matchedStreams;for(b+=e;b<f.length;b++){var g=f[b];c(a,g);var h=!0;"audio"==a.type&&0==Ec(a.language,g.language)&&(h=!1);if(h&&(d[b-e].delete(g),g.fullMimeTypes))for(g=t(g.fullMimeTypes.values()),h=g.next();!h.done;h=g.next())a.fullMimeTypes.add(h.value)}}
function cw(a){var b=Object.assign({},a);b.originalId=null;b.createSegmentIndex=function(){return Promise.resolve()};b.closeSegmentIndex=function(){b.segmentIndex&&(b.segmentIndex.release(),b.segmentIndex=null);if(b.matchedStreams)for(var c=t(b.matchedStreams),d=c.next();!d.done;d=c.next())d=d.value,d.segmentIndex&&(d.segmentIndex.release(),d.segmentIndex=null)};b.roles=b.roles.slice();b.segmentIndex=null;b.emsgSchemeIdUris=[];b.keyIds=new Set(a.keyIds);b.closedCaptions=a.closedCaptions?new Map(a.closedCaptions):
null;b.trickModeVideo=null;b.dependencyStream=null;return b}function gw(a){var b=Object.assign({},a);b.roles=b.roles.slice();b.keyIds=new Set(a.keyIds);b.segments=[];b.variantIds=[];b.closedCaptions=a.closedCaptions?new Map(a.closedCaptions):null;return b}
function dw(a,b){function c(g,h){g||(g=[]);h=t(h);for(var k=h.next();!k.done;k=h.next())k=k.value,g.includes(k)||g.push(k);return g}a.roles=c(a.roles,b.roles);b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=c(a.emsgSchemeIdUris,b.emsgSchemeIdUris));for(var d=t(b.keyIds),e=d.next();!e.done;e=d.next())a.keyIds.add(e.value);null==a.originalId?a.originalId=b.originalId:(d=b.originalId||"")&&!a.originalId.endsWith(d)&&(a.originalId+=","+d);d=wg(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!d.length)throw new V(2,
4,4038);a.drmInfos=d;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),d=t(b.closedCaptions),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.closedCaptions.set(e,f)}a.bandwidth&&b.bandwidth&&(a.bandwidth=Math.max(a.bandwidth,b.bandwidth));b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=cw(b.trickModeVideo),a.trickModeVideo.matchedStreams=[],a.trickModeVideo.createSegmentIndex=function(){if(a.trickModeVideo.segmentIndex)return Promise.resolve();
for(var g=new Yl,h=t(a.trickModeVideo.matchedStreams),k=h.next();!k.done;k=h.next())g.h.push(k.value.segmentIndex);a.trickModeVideo.segmentIndex=g;return Promise.resolve()}),a.trickModeVideo.matchedStreams.push(b.trickModeVideo),dw(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&(a.trickModeVideo.matchedStreams.push(b),dw(a.trickModeVideo,b));b.dependencyStream?(a.dependencyStream||(a.dependencyStream=cw(b.dependencyStream),a.dependencyStream.matchedStreams=[],a.dependencyStream.createSegmentIndex=
function(){if(a.dependencyStream.segmentIndex)return Promise.resolve();for(var g=new Yl,h=t(a.dependencyStream.matchedStreams),k=h.next();!k.done;k=h.next())g.h.push(k.value.segmentIndex);a.dependencyStream.segmentIndex=g;return Promise.resolve()}),a.dependencyStream.matchedStreams.push(b.dependencyStream),dw(a.dependencyStream,b.dependencyStream)):a.dependencyStream&&(a.dependencyStream.matchedStreams.push(b),dw(a.dependencyStream,b))}
function hw(a,b){var c=a.roles;c||(c=[]);for(var d=t(b.roles),e=d.next();!e.done;e=d.next())e=e.value,c.includes(e)||c.push(e);a.roles=c;c=t(b.keyIds);for(d=c.next();!d.done;d=c.next())a.keyIds.add(d.value);a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,x(b.segments));if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),b=t(b.closedCaptions),c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,a.closedCaptions.set(c,d)}
function mw(a,b,c,d){d=(void 0===d?0:d)?c.matchedStreams:[];b=t(b);for(var e=b.next();!e.done;e=b.next()){e=pw(a,e.value,c);if(!e)return;d.push(e)}c.matchedStreams=d}
function pw(a,b,c){var d={audio:Xv,video:Yv,text:Zv,image:$v}[c.type],e=null,f=d(c);if(b.has(f))e=b.get(f);else{f={audio:function(l,m){return lw(a,l,m)},video:function(l,m){return lw(a,l,m)},text:qw,image:rw}[c.type];for(var g={audio:sw,video:tw,text:uw,image:vw}[c.type],h=t(b.values()),k=h.next();!k.done;k=h.next())k=k.value,!f(c,k)||c.fastSwitching!=k.fastSwitching||e&&!g(c,e,k)||(e=k)}a.u&&!kw(e)&&b.delete(d(e));return e}
function ww(a,b){return a.mimeType!=b.mimeType?!1:xw(a.codecs)===xw(b.codecs)}p.Bj=function(a){this.s=a};p.Hj=function(a){this.u=a};function lw(a,b,c){return!ww(b,c)&&!a.s||b.drmInfos&&!sg(b.drmInfos,c.drmInfos)?!1:!0}function qw(a,b){return b.language?a.forced!==b.forced||0==Ec(a.language,b.language)||b.kind!=a.kind?!1:!0:!0}function rw(){return!0}
function sw(a,b,c){var d=ww(a,b),e=ww(a,c);if(d&&!e)return!1;if(!d&&e)return!0;d=Ec(a.language,b.language);e=Ec(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(b.label!==c.label){if(a.label===b.label)return!1;if(a.label===c.label)return!0}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;if(c.roles.length!==b.roles.length)return c.roles.length<
b.roles.length}else{if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1}if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;d=yw(a.channelsCount,b.channelsCount,c.channelsCount);if(d==zw)return!0;if(d==Aw)return!1;d=yw(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==zw?!0:d==Aw?!1:a.bandwidth&&Bw(a.bandwidth,b.bandwidth,c.bandwidth)==zw?!0:!1}
function tw(a,b,c){var d=ww(a,b),e=ww(a,c);if(d&&!e)return!1;if(!d&&e)return!0;d=yw(a.width*a.height,b.width*b.height,c.width*c.height);if(d==zw)return!0;if(d==Aw)return!1;if(a.frameRate){d=yw(a.frameRate,b.frameRate,c.frameRate);if(d==zw)return!0;if(d==Aw)return!1}return a.bandwidth&&Bw(a.bandwidth,b.bandwidth,c.bandwidth)==zw?!0:!1}
function uw(a,b,c){var d=Ec(a.language,b.language),e=Ec(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(b.label!==c.label){if(a.label===b.label)return!1;if(a.label===c.label)return!0}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!=a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function vw(a,b,c){return yw(a.width*a.height,b.width*b.height,c.width*c.height)==zw?!0:!1}
function fw(a){return{id:0,originalId:"",groupId:null,primary:!1,type:a,mimeType:"",codecs:"",language:"",originalLanguage:null,label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1,fastSwitching:!1,isAudioMuxedInVideo:!1,baseOriginalId:null}}
function aw(a){return{id:0,originalId:"",groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Vl([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",originalLanguage:null,label:null,type:a,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set,isAudioMuxedInVideo:!1,
baseOriginalId:null}}function yw(a,b,c){if(b==a&&a!=c)return Aw;if(c==a&&a!=b)return zw;if(b>a){if(c<=a||c-a<b-a)return zw;if(c-a>b-a)return Aw}else{if(c>a)return Aw;if(a-c<a-b)return zw;if(a-c>a-b)return Aw}return Cw}function Bw(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?zw:b<a?Aw:Cw}function kw(a){switch(a.type){case sc:return!a.language;case "image":return!a.tilesLayout;default:return!1}}
function Yv(a){return JSON.stringify([a.fastSwitching,a.width,a.frameRate,xw(a.codecs),a.mimeType,a.label,a.roles,a.closedCaptions?Array.from(a.closedCaptions.entries()):null,a.bandwidth,a.dependencyStream?a.dependencyStream.baseOriginalId:null,Array.from(a.keyIds)])}
function Xv(a){return JSON.stringify([a.fastSwitching,a.channelsCount,a.language,a.bandwidth,a.label,xw(a.codecs),a.mimeType,a.roles,a.audioSamplingRate,a.primary,a.dependencyStream?a.dependencyStream.baseOriginalId:null,Array.from(a.keyIds)])}function Zv(a){return JSON.stringify([a.language,a.label,a.codecs,a.mimeType,a.bandwidth,a.roles])}function $v(a){return JSON.stringify([a.width,a.codecs,a.mimeType])}function xw(a){if(!Dw.has(a)){var b=gf(a);Dw.set(a,b)}return Dw.get(a)}
S("shaka.util.PeriodCombiner",Vv);Vv.prototype.setUseStreamOnce=Vv.prototype.Hj;Vv.prototype.setAllowMultiTypeVariants=Vv.prototype.Bj;Vv.prototype.combinePeriods=Vv.prototype.Hg;Vv.prototype.deleteStream=Vv.prototype.Ji;Vv.prototype.getImageStreams=Vv.prototype.Hk;Vv.prototype.getTextStreams=Vv.prototype.mh;Vv.prototype.getVariants=Vv.prototype.jl;var zw=1,Cw=0,Aw=-1,Dw=new Map;function Ew(a,b){var c=new DOMParser,d=Fw.value()(a);a=null;try{a=c.parseFromString(d,"text/xml")}catch(e){return null}c=a.documentElement;if(!c||c.getElementsByTagName("parsererror").length||c.tagName!=b)return null;if(!("createNodeIterator"in document))return c;for(b=document.createNodeIterator(a,NodeFilter.SHOW_ALL);a=b.nextNode();)if(a instanceof HTMLElement||a instanceof SVGElement)return null;return c}function Gw(a,b){try{var c=Zb(a);return Ew(c,b)}catch(d){return null}}
var Fw=new Qb(function(){if("undefined"!==typeof trustedTypes){var a=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(b){return b}});return function(b){return a.createHTML(b)}}return function(b){return b}});function Hw(){var a=this;this.j=this.g=null;this.B=[];this.i=null;this.sa=1;this.G=[];this.l={Hf:"",type:"",profiles:[],vc:null,wb:0,jb:null,ue:0};this.u=new Map;this.C=new Map;this.s=new Map;this.D=new Map;this.oa=new Map;this.m=new Vv;this.J=0;this.ra=new Lc(5);this.K=new zf(function(){if(a.I&&!a.g.continueLoadingWhenPaused&&(a.H.Da(a.I,"timeupdate"),a.I.paused)){a.H.qa(a.I,"timeupdate",function(){return Iw(a)});return}Iw(a)});this.O=new Qg;this.N=null;this.F=[];this.Z=Infinity;this.na=!1;this.h=
null;this.L=0;this.P=!1;this.H=new Oc;this.I=null;this.R=!1;this.Y="";this.ba=function(){return!1};this.U=[];this.$=new Set}p=Hw.prototype;p.configure=function(a,b){var c=this.j&&a.updatePeriod!=this.g.updatePeriod&&0<=a.updatePeriod;this.g=a;b&&(this.ba=b);c&&this.i&&this.i.presentationTimeline.T()&&this.K.Ka();this.h&&this.h.configure(this.g);this.m&&(this.m.Bj(this.g.dash.multiTypeVariantsAllowed&&dd()),this.m.Hj(this.g.dash.useStreamOnceInPeriodFlattening))};
p.start=function(a,b){var c=this,d;return Q(function(e){if(1==e.g)return c.na=b.isLowLatencyMode(),c.B=[a],c.j=b,F(e,Jw(c),2);d=e.h;c.j&&Kw(c,d);if(!c.j)throw new V(2,7,7001);return e.return(c.i)})};
p.stop=function(){for(var a=t(this.s.values()),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.m&&this.m.release();this.g=this.j=null;this.B=[];this.i=null;this.s.clear();this.D.clear();this.u.clear();this.C.clear();this.l={Hf:"",type:"",profiles:[],vc:null,wb:0,jb:null,ue:0};this.m=null;null!=this.K&&(this.K.stop(),this.K=null);this.h&&this.h.destroy();this.H&&(this.H.release(),this.H=null);this.$.clear();return this.O.destroy()};
p.update=function(){var a=this,b;return Q(function(c){if(1==c.g)return ta(c,2),F(c,Jw(a),4);if(2!=c.g)return wa(c,0);b=xa(c);if(!a.j||!b)return c.return();a.j.onError(b);I(c)})};p.onExpirationUpdated=function(){};p.onInitialVariantChosen=function(a){if(this.i&&this.i.presentationTimeline.T()){var b=a.video||a.audio;if(b&&b.segmentIndex){a=this.i.presentationTimeline.Hc();var c=b.segmentIndex.find(a);null!=c&&(b=b.segmentIndex.get(c))&&(this.J=b.endTime-a,Kw(this,0))}}};
2025-06-19 04:02:44 +02:00
p.banLocation=function(a){this.h&&this.h.banLocation(a)};p.setMediaElement=function(a){this.I=a};
2025-06-27 11:02:59 +02:00
function Jw(a){var b,c,d,e,f,g,h,k,l,m,n;return Q(function(q){if(1==q.g)return b=4,c="MPD",d=Lw(a),e=a.B,d.length?(e=d,c="Patch",b=6):1<a.B.length&&a.h&&(f=Uv(a.h,"Location",!0),f.length&&(e=f)),g=Xg(e,a.g.retryParameters),h=Date.now(),F(q,Mw(a,g,0,{type:b}),2);if(3!=q.g){k=q.h;if(!a.j)return q.return(0);k.uri&&k.uri!=k.originalUri&&!a.B.includes(k.uri)&&a.B.unshift(k.uri);l=new qb(k.uri);a.Y=l.g.toString();return F(q,Nw(a,k.data,k.uri,c),3)}m=Date.now();n=(m-h)/1E3;a.ra.sample(1,n);a.$.clear();return q.return(n)})}
function Nw(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,u;return Q(function(w){if(1==w.g){e=b;f=a.g.dash.manifestPreprocessor;g=Rn;if(f!=g){Uc("manifest.dash.manifestPreprocessor configuration","Please Use manifest.dash.manifestPreprocessorTXml instead.");h=Gw(e,d);if(!h)throw new V(2,4,4001,c);f(h);e=$b(h.outerHTML)}k=Hd(e,d);if(!k)throw new V(2,4,4001,c);l=a.g.dash.manifestPreprocessorTXml;m=Sn;l!=m&&l(k);if("Patch"===d)return w.return(Ow(a,k));if(n=a.g.dash.disableXlinkProcessing)return w.return(Pw(a,k,c));
q=a.g.dash.xlinkFailGracefully;r=gv(k,a.g.retryParameters,q,c,a.j.networkingEngine);Rg(a.O,r);return F(w,r.promise,2)}u=w.h;return w.return(Pw(a,u,c))})}
function Pw(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L,N,O,M,P,R,T,ca,Y,Ma,Na,Ea,va,Ja,Pa,za,ja,Aa,eb,fb,nb,wb,rb,Ua,se,rc,Ce,ug,vg;return Q(function(md){switch(md.g){case 1:a.h&&a.h.l.clear();d=[c];e=[];f=new Map;g=Pd(b,"Location");h=t(g);for(k=h.next();!k.done;k=h.next())if(l=k.value,m=l.attributes.serviceLocation,n=Rd(l))q=lc(d,[n])[0],m&&(a.h?Tv(a.h,"Location",m,q):f.set(m,q)),e.push(q);a.h?(r=Uv(a.h,"Location",!0),0<r.length&&(d=a.B=r)):e.length&&(d=a.B=e);a.l.Hf=b.attributes.id||
"";a.l.ue=Wd(b,"publishTime",Zd)||0;a.G=Pd(b,"PatchLocation");u=Promise.resolve();if((w=Td(b,"ContentSteering"))&&a.j){v=w.attributes.defaultServiceLocation;if(a.h)a.h.i=d,a.h.h=v;else if(a.h=new Pv(a.j),a.h.configure(a.g),a.h.setManifestType("DASH"),a.h.i=d,a.h.h=v,y=Rd(w))(z=Wd(w,"queryBeforeStart",ge,!1))?u=Qv(a.h,y):Qv(a.h,y);A=t(f.keys());for(B=A.next();!B.done;B=A.next())D=B.value,G=f.get(D),Tv(a.h,"Location",D,G)}C=Pd(b,"BaseURL");E=!1;if(a.h)for(H=t(C),K=H.next();!K.done;K=H.next())J=K.value,
L=J.attributes.serviceLocation,N=Rd(J),L&&N&&(Tv(a.h,"BaseURL",L,N),E=!0);a.U=null;E&&a.h||(O=C.map(Rd),a.U=lc(d,O));M=function(){return a.h&&E?Uv(a.h,"BaseURL"):a.U?a.U:[]};a.l.jb=M;P=0;C&&C.length&&(P=Wd(C[0],"availabilityTimeOffset",fe)||0);a.l.wb=P;a.J=Wd(b,"minimumUpdatePeriod",$d,-1);R=Wd(b,"availabilityStartTime",Zd);T=Wd(b,"timeShiftBufferDepth",$d);ca=a.g.dash.ignoreSuggestedPresentationDelay;Y=null;ca||(Y=Wd(b,"suggestedPresentationDelay",$d));Ma=a.g.dash.ignoreMaxSegmentDuration;Na=null;
Ma||(Na=Wd(b,"maxSegmentDuration",$d));Ea=b.attributes.type||"static";a.i&&a.i.presentationTimeline&&(a.R=a.i.presentationTimeline.T()&&"static"==Ea);a.l.type=Ea;if(a.i)for(va=a.i.presentationTimeline,Ja=va.Kb(),Pa=t(a.s.values()),za=Pa.next();!za.done;za=Pa.next())ja=za.value,ja.segmentIndex&&ja.segmentIndex.hb(Ja);else Aa=a.g.dash.ignoreMinBufferTime,eb=0,Aa||(eb=Wd(b,"minBufferTime",$d)||0),fb=0,fb=null!=Y?Math.min(Y,T||Infinity):0<a.g.defaultPresentationDelay?a.g.defaultPresentationDelay:Math.min(1.5*
eb,T||Infinity),va=new xl(R,fb,a.g.dash.autoCorrectDrift);va.nd("static"==Ea);(nb=va.T())&&!isNaN(a.g.availabilityWindowOverride)&&(T=a.g.availabilityWindowOverride);null==T&&(T=Infinity);va.ag(T);wb=b.attributes.profiles||"";a.l.profiles=wb.split(",");rb={qc:"static"!=Ea,presentationTimeline:va,za:null,va:null,ua:null,M:null,bandwidth:0,rh:!1,wb:P,vc:null,profiles:wb.split(","),roles:null,Ob:function(){return""}};return F(md,u,2);case 2:a.L=0;Ua=Qw(a,rb,M,b,!1);se=Ua.duration;rc=Ua.periods;("static"!=
Ea||a.R)&&Ua.Li||va.vb(se||Infinity);a.P&&a.na&&va.Cj(a.Z);va.Ch(Na||1);a.P&&a.na&&(Ce=null!=Y?Y:a.g.defaultPresentationDelay,va.Uh(Ce));if(!a.i)return F(md,a.m.Hg(rc,rb.qc),6);a.i.periodCount=rc.length;a.i.gapCount=a.L;return F(md,Rw(a,rc,!1),4);case 6:a.i={presentationTimeline:va,variants:a.m.l,textStreams:a.m.mh(),imageStreams:a.m.i,offlineSessionIds:[],sequenceMode:a.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:Sw(b),nextUrl:Tw(b),periodCount:rc.length,
gapCount:a.L,isLowLatency:a.P,startTime:null};if(!va.Vj()){md.A(7);break}ug=Pd(b,"UTCTiming");return F(md,Uw(a,M,ug),8);case 8:vg=md.h;if(!a.j)return md.return();va.Dj(vg);case 7:va.Df(),a.m&&!a.i.presentationTimeline.T()&&a.m.release();case 4:a.j.makeTextStreamsForClosedCaptions(a.i),Vw(a),Ww(a,rc),I(md)}})}
function Rw(a,b,c){var d;return Q(function(e){if(1==e.g)return F(e,a.m.Hg(b,!0,c),2);a.i.variants=a.m.l;d=a.m.mh();0<d.length&&(a.i.textStreams=d);a.i.imageStreams=a.m.i;a.j.filter(a.i);I(e)})}
function Ow(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L;return Q(function(N){if(1==N.g){c=b.attributes.mpdId;d=Wd(b,"originalPublishTime",Zd);if(!c||c!==a.l.Hf||d!==a.l.ue)throw a.G=[],new V(1,4,4052);e=[];f=[];g=new Set;h=t(Od(b));for(k=h.next();!k.done;k=h.next())if(l=k.value,m=ie(l.attributes.sel||""),n=m[m.length-1],q=Rd(l)||"","MPD"===n.name)if("mediaPresentationDuration"===n.Ec){r=Rd(l)||"";var O=$d(r);if(null!=O){a.l.vc=O;for(var M=t(a.u.values()),P=M.next();!P.done;P=M.next())P.value.vc=
O}}else if("type"===n.Ec){a.i.presentationTimeline.nd("static"==q);a.l.type=q;O=t(a.u.values());for(M=O.next();!M.done;M=O.next())M.value.qc="dynamic"==q;"static"==q&&(a.J=-1)}else"publishTime"===n.Ec?a.l.ue=Zd(q)||0:null===n.Ec&&"add"===l.tagName&&f.push(l);else if("PatchLocation"===n.name)je(a.G,l);else if("Period"===n.name)"add"===l.tagName?f.push(l):"remove"===l.tagName&&n.id&&Xw(a,n.id);else if("SegmentTemplate"===n.name){M=ie(l.attributes.sel||"");O=M[M.length-1];if(O.Ec){M=Yw(a,M);P=Rd(l)||
"";for(var R=t(M),T=R.next();!T.done;T=R.next())T=a.u.get(T.value),le(T.M.Pc,l.tagName,O.Ec,P);O=M}else O=[];u=O;w=t(u);for(v=w.next();!v.done;v=w.next())y=v.value,g.add(y)}else if("SegmentTimeline"===n.name||"S"===n.name){O=ie(l.attributes.sel||"");O=Yw(a,O);M=t(O);for(P=M.next();!P.done;P=M.next())P=a.u.get(P.value),P=dv(P,Fv,"SegmentTimeline"),R=Pd(P,"S"),je(R,l),P.children=R;z=O;A=t(z);for(B=A.next();!B.done;B=A.next())D=B.value,g.add(D)}G=t(g);for(C=G.next();!C.done;C=G.next())E=C.value,Zw(a,
E);H=t(f);for(K=H.next();!K.done;K=H.next())J=K.value,e.push.apply(e,x($w(a,J)));if(!e.length)return N.A(2);a.i.periodCount+=e.length;a.i.gapCount=a.L;return F(N,Rw(a,e,!0),2)}"static"==a.l.type&&(L=a.l.vc,a.i.presentationTimeline.vb(L||Infinity));I(N)})}
function $w(a,b){return Qw(a,{qc:"dynamic"==a.l.type,presentationTimeline:a.i.presentationTimeline,za:null,va:null,ua:null,M:null,bandwidth:0,rh:!1,wb:a.l.wb,profiles:a.l.profiles,vc:a.l.vc,roles:null,Ob:function(){return""}},a.l.jb,b,!0).periods}function Xw(a,b){a.i.periodCount--;for(var c=t(a.u.keys()),d=c.next();!d.done;d=c.next())if(d=d.value,d.startsWith(b)){var e=a.u.get(d);dv(e,Fv,"SegmentTimeline").children=[];Zw(a,d);a.u.delete(d)}a.F=a.F.filter(function(f){return f!==b})}
function Yw(a,b){var c="",d="",e=-1,f="";b=t(b);for(var g=b.next();!g.done;g=b.next())g=g.value,"Period"===g.name?c=g.id:"AdaptationSet"===g.name?(d=g.id,null!==g.position&&(e=g.position)):"Representation"===g.name&&(f=g.id);b=[];if(f)b.push(c+","+f);else if(d)for(e=t(a.u.values()),a=e.next();!a.done;a=e.next())a=a.value,a.za.id===c&&a.ua.id===d&&a.M.id&&b.push(c+","+a.M.id);else if(-1<e)for(d=t(a.u.values()),a=d.next();!a.done;a=d.next())a=a.value,a.za.id===c&&a.ua.position===e&&a.M.id&&b.push(c+
","+a.M.id);return b}function Zw(a,b){var c=a.u.get(b),d=a.s.get(b);d.segmentIndex&&d.segmentIndex.hb(a.i.presentationTimeline.Kb());try{var e=Ev(c,function(f,g,h,k){return ax(a,f,g,h,k)},a.s,!0,a.g.dash.initialSegmentLimit,a.oa,c.M.aesKey,null,!0,a.C);d.createSegmentIndex=function(){return Q(function(f){if(1==f.g)return d.segmentIndex?f.A(0):F(f,e.Zc(),3);d.segmentIndex=f.h;I(f)})}}catch(f){if(b=c.M.contentType,b!=sc&&"application"!=b&&"image"!=b||4002!=f.code)throw f;}}
function Sw(a){var b=Td(a,"ServiceDescription");if(!b)return null;a=Td(b,"Latency");b=Td(b,"PlaybackRate");if(!a&&!b)return null;var c={};a&&("target"in a.attributes&&(c.targetLatency=parseInt(a.attributes.target,10)/1E3),"max"in a.attributes&&(c.maxLatency=parseInt(a.attributes.max,10)/1E3),"min"in a.attributes&&(c.minLatency=parseInt(a.attributes.min,10)/1E3));b&&("max"in b.attributes&&(c.maxPlaybackRate=parseFloat(b.attributes.max)),"min"in b.attributes&&(c.minPlaybackRate=parseFloat(b.attributes.min)));
return c}function Tw(a){a=Pd(a,"SupplementalProperty");if(!a.length)return null;a=t(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,"urn:mpeg:dash:chaining:2016"==b.attributes.schemeIdUri)return b.attributes.value;return null}
function Qw(a,b,c,d,e){var f=b.vc;f||(f=Wd(d,"mediaPresentationDuration",$d),a.l.vc=f);var g=0;a.i&&a.i.presentationTimeline&&a.R&&(g=a.i.presentationTimeline.bc());var h=[],k=g;d=Pd(d,"Period");for(var l=0;l<d.length;l++){var m=d[l],n=d[l+1],q=Wd(m,"start",$d,k),r=m.attributes.id,u=Wd(m,"duration",$d);q=0==l&&0==q&&a.R?g:q;var w=null;if(n){var v=Wd(n,"start",$d);null!=v&&(w=v-q+g)}else null!=f&&(w=f-q+g);v=vc;w&&u&&Math.abs(w-u)>v&&w>u&&a.L++;null==w&&(w=u);if(!(null!==a.N&&null!==r&&null!==q&&q<
a.N)||a.F.includes(r)||l+1==d.length){null!==q&&(null===a.N||q>a.N)&&(a.N=q);k=bx(a,b,c,{start:q,duration:w,node:m,Zi:null==w||!n});h.push(k);b.za.id&&w&&a.oa.set(b.za.id,w);if(null==w){k=null;break}k=q+w}}if(e)for(b=t(h),c=b.next();!c.done;c=b.next())c=c.value.id,a.F.includes(c)||a.F.push(c);else a.F=h.map(function(y){return y.id});return null!=f?{periods:h,duration:f+g,Li:!1}:{periods:h,duration:k,Li:!0}}
function Vw(a){var b=Array.from(a.D.keys()).filter(function(h){return!a.F.includes(h)});b=t(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;for(var d=!0,e=t(a.D.get(c)),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.s.get(f);g&&(g.segmentIndex&&0!=g.segmentIndex.getNumReferences()?d=!1:(a.m&&a.m.Ji(g,c),a.s.delete(f)))}d&&a.D.delete(c)}}function Ww(a,b){b=new Set(b.map(function(e){return e.id}));for(var c=t(a.C.keys()),d=c.next();!d.done;d=c.next())d=d.value,b.has(d)||a.C.delete(d)}
function bx(a,b,c,d){b.za=cx(a,d.node,null,c);b.va=d;b.za.wb=b.wb;b.za.id||(b.za.id="__shaka_period_"+d.start);var e=Pd(d.node,"EventStream");c=b.presentationTimeline.Kb();e=t(e);for(var f=e.next();!f.done;f=e.next())dx(a,d.start,d.duration,f.value,c);c=Pd(d.node,"SupplementalProperty");c=t(c);for(e=c.next();!e.done;e=c.next())if(e=e.value,"urn:mpeg:dash:urlparam:2014"==e.attributes.schemeIdUri&&(e=ex(a,e)))b.Ob=e;c=Pd(d.node,"AdaptationSet").map(function(r,u){return fx(a,b,u,r)}).filter(Cf);if(b.qc){e=
[];f=t(c);for(var g=f.next();!g.done;g=f.next()){g=t(g.value.Yl);for(var h=g.next();!h.done;h=g.next())e.push(h.value)}if(e.length!=(new Set(e)).size)throw new V(2,4,4018);}e=new Map;f=t(c);for(g=f.next();!g.done;g=f.next())for(g=t(g.value.nk),h=g.next();!h.done;h=g.next()){var k=t(h.value);h=k.next().value;k=k.next().value;e.set(h,k)}if(e.size)for(f=null,g=t(c),h=g.next();!h.done;h=g.next()){h=h.value;k=[];for(var l=t(h.streams),m=l.next(),n={};!m.done;n={bi:void 0},m=l.next())if(n.bi=m.value,e.has(n.bi.originalId)){f||
(f=Pd(d.node,"AdaptationSet").map(function(r,u){return fx(a,b,u,r)}).filter(Cf));m=t(f);for(var q=m.next();!q.done;q=m.next())if(q=q.value.streams.find(function(r){return function(u){return u.originalId==r.bi.originalId}}(n)))q.dependencyStream=e.get(q.originalId),q.originalId+=q.dependencyStream.originalId,k.push(q)}k.length&&h.streams.push.apply(h.streams,x(k))}d=c.filter(function(r){return!r.li});c=c.filter(function(r){return r.li});if(!a.g.disableIFrames)for(c=t(c),e=c.next();!e.done;e=c.next())for(e=
e.value,f=e.li.split(" "),g=t(d),h=g.next();!h.done;h=g.next())if(h=h.value,f.includes(h.id))for(h=t(h.streams),k=h.next();!k.done;k=h.next())lg(k.value,e.streams);c=gx(a.g.disableAudio,d,"audio");e=gx(a.g.disableVideo,d,"video");f=gx(a.g.disableText,d,sc);d=gx(a.g.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new V(2,4,4004);return{id:b.za.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d}}
function gx(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,x(e.streams));return d},[])}
function fx(a,b,c,d){function e(L){var N=L.attributes["dvb:fontFamily"];L=L.attributes["dvb:url"];N&&L&&(L=lc(b.ua.jb(),[L],b.Ob()),a.j.addFont(N,L[0]))}function f(L){switch(L){case 1:case 5:case 6:case 7:return"srgb";case 9:return"rec2020";case 11:case 12:return"p3"}}function g(L){switch(L){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.ua=cx(a,d,b.za,null);b.ua.position=c;var h=!1;c=Pd(d,"Role");var k=c.map(function(L){return L.attributes.value}).filter(Cf),
l=void 0,m=b.ua.contentType==sc;m&&(l="subtitle");c=t(c);for(var n=c.next();!n.done;n=c.next()){n=n.value;var q=n.attributes.schemeIdUri;if(null==q||"urn:mpeg:dash:role:2011"==q)switch(n=n.attributes.value,n){case "main":h=!0;break;case "caption":case "subtitle":l=n}}var r=Pd(d,"EssentialProperty");c=null;var u=!1;n=null;q=!1;r=t(r);for(var w=r.next();!w.done;w=r.next()){w=w.value;var v=w.attributes.schemeIdUri;if("http://dashif.org/guidelines/trickmode"==v)c=w.attributes.value;else if("urn:mpeg:mpegB:cicp:TransferCharacteristics"==
v)var y=g(parseInt(w.attributes.value,10));else if("urn:mpeg:mpegB:cicp:ColourPrimaries"==v)var z=f(parseInt(w.attributes.value,10));else"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=v&&("urn:mpeg:dash:ssr:2023"==v&&a.g.dash.enableFastSwitching?u=!0:"urn:dvb:dash:fontdownload:2014"==v?e(w):"urn:mpeg:dash:urlparam:2014"==v?(n=ex(a,w))||(q=!0):q=!0)}if(q)return null;var A=null;q=Pd(d,"SupplementalProperty");q=t(q);for(r=q.next();!r.done;r=q.next())r=r.value,w=r.attributes.schemeIdUri,"http://dashif.org/guidelines/last-segment-number"==
w?A=parseInt(r.attributes.value,10)-1:"urn:mpeg:mpegB:cicp:TransferCharacteristics"==w?y=g(parseInt(r.attributes.value,10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"==w?z=f(parseInt(r.attributes.value,10)):"urn:dvb:dash:fontdownload:2014"==w?e(r):"urn:mpeg:dash:urlparam:2014"==w&&(n=ex(a,r));n&&(b.Ob=n);n=Pd(d,"Accessibility");var B=new Map,D;n=t(n);for(q=n.next();!q.done;q=n.next())if(r=q.value,q=r.attributes.schemeIdUri,r=r.attributes.value,"urn:scte:dash:cc:cea-608:2015"!=q||a.g.disableText)if("urn:scte:dash:cc:cea-708:2015"!=
q||a.g.disableText)"urn:mpeg:dash:role:2011"==q?null!=r&&(k.push(r),"captions"==r&&(l="caption")):"urn:tva:metadata:cs:AudioPurposeCS:2007"==q&&("1"==r?D="visually impaired":"2"==r?D="hard of hearing":"9"==r&&(D="spoken subtitles"));else if(q=1,null!=r)for(r=t(r.split(";")),w=r.next();!w.done;w=r.next()){v=w.value;var G=w=void 0;v.includes("=")?(v=v.split("="),w="svc"+v[0],G=v[1].split(",")[0].split(":").pop()):(w="svc"+q,q++,G=v);B.set(w,yc(G))}else B.set("svc1","und");else if(q=1,null!=r)for(r=
r.split(";"),w=t(r),v=w.next();!v.done;v=w.next()){G=v.value;var C=v=void 0;G.includes("=")?(G=G.split("="),v=G[0].startsWith("CC")?G[0]:"CC"+G[0],C=G[1]||"und"):(v="CC"+q,2==r.length?q+=2:q++,C=G);B.set(v,yc(C))}else B.set("CC1","und");n=Pd(d,"ContentProtection");var E=Tu(n,a.g.ignoreDrmInfo,a.g.dash.keySystemsByURI);b.ua.encrypted=0<n.length;var H=yc(b.ua.language||"und"),K=b.ua.label,J=new Map;d=Pd(d,"Representation");if(!a.g.ignoreSupplementalCodecs){n=[];q=t(d);for(r=q.next();!r.done;r=q.next())if(w=
r.value,r=Xd(w,"urn:scte:dash:scte214-extensions","supplementalCodecs"))w=Ed(w),w.attributes.codecs=r.split(" ").join(","),w.attributes.id&&(w.attributes.supplementalId=w.attributes.id+"_supplementalCodecs"),n.push(w);d.push.apply(d,x(n))}n=d.map(function(L){var N=hx(a,b,E,l,H,K,h,k,B,L,D,A);return N&&(N.hdr=N.hdr||y,N.colorGamut=N.colorGamut||z,N.fastSwitching=u,L=L.attributes.dependencyId)?(N.baseOriginalId=L,J.set(L,N),null):N}).filter(function(L){return!!L});if(0==n.length&&0==J.size){c="image"==
b.ua.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||m||c)return null;throw new V(2,4,4003);}if(!b.ua.contentType||"application"==b.ua.contentType)for(b.ua.contentType=ix(n[0].mimeType,n[0].codecs),m=t(n),q=m.next();!q.done;q=m.next())q.value.type=b.ua.contentType;m=b.ua.id||"__fake__"+a.sa++;q=t(n);for(r=q.next();!r.done;r=q.next()){r=r.value;w=t(E.drmInfos);for(v=w.next();!v.done;v=w.next())v=v.value,v.keyIds=v.keyIds&&r.keyIds?new Set([].concat(x(v.keyIds),x(r.keyIds))):v.keyIds||r.keyIds;r.groupId=
m}d=d.map(function(L){return L.attributes.supplementalId||L.attributes.id}).filter(Cf);return{id:m,contentType:b.ua.contentType,language:H,Hn:h,streams:n,drmInfos:E.drmInfos,li:c,Yl:d,nk:J}}
function ex(a,b){if((b=Ud(b,"urn:mpeg:dash:schema:urlparam:2014","UrlQueryInfo"))&&Wd(b,"useMPDUrlQuery",ge,!1)){var c=b.attributes.queryTemplate;if(c)return function(){return"$querypart$"==c?a.Y:c.split("&").map(function(d){if("$querypart$"==d)return a.Y;var e=/\$query:(.*?)\$/g.exec(d);if(e&&2==e.length){e=e[1];var f=(new yb(a.Y)).get(e);if(f.length)return e+"="+f[0]}return d}).join("&")}}return null}
function hx(a,b,c,d,e,f,g,h,k,l,m,n){b.M=cx(a,l,b.ua,null);var q=b.M.id;a.Z=Math.min(a.Z,b.M.wb);a.P=0<a.Z;if(!jx(b.M))return null;var r=b.va.start;b.bandwidth=Wd(l,"bandwidth",ce)||0;b.roles=h;var u=Pd(l,"SupplementalProperty"),w=Pd(l,"EssentialProperty"),v=Pd(l,"ContentProtection");l=null;var y=w.find(function(M){return"urn:mpeg:dash:urlparam:2014"==M.attributes.schemeIdUri});y?l=ex(a,y):(y=u.find(function(M){return"urn:mpeg:dash:urlparam:2014"==M.attributes.schemeIdUri}))&&(l=ex(a,y));l&&(b.Ob=
l);y=b.M.contentType;l=y==sc||"application"==y;y="image"==y;v.length&&(b.ua.encrypted=!0);try{var z=void 0;if(c.Ag){var A=b.M.jb,B=b.Ob,D=lc(A(),[c.Ag.Cl],B()),G=Xg(D,a.g.retryParameters);z={bitsKey:128,blockCipherMode:"CBC",iv:c.Ag.iv,firstMediaSequenceNumber:0,fetchKey:function(){var M,P,R;return Q(function(T){if(1==T.g)return F(T,Mw(a,G,6),2);if(3!=T.g){M=T.h;if(!M.data||16!=M.data.byteLength)throw new V(2,4,4049);P={name:"AES-CBC"};R=z;return F(T,window.crypto.subtle.importKey("raw",M.data,P,
!0,["decrypt"]),3)}R.cryptoKey=T.h;z.fetchKey=void 0;I(T)})}}}b.M.aesKey=z;A=function(M,P,R,T){return ax(a,M,P,R,T)};if(b.M.Od)var C=tv(b,A,z);else if(b.M.Bc)C=zv(b,a.s,z);else if(b.M.Pc)C=Ev(b,A,a.s,!!a.i,a.g.dash.initialSegmentLimit,a.oa,z,n,!1,a.C);else{var E=b.va.duration||0,H=b.M.jb,K=b.M.mimeType,J=b.M.codecs;C={endTime:-1,timeline:-1,Zc:function(){var M=Xl(r,E,H());M.Hb(function(P){P.mimeType=K;P.codecs=J});return Promise.resolve(M)},timescale:1}}}catch(M){if((l||y)&&4002==M.code)return null;
throw M;}n=Xu(v,c,a.g.ignoreDrmInfo,a.g.dash.keySystemsByURI);n=new Set(n?[n]:[]);v=!1;u.some(function(M){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==M.attributes.schemeIdUri&&"JOC"==M.attributes.value})&&(v=!0);u=!1;l&&(u=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var L;if(y&&((w=w.find(function(M){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(M.attributes.schemeIdUri)}))&&(L=w.attributes.value),!L))return null;var N;
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"))&&(N="PQ");w=b.M.id?b.za.id+","+b.M.id:"";a.G.length&&q&&a.u.set(b.za.id+","+q,kx(b));b.M.Rf&&lx(a,b.M.Rf,C,b.presentationTimeline);-1!=C.endTime&&null!=b.za.id&&null!=b.M.id&&((q=a.C.get(b.za.id))?(q.endTime=C.endTime,q.Lh.includes(b.M.id)||q.Lh.push(b.M.id),a.C.set(b.za.id,q)):a.C.set(b.za.id,{endTime:C.endTime,timeline:C.timeline,Lh:[b.M.id]}));
2025-06-19 04:02:44 +02:00
var O=w&&a.s.has(w)?a.s.get(w):{id:a.sa++,originalId:b.M.id,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){O.segmentIndex&&(O.segmentIndex.release(),O.segmentIndex=null)},segmentIndex:null,mimeType:b.M.mimeType,codecs:l,frameRate:b.M.frameRate,pixelAspectRatio:b.M.pixelAspectRatio,bandwidth:b.bandwidth,width:b.M.width,height:b.M.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:n,language:e,originalLanguage:b.ua.language,label:f,
2025-06-27 11:02:59 +02:00
type:b.ua.contentType,primary:g,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:b.M.emsgSchemeIdUris,roles:h,forced:u,channelsCount:b.M.Kf,audioSamplingRate:b.M.audioSamplingRate,spatialAudio:v,closedCaptions:k,hdr:N,colorGamut:void 0,videoLayout:void 0,tilesLayout:L,accessibilityPurpose:m,external:!1,fastSwitching:!1,fullMimeTypes:new Set([bf(b.M.mimeType,b.M.codecs)]),isAudioMuxedInVideo:!1,baseOriginalId:null};O.createSegmentIndex=function(){var M;return Q(function(P){if(1==P.g){if(O.segmentIndex)return P.A(0);
M=O;return F(P,C.Zc(),3)}M.segmentIndex=P.h;I(P)})};w&&b.qc&&!a.s.has(w)&&(b=b.za.id||"",a.D.has(b)||a.D.set(b,[]),a.s.set(w,O),a.D.get(b).push(w));return O}
function lx(a,b,c,d){if(!a.$.has(b)){a.$.add(b);var e=Wd(b,"presentationTime",ee)||0,f=Td(b,"UTCTiming"),g;if(g=f&&f.attributes.schemeIdUri)f=f.attributes.schemeIdUri,g=!("urn:mpeg:dash:utc:http-ntp:2014"===f||"urn:mpeg:dash:utc:ntp:2014"===f||"urn:mpeg:dash:utc:sntp:2014"===f);g?b=1E3*(Wd(b,"wallClockTime",Zd)||0):(b=Wd(b,"wallClockTime",ee)||0,b=ak(b));c=new Date(b-e/c.timescale*1E3);e=c.getTime()/1E3;isNaN(e)||(d.s||d.Wh(e),d=(new Map).set("detail",{wallClockTime:b,programStartDate:c}),d=new U("prft",
d),a.j.onEvent(d))}}function kx(a){function b(c){if(!c)return null;c=Fd(c);c.Od=null;c.Bc=null;c.Pc=ne(c.Pc);c.Rf=null;return c}a=Fd(a);a.za=b(a.za);a.ua=b(a.ua);a.M=b(a.M);a.va&&(a.va=Fd(a.va),a.va.node=null);return a}
function Iw(a){var b,c;return Q(function(d){switch(d.g){case 1:return b=0,ta(d,2),F(d,Jw(a),4);case 4:b=d.h;wa(d,3);break;case 2:if(c=xa(d),a.j){if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.j.onError(c),d.return();c.severity=1;a.j.onError(c)}case 3:if(!a.j)return d.return();a.j.onManifestUpdated();Kw(a,b);I(d)}})}function Kw(a,b){if(!(0>a.J)){var c=a.J;0<=a.g.updatePeriod&&(c=a.g.updatePeriod);a.K.X(Math.max(c-b,Mc(a.ra)))}}
function cx(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Kf:null,audioSamplingRate:null,wb:0,Zf:0,encrypted:!1};d=d||c.jb;var e=b.attributes.id,f=b.attributes.supplementalId,g=Pd(b,"BaseURL"),h,k=!1;if(a.h)for(var l=t(g),m=l.next();!m.done;m=l.next()){var n=m.value;m=n.attributes.serviceLocation;n=Rd(n);m&&n&&(Tv(a.h,e,m,n),k=!0)}k&&a.h||(h=g.map(Rd));l=b.attributes.contentType||c.contentType;m=b.attributes.mimeType||c.mimeType;n=
Bm([b.attributes.codecs||c.codecs]).join(",");var q=Wd(b,"frameRate",he)||c.frameRate,r=b.attributes.sar||c.pixelAspectRatio,u=mx(Pd(b,"InbandEventStream"),c.emsgSchemeIdUris),w=Pd(b,"AudioChannelConfiguration");w=nx(w)||c.Kf;var v=Wd(b,"audioSamplingRate",ee)||c.audioSamplingRate;l||(l=ix(m,n));var y=Td(b,"SegmentBase"),z=Td(b,"SegmentTemplate"),A=y?Wd(y,"availabilityTimeOffset",fe)||0:0,B=z?Wd(z,"availabilityTimeOffset",fe)||0:0,D=g&&g.length?Wd(g[0],"availabilityTimeOffset",fe)||0:0;A=c.wb+D+A+
B;B=null;(D=Td(b,"SegmentSequenceProperties"))&&(D=Td(D,"SAP"))&&(B=Wd(D,"cadence",be));D=b.attributes.label;var G=Pd(b,"Label");G&&G.length&&(G=G[0],Qd(G)&&(D=Qd(G)));return{jb:function(){return lc(d(),g.length?a.h&&k?Uv(a.h,e):h?h:[]:[])},Od:y||c.Od,Bc:Td(b,"SegmentList")||c.Bc,Pc:z||c.Pc,Rf:Td(b,"ProducerReferenceTime")||c.Rf,width:Wd(b,"width",ee)||c.width,height:Wd(b,"height",ee)||c.height,contentType:l,mimeType:m,codecs:n,frameRate:q,pixelAspectRatio:r,emsgSchemeIdUris:u,id:f||e,originalId:e,
language:b.attributes.lang,Kf:w,audioSamplingRate:v,wb:A,vf:null,Zf:B||c.Zf,label:D||null,encrypted:!1}}function mx(a,b){b=b.slice();a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value.attributes.schemeIdUri,b.includes(c)||b.push(c);return b}
function nx(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b.attributes.schemeIdUri;if(c&&(b=b.attributes.value))switch(c){case "urn:mpeg:dash:outputChannelPositionList:2012":return b.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(b,10);if(!b)continue;return b;case "tag:dolby.com,2015:dash:audio_channel_configuration:2015":c=[2,1,2,2,2,2,1,2,2,1,1,1,1,2,1,1,2,2];b=parseInt(b,
2025-06-19 04:02:44 +02:00
16);if(!b)continue;for(var d=0,e=0;e<c.length;e++)b&1<<e&&(d+=c[e]);if(d)return d;continue;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":c=[1,1,1,1,1,2,2,1,1,2,2,2,1,2,1,1].reverse();b=parseInt(b,16);if(!b)continue;for(e=d=0;e<c.length;e++)b&1<<e&&(d+=c[e]);if(d)return d;continue;case "urn:mpeg:mpegB:cicp:ChannelConfiguration":if(c=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(b=parseInt(b,10))&&0<b&&b<c.length)return c[b]}}return null}
2025-06-27 11:02:59 +02:00
function jx(a){var b=a.Od?1:0;b+=a.Bc?1:0;b+=a.Pc?1:0;if(0==b)return a.contentType==sc||"application"==a.contentType?!0:!1;1!=b&&(a.Od&&(a.Bc=null),a.Pc=null);return!0}
function ox(a,b,c,d){var e,f,g,h,k,l,m;return Q(function(n){if(1==n.g)return e=[cc(c)],f=lc(b(),e),g=Xg(f,a.g.retryParameters),g.method=d,h=a.j.networkingEngine.request(4,g,{isPreload:a.ba()}),Rg(a.O,h),F(n,h.promise,2);k=n.h;if("HEAD"==d){if(!k.headers||!k.headers.date)return n.return(0);l=k.headers.date}else l=Wb(k.data);m=Date.parse(l);return isNaN(m)?n.return(0):n.return(m-Date.now())})}
function Uw(a,b,c){var d,e,f,g,h,k,l,m;return Q(function(n){switch(n.g){case 1:d=c.map(function(q){return{scheme:q.attributes.schemeIdUri,value:q.attributes.value}}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=t(d),g=f.next();case 2:if(g.done){n.A(4);break}h=g.value;ta(n,5);k=h.scheme;l=h.value;switch(k){case "urn:mpeg:dash:utc:http-head:2014":case "urn:mpeg:dash:utc:http-head:2012":return n.A(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.A(8);
case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),n.return(isNaN(m)?0:m-Date.now());case "urn:mpeg:dash:utc:http-ntp:2014":case "urn:mpeg:dash:utc:ntp:2014":case "urn:mpeg:dash:utc:sntp:2014":ab("NTP UTCTiming scheme is not supported");break;default:ab("Unrecognized scheme in UTCTiming element",k)}n.A(9);break;case 7:return F(n,ox(a,b,l,"HEAD"),10);case 10:return n.return(n.h);case 8:return F(n,ox(a,b,l,"GET"),11);case 11:return n.return(n.h);case 9:wa(n,
2025-06-19 04:02:44 +02:00
3);break;case 5:xa(n);case 3:g=f.next();n.A(2);break;case 4:return ab("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n.return(0)}})}
2025-06-27 11:02:59 +02:00
function dx(a,b,c,d,e){var f=d.attributes.schemeIdUri||"",g=d.attributes.value||"",h=Wd(d,"timescale",ee)||1,k=Wd(d,"presentationTimeOffset",ee)||0;d=t(Pd(d,"Event"));for(var l=d.next();!l.done;l=d.next()){l=l.value;var m=Wd(l,"presentationTime",ee)||0,n=Wd(l,"duration",ee)||0;m=Math.max((m-k)/h+b,b);n=m+n/h;null!=c&&(m=Math.min(m,b+c),n=Math.min(n,b+c));n<e||(l={schemeIdUri:f,value:g,startTime:m,endTime:n,id:l.attributes.id||"",timescale:h,eventElement:me(l),eventNode:ne(l)},a.j.onTimelineRegionAdded(l))}}
function ax(a,b,c,d,e){var f,g,h,k;return Q(function(l){if(1==l.g)return f=ch,g=e?0:1,h=Fm(b,c,d,a.g.retryParameters),F(l,Mw(a,h,f,{type:g}),2);k=l.h;return l.return(k.data)})}function ix(a,b){b=bf(a,b);return sf(b)?sc:a.split("/")[0]}function Mw(a,b,c,d){d||(d={});d.isPreload=a.ba();b=a.j.networkingEngine.request(c,b,d);Rg(a.O,b);return b.promise}
function Lw(a){var b=a.l.ue;if(!a.l.Hf||!b||!a.G.length)return[];var c=Date.now()/1E3,d=a.G.filter(function(e){e=ee(e.attributes.ttl);return!e||b+e>c}).map(Rd).filter(Cf);return d.length?lc(a.B,d):[]}S("shaka.dash.DashParser",Hw);Ci("application/dash+xml",function(){return new Hw});Ci("video/vnd.mpeg.dash.mpd",function(){return new Hw});function px(){}S("shaka.dependencies",px);px.has=function(a){return qx.has(a)};px.add=function(a,b){if(!rx[a])throw Error(a+" is not supported");a==sx?Uc("mux.js","mux.js is no longer used in Shaka Player."):qx.set(a,function(){return b})};var sx="muxjs",rx={In:sx,ISOBoxer:"ISOBoxer"};px.Allowed=rx;var qx=new Map([["ISOBoxer",function(){return window.ISOBoxer}]]);function tx(){this.j=new Qb(function(){return navigator.userAgent.match(/Smart( ?|_)TV/i)||navigator.userAgent.match(/Android ?TV/i)?"TV":navigator.userAgentData?navigator.userAgentData.mobile?"MOBILE":"DESKTOP":/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)?"MOBILE":navigator.userAgentData&&navigator.userAgentData.platform?"android"==navigator.userAgentData.platform.toLowerCase()?"MOBILE":"DESKTOP":navigator.userAgent.includes("Android")?"MOBILE":"DESKTOP"});this.l=new Qb(function(){return navigator.vendor.includes("Apple")&&
(navigator.userAgent.includes("Version/")||navigator.userAgent.includes("OS/"))?"WEBKIT":navigator.userAgent.includes("Edge/")?"EDGE":navigator.userAgent.includes("Chrome/")?"CHROMIUM":navigator.userAgent.includes("Firefox/")?"GECKO":"UNKNOWN"})}function Fi(){var a=window.ManagedMediaSource||window.MediaSource;return a&&a.isTypeSupported?!0:!1}p=tx.prototype;p.ic=function(){return!!navigator.mediaCapabilities};p.Ja=function(){return this.j.value()};p.Ga=function(){return this.l.value()};p.xe=function(){return!1};
p.rj=function(){return!1};p.wf=function(){return!1};p.sj=function(){return!1};p.we=function(){return!1};p.od=function(){return!0};p.pd=function(){return!0};p.Ce=function(){return!0};p.xj=function(){return 0};p.nc=function(){return Promise.resolve({width:Infinity,height:Infinity})};p.Jj=function(){return!1};p.$h=function(){return!1};
p.$a=function(a){var b=this.Ja();if("TV"===b||"CONSOLE"===b||"CAST"===b)a.ads.customPlayheadTracker=!0,a.ads.skipPlayDetection=!0,a.ads.supportsMultipleMediaElements=!1;return a};p.ei=function(){return!!window.indexedDB};p.pj=function(){return[]};function On(a){Rb();return void 0!==window.matchMedia&&window.matchMedia("(color-gamut: p3)").matches?a?"HLG":"PQ":"SDR"}p.eg=function(){return!1};p.fj=function(){return!1};p.Ph=function(){return!1};p.di=function(){return!0};p.gj=function(){return!1};
p.Rj=function(){return!0};p.toString=function(){return"Device: "+this.Rb()+" v"+this.Ha()+"; Type: "+this.Ja()};function ux(){tx.call(this);this.g=new Qb(function(){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});this.h=new Qb(function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)||1<navigator.maxTouchPoints?"xr"in navigator?"VR":"MOBILE":"xr"in navigator?"VR":"DESKTOP"})}pa(ux,tx);p=ux.prototype;p.Ha=function(){return this.g.value()};p.Rb=function(){return"Apple Browser"};p.Ja=function(){return this.h.value()};
p.Ga=function(){return"WEBKIT"};p.ic=function(){return!1};p.xe=function(a,b){return"audio"===b};p.wf=function(){return!0};p.sj=function(a){return"audio"===a};p.$a=function(a){tx.prototype.$a.call(this,a);a.abr.minTimeToSwitch=.5;return a};p.eg=function(){return!0};
(navigator.vendor||"").includes("Apple")&&(/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)||1<navigator.maxTouchPoints||navigator.userAgentData&&navigator.userAgentData.platform&&"macos"==navigator.userAgentData.platform.toLowerCase()||navigator.platform&&navigator.platform.toLowerCase().includes("mac"))&&(Tb=function(){return new ux});function vx(){if(!wx())throw Error("Not a Chromecast device!");tx.call(this);this.h=new Qb(function(){var a=navigator.userAgent.match(/Chrome\/(\d+)/);return a?parseInt(a[1],10):null});this.g=new Qb(function(){var a=navigator.userAgentData&&navigator.userAgentData.platform||navigator.userAgent;a=a.toLowerCase();return a.includes("android")?xx:a.includes("fuchsia")?yx:zx})}pa(vx,tx);p=vx.prototype;p.Ha=function(){return this.h.value()};p.Rb=function(){return"Chromecast with "+this.g.value()};
p.Ja=function(){return"CAST"};p.Ga=function(){return"CHROMIUM"};p.ic=function(){return tx.prototype.ic.call(this)&&this.g.value()!==zx};p.pd=function(){return this.g.value()!==zx};p.xj=function(){switch(this.g.value()){case xx:return 0;case yx:return 3;default:return 1}};
p.nc=function(){var a,b,c,d,e;return Q(function(f){switch(f.g){case 1:a=window.cast&&cast.__platform__&&cast.__platform__.canDisplayType;b={width:1280,height:720};ta(f,2);if(!(c=a)){f.A(4);break}return F(f,cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160'),5);case 5:c=f.h;case 4:if(c){b.width=3840;b.height=2160;f.A(6);break}if(!(d=a)){f.A(7);break}return F(f,cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=1920; height=1080'),8);case 8:d=
f.h;case 7:d&&(b.width=1920,b.height=1080);case 6:wa(f,3);break;case 2:e=xa(f),$a("Failed to check canDisplayType:",e);case 3:return f.return(b)}})};p.$a=function(a){tx.prototype.$a.call(this,a);a.streaming.stallSkip=0;return a};p.ei=function(){return!1};function wx(){return navigator.userAgent.includes("CrKey")&&!navigator.userAgent.includes("VIZIO SmartCast")}var xx="Android",yx="Fuchsia",zx="Linux";wx()&&(Tb=function(){return new vx});function Ax(){tx.call(this);var a=this;this.i=new Qb(function(){var b=navigator.userAgent.match(/(Chrome|Firefox)\/(\d+)/);return b?parseInt(b[2],10):null});this.g=new Qb(function(){return navigator.userAgent.match(/Edge?\//)?"Edge":navigator.userAgent.includes("Chrome")?"Chrome":navigator.userAgent.includes("Firefox")?"Firefox":"Unknown"});this.h=new Qb(function(){return navigator.userAgentData&&navigator.userAgentData.platform?"windows"==navigator.userAgentData.platform.toLowerCase():navigator.platform?
navigator.platform.toLowerCase().includes("win32"):!1});this.s=new Qb(function(){return navigator.userAgent.match(/Edge?\//)?!a.h.value():!0});this.m=new Qb(function(){return navigator.userAgent.includes("sony.hbbtv.tv.G5")})}pa(Ax,tx);p=Ax.prototype;p.Ha=function(){return this.i.value()};p.Rb=function(){return this.g.value()};p.xe=function(a){return xg(a)?"Edge"===this.g.value()&&this.h.value():!1};p.rj=function(){return"Edge"===this.g.value()&&this.h.value()};
p.wf=function(){return"Edge"===this.g.value()&&this.h.value()};p.pd=function(){return this.s.value()};p.$a=function(a){tx.prototype.$a.call(this,a);if(this.h.value())switch(this.g.value()){case "Firefox":a.drm.keySystemsMapping={"com.microsoft.playready":"com.microsoft.playready.recommendation"};break;case "Chrome":a.drm.keySystemsMapping={"com.microsoft.playready":"com.microsoft.playready.recommendation.3000","com.microsoft.playready.recommendation":"com.microsoft.playready.recommendation.3000"}}return a};
p.Ph=function(){return"Edge"===this.g.value()||this.m.value()};Ub=function(){return new Ax};function Bx(){tx.apply(this,arguments)}pa(Bx,tx);p=Bx.prototype;p.Ha=function(){return null};p.Rb=function(){return"Hisense"};p.Ja=function(){return"TV"};p.ic=function(){return!1};p.nc=function(){var a={width:1920,height:1080},b=null;if(window.Hisense_Get4KSupportState)try{b=window.Hisense_Get4KSupportState()}catch(c){}null==b&&(b=navigator.userAgent.includes("UHD"));b&&(a.width=3840,a.height=2160);return Promise.resolve(a)};p.$a=function(a){tx.prototype.$a.call(this,a);a.streaming.stallSkip=0;return a};
if(navigator.userAgent.includes("Hisense")||navigator.userAgent.includes("VIDAA"))Tb=function(){return new Bx};function Cx(){tx.call(this);this.g=new Qb(function(){var a=navigator.userAgent.match(/PlayStation (\d+)/);return a?parseInt(a[1],10):null})}pa(Cx,tx);p=Cx.prototype;p.Rb=function(){return"PlayStation"};p.Ja=function(){return"CONSOLE"};p.Ga=function(){return"WEBKIT"};p.Ha=function(){return this.g.value()};p.ic=function(){return!1};p.od=function(){return!1};p.pd=function(){return!1};p.$h=function(){return 4===this.Ha()};
p.nc=function(){var a,b,c,d,e;return Q(function(f){switch(f.g){case 1:return a={width:1920,height:1080},b=!1,ta(f,2),F(f,window.msdk.device.getDisplayInfo(),4);case 4:c=f.h;b="4K"===c.resolution;wa(f,3);break;case 2:return xa(f),ta(f,5),F(f,window.msdk.device.getDisplayInfoImmediate(),7);case 7:d=f.h;b="4K"===d.resolution;wa(f,3);break;case 5:e=xa(f),ab("PlayStation: Failed to get the display info:",e);case 3:return b&&(a.width=3840,a.height=2160),f.return(a)}})};
p.$a=function(a){tx.prototype.$a.call(this,a);4===this.Ha()&&a.drm.preferredKeySystems.push("com.microsoft.playready");a.streaming.clearDecodingCache=!0;return a};p.Ph=function(){return 4===this.Ha()};p.di=function(){return 4!==this.Ha()};navigator.userAgent.includes("PlayStation")&&(Tb=function(){return new Cx});function Dx(){tx.call(this);var a=navigator.userAgent.match(/Tizen (\d+).(\d+)/);this.g=a?parseInt(a[1],10):null;this.h=a?parseInt(a[2],10):null}pa(Dx,tx);p=Dx.prototype;p.Ha=function(){return this.g};p.Rb=function(){return"Tizen"};p.Ga=function(){return"CHROMIUM"};p.Ja=function(){return"TV"};p.xe=function(){return!0};p.we=function(){return 3===this.Ha()};p.ic=function(){return!1};p.od=function(){var a=this.Ha();return null!==a?4<=a:tx.prototype.od.call(this)};p.pd=function(){return!1};
p.Ce=function(){return this.g&&this.h?5===this.g?5<=this.h:5<this.g:tx.prototype.Ce.call(this)};
p.nc=function(){var a=window.devicePixelRatio;a={width:1920<window.screen.width*a?3840:1920,height:1080<window.screen.height*a?2160:1080};try{if(webapis.systeminfo&&webapis.systeminfo.getMaxVideoResolution){var b=webapis.systeminfo.getMaxVideoResolution();a.width=b.width;a.height=b.height}else webapis.productinfo.is8KPanelSupported&&webapis.productinfo.is8KPanelSupported()?(a.width=7680,a.height=4320):webapis.productinfo.isUdPanelSupported&&webapis.productinfo.isUdPanelSupported()&&(a.width=3840,
a.height=2160)}catch(c){ab("Tizen: Error detecting screen size, default screen size 1920x1080.")}return Promise.resolve(a)};p.$a=function(a){tx.prototype.$a.call(this,a);a.drm.ignoreDuplicateInitData=2!==this.Ha();3===this.Ha()&&(a.streaming.crossBoundaryStrategy="reset");a.streaming.shouldFixTimestampOffset=!0;a.streaming.stallSkip=0;a.streaming.gapPadding=2;return a};p.pj=function(){var a=[];null!==this.g&&5>this.g&&a.push("opus");return a};p.fj=function(){return!0};p.gj=function(){return 3===this.Ha()};
navigator.userAgent.includes("Tizen")&&(Tb=function(){return new Dx});function Ex(){tx.apply(this,arguments)}pa(Ex,tx);Ex.prototype.Ha=function(){return null};Ex.prototype.Rb=function(){return"Vizio"};Ex.prototype.Ja=function(){return"TV"};Ex.prototype.ic=function(){return!1};navigator.userAgent.includes("VIZIO SmartCast")&&(Tb=function(){return new Ex});function Fx(){tx.call(this);this.h=new Qb(function(){return navigator.userAgent.includes("DT_STB_BCM")});this.g=new Qb(function(){if(navigator.userAgent.includes("DT_STB_BCM"))return 11;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})}pa(Fx,tx);p=Fx.prototype;p.Ha=function(){return this.g.value()};p.Rb=function(){return"WebKit STB"};p.Ja=function(){return"TV"};p.Ga=function(){return"WEBKIT"};
p.ic=function(){return!1};p.od=function(){var a=this.g.value();return null!==a?15<=a:!0};p.nc=function(){return Promise.resolve({width:window.screen.width*window.devicePixelRatio,height:window.screen.height*window.devicePixelRatio})};p.di=function(){return!this.h.value()};
if(navigator.userAgent.includes("DT_STB_BCM")||navigator.userAgent.includes("DT_STB_BCM")||!(!(navigator.vendor||"").includes("Apple")||/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)||1<navigator.maxTouchPoints||navigator.userAgentData&&navigator.userAgentData.platform&&"macos"==navigator.userAgentData.platform.toLowerCase()||navigator.platform&&navigator.platform.toLowerCase().includes("mac")))Tb=function(){return new Fx};function Gx(){tx.call(this);this.g=Hx()}pa(Gx,tx);p=Gx.prototype;p.Ha=function(){return this.g};p.Rb=function(){return"WebOS"};p.Ja=function(){return"TV"};p.Ga=function(){return"CHROMIUM"};p.ic=function(){return!1};p.od=function(){var a=this.Ha();return null!==a?3<a:tx.prototype.od.call(this)};p.pd=function(){var a=this.Ha();return null!==a?6<a:tx.prototype.pd.call(this)};p.Ce=function(){var a=this.Ha();return null!==a?3<a:tx.prototype.Ce.call(this)};
p.nc=function(){var a={width:1920,height:1080};try{var b=JSON.parse(window.PalmSystem.deviceInfo);a.width=Math.max(1920,b.screenWidth);a.height=Math.max(1080,b.screenHeight)}catch(c){ab("WebOS: Error detecting screen size, default screen size 1920x1080.")}return Promise.resolve(a)};p.$a=function(a){tx.prototype.$a.call(this,a);3===this.Ha()&&(a.streaming.crossBoundaryStrategy="reset");a.streaming.shouldFixTimestampOffset=!0;a.streaming.stallSkip=0;return a};
function Hx(){var a=null,b=navigator.userAgent.match(/Chrome\/(\d+)/);b&&(a=parseInt(b[1],10));switch(a){case 38:return 3;case 53:return 4;case 68:return 5;case 79:return 6;case 87:return 22;case 94:return 23;case 108:return 24;case 120:return 25;default:return null}}p.Rj=function(){return!1};navigator.userAgent.includes("Web0S")&&(Tb=function(){return new Gx});function Ix(){tx.call(this);this.g=navigator.userAgent.includes("Edge/");var a=navigator.userAgent.match(/Edge?\/(\d+)/);this.h=a?parseInt(a[1],10):null}pa(Ix,tx);p=Ix.prototype;p.Ha=function(){return this.h};p.Rb=function(){return"Xbox"};p.Ja=function(){return"CONSOLE"};p.Ga=function(){return this.g?"EDGE":"CHROMIUM"};p.xe=function(){return!0};p.wf=function(){return!0};p.Jj=function(){return this.g};
p.nc=function(){var a={width:1920,height:1080},b=Jx();if(b)try{var c=new b.Media.Protection.ProtectionCapabilities,d=b.Media.Protection.ProtectionCapabilityResult;b=null;do b=c.isTypeSupported('video/mp4;codecs="hvc1,mp4a";features="decode-res-x=3840,decode-res-y=2160,decode-bitrate=20000,decode-fps=30,decode-bpc=10,display-res-x=3840,display-res-y=2160,display-bpc=8"',"com.microsoft.playready.recommendation");while(b===d.maybe);b===d.probably&&(a.width=3840,a.height=2160)}catch(e){ab("Xbox: Error detecting screen size, default screen size 1920x1080.")}return Promise.resolve(a)};
p.$a=function(a){tx.prototype.$a.call(this,a);a.drm.parseInbandPsshEnabled=this.g;a.drm.preferredKeySystems.push("com.microsoft.playready");this.g&&(a.streaming.gapPadding=.01);return a};p.ei=function(){return!1};function Jx(){var a=null;try{a="undefined"!==typeof Windows?Windows:chrome.webview.hostObjects.sync.Windows}catch(b){}return a}if(navigator.userAgent.includes("Xbox One")||null!==Jx())Tb=function(){return new Ix};function Kx(a,b,c){this.type=a;this.ka=b;this.segments=c||null}function Lx(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d}Lx.prototype.toString=function(a){function b(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)}var c="#"+this.name,d=this.attributes?this.attributes.filter(function(e){return a?!a.has(e.name):!0}).map(b):[];this.value&&d.unshift(this.value);0<d.length&&(c+=":"+d.join(","));return c};
function Mx(a,b){if(b)return a.toString();b=(new Set).add("AUDIO").add("VIDEO").add("SUBTITLES").add("PATHWAY-ID").add("GROUP-ID").add("URI");return a.toString(b)}function Nx(a,b){a=a.attributes.filter(function(c){return c.name==b});return a.length?a[0]:null}function Ox(a,b,c){return(a=Nx(a,b))?a.value:c||null}function Px(a,b){a=Nx(a,b);if(!a)throw new V(2,4,4023,b);return a.value}function Qx(a,b,c){c=void 0===c?[]:c;this.ka=b;this.g=a;this.zc=c}function Rx(a,b){this.name=a;this.value=b};function Sx(a,b){return a.filter(function(c){return c.name==b})}function Tx(a,b){return a.filter(function(c){return Px(c,"TYPE")==b})}function Ux(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.name===b)return c;return null}function Vx(a,b,c){c=void 0===c?0:c;return(a=Ux(a,b))?Number(a.value):c}function Wx(a,b,c){return b?Xx(a,[b],c):[]}function Xx(a,b,c){if(!b.length)return[];var d=b;c&&c.size&&(d=b.map(function(e){return Yx(e,c)}));return lc(a,d)}
function Yx(a,b){if(!b||!b.size)return a;a=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}");var c=a.match(/{\$\w*}/g);if(c){c=t(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=d.slice(2,d.length-1),f=b.get(e);if(f)a=a.replace(d,f);else throw new V(2,4,4039,e);}}return a};function Zx(){this.g=0}
function $x(a,b){b=Wb(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var c=b.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(c[0]))throw new V(2,4,4015);b=0;for(var d=!0,e=t(c),f=e.next();!f.done;f=e.next())if(f=f.value,/^#(?!EXT)/m.test(f)||d)d=!1;else if(f=ay(a,f),--a.g,by.includes(f.name)){b=1;break}else"EXT-X-STREAM-INF"==f.name&&(d=!0);e=[];d=!0;for(f=0;f<c.length;f++){var g=c[f],h=c[f+1];if(/^#(?!EXT)/m.test(g)||d)d=!1;else{g=ay(a,g);if(cy.includes(g.name)){if(1!=b)throw new V(2,4,4017);g=
c.splice(f,c.length-f);c=[];d=[];f=[];h=null;g=t(g);for(var k=g.next();!k.done;k=g.next())k=k.value,/^(#EXT)/.test(k)?(k=ay(a,k),by.includes(k.name)?e.push(k):"EXT-X-MAP"==k.name?h=k:"EXT-X-PART"==k.name?f.push(k):"EXT-X-PRELOAD-HINT"==k.name?"PART"==Ox(k,"TYPE")?f.push(k):"MAP"==Ox(k,"TYPE")&&(k.name="EXT-X-MAP",h=k):d.push(k)):/^#(?!EXT)/m.test(k)||(k=k.trim(),h&&d.push(h),c.push(new Qx(k,d,f)),d=[],f=[]);f.length&&(h&&d.push(h),c.push(new Qx("",d,f)));return new Kx(b,e,c)}e.push(g);"EXT-X-STREAM-INF"==
g.name&&(g.attributes.push(new Rx("URI",h)),d=!0)}}return new Kx(b,e)}function ay(a,b){a=a.g++;var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new V(2,4,4016,b);b=c[1];var d=c[2];c=[];var e;if(d){d=new vd(d);var f;(f=xd(d,/^([^,=]+)(?:,|$)/g))&&(e=f[1]);for(var g=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;f=xd(d,g);)c.push(new Rx(f[1],f[2]||f[3])),wd(d)}return new Lx(a,b,c,e)}
var by="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP EXT-X-PART-INF EXT-X-DATERANGE".split(" "),cy="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP EXT-X-GAP EXT-X-TILES".split(" ");function dy(){}function ey(a,b){try{var c=fy(a);return Mg({uri:a,originalUri:a,data:c.data,headers:{"content-type":c.contentType},originalRequest:b})}catch(d){return Kg(d)}}
function fy(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new V(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new V(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=hc(a):e=$b(a);return{data:e,contentType:c}}S("shaka.net.DataUriPlugin",dy);dy.parse=ey;Tg("data",ey);function gy(){var a=this;this.g=this.h=null;this.G=1;this.B=new Map;this.J=new Map;this.C=new Map;this.C.set("video",new Map);this.C.set("audio",new Map);this.C.set(sc,new Map);this.C.set("image",new Map);this.dc=(new Map).set("com.apple.streamingkeydelivery",function(b,c,d){return hy(a,b,c,d)}).set("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",function(b){var c=Px(b,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(c)){var d="cenc";"SAMPLE-AES"==c&&(d="cbcs");c=Px(b,"URI");c=fy(c.split("?")[0]);
c=Kb(c.data);d=mc("com.widevine.alpha",d,[{initDataType:"cenc",initData:c}]);(b=Ox(b,"KEYID"))&&d.keyIds.add(b.toLowerCase().substr(2));b=Promise.resolve(d)}else b=Promise.resolve(null);return b}).set("com.microsoft.playready",function(b){var c=Px(b,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(c)){var d="cenc";"SAMPLE-AES"==c&&(d="cbcs");b=Px(b,"URI");b=fy(b.split("?")[0]);b=Kb(b.data);c=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);c=xh(b,c,new Set,0);d=mc("com.microsoft.playready",
d,[{initDataType:"cenc",initData:c}]);if(b=Id(["<PLAYREADY>",gc(b),"</PLAYREADY>"].join("\n")))d.licenseServerUri=Su(b);d=Promise.resolve(d)}else d=Promise.resolve(null);return d}).set("urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c",function(b){var c=Px(b,"METHOD");if(["SAMPLE-AES","SAMPLE-AES-CTR"].includes(c)){var d="cenc";"SAMPLE-AES"==c&&(d="cbcs");c=Px(b,"URI");c=fy(c.split("?")[0]);c=Kb(c.data);d=mc("com.huawei.wiseplay",d,[{initDataType:"cenc",initData:c}]);(b=Ox(b,"KEYID"))&&d.keyIds.add(b.toLowerCase().substr(2));
b=Promise.resolve(d)}else b=Promise.resolve(null);return b});this.Ya=new Set;this.i=new Map;this.l=null;this.F="";this.La=new Zx;this.K=-1;this.Z=Infinity;this.Y=this.yc=this.Ta=!1;this.D=new zf(function(){if(a.R&&!a.g.continueLoadingWhenPaused&&(a.P.Da(a.R,"timeupdate"),a.R.paused)){a.P.qa(a.R,"timeupdate",function(){return iy(a)});return}iy(a)});this.sa=jy;this.m=null;this.Na=0;this.s=Infinity;this.fb=this.Ia=this.O=0;this.U=new Qg;this.H=new Map;this.I=new Map;this.ra=new Map;this.ba=new Map;this.L=
new Map;this.na=new Map;this.oa=new Map;this.wc=this.$=!1;this.cb=new Lc(5);this.j=null;this.N=!0;this.P=new Oc;this.u=this.R=null;this.Lb=function(){return!1}}p=gy.prototype;p.configure=function(a,b){var c=this.h&&a.updatePeriod!=this.g.updatePeriod&&0<=a.updatePeriod;this.g=a;b&&(this.Lb=b);this.j&&this.j.configure(this.g);c&&this.m&&this.m.presentationTimeline.T()&&this.D.Ka()};
p.start=function(a,b){var c=this,d;return Q(function(e){return 1==e.g?(c.h=b,c.$=b.isLowLatencyMode(),F(e,ky(c,[a]).promise,2)):3!=e.g?(d=e.h,c.F=d.uri,F(e,ly(c,d.data),3)):e.return(c.m)})};
p.stop=function(){this.D&&(this.D.stop(),this.D=null);var a=[];this.U&&(a.push(this.U.destroy()),this.U=null);this.g=this.h=null;this.Ya.clear();this.m=null;this.i.clear();this.J.clear();this.I.clear();this.B.clear();this.ra.clear();this.ba.clear();this.L.clear();this.na.clear();this.oa.clear();this.j&&this.j.destroy();this.P&&(this.P.release(),this.P=null);return Promise.all(a)};
p.update=function(){var a=this,b,c,d,e,f,g,h,k,l,m,n,q;return Q(function(r){if(1==r.g){if(!my(a))return r.return();b=[];c=Array.from(a.i.values());a.s=Infinity;a.m.gapCount=0;d=c.filter(function(u){return u.stream.segmentIndex});e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(ny(a,g));return F(r,Promise.all(b),2)}oy(a,d.map(function(u){return u.stream}));h=d.some(function(u){return 0==u.ee});d.length&&!h&&(k=py,qy(a,k.bk),l=d.map(function(u){return u.uc}),a.l.vb(Math.min.apply(Math,x(l))),
a.h.updateDuration());h&&ry(a);m=t(d);for(n=m.next();!n.done;n=m.next())q=n.value,q.stream.isAudioMuxedInVideo||!q.stream.segmentIndex||cg(q.stream.segmentIndex)||a.h.disableStream(q.stream);I(r)})};function sy(a,b){return my(a)?a.C.get(b.type):b.Ef}
function ny(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L,N,O,M,P,R,T,ca,Y,Ma,Na;return Q(function(Ea){switch(Ea.g){case 1:if(b.stream.isAudioMuxedInVideo)return Ea.return();c=[];d=t(b.S());for(e=d.next();!e.done;e=d.next())f=e.value,g=new qb(f),h=g.g,b.df&&(0<=b.Vb&&h.add("_HLS_msn",String(b.Vb)),0<=b.Wb&&h.add("_HLS_part",String(b.Wb))),b.ef&&h.add("_HLS_skip","YES"),Hb(h)&&vb(g,xb(h.toString())),c.push(g.toString());ta(Ea,2);return F(Ea,ky(a,c,!0).promise,4);case 4:k=Ea.h;wa(Ea,
3);break;case 2:throw l=xa(Ea),a.h&&a.h.disableStream(b.stream),l;case 3:if(!b.stream.segmentIndex)return Ea.return();m=$x(a.La,k.data);if(1!=m.type)throw new V(2,4,4017);n=k.uri;n==k.originalUri||b.S().includes(n)||b.Uf.push(n);q=Sx(m.ka,"EXT-X-DEFINE");r=ty(a,q,n);u=b.stream;w=sy(a,b);return F(Ea,uy(a,m,u.mimeType,b.S,r),5);case 5:v=Ea.h;y=v.keyIds;z=v.drmInfos;A=v.encrypted;B=v.wi;u.encrypted||!A||B||(u.encrypted=!0);D=function(va,Ja){return va.size===Ja.size&&[].concat(x(va)).every(function(Pa){return Ja.has(Pa)})};
D(u.keyIds,y)||(u.keyIds=y,u.drmInfos=z,a.h.newDrmInfo(u));G=vy(a,m,w,r,b.S,b.type);C=G.segments;if(E=G.bandwidth)u.bandwidth=E;H=jm(u);K=t(C);for(J=K.next();!J.done;J=K.next())L=J.value,L.ea&&(L.ea.Ed=H);u.segmentIndex.pe(C,a.l.Kb());C.length&&(N=Vx(m.ka,"EXT-X-MEDIA-SEQUENCE",0),M=(O=Ux(m.ka,"EXT-X-SKIP"))?Number(Ox(O,"SKIPPED-SEGMENTS")):0,P=wy(N,C),R=P.Vb,T=P.Wb,b.Vb=R+M,b.Wb=T,ca=w.get(N),u.segmentIndex.hb(ca));if(Y=cg(u.segmentIndex))b.hd=Y.startTime,Ma=C[C.length-1],b.uc=Ma.endTime;if(Na=Ux(m.ka,
"EXT-X-ENDLIST"))b.ee=!0;xy(a,m);yy(a,m.ka,u.type,r,b.S);I(Ea)}})}p.onExpirationUpdated=function(){};p.onInitialVariantChosen=function(){};p.banLocation=function(a){this.j&&this.j.banLocation(a)};p.setMediaElement=function(a){this.R=a};
function zy(a,b,c){c=void 0===c?!1:c;for(var d=-1==a.K,e=t(b),f=e.next();!f.done;f=e.next()){f=f.value;var g=f.stream.segmentIndex,h=sy(a,f);if(g=cg(g)){h=t(h);for(var k=h.next();!k.done;k=h.next()){k=t(k.value);var l=k.next().value;if(k.next().value==g.startTime){d&&(a.K=Math.max(a.K,l));f.Pg=l;break}}}}if(!(0>a.K))for(b=t(b),d=b.next();!d.done;d=b.next())if(d=d.value,Ay(a,d.type)||c)if(e=d.stream.segmentIndex)if(f=a.K-d.Pg,0<f&&(e.g.splice(0,f),e=cg(e)))e=-e.startTime,d.stream.segmentIndex.offset(e),
By(a,d,e)}
function Cy(a,b){if(Infinity==a.Z){b=t(b);for(var c=b.next();!c.done;c=b.next())c=cg(c.value.stream.segmentIndex),null!=c&&null!=c.h&&(a.Z=Math.min(a.Z,c.h))}b=a.Z;if(Infinity!=b){c=t(a.i.values());for(var d=c.next();!d.done;d=c.next())if(d=d.value,!Ay(a,d.type)){var e=d.stream.segmentIndex;if(null!=e){var f=cg(e);if(f)if(null==f.h)$a("Missing EXT-X-PROGRAM-DATE-TIME for stream",d.S(),"Expect AV sync issues!");else for(By(a,d,f.h-b-f.startTime),d=t(e),e=d.next();!e.done;e=d.next())e.value.gi(b)}}}}
function By(a,b,c){if(!(.001>Math.abs(c))){b.hd+=c;b.uc+=c;a=sy(a,b);for(var d=t(a),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.set(e,f+c)}b.S()}}
function ly(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L,N,O,M,P,R,T,ca,Y,Ma,Na,Ea,va,Ja,Pa,za,ja;return Q(function(Aa){switch(Aa.g){case 1:c=uc;d=$x(a.La,b);e=Sx(d.ka,"EXT-X-DEFINE");f=[];g=[];h=[];a.l=new xl(null,0);a.l.nd(!0);k=function(){return[a.F]};l=null;m=new Map;if(1==d.type)return a.N=!1,R=Sx(d.ka,"EXT-X-DEFINE"),m=ty(a,R,a.F),l=c.Ea,T="",ca=new Map,F(Aa,Dy(a,a.G++,m,d,k,"",l,T,!0,"Media Playlist",null,ca,null,!1,null,!1),7);Ey(a,e);n=Sx(d.ka,"EXT-X-MEDIA");q=Sx(d.ka,"EXT-X-STREAM-INF");
r=Sx(d.ka,"EXT-X-IMAGE-STREAM-INF");u=Sx(d.ka,"EXT-X-I-FRAME-STREAM-INF");w=Sx(d.ka,"EXT-X-SESSION-KEY");v=Sx(d.ka,"EXT-X-SESSION-DATA");y=Sx(d.ka,"EXT-X-CONTENT-STEERING");Fy(a,v);return F(Aa,Gy(a,y),4);case 4:if(!a.g.ignoreSupplementalCodecs){z=[];A=t(q);B=A.next();for(D={};!B.done;D={Pj:void 0},B=A.next())if(G=B.value,C=Ox(G,"SUPPLEMENTAL-CODECS"))D.Pj=C.split(/\s*,\s*/).map(function(eb){return eb.split("/")[0]}),E=G.attributes.map(function(eb){return function(fb){var nb=fb.name,wb=fb.value;"CODECS"==
nb&&(wb=eb.Pj.join(","),fb=fb.value.split(","),1<fb.length&&(fb=pc("audio",fb))&&(wb+=","+fb));return new Rx(nb,wb)}}(D)),z.push(new Lx(G.id,G.name,E,null));q.push.apply(q,x(z));H=[];K=t(u);J=K.next();for(L={};!J.done;L={Qj:void 0},J=K.next())if(N=J.value,O=Ox(N,"SUPPLEMENTAL-CODECS"))L.Qj=O.split(/\s*,\s*/).map(function(eb){return eb.split("/")[0]}),M=N.attributes.map(function(eb){return function(fb){var nb=fb.name;fb=fb.value;"CODECS"==nb&&(fb=eb.Qj.join(","));return new Rx(nb,fb)}}(L)),H.push(new Lx(N.id,
N.name,M,null));u.push.apply(u,x(H))}Hy(a,q);Iy(a,n);P=Jy(a,u);return F(Aa,Ky(a,q,w,n,k,a.B,P),5);case 5:return f=Aa.h,g=Ly(a,n),F(Aa,My(a,r,u),6);case 6:h=Aa.h;Aa.A(3);break;case 7:Y=Aa.h,a.i.set(a.F,Y),Y.stream&&(Ma=jm(Y.stream),Y.stream.segmentIndex.Hb(function(eb){eb.ea&&(eb.ea.Ed=Ma)})),l=Y.stream.type,Na=!0,a.g.disableAudio&&"audio"==Y.type?Na=!1:a.g.disableVideo&&"video"==Y.type&&!Y.stream.codecs.includes(",")&&(Na=!1),Na&&f.push({id:0,language:yc(T||"und"),disabledUntilTime:0,primary:!0,audio:"audio"==
Y.type?Y.stream:null,video:"video"==Y.type?Y.stream:null,bandwidth:Y.stream.bandwidth||0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.h)throw new V(2,7,7001);Ny(a,d);1==d.type&&(my(a)&&(Oy(a,d),Ea=a.s,a.D.X(Ea)),va=Array.from(a.i.values()),Py(a,va),ry(a),yy(a,d.ka,l,m,k));a.m={presentationTimeline:a.l,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],sequenceMode:a.g.hls.sequenceMode,ignoreManifestTimestampsInSegmentsMode:a.g.hls.ignoreManifestTimestampsInSegmentsMode,
type:"HLS",serviceDescription:null,nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1,startTime:a.u};if(a.Y||!a.g.hls.disableCodecGuessing){Aa.A(8);break}Ja=[];Pa=t(a.m.variants);for(za=Pa.next();!za.done;za=Pa.next())ja=za.value,ja.audio&&""===ja.audio.codecs&&Ja.push(ja.audio.createSegmentIndex()),ja.video&&""===ja.video.codecs&&Ja.push(ja.video.createSegmentIndex());return F(Aa,Promise.all(Ja),8);case 8:a.h.makeTextStreamsForClosedCaptions(a.m),I(Aa)}})}
function Qy(a,b){var c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A;return Q(function(B){if(1==B.g){c=zm(a.g.hls.mediaPlaylistFullMimeType);if(!b.length)return B.return(c);d=Ry(a,b);e=d.segment;f=d.segmentIndex;g=e.S();h=g[0];k=new qb(h);l=k.ub.split(".").pop();return(m=Sy.get(l))?B.return(zm(m)):F(B,Promise.all([Ty(a,e.ea,0),Ty(a,e,f)]),2)}n=B.h;q=n[1].mimeType;r=n[0].data;u=n[1].data;w="mp4 mp4a m4s m4i m4a m4f cmfa mp4v m4v cmfv fmp4".split(" ");v=["audio/mp4","video/mp4","video/iso.segment"];y=e.ea||v.includes(q);
if(!y&&vk(Kb(u))){var D=u,G=a.g.disableAudio,C=a.g.disableVideo,E=a.g.disableText;var H=Kb(D);var K=(new nk).parse(H),J=K.ae();H=K.nh();var L=[],N=!1,O=!1;if(!G)switch(J.audio){case "aac":case "aac-loas":K.yb().length&&(L.push("mp4a.40.2"),N=!0);break;case "mp3":K.yb().length&&(L.push("mp4a.40.34"),N=!0);break;case "ac3":K.yb().length&&(L.push("ac-3"),N=!0);break;case "ec3":K.yb().length&&(L.push("ec-3"),N=!0);break;case "opus":K.yb().length&&(L.push("opus"),N=!0)}if(!C)switch(J.video){case "avc":H.codec?
L.push(H.codec):L.push("avc1.42E01E");O=!0;break;case "hvc":H.codec?L.push(H.codec):L.push("hvc1.1.6.L93.90");O=!0;break;case "av1":L.push("av01.0.01M.08"),O=!0}if(L.length){G=N&&!O;C=new Map;if(O&&!E){E=new id("video/mp2t");E.Of(D);D=t(E.rg());for(O=D.next();!O.done;O=D.next())O=O.value,C.set(O,O);E.Sd()}H={type:G?"audio":"video",mimeType:"video/mp2t",codecs:L.join(", "),language:null,height:H.height,width:H.width,channelCount:null,sampleRate:null,closedCaptions:C,Ge:null,colorGamut:null,frameRate:H.frameRate}}else H=
null;if(z=H)return B.return(z)}else if(y||w.includes(l))if(A=Am(r,u,a.g.disableText))return B.return(A);return q?B.return(zm(q)):B.return(c)})}
function Ty(a,b,c){var d,e,f,g,h,k;return Q(function(l){switch(l.g){case 1:if(!b)return l.return({mimeType:null,data:null});d=ch;e=Fm(b.S(),b.Ic(),b.Gc(),a.g.retryParameters);f=b instanceof Aj?1:0;return F(l,Uy(a,e,d,{type:f}).promise,2);case 2:g=l.h;h=g.data;if(!b.aesKey){l.A(3);break}return F(l,Em(h,b.aesKey,c),4);case 4:h=l.h;case 3:return b instanceof Aj?b.ze(h,!0):b.ze(h),(k=g.headers["content-type"])&&(k=k.split(";")[0].toLowerCase()),l.return({mimeType:k,data:h})}})}
function ry(a){if(my(a)){if(a.sa==Vy){for(var b=Infinity,c=Infinity,d=t(a.i.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&!e.stream.isAudioMuxedInVideo&&(b=Math.min(b,e.uc),c=Math.min(c,e.hd));b=b-c||0;isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.ag(b)}}else a.l.vb(Wy(a));if(!a.l.s)for(b=t(a.i.values()),c=b.next();!c.done;c=b.next())c=c.value,!c.stream.segmentIndex||"audio"!=c.type&&"video"!=c.type||(c=cg(c.stream.segmentIndex))&&
c.h&&a.l.Wh(c.h);a.l.Df()}function Ey(a,b){var c=(new qb(a.F)).g;b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=Ox(e,"NAME");var f=Ox(e,"VALUE");e=Ox(e,"QUERYPARAM");d&&f&&(a.B.has(d)||a.B.set(d,f));e&&(d=c.get(e)[0])&&!a.B.has(d)&&a.B.set(e,d)}}
function ty(a,b,c){c=(new qb(c)).g;var d=new Map;b=t(b);for(var e=b.next();!e.done;e=b.next()){var f=e.value,g=Ox(f,"NAME"),h=Ox(f,"VALUE");e=Ox(f,"QUERYPARAM");f=Ox(f,"IMPORT");g&&h&&(d.has(g)||d.set(g,h));e&&(g=c.get(e)[0])&&!d.has(g)&&d.set(e,g);f&&(e=a.B.get(f))&&d.set(f,e)}return d}
function Hy(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Ox(d,"AUDIO");c=Ox(d,"VIDEO");var f=Ox(d,"SUBTITLES");d=Xy(a,d);if(f){var g=pc(sc,d);a.I.set(f,g);sd(d,g)}e&&(f=pc("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.I.set(e,f));c&&(e=pc("video",d),e||(e=a.g.hls.defaultVideoCodec),a.I.set(c,e))}}
function Fy(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Ox(d,"DATA-ID");c=Ox(d,"URI");var f=Ox(d,"LANGUAGE");d=Ox(d,"VALUE");e=(new Map).set("id",e);c&&e.set("uri",Wx([a.F],c,a.B)[0]);f&&e.set("language",f);d&&e.set("value",d);c=new U("sessiondata",e);if(a.h)a.h.onEvent(c)}}
function Gy(a,b){var c,d,e,f,g,h;return Q(function(k){if(!a.h||!a.g)return k.return();d=t(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,g=Ox(f,"PATHWAY-ID"),h=Ox(f,"SERVER-URI"),g&&h){a.j=new Pv(a.h);a.j.configure(a.g);a.j.i=[a.F];a.j.setManifestType("HLS");a.j.h=g;c=Qv(a.j,h);break}return F(k,c,0)})}
function Ly(a,b){var c=Tx(b,"SUBTITLES");b=c.map(function(g){if(a.g.disableText)return null;try{return Yy(a,[g],new Map).stream}catch(h){if(a.g.hls.ignoreTextStreamFailures)return null;throw h;}});c=t(c);for(var d=c.next();!d.done;d=c.next()){var e=Px(d.value,"GROUP-ID");if(d=a.I.get(e))if(e=a.J.get(e)){e=t(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f.stream.codecs=d,f.stream.mimeType=Zy(sc,d)||$y(sc),az(f.stream)}}return b.filter(function(g){return g})}
function az(a){var b=new Set([bf(a.mimeType,a.codecs)]);a.segmentIndex&&a.segmentIndex.Hb(function(c){c.mimeType&&b.add(bf(c.mimeType,a.codecs))});a.fullMimeTypes=b}
function My(a,b,c){var d,e;return Q(function(f){if(1==f.g)return d=b.map(function(g){var h,k,l;return Q(function(m){if(1==m.g){if(h=a.g.disableThumbnails)return m.return(null);ta(m,2);return F(m,bz(a,g),4)}if(2!=m.g)return k=m.h,m.return(k.stream);l=xa(m);if(a.g.hls.ignoreImageStreamFailures)return m.return(null);throw l;})}).concat(c.map(function(g){if(a.g.disableThumbnails)return null;try{var h=cz(a,g);return"image"!==h.stream.type?null:h.stream}catch(k){if(a.g.hls.ignoreImageStreamFailures)return null;
throw k;}})),F(f,Promise.all(d),2);e=f.h;return f.return(e.filter(function(g){return g}))})}function dz(a,b,c){b=b.filter(function(h){var k=Ox(h,"URI")||"";h=Ox(h,"TYPE");return"SUBTITLES"!=h&&(""!=k||"AUDIO"==h)});var d={};b=t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=Mx(e,!a.j);d[f]?d[f].push(e):d[f]=[e]}for(var g in d)Yy(a,d[g],c,!1)}function Jy(a,b){return b.map(function(c){c=cz(a,c);return"video"!==c.stream.type?null:c.stream}).filter(function(c){return c})}
function Ky(a,b,c,d,e,f,g){var h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L,N,O,M,P,R,T,ca,Y,Ma,Na,Ea,va,Ja,Pa;return Q(function(za){switch(za.g){case 1:h=[];k=new Set;if(a.g.ignoreDrmInfo||!(0<c.length)){za.A(2);break}l=t(c);m=l.next();case 3:if(m.done){za.A(2);break}n=m.value;q=Px(n,"METHOD");r=Ox(n,"KEYFORMAT")||"identity";u=null;if("NONE"==q){za.A(4);break}if(ez(q)){w=Wx(e(),Px(n,"URI"),f);v=w.sort().join("");a.L.has(v)||(y=Xg(w,a.g.retryParameters),z=Uy(a,y,6).promise,a.L.set(v,z));za.A(4);break}if("identity"==
r)return F(za,fz(a,n,"",e,null,f),12);A=a.dc.get(r);if(!A){B=null;za.A(10);break}return F(za,A(n,"",null),11);case 11:B=za.h;case 10:u=B;za.A(6);break;case 12:u=za.h;case 6:if(u){if(u.keyIds)for(D=t(u.keyIds),G=D.next();!G.done;G=D.next())C=G.value,k.add(C);h.push(u)}case 4:m=l.next();za.A(3);break;case 2:E={};H=t(b);for(K=H.next();!K.done;K=H.next())J=K.value,L=Mx(J,!a.j),E[L]?E[L].push(J):E[L]=[J];N=[];for(O in E)M=E[O],P=M[0],R=Ox(P,"FRAME-RATE"),T=Number(Ox(P,"AVERAGE-BANDWIDTH"))||Number(Px(P,
"BANDWIDTH")),ca=Ox(P,"RESOLUTION"),Y=t(ca?ca.split("x"):[null,null]),Ma=Y.next().value,Na=Y.next().value,Ea=Ox(P,"VIDEO-RANGE"),(va=Ox(P,"REQ-VIDEO-LAYOUT"))&&va.includes(",")&&(Ja=va.split(",").filter(function(ja){return"CH-STEREO"==ja||"CH-MONO"==ja}),va=Ja[0]),va=va||"CH-MONO",Pa=gz(a,M,d),N.push.apply(N,x(hz(a,Pa.audio,Pa.video,T,Ma,Na,R,Ea,va,h,k,g)));return za.return(N.filter(function(ja){return null!=ja}))}})}
function gz(a,b,c){for(var d={audio:[],video:[]},e=new Map,f=[],g=!1,h=!1,k=t(b),l=k.next();!l.done;l=k.next()){var m=l.value;l=Ox(m,"AUDIO");var n=Ox(m,"VIDEO"),q=l||n;q&&(f.includes(q)||f.push(q),(m=Ox(m,"PATHWAY-ID"))&&e.set(q,m),l?g=!0:n&&(h=!0))}f.length&&c.length&&(c=c.filter(function(u){return f.includes(Px(u,"GROUP-ID"))}),dz(a,c,e));c=(e=f.sort().join(","))&&a.J.has(e)?a.J.get(e):[];g?d.audio.push.apply(d.audio,x(c)):h&&d.video.push.apply(d.video,x(c));g=!1;var r=b.map(function(u){return Px(u,
"URI")});l=d.audio.find(function(u){return u&&u.S().find(function(w){return r.includes(w)})});h=Xy(a,b[0]);c=pc("video",h);(k=pc("audio",h))&&!c?(l="audio",g=0<d.audio.length):!d.audio.length&&!d.video.length&&k&&c?(l="video",h=[[c,k].join()]):d.audio.length&&l?(l="audio",g=!0):l=d.video.length&&!d.audio.length?"audio":"video";g||(a=iz(a,b,h,l),e&&(a.stream.groupId=e),d[a.stream.type]=[a]);return d}
function Xy(a,b){b=Ox(b,"CODECS")||"";a.Y=0<b.length;a.Y||a.g.hls.disableCodecGuessing||(b=[],a.g.disableVideo||b.push(a.g.hls.defaultVideoCodec),a.g.disableAudio||b.push(a.g.hls.defaultAudioCodec),b=b.join(","));return Bm(b.split(/\s*,\s*/))}
function hz(a,b,c,d,e,f,g,h,k,l,m,n){for(var q=t(c),r=q.next();!r.done;r=q.next())jz(r.value.stream,e,f,g,h,k,null);e=a.g.disableAudio;if(!b.length||e)b=[null];e=a.g.disableVideo;if(!c.length||e)c=[null];e=[];b=t(b);for(f=b.next();!f.done;f=b.next())for(f=f.value,g=t(c),h=g.next();!h.done;h=g.next()){var u=h.value;if(h=f?f.stream:null)h.drmInfos=l,h.keyIds=m;if(k=u?u.stream:null)k.drmInfos=l,k.keyIds=m,a.g.disableIFrames||lg(k,n);k&&!h&&(k.bandwidth=d);!k&&h&&(h.bandwidth=d);q=f?f.stream.drmInfos:
null;r=u?u.stream.drmInfos:null;u=u?u.S().sort().join(","):"";var w=f?f.S().sort().join(","):"",v=[];h&&h.codecs&&v.push(h.codecs);k&&k.codecs&&v.push(k.codecs);u=[u,w,v.sort()].join("-");h&&k&&!sg(q,r)||a.Ya.has(u)||(h={id:a.G++,language:h?h.language:"und",disabledUntilTime:0,primary:!!h&&h.primary||!!k&&k.primary,audio:h,video:k,bandwidth:d,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},e.push(h),a.Ya.add(u))}return e}
function Iy(a,b){b=Tx(b,"CLOSED-CAPTIONS");a.N=0==b.length;b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Ox(d,"LANGUAGE");c=yc(e||"und");e||(e=Ox(d,"NAME"))&&(c=e);e=Px(d,"GROUP-ID");d=Px(d,"INSTREAM-ID").replace("SERVICE","svc");a.H.get(e)||a.H.set(e,new Map);a.H.get(e).set(d,c)}}
function Yy(a,b,c,d){d=void 0===d?!0:d;for(var e=[],f=[],g=new Map,h=t(b),k=h.next();!k.done;k=h.next()){var l=k.value;k=d?Px(l,"URI"):Ox(l,"URI")||"shaka://hls-muxed";l=Px(l,"GROUP-ID");e.push(k);f.push(l);g.set(l,k)}d=f.sort().join(",");k=b[0];b="";h=Px(k,"TYPE").toLowerCase();"subtitles"==h&&(h=sc);if(h==sc)b=Ox(k,"CODECS")||"";else for(f=t(f),l=f.next();!l.done;l=f.next())if(l=l.value,a.I.has(l)){b=a.I.get(l);break}f=e.sort().join(",");if(a.i.has(f))return a.i.get(f);l=a.G++;if(a.j){g=t(g);for(var m=
g.next();!m.done;m=g.next()){var n=t(m.value);m=n.next().value;n=n.next().value;(m=c.get(m))&&Tv(a.j,l,m,n)}}c=Ox(k,"LANGUAGE");g=Ox(k,"NAME");m="YES"==Ox(k,"DEFAULT");"audio"==h?n=(n=Ox(k,"CHANNELS"))?parseInt(n.split("/")[0],10):null:n=null;var q;"audio"==h?(q=Ox(k,"CHANNELS"))?(q=q.split("/"),q=2!=q.length?!1:"JOC"===q[1]||q[1].includes("ATMOS")):q=!1:q=!1;var r=Ox(k,"CHARACTERISTICS"),u="YES"==Ox(k,"FORCED");"audio"==h?k=(k=Ox(k,"SAMPLE-RATE"))?parseInt(k,10):null:k=null;e=kz(a,l,e,b,h,c,m,g,
n,null,r,u,k,q);e.stream&&(e.stream.groupId=d);a.J.has(d)?a.J.get(d).push(e):a.J.set(d,[e]);a.i.set(f,e);return e}
function bz(a,b){var c,d,e,f,g,h,k,l,m,n;return Q(function(q){if(1==q.g){c=Px(b,"URI");d=Ox(b,"CODECS","jpeg")||"";if(a.i.has(c))return q.return(a.i.get(c));e=Ox(b,"LANGUAGE");f=Ox(b,"NAME");g=Ox(b,"CHARACTERISTICS");h=kz(a,a.G++,[c],d,"image",e,!1,f,null,null,g,!1,null,!1);return(k=Ox(b,"RESOLUTION"))?F(q,h.stream.createSegmentIndex(),3):q.A(2)}2!=q.g&&(l=cg(h.stream.segmentIndex),m=l.tilesLayout)&&(h.stream.width=Number(k.split("x")[0])*Number(m.split("x")[0]),h.stream.height=Number(k.split("x")[1])*
Number(m.split("x")[1]));if(n=Ox(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.i.set(c,h);return q.return(h)})}
function cz(a,b){var c="video",d=Px(b,"URI"),e=Ox(b,"CODECS")||"";"mjpg"==e&&(c="image");if(a.i.has(d))return a.i.get(d);var f=Ox(b,"LANGUAGE"),g=Ox(b,"NAME"),h=Ox(b,"CHARACTERISTICS");c=kz(a,a.G++,[d],e,c,f,!1,g,null,null,h,!1,null,!1);e=Ox(b,"RESOLUTION");f=t(e?e.split("x"):[null,null]);e=f.next().value;f=f.next().value;c.stream.width=Number(e)||void 0;c.stream.height=Number(f)||void 0;if(b=Ox(b,"BANDWIDTH"))c.stream.bandwidth=Number(b);a.i.set(d,c);return c}
function iz(a,b,c,d){for(var e=a.G++,f=[],g=t(b),h=g.next();!h.done;h=g.next()){var k=h.value;h=Px(k,"URI");k=Ox(k,"PATHWAY-ID");a.j&&k&&Tv(a.j,e,k,h);f.push(h)}g=f.sort().join(",")+c.sort().join(",");if(a.i.has(g))return a.i.get(g);h=f.join(",");a:{b=Ox(b[0],"CLOSED-CAPTIONS");if("video"==d){if(a.g.disableText){a.N=!1;b=null;break a}if(b){if("NONE"!=b){b=a.H.get(b);break a}a.N=!1}else if(!b&&a.H.size)for(b=t(a.H.keys()).next();!b.done;){b=a.H.get(b.value);break a}}b=null}c=oc(d,c);d=kz(a,e,f,c,d,
2025-06-19 04:02:44 +02:00
null,!1,h,null,b,null,!1,null,!1);a.i.set(g,d);return d}
2025-06-27 11:02:59 +02:00
function kz(a,b,c,d,e,f,g,h,k,l,m,n,q,r){function u(B){var D,G,C,E,H,K,J,L,N,O,M,P,R,T,ca,Y,Ma,Na,Ea,va,Ja,Pa,za;return Q(function(ja){switch(ja.g){case 1:return D=uc,ta(ja,2),F(ja,B.promise,4);case 4:G=ja.h;if(B.aborted)return ja.return();C=G.uri;C!=G.originalUri&&(E=y.S(),E.includes(C)||y.Uf.push(C));H=$x(a.La,G.data);if(1!=H.type)throw new V(2,4,4017);K=Sx(H.ka,"EXT-X-DEFINE");J=ty(a,K,C);L=!1;(!a.Y&&a.g.hls.disableCodecGuessing||a.N&&e==D.Ea&&!a.g.hls.disableClosedCaptionsDetection)&&0<H.segments.length&&
(a.N=!1,L=!0);N=!a.Y&&a.g.hls.disableCodecGuessing;O=my(a);return F(ja,Dy(a,0,J,H,w,d,e,f,g,h,k,l,m,n,q,r,void 0,L,N),5);case 5:M=ja.h;if(B.aborted)return ja.return();P=M.stream;Ny(a,H);my(a)&&!O&&Oy(a,H);y.hd=M.hd;y.uc=M.uc;y.ef=M.ef;y.df=M.df;y.ee=M.ee;y.Ef=M.Ef;y.Vb=M.Vb;y.Wb=M.Wb;y.Ah=!0;v.segmentIndex=P.segmentIndex;v.encrypted=P.encrypted;v.drmInfos=P.drmInfos;v.keyIds=P.keyIds;v.mimeType=P.mimeType;v.bandwidth=v.bandwidth||P.bandwidth;v.codecs=v.codecs||P.codecs;v.closedCaptions=v.closedCaptions||
P.closedCaptions;v.width=v.width||P.width;v.height=v.height||P.height;v.hdr=v.hdr||P.hdr;v.colorGamut=v.colorGamut||P.colorGamut;v.frameRate=v.frameRate||P.frameRate;"und"==v.language&&"und"!=P.language&&(v.language=P.language);v.language=v.language||P.language;v.channelsCount=v.channelsCount||P.channelsCount;v.audioSamplingRate=v.audioSamplingRate||P.audioSamplingRate;az(v);v.drmInfos.length&&a.h.newDrmInfo(v);R=!1;if(!l&&v.closedCaptions||l&&v.closedCaptions&&l.size!=v.closedCaptions.size)R=!0;
a.m&&R&&a.h.makeTextStreamsForClosedCaptions(a.m);if(e==D.Ea||e==D.ma)for(T=t(a.i.values()),ca=T.next();!ca.done;ca=T.next())Y=ca.value,Y.Ah||Y.type!=e||Y.stream.isAudioMuxedInVideo||(Y.stream.mimeType=P.mimeType,az(Y.stream));e==D.gb&&(Ma=cg(P.segmentIndex))&&Ma.ea&&(v.mimeType="application/mp4",az(v));Na=jm(v);v.segmentIndex.Hb(function(Aa){Aa.ea&&(Aa.ea.Ed=Na)});lz(a)&&(a.yc?Py(a,[y]):(a.yc=!0,Ea=Array.from(a.i.values()),va=Ea.filter(function(Aa){return Aa.stream.segmentIndex}),Py(a,va),ry(a),
Ja=a.s,0<Ja&&a.D.X(Ja)));yy(a,H.ka,v.type,J,w);a.m&&(a.m.startTime=a.u);wa(ja,0);break;case 2:Pa=xa(ja);v.closeSegmentIndex();if(7001===Pa.code)return ja.return();za=a.h.disableStream(v);if(!za)throw Pa;I(ja)}})}function w(){return a.j&&1<c.length?Uv(a.j,b):y.Uf.concat(Xx([a.F],c,a.B))}var v=Cz(a,d,e,f,g,h,k,l,m,n,q,r);c.includes("shaka://hls-muxed")&&(v.isAudioMuxedInVideo=!0,v.mimeType="video/mp2t",az(v));var y={stream:v,type:e,Uf:[],hd:0,uc:0,Ef:new Map,ef:!1,df:!1,ee:!1,Pg:-1,Vb:-1,Wb:-1,Ah:!1,
S:w},z=null,A;v.createSegmentIndex=function(){if(z)return z;if(v.isAudioMuxedInVideo)return v.segmentIndex=new Vl([]),Promise.resolve();A=ky(a,y.S(),!0);return z=new Promise(function(B){B(u(A))})};v.closeSegmentIndex=function(){z&&!v.segmentIndex&&A.abort();v.segmentIndex&&(v.segmentIndex.release(),v.segmentIndex=null);z=null};return y}
function Wy(a){var b=Infinity;a=t(a.i.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&"text"!=c.stream.type&&!c.stream.isAudioMuxedInVideo&&(b=Math.min(b,c.uc));return b}function oy(a,b){var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&d.segmentIndex.Hb(function(e){c.push(e)});a.l.re(c)}
function Py(a,b){if(!my(a))for(var c=Wy(a),d=t(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.yd(0,c);oy(a,b.map(function(f){return f.stream}));d=Array.from(a.i.values()).filter(function(f){return f.stream.segmentIndex});c=d.some(function(f){return"audio"==f.stream.type});e=d.some(function(f){return"video"==f.stream.type});d=my(a)&&!a.Ta;c=!my(a)&&a.Ta&&!(c&&e);a.g.hls.ignoreManifestProgramDateTime||d||c?zy(a,b,d):(Cy(a,b),0<a.g.hls.ignoreManifestProgramDateTimeForTypes.length&&zy(a,
b))}function Ay(a,b){return a.g.hls.ignoreManifestProgramDateTime?!0:a.g.hls.ignoreManifestProgramDateTimeForTypes.includes(b)}function lz(a){if(!a.m)return!1;var b=[],c=[];a=t(a.m.variants);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&b.push(d.video),d.audio&&c.push(d.audio);return 0<b.length&&!b.some(function(e){return e.segmentIndex})||0<c.length&&!c.some(function(e){return e.segmentIndex})?!1:!0}
function Dy(a,b,c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z){y=void 0===y?!0:y;z=void 0===z?!0:z;var A,B,D,G,C,E,H,K,J,L,N,O,M,P,R,T,ca,Y,Ma,Na,Ea,va,Ja,Pa,za,ja,Aa,eb,fb;return Q(function(nb){switch(nb.g){case 1:A=d.segments||[];B=A.every(function(wb){return Ux(wb.ka,"EXT-X-GAP")?!0:!1});if(!A.length||B)throw new V(2,4,4053);Dz(a,d);my(a)&&xy(a,d);D=my(a)?a.C.get(g):new Map;G=vy(a,d,D,c,e,g);C=G.segments;E=G.bandwidth;N=L=J=K=H=null;if(!(0<C.length&&y)){nb.A(2);break}return F(nb,Qy(a,C),3);case 3:O=nb.h,g!=
O.type&&my(a)&&(a.C.set(O.type,a.C.get(g)),a.C.set(g,new Map)),g=O.type,h=O.language,m=O.channelCount,u=O.sampleRate,a.g.disableText||(n=O.closedCaptions),K=O.height,H=O.width,J=O.Ge,L=O.colorGamut,N=O.frameRate,z&&(v=O.mimeType,f=O.codecs);case 2:if(v){nb.A(4);break}return F(nb,Ez(a,g,f,C),5);case 5:v=nb.h,g!=sc||f||"application/mp4"!=v||!C[0]||C[0].ea||(v="text/vtt");case 4:return F(nb,uy(a,d,v,e,c),6);case 6:M=nb.h;P=M.drmInfos;R=M.keyIds;T=M.encrypted;ca=M.wi;if(T&&!P.length&&!ca)throw new V(2,
4,4026);Y=Cz(a,f,g,h,k,l,m,n,q,r,u,w);Y.encrypted=T&&!ca;Y.drmInfos=P;Y.keyIds=R;Y.mimeType=v;E&&(Y.bandwidth=E);az(Y);"video"==g&&(H||K||J||L)&&jz(Y,H,K,N,J,null,L);my(a)&&xy(a,d);Ma=C[0].startTime;Na=C[C.length-1];Ea=Na.endTime;va=new Vl(C);Y.segmentIndex=va;Pa=(Ja=Ux(d.ka,"EXT-X-SERVER-CONTROL"))?null!=Nx(Ja,"CAN-SKIP-UNTIL"):!1;za=Ja?null!=Nx(Ja,"CAN-BLOCK-RELOAD"):!1;ja=Vx(d.ka,"EXT-X-MEDIA-SEQUENCE",0);Aa=wy(ja,C);eb=Aa.Vb;fb=Aa.Wb;return nb.return({stream:Y,type:g,Uf:[],S:e,hd:Ma,uc:Ea,ef:Pa,
df:za,ee:!1,Pg:-1,Vb:eb,Wb:fb,Ef:D,Ah:!1})}})}function wy(a,b){a=a+b.length-1;var c=-1;if(!b.length)return a++,{Vb:a,Wb:c};b=b[b.length-1];var d=b.g;if(!b.g.length)return a++,b.m&&(c=0),{Vb:a,Wb:c};c=d.length-1;d[d.length-1].isPreload()||(a++,c=0);return{Vb:a,Wb:c}}
function Cz(a,b,c,d,e,f,g,h,k,l,m,n){var q=Zy(c,b)||$y(c),r=[];if(k){k=t(k.split(","));for(var u=k.next();!u.done;u=k.next())r.push(u.value)}k=void 0;u=null;c==sc?k=r.includes("public.accessibility.transcribes-spoken-dialog")&&r.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle":r.includes("public.accessibility.describes-video")&&(u="visually impaired");r.length||"subtitle"!==k||r.push("subtitle");a={id:a.G++,originalId:f,groupId:null,createSegmentIndex:function(){return Promise.resolve()},
segmentIndex:null,mimeType:q,codecs:b,kind:c==sc?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:yc(d||"und"),originalLanguage:d,label:f,type:c,primary:e,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:r,forced:l,channelsCount:g,audioSamplingRate:m,spatialAudio:n,closedCaptions:h,hdr:void 0,colorGamut:void 0,videoLayout:void 0,tilesLayout:void 0,accessibilityPurpose:u,external:!1,
fastSwitching:!1,fullMimeTypes:new Set,isAudioMuxedInVideo:!1,baseOriginalId:null};az(a);return a}
function uy(a,b,c,d,e){var f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L,N,O,M,P,R;return Q(function(T){switch(T.g){case 1:f=new Map;if(!a.g.ignoreDrmInfo&&b.segments)for(g=t(b.segments),h=g.next();!h.done;h=g.next())if(k=h.value,l=Sx(k.ka,"EXT-X-KEY"),m=null,l.length)for(m=Fz(a,b,k.ka,d,e),n=t(l),q=n.next();!q.done;q=n.next())r=q.value,f.set(r,m);w=u=!1;v=[];y=new Set;z=t(f);A=z.next();case 2:if(A.done){T.A(4);break}B=A.value;D=t(B);G=D.next().value;C=D.next().value;E=G;H=C;K=Px(E,"METHOD");if("NONE"==
K){T.A(3);break}u=!0;J=Ox(E,"KEYFORMAT")||"identity";L=null;if(ez(K)){w=!0;T.A(3);break}if("identity"==J)return F(T,fz(a,E,c,d,H,e),11);N=a.dc.get(J);if(!N){O=null;T.A(9);break}return F(T,N(E,c,H),10);case 10:O=T.h;case 9:L=O;T.A(6);break;case 11:L=T.h;case 6:if(L){if(L.keyIds)for(M=t(L.keyIds),P=M.next();!P.done;P=M.next())R=P.value,y.add(R);v.push(L)}case 3:A=z.next();T.A(2);break;case 4:return T.return({drmInfos:v,keyIds:y,encrypted:u,wi:w})}})}
function Gz(a,b,c,d,e){if(!window.crypto||!window.crypto.subtle)throw ab("Web Crypto API is not available to decrypt AES. (Web Crypto only exists in secure origins like https)"),new V(2,4,4042);var f=0,g=Ox(b,"IV","");if(g){var h=ic(g.substr(2));if(16!=h.byteLength)throw new V(2,4,4048);}else f=Vx(c.ka,"EXT-X-MEDIA-SEQUENCE",0);var k=Wx(d(),Px(b,"URI"),e),l=k.sort().join("");c=b.toString()+"-"+f+"-"+l;if(!a.ba.has(c)){var m={bitsKey:128,blockCipherMode:"CBC",iv:h,firstMediaSequenceNumber:f};switch(Px(b,
"METHOD")){case "AES-256":m.bitsKey=256;break;case "AES-256-CTR":m.bitsKey=256,m.blockCipherMode="CTR"}m.fetchKey=function(){var n,q,r,u;return Q(function(w){if(1==w.g)return a.L.has(l)||(n=Xg(k,a.g.retryParameters),q=Uy(a,n,6).promise,a.L.set(l,q)),F(w,a.L.get(l),2);if(3!=w.g){r=w.h;if(!r.data||r.data.byteLength!=m.bitsKey/8)throw new V(2,4,4049);u={name:"CTR"==m.blockCipherMode?"AES-CTR":"AES-CBC",length:m.bitsKey};return F(w,window.crypto.subtle.importKey("raw",r.data,u,!0,["decrypt"]),3)}m.cryptoKey=
w.h;m.fetchKey=void 0;I(w)})};a.ba.set(c,m)}return a.ba.get(c)}function Ny(a,b){null==a.u&&(b=Ux(b.ka,"EXT-X-START"))&&(a.u=Number(Px(b,"TIME-OFFSET")))}function Dz(a,b){var c=Ux(b.ka,"EXT-X-PLAYLIST-TYPE");b=Ux(b.ka,"EXT-X-ENDLIST");b=c&&"VOD"==c.value||b;c=c&&"EVENT"==c.value&&!b;c=!b&&!c;b?qy(a,jy):c?qy(a,Vy):qy(a,Hz)}
function xy(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=Ux(d[e].ka,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break}e--}d=Ux(b.ka,"EXT-X-TARGETDURATION");if(!d)throw new V(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=Ux(b.ka,"EXT-X-PART-INF"))a.O=Number(Px(e,"PART-TARGET"));b=Ux(b.ka,"EXT-X-SERVER-CONTROL");a.$&&a.O?(a.s=a.wc?5*a.O<=c?Math.min(a.O,a.s):Math.min(c,a.s):Math.min(a.O,a.s),a.fb=b?Number(Px(b,"PART-HOLD-BACK")):0):(a.s=Math.min(c,a.s),
c=b?Nx(b,"HOLD-BACK"):null,a.Ia=c?Number(c.value):0);a.Na=Math.max(d,a.Na)}function Oy(a,b){var c=0;if(a.g.defaultPresentationDelay)c=a.g.defaultPresentationDelay;else if(a.fb)c=a.fb;else if(a.Ia)c=a.Ia;else{var d=b.segments.length,e=a.g.hls.liveSegmentsDelay;e>d-2&&(e=Math.max(1,d-2));for(e=d-e;e<d;e++){var f=Ux(b.segments[e].ka,"EXTINF");c=f?c+Math.ceil(Number(f.value.split(",")[0])):c+a.Na}}a.u&&0>a.u&&(c=Math.min(-a.u,c),a.u+=c);a.l.Gj(0);a.l.Uh(c);a.l.nd(!1)}
function Fz(a,b,c,d,e){var f=Ux(c,"EXT-X-MAP");if(!f)return null;var g=Px(f,"URI"),h=Wx(d(),g,e);g=[h.toString(),Ox(f,"BYTERANGE","")].join("-");if(!a.ra.has(g)){var k=void 0,l=null,m=!1;c=t(c);for(var n=c.next();!n.done;n=c.next())n=n.value,"EXT-X-KEY"==n.name?(m=Px(n,"METHOD"),ez(m)&&n.id<f.id?(m=!1,k=Gz(a,n,b,d,e)):m="NONE"!=m):"EXT-X-BYTERANGE"==n.name&&n.id<f.id&&(l=n);b=Iz(h,f,l,k,m);a.ra.set(g,b)}return a.ra.get(g)}
function Iz(a,b,c,d,e){var f=0,g=null;b=Ox(b,"BYTERANGE");!b&&c&&(b=c.value);b&&(f=b.split("@"),g=Number(f[0]),f=Number(f[1]),g=f+g-1,d&&(c=g+1-f,c%16&&(g+=16-c%16)));return new yj(function(){return a},f,g,null,null,null,d,e)}
function Jz(a,b,c,d,e,f,g,h,k){function l(T){T=(new qb(T)).ub.split(".").pop();var ca=Kz.get(g).get(T);ca||(ca=Sy.get(T));return ca}var m=d.ka,n=Ux(m,"EXTINF"),q=0,r=0,u=null;d.zc.length&&(a.m.isLowLatency=!0);var w=null;if(!a.g.hls.ignoreManifestProgramDateTime){var v=Ux(m,"EXT-X-PROGRAM-DATE-TIME");v&&v.value&&(w=Zd(v.value),a.Ta=!0)}var y=Bj;Ux(m,"EXT-X-GAP")&&(a.m.gapCount++,y=2);if(!n){if(0==d.zc.length)throw new V(2,4,4024,"EXTINF");if(!a.$)return null}var z=[];v=!1;var A=null,B=!1,D=!1;if(a.$&&
d.zc.length){q=b&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var G=w,C={},E=0;E<d.zc.length;C={lg:void 0,Nf:void 0},E++){var H=d.zc[E],K=0==E?c:z[z.length-1],J=0==E?e:K.endTime,L=Number(Ox(H,"DURATION"))||a.O;if(L){var N=J+L,O=0,M=null;"EXT-X-PRELOAD-HINT"==H.name?(O=(O=Ox(H,"BYTERANGE-START"))?Number(O):0,(K=Ox(H,"BYTERANGE-LENGTH"))?M=O+Number(K)-1:O&&(M=Number.MAX_SAFE_INTEGER)):(O=Ox(H,"BYTERANGE"),M=t(Lz(K,O)),O=M.next().value,M=M.next().value);C.Nf=Ox(H,"URI");if(C.Nf){K=
Bj;"YES"==Ox(H,"GAP")&&(a.m.gapCount++,K=2,B=!0);C.lg=null;var P=function(T){return function(){null==T.lg&&(T.lg=Wx(h(),T.Nf,f));return T.lg}}(C);q&&0<=O&&null!=M&&(A=P,v=!0);J=new Aj(J,N,P,O,M,b,0,0,Infinity,[],"",null,G,K,k);"EXT-X-PRELOAD-HINT"==H.name&&(J.Bh(),D=!0);"YES"!=Ox(H,"INDEPENDENT")&&0<E&&J.Dd();if(C=l(C.Nf))J.mimeType=C,Mz.has(C)&&(J.ea=null);z.push(J);G&&(G+=L)}}}}if(n){n=Number(n.value.split(",")[0]);if(0==n)return null;q=e+n}else if(z.length)q=z[z.length-1].endTime;else return null;
v&&(B||0!=z[0].startByte?(v=!1,A=null):z=[]);(n=Ux(m,"EXT-X-BYTERANGE"))?(u=t(Lz(c,n.value)),r=u.next().value,u=u.next().value):z.length&&(r=z[0].startByte,u=z[z.length-1].endByte);c="";n=null;"image"==g&&(c="1x1",m=Ux(m,"EXT-X-TILES"))&&(c=Px(m,"LAYOUT"),(m=Ox(m,"DURATION"))&&(n=Number(m)));var R=null;b=new Aj(e,q,function(){if(A)return A();null==R&&(R=Wx(h(),d.g,f));return R||[]},r,u,b,0,0,Infinity,z,c,n,w,y,k,0<z.length&&!!d.g);if(e=l(d.g))b.mimeType=e,Mz.has(e)&&(b.ea=null);v&&(a.wc=!0,b.cj(),
D&&b.Bh());return b}function Lz(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.endByte+1,d=c+b-1);return[c,d]}
function yy(a,b,c,d,e){if("video"==c||"audio"==c){var f=a.l.m;if(f&&!Ay(a,c))for(b=Sx(b,"EXT-X-DATERANGE"),b=b.filter(function(K){return null!=Nx(K,"START-DATE")}).sort(function(K,J){K=Px(K,"START-DATE");J=Px(J,"START-DATE");return K<J?-1:K>J?1:0}),c=0;c<b.length;c++){var g=b[c];try{var h=Px(g,"START-DATE"),k=Zd(h);if(!isNaN(k)){var l=Math.max(0,k-f),m=null,n=Ox(g,"END-DATE");if(n){var q=Zd(n);if(!isNaN(q)&&(m=q-f,0>m))continue}if(null==m){var r=Ox(g,"DURATION")||Ox(g,"PLANNED-DURATION");if(r){var u=
parseFloat(r);isNaN(u)||(m=l+u);if(0>k-f+u)continue}}var w=Ox(g,"CLASS")||"com.apple.quicktime.HLS",v="YES"==Ox(g,"END-ON-NEXT");if(null==m&&v){for(var y=c+1;y<b.length;y++){var z=Ox(b[y],"CLASS")||"com.apple.quicktime.HLS";if(w==z){var A=Px(b[y],"START-DATE"),B=Zd(A);if(!isNaN(B)&&B&&B>k){m=Math.max(0,B-f);break}}}if(null==m)continue}y=["CLASS","START-DATE","END-DATE","DURATION","END-ON-NEXT"];for(var D=[],G=t(g.attributes),C=G.next();!C.done;C=G.next()){var E=C.value;if(!y.includes(E.name)){var H=
Yx(E.value,d);if("X-ASSET-URI"==E.name||"X-ASSET-LIST"==E.name)H=Wx(e(),E.value,d)[0];D.push({key:E.name,description:"",data:H,mimeType:null,pictureType:null})}}if(1<D.length)a.h.onMetadata(w,l,m,D)}}catch(K){}}}}
function vy(a,b,c,d,e,f){var g=b.segments,h=void 0,k=Vx(b.ka,"EXT-X-DISCONTINUITY-SEQUENCE",-1),l=Vx(b.ka,"EXT-X-MEDIA-SEQUENCE",0),m=Ux(b.ka,"EXT-X-SKIP"),n=m?Number(Ox(m,"SKIPPED-SEGMENTS")):0,q=l+n,r=0;my(a)&&c.has(q)&&(r=c.get(q));0===r&&a.sa==Vy&&0<c.size&&!c.has(q)&&null!=a.l.i&&(r=a.l.Kb());var u=[],w=null;m=[];for(var v=0;v<g.length;v++){var y=g[v],z=0==v?r:w.endTime;q=l+n+v;Ux(y.ka,"EXT-X-DISCONTINUITY")&&(k++,w&&w.ea&&(w.ea.g=z));var A=t(y.ka);for(var B=A.next();!B.done;B=A.next())B=B.value,
"EXT-X-KEY"==B.name&&(ez(Px(B,"METHOD"))?h=Gz(a,B,b,e,d):h=void 0);c.set(q,z);A=Fz(a,b,y.ka,e,d);if(z=Jz(a,A,w,y,z,d,f,e,h))(w=Vx(y.ka,"EXT-X-BITRATE"))?m.push({bitrate:w,duration:z.endTime-z.startTime}):m.length&&(w=m.pop(),w.duration+=z.endTime-z.startTime,m.push(w)),w=z,z.i=k,Ay(a,f)&&null!=a.K&&q<a.K||u.push(z)}b=void 0;m.length&&(b=m.reduce(function(D,G){return D+G.duration},0),b=Math.round(m.reduce(function(D,G){return D+G.bitrate*G.duration},0)/b*1E3));if(m=u.some(function(D){return null!=
D.h}))for(c={},d=0;d<u.length;c={lf:void 0,kf:void 0,$e:void 0,kd:void 0,Ze:void 0},d++)if(c.kd=u[d],null==c.kd.h)for(c.kf=0,c.lf=d,e=function(D){return function(){var G=u[D.lf];if(G){if(null!=G.h)return G.h+D.kf;D.kf-=G.endTime-G.startTime;D.lf+=1}return null}}(c),c.Ze=0,c.$e=d,g=function(D){return function(){var G=u[D.$e];if(G){G!=D.kd&&(D.Ze+=G.endTime-G.startTime);if(null!=G.h)return G.h+D.Ze;--D.$e}return null}}(c);null==c.kd.h;)c.kd.h=g(),null==c.kd.h&&(c.kd.h=e());if(m)for(c=t(u),d=c.next();!d.done;d=
c.next())for(e=d.value,d=e.h,e=t(e.g),g=e.next();!g.done;g=e.next())g=g.value,g.h=d,d+=g.endTime-g.startTime;c=a.Z;if(m&&Infinity!=c&&!Ay(a,f))for(a=t(u),f=a.next();!f.done;f=a.next())f.value.gi(c);return{segments:u,bandwidth:b}}function Zy(a,b){if(a==sc){if("vtt"==b||"wvtt"==b)return"text/vtt";if(b&&""!==b)return"application/mp4"}return"image"!=a||b&&"jpeg"!=b?"audio"==a&&"mp4a.40.34"==b?"audio/mpeg":"mjpg"==b?"application/mp4":null:"image/jpeg"}
function $y(a){return a==sc?"text/vtt":Kz.get(a).get("mp4")}function Ry(a,b){a=my(a)?Math.trunc((b.length-1)/2):0;for(var c=b[a];2==c.Jc()&&a+1<b.length;)a++,c=b[a];return{segment:c,segmentIndex:a}}
function Ez(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,u,w,v;return Q(function(y){switch(y.g){case 1:e=ch;f=Ry(a,d);g=f.segment;if(2==g.status)return y.return($y(b));h=g.S();k=new qb(h[0]);l=k.ub.split(".").pop();m=Kz.get(b);if((n=m.get(l))||(n=Sy.get(l))||(n=Zy(b,c)))return y.return(n);r=1;u=Xg(h,a.g.retryParameters);ta(y,2);u.method="HEAD";return F(y,Uy(a,u,e,{type:r}).promise,4);case 4:w=y.h;q=w.headers["content-type"];wa(y,3);break;case 2:v=xa(y);if(!v||1002!=v.code&&1001!=v.code){y.A(3);break}u.method=
"GET";a.g.hls.allowRangeRequestsToGuessMimeType&&(u.headers.Range="bytes=0-0");return F(y,Uy(a,u,e,{type:r}).promise,6);case 6:w=y.h,q=w.headers["content-type"];case 3:if(!q){y.A(7);break}n=q.toLowerCase().split(";")[0];if("application/octet-stream"!=n){y.A(8);break}if(w.data.byteLength){y.A(9);break}u.method="GET";return F(y,Uy(a,u,e,{type:r}).promise,10);case 10:w=y.h;case 9:vk(Kb(w.data))&&(n="video/mp2t");case 8:if("application/octet-stream"!=n)return y.return(n);case 7:return y.return($y(b))}})}
function jz(a,b,c,d,e,f,g){a&&(a.width=Number(b)||void 0,a.height=Number(c)||void 0,a.frameRate=Number(d)||void 0,a.hdr=e||void 0,a.videoLayout=f||void 0,a.colorGamut=g||void 0)}function ky(a,b,c){return Uy(a,Xg(b,a.g.retryParameters),0,{type:c?2:3})}
function iy(a){var b,c,d,e,f,g;return Q(function(h){switch(h.g){case 1:if(!a.h)return h.return();ta(h,2);b=Date.now();return F(h,a.update(),4);case 4:c=Date.now();my(a)&&(d=(c-b)/1E3,a.cb.sample(1,d),e=0<a.g.updatePeriod?a.g.updatePeriod:a.s,f=Math.max(0,e-Mc(a.cb)),a.D.X(f));wa(h,3);break;case 2:g=xa(h);if(!a.h)return h.return();if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.h.onError(g),h.return();g.severity=1;a.h.onError(g);a.D.X(.1);case 3:if(!a.h)return h.return();a.h.onManifestUpdated();
I(h)}})}function my(a){return a.sa!=jy}function qy(a,b){a.sa=b;a.l&&a.l.nd(!my(a));my(a)||a.D.stop()}function Uy(a,b,c,d){if(!a.U)throw new V(2,7,7001);d||(d={});d.isPreload=a.Lb();b=a.h.networkingEngine.request(c,b,d);Rg(a.U,b);return b}function ez(a){return"AES-128"==a||"AES-256"==a||"AES-256-CTR"==a}
function hy(a,b,c,d){var e,f,g,h,k,l;return Q(function(m){if(1==m.g){if("video/mp2t"==c)throw new V(2,4,4040);if("apple"===window.shakaMediaKeysPolyfill)throw new V(2,4,4041);e=Px(b,"METHOD");f=["SAMPLE-AES","SAMPLE-AES-CTR"];if(!f.includes(e))return m.return(null);g="cenc";"SAMPLE-AES"==e&&(g="cbcs");h=Px(b,"URI");k=mc("com.apple.fps",g,[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}],h);var n=(new qb(h)).Gb.replace(/-/g,"").toLowerCase();return(l=32===n.length&&/^[0-9a-f]+$/.test(n)?
n:null)||!d?m.A(2):F(m,Nz(a,d),3)}2!=m.g&&(l=m.h);l&&k.keyIds.add(l);return m.return(k)})}
function fz(a,b,c,d,e,f){var g,h,k,l,m,n,q,r,u,w,v,y;return Q(function(z){switch(z.g){case 1:if("video/mp2t"==c)throw new V(2,4,4040);if("apple"===window.shakaMediaKeysPolyfill)throw new V(2,4,4041);g=Px(b,"METHOD");h=["SAMPLE-AES","SAMPLE-AES-CTR"];if(!h.includes(g))return z.return(null);k=Wx(d(),Px(b,"URI"),f);if(k[0].startsWith("data:text/plain;base64,")){l=jc(hc(k[0].split("data:text/plain;base64,").pop()));z.A(2);break}m=k.sort().join("");a.na.has(m)||(n=Xg(k,a.g.retryParameters),q=Uy(a,n,6).promise,
a.na.set(m,q));return F(z,a.na.get(m),3);case 3:r=z.h,l=jc(r.data);case 2:u="00000000000000000000000000000000";if(!e){z.A(4);break}return F(z,Nz(a,e),5);case 5:(w=z.h)&&(u=w);case 4:return v=new Map,v.set(u,l),y="cenc","SAMPLE-AES"==g&&(y="cbcs"),z.return(nc(v,y))}})}
function Nz(a,b){var c,d,e,f;return Q(function(g){if(1==g.g){c=null;if(a.oa.has(b))return c=a.oa.get(b),g.A(2);d=Fm(b.S(),b.Ic(),b.Gc(),a.g.retryParameters);e=ch;return F(g,Uy(a,d,e,{type:0}).promise,3)}2!=g.g&&(f=g.h,b.ze(f.data),c=Dm(f.data),a.oa.set(b,c));return g.return(c)})}S("shaka.hls.HlsParser",gy);
var Sy=(new Map).set("aac","audio/aac").set("ac3","audio/ac3").set("ec3","audio/ec3").set("mp3","audio/mpeg"),Oz=(new Map).set("mp4","audio/mp4").set("mp4a","audio/mp4").set("m4s","audio/mp4").set("m4i","audio/mp4").set("m4a","audio/mp4").set("m4f","audio/mp4").set("cmfa","audio/mp4").set("ts","video/mp2t").set("tsa","video/mp2t"),Pz=(new Map).set("mp4","video/mp4").set("mp4v","video/mp4").set("m4s","video/mp4").set("m4i","video/mp4").set("m4v","video/mp4").set("m4f","video/mp4").set("cmfv","video/mp4").set("ts",
"video/mp2t").set("tsv","video/mp2t"),Qz=(new Map).set("mp4","application/mp4").set("m4s","application/mp4").set("m4i","application/mp4").set("m4f","application/mp4").set("cmft","application/mp4").set("vtt","text/vtt").set("webvtt","text/vtt").set("ttml","application/ttml+xml"),Rz=(new Map).set("jpg","image/jpeg").set("png","image/png").set("svg","image/svg+xml").set("webp","image/webp").set("avif","image/avif"),Kz=(new Map).set("audio",Oz).set("video",Pz).set("text",Qz).set("image",Rz),Mz=new Set(["video/mp2t"].concat(x(cf))),
jy="VOD",Hz="EVENT",Vy="LIVE",py={bk:jy,Jm:Hz,Tm:Vy};Ci("application/x-mpegurl",function(){return new gy});Ci("application/vnd.apple.mpegurl",function(){return new gy});function Sz(a){return Su(a)}var Tz=(new Map).set("com.microsoft.playready",Sz).set("com.microsoft.playready.recommendation",Sz).set("com.microsoft.playready.software",Sz).set("com.microsoft.playready.hardware",Sz);function Uz(){var a=this;this.h=this.g=null;this.l=[];this.j=null;this.u=1;this.i=null;this.D=new Lc(5);this.s=new zf(function(){Vz(a)});this.C=new Qg;this.m=new Map;this.B=function(){return!1}}p=Uz.prototype;p.configure=function(a,b){this.g=a;b&&(this.B=b)};p.start=function(a,b){var c=this;return Q(function(d){if(1==d.g)return c.l=[a],c.h=b,F(d,Wz(c),2);if(!c.h)throw new V(2,7,7001);return d.return(c.j)})};
function Vz(a){var b;Q(function(c){switch(c.g){case 1:return ta(c,2),F(c,Wz(a),4);case 4:wa(c,3);break;case 2:b=xa(c),a.h&&(b.severity=1,a.h.onError(b));case 3:if(!a.h)return c.return();I(c)}})}p.stop=function(){this.g=this.h=null;this.l=[];this.j=null;null!=this.s&&(this.s.stop(),this.s=null);this.m.clear();return this.C.destroy()};
p.update=function(){var a=this,b;return Q(function(c){if(1==c.g)return ta(c,2),F(c,Wz(a),4);if(2!=c.g)return wa(c,0);b=xa(c);if(!a.h||!b)return c.return();a.h.onError(b);I(c)})};p.onExpirationUpdated=function(){};p.onInitialVariantChosen=function(){};p.banLocation=function(){};p.setMediaElement=function(){};
function Wz(a){var b,c,d,e,f,g,h;return Q(function(k){if(1==k.g)return b=Xg(a.l,a.g.retryParameters),c=a.h.networkingEngine,d=Date.now(),e=c.request(0,b,{type:5,isPreload:a.B()}),Rg(a.C,e),F(k,e.promise,2);f=k.h;if(!a.h)return k.return();f.uri&&!a.l.includes(f.uri)&&a.l.unshift(f.uri);var l=f.uri,m=f.data,n=a.g.mss.manifestPreprocessor;if(n!=Rn){Uc("manifest.mss.manifestPreprocessor configuration","Please Use manifest.mss.manifestPreprocessorTXml instead.");m=Gw(m,"SmoothStreamingMedia");if(!m)throw new V(2,
4,4046,l);n(m);m=$b(m.outerHTML)}var q=Hd(m,"SmoothStreamingMedia");if(!q)throw new V(2,4,4046,l);l=a.g.mss.manifestPreprocessorTXml;l!=Sn&&l(q);a.i||(a.i=new xl(null,0));if(l=Wd(q,"IsLive",ge,!1))throw new V(2,4,4047);a.i.nd(!l);n=Wd(q,"TimeScale",ee,1E7);m=Wd(q,"DVRWindowLength",ee);l&&(0===m||isNaN(m))&&(m=Infinity);var r=Wd(q,"CanSeek",ge,!1);0===m&&r&&(m=Infinity);r=null;m&&0<m&&(r=m/n);l&&!isNaN(a.g.availabilityWindowOverride)&&(r=a.g.availabilityWindowOverride);null==r&&(r=Infinity);a.i.ag(r);
m=Wd(q,"Duration",ee,Infinity);l||a.i.vb(m/n);l={variants:[],textStreams:[],timescale:n,duration:m/n};var u;r=Pd(q,"Protection");n=a.g.mss.keySystemsBySystemId;m=[];r=t(r);for(u=r.next();!u.done;u=r.next())m=m.concat(Pd(u.value,"ProtectionHeader"));if(m.length){r=[];for(u=0;u<m.length;u++){var w=m[u],v=w.attributes.SystemID.toLowerCase(),y=n[v];if(y){var z;a:{if(z=Qu(w)){z=t(Sd(z,"DATA"));for(var A=z.next();!A.done;A=z.next())if(A=Td(A.value,"KID")){z=hc(Qd(A));z=new Uint8Array([z[3],z[2],z[1],z[0],
z[5],z[4],z[7],z[6]].concat(x(z.slice(8))));z=jc(z);break a}}z=null}A=hc(Qd(w));v=ic(v.replace(/-/g,""));v=[{initData:xh(A,v,new Set,0),initDataType:"cenc",keyId:z}];v=mc(y,"cenc",v);z&&v.keyIds.add(z);if(y=Tz.get(y))v.licenseServerUri=y(w);r.push(v)}}n=r}else n=[];u=n;r=[];n=[];m=[];q=Pd(q,"StreamIndex");q=t(q);for(w=q.next();!w.done;w=q.next()){w=w.value;y=Pd(w,"QualityLevel");v=l.timescale;z=l.duration;A=Pd(w,"c");for(var B=[],D=0,G=0;G<A.length;++G){var C=A[G],E=A[G+1],H=Wd(C,"t",ee),K=Wd(C,"d",
ee);C=Wd(C,"r",be);if(!K)break;H=null!=H?H:D;(C=C||0)&&C--;if(0>C)if(E){E=Wd(E,"t",ee);if(null==E)break;else if(H>=E)break;C=Math.ceil((E-H)/K)-1}else{if(Infinity==z)break;else if(H/v>=z)break;C=Math.ceil((z*v-H)/K)-1}for(E=0;E<=C;++E)D=H+K,B.push({start:H/v,end:D/v,ni:H}),H=D}v=B;y=t(y);for(z=y.next();!z.done;z=y.next())(z=Xz(a,w,z.value,v,u,l))&&("audio"!=z.type||a.g.disableAudio?"video"!=z.type||a.g.disableVideo?z.type!=sc||a.g.disableText||m.push(z):n.push(z):r.push(z))}q=[];r=t(0<r.length?r:
[null]);for(u=r.next();!u.done;u=r.next())for(u=u.value,w=t(0<n.length?n:[null]),B=w.next();!B.done;B=w.next())y=q,v=y.push,z=a,A=u,B=B.value,G=0,A&&A.bandwidth&&0<A.bandwidth&&(G+=A.bandwidth),B&&B.bandwidth&&0<B.bandwidth&&(G+=B.bandwidth),z={id:z.u++,language:A?A.language:"und",disabledUntilTime:0,primary:!!A&&A.primary||!!B&&B.primary,audio:A,video:B,bandwidth:G,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},v.call(y,z);l.variants=q;l.textStreams=m;a.j?(a.j.variants=l.variants,
a.j.textStreams=l.textStreams,a.h.filter(a.j)):(a.j={presentationTimeline:a.i,variants:l.variants,textStreams:l.textStreams,imageStreams:[],offlineSessionIds:[],sequenceMode:a.g.mss.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"MSS",serviceDescription:null,nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1,startTime:null},a.i.Df());Promise.resolve();g=Date.now();h=(g-d)/1E3;a.D.sample(1,h);I(k)})}
function Xz(a,b,c,d,e,f){var g=b.attributes.Type;if("audio"!==g&&"video"!==g&&"text"!==g)return ab("Ignoring unrecognized type:",g),null;var h=b.attributes.Language,k=a.u++,l=Wd(c,"Bitrate",ce),m=Wd(c,"MaxWidth",ce),n=Wd(c,"MaxHeight",ce),q=Wd(c,"Channels",ce),r=Wd(c,"SamplingRate",ce),u=f.duration;d.length&&(u=d[d.length-1].end-d[0].start);var w=a.i.getDuration();a.i.vb(Math.min(u,w));var v={id:k,originalId:b.attributes.Name||String(k),groupId:null,createSegmentIndex:function(){return Promise.resolve()},
2025-06-19 04:02:44 +02:00
closeSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:"",codecs:"",frameRate:void 0,pixelAspectRatio:void 0,bandwidth:l||0,width:m||void 0,height:n||void 0,kind:"",encrypted:0<e.length,drmInfos:e,keyIds:new Set,language:yc(h||"und"),originalLanguage:h,label:"",type:"",primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:[],roles:[],forced:!1,channelsCount:q,audioSamplingRate:r,spatialAudio:!1,closedCaptions:null,hdr:void 0,colorGamut:void 0,videoLayout:void 0,
2025-06-27 11:02:59 +02:00
tilesLayout:void 0,matchedStreams:[],mssPrivateData:{duration:u,timescale:f.timescale,codecPrivateData:null},accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set,isAudioMuxedInVideo:!1,baseOriginalId:null};if(e=b.attributes.Subtype)(e=Yz.get(e))&&v.roles.push(e),"main"===e&&(v.primary=!0);e=c.attributes.FourCC;if(null===e||""===e)e=b.attributes.FourCC;if(!e)if("audio"===g)e="AAC";else if("video"===g)return ab('FourCC is not defined whereas it is required for a QualityLevel element for a StreamIndex of type "video"'),
null;if(!Zz.includes(e.toUpperCase()))return ab("Codec not supported:",e),null;c=$z(c,g,e,v);v.mssPrivateData.codecPrivateData=c;switch(g){case "audio":if(!c)return ab("Quality unsupported without CodecPrivateData",g),null;v.type="audio";v.mimeType="mss/audio/mp4";v.codecs=aA(e,c);break;case "video":if(!c)return ab("Quality unsupported without CodecPrivateData",g),null;v.type="video";v.mimeType="mss/video/mp4";v.codecs=bA(c);break;case "text":if(v.type=sc,v.mimeType="application/mp4","TTML"===e||
"DFXP"===e)v.codecs="stpp"}v.fullMimeTypes.add(bf(v.mimeType,v.codecs));v.createSegmentIndex=function(){if(v.segmentIndex)return Promise.resolve();if(a.m.has(v.id))var y=a.m.get(v.id);else y=[],"video"==v.type&&(y=v.mssPrivateData.codecPrivateData.split("00000001").slice(1)),y={id:v.id,type:v.type,codecs:v.codecs,encrypted:v.encrypted,timescale:v.mssPrivateData.timescale,duration:v.mssPrivateData.duration,Eb:y,Ma:new Uint8Array([]),Wa:new Uint8Array([]),bb:0,eb:0,data:null,stream:v},y=Xi(new Ri([y])),
a.m.set(v.id,y);y=cA(a,new yj(function(){return[]},0,null,jm(v),v.mssPrivateData.timescale,y,null,v.encrypted),v,b,d);v.segmentIndex=new Vl(y);return Promise.resolve()};v.closeSegmentIndex=function(){v.segmentIndex&&(v.segmentIndex.release(),v.segmentIndex=null)};return v}
function $z(a,b,c,d){if(a=a.attributes.CodecPrivateData)return a;if("audio"!==b)return null;b=d.channelsCount||2;a=d.audioSamplingRate||44100;var e={96E3:0,88200:1,64E3:2,48E3:3,44100:4,32E3:5,24E3:6,22050:7,16E3:8,12E3:9,11025:10,8E3:11,7350:12};d=e[a];if("AACH"===c)return c=new Uint8Array(4),a=e[2*a],c[0]=40|d>>1,c[1]=d<<7|b<<3|a>>1,c[2]=a<<7|8,c[3]=0,b=new Uint16Array(2),b[0]=(c[0]<<8)+c[1],b[1]=(c[2]<<8)+c[3],b[0].toString(16)+b[1].toString(16);c=new Uint8Array(2);c[0]=16|d>>1;c[1]=d<<7|b<<3;
b=new Uint16Array(1);b[0]=(c[0]<<8)+c[1];return b[0].toString(16)}function aA(a,b){var c=0;"AACH"===a&&(c=5);b?0===c&&(c=(parseInt(b.substr(0,2),16)&248)>>3):(c=2,"AACH"===a&&(c=5));return"mp4a.40."+c}function bA(a){var b=/00000001[0-9]7/.exec(a);return b.length&&a?"avc1."+a.substr(a.indexOf(b[0])+10,6):""}
function cA(a,b,c,d,e){var f=d.attributes.Url.replace("{bitrate}",String(c.bandwidth));d=[];e=t(e);for(var g=e.next(),h={};!g.done;h={fg:void 0},g=e.next())h.fg=g.value,d.push(new Aj(h.fg.start,h.fg.end,function(k){return function(){return lc(a.l,[f.replace("{start time}",String(k.fg.ni))])}}(h),0,null,b,0,0,c.mssPrivateData.duration));return d}S("shaka.mss.MssParser",Uz);
var Zz="AAC AACL AACH AACP AVC1 H264 TTML DFXP".split(" "),Yz=(new Map).set("CAPT","main").set("SUBT","alternate").set("DESC","main");Ci("application/vnd.ms-sstr+xml",function(){return new Uz});function dA(a,b,c,d,e,f,g){if(200<=c&&299>=c&&202!=c||304==c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"],originalRequest:f};f=null;try{f=Zb(b)}catch(h){}throw new V(401==c||403==c?2:1,1,1001,d,c,f,a,g,e||d);};function eA(){}
function fA(a,b,c,d,e,f){var g=new gA;gh(b.headers).forEach(function(m,n){g.append(n,m)});var h=new hA,k={Ci:!1,Uj:!1};a=iA(a,b,c,{body:b.body||void 0,headers:g,method:b.method,signal:h.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},k,d,e,b.streamDataCallback,f.minBytesForProgressEvents||0);a=new Jg(a,function(){k.Ci=!0;h.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var l=new zf(function(){k.Uj=!0;h.abort()});l.X(b/1E3);a.finally(function(){l.stop()})}return a}
function iA(a,b,c,d,e,f,g,h,k){var l,m,n,q,r,u,w,v,y,z,A,B,D,G,C;return Q(function(E){switch(E.g){case 1:return l=jA,m=kA,q=new ArrayBuffer(0),u=r=0,w={},v=Date.now(),ta(E,2),F(E,l(a,d),4);case 4:n=E.h;w=lA(n.headers);g(w);if("HEAD"==d.method){E.A(5);break}z=(y=n.headers.get("Content-Length"))?parseInt(y,10):0;if(!n.body)return F(E,n.arrayBuffer(),9);A=n.clone().body.getReader();B=function(H){function K(){var J,L,N,O;return Q(function(M){switch(M.g){case 1:return ta(M,2),F(M,A.read(),4);case 4:J=
M.h;wa(M,3);break;case 2:return xa(M),M.return();case 3:if(J.done){M.A(5);break}r+=J.value.byteLength;if(!h){M.A(5);break}return F(M,h(J.value),5);case 5:L=Date.now();N=r-u;if(100<L-v&&N>=k||J.done)O=J.done?0:z-r,f(L-v,N,O),u=r,v=L;J.done?H.close():(H.enqueue(J.value),K());I(M)}})}K()};new m({start:B});return F(E,n.arrayBuffer(),8);case 8:q=E.h;E.A(5);break;case 9:q=E.h,D=Date.now(),f(D-v,q.byteLength,0);case 5:b.headers.Range&&(G=b.headers.Range.replace("bytes=","").split("-").filter(function(H){return H}).map(function(H){return parseInt(H,
10)}),2==G.length&&q.byteLength!=G[1]-G[0]+1&&ab("Payload length does not match range requested bytes",b,n));wa(E,3);break;case 2:C=xa(E);if(e.Ci)throw new V(1,1,7001,a,c);if(e.Uj)throw new V(1,1,1003,a,c);throw new V(1,1,1002,a,C,c);case 3:return E.return(dA(w,q,n.status,a,n.url,b,c))}})}function lA(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}
function mA(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;if(window.Response){if(!(new Response("")).body)return!1}else return!1;return!(!window.fetch||"polyfill"in window.fetch||!window.AbortController)}S("shaka.net.HttpFetchPlugin",eA);eA.isSupported=mA;eA.parse=fA;var jA=window.fetch,hA=window.AbortController,kA=window.ReadableStream,gA=window.Headers;mA()&&(Tg("http",fA,2,!0),Tg("https",fA,2,!0),Tg("blob",fA,2,!0));function nA(){}
function oA(a,b,c,d,e,f){var g=new pA,h=Date.now(),k=0,l=new Promise(function(m,n){g.open(b.method,a,!0);g.responseType="arraybuffer";g.timeout=b.retryParameters.timeout;g.withCredentials=b.allowCrossSiteCredentials;var q={};g.onabort=function(){n(new V(1,1,7001,a,c))};g.onreadystatechange=function(){if(g.readyState===XMLHttpRequest.HEADERS_RECEIVED){var u=g.getAllResponseHeaders().trim().split("\r\n"),w={};u=t(u);for(var v=u.next();!v.done;v=u.next())v=v.value.split(": "),w[v[0].toLowerCase()]=v.slice(1).join(": ");
q=w;e(q)}};g.onload=function(u){var w=g.response;try{d(Date.now()-h,u.loaded-k,0);var v=dA(q,w,g.status,a,g.responseURL,b,c);m(v)}catch(y){n(y)}};g.onerror=function(u){n(new V(1,1,1002,a,u,c))};g.ontimeout=function(){n(new V(1,1,1003,a,c))};g.onprogress=function(u){var w=Date.now(),v=f.minBytesForProgressEvents||0,y=u.loaded-k;if(100<w-h&&y>=v||u.lengthComputable&&u.loaded==u.total)d(w-h,y,4==g.readyState?0:u.total-u.loaded),k=u.loaded,h=w};for(var r in b.headers)g.setRequestHeader(r.toLowerCase(),
b.headers[r]);g.send(b.body)});return new Jg(l,function(){g.abort();return Promise.resolve()})}S("shaka.net.HttpXHRPlugin",nA);nA.parse=oA;var pA=window.XMLHttpRequest;Tg("http",oA,1,!0);Tg("https",oA,1,!0);Tg("blob",oA,1,!0);function qA(a,b,c,d,e){this.g=a;this.i=b;this.groupId=c;this.h=d;this.j=e}function rA(a){var b=a.cc(!1);return b?gc(b):a.S().map(function(c){return"{"+encodeURI(c.split("#xywh=")[0])+"}"}).join("")+":"+a.startByte+":"+a.endByte}function sA(a,b){return Fm(a.g.S(),a.g.startByte,a.g.endByte,b.streaming.retryParameters)};function tA(){this.g=this.j=this.i=0;this.h=new Map;this.l=0}function uA(a,b){a.i+=b;var c=a.l;a.l++;a.h.set(c,b);return c}tA.prototype.close=function(a,b){if(this.h.has(a)){var c=this.h.get(a);this.h.delete(a);this.j+=c;this.g+=b}};function vA(a){return 0==a.i?0:a.j/a.i};function wA(a){var b=this;this.u=a;this.i=new Map;this.h=new eh(function(){return xA(b).catch(function(){})});this.j=[];this.s=function(){};this.m=function(){};this.g=new tA;this.l=!1}wA.prototype.destroy=function(){return this.h.destroy()};function yA(a,b,c){a.s=b;a.m=c}function xA(a){a.l=!0;var b=a.j.map(function(c){return c()});a.j=[];return Promise.all(b)}
wA.prototype.queue=function(a,b,c,d,e){var f=this;fh(this.h);var g=(this.i.get(a)||Promise.resolve()).then(function(){var h,k,l,m,n,q,r;return Q(function(u){if(1==u.g)return F(u,zA(f,b),2);h=u.h;if(f.h.g)throw new V(2,9,7001);if(d)for(m in k=Kb(h),l=new wh(k),l.data)n=Number(m),q=l.data[n],r=l.g[n],f.m(q,r);f.g.close(c,h.byteLength);f.s(vA(f.g),f.g.g);return u.return(e(h))})});this.i.set(a,g);return g};
function AA(a,b,c,d,e,f){fh(a.h);var g=(a.i.get(b)||Promise.resolve()).then(function(){if(a.h.g)throw new V(2,9,7001);if(e){var h=Kb(c);h=new wh(h);for(var k in h.data){var l=Number(k);a.m(h.data[l],h.g[l])}}a.g.close(d,c.byteLength);a.s(vA(a.g),a.g.g);return f(c)});a.i.set(b,g)}function BA(a){return Q(function(b){return 1==b.g?F(b,Promise.all(a.i.values()),2):b.return(a.g.g)})}
function zA(a,b){var c,d,e,f;return Q(function(g){if(1==g.g)return c=ch,d=a.u.request(c,b),e=function(){return d.abort()},a.j.push(e),F(g,d.promise,2);f=g.h;sd(a.j,e);return g.return(f.data)})};function CA(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new Ig;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}CA.prototype.abort=function(){var a=this;return Q(function(b){if(1==b.g){try{a.i.abort()}catch(c){}ta(b,2);return F(b,a.g,4)}if(2!=b.g)return wa(b,0);xa(b);I(b)})};
function DA(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return Q(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return F(g,b(f.key,f.value,f),2)}f.continue();I(g)})}})}CA.prototype.store=function(){return this.h};CA.prototype.promise=function(){return this.g};function EA(a){this.h=a;this.g=[]}EA.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function FA(a,b){return GA(a,b,"readwrite")}function GA(a,b,c){c=a.h.transaction([b],c);var d=new CA(c,b);a.g.push(d);d.promise().then(function(){sd(a.g,d)},function(){sd(a.g,d)});return d};function HA(a,b,c){this.h=new EA(a);this.i=b;this.g=c}p=HA.prototype;p.destroy=function(){return this.h.destroy()};p.hasFixedKeySpace=function(){return!0};p.addSegments=function(){return IA(this.i)};p.removeSegments=function(a,b){return JA(this,this.i,a,b)};p.getSegments=function(a){var b=this,c;return Q(function(d){if(1==d.g)return F(d,KA(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.Hi(e)}))})};p.addManifests=function(){return IA(this.g)};
p.updateManifest=function(){return Promise.reject(new V(2,9,9016,"Cannot modify values in "+this.g))};function LA(a,b,c){a=FA(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}p.updateManifestExpiration=function(a,b){var c=FA(this.h,this.g),d=c.store();d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};p.removeManifests=function(a,b){return JA(this,this.g,a,b)};
p.getManifests=function(a){var b=this,c;return Q(function(d){if(1==d.g)return F(d,KA(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Wd(e)})))})};p.getAllManifests=function(){var a=this,b,c;return Q(function(d){return 1==d.g?(b=GA(a.h,a.g,"readonly"),c=new Map,F(d,DA(b,function(e,f){var g;return Q(function(h){if(1==h.g)return F(h,a.Wd(f),2);g=h.h;c.set(e,g);I(h)})}),2)):3!=d.g?F(d,b.promise(),3):d.return(c)})};p.Hi=function(a){return a};p.Wd=function(a){return Promise.resolve(a)};
function IA(a){return Promise.reject(new V(2,9,9011,"Cannot add new value to "+a))}p.add=function(a,b){var c=this,d,e,f,g,h,k,l;return Q(function(m){if(1==m.g){d=FA(c.h,a);e=d.store();f=[];g=t(b);h=g.next();for(k={};!h.done;k={Mh:void 0},h=g.next())l=h.value,k.Mh=e.add(l),k.Mh.onsuccess=function(n){return function(){f.push(n.Mh.result)}}(k);return F(m,d.promise(),2)}return m.return(f)})};
function JA(a,b,c,d){a=FA(a.h,b);b=a.store();c=t(c);for(var e=c.next(),f={};!e.done;f={yh:void 0},e=c.next())f.yh=e.value,b.delete(f.yh).onsuccess=function(g){return function(){return d(g.yh)}}(f);return a.promise()}
function KA(a,b,c){var d,e,f,g,h,k,l;return Q(function(m){if(1==m.g){d=GA(a.h,b,"readonly");e=d.store();f={};g=[];h=t(c);k=h.next();for(l={};!k.done;l={Wf:void 0,zf:void 0},k=h.next())l.zf=k.value,l.Wf=e.get(l.zf),l.Wf.onsuccess=function(n){return function(){void 0==n.Wf.result&&g.push(n.zf);f[n.zf]=n.Wf.result}}(l);return F(m,d.promise(),2)}if(g.length)throw new V(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n]}))})};function MA(a){this.g=new EA(a)}MA.prototype.destroy=function(){return this.g.destroy()};MA.prototype.getAll=function(){var a=this,b,c;return Q(function(d){return 1==d.g?(b=GA(a.g,"session-ids","readonly"),c=[],F(d,DA(b,function(e,f){c.push(f)}),2)):3!=d.g?F(d,b.promise(),3):d.return(c)})};MA.prototype.add=function(a){var b=FA(this.g,"session-ids"),c=b.store();a=t(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
MA.prototype.remove=function(a){var b=this,c;return Q(function(d){return 1==d.g?(c=FA(b.g,"session-ids"),F(d,DA(c,function(e,f,g){a.includes(f.sessionId)&&g.delete()}),2)):F(d,c.promise(),0)})};function NA(){this.g=new Map}NA.prototype.destroy=function(){for(var a=[],b=t(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};NA.prototype.init=function(){var a=this;OA.forEach(function(e,f){(e=e())&&a.g.set(f,e)});for(var b=[],c=t(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
function PA(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Ub:d,ib:f},ib:e})})});if(b)return b;throw new V(2,9,9013,"Could not find a cell that supports add-operations");}function QA(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Ub:d,ib:f},e)})})}
function RA(a,b,c){a=a.g.get(b);if(!a)throw new V(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new V(2,9,9013,"Could not find cell with name "+c);return b}function SA(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function TA(a){var b=Array.from(a.g.keys());if(!b.length)throw new V(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
function UA(a){var b,c,d;return Q(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=OA,d.forEach(function(f){(f=f())&&b.push(f)})),F(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.A(0):F(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function VA(a,b){OA.set(a,b)}S("shaka.offline.StorageMuxer",NA);NA.unregister=function(a){OA.delete(a)};NA.register=VA;NA.prototype.destroy=NA.prototype.destroy;var OA=new Map;function WA(){HA.apply(this,arguments)}pa(WA,HA);WA.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return Q(function(g){d=FA(c.h,c.g);e=d.store();f=new Ig;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new V(2,9,9012,"Could not find values for "+a))};return F(g,Promise.all([d.promise(),f]),0)})};
WA.prototype.Wd=function(a){var b,c,d,e,f,g;return Q(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=XA(a.periods[c],e),b.push(f);return F(h,ew(b),2)}g=h.h;return h.return({creationTime:0,originalManifestUri:a.originalManifestUri,duration:a.duration,size:a.size,expiration:null==a.expiration?Infinity:a.expiration,streams:g,sessionIds:a.sessionIds,drmInfo:a.drmInfo,appMetadata:a.appMetadata,sequenceMode:!1})})};
function XA(a,b){YA(a);for(var c=t(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return ZA(e,a.startTime,b)})}
function ZA(a,b,c){var d=a.initSegmentUri?$A(a.initSegmentUri):null,e=b+a.presentationTimeOffset,f=b+c;return{id:a.id,originalId:null,groupId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:void 0,hdr:void 0,colorGamut:void 0,videoLayout:void 0,kind:a.kind,language:a.language,originalLanguage:a.language||null,label:a.label,width:a.width,height:a.height,initSegmentKey:d,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(g){var h=
$A(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,dataKey:h,initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e,tilesLayout:"",mimeType:null,codecs:null,thumbnailSprite:null}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1,isAudioMuxedInVideo:!1}}WA.prototype.Hi=function(a){return{data:a.data}};
function $A(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 V(2,9,9004,"Could not parse uri "+a);}
function YA(a){var b=a.streams.filter(function(h){return"audio"==h.contentType});a=a.streams.filter(function(h){return"video"==h.contentType});if(!b.every(function(h){return h.variantIds})||!a.every(function(h){return h.variantIds})){for(var c=t(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=t(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){d=c++;for(var e=t(a),f=e.next();!f.done;f=e.next())f.value.variantIds.push(d)}if(!a.length&&b.length)for(d=c++,
e=t(b),f=e.next();!f.done;f=e.next())f.value.variantIds.push(d);if(a.length&&b.length)for(b=t(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=t(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function aB(){HA.apply(this,arguments)}pa(aB,HA);
aB.prototype.Wd=function(a){var b,c,d,e,f,g;return Q(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c){d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime;e=d-a.periods[c].startTime;for(var k=a.periods[c],l=[],m=t(k.streams),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(bB(n,k.startTime,k.startTime+e));f=l;b.push(f)}return F(h,ew(b),2)}g=h.h;return h.return({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==a.expiration?
2025-06-19 04:02:44 +02:00
Infinity:a.expiration,originalManifestUri:a.originalManifestUri,sessionIds:a.sessionIds,size:a.size,streams:g,sequenceMode:!1})})};
2025-06-27 11:02:59 +02:00
function bB(a,b,c){return{id:a.id,originalId:a.originalId,groupId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:a.pixelAspectRatio,hdr:void 0,colorGamut:void 0,videoLayout:void 0,kind:a.kind,language:a.language,originalLanguage:a.language||null,label:a.label,width:a.width,height:a.height,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(d){return{startTime:b+d.startTime,endTime:b+d.endTime,initSegmentKey:a.initSegmentKey,
appendWindowStart:b,appendWindowEnd:c,timestampOffset:b-a.presentationTimeOffset,dataKey:d.dataKey,tilesLayout:"",mimeType:null,codecs:null,thumbnailSprite:null}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1,isAudioMuxedInVideo:!1}};function cB(){HA.apply(this,arguments)}pa(cB,HA);p=cB.prototype;p.hasFixedKeySpace=function(){return!1};p.addSegments=function(a){return this.add(this.i,a)};p.addManifests=function(a){return this.add(this.g,a)};p.updateManifest=function(a,b){return LA(this,a,b)};p.Wd=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function dB(){this.m=this.j=this.i=this.h=this.g=this.l=null}p=dB.prototype;
p.init=function(){var a=this,b=new Ig,c=!1,d=new zf(function(){c=!0;b.reject(new V(2,9,9017))});"number"===typeof eB&&0<eB&&d.X(eB);var e=window.indexedDB.open("shaka_offline_db",5);e.onsuccess=function(){if(!c){d.stop();var f=e.result;a.l=f;var g=f.objectStoreNames;g=g.contains("manifest")&&g.contains("segment")?new WA(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new aB(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;
g=g.contains("manifest-v3")&&g.contains("segment-v3")?new aB(f,"segment-v3","manifest-v3"):null;a.i=g;g=f.objectStoreNames;g=g.contains("manifest-v5")&&g.contains("segment-v5")?new cB(f,"segment-v5","manifest-v5"):null;a.j=g;f=f.objectStoreNames.contains("session-ids")?new MA(f):null;a.m=f;b.resolve()}};e.onupgradeneeded=function(){for(var f=e.result,g=t(["segment-v5","manifest-v5","session-ids"]),h=g.next();!h.done;h=g.next())h=h.value,f.objectStoreNames.contains(h)||f.createObjectStore(h,{autoIncrement:!0})};
e.onerror=function(f){c||(d.stop(),b.reject(new V(2,9,9001,e.error)),f.preventDefault())};return b};p.destroy=function(){var a=this;return Q(function(b){switch(b.g){case 1:if(!a.g){b.A(2);break}return F(b,a.g.destroy(),2);case 2:if(!a.h){b.A(4);break}return F(b,a.h.destroy(),4);case 4:if(!a.i){b.A(6);break}return F(b,a.i.destroy(),6);case 6:if(!a.j){b.A(8);break}return F(b,a.j.destroy(),8);case 8:if(!a.m){b.A(10);break}return F(b,a.m.destroy(),10);case 10:a.l&&a.l.close(),I(b)}})};
2025-06-19 04:02:44 +02:00
p.getCells=function(){var a=new Map;this.g&&a.set("v1",this.g);this.h&&a.set("v2",this.h);this.i&&a.set("v3",this.i);this.j&&a.set("v5",this.j);return a};p.getEmeSessionCell=function(){return this.m};
2025-06-27 11:02:59 +02:00
p.erase=function(){var a=this;return Q(function(b){switch(b.g){case 1:if(!a.g){b.A(2);break}return F(b,a.g.destroy(),2);case 2:if(!a.h){b.A(4);break}return F(b,a.h.destroy(),4);case 4:if(!a.i){b.A(6);break}return F(b,a.i.destroy(),6);case 6:if(!a.j){b.A(8);break}return F(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),F(b,fB(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,F(b,a.init(),0)}})};
function fB(){var a=new Ig,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new V(2,9,9001,b.error));c.preventDefault()};return a}var eB=5;S("shaka.offline.indexeddb.StorageMechanismOpenTimeout",eB);VA("idb",function(){return Rb().ei()?new dB:null});function gB(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}gB.prototype.Ub=function(){return this.i};gB.prototype.ib=function(){return this.h};gB.prototype.key=function(){return this.l};gB.prototype.toString=function(){return this.j};
function hB(a){a=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(a);if(null==a)return null;var b=a[1];if("manifest"!=b&&"segment"!=b)return null;var c=a[2];if(!c)return null;var d=a[3];return d&&null!=b?new gB(b,c,d,Number(a[4])):null};function iB(a,b){this.h=a;this.g=b}
function jB(a,b){var c=new xl(null,0);c.vb(b.duration);var d=b.streams.filter(function(l){return"audio"==l.type}),e=b.streams.filter(function(l){return"video"==l.type});d=kB(a,d,e,c);e=b.streams.filter(function(l){return l.type==sc}).map(function(l){return lB(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return lB(a,l,c)}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=t(d.values()),k=h.next();!k.done;k=h.next())k=k.value,k.audio&&k.audio.encrypted&&(k.audio.drmInfos=
2025-06-19 04:02:44 +02:00
g),k.video&&k.video.encrypted&&(k.video.drmInfos=g);return{presentationTimeline:c,offlineSessionIds:b.sessionIds,variants:Array.from(d.values()),textStreams:e,imageStreams:f,sequenceMode:b.sequenceMode||!1,ignoreManifestTimestampsInSegmentsMode:!1,type:b.type||"UNKNOWN",serviceDescription:null,nextUrl:null,periodCount:1,gapCount:0,isLowLatency:!1,startTime:null}}
2025-06-27 11:02:59 +02:00
function kB(a,b,c,d){for(var e=new Set,f=t(b),g=f.next();!g.done;g=f.next()){g=t(g.value.variantIds);for(var h=g.next();!h.done;h=g.next())e.add(h.value)}f=t(c);for(g=f.next();!g.done;g=f.next())for(g=t(g.value.variantIds),h=g.next();!h.done;h=g.next())e.add(h.value);f=new Map;e=t(e);for(g=e.next();!g.done;g=e.next())g=g.value,f.set(g,{id:g,language:"",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});b=t(b);for(e=b.next();!e.done;e=
b.next())for(g=e.value,e=lB(a,g,d),g=t(g.variantIds),h=g.next();!h.done;h=g.next())h=f.get(h.value),h.language=e.language,h.primary=h.primary||e.primary,h.audio=e;c=t(c);for(b=c.next();!b.done;b=c.next())for(e=b.value,b=lB(a,e,d),e=t(e.variantIds),g=e.next();!g.done;g=e.next())g=f.get(g.value),g.primary=g.primary||b.primary,g.video=b;return f}
function lB(a,b,c){var d=b.segments.map(function(e){return mB(a,e,b)});c.re(d);return{id:b.id,originalId:b.originalId,groupId:b.groupId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Vl(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,colorGamut:b.colorGamut,videoLayout:b.videoLayout,kind:b.kind,encrypted:b.encrypted,drmInfos:[],keyIds:b.keyIds,language:b.language,originalLanguage:b.originalLanguage||
null,label:b.label,type:b.type,primary:b.primary,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:b.roles,forced:b.forced,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,spatialAudio:b.spatialAudio,closedCaptions:b.closedCaptions,tilesLayout:b.tilesLayout,mssPrivateData:b.mssPrivateData,accessibilityPurpose:null,external:b.external,fastSwitching:b.fastSwitching,fullMimeTypes:new Set([bf(b.mimeType,b.codecs)]),isAudioMuxedInVideo:!1,baseOriginalId:null}}
function mB(a,b,c){var d=new gB("segment",a.h,a.g,b.dataKey);a=new Aj(b.startTime,b.endTime,function(){return[d.toString()]},0,null,null!=b.initSegmentKey?nB(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd,[],b.tilesLayout||"");a.mimeType=b.mimeType||c.mimeType||"";a.codecs=b.codecs||c.codecs||"";b.thumbnailSprite&&a.dg(b.thumbnailSprite);return a}function nB(a,b){var c=new gB("segment",a.h,a.g,b);return new yj(function(){return[c.toString()]},0,null)};function oB(){this.g=null}p=oB.prototype;p.configure=function(){};
p.start=function(a,b){var c=this,d,e,f,g,h,k,l;return Q(function(m){switch(m.g){case 1:d=hB(a);c.g=d;if(null==d||"manifest"!=d.g)throw new V(2,1,9004,a);e=new NA;ua(m,2);return F(m,e.init(),4);case 4:return F(m,RA(e,d.Ub(),d.ib()),5);case 5:return f=m.h,F(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new iB(d.Ub(),d.ib()),l=jB(k,h),b.makeTextStreamsForClosedCaptions(l),m.return(l);case 2:return ya(m),F(m,e.destroy(),7);case 7:Ba(m,0)}})};p.stop=function(){return Promise.resolve()};
2025-06-19 04:02:44 +02:00
p.update=function(){};
2025-06-27 11:02:59 +02:00
p.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return Q(function(m){switch(m.g){case 1:return d=c.g,e=new NA,ta(m,2,3),F(m,e.init(),5);case 5:return F(m,RA(e,d.Ub(),d.ib()),6);case 6:return f=m.h,F(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.A(3);break}return F(m,f.updateManifestExpiration(d.key(),b),3);case 3:return ya(m),F(m,e.destroy(),10);case 10:Ba(m,0);break;case 2:xa(m),m.A(3)}})};
p.onInitialVariantChosen=function(){};p.banLocation=function(){};p.setMediaElement=function(){};Ci("application/x-offline-manifest",function(){return new oB});function pB(){}function qB(a,b){var c=hB(a);c&&"manifest"==c.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"},originalRequest:b},a=Mg(a)):a=c&&"segment"==c.g?rB(c.key(),c,b):Kg(new V(2,1,9004,a));return a}
function rB(a,b,c){var d=new NA;return Mg(void 0).ab(function(){return d.init()}).ab(function(){return RA(d,b.Ub(),b.ib())}).ab(function(e){return e.getSegments([b.key()])}).ab(function(e){return{uri:b,data:e[0].data,headers:{},originalRequest:c}}).finally(function(){return d.destroy()})}S("shaka.offline.OfflineScheme",pB);pB.plugin=qB;Tg("offline",qB);function sB(a,b,c){var d,e,f,g,h,k;return Q(function(l){switch(l.g){case 1:d=[];for(var m=[],n=t(c),q=n.next();!q.done;q=n.next()){q=q.value;for(var r=!1,u=t(m),w=u.next();!w.done;w=u.next())if(w=w.value,tB(w.info,q)){w.sessionIds.push(q.sessionId);r=!0;break}r||m.push({info:q,sessionIds:[q.sessionId]})}e=t(m);f=e.next();case 2:if(f.done){l.A(4);break}g=f.value;h=uB(a,b,g);return F(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.A(2);break;case 4:return l.return(d)}})}
function uB(a,b,c){var d,e;return Q(function(f){switch(f.g){case 1:return d=new yh({xc:b,onError:function(){},Lf:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),ta(f,2),d.configure(a),F(f,Gh(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 xa(f),F(f,d.destroy(),5);case 5:return f.return([]);case 3:return e=[],F(f,Promise.all(c.sessionIds.map(function(g){return Q(function(h){if(1==
h.g)return ta(h,2),F(h,Sh(d,g),4);if(2!=h.g)return e.push(g),wa(h,0);xa(h);I(h)})})),6);case 6:return F(f,d.destroy(),7);case 7:return f.return(e)}})}function tB(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&td(a.audioCapabilities,b.audioCapabilities,c)&&td(a.videoCapabilities,b.videoCapabilities,c)};function vB(a,b,c){var d=b.presentationTimeline.getDuration();b=wB(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function xB(a,b){var c=jB(new iB(a.Ub(),a.ib()),b),d=b.appMetadata||{};c=wB(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d,isIncomplete:b.isIncomplete||!1}}
function wB(a){var b=[],c=ig(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push($f(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(ag(c.value));return b};function yB(){this.g=new Map}function zB(a,b){var c=b.audio,d=b.video;c&&!d&&a.g.set(c.id,c.bandwidth||b.bandwidth);!c&&d&&a.g.set(d.id,d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g.set(c.id,e);a.g.set(d.id,f)}}function AB(a,b){a.g.set(b.id,b.bandwidth||2048)}function BB(a,b){a=a.g.get(b);null==a&&(a=0);return a};function CB(a){var b=this;if(a&&a.constructor!=X)throw new V(2,9,9008);this.g=this.h=null;a?(this.h=a.g,this.g=a.Ib()):(this.h=Qn(),this.g=new Sg,this.g.configure(this.h.networking));this.i=[];this.l=[];var c=!a;this.j=new eh(function(){var d,e,f,g,h;return Q(function(k){switch(k.g){case 1:return F(k,Promise.all(b.l.map(function(l){return xA(l)})),2);case 2:d=function(){};e=[];f=t(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return F(k,Promise.all(e),3);case 3:if(!c){k.A(4);
break}return F(k,b.g.destroy(),4);case 4:b.h=null,b.g=null,I(k)}})});this.m=1E9}function DB(){if(Fi(Rb()))a:{var a=t(OA.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}p=CB.prototype;p.destroy=function(){return this.j.destroy()};p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=wn(a,b));return Vn(this.h,a)};p.getConfiguration=function(){var a=Qn();Vn(a,this.h,Qn());return a};p.Ib=function(){return this.g};
p.store=function(a,b,c,d,e){var f=this,g=this.getConfiguration(),h=new wA(this.g);this.l.push(h);b=EB(this,a,b||{},d||[],e||[],function(){var k;return Q(function(l){if(1==l.g)return c?l.A(2):F(l,Bo(a,f.g,g.manifest.retryParameters),3);2!=l.g&&(c=l.h);k=Hi(a,c||null);return l.return(k())})},g,h);b=new Jg(b,function(){return xA(h)});b.finally(function(){sd(f.l,h)});return FB(this,b)};
function EB(a,b,c,d,e,f,g,h){var k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L,N,O,M;return Q(function(P){switch(P.g){case 1:return GB(),l=k=null,m=new NA,r=q=n=null,ta(P,2,3),F(P,f(),5);case 5:return k=P.h,F(P,HB(a,b,k,g),6);case 6:u=P.h;IB(a);w=!u.presentationTimeline.T()&&!u.presentationTimeline.fd();if(!w)throw new V(2,9,9005,b);v=t(d);y=v.next();case 7:if(y.done){P.A(9);break}z=y.value;return F(P,JB(a,z,u),10);case 10:A=P.h;u.imageStreams.push(A);IB(a);y=v.next();P.A(7);break;case 9:B=t(e),D=B.next();
case 11:if(D.done)return Ih(g.drm.clearKeys,u.variants),E=u.variants.some(function(R){if(R.audio)for(var T=t(R.audio.drmInfos),ca=T.next();!ca.done;ca=T.next())if(ca.value.licenseServerUri.startsWith("data:"))return!0;if(R.video)for(R=t(R.video.drmInfos),T=R.next();!T.done;T=R.next())if(T.value.licenseServerUri.startsWith("data:"))return!0;return!1}),H=g.offline.usePersistentLicense,E&&(H=!1),F(P,a.vd(u,function(R){r=r||R},g,H),15);G=D.value;return F(P,KB(a,u,G.uri,G.language,G.kind,G.mime,G.codecs),
14);case 14:C=P.h;u.textStreams.push(C);IB(a);D=B.next();P.A(11);break;case 15:l=P.h;IB(a);if(r)throw r;return F(P,LB(u,l,g,H),16);case 16:return F(P,m.init(),17);case 17:return IB(a),F(P,PA(m),18);case 18:return n=P.h,IB(a),K=MB(l,u,b,c,g,h,H),J=K.El,L=K.ki,F(P,n.ib.addManifests([J]),19);case 19:N=P.h;IB(a);q=N[0];IB(a);if(r)throw r;return F(P,NB(a,L,q,J,h,g,n.ib,u,l,H),20);case 20:return IB(a),OB(u,J,l,H),F(P,n.ib.updateManifest(q,J),21);case 21:return IB(a),O=new gB("manifest",n.path.Ub,n.path.ib,
q),P.return(xB(O,J));case 3:return ya(P),F(P,m.destroy(),22);case 22:if(!k){P.A(23);break}return F(P,k.stop(),23);case 23:if(!l){P.A(25);break}return F(P,l.destroy(),25);case 25:Ba(P,0);break;case 2:M=xa(P);if(null==q){P.A(27);break}return F(P,PB(q),27);case 27:throw r||M;}})}
function NB(a,b,c,d,e,f,g,h,k,l){var m,n,q,r,u,w,v,y,z,A,B;return Q(function(D){switch(D.g){case 1:m={};n=0;q=function(){if(a.j.g||e.l)throw new V(2,9,7001);};r=function(G,C){var E,H,K,J,L,N,O,M,P;return Q(function(R){if(1==R.g){E=t(G);H=E.next();for(K={};!H.done;K={pc:void 0},H=E.next())K.pc=H.value,q(),J=sA(K.pc,f),L=K.pc.i,N=K.pc.h,O=function(T){return function(ca){var Y,Ma,Na,Ea;return Q(function(va){switch(va.g){case 1:Y=T.pc.g;Ma=Y.cc(!1);if(!Y.aesKey||Ma){va.A(2);break}return F(va,Em(ca,Y.aesKey,
T.pc.j),3);case 3:ca=va.h;case 2:return Na=rA(Y),F(va,g.addSegments([{data:ca}]),4);case 4:Ea=va.h,q(),m[Na]=Ea[0],n+=ca.byteLength,I(va)}})}}(K),M=K.pc.g,(P=M.cc(!1))?AA(e,K.pc.groupId,P,L,N,O):e.queue(K.pc.groupId,J,L,N,O);return F(R,BA(e),2)}q();if(!C||e.l)return R.A(0);OB(h,d,k,l);return F(R,g.updateManifest(c,d),0)})};u=!1;ta(D,2);if(!QB(h)||!u||RB(h)){D.A(4);break}return F(D,r(b.filter(function(G){return G.h}),!0),5);case 5:return q(),b=b.filter(function(G){return!G.h}),w=m,v=n,m={},n=0,F(D,
SB(g,c,d,w,v,function(){return IB(a)}),6);case 6:q();case 4:if(u){D.A(7);break}return F(D,r(b,!1),8);case 8:return q(),y=m,z=n,m={},n=0,F(D,SB(g,c,d,y,z,function(){return q()}),9);case 9:q();case 7:wa(D,0);break;case 2:return A=xa(D),B=Object.values(m),F(D,g.removeSegments(B,function(){}),10);case 10:throw A;}})}
function PB(a){var b,c,d,e;return Q(function(f){switch(f.g){case 1:return b=new NA,F(f,b.init(),2);case 2:return F(f,PA(b),3);case 3:return c=f.h,d=new gB("manifest",c.path.Ub,c.path.ib,a),F(f,b.destroy(),4);case 4:return e=new CB,F(f,e.remove(d.toString()),0)}})}
function SB(a,b,c,d,e,f){var g,h,k,l,m,n,q,r,u,w,v;return Q(function(y){switch(y.g){case 1:g=!1;ta(y,2);h=!0;k=t(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=t(m.segments),q=n.next();!q.done;q=n.next())r=q.value,u=r.pendingSegmentRefId?d[r.pendingSegmentRefId]:null,null!=u&&(r.dataKey=u,r.pendingSegmentRefId=void 0),u=r.pendingInitSegmentRefId?d[r.pendingInitSegmentRefId]:null,null!=u&&(r.initSegmentKey=u,r.pendingInitSegmentRefId=void 0),r.pendingSegmentRefId&&(h=!1),r.pendingInitSegmentRefId&&
(h=!1);c.size+=e;h&&(c.isIncomplete=!1);return F(y,a.updateManifest(b,c),4);case 4:g=!0;f();wa(y,0);break;case 2:return w=xa(y),F(y,PB(b),5);case 5:if(g){y.A(6);break}v=Object.values(d);return F(y,a.removeSegments(v,function(){}),6);case 6:throw w;}})}
function LB(a,b,c,d){var e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D,G,C,E,H,K,J,L,N,O,M,P,R;return Q(function(T){switch(T.g){case 1:return e={width:Infinity,height:Infinity},Hf(a,c.restrictions,e),F(T,Kf(b,a,d,c.drm.preferredKeySystems,c.drm.keySystemsMapping),2);case 2:f=[];g=c.preferredDecodingAttributes;h=c.preferredVideoCodecs;k=c.preferredAudioCodecs;l=c.preferredTextFormats;Ff(a,h,k,g,l);m=t(a.variants);for(n=m.next();!n.done;n=m.next())q=n.value,f.push($f(q));r=t(a.textStreams);for(u=r.next();!u.done;u=
r.next())w=u.value,f.push(ag(w));v=t(a.imageStreams);for(y=v.next();!y.done;y=v.next())z=y.value,f.push(bg(z));return F(T,c.offline.trackSelectionCallback(f),3);case 3:A=T.h;B=a.presentationTimeline.getDuration();D=0;G=t(A);for(C=G.next();!C.done;C=G.next())E=C.value,H=E.bandwidth*B/8,D+=H;ta(T,4);return F(T,c.offline.downloadSizeCallback(D),6);case 6:K=T.h;if(!K)throw new V(2,9,9014);wa(T,5);break;case 4:J=xa(T);if(J instanceof V)throw J;throw new V(2,9,9015);case 5:L=new Set;N=new Set;O=new Set;
M=t(A);for(P=M.next();!P.done;P=M.next())R=P.value,"variant"==R.type&&L.add(R.id),"text"==R.type&&N.add(R.id),"image"==R.type&&O.add(R.id);a.variants=a.variants.filter(function(ca){return L.has(ca.id)});a.textStreams=a.textStreams.filter(function(ca){return N.has(ca.id)});a.imageStreams=a.imageStreams.filter(function(ca){return O.has(ca.id)});TB(a);I(T)}})}
function MB(a,b,c,d,e,f,g){var h=vB(c,b,d),k=e.offline.progressCallback;yA(f,function(u,w){h.size=w;k(h,u)},function(u,w){l&&g&&m==w&&Oh(a,"cenc",u)});var l=QB(b)&&!RB(b),m=null;l&&(m=UB.get(a.g.keySystem));for(var n=new yB,q=t(b.textStreams),r=q.next();!r.done;r=q.next())n.g.set(r.value.id,52);q=t(b.imageStreams);for(r=q.next();!r.done;r=q.next())AB(n,r.value);q=t(b.variants);for(r=q.next();!r.done;r=q.next())zB(n,r.value);f=VB(f,n,b,e);e=f.streams;f=f.ki;(n=a.g)&&g&&(n.initData=[]);return{El:{creationTime:Date.now(),
originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.be(),streams:e,sessionIds:g?Xh(a):[],drmInfo:n,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode,type:b.type},ki:f}}function QB(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
function RB(a){return a.variants.some(function(b){return(b.video?b.video.drmInfos:[]).concat(b.audio?b.audio.drmInfos:[]).some(function(c){return c.initData&&c.initData.length})})}function OB(a,b,c,d){b.expiration=c.be();c=Xh(c);b.sessionIds=d?c:[];if(QB(a)&&d&&!c.length)throw new V(2,9,9007);}p.remove=function(a){return WB(this,XB(this,a))};
function XB(a,b){var c,d,e,f,g,h;return Q(function(k){switch(k.g){case 1:GB();c=hB(b);if(null==c||"manifest"!=c.g)throw new V(2,9,9004,b);d=c;e=new NA;ua(k,2);return F(k,e.init(),4);case 4:return F(k,RA(e,d.Ub(),d.ib()),5);case 5:return f=k.h,F(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],F(k,Promise.all([YB(a,h,e),ZB(f,d,h)]),2);case 2:return ya(k),F(k,e.destroy(),8);case 8:Ba(k,0)}})}
function $B(a,b){for(var c=[],d=t(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:bf(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:bf(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function YB(a,b,c){return Q(function(d){return F(d,aC(a.g,a.h.drm,c,b),0)})}
function ZB(a,b,c){function d(){}var e=bC(c);xB(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}p.Xl=function(){return WB(this,cC(this))};
function cC(a){var b,c,d,e,f,g,h,k,l,m;return Q(function(n){switch(n.g){case 1:return GB(),b=a.g,c=a.h.drm,d=new NA,e=!1,ua(n,2),F(n,d.init(),4);case 4:f=[],SA(d,function(q){return f.push(q)}),g=t(f),h=g.next();case 5:if(h.done){n.A(2);break}k=h.value;return F(n,k.getAll(),8);case 8:return l=n.h,F(n,sB(c,b,l),9);case 9:return m=n.h,F(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.A(5);break;case 2:return ya(n),F(n,d.destroy(),11);case 11:Ba(n,3);break;case 3:return n.return(!e)}})}
p.list=function(){return WB(this,dC())};function dC(){var a,b,c;return Q(function(d){switch(d.g){case 1:return GB(),a=[],b=new NA,ua(d,2),F(d,b.init(),4);case 4:return c=Promise.resolve(),QA(b,function(e,f){c=c.then(function(){var g;return Q(function(h){if(1==h.g)return F(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=xB(new gB("manifest",e.Ub,e.ib,l),k);a.push(k)});I(h)})})}),F(d,c,2);case 2:return ya(d),F(d,b.destroy(),6);case 6:Ba(d,3);break;case 3:return d.return(a)}})}
function HB(a,b,c,d){var e,f,g,h,k;return Q(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m},isLowLatencyMode:function(){return!1},updateDuration:function(){},newDrmInfo:function(){},onManifestUpdated:function(){},getBandwidthEstimate:function(){return d.abr.defaultBandwidthEstimate},onMetadata:function(){},disableStream:function(){},
addFont:function(){}},c.configure(d.manifest),IB(a),F(l,c.start(b,g),2);if(3!=l.g)return h=l.h,IB(a),k=eC(h),F(l,Promise.all(kb(k,function(m){return m.createSegmentIndex()})),3);IB(a);if(e)throw e;return l.return(h)})}
function JB(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,u,w,v,y;return Q(function(z){switch(z.g){case 1:return F(z,fC(a,b),2);case 2:d=z.h;if("text/vtt"!=d)throw new V(1,2,2017,b);return F(z,gC(b,a.g,a.h.streaming.retryParameters),3);case 3:e=z.h;f=qf(d);if(!f)throw new V(2,2,2014,d);g=f();h={periodStart:0,segmentStart:0,segmentEnd:c.presentationTimeline.getDuration(),vttOffset:0};k=Kb(e);l=g.parseMedia(k,h,b,[]);m=[];n=t(l);q=n.next();for(r={};!q.done;r={mg:void 0,xd:void 0},q=n.next())r.xd=q.value,r.mg=null,
u=function(A){return function(){null==A.mg&&(A.mg=lc([b],[A.xd.payload]));return A.mg||[]}}(r),w=new Aj(r.xd.startTime,r.xd.endTime,u,0,null,null,0,0,Infinity),r.xd.payload.includes("#xywh")&&(v=r.xd.payload.split("#xywh=")[1].split(","),4===v.length&&w.dg({height:parseInt(v[3],10),positionX:parseInt(v[0],10),positionY:parseInt(v[1],10),width:parseInt(v[2],10)})),m.push(w);y=d;if(!m.length){z.A(4);break}return F(z,Bo(m[0].S()[0],a.g,a.h.manifest.retryParameters),5);case 5:y=z.h;case 4:return z.return({id:a.m++,
originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Vl(m),mimeType:y||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:"image",primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([bf(y||
2025-06-19 04:02:44 +02:00
"","")]),isAudioMuxedInVideo:!1,baseOriginalId:null})}})}
2025-06-27 11:02:59 +02:00
function KB(a,b,c,d,e,f,g){var h,k,l;return Q(function(m){if(1==m.g)return f?m.A(2):F(m,fC(a,c),3);2!=m.g&&(f=m.h);h={id:a.m++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Xl(0,b.presentationTimeline.getDuration(),[c]),mimeType:f||"",codecs:g||"",kind:e,encrypted:!1,drmInfos:[],keyIds:new Set,language:d,originalLanguage:d,label:null,type:sc,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,
audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([bf(f||"",g||"")]),isAudioMuxedInVideo:!1,baseOriginalId:null};k=bf(h.mimeType,h.codecs);l=sf(k);if(!l)throw new V(2,2,2014,f);return m.return(h)})}
function fC(a,b){var c;return Q(function(d){switch(d.g){case 1:return ta(d,2),F(d,Bo(b,a.g,a.h.streaming.retryParameters),4);case 4:c=d.h;wa(d,3);break;case 2:xa(d);case 3:if(c)return d.return(c);throw new V(1,2,2011,b);}})}function gC(a,b,c){var d,e,f;return Q(function(g){if(1==g.g)return d=ch,e=Xg([a],c),e.method="GET",F(g,b.request(d,e).promise,2);f=g.h;return g.return(f.data)})}
p.vd=function(a,b,c,d){var e=this,f;return Q(function(g){return 1==g.g?(f=new yh({xc:e.g,onError:b,Lf:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),f.configure(c.drm),F(g,Dh(f,a.variants,d),2)):3!=g.g?F(g,Qh(f),3):g.return(f)})};
function VB(a,b,c,d){var e=new Map,f=eC(c),g=new Map;f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=hC(a,b,c,h,d,e);g.set(h.id,k)}a=t(c.variants);for(b=a.next();!b.done;b=a.next())b=b.value,b.audio&&g.get(b.audio.id).variantIds.push(b.id),b.video&&g.get(b.video.id).variantIds.push(b.id);return{streams:Array.from(g.values()),ki:Array.from(e.values())}}
function hC(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,groupId:d.groupId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,colorGamut:d.colorGamut,videoLayout:d.videoLayout,kind:d.kind,language:d.language,originalLanguage:d.originalLanguage,label:d.label,width:d.width||null,height:d.height||null,encrypted:d.encrypted,keyIds:d.keyIds,segments:[],variantIds:[],roles:d.roles,forced:d.forced,channelsCount:d.channelsCount,
audioSamplingRate:d.audioSamplingRate,spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,tilesLayout:d.tilesLayout,mssPrivateData:d.mssPrivateData,external:d.external,fastSwitching:d.fastSwitching,isAudioMuxedInVideo:d.isAudioMuxedInVideo},h=e.offline.numberOfParallelDownloads,k=0===h?d.id:0;iC(d,c.presentationTimeline.Kb(),function(l,m){var n=rA(l),q=void 0;if(!f.has(n)){var r=l.endTime-l.startTime;r=BB(b,d.id)*r;r=uA(a.g,r);f.set(n,new qA(l,r,k,!1,m))}l.ea&&(q=rA(l.ea),f.has(q)||(r=.5*
BB(b,d.id),r=uA(a.g,r),f.set(q,new qA(l.ea,r,k,!0,m))));g.segments.push({pendingInitSegmentRefId:q,initSegmentKey:q?0:null,startTime:l.startTime,endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,tilesLayout:l.tilesLayout,pendingSegmentRefId:n,dataKey:0,mimeType:l.mimeType,codecs:l.codecs,thumbnailSprite:l.thumbnailSprite});0!==h&&(k=(k+1)%h)});return g}
function iC(a,b,c){b=a.segmentIndex.find(b);if(null!=b)for(var d=a.segmentIndex.get(b);d;)c(d,b),d=a.segmentIndex.get(++b)}function IB(a){if(a.j.g)throw new V(2,9,7001);}function GB(){if(!DB())throw new V(2,9,9E3);}function WB(a,b){return Q(function(c){if(1==c.g)return a.i.push(b),ua(c,2),F(c,b,4);if(2!=c.g)return c.return(c.h);ya(c);sd(a.i,b);return Ba(c,0)})}function FB(a,b){var c=b.promise;a.i.push(c);return b.finally(function(){sd(a.i,c)})}
function bC(a){var b=new Set;a=t(a.streams);for(var c=a.next();!c.done;c=a.next()){c=t(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.add(d.initSegmentKey),b.add(d.dataKey)}return Array.from(b)}
function aC(a,b,c,d){var e,f,g;return Q(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=TA(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:$B(d,!1),videoCapabilities:$B(d,!0)}});return F(h,sB(b,a,f),2)}return 3!=h.g?(g=h.h,F(h,e.remove(g),3)):F(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
function eC(a){for(var b=new Set,c=t(a.variants),d=c.next();!d.done;d=c.next())d=d.value,d.audio&&b.add(d.audio),d.video&&b.add(d.video);c=t(a.textStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=t(a.imageStreams);for(c=a.next();!c.done;c=a.next())b.add(c.value);return b}
function TB(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=t(b),d=c.next();!d.done;d=c.next()){d=t(b);for(var e=d.next();!e.done;e=d.next());}b=t(a);for(c=b.next();!c.done;c=b.next())for(c=t(a),d=c.next();!d.done;d=c.next());}S("shaka.offline.Storage",CB);CB.deleteAll=function(){var a;return Q(function(b){return 1==b.g?(a=new NA,ua(b,2),F(b,UA(a),2)):5!=b.g?(ya(b),F(b,a.destroy(),5)):Ba(b,0)})};
CB.prototype.list=CB.prototype.list;CB.prototype.removeEmeSessions=CB.prototype.Xl;CB.prototype.remove=CB.prototype.remove;CB.prototype.store=CB.prototype.store;CB.prototype.getNetworkingEngine=CB.prototype.Ib;CB.prototype.getConfiguration=CB.prototype.getConfiguration;CB.prototype.configure=CB.prototype.configure;CB.prototype.destroy=CB.prototype.destroy;CB.support=DB;
var UB=(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.huawei.wiseplay","3d5e6d359b9a41e8b843dd3c6e72c42c");
nq("offline",DB);function jC(){}function kC(){for(var a=t(lC),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){ab("Error installing polyfill!",c)}}}function mC(a,b){a={priority:b||0,callback:a};for(b=0;b<lC.length;b++)if(lC[b].priority<a.priority){lC.splice(b,0,a);return}lC.push(a)}S("shaka.polyfill",jC);jC.register=mC;jC.installAll=kC;var lC=[];function nC(){}function oC(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=t(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())pC(b.value)}function pC(a){var b="aria-"+a.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,a,{get:function(){return this.getAttribute(b)},set:function(c){null==c||void 0==c?this.removeAttribute(b):this.setAttribute(b,c)}})}jC.Aria=nC;nC.install=oC;mC(oC);function qC(){}function rC(){Rb().di()&&sC()}jC.EncryptionScheme=qC;qC.install=rC;mC(rC,-2);function tC(){}
function uC(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.msExitFullscreen||a.webkitCancelFullScreen;"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),
Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",vC);document.addEventListener("webkitfullscreenerror",vC);document.addEventListener("mozfullscreenchange",vC);document.addEventListener("mozfullscreenerror",vC);document.addEventListener("MSFullscreenChange",vC);document.addEventListener("MSFullscreenError",vC)}}
function vC(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)}jC.Fullscreen=tC;tC.install=uC;mC(uC);function wC(){}function xC(){Rb().ic()||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),wC.originalMcap=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=yC)}
function yC(a){var b,c,d,e,f,g,h,k,l,m,n;return Q(function(q){switch(q.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};Rb();c=a.video;d=a.audio;if("media-source"!=a.type){if("file"==a.type){if(c&&(e=c.contentType,f=""!=Gi().canPlayType(e),!f)||d&&(g=d.contentType,h=""!=Gi().canPlayType(g),!h))return q.return(b)}else return q.return(b);q.A(2);break}if(!Fi())return q.return(b);if(!c){q.A(3);break}return F(q,zC(c),4);case 4:if(k=q.h,!k)return q.return(b);case 3:if(d){var r=
Rb().Ja(),u=d.contentType;"CAST"===r&&d.spatialRendering&&(u+="; spatialRendering=true");l=bd(u);if(!l)return q.return(b)}case 2:if(!a.keySystemConfiguration)return b.supported=!0,q.return(b);m=a.keySystemConfiguration;return F(q,AC(c,d,m),6);case 6:if(n=q.h)b.supported=!0,b.keySystemAccess=n;case 5:return q.return(b)}})}function zC(a){var b,c,d;return Q(function(e){return 1==e.g?(b=Rb(),c=b.Ja(),"CAST"!==c?e.A(2):F(e,BC(a),3)):2!=e.g?(d=e.h,e.return(d)):e.return(bd(a.contentType))})}
function AC(a,b,c){var d,e,f,g,h,k,l,m,n,q,r;return Q(function(u){switch(u.g){case 1:d=[];e=[];c.audio&&(f={robustness:c.audio.robustness||"",contentType:b.contentType},Rb().fj()&&b.contentType.includes('codecs="ac-3"')&&(f.contentType='audio/mp4; codecs="ec-3"'),c.audio.encryptionScheme&&(f.encryptionScheme=c.audio.encryptionScheme),d.push(f));c.video&&(g={robustness:c.video.robustness||"",contentType:a.contentType},c.video.encryptionScheme&&(g.encryptionScheme=c.video.encryptionScheme),e.push(g));
h={initDataTypes:[c.initDataType],distinctiveIdentifier:c.distinctiveIdentifier,persistentState:c.persistentState,sessionTypes:c.sessionTypes};d.length&&(h.audioCapabilities=d);e.length&&(h.videoCapabilities=e);k=a?a.contentType:"";l=b?b.contentType:"";m=kf(k)+";"+jf(k);n=kf(l)+";"+jf(l);q=c.keySystem;r=null;ta(u,2);if(Ag.has(m+"#"+n+"#"+q)){r=Ag.get(m+"#"+n+"#"+q)||null;u.A(4);break}return F(u,navigator.requestMediaKeySystemAccess(c.keySystem,[h]),5);case 5:r=u.h,Ag.set(m+"#"+n+"#"+q,r);case 4:wa(u,
3);break;case 2:xa(u);case 3:return u.return(r)}})}
function BC(a){var b,c,d,e,f;return Q(function(g){if(1==g.g){if(!(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType))return g.return(bd(a.contentType));b=a.contentType;a.width&&a.height&&1280<a.width&&720<a.height&&(b+="; width="+a.width+"; height="+a.height);a.framerate&&(c=Math.round(a.framerate),24>c||30<c)&&(b+="; framerate="+a.framerate);d=a.transferFunction||"";switch(d){case "":case "srgb":break;case "pq":b+="; eotf=smpte2084";break;case "hlg":b+="; eotf=arib-std-b67";break;
default:return g.return(!1)}e=!1;f=CC;return f.has(b)?(e=f.get(b),g.A(2)):F(g,cast.__platform__.canDisplayType(b),3)}2!=g.g&&(e=g.h,f.set(b,e));return g.return(e)})}jC.MediaCapabilities=wC;wC.install=xC;wC.originalMcap=null;var CC=new Map;mC(xC,-1);function DC(){}function EC(){var a=Rb(),b="WEBKIT"===a.Ga()?a.Ha():null;(window.MediaSource||window.ManagedMediaSource)&&b&&window.MediaSource&&(12>=b?(FC(),GC()):15>=b&&FC());a=t(a.pj());for(b=a.next();!b.done;b=a.next())HC(b.value);(window.MediaSource||window.ManagedMediaSource)&&IC();window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&JC()}
function FC(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Ka.apply(0,arguments));b.abort=function(){};return b}}function GC(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}
function IC(){if(window.MediaSource){var a=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(c){return"mp2t"!=ff(c)&&a(c)}}if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(c){return"mp2t"!=ff(c)&&b(c)}}}
function HC(a){var b=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(d){return jf(d)!=a&&b(d)};if(window.ManagedMediaSource){var c=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(d){return jf(d)!=a&&c(d)}}}
function JC(){var a=MediaSource.isTypeSupported;Rb().Rj()&&(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)})}jC.MediaSource=DC;DC.install=EC;mC(EC);function KC(){}function LC(){screen.orientation&&screen.orientation.unlock||(void 0!=screen.orientation?MC():void 0!=window.orientation&&NC())}function MC(){void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve()});void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){})}
function NC(){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 OC;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new U("change");b.dispatchEvent(c)})}jC.Orientation=KC;KC.install=LC;function OC(){jb.call(this);this.type="";this.angle=0}pa(OC,jb);
OC.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)};
OC.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};mC(LC);function PC(){}var QC,RC,SC,TC,UC,VC;
function WC(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys&&window.shakaMediaKeysPolyfill!=XC){if(void 0===a?0:a)QC=!0,RC=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),SC=HTMLMediaElement.prototype.setMediaKeys,TC=window.MediaKeys,UC=window.MediaKeySystemAccess,VC=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=YC;window.MediaKeys=ZC;window.MediaKeySystemAccess=
$C;navigator.requestMediaKeySystemAccess=aD;window.shakaMediaKeysPolyfill=XC;Sf.clear();Ag.clear()}}function aD(a,b){try{var c=new $C(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function YC(a){var b=this.mediaKeys;b&&b!=a&&bD(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?bD(a,this):Promise.resolve()}
function cD(a){a=Kb(a.initData);if(Ob(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=Xb(a.subarray(4),!0);a=$b(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Lb(a);this.dispatchEvent(b)}jC.PatchedMediaKeysApple=PC;
PC.uninstall=function(){window.shakaMediaKeysPolyfill==XC&&QC&&(QC=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",RC),HTMLMediaElement.prototype.setMediaKeys=SC,window.MediaKeys=TC,window.MediaKeySystemAccess=UC,navigator.requestMediaKeySystemAccess=VC,RC=VC=SC=UC=TC=null,window.shakaMediaKeysPolyfill="",Sf.clear(),Ag.clear())};PC.install=WC;
function $C(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=t(b),b=a.next();!b.done;b=a.next()){var c=b.value;if("required"==c.persistentState)b=null;else{b={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:c.initDataTypes,sessionTypes:["temporary"],label:c.label};var d=!1,e=!1;if(c.audioCapabilities)for(var f=t(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
g.contentType.split(";")[0])&&(b.audioCapabilities.push(g),e=!0));if(c.videoCapabilities)for(c=t(c.videoCapabilities),f=c.next();!f.done;f=c.next())f=f.value,f.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,f.contentType.split(";")[0])&&(b.videoCapabilities.push(f),e=!0));d||(e=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));b=e?b:null}if(b){this.g=b;return}}a=Error("Unsupported keySystem");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}
$C.prototype.createMediaKeys=function(){var a=new ZC(this.keySystem);return Promise.resolve(a)};$C.prototype.getConfiguration=function(){return this.g};function ZC(a){this.h=new WebKitMediaKeys(a);this.g=new Oc}ZC.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new dD(this.h,a)};ZC.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
function bD(a,b){a.g.Sa();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",cD);try{return El(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}ZC.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function dD(a){jb.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new Oc;this.sessionId="";this.expiration=NaN;this.closed=new Ig;this.keyStatuses=new eD}pa(dD,jb);p=dD.prototype;
p.generateRequest=function(a,b){var c=this;this.h=new Ig;try{var d=this.l.createSession("video/mp4",Kb(b));this.i=d;this.sessionId=d.sessionId||"";this.j.o(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.Jc()?"license-request":"license-renewal").set("message",Lb(e.message));e=new U("message",e);c.dispatchEvent(e)});this.j.o(d,"webkitkeyadded",function(){c.g&&(fD(c,"usable"),c.g.resolve(),c.g=null)});this.j.o(d,"webkitkeyerror",
function(){var e=Error("EME PatchedMediaKeysApple key error");e.errorCode=c.i.error;if(null!=c.h)c.h.reject(e),c.h=null;else if(null!=c.g)c.g.reject(e),c.g=null;else switch(c.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:fD(c,"output-not-allowed");break;default:fD(c,"internal-error")}});fD(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};p.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
p.update=function(a){this.g=new Ig;try{this.i.update(Kb(a))}catch(b){this.g.reject(b)}return this.g};p.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Sa()}catch(a){this.closed.reject(a)}return this.closed};p.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function fD(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new U("keystatuseschange");a.dispatchEvent(b)}
function eD(){this.size=0;this.g=void 0}p=eD.prototype;p.Jc=function(){return this.g};p.forEach=function(a){this.g&&a(this.g,zg.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=zg.value();return this.g&&Jb(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};var XC="apple";mC(function(){window.HTMLVideoElement&&window.WebKitMediaKeys&&(navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||WC())});function gD(){}function hD(){if(window.MediaKeys){var a=Rb();MediaKeys.prototype.setServerCertificate&&a.Ce()||(MediaKeys.prototype.setServerCertificate=iD)}}function iD(){return Promise.resolve(!1)}jC.PatchedMediaKeysCert=gD;gD.install=hD;mC(hD);function jD(){}
function kD(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)lD="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=mD;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=nD;window.MediaKeys=oD;window.MediaKeySystemAccess=pD;window.shakaMediaKeysPolyfill=qD}}
function rD(a){var b=lD;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function mD(a,b){try{var c=new pD(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function nD(a){var b=this.mediaKeys;b&&b!=a&&sD(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&sD(a,this);return Promise.resolve()}jC.PatchedMediaKeysWebkit=jD;jD.install=kD;
function pD(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:f.initDataTypes,sessionTypes:["temporary"],label:f.label},h=!1;if(f.audioCapabilities)for(var k=t(f.audioCapabilities),
l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType.split(";")[0],this.g)&&(g.audioCapabilities.push(l),d=!0));if(f.videoCapabilities)for(k=t(f.videoCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType,this.g)&&(g.videoCapabilities.push(l),d=!0));h||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==f.persistentState&&(c?(g.persistentState="required",g.sessionTypes=["persistent-license"]):
d=!1);if(d){this.h=g;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";a=Error(c);a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}pD.prototype.createMediaKeys=function(){var a=new oD(this.g);return Promise.resolve(a)};pD.prototype.getConfiguration=function(){return this.h};function oD(a){this.l=a;this.h=null;this.g=new Oc;this.i=[];this.j=new Map}
function sD(a,b){a.h=b;a.g.Sa();var c=lD;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Lb(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=tD(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.Jc()?"licenserequest":"licenserenewal").set("message",d.message),d=new U("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){(d=tD(a,d.sessionId))&&d.ready()}),
a.g.o(b,c+"keyerror",function(d){var e=tD(a,d.sessionId);if(e){var f=Error("EME v0.1b key error"),g=d.errorCode;g.systemCode=d.systemCode;f.errorCode=g;!d.sessionId&&e.h?(45==d.systemCode&&(f.message="Unsupported session type."),e.h.reject(f),e.h=null):d.sessionId&&e.g?(e.g.reject(f),e.g=null):(f=d.systemCode,d.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?uD(e,"output-restricted"):1==f?uD(e,"expired"):uD(e,"internal-error"))}}))}
oD.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a&&"persistent-license"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");var b=this.h||document.createElement("video");b.src||(b.src="about:blank");a=new vD(b,this.l,a);this.i.push(a);return a};oD.prototype.setServerCertificate=function(){return Promise.resolve(!1)};oD.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};
function tD(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 vD(a,b,c){jb.call(this);this.j=a;this.m=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new Ig;this.keyStatuses=new wD}pa(vD,jb);p=vD.prototype;p.ready=function(){uD(this,"usable");this.g&&this.g.resolve();this.g=null};
function xD(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if("persistent-license"==a.l)if(c)var d=Kb($b("LOAD_SESSION|"+c));else{var e=$b("PERSISTENT|");d=kc(e,b)}else d=Kb(b)}catch(g){return Promise.reject(g)}a.h=new Ig;var f=rD("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new zf(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).X(.01)}return a.h}
function yD(a,b,c){if(a.g)a.g.then(function(){return yD(a,b,c)}).catch(function(){return yD(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=Wb(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=hc(e.keys[0].k);e=hc(e.keys[0].kid)}else d=Kb(c),e=null;var f=rD("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
function uD(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new U("keystatuseschange");a.dispatchEvent(b)}p.generateRequest=function(a,b){return xD(this,b,null)};p.load=function(a){return"persistent-license"==this.l?xD(this,null,a):Promise.reject(Error("Not a persistent session."))};p.update=function(a){var b=new Ig;yD(this,b,a);return b};
p.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=rD("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};p.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function wD(){this.size=0;this.g=void 0}p=wD.prototype;p.Jc=function(){return this.g};
p.forEach=function(a){this.g&&a(this.g,zg.value())};p.get=function(a){if(this.has(a))return this.g};p.has=function(a){var b=zg.value();return this.g&&Jb(a,b)?!0:!1};p.entries=function(){};p.keys=function(){};p.values=function(){};var lD="",qD="webkit";mC(kD);function zD(){}function AD(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=BD,Object.defineProperty(a,"disablePictureInPicture",{get:CD,set:DD,enumerable:!0,configurable:!0}),document.exitPictureInPicture=ED,document.addEventListener("webkitpresentationmodechanged",FD,!0))}}
function FD(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)}
function BD(){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 ED(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
function CD(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function DD(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}jC.PiPWebkit=zD;zD.install=AD;mC(AD);function GD(){}function HD(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=ID))}function ID(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}jC.RandomUUID=GD;GD.install=HD;mC(HD);function JD(){}function KD(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:LD})}function LD(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}jC.Symbol=JD;JD.install=KD;mC(KD);function MD(){}function ND(){for(var a=t([Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,Int8Array,Int16Array,Int32Array,Float32Array,Float64Array]),b=a.next();!b.done;b=a.next())b=b.value,b.prototype.indexOf||(b.prototype.indexOf=OD),b.prototype.lastIndexOf||(b.prototype.lastIndexOf=PD),b.prototype.includes||(b.prototype.includes=QD)}function OD(a,b){return Array.prototype.indexOf.call(this,a,b)}function PD(a,b){return Array.prototype.lastIndexOf.call(this,a,b)}
function QD(a,b){return-1!==this.indexOf(a,b)}jC.TypedArray=MD;MD.install=ND;mC(ND);function RD(){}function SD(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}jC.VideoPlayPromise=RD;RD.install=SD;mC(SD);function TD(){}function UD(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||"number"===typeof Gi().webkitDroppedFrameCount)&&(a.getVideoPlaybackQuality=VD)}}function VD(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}jC.VideoPlaybackQuality=TD;TD.install=UD;mC(UD);function WD(){}function XD(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=YD;else if(6==b)a=ZD;else{try{var c=!!YD(1,2,"")}catch(d){c=!1}c&&(a=YD)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function YD(a,b,c){return new window.TextTrackCue(a,b,c)}function ZD(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}jC.VTTCue=WD;WD.install=XD;mC(XD);function $D(a){jb.call(this);this.h=a;this.l=null;this.g=[];this.i=-1;this.j=null;this.m=new Oc}pa($D,jb);p=$D.prototype;p.destroy=function(){var a=this;return Q(function(b){if(1==b.g)return F(b,a.removeAllItems(),2);a.h=null;a.m&&(a.m.release(),a.m=null);jb.prototype.release.call(a);I(b)})};p.configure=function(a){this.l=a};p.getConfiguration=function(){return this.l};p.getCurrentItem=function(){return this.g.length&&0<=this.i&&this.i<this.g.length?this.g[this.i]:null};p.getCurrentItemIndex=function(){return this.i};
p.getItems=function(){return this.g.slice()};p.insertItems=function(a){this.g.push.apply(this.g,x(a));this.dispatchEvent(new U("itemsinserted"))};p.removeAllItems=function(){var a=this;return Q(function(b){switch(b.g){case 1:a.m.Sa();if(!(a.g.length&&0<=a.i)){b.A(2);break}return F(b,a.h.lc(),2);case 2:if(!a.j){b.A(4);break}if(a.j.Qf.s){b.A(5);break}return F(b,a.j.Qf.destroy(),5);case 5:a.j=null;case 4:a.g=[],a.i=-1,a.dispatchEvent(new U("itemsremoved")),I(b)}})};
p.playItem=function(a){var b=this,c,d,e,f,g,h,k,l,m,n,q,r,u,w;return Q(function(v){if(1==v.g){b.m.Sa();if(!b.g.length||a>=b.g.length)throw new V(2,7,7007);c=b.g[a];b.i!=a&&(b.i=a,b.dispatchEvent(new U("currentitemchanged")));d=b.h.h;e=b.l?b.l.preloadNextUrlWindow:0;0<e&&(f=!1,b.m.o(d,"timeupdate",function(){var y,z,A,B;return Q(function(D){switch(D.g){case 1:if(b.j||1>=b.g.length||f||b.h.T()||!d.duration)return D.return();y=b.h.xa().end-d.currentTime;if(isNaN(y)){D.A(0);break}if(!(y<=e)){D.A(0);break}z=
b.l&&b.l.repeatMode;A=null;b.i+1<b.g.length?A=b.g[b.i+1]:1==z&&(A=b.g[0]);if(!A){D.A(0);break}f=!0;B=null;ta(D,5);return F(D,b.h.preload(A.manifestUri,A.startTime,A.mimeType,A.config),7);case 7:B=D.h;wa(D,6);break;case 5:xa(D),B=null;case 6:b.j={item:A,Qf:B},f=!1,I(D)}})}));b.m.o(b.h,"complete",function(){var y=b.l&&b.l.repeatMode,z=!1;if(2==y)z=!0;else{var A=b.i+1;A<b.g.length?b.playItem(A):1==y&&(1==b.g.length?z=!0:b.playItem(0))}z&&(d.paused?(d.currentTime=b.h.xa().start,d.play()):b.m.o(d,"paused",
function(){d.currentTime=b.h.xa().start;d.play()}))});c.config&&(b.h.tj(),b.h.configure(c.config));g=c.manifestUri;b.j&&b.j.item==c&&b.j.Qf&&(g=b.j.Qf);return F(v,b.h.load(g,c.startTime,c.mimeType),2)}b.j=null;if(c.extraText)for(h=t(c.extraText),k=h.next();!k.done;k=h.next())l=k.value,l.mime?b.h.Ud(l.uri,l.language,l.kind,l.mime,l.codecs):b.h.Ud(l.uri,l.language,l.kind);if(c.extraThumbnail)for(m=t(c.extraThumbnail),n=m.next();!n.done;n=m.next())q=n.value,b.h.Ye(q);if(c.extraChapter)for(r=t(c.extraChapter),
u=r.next();!u.done;u=r.next())w=u.value,b.h.Xe(w.uri,w.language,w.mime);I(v)})};S("shaka.queue.QueueManager",$D);$D.prototype.playItem=$D.prototype.playItem;$D.prototype.removeAllItems=$D.prototype.removeAllItems;$D.prototype.insertItems=$D.prototype.insertItems;$D.prototype.getItems=$D.prototype.getItems;$D.prototype.getCurrentItemIndex=$D.prototype.getCurrentItemIndex;$D.prototype.getCurrentItem=$D.prototype.getCurrentItem;$D.prototype.getConfiguration=$D.prototype.getConfiguration;
$D.prototype.configure=$D.prototype.configure;$D.prototype.destroy=$D.prototype.destroy;gq=function(a){return new $D(a)};function aE(){}aE.prototype.parseInit=function(){};aE.prototype.setSequenceMode=function(){};aE.prototype.setManifestType=function(){};aE.prototype.parseMedia=function(a,b){var c=null,d=[];a=Wb(a).split(/\r?\n/);a=t(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=bE.exec(e))){var f=cE.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new oe(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};
S("shaka.text.LrcTextParser",aE);aE.prototype.parseMedia=aE.prototype.parseMedia;aE.prototype.setManifestType=aE.prototype.setManifestType;aE.prototype.setSequenceMode=aE.prototype.setSequenceMode;aE.prototype.parseInit=aE.prototype.parseInit;var bE=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,cE=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;of("application/x-subtitle-lrc",function(){return new aE});function dE(){}dE.prototype.parseInit=function(){};dE.prototype.setSequenceMode=function(){};dE.prototype.setManifestType=function(){};
dE.prototype.parseMedia=function(a,b,c,d){var e=Wb(a);a=[];if(""==e)return a;var f=Id(e,"tt",!0);if(!f)throw new V(2,2,2005,"Failed to parse TTML.");e=Sd(f,"body")[0];if(!e)return[];var g=Yd(f,eE,"frameRate"),h=Yd(f,eE,"subFrameRate"),k=Yd(f,eE,"frameRateMultiplier"),l=Yd(f,eE,"tickRate"),m=Yd(f,eE,"cellResolution"),n=f.attributes["xml:space"]||"default",q=Yd(f,fE,"extent");if("default"!=n&&"preserve"!=n)throw new V(2,2,2005,"Invalid xml:space value: "+n);n="default"==n;g=new gE(g,h,k,l);m=hE(m);
h=Sd(f,"metadata")[0];h=(h?h.children:[]).filter(function(w){return"\n"!=w});k=Sd(f,"style");f=Sd(f,"region");l=[];for(var r=t(f),u=r.next();!u.done;u=r.next())(u=iE(u.value,k,q))&&l.push(u);if(Pd(e,"p").length)throw new V(2,2,2001,"<p> can only be inside <div> in TTML");q=t(Pd(e,"div"));for(r=q.next();!r.done;r=q.next())if(Pd(r.value,"span").length)throw new V(2,2,2001,"<span> can only be inside <p> in TTML");if(b=jE(e,b,g,h,k,f,l,n,m,null,!1,c,d))b.backgroundColor||(b.backgroundColor="transparent"),
2025-06-19 04:02:44 +02:00
a.push(b);return a};
2025-06-27 11:02:59 +02:00
function jE(a,b,c,d,e,f,g,h,k,l,m,n,q){var r=l;if(Nd(a)){if(!m)return null;var u={tagName:"span",children:[Qd(a)],attributes:{},parent:null}}else u=a;for(var w=null,v=t(kE),y=v.next();!y.done&&!(w=lE(u,"backgroundImage",d,"#",y.value)[0]);y=v.next());v=null;y=Yd(u,kE,"backgroundImage");var z=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/;if(y&&z.test(y)){v=parseInt(y.split(":").pop(),10)-1;if(v>=q.length)return null;v=q[v]}else n&&y&&!y.startsWith("#")&&(z=new qb(n),y=new qb(y),(y=z.resolve(y).toString())&&
(v=y));if("p"==a.tagName||w||v)m=!0;a=m;y="default"==(u.attributes["xml:space"]||(h?"default":"preserve"));z=u.children.every(Nd);h=[];if(!z)for(var A=t(u.children),B=A.next();!B.done;B=A.next())(B=jE(B.value,b,c,d,e,f,g,y,k,u,m,n,q))&&h.push(B);d=null!=l;n=Qd(u);n=u.children.length&&n&&/\S/.test(n);A=u.attributes.begin||u.attributes.end||u.attributes.dur;if(!(A||n||"br"==u.tagName||0!=h.length||d&&!y))return null;q=mE(u,c);n=q.start;for(q=q.end;r&&r.tagName&&"tt"!=r.tagName;)q=nE(r,c,n,q),n=q.start,
q=q.end,r=r.parent;null==n&&(n=0);n+=b.periodStart;q=null==q?Infinity:q+b.periodStart;n=Math.max(n,b.segmentStart);q=Math.min(q,b.segmentEnd);if(!A&&0<h.length)for(n=Infinity,q=0,b=t(h),c=b.next();!c.done;c=b.next())c=c.value,n=Math.min(n,c.startTime),q=Math.max(q,c.endTime);if("br"==u.tagName)return e=new oe(n,q,""),e.lineBreak=!0,e;b="";z&&(b=cc(Qd(u)||""),y&&(b=b.replace(/\s+/g," ")));b=new oe(n,q,b);b.nestedCues=h;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=lE(u,"region",f,"")[0];if(u.attributes.region&&
k&&k.attributes["xml:id"]){var D=k.attributes["xml:id"];b.region=g.filter(function(G){return G.id==D})[0]}g=k;l&&d&&!u.attributes.region&&!u.attributes.style&&(g=lE(l,"region",f,"")[0]);oE(b,u,g,w,v,e,a,0==h.length);return b}
function iE(a,b,c){var d=new od,e=a.attributes["xml:id"];if(!e)return null;d.id=e;e=null;c&&(e=pE.exec(c)||qE.exec(c));c=e?Number(e[1]):null;e=e?Number(e[2]):null;var f,g=rE(a,b,"extent");if(g){var h=(f=pE.exec(g))||qE.exec(g);null!=h&&(d.width=Number(h[1]),d.height=Number(h[2]),f||(null!=c&&(d.width=100*d.width/c),null!=e&&(d.height=100*d.height/e)),d.widthUnits=f||null!=c?pd:0,d.heightUnits=f||null!=e?pd:0)}if(a=rE(a,b,"origin"))if(h=(f=pE.exec(a))||qE.exec(a),null!=h)d.viewportAnchorX=Number(h[1]),
d.viewportAnchorY=Number(h[2]),f?g||(d.width=100-d.viewportAnchorX,d.widthUnits=pd,d.height=100-d.viewportAnchorY,d.heightUnits=pd):(null!=e&&(d.viewportAnchorY=100*d.viewportAnchorY/e),null!=c&&(d.viewportAnchorX=100*d.viewportAnchorX/c)),d.viewportAnchorUnits=f||null!=c?pd:0;return d}function sE(a){var b=a.match(/rgba\(([^)]+)\)/);return b&&(b=b[1].split(","),4==b.length)?(b[3]=String(Number(b[3])/255),"rgba("+b.join(",")+")"):a}
function oE(a,b,c,d,e,f,g,h){g=g||h;"rtl"==tE(b,c,f,"direction",g)&&(a.direction="rtl");h=tE(b,c,f,"writingMode",g);"tb"==h||"tblr"==h?a.writingMode="vertical-lr":"tbrl"==h?a.writingMode="vertical-rl":"rltb"==h||"rl"==h?a.direction="rtl":h&&(a.direction=re);(h=tE(b,c,f,"textAlign",!0))?(a.positionAlign=uE.get(h),a.lineAlign=vE.get(h),a.textAlign=Pe[h.toUpperCase()]):a.textAlign=qe;if(h=tE(b,c,f,"displayAlign",!0))a.displayAlign=Qe[h.toUpperCase()];if(h=tE(b,c,f,"color",g))a.color=sE(h);if(h=tE(b,
c,f,"backgroundColor",g))a.backgroundColor=sE(h);if(h=tE(b,c,f,"border",g))a.border=h;if(h=tE(b,c,f,"fontFamily",g))switch(h){case "monospaceSerif":a.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case "proportionalSansSerif":a.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case "sansSerif":a.fontFamily="sans-serif";break;case "monospaceSansSerif":a.fontFamily="Consolas,monospace";break;case "proportionalSerif":a.fontFamily="serif";break;default:a.fontFamily=h.split(",").filter(function(k){return"default"!=
k}).join(",")}(h=tE(b,c,f,"fontWeight",g))&&"bold"==h&&(a.fontWeight=Me);h=tE(b,c,f,"wrapOption",g);a.wrapLine=h&&"noWrap"==h?!1:!0;(h=tE(b,c,f,"lineHeight",g))&&h.match(wE)&&(a.lineHeight=h);(h=tE(b,c,f,"fontSize",g))&&(h.match(wE)||h.match(xE))&&(a.fontSize=h);if(h=tE(b,c,f,"fontStyle",g))a.fontStyle=Se[h.toUpperCase()];d?(e=d.attributes.imageType||d.attributes.imagetype,h=d.attributes.encoding,d=Qd(d).trim(),"PNG"==e&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)):e&&(a.backgroundImage=
e);if(d=tE(b,c,f,"textOutline",g))d=d.split(" "),d[0].match(wE)?a.textStrokeColor=a.color:(a.textStrokeColor=sE(d[0]),d.shift()),d[0]&&d[0].match(wE)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=tE(b,c,f,"letterSpacing",g))&&d.match(wE)&&(a.letterSpacing=d);(d=tE(b,c,f,"linePadding",g))&&d.match(wE)&&(a.linePadding=d);if(d=tE(b,c,f,"opacity",g))a.opacity=parseFloat(d);(d=rE(c,f,"textDecoration"))&&yE(a,d);(d=zE(b,f,"textDecoration"))&&yE(a,d);if(d=tE(b,c,f,"textCombine",g))a.textCombineUpright=
d;switch(tE(b,c,f,"ruby",g)){case "container":a.rubyTag="ruby";break;case "text":a.rubyTag="rt"}}
function yE(a,b){b=t(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes(Oe)||a.textDecoration.push(Oe);break;case "noUnderline":a.textDecoration.includes(Oe)&&sd(a.textDecoration,Oe);break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&sd(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&sd(a.textDecoration,"overline")}}function tE(a,b,c,d,e){e=void 0===e?!0:e;return(a=zE(a,c,d))?a:e?rE(b,c,d):null}function rE(a,b,c){if(!a)return null;var d=Yd(a,fE,c);return d?d:AE(a,b,c)}function zE(a,b,c){var d=Yd(a,fE,c);return d?d:AE(a,b,c)}
function AE(a,b,c){a=lE(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=Xd(a[e],"urn:ebu:tt:style",c);f||(f=Yd(a[e],fE,c));f||(f=zE(a[e],b,c));f&&(d=f)}return d}function lE(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;!a&&!(a=e?Xd(g,e,b):g.attributes[b])&&(g=g.parent,g););if(b=a)for(b=t(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=t(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.attributes["xml:id"]==e){f.push(g);break}return f}
function nE(a,b,c,d){a=mE(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}}function mE(a,b){var c=BE(a.attributes.begin,b),d=BE(a.attributes.end,b);a=BE(a.attributes.dur,b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}}
function BE(a,b){var c=null;if(CE.test(a)){a=CE.exec(a);c=Number(a[1]);var d=Number(a[2]),e=Number(a[3]),f=Number(a[4]);f+=(Number(a[5])||0)/b.h;e+=f/b.frameRate;c=e+60*d+3600*c}else if(DE.test(a))c=EE(DE,a);else if(FE.test(a))c=EE(FE,a);else if(GE.test(a))a=GE.exec(a),c=Number(a[1])/b.frameRate;else if(HE.test(a))a=HE.exec(a),c=Number(a[1])/b.g;else if(IE.test(a))c=EE(IE,a);else if(a)throw new V(2,2,2001,"Could not parse cue time range in TTML");return c}
function EE(a,b){a=a.exec(b);return null==a||""==a[0]?null:(Number(a[4])||0)/1E3+(Number(a[3])||0)+60*(Number(a[2])||0)+3600*(Number(a[1])||0)}function hE(a){return a?(a=/^(\d+) (\d+)$/.exec(a))?{Wc:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null}S("shaka.text.TtmlTextParser",dE);dE.prototype.parseMedia=dE.prototype.parseMedia;dE.prototype.setManifestType=dE.prototype.setManifestType;dE.prototype.setSequenceMode=dE.prototype.setSequenceMode;dE.prototype.parseInit=dE.prototype.parseInit;
function gE(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]))}
var pE=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,xE=/^(\d{1,4}(?:\.\d+)?|100)%$/,wE=/^(\d+px|\d+em|\d*\.?\d+c)$/,qE=/^(\d+)px (\d+)px$/,CE=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,DE=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,FE=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d+)$/,GE=/^(\d*(?:\.\d*)?)f$/,HE=/^(\d*(?:\.\d*)?)t$/,IE=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),vE=(new Map).set("left",ve).set("center","center").set("right",
"end").set("start",ve).set("end","end"),uE=(new Map).set("left","line-left").set("center","center").set("right","line-right"),eE=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],fE=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],kE=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];of("application/ttml+xml",function(){return new dE});function JE(){this.g=new dE}JE.prototype.parseInit=function(a){var b=!1;(new lh).box("moov",qh).box("trak",qh).box("mdia",qh).box("minf",qh).box("stbl",qh).V("stsd",sh).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new V(2,2,2007);};JE.prototype.setSequenceMode=function(){};JE.prototype.setManifestType=function(){};
JE.prototype.parseMedia=function(a,b,c){var d=[],e=null,f=[],g=new Map,h=[];(new lh).box("moof",qh).box("traf",qh).V("tfhd",function(y){e=Ii(y.reader,y.flags).Zd}).V("trun",function(y){y=Li(y.reader,y.version,y.flags);y=t(y.Qh);for(var z=y.next();!z.done;z=y.next())h.push(z.value.sampleSize||e||0)}).V("subs",function(y){for(var z=y.reader,A=z.W(),B=-1,D=0;D<A;D++){var G=z.W();B+=G;G=z.Fa();for(var C=[],E=0;E<G;E++)1==y.version?C.push(z.W()):C.push(z.Fa()),z.aa(),z.aa(),z.W();g.set(B,C)}}).box("mdat",
vh(function(y){f.push(y)})).parse(a,!1);if(0==f.length)throw new V(2,2,2007);for(var k=kc.apply(dc,x(f)),l=0,m=0;m<h.length;m++){var n=Kb(k,l,h[m]);l+=h[m];var q=g.get(m);if(q&&q.length){n=Kb(n,0,q[0]);for(var r=[],u=q[0],w=1;w<q.length;w++){var v=Kb(a,u,q[w]);v=ec(v);r.push("data:image/png;base64,"+v);u+=q[w]}d=d.concat(this.g.parseMedia(n,b,c,r))}else d=d.concat(this.g.parseMedia(n,b,c,[]))}return d};S("shaka.text.Mp4TtmlParser",JE);JE.prototype.parseMedia=JE.prototype.parseMedia;
JE.prototype.setManifestType=JE.prototype.setManifestType;JE.prototype.setSequenceMode=JE.prototype.setSequenceMode;JE.prototype.parseInit=JE.prototype.parseInit;of('application/mp4; codecs="stpp"',function(){return new JE});of('application/mp4; codecs="stpp.ttml"',function(){return new JE});of('application/mp4; codecs="stpp.ttml.im1i"',function(){return new JE});of('application/mp4; codecs="stpp.ttml.im1t"',function(){return new JE});of('application/mp4; codecs="stpp.ttml.im2i"',function(){return new JE});
of('application/mp4; codecs="stpp.ttml.im2t"',function(){return new JE});of('application/mp4; codecs="stpp.ttml.etd1"',function(){return new JE});of('application/mp4; codecs="stpp.ttml.etd1|im1t"',function(){return new JE});of('application/mp4; codecs="stpp.ttml.im1t|etd1"',function(){return new JE});of('application/mp4; codecs="stpp.TTML.im1t"',function(){return new JE});function KE(){this.g="UNKNOWN"}KE.prototype.parseInit=function(){};KE.prototype.setSequenceMode=function(){};KE.prototype.setManifestType=function(a){this.g=a};
KE.prototype.parseMedia=function(a,b){a=Wb(a);a=a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var c=a.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(c[0]))throw new V(2,2,2E3);a=b.vttOffset;if("HLS"==this.g)if(c[0].includes("X-TIMESTAMP-MAP")){var d=c[0];a=d.match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m);d=d.match(/MPEGTS:(\d+)/m);if(!a||!d)throw new V(2,2,2E3);a=Cd(a[1]);if(null==a)throw new V(2,2,2E3);d=Number(d[1]);for(var e=b.segmentStart-b.periodStart;95443.7176888889<=e;)e-=95443.7176888889,
d+=8589934592;a=b.periodStart+d/9E4-a}else b.periodStart&&b.vttOffset==b.periodStart&&(a=0);b=[];d=t(c[0].split("\n"));for(e=d.next();!e.done;e=d.next())if(e=e.value,/^Region:/.test(e)){e=new vd(e);var f=new od;zd(e);wd(e);for(var g=zd(e);g;){var h=f,k=g;(g=/^id=(.*)$/.exec(k))?h.id=g[1]:(g=/^width=(\d{1,2}|100)%$/.exec(k))?h.width=Number(g[1]):(g=/^lines=(\d+)$/.exec(k))?(h.height=Number(g[1]),h.heightUnits=2):(g=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.regionAnchorX=Number(g[1]),
h.regionAnchorY=Number(g[2])):(g=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.viewportAnchorX=Number(g[1]),h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up");wd(e);g=zd(e)}b.push(f)}d=new Map;De(d);e=[];c=t(c.slice(1));for(f=c.next();!f.done;f=c.next()){f=f.value.split("\n");if((1!=f.length||f[0])&&!/^NOTE($|[ \t])/.test(f[0])&&"STYLE"==f[0]){h=[];g=-1;for(k=1;k<f.length;k++)f[k].includes("::cue")&&(h.push([]),g=h.length-1),-1!=g&&(h[g].push(f[k]),f[k].includes("}")&&
(g=-1));h=t(h);for(g=h.next();!g.done;g=h.next()){var l=g.value;g="global";(k=l[0].match(/\((.*)\)/))&&(g=k.pop());k=l.slice(1,-1);l[0].includes("}")&&(l=/\{(.*?)\}/.exec(l[0]))&&(k=l[1].split(";"));(l=d.get(g))||(l=new oe(0,0,""));for(var m=!1,n=0;n<k.length;n++){var q=/^\s*([^:]+):\s*(.*)/.exec(k[n]);if(q){var r=q[2].trim().replace(";","");switch(q[1].trim()){case "background-color":case "background":m=!0;l.backgroundColor=r;break;case "color":m=!0;l.color=r;break;case "font-family":m=!0;l.fontFamily=
r;break;case "font-size":m=!0;l.fontSize=r;break;case "font-weight":if(700<=parseInt(r,10)||"bold"==r)m=!0,l.fontWeight=Me;break;case "font-style":switch(r){case "normal":m=!0;l.fontStyle=ye;break;case "italic":m=!0;l.fontStyle=Ne;break;case "oblique":m=!0,l.fontStyle="oblique"}break;case "opacity":m=!0;l.opacity=parseFloat(r);break;case "text-combine-upright":m=!0;l.textCombineUpright=r;break;case "text-shadow":m=!0;l.textShadow=r;break;case "white-space":m=!0,l.wrapLine="noWrap"!=r}}}m&&d.set(g,
l)}}l=f;m=a;if(1==l.length&&!l[0]||/^NOTE($|[ \t])/.test(l[0])||"STYLE"==l[0]||"REGION"==l[0])f=null;else if(f=null,l[0].includes("--\x3e")||(f=l[0],l.splice(0,1)),h=new vd(l[0]),g=Ad(h),n=xd(h,/[ \t]+--\x3e[ \t]+/g),k=Ad(h),null==g||null==n||null==k)ab("Failed to parse VTT time code. Cue skipped:",f,l),f=null;else{g+=m;k+=m;m=l.slice(1).join("\n").trim();d.has("global")?(l=d.get("global").clone(),l.startTime=g,l.endTime=k,l.payload=m):l=new oe(g,k,m);wd(h);for(g=zd(h);g;)LE(l,g,b),wd(h),g=zd(h);
Be(l,d);null!=f&&(l.id=f);f=l}f&&e.push(f)}return e};
function LE(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=qe:a.textAlign=Pe[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==
b||"end"==b?"line-right":"center"==b||"middle"==b?"center":pe);else if(d=/^region:(.*)$/.exec(b)){if(b=ME(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=Re[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=ue,a.line=Number(c[1]),c[2]&&(a.lineAlign=Re[c[2].toUpperCase()])}
function ME(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}S("shaka.text.VttTextParser",KE);KE.prototype.parseMedia=KE.prototype.parseMedia;KE.prototype.setManifestType=KE.prototype.setManifestType;KE.prototype.setSequenceMode=KE.prototype.setSequenceMode;KE.prototype.parseInit=KE.prototype.parseInit;of("text/vtt",function(){return new KE});of('text/vtt; codecs="vtt"',function(){return new KE});of('text/vtt; codecs="wvtt"',function(){return new KE});function NE(){this.g=null}NE.prototype.parseInit=function(a){var b=this,c=!1;(new lh).box("moov",qh).box("trak",qh).box("mdia",qh).V("mdhd",function(d){d=Ki(d.reader,d.version);b.g=d.timescale}).box("minf",qh).box("stbl",qh).V("stsd",sh).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new V(2,2,2008);if(!c)throw new V(2,2,2008);};NE.prototype.setSequenceMode=function(){};NE.prototype.setManifestType=function(){};
NE.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new V(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new lh).box("moof",qh).box("traf",qh).V("tfdt",function(A){g=!0;c=Ji(A.reader,A.version).baseMediaDecodeTime}).V("tfhd",function(A){l=Ii(A.reader,A.flags).Yd}).V("trun",function(A){h=!0;d=Li(A.reader,A.version,A.flags).Qh}).box("mdat",vh(function(A){k=!0;e=A})).parse(a,!1);if(!k&&!g&&!h)throw new V(2,2,2008);a=c;for(var m=new ih(e,0),n=t(d),q=n.next();!q.done;q=n.next()){q=
q.value;var r=q.Rh||l,u=q.Xf?c+q.Xf:a;a=u+(r||0);var w=0;do{var v=m.W();w+=v;var y=m.W(),z=null;"vttc"==ph(y)?8<v&&(z=m.Xb(v-8)):m.skip(v-8);r&&z&&(v=OE(z,b.periodStart+u/this.g,b.periodStart+a/this.g),f.push(v))}while(q.sampleSize&&w<q.sampleSize)}return f.filter(Cf)};function OE(a,b,c){var d,e,f;(new lh).box("payl",vh(function(g){d=Wb(g)})).box("iden",vh(function(g){e=Wb(g)})).box("sttg",vh(function(g){f=Wb(g)})).parse(a);return d?PE(d,e,f,b,c):null}
function PE(a,b,c,d,e){a=new oe(d,e,a);Be(a);b&&(a.id=b);if(c)for(b=new vd(c),c=zd(b);c;)LE(a,c,[]),wd(b),c=zd(b);return a}S("shaka.text.Mp4VttParser",NE);NE.prototype.parseMedia=NE.prototype.parseMedia;NE.prototype.setManifestType=NE.prototype.setManifestType;NE.prototype.setSequenceMode=NE.prototype.setSequenceMode;NE.prototype.parseInit=NE.prototype.parseInit;of('application/mp4; codecs="wvtt"',function(){return new NE});function QE(){}QE.prototype.parseInit=function(){};QE.prototype.setSequenceMode=function(){};QE.prototype.setManifestType=function(){};QE.prototype.parseMedia=function(a){var b=Wb(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=t(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new vd(c[0]),e=Ad(d),f=xd(d,/,/g);d=Ad(d);if(null==e||null==f||null==d)throw new V(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new oe(e,d,c.slice(1).join("\n").trim()))}return a};
S("shaka.text.SbvTextParser",QE);QE.prototype.parseMedia=QE.prototype.parseMedia;QE.prototype.setManifestType=QE.prototype.setManifestType;QE.prototype.setSequenceMode=QE.prototype.setSequenceMode;QE.prototype.parseInit=QE.prototype.parseInit;of("text/x-subviewer",function(){return new QE});function RE(){this.g=new KE}RE.prototype.parseInit=function(){};RE.prototype.setSequenceMode=function(){};RE.prototype.setManifestType=function(){};RE.prototype.parseMedia=function(a,b,c){a=Wb(a);a=SE(a);a=Kb($b(a));return this.g.parseMedia(a,b,c,[])};
function SE(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=t(a.split("\n\n"));for(var c=a.next();!c.done;c=a.next())c=c.value.split(/\n/),c[0].match(/\d+/)&&c.shift(),c[0]=c[0].replace(/,/g,"."),b+=c.join("\n").replace(/{b}/g,"<b>").replace(/{\/b}/g,"</b>").replace(/{i}/g,"<i>").replace(/{\/i}/g,"</i>").replace(/{u}/g,"<u>").replace(/{\/u}/g,"</u>")+"\n\n";return b}S("shaka.text.SrtTextParser",RE);RE.srt2webvtt=SE;RE.prototype.parseMedia=RE.prototype.parseMedia;
RE.prototype.setManifestType=RE.prototype.setManifestType;RE.prototype.setSequenceMode=RE.prototype.setSequenceMode;RE.prototype.parseInit=RE.prototype.parseInit;of("text/srt",function(){return new RE});function TE(){}TE.prototype.parseInit=function(){};TE.prototype.setSequenceMode=function(){};TE.prototype.setManifestType=function(){};
TE.prototype.parseMedia=function(a){var b="",c="",d=null,e=null;e=Wb(a).split(/\r?\n\s*\r?\n/);a=t(e);for(e=a.next();!e.done;e=a.next()){var f=e.value;e=f;if(f=UE.exec(f))d=f[1],e=f[2];"V4 Styles"==d||"V4+ Styles"==d?(b=e,b=c?b+("\n"+e):e):"Events"==d&&(c=c?c+("\n"+e):e)}d=[];e=null;b=t(b.split(/\r?\n/));for(a=b.next();!a.done;a=b.next())if(a=a.value,!/^\s*;/.test(a)&&(f=VE.exec(a)))if(a=f[1].trim(),f=f[2].trim(),"Format"==a)e=f.split(WE);else if("Style"==a){a=f.split(WE);f={};for(var g=0;g<e.length&&
g<a.length;g++)f[e[g]]=a[g];d.push(f)}e=[];b=null;c=t(c.split(/\r?\n/));f=c.next();for(a={};!f.done;a={Lj:void 0},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=VE.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(WE);else if("Dialogue"==f){g=g.split(WE);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=XE(f.Start);var k=XE(f.End);g=new oe(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));a.Lj=f.Style;(a=d.find(function(l){return function(m){return m.Name==
l.Lj}}(a)))&&YE(g,a);e.push(g)}return e};
function YE(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=ZE(c))a.color=c;if(c=b.BackColour)if(c=ZE(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=Me);b.Italic&&(a.fontStyle=Ne);b.Underline&&a.textDecoration.push(Oe);if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=we;a.textAlign="start";break;case 2:a.displayAlign=we;a.textAlign=qe;break;case 3:a.displayAlign=we;a.textAlign="end";break;case 5:a.displayAlign=
"before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=qe;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=qe;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)}function ZE(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 XE(a){a=$E.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}S("shaka.text.SsaTextParser",TE);TE.prototype.parseMedia=TE.prototype.parseMedia;TE.prototype.setManifestType=TE.prototype.setManifestType;TE.prototype.setSequenceMode=TE.prototype.setSequenceMode;TE.prototype.parseInit=TE.prototype.parseInit;var UE=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,VE=/^\s*([^:]+):\s*(.*)/,WE=/\s*,\s*/,$E=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;
of("text/x-ssa",function(){return new TE});function aF(a,b){var c=a[b+1]&1?7:9;return b+c<=a.length&&(a=((a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5)-c,0<a)?{ie:c,wa:a}:null}function bF(a,b){var c=[96E3,88200,64E3,48E3,44100,32E3,24E3,22050,16E3,12E3,11025,8E3,7350],d=(a[b+2]&60)>>>2;if(d>c.length-1)return null;var e=((a[b+2]&192)>>>6)+1,f=(a[b+2]&1)<<2;f|=(a[b+3]&192)>>>6;return{sampleRate:c[d],channelCount:f,codec:"mp4a.40."+e}}
function cF(a,b){if(b+1<a.length&&255===a[b]&&240===(a[b+1]&246)){var c=a[b+1]&1?7:9;if(b+c>=a.length)return!1;var d=(a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5;if(d<=c)return!1;b+=d;return b===a.length||b+1<a.length&&255===a[b]&&240===(a[b+1]&246)}return!1}
function dF(a,b){switch(a){case "mp4a.40.2":if(1===b)return new Uint8Array([0,200,0,128,35,128]);if(2===b)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,
2,0,178,0,32,8,224]);break;default:if(1===b)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===b||3===b)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null};function eF(a){this.j=a;this.h=0;this.g=new Map;this.i=null}p=eF.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/aac"==a.toLowerCase().split(";")[0]?bd(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/aac"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="'+(lf(b)||"mp4a.40.2")+'"':b};p.getOriginalMimeType=function(){return this.j};
p.transmux=function(a,b,c,d){for(var e=Kb(a),f=Zj(e),g=f.length;g<e.length&&!cF(e,g);g++);a=1E3*c.endTime;f=Yj(f);f.length&&c&&(f=f.find(function(m){return"com.apple.streaming.transportStreamTimestamp"===m.description}))&&(a=f.data);f=bF(e,g);if(!f)return Promise.reject(new V(2,3,3018,c?c.S()[0]:null));b.audioSamplingRate=f.sampleRate;b.channelsCount=f.channelCount;for(var h=[];g<e.length;){var k=aF(e,g);if(!k)return Promise.reject(new V(2,3,3018,c?c.S()[0]:null));var l=k.ie+k.wa;g+l<=e.length&&h.push({data:e.subarray(g+
k.ie,g+l),size:k.wa,duration:1024,xb:0,flags:{zb:0,sb:0,rb:0,ob:0,pb:2,Ab:0}});g+=l}e=f.sampleRate;a=Math.floor(a*e/1E3);d={id:b.id,type:"audio",codecs:f.codec,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,Eb:[],Ma:new Uint8Array([]),Wa:new Uint8Array([]),bb:0,eb:0,data:{Yb:this.h,baseMediaDecodeTime:a,Cb:h},stream:b};d=new Ri([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=Xi(d),this.g.set(c,b));c=this.i!==b;d=oj(d);this.i=b;this.h++;return c?(b=kc(b,d),Promise.resolve(b)):
Promise.resolve(d)};S("shaka.transmuxer.AacTransmuxer",eF);eF.prototype.transmux=eF.prototype.transmux;eF.prototype.getOriginalMimeType=eF.prototype.getOriginalMimeType;eF.prototype.convertCodecs=eF.prototype.convertCodecs;eF.prototype.isSupported=eF.prototype.isSupported;eF.prototype.destroy=eF.prototype.destroy;Ue("audio/aac",function(){return new eF("audio/aac")},$e);function fF(a,b){if(b+8>a.length||11!==a[b]||119!==a[b+1])return null;var c=a[b+4]>>6;if(3<=c)return null;var d=a[b+4]&63,e=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,
1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*d+c];if(b+e>a.length)return null;var f=a[b+6]>>5,g=0;2===f?g+=2:(f&1&&1!==f&&(g+=2),f&4&&(g+=2));g=(a[b+6]<<8|a[b+7])>>12-g&1;var h=a[b+5]&7;a=new Uint8Array([c<<6|a[b+5]>>3<<1|h>>2,(h&3)<<6|f<<3|g<<2|d>>4,d<<4&224]);return{sampleRate:[48E3,44100,32E3][c],channelCount:[2,1,2,3,3,4,4,5][f]+g,Ma:a,wa:e}}
function gF(a,b){if(11===a[b]&&119===a[b+1]){var c=0,d=5;b+=d;for(var e,f;0<d;){f=a[b];var g=Math.min(d,8),h=8-g;e=4278190080>>>24+h<<h;e=(f&e)>>h;c=c?c<<g|e:e;b+=1;d-=g}if(16>c)return!0}return!1};function hF(a){this.j=a;this.h=0;this.g=new Map;this.i=null}p=hF.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/ac3"==a.toLowerCase().split(";")[0]?bd(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/ac3"==b.toLowerCase().split(";")[0]?Rb().we()?'audio/mp4; codecs="ec-3"':'audio/mp4; codecs="ac-3"':b};p.getOriginalMimeType=function(){return this.j};
p.transmux=function(a,b,c,d){a=Kb(a);for(var e=Zj(a),f=e.length;f<a.length&&!gF(a,f);f++);var g=1E3*c.endTime;e=Yj(e);e.length&&c&&(e=e.find(function(m){return"com.apple.streaming.transportStreamTimestamp"===m.description}))&&(g=e.data);e=0;for(var h=new Uint8Array([]),k=[];f<a.length;){var l=fF(a,f);if(!l)return Promise.reject(new V(2,3,3018,c?c.S()[0]:null));b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;e=l.sampleRate;h=l.Ma;k.push({data:a.subarray(f,f+l.wa),size:l.wa,duration:1536,
xb:0,flags:{zb:0,sb:0,rb:0,ob:0,pb:2,Ab:0}});f+=l.wa}a=Math.floor(g*e/1E3);d={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,Eb:[],Ma:h,Wa:new Uint8Array([]),bb:0,eb:0,data:{Yb:this.h,baseMediaDecodeTime:a,Cb:k},stream:b};d=new Ri([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=Xi(d),this.g.set(c,b));c=this.i!==b;d=oj(d);this.i=b;this.h++;return c?(b=kc(b,d),Promise.resolve(b)):Promise.resolve(d)};S("shaka.transmuxer.Ac3Transmuxer",hF);
hF.prototype.transmux=hF.prototype.transmux;hF.prototype.getOriginalMimeType=hF.prototype.getOriginalMimeType;hF.prototype.convertCodecs=hF.prototype.convertCodecs;hF.prototype.isSupported=hF.prototype.isSupported;hF.prototype.destroy=hF.prototype.destroy;Ue("audio/ac3",function(){return new hF("audio/ac3")},$e);function iF(a,b){if(b+8>a.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new bk(a.subarray(b+2));dk(c,2);dk(c,3);var d=ek(c,11)+1<<1,e=ek(c,2);if(3==e){e=ek(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=ek(c,2);var g=ek(c,3),h=ek(c,1);c=ek(c,5);if(b+d>a.byteLength)return null;a=Math.floor(d*e/(16*[1,2,3,6][f]));a=new Uint8Array([(a&8160)>>5,(a&31)<<3,e<<6|c<<1|0,0|g<<1|h<<0,0]);return{sampleRate:e,channelCount:[2,1,2,3,3,4,4,5][g]+h,Ma:a,wa:d}};function jF(a){this.j=a;this.h=0;this.g=new Map;this.i=null}p=jF.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?bd(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b};p.getOriginalMimeType=function(){return this.j};
p.transmux=function(a,b,c,d){a=Kb(a);for(var e=Zj(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=Yj(e);e.length&&c&&(e=e.find(function(m){return"com.apple.streaming.transportStreamTimestamp"===m.description}))&&(g=e.data);e=0;for(var h=new Uint8Array([]),k=[];f<a.length;){var l=iF(a,f);if(!l)return Promise.reject(new V(2,3,3018,c?c.S()[0]:null));b.audioSamplingRate=l.sampleRate;b.channelsCount=l.channelCount;e=l.sampleRate;h=l.Ma;k.push({data:a.subarray(f,f+l.wa),
size:l.wa,duration:1536,xb:0,flags:{zb:0,sb:0,rb:0,ob:0,pb:2,Ab:0}});f+=l.wa}a=Math.floor(g*e/1E3);d={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,Eb:[],Ma:h,Wa:new Uint8Array([]),bb:0,eb:0,data:{Yb:this.h,baseMediaDecodeTime:a,Cb:k},stream:b};d=new Ri([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=Xi(d),this.g.set(c,b));c=this.i!==b;d=oj(d);this.i=b;this.h++;return c?(b=kc(b,d),Promise.resolve(b)):Promise.resolve(d)};
S("shaka.transmuxer.Ec3Transmuxer",jF);jF.prototype.transmux=jF.prototype.transmux;jF.prototype.getOriginalMimeType=jF.prototype.getOriginalMimeType;jF.prototype.convertCodecs=jF.prototype.convertCodecs;jF.prototype.isSupported=jF.prototype.isSupported;jF.prototype.destroy=jF.prototype.destroy;Ue("audio/ec3",function(){return new jF("audio/ec3")},$e);function kF(a){if(!a.length)return null;var b=a.find(function(w){return 7==w.type});a=a.find(function(w){return 8==w.type});if(!b||!a)return null;var c=new bk(b.data),d=kk(c);kk(c);kk(c);gk(c);if(lF.includes(d)&&(d=hk(c),3===d&&dk(c,1),gk(c),gk(c),dk(c,1),jk(c))){d=3!==d?8:12;for(var e=0;e<d;e++)jk(c)&&(6>e?lk(c,16):lk(c,64))}gk(c);d=hk(c);if(0===d)hk(c);else if(1===d)for(dk(c,1),gk(c),gk(c),d=hk(c),e=0;e<d;e++)gk(c);gk(c);dk(c,1);var f=hk(c),g=hk(c),h=ek(c,1);0===h&&dk(c,1);dk(c,1);var k=0,l=0,m=
0,n=0;jk(c)&&(k=hk(c),l=hk(c),m=hk(c),n=hk(c));e=d=1;if(jk(c)&&jk(c)){var q=kk(c),r=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],u=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];0<q&&16>=q?(d=r[q-1],e=u[q-1]):255===q&&(d=ek(c,16),e=ek(c,16))}c=(2-h)*(g+1)*16-2*m-2*n;f=16*(f+1)-2*k-2*l;k=[];b=b.fullData;k.push(b.byteLength>>>8&255);k.push(b.byteLength&255);k=k.concat.apply(k,x(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,x(a));a=new Uint8Array([1,
k[3],k[4],k[5],255,225].concat(k,[1],b));return{height:c,width:f,Wa:a,bb:d,eb:e}}
function mF(a){function b(u){e={data:new Uint8Array([]),frame:!1,isKeyframe:!1,pts:u.pts,dts:u.dts,nalus:[]}}function c(){if(e&&e.nalus.length&&e.frame){for(var u=[],w=t(e.nalus),v=w.next();!v.done;v=w.next()){v=v.value;var y=v.fullData.byteLength,z=new Uint8Array(4);z[0]=y>>24&255;z[1]=y>>16&255;z[2]=y>>8&255;z[3]=y&255;u.push(z);u.push(v.fullData)}e.data=kc.apply(dc,x(u));d.push(e)}}for(var d=[],e=null,f=!1,g=0;g<a.length;g++){var h=a[g],k=h.nalus,l=!1;e&&k.length&&!f&&(c(),b(h));k=t(h.nalus);for(var m=
k.next();!m.done;m=k.next()){m=m.value;var n=!1;switch(m.type){case 1:var q=!1;n=!0;var r=m.data;l&&4<r.length&&(r=mk(new bk(r)),2===r||4===r||7===r||9===r)&&(q=!0);q&&e&&e.frame&&!e.isKeyframe&&(c(),e=null);e||b(h);e.frame=!0;e.isKeyframe=q;break;case 5:n=!0;e&&e.frame&&!e.isKeyframe&&(c(),e=null);e||b(h);e.frame=!0;e.isKeyframe=!0;break;case 6:n=!0;break;case 7:l=n=!0;break;case 8:n=!0;break;case 9:f=n=!0;e&&e.frame&&(c(),e=null);e||b(h);break;case 12:n=!0;break;default:n=!1}e&&n&&e.nalus.push(m)}}c();
return d}var lF=[100,110,122,244,44,83,86,118,128,138,139,134];function nF(a){if(!a.length)return null;var b=a.find(function(g){return 32==g.type}),c=a.find(function(g){return 33==g.type}),d=a.find(function(g){return 34==g.type});if(!b||!c||!d)return null;var e=oF(b.fullData);a=pF(c.fullData);var f=qF(d.fullData);b=rF(b.fullData,c.fullData,d.fullData,{Dh:e.Dh,ii:e.ii,bh:a.bh,dh:a.dh,Wg:a.Wg,ah:a.ah,Xg:a.Xg,Yg:a.Yg,Zg:a.Zg,$g:a.$g,Qg:a.Qg,Rg:a.Rg,Sg:a.Sg,Tg:a.Tg,Ug:a.Ug,Vg:a.Vg,Ig:a.Ig,Gf:a.Gf,Gg:a.Gg,Cg:a.Cg,Bg:a.Bg,Fh:f.Fh});return{height:a.height,width:a.width,
Wa:b,bb:a.bm,eb:a.am}}function oF(a){var b=new bk(a,!0);kk(b);kk(b);ek(b,4);ek(b,2);ek(b,6);a=ek(b,3);b=jk(b);return{Dh:a+1,ii:b}}
function pF(a){a=new bk(a,!0);kk(a);kk(a);var b=0,c=0,d=0,e=0;ek(a,4);var f=ek(a,3);jk(a);for(var g=ek(a,2),h=ek(a,1),k=ek(a,5),l=kk(a),m=kk(a),n=kk(a),q=kk(a),r=kk(a),u=kk(a),w=kk(a),v=kk(a),y=kk(a),z=kk(a),A=kk(a),B=[],D=[],G=0;G<f;G++)B.push(jk(a)),D.push(jk(a));if(0<f)for(G=f;8>G;G++)ek(a,2);for(G=0;G<f;G++)B[G]&&ek(a,88),D[G]&&kk(a);hk(a);B=hk(a);3==B&&ek(a,1);D=hk(a);G=hk(a);jk(a)&&(b+=hk(a),c+=hk(a),d+=hk(a),e+=hk(a));var C=hk(a),E=hk(a),H=hk(a);if(jk(a))for(var K=0;K<=f;K++)hk(a),hk(a),hk(a);
else hk(a),hk(a),hk(a);hk(a);hk(a);hk(a);hk(a);hk(a);hk(a);if(jk(a)&&jk(a))for(K=0;4>K;K++)for(var J=0;J<(3===K?2:6);J++)if(jk(a)){var L=Math.min(64,1<<4+(K<<1));1<K&&ik(a);for(var N=0;N<L;N++)ik(a)}else hk(a);jk(a);jk(a);jk(a)&&(kk(a),hk(a),hk(a),jk(a));K=hk(a);for(L=J=0;L<K;L++)if(N=!1,0!==L&&(N=jk(a)),N){L===K&&hk(a);jk(a);hk(a);for(var O=N=0;O<=J;O++){var M=jk(a),P=!1;M||(P=jk(a));(M||P)&&N++}J=N}else{O=hk(a);N=hk(a);J=O+N;for(M=0;M<O;M++)hk(a),jk(a);for(O=0;O<N;O++)hk(a),jk(a)}if(jk(a))for(K=
hk(a),J=0;J<K;J++){for(L=0;L<H+4;L++)ek(a,1);ek(a,1)}K=H=1;J=0;jk(a);jk(a);if(jk(a)){jk(a)&&(L=kk(a),N=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],O=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1],0<L&&16>=L?(H=N[L-1],K=O[L-1]):255===L&&(H=ek(a,16),K=ek(a,16)));jk(a)&&jk(a);jk(a)&&(ek(a,3),jk(a),jk(a)&&(kk(a),kk(a),kk(a)));jk(a)&&(hk(a),hk(a));jk(a);jk(a);jk(a);if(L=jk(a))hk(a),hk(a),hk(a),hk(a);if(jk(a)&&(ek(a,32),ek(a,32),jk(a)&&hk(a),jk(a))){O=!1;L=jk(a);N=jk(a);if(L||N){if(O=jk(a))kk(a),ek(a,
5),jk(a),ek(a,5);ek(a,4);ek(a,4);O&&ek(a,4);ek(a,5);ek(a,5);ek(a,5)}for(M=0;M<=f;M++){var R=!0;P=1;jk(a)||(R=jk(a));var T=!1;R?hk(a):T=jk(a);T||(P=hk(a)+1);if(L){for(R=0;R<P;R++)hk(a),hk(a),O&&(hk(a),hk(a));jk(a)}if(N){for(R=0;R<P;R++)hk(a),hk(a),O&&(hk(a),hk(a));jk(a)}}}jk(a)&&(jk(a),jk(a),jk(a),J=hk(a),hk(a),hk(a),hk(a),hk(a))}return{Wg:A,bh:g,dh:h,ah:k,Xg:l,Yg:m,Zg:n,$g:q,Qg:r,Rg:u,Sg:w,Tg:v,Ug:y,Vg:z,Gf:J,Ig:0,Gg:B,Cg:C,Bg:E,width:D-(b+c)*(1===B||2===B?2:1),height:G-(d+e)*(1===B?2:1),bm:H,am:K}}
function qF(a){var b=new bk(a,!0);kk(b);kk(b);hk(b);hk(b);jk(b);jk(b);ek(b,3);jk(b);jk(b);hk(b);hk(b);ik(b);jk(b);jk(b);jk(b)&&hk(b);ik(b);ik(b);jk(b);jk(b);jk(b);jk(b);a=jk(b);b=jk(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{Fh:c}}
function rF(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.bh&3)<<6|(d.dh?1:0)<<5|d.ah&31;e[2]=d.Xg;e[3]=d.Yg;e[4]=d.Zg;e[5]=d.$g;e[6]=d.Qg;e[7]=d.Rg;e[8]=d.Sg;e[9]=d.Tg;e[10]=d.Ug;e[11]=d.Vg;e[12]=d.Wg;e[13]=240|(d.Gf&3840)>>8;e[14]=d.Gf&255;e[15]=252|d.Fh&3;e[16]=252|d.Gg&3;e[17]=248|d.Cg&7;e[18]=248|d.Bg&7;e[19]=0;e[20]=0;e[21]=(d.Ig&3)<<6|(d.Dh&7)<<3|(d.ii?1:0)<<2|3;e[22]=3;e[23]=160;e[24]=0;e[25]=1;e[26]=(a.byteLength&65280)>>8;e[27]=(a.byteLength&
255)>>0;e.set(a,28);e[23+(5+a.byteLength)]=161;e[a.byteLength+29]=0;e[a.byteLength+30]=1;e[a.byteLength+31]=(b.byteLength&65280)>>8;e[a.byteLength+32]=(b.byteLength&255)>>0;e.set(b,a.byteLength+33);e[23+(a.byteLength+10+b.byteLength)]=162;e[a.byteLength+10+b.byteLength+24]=0;e[a.byteLength+10+b.byteLength+25]=1;e[a.byteLength+10+b.byteLength+26]=(c.byteLength&65280)>>8;e[a.byteLength+10+b.byteLength+27]=(c.byteLength&255)>>0;e.set(c,a.byteLength+10+b.byteLength+28);return e};function sF(a,b){var c=a[b+1]>>3&3,d=a[b+1]>>1&3,e=a[b+2]>>4&15,f=a[b+2]>>2&3;if(1!==c&&0!==e&&15!==e&&3!==f){var g=a[b+3]>>6;e=1E3*tF[14*(3===c?3-d:3===d?3:4)+e-1];f=uF[3*(3===c?0:2===c?1:2)+f];c=vF[c][d];var h=wF[d],k=Math.floor(c*e/f+(a[b+2]>>1&1))*h,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);(l=l?parseInt(l[1],10):0)&&87>=l&&2===d&&224E3<=e&&0===g&&(a[b+3]|=128);return{sampleRate:f,channelCount:3===g?1:2,wa:k,$l:8*c*h}}return null}
function xF(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}function yF(a,b){if(b+1<a.length&&xF(a,b)){var c=sF(a,b),d=4;c&&c.wa&&(d=c.wa);b+=d;return b===a.length||b+1<a.length&&xF(a,b)}return!1}
var tF=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],uF=[44100,48E3,32E3,22050,24E3,16E3,11025,12E3,8E3],vF=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],wF=[0,1,1,4];function zF(a){this.j=a;this.h=0;this.g=new Map;this.i=null}p=zF.prototype;p.destroy=function(){this.g.clear()};p.isSupported=function(a){return"audio/mpeg"==a.toLowerCase().split(";")[0]?bd(this.convertCodecs("audio",a)):!1};p.convertCodecs=function(a,b){return"audio/mpeg"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp3"':b};p.getOriginalMimeType=function(){return this.j};
p.transmux=function(a,b,c,d){for(var e=Kb(a),f=Zj(e).length;f<e.length&&!yF(e,f);f++);var g;for(a=[];f<e.length;){var h=sF(e,f);if(!h)return Promise.reject(new V(2,3,3018,c?c.S()[0]:null));g||(g=h);f+h.wa<=e.length&&a.push({data:e.subarray(f,f+h.wa),size:h.wa,duration:1152,xb:0,flags:{zb:0,sb:0,rb:0,ob:0,pb:2,Ab:0}});f+=h.wa}if(!g)return Promise.reject(new V(2,3,3018,c?c.S()[0]:null));e=9E4*g.$l/g.sampleRate*this.h;d={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:g.sampleRate,
duration:d,Eb:[],Ma:new Uint8Array([]),Wa:new Uint8Array([]),bb:0,eb:0,data:{Yb:this.h,baseMediaDecodeTime:e,Cb:a},stream:b};d=new Ri([d]);c=b.id+"_"+c.i;this.g.has(c)?b=this.g.get(c):(b=Xi(d),this.g.set(c,b));c=this.i!==b;d=oj(d);this.i=b;this.h++;return c?(b=kc(b,d),Promise.resolve(b)):Promise.resolve(d)};S("shaka.transmuxer.Mp3Transmuxer",zF);zF.prototype.transmux=zF.prototype.transmux;zF.prototype.getOriginalMimeType=zF.prototype.getOriginalMimeType;zF.prototype.convertCodecs=zF.prototype.convertCodecs;
zF.prototype.isSupported=zF.prototype.isSupported;zF.prototype.destroy=zF.prototype.destroy;Ue("audio/mpeg",function(){return new zF("audio/mpeg")},$e);function AF(a){this.h=a;this.g=null}p=AF.prototype;p.destroy=function(){};p.isSupported=function(a){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var b=lf(a).split(","),c=pc("audio",b);b=pc("video",b);return!c||b||"mp3"!=gf(c)?!1:bd(this.convertCodecs("audio",a))};p.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?"audio/mpeg":b};p.getOriginalMimeType=function(){return this.h};
p.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new nk;a=Kb(a);a=this.g.parse(a);if("mp3"!=a.ae().audio||"audio"!=e)return Promise.reject(new V(2,3,3018,c?c.S()[0]:null));c=new Uint8Array([]);e=t(a.yb());for(a=e.next();!a.done;a=e.next())if(a=a.value.data)for(b=0;b<a.length;)(d=sF(a,b))?(b+d.wa<=a.length&&(c=kc(c,a.subarray(b,b+d.wa))),b+=d.wa):b++;return Promise.resolve(c)};S("shaka.transmuxer.MpegTsTransmuxer",AF);AF.prototype.transmux=AF.prototype.transmux;
AF.prototype.getOriginalMimeType=AF.prototype.getOriginalMimeType;AF.prototype.convertCodecs=AF.prototype.convertCodecs;AF.prototype.isSupported=AF.prototype.isSupported;AF.prototype.destroy=AF.prototype.destroy;Ue("video/mp2t",function(){return new AF("video/mp2t")},Ze);/*
2025-06-19 04:02:44 +02:00
@license
MSS Transmuxer
Copyright 2015 Dash Industry Forum
SPDX-License-Identifier: BSD-3-Clause
*/
2025-06-27 11:02:59 +02:00
function BF(a){this.h=a;(this.g=qx.get("ISOBoxer")())&&CF(this)}
function CF(a){function b(){this._procFullBox();this.flags&1&&(this._procField("AlgorithmID","uint",24),this._procField("IV_size","uint",8),this._procFieldArray("KID",16,"uint",8));this._procField("sample_count","uint",32);this._procEntries("entry",this.sample_count,function(c){this._procEntryField(c,"InitializationVector","data",8);this.flags&2&&(this._procEntryField(c,"NumberOfEntries","uint",16),this._procSubEntries(c,"clearAndCryptedData",c.NumberOfEntries,function(d){this._procEntryField(d,"BytesOfClearData",
2025-06-19 04:02:44 +02:00
"uint",16);this._procEntryField(d,"BytesOfEncryptedData","uint",32)}))})}a.g.addBoxProcessor("saio",function(){this._procFullBox();this.flags&1&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter","uint",32));this._procField("entry_count","uint",32);this._procFieldArray("offset",this.entry_count,"uint",1===this.version?64:32)});a.g.addBoxProcessor("saiz",function(){this._procFullBox();this.flags&1&&(this._procField("aux_info_type","uint",32),this._procField("aux_info_type_parameter",
2025-06-27 11:02:59 +02:00
"uint",32));this._procField("default_sample_info_size","uint",8);this._procField("sample_count","uint",32);0===this.default_sample_info_size&&this._procFieldArray("sample_info_size",this.sample_count,"uint",8)});a.g.addBoxProcessor("senc",b);a.g.addBoxProcessor("uuid",function(){for(var c=!0,d=0;16>d;d++)this.usertype[d]!==DF[d]&&(c=!1);c&&(this._parsing&&(this.type="sepiff"),b.call(this))})}p=BF.prototype;p.destroy=function(){};
2025-06-19 04:02:44 +02:00
p.isSupported=function(a,b){var c=a.startsWith("mss/");if(!this.g||!c)return!1;if(b)return bd(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return bd(b)||bd(a)};p.convertCodecs=function(a,b){return b.replace("mss/","")};p.getOriginalMimeType=function(){return this.h};
p.transmux=function(a,b,c){if(!c)return Promise.resolve(Kb(a));if(!b.mssPrivateData)return Promise.reject(new V(2,3,3020,c?c.S()[0]:null));try{var d,e=this.g.parseBuffer(a),f=e.fetch("tfhd");f.track_ID=b.id+1;var g=e.fetch("tfdt"),h=e.fetch("traf");null===g&&(g=this.g.createFullBox("tfdt",h,f),g.version=1,g.flags=0,g.baseMediaDecodeTime=Math.floor(c.startTime*b.mssPrivateData.timescale));var k=e.fetch("trun"),l=e.fetch("tfxd");l&&l._parent.boxes.splice(l._parent.boxes.indexOf(l),1);var m=e.fetch("tfrf");
m&&m._parent.boxes.splice(m._parent.boxes.indexOf(m),1);var n=e.fetch("sepiff");if(null!==n){n.type="senc";n.usertype=void 0;var q=e.fetch("saio");if(null===q){q=this.g.createFullBox("saio",h);q.version=0;q.flags=0;q.entry_count=1;q.offset=[0];var r=this.g.createFullBox("saiz",h);r.version=0;r.flags=0;r.sample_count=n.sample_count;r.default_sample_info_size=0;r.sample_info_size=[];if(n.flags&2)for(d=0;d<n.sample_count;d+=1)r.sample_info_size[d]=10+6*n.entry[d].NumberOfEntries;else r.default_sample_info_size=
2025-06-27 11:02:59 +02:00
8}}f.flags&=16777214;f.flags|=131072;k.flags|=1;var u=e.fetch("moof");k.data_offset=u.getLength()+8;var w=e.fetch("saio");null!==w&&(w.offset[0]=EF(u,"traf")+EF(h,"senc")+16);var v=Kb(e.write());return Promise.resolve(v)}catch(y){return y instanceof V?Promise.reject(y):Promise.reject(new V(2,3,3022,c?c.S()[0]:null))}};function EF(a,b){for(var c=8,d=0;d<a.boxes.length&&a.boxes[d].type!==b;d++)c+=a.boxes[d].size;return c}S("shaka.transmuxer.MssTransmuxer",BF);BF.prototype.transmux=BF.prototype.transmux;
BF.prototype.getOriginalMimeType=BF.prototype.getOriginalMimeType;BF.prototype.convertCodecs=BF.prototype.convertCodecs;BF.prototype.isSupported=BF.prototype.isSupported;BF.prototype.destroy=BF.prototype.destroy;var DF=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);Ue("mss/audio/mp4",function(){return new BF("mss/audio/mp4")},$e);Ue("mss/video/mp4",function(){return new BF("mss/video/mp4")},$e);function FF(a){this.m=a;this.g=0;this.i=new Map;this.l=this.h=this.j=null}p=FF.prototype;p.destroy=function(){this.i.clear();this.h&&this.h.destroy()};
p.isSupported=function(a,b){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var c=a;b&&(c=this.convertCodecs(b,a));var d=lf(c).split(",");c=pc("audio",d);d=pc("video",d);if(c&&(c=gf(c),!GF.includes(c))||d&&(c=gf(d),!HF.includes(c)))return!1;if(b)return bd(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return bd(b)||bd(a)};
p.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?(b=lf(b).replace("mp4a.40.34","mp3").split(",").map(function(c){return Vf(c,"audio/mp4")}).map(Wf).join(","),"audio"==a?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b};p.getOriginalMimeType=function(){return this.m};
p.transmux=function(a,b,c,d,e){var f=Kb(a);if("audio"==e&&!vk(f)){for(var g=Zj(f),h=g.length;h<f.length;h++)if(yF(f,h))return Promise.reject(new V(2,3,3018,c?c.S()[0]:null));for(h=g.length;h<f.length;h++)if(cF(f,h))return this.h||(this.h=new eF("audio/aac")),this.h.transmux(a,b,c,d,e);return Promise.reject(new V(2,3,3018,c?c.S()[0]:null))}this.j?this.j.clearData():this.j=new nk;var k=this.j.parse(f),l=[],m=k.ae();try{var n=null;if("video"==e){switch(m.video){case "avc":var q=[],r=null,u=k.dd(),w=
mF(u);if(!w.length)throw new V(2,3,3023,c?c.S()[0]:null);for(var v=0;v<w.length;v++){var y=w[v];null==r&&(r=y.dts);var z=void 0;z=v+1<w.length?(w[v+1].dts||0)-(y.dts||0):1<w.length?(y.dts||0)-(w[v-1].dts||0):9E4*(c.endTime-c.startTime);q.push({data:y.data,size:y.data.byteLength,duration:z,xb:Math.round((y.pts||0)-(y.dts||0)),flags:{zb:0,sb:0,rb:0,ob:0,pb:y.isKeyframe?2:1,Ab:y.isKeyframe?0:1}})}for(var A=[],B=t(u),D=B.next();!D.done;D=B.next())A.push.apply(A,x(D.value.nalus));var G=kF(A);if(!G||null==
r)throw new V(2,3,3018,c?c.S()[0]:null);b.height=G.height;b.width=G.width;n={id:b.id,type:"video",codecs:"avc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,Eb:[],Ma:new Uint8Array([]),Wa:G.Wa,bb:G.bb,eb:G.eb,data:{Yb:this.g,baseMediaDecodeTime:r,Cb:q},stream:b};break;case "hvc":var C=[],E=null,H=[],K=k.dd();if(!K.length)throw new V(2,3,3023,c?c.S()[0]:null);for(var J=0;J<K.length;J++){var L=K[J],N=L.nalus;H.push.apply(H,x(N));for(var O=!1,M=[],P=!1,R=t(N),T=R.next();!T.done;T=
R.next()){var ca=T.value;switch(ca.type){case 1:case 0:var Y=P=!0;break;case 19:case 20:case 21:O=Y=P=!0;break;case 32:Y=!0;break;case 33:Y=!0;break;case 34:Y=!0;break;case 35:P=Y=!0;break;case 39:case 40:Y=!0;break;default:Y=!1}if(P&&Y){var Ma=ca.fullData.byteLength,Na=new Uint8Array(4);Na[0]=Ma>>24&255;Na[1]=Ma>>16&255;Na[2]=Ma>>8&255;Na[3]=Ma&255;M.push(Na);M.push(ca.fullData)}}var Ea=M.length?{data:kc.apply(dc,x(M)),isKeyframe:O}:null;if(Ea){null==E&&null!=L.dts&&(E=L.dts);var va=void 0;va=J+
1<K.length?(K[J+1].dts||0)-(L.dts||0):1<K.length?(L.dts||0)-(K[J-1].dts||0):9E4*(c.endTime-c.startTime);C.push({data:Ea.data,size:Ea.data.byteLength,duration:va,xb:Math.round((L.pts||0)-(L.dts||0)),flags:{zb:0,sb:0,rb:0,ob:0,pb:Ea.isKeyframe?2:1,Ab:Ea.isKeyframe?0:1}})}}var Ja=nF(H);if(!Ja||null==E)throw new V(2,3,3018,c?c.S()[0]:null);b.height=Ja.height;b.width=Ja.width;n={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,Eb:[],Ma:new Uint8Array([]),
Wa:Ja.Wa,bb:Ja.bb,eb:Ja.eb,data:{Yb:this.g,baseMediaDecodeTime:E,Cb:C},stream:b}}n&&(l.push(n),n=null)}if("audio"==e){switch(m.audio){case "aac":for(var Pa=[],za,ja=null,Aa=null,eb=null,fb=t(k.yb()),nb=fb.next();!nb.done;nb=fb.next()){var wb=nb.value,rb=wb.data;if(rb){var Ua=0;if(-1==Aa&&eb)rb=kc(eb,wb.data),Aa=null;else if(null!=Aa&&eb){Ua=Math.max(0,Aa);var se=kc(eb,rb.subarray(0,Ua));Pa.push({data:se,size:se.byteLength,duration:1024,xb:0,flags:{zb:0,sb:0,rb:0,ob:0,pb:2,Ab:0}});Aa=eb=null}za=bF(rb,
Ua);if(!za)throw new V(2,3,3018,c?c.S()[0]:null);b.audioSamplingRate=za.sampleRate;b.channelsCount=za.channelCount;null==ja&&null!==wb.pts&&(ja=wb.pts);for(;Ua<rb.length;){var rc=aF(rb,Ua);if(!rc){eb=rb.subarray(Ua,rb.length);Aa=-1;break}var Ce=rc.ie+rc.wa;Aa=Math.max(0,Ua+Ce-rb.length);0!=Aa?eb=rb.subarray(Ua+rc.ie,Ua+Ce):Ua+Ce<=rb.length&&Pa.push({data:rb.subarray(Ua+rc.ie,Ua+Ce),size:rc.wa,duration:1024,xb:0,flags:{zb:0,sb:0,rb:0,ob:0,pb:2,Ab:0}});Ua+=Ce}}}if(!za||null==ja){if(!k.dd().length)throw new V(2,
3,3018,c?c.S()[0]:null);ja=9E4*c.startTime;var ug=pc("audio",b.codecs.split(","));if(!ug||!b.channelsCount||!b.audioSamplingRate)throw new V(2,3,3018,c?c.S()[0]:null);za={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,codec:ug};var vg=dF(ug,b.channelsCount);if(!vg)throw new V(2,3,3018,c?c.S()[0]:null);for(var md=ja+9E4*(c.endTime-c.startTime),mz=ja;mz<md;)Pa.push({data:vg,size:vg.byteLength,duration:1024,xb:0,flags:{zb:0,sb:0,rb:0,ob:0,pb:2,Ab:0}}),mz+=1024/za.sampleRate*9E4}var nz=za.sampleRate,
JJ=ja/9E4*nz;n={id:b.id,type:"audio",codecs:za.codec,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:nz,duration:d,Eb:[],Ma:new Uint8Array([]),Wa:new Uint8Array([]),bb:0,eb:0,data:{Yb:this.g,baseMediaDecodeTime:JJ,Cb:Pa},stream:b};break;case "ac3":for(var oz=[],el=0,Jp=new Uint8Array([]),fl=null,pz=t(k.yb()),Kp=pz.next();!Kp.done;Kp=pz.next()){var Lp=Kp.value,Mp=Lp.data;null==fl&&null!==Lp.pts&&(fl=Lp.pts);for(var Bg=0;Bg<Mp.length;){var Ee=fF(Mp,Bg);Ee?(b.audioSamplingRate=Ee.sampleRate,b.channelsCount=
Ee.channelCount,el=Ee.sampleRate,Jp=Ee.Ma,oz.push({data:Mp.subarray(Bg,Bg+Ee.wa),size:Ee.wa,duration:1536,xb:0,flags:{zb:0,sb:0,rb:0,ob:0,pb:2,Ab:0}}),Bg+=Ee.wa):Bg++}}if(0==el||0==Jp.byteLength||null==fl)throw new V(2,3,3018,c?c.S()[0]:null);var KJ=fl/9E4*el;n={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:el,duration:d,Eb:[],Ma:Jp,Wa:new Uint8Array([]),bb:0,eb:0,data:{Yb:this.g,baseMediaDecodeTime:KJ,Cb:oz},stream:b};break;case "ec3":for(var qz=[],gl=0,
Np=new Uint8Array([]),hl=null,rz=t(k.yb()),Op=rz.next();!Op.done;Op=rz.next()){var Pp=Op.value,Qp=Pp.data;null==hl&&null!==Pp.pts&&(hl=Pp.pts);for(var Cg=0;Cg<Qp.length;){var Fe=iF(Qp,Cg);Fe?(b.audioSamplingRate=Fe.sampleRate,b.channelsCount=Fe.channelCount,gl=Fe.sampleRate,Np=Fe.Ma,qz.push({data:Qp.subarray(Cg,Cg+Fe.wa),size:Fe.wa,duration:1536,xb:0,flags:{zb:0,sb:0,rb:0,ob:0,pb:2,Ab:0}}),Cg+=Fe.wa):Cg++}}if(0==gl||0==Np.byteLength||null==hl)throw new V(2,3,3018,c?c.S()[0]:null);var LJ=hl/9E4*gl;
n={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:gl,duration:d,Eb:[],Ma:Np,Wa:new Uint8Array([]),bb:0,eb:0,data:{Yb:this.g,baseMediaDecodeTime:LJ,Cb:qz},stream:b};break;case "mp3":for(var sz=[],il,jl=null,tz=t(k.yb()),Rp=tz.next();!Rp.done;Rp=tz.next()){var Sp=Rp.value,hi=Sp.data;if(hi){null==jl&&null!==Sp.pts&&(jl=Sp.pts);for(var rf=0;rf<hi.length;){var Dg=sF(hi,rf);Dg?(il||(il=Dg),rf+Dg.wa<=hi.length&&sz.push({data:hi.subarray(rf,rf+Dg.wa),size:Dg.wa,duration:1152,
xb:0,flags:{zb:0,sb:0,rb:0,ob:0,pb:2,Ab:0}}),rf+=Dg.wa):rf++}}}if(!il||null==jl)throw new V(2,3,3018,c?c.S()[0]:null);var uz=il.sampleRate,MJ=jl/9E4*uz;n={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:uz,duration:d,Eb:[],Ma:new Uint8Array([]),Wa:new Uint8Array([]),bb:0,eb:0,data:{Yb:this.g,baseMediaDecodeTime:MJ,Cb:sz},stream:b};break;case "opus":var vz=[],kl=null,yd=k.F;if(!yd)throw new V(2,3,3018,c?c.S()[0]:null);var fc=[];switch(yd.gk){case 1:case 2:fc=
2025-06-19 04:02:44 +02:00
[0];break;case 0:fc=[255,1,1,0,1];break;case 128:fc=[255,2,0,0,1];break;case 3:fc=[1,2,1,0,2,1];break;case 4:fc=[1,2,2,0,1,2,3];break;case 5:fc=[1,3,2,0,4,1,2,3];break;case 6:fc=[1,4,2,0,4,1,2,3,5];break;case 7:fc=[1,4,2,0,4,1,2,3,5,6];break;case 8:fc=[1,5,3,0,6,1,2,3,4,5,7];break;case 130:fc=[1,1,2,0,1];break;case 131:fc=[1,1,3,0,1,2];break;case 132:fc=[1,1,4,0,1,2,3];break;case 133:fc=[1,1,5,0,1,2,3,4];break;case 134:fc=[1,1,6,0,1,2,3,4,5];break;case 135:fc=[1,1,7,0,1,2,3,4,5,6];break;case 136:fc=
2025-06-27 11:02:59 +02:00
[1,1,8,0,1,2,3,4,5,6,7]}var wz=new Uint8Array([0,yd.channelCount,0,0,yd.sampleRate>>>24&255,yd.sampleRate>>>17&255,yd.sampleRate>>>8&255,yd.sampleRate>>>0&255,0,0].concat(x(fc)));for(var xz=yd.sampleRate,yz=t(k.yb()),Tp=yz.next();!Tp.done;Tp=yz.next()){var Up=Tp.value,Eg=Up.data;null==kl&&null!==Up.pts&&(kl=Up.pts);for(var ii=0;ii<Eg.length;){for(var NJ=0!==(Eg[ii+1]&16),OJ=0!==(Eg[ii+1]&8),de=ii+2,ll=0;255===Eg[de];)ll+=255,de+=1;ll+=Eg[de];de+=1;de+=NJ?2:0;de+=OJ?2:0;var zz=Eg.slice(de,de+ll);vz.push({data:zz,
size:zz.byteLength,duration:960,xb:0,flags:{zb:0,sb:0,rb:0,ob:0,pb:2,Ab:0}});ii=de+ll}}if(0==wz.byteLength||null==kl)throw new V(2,3,3018,c?c.S()[0]:null);b.audioSamplingRate=yd.sampleRate;b.channelsCount=yd.channelCount;var PJ=kl/9E4*xz;n={id:b.id,type:"audio",codecs:"opus",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:xz,duration:d,Eb:[],Ma:wz,Wa:new Uint8Array([]),bb:0,eb:0,data:{Yb:this.g,baseMediaDecodeTime:PJ,Cb:vz},stream:b}}n&&(l.push(n),n=null)}}catch(Vp){return Vp&&3023==Vp.code?
Promise.resolve(new Uint8Array([])):Promise.reject(Vp)}if(!l.length)return Promise.reject(new V(2,3,3018,c?c.S()[0]:null));var Az=new Ri(l),Wp=b.id+"_"+c.i;if(this.i.has(Wp))var ji=this.i.get(Wp);else ji=Xi(Az),this.i.set(Wp,ji);var QJ=this.l!==ji,Bz=oj(Az);this.l=ji;this.g++;if(QJ){var RJ=kc(ji,Bz);return Promise.resolve(RJ)}return Promise.resolve(Bz)};S("shaka.transmuxer.TsTransmuxer",FF);FF.prototype.transmux=FF.prototype.transmux;FF.prototype.getOriginalMimeType=FF.prototype.getOriginalMimeType;
FF.prototype.convertCodecs=FF.prototype.convertCodecs;FF.prototype.isSupported=FF.prototype.isSupported;FF.prototype.destroy=FF.prototype.destroy;var GF=["aac","ac-3","ec-3","mp3","opus"],HF=["avc","hevc"];Ue("video/mp2t",function(){return new FF("video/mp2t")},Ye);function IF(){}pa(IF,zn);S("shaka.util.FairPlayUtils",IF);/*
2025-06-19 04:02:44 +02:00
@license
EME Encryption Scheme Polyfill
Copyright 2019 Google LLC
SPDX-License-Identifier: Apache-2.0
*/
2025-06-27 11:02:59 +02:00
function JF(){}var KF;
function LF(){KF||navigator.emeEncryptionSchemePolyfilled?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(KF=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=MF,navigator.emeEncryptionSchemePolyfilled=!0):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
function MF(a,b){var c=this,d;return Q(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),F(e,KF.call(c,a,b),2);d=e.h;if(NF(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=KF,e.return(d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=OF;return e.return(OF.call(c,
2025-06-19 04:02:44 +02:00
a,b))})}
2025-06-27 11:02:59 +02:00
function OF(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,r,u;return Q(function(w){if(1==w.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=PF(a);e=[];f=t(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=QF(h.videoCapabilities,d),l=QF(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."),
n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return F(w,KF.call(c,a,e),2)}q=w.h;u=r=null;e[0]&&(e[0].videoCapabilities&&(r=e[0].videoCapabilities[0].encryptionScheme),e[0].audioCapabilities&&(u=e[0].audioCapabilities[0].encryptionScheme));return w.return(new RF(q,r,u))})}function QF(a,b){return a?a.filter(function(c){return SF(c.encryptionScheme,b)}):a}S("EmeEncryptionSchemePolyfill",JF);JF.install=LF;function TF(){}var UF;
function VF(){UF||navigator.mediaCapabilitiesEncryptionSchemePolyfilled?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(UF=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=WF,navigator.mediaCapabilitiesEncryptionSchemePolyfilled=!0):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
function WF(a){var b=this,c,d;return Q(function(e){switch(e.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),F(e,UF.call(b,a),2);case 2:c=e.h;if(!c.supported||!a.keySystemConfiguration)return e.return(c);if((d=c.keySystemAccess)&&NF(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=UF,e.return(c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
navigator.mediaCapabilities.decodingInfo=XF;if(d){e.A(3);break}return F(e,YF(a),4);case 4:return c.keySystemAccess=e.h,e.return(c);case 3:return e.return(XF.call(b,a))}})}
function XF(a){var b=this,c,d,e,f,g,h,k;return Q(function(l){switch(l.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),d=c=null,!a.keySystemConfiguration||(e=a.keySystemConfiguration,f=e.keySystem,d=e.audio&&e.audio.encryptionScheme,c=e.video&&e.video.encryptionScheme,g=PF(f),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},SF(d,g)&&SF(c,g))?F(l,UF.call(b,a),2):l.return(h);case 2:k=l.h;if(k.keySystemAccess){k.keySystemAccess=
new RF(k.keySystemAccess,c,d);l.A(3);break}if(!a.keySystemConfiguration){l.A(3);break}return F(l,YF(a),5);case 5:k.keySystemAccess=l.h;case 3:return l.return(k)}})}
function YF(a){var b,c;return Q(function(d){if(1==d.g){var e=a.keySystemConfiguration,f=[],g=[];e.audio&&f.push({robustness:e.audio.robustness||"",contentType:a.audio.contentType,encryptionScheme:e.audio.encryptionScheme});e.video&&g.push({robustness:e.video.robustness||"",contentType:a.video.contentType,encryptionScheme:e.video.encryptionScheme});e={initDataTypes:e.initDataType?[e.initDataType]:[],distinctiveIdentifier:e.distinctiveIdentifier,persistentState:e.persistentState,sessionTypes:e.sessionTypes};
f.length&&(e.audioCapabilities=f);g.length&&(e.videoCapabilities=g);b=e;return F(d,navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d.return(c)})}S("McEncryptionSchemePolyfill",TF);TF.install=VF;function RF(a,b,c){this.g=a;this.i=b||null;this.h=c||null;this.keySystem=a.keySystem}
RF.prototype.getConfiguration=function(){var a=this.g.getConfiguration();if(a.videoCapabilities)for(var b=t(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.i;if(a.audioCapabilities)for(b=t(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.h;return a};RF.prototype.createMediaKeys=function(){return this.g.createMediaKeys()};
function PF(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.chromecast")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs";if(a.startsWith("com.huawei"))return"cenc";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}
function NF(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 SF(a,b){if(!a||a==b)return!0;if("cbcs"==a||"cbcs-1-9"==a)if(ZF||$F||aG)return!0;return!1}function bG(){}function sC(){LF();VF()}S("EncryptionSchemePolyfills",bG);bG.install=sC;var aG=navigator.userAgent.includes("CrKey"),ZF=100<=parseInt(navigator.userAgent.split("Firefox/").pop(),10),cG;
var dG=navigator.userAgent||"";if(dG.includes("Web0S")){var eG=dG.match(/Chrome\/(\d+)/);cG=eG?79<=parseInt(eG[1],10):!1}else cG=!1;var $F=cG;"undefined"!==typeof module&&module.exports&&(module.exports=bG);function fG(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new Oc;this.localization=this.controls.ra;this.player=this.controls.Sb();this.video=this.controls.Kc();this.adManager=this.player.mf();this.ad=b.getAd();this.eventManager.o(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null})}
fG.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};S("shaka.ui.Element",fG);fG.prototype.release=fG.prototype.release;function gG(a){return hG(a,"shaka-back-to-overflow-button")}function hG(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function iG(a){a&&(a=hG(a,"shaka-chosen-item"))&&a.parentElement.focus()}function jG(){var a=W("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function kG(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
function lG(a,b){var c=Math.floor(a/86400),d=Math.floor(a%86400/3600),e=Math.floor(a/60%60);a=Math.floor(a%60);10>a&&(a="0"+a);a=e+":"+a;b&&(10>e&&(a="0"+a),a=d+":"+a,0<c&&(10>d&&(a="0"+a),a=c+":"+a));return a};function mG(a,b){fG.call(this,a,b);var c=this;this.g=Lj();this.g.classList.add("shaka-ad-info");this.g.disabled=!0;this.parent.appendChild(this.g);this.h=new zf(function(){if(c.ad.isLinear()){var d="",e=c.ad.getSequenceLength();1<e&&(d=c.ad.getPositionInSequence(),d=c.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(d)).replace("[NUM_ADS]",String(e)));var f=Math.round(c.ad.getRemainingTime()),g=c.ad.getDuration();-1==f||-1==g?(c.g.textContent=d,kG(c.g,""!=d)):0<f?(f=lG(g-f,!1)+" / "+lG(g,
!1),d=1<e?d+("\u00a0\u00a0"+f):c.localization.resolve("AD_TIME").replace("[AD_TIME]",f),c.g.textContent=d,kG(c.g,""!=d)):(c.h.stop(),c.g.textContent="")}});this.eventManager.o(this.localization,"locale-updated",function(){});this.eventManager.o(this.localization,"locale-changed",function(){});this.eventManager.o(this.adManager,"ad-started",function(){c.h.Ka();c.h.ya(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.h.stop();c.g.textContent=""});this.ad&&(this.h.Ka(),this.h.ya(.5))}
pa(mG,fG);mG.prototype.release=function(){this.h.stop();this.h=null;fG.prototype.release.call(this)};S("shaka.ui.AdInfo",mG);function nG(a,b){fG.call(this,a,b);var c=this;this.j=this.controls.g;this.h=this.controls.h;this.i=[];this.g=W("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.o(this.h,"contextmenu",function(d){if(c.g.classList.contains("shaka-hidden")){d.preventDefault();var e=c.h.getBoundingClientRect();c.g.style.left=d.clientX-e.left+"px";c.g.style.top=d.clientY-e.top+"px";kG(c.g,!0)}else kG(c.g,
!1)});this.eventManager.o(window,"click",function(){kG(c.g,!1)});this.eventManager.o(this.g,"click",function(){kG(c.g,!1)});oG(this)}pa(nG,fG);nG.prototype.release=function(){this.h=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];fG.prototype.release.call(this)};nG.prototype.Gi=function(){kG(this.g,!1)};function pG(a,b){qG.set(a,b)}
function oG(a){for(var b=t(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=qG.get(c);d?a.i.push(d.create(a.g,a.controls)):ab("Unrecognized context menu element:",c)}}S("shaka.ui.ContextMenu",nG);nG.registerElement=pG;nG.prototype.closeMenu=nG.prototype.Gi;var qG=new Map;function rG(a,b){fG.call(this,a,b);var c=this;this.button=Lj();this.parent.appendChild(this.button);this.eventManager.o(this.localization,"locale-updated",function(){sG(c)});this.eventManager.o(this.localization,"locale-changed",function(){sG(c)});this.eventManager.o(this.video,"play",function(){sG(c);c.g()});this.eventManager.o(this.video,"pause",function(){sG(c);c.g()});this.eventManager.o(this.video,"seeking",function(){sG(c);c.g()});this.eventManager.o(this.player,"loaded",function(){sG(c);c.g()});
this.eventManager.o(this.adManager,"ad-paused",function(){sG(c);c.g()});this.eventManager.o(this.adManager,"ad-resumed",function(){sG(c);c.g()});this.eventManager.o(this.adManager,"ad-started",function(){sG(c);c.g()});this.eventManager.o(this.adManager,"ad-stopped",function(){sG(c);c.g()});this.eventManager.o(this.button,"click",function(){c.controls.Ba()&&tG(c.controls)});sG(this);this.g()}pa(rG,fG);
rG.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.B.paused&&!a.R;return a};rG.prototype.isEnded=function(){return this.ad&&this.ad.isLinear()?!1:this.player?this.player.isEnded():!0};function sG(a){if(a.isEnded()&&a.video.duration)a.button.ariaLabel=a.localization.resolve("REPLAY");else{var b=a.isPaused()?"PLAY":"PAUSE";a.button.ariaLabel=a.localization.resolve(b)}}
rG.prototype.g=function(){this.isEnded()&&this.video.duration?this.button.textContent="replay":this.button.textContent=this.isPaused()?"play_arrow":"pause"};S("shaka.ui.PlayButton",rG);function uG(a,b){rG.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation")}pa(uG,rG);uG.prototype.g=function(){this.isEnded()?this.button.setAttribute("icon","replay"):this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};S("shaka.ui.BigPlayButton",uG);function vG(a,b){fG.call(this,a,b);var c=this;this.s=null;this.j=this.C=!1;this.B=this.u=null;this.l=new zf(function(){0===parseInt(c.h.textContent,10)&&wG(c.controls,!0);var d=parseInt(c.h.textContent,10);0!==d&&(c.video.currentTime=c.controls.gh()+d);c.g.style.opacity="0";c.C=!1;c.h.textContent="0s"});this.g=W("div");this.g.classList.add("shaka-no-propagation");this.parent.appendChild(this.g);this.h=W("span");this.h.textContent="0s";this.g.appendChild(this.h);this.i=W("span");this.i.classList.add("shaka-forward-rewind-container-icon");
this.g.appendChild(this.i);this.m=!1;this.eventManager.o(this.g,"touchstart",function(d){c.controls.Ba()&&(0<d.touches.length&&(c.u=d.touches[0].clientX,c.B=d.touches[0].clientY),c.j=!1)});this.eventManager.o(this.g,"touchmove",function(d){if(0<d.touches.length&&null!=c.u&&null!=c.B){var e=d.touches[0].clientX-c.u;d=d.touches[0].clientY-c.B;10<Math.sqrt(e*e+d*d)&&(c.j=!0)}});this.eventManager.o(this.g,"touchend",function(d){if(c.controls.Ba()&&!c.j)if(c.controls.Dc())d.preventDefault(),c.controls.Mc();
else if(0<c.controls.g.tapSeekDistance)if(d.preventDefault(),d=c.controls.g.tapSeekDistance,!c.C)c.C=!0,c.s=Date.now(),c.l.X(.5);else if(c.s+500>Date.now()){c.l.stop();c.s=Date.now();var e=parseInt(c.h.textContent,10);e=c.m?e-d:e+d;c.h.textContent=e.toString()+"s";c.g.style.opacity="1";c.l.X(.5)}})}pa(vG,fG);S("shaka.ui.HiddenSeekButton",vG);function xG(a,b){vG.call(this,a,b);this.g.classList.add("shaka-fast-forward-container");this.i.textContent="fast_forward";this.m=!1}pa(xG,vG);S("shaka.ui.HiddenFastForwardButton",xG);function yG(a,b){vG.call(this,a,b);this.g.classList.add("shaka-rewind-container");this.i.textContent="fast_rewind";this.m=!0}pa(yG,vG);S("shaka.ui.HiddenRewindButton",yG);function zG(a,b,c,d){fG.call(this,a,b);var e=this;this.container=W("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,x(c));this.i=!1;this.bar=document.createElement("input");this.F=new zf(function(){e.onChangeEnd();e.i=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,x(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.bar.disabled=
!this.controls.Ba();this.container.appendChild(this.bar);this.parent.appendChild(this.container);this.K=new zf(function(){e.bar.disabled=!1});this.eventManager.o(this.controls,"showingui",function(){e.K.X(0)});this.eventManager.o(this.controls,"hidingui",function(){e.K.stop();e.bar.disabled=!0});this.eventManager.o(this.bar,"mousedown",function(f){e.bar.disabled||(e.i=!0,e.onChangeStart(),f.stopPropagation())});this.eventManager.o(this.bar,"touchstart",function(f){e.bar.disabled||(e.i=!0,AG(e,f),
e.onChangeStart(),f.stopPropagation())});this.eventManager.o(this.bar,"input",function(){e.onChange()});this.eventManager.o(this.bar,"touchmove",function(f){e.i&&(AG(e,f),e.onChange(),f.stopPropagation())});this.eventManager.o(this.bar,"touchend",function(f){e.i&&(e.i=!1,AG(e,f),e.onChangeEnd(),f.stopPropagation())});this.eventManager.o(this.bar,"touchcancel",function(f){e.i&&(e.i=!1,AG(e,f),e.onChangeEnd(),f.stopPropagation())});this.eventManager.o(this.bar,"mouseup",function(f){e.i&&(e.i=!1,e.onChangeEnd(),
f.stopPropagation())});this.eventManager.o(this.bar,"blur",function(){e.i&&(e.i=!1,e.onChangeEnd())});this.eventManager.o(this.bar,"contextmenu",function(f){f.preventDefault();f.stopPropagation()})}pa(zG,fG);p=zG.prototype;p.release=function(){this.F&&(this.F.stop(),this.F=null);fG.prototype.release.call(this)};p.setRange=function(a,b){this.bar.min=a;this.bar.max=b};p.onChangeStart=function(){};p.onChange=function(){};p.onChangeEnd=function(){};
2025-06-19 04:02:44 +02:00
p.changeTo=function(a){this.i||(this.i=!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.F.X(.5)};p.getValue=function(){return parseFloat(this.bar.value)};p.setValue=function(a){this.i||(this.bar.value=a)};
2025-06-27 11:02:59 +02:00
function BG(a,b){var c=a.bar.getBoundingClientRect(),d=parseFloat(a.bar.min),e=parseFloat(a.bar.max);a=parseFloat(a.bar.step)||1;var f=c.left+6;c=c.right-6;b=d+(Math.max(f,Math.min(c,b))-f)/(c-f)*(e-d);b=Math.round((b-d)/a)*a+d;return b=Math.min(e,Math.max(d,b))}function AG(a,b){b.preventDefault();a.bar.value=BG(a,b.changedTouches[0].clientX)}S("shaka.ui.RangeElement",zG);zG.prototype.setValue=zG.prototype.setValue;zG.prototype.getValue=zG.prototype.getValue;zG.prototype.changeTo=zG.prototype.changeTo;
zG.prototype.onChangeEnd=zG.prototype.onChangeEnd;zG.prototype.onChange=zG.prototype.onChange;zG.prototype.onChangeStart=zG.prototype.onChangeStart;zG.prototype.setRange=zG.prototype.setRange;function CG(a,b){zG.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.D=W("div");this.D.classList.add("shaka-ad-markers");this.container.insertBefore(this.D,this.container.childNodes[0]);this.H=this.controls.g;this.u=new zf(function(){var d=c.getValue();c.player.T()||d==c.video.duration&&(d-=.001);c.video.currentTime=d});this.B=new zf(function(){DG(c)});this.L=!1;this.h=W("div");this.h.id="shaka-player-ui-thumbnail-container";
this.g=W("img");this.g.id="shaka-player-ui-thumbnail-image";this.g.draggable=!1;this.J=W("div");this.J.id="shaka-player-ui-thumbnail-time-container";this.G=W("div");this.G.id="shaka-player-ui-thumbnail-time";this.J.appendChild(this.G);this.h.appendChild(this.g);this.h.appendChild(this.J);this.container.appendChild(this.h);this.j=W("div");this.j.id="shaka-player-ui-time-container";this.container.appendChild(this.j);this.l=this.m=null;this.I=!1;this.s=new zf(function(){EG(c)});this.C=[];this.eventManager.o(this.bar,
"input",function(){c.controls.Mc()});this.eventManager.o(this.localization,"locale-updated",function(){return FG(c)});this.eventManager.o(this.localization,"locale-changed",function(){return FG(c)});this.eventManager.o(this.adManager,"ad-started",function(){GG(c)||kG(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){GG(c)&&kG(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.C=d.cuepoints;HG(c)});this.eventManager.o(this.player,"unloading",
function(){c.C=[];HG(c);c.l&&(c.l.abort(),c.l=null);c.m=null;EG(c);IG(c)});this.eventManager.o(this.bar,"mousemove",function(d){if(c.controls.Dc())IG(c),EG(c);else{var e=BG(c,d.clientX),f=c.bar.getBoundingClientRect();d=Math.max(0,d.clientX-f.left);c.player.hh().length?(IG(c),JG(c,d,e)):(EG(c),KG(c,d,e))}});this.eventManager.o(this.container,"mouseleave",function(){IG(c);c.s.stop();c.s.X(.25)});this.setValue(this.video.currentTime);this.update();FG(this);this.ad&&kG(this.container,!1)}pa(CG,zG);
p=CG.prototype;p.release=function(){this.u&&(this.u.stop(),this.u=null,this.B.stop(),this.B=null);zG.prototype.release.call(this)};p.onChangeStart=function(){this.L=!this.video.paused;this.controls.Yh(!0);this.video.pause();this.s.stop();this.I=!0};
p.onChange=function(){if(this.video.duration)if(this.update(),this.u.X(.125),this.player.hh().length&&!this.controls.Dc()){var a=parseFloat(this.bar.min),b=parseFloat(this.bar.max),c=this.bar.getBoundingClientRect(),d=Math.round(this.getValue());JG(this,(d-a)/((b-a)/c.width),d)}else EG(this)};p.onChangeEnd=function(){this.u.Ka();this.controls.Yh(!1);this.L&&this.video.play();this.I&&(this.I=!1,this.s.stop(),this.s.X(.25))};p.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
p.update=function(){var a=this.H.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;c=this.player.xa();var f=c.end-c.start;this.setRange(c.start,c.end);GG(this)?(kG(this.container,!0),d=(Math.max(d,c.start)-c.start)/f||0,e=(Math.min(e,c.end)-c.start)/f||0,b=(Math.min(Math.max(b,c.start),c.end)-c.start)/f||0,this.container.style.background="linear-gradient("+["to right",(this.H.showUnbufferedStart?a.base:a.played)+" "+
100*d+"%",a.played+" "+100*d+"%",a.played+" "+100*b+"%",a.buffered+" "+100*b+"%",a.buffered+" "+100*e+"%",a.base+" "+100*e+"%"].join()+")"):kG(this.container,!1)};
function DG(a){if(a.C.length){for(var b=a.player.xa(),c=b.end-b.start,d=["to right"],e=[],f=a.H.seekBarColors.adBreaks,g=!1,h=t(a.C),k=h.next();!k.done;k=h.next())if(k=k.value,-1==k.start&&!k.end)g=!0;else if(!k.end&&k.start>=b.start||"number"==typeof k.end&&k.end>b.start){var l=(Math.max(k.start,b.start)-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}e=e.sort(function(n,q){return n.start-q.start});b=t(e);for(c=b.next();!c.done;c=b.next())c=c.value,d.push("transparent "+
100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.D.style.background="linear-gradient("+d.join(",")+")"}else a.D.style.background="transparent",a.B.stop()}function HG(a){function b(){DG(a);var c=a.player.xa();c=c.end-c.start;a.player.T()&&5<c&&a.B.ya(.25)}a.player.Z?b():a.eventManager.qa(a.player,"loaded",b)}
function GG(a){var b=a.player.xa();b=b.end-b.start;return a.player.T()&&(5>b||!isFinite(b))?!1:null==a.ad||!a.ad.isLinear()}function FG(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}
function KG(a,b,c){var d=a.j.clientWidth;a.j.style.width="auto";a.j.style.height="20px";a.j.style.top="-30px";a.j.style.left=Math.min(a.bar.offsetWidth-d,Math.max(0,b-d/2))+"px";a.j.style.right="";a.j.style.visibility="visible";b=a.player.xa();a.player.T()?(c=b.end-c,1>c?(a.j.textContent=a.localization.resolve("LIVE"),a.j.style.left="",a.j.style.right="0px"):a.j.textContent="-"+lG(c,3600<=c)):(c-=b.start,a.j.textContent=lG(c,3600<=c))}
function JG(a,b,c){var d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A;Q(function(B){switch(B.g){case 1:return 0>c&&(c=0),d=a.player.xa(),e=Math.max(Math.ceil(d.start),Math.min(Math.floor(d.end),c)),a.player.T()?(f=d.end-c,a.G.textContent=1>f?a.localization.resolve("LIVE"):"-"+lG(f,3600<=f)):a.G.textContent=lG(c,3600<=c),F(B,a.player.Si(null,e),2);case 2:g=B.h;if(!g||!g.uris||!g.uris.length)return EG(a),KG(a,b,c),B.return();g.width<g.height?a.h.classList.add("portrait-thumbnail"):a.h.classList.remove("portrait-thumbnail");
h=-10;k=a.h.clientWidth;l=Math.floor(9*k/16);a.h.style.height=l+"px";a.h.style.top=-(l-h)+"px";m=Math.min(a.bar.offsetWidth-k,Math.max(0,b-k/2));a.h.style.left=m+"px";a.h.style.visibility="visible";n=g.uris[0].split("#xywh=")[0];if(a.m&&n===a.m.uris[0].split("#xywh=")[0]&&g.startByte==a.m.startByte&&g.endByte==a.m.endByte){B.A(3);break}a.m=g;a.l&&(a.l.abort(),a.l=null);if("mjpg"!=g.codecs&&!n.startsWith("offline:")){B.A(4);break}a.g.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"/>';
ta(B,5);q=ch;r=Fm(g.uris,g.startByte,g.endByte,a.player.getConfiguration().streaming.retryParameters);a.l=a.player.Ib().request(q,r,{type:1});return F(B,a.l.promise,7);case 7:u=B.h;a.l=null;"mjpg"==g.codecs?(w=(new lh).box("mdat",vh(function(D){n=URL.createObjectURL(new Blob([D],{type:"image/jpeg"}))})),w.parse(u.data,!1)):(v=g.mimeType||"image/jpeg",y=new Blob([u.data],{type:v}),n=URL.createObjectURL(y));wa(B,4);break;case 5:z=xa(B);if(7001==z.code)return B.return();throw z;case 4:try{a.h.removeChild(a.g)}catch(D){}a.g=
2025-06-19 04:02:44 +02:00
W("img");a.g.id="shaka-player-ui-thumbnail-image";a.g.draggable=!1;a.g.src=n;a.g.onload=function(){n.startsWith("blob:")&&URL.revokeObjectURL(n)};a.h.insertBefore(a.g,a.h.firstChild);case 3:A=k/g.width,g.imageHeight?a.g.height=g.imageHeight:g.sprite||(a.g.style.height="100%",a.g.style.objectFit="contain"),g.imageWidth?a.g.width=g.imageWidth:g.sprite||(a.g.style.width="100%",a.g.style.objectFit="contain"),a.g.style.left="-"+A*g.positionX+"px",a.g.style.top="-"+A*g.positionY+"px",a.g.style.transform=
2025-06-27 11:02:59 +02:00
"scale("+A+")",a.g.style.transformOrigin="left top",l=Math.floor(k*g.height/g.width),a.h.style.height=l+"px",a.h.style.top=-(l-h)+"px",I(B)}})}function EG(a){a.h.style.visibility="hidden"}function IG(a){a.j.style.visibility="hidden"}S("shaka.ui.SeekBar",CG);function LG(){}LG.prototype.create=function(a,b){return new CG(a,b)};CG.Factory=LG;function MG(a,b){fG.call(this,a,b);var c=this;this.j=W("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=W("div");this.h.classList.add("shaka-skip-ad-counter");kG(this.h,!1);this.j.appendChild(this.h);this.g=Lj();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;kG(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);NG(this);this.i=new zf(function(){if(c.ad.isSkippable()){var d=Math.round(c.ad.getTimeUntilSkippable());
0<d?c.h.textContent=d:(c.i.stop(),kG(c.h,!1))}else OG(c)});this.eventManager.o(this.localization,"locale-updated",function(){NG(c)});this.eventManager.o(this.localization,"locale-changed",function(){NG(c)});this.eventManager.o(this.adManager,"ad-started",function(){PG(c)});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.isSkippable()?c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),kG(c.h,!1)):OG(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){OG(c)});this.eventManager.o(this.g,
"click",function(){c.ad.skip()});this.ad&&PG(this)}pa(MG,fG);MG.prototype.release=function(){this.i.stop();this.i=null;fG.prototype.release.call(this)};function NG(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function PG(a){a.ad.isSkippable()&&a.ad.needsSkipUI()&&(kG(a.g,!0),kG(a.h,!0),a.h.textContent="",a.i.Ka(),a.i.ya(.5))}function OG(a){a.i.stop();a.g.disabled=!0;kG(a.g,!1);kG(a.h,!1)}S("shaka.ui.SkipAdButton",MG);/*
2025-06-19 04:02:44 +02:00
@license
glMatrix: https://github.com/toji/gl-matrix/
Copyright 2015-2021, Brandon Jones, Colin MacKenzie IV
SPDX-License-Identifier: MIT
*/
2025-06-27 11:02:59 +02:00
function QG(){var a=new Float32Array(16);a[0]=1;a[5]=1;a[10]=1;a[15]=1;return a}function RG(a,b,c){b=1/Math.tan(b/2);a[0]=b/c;a[1]=0;a[2]=0;a[3]=0;a[4]=0;a[5]=b;a[6]=0;a[7]=0;a[8]=0;a[9]=0;a[11]=-1;a[12]=0;a[13]=0;a[15]=0;c=1/-99.9;a[10]=100.1*c;a[14]=20*c}
function SG(a,b,c){var d=b[0],e=b[1],f=b[2],g=b[3],h=b[4],k=b[5],l=b[6],m=b[7],n=b[8],q=b[9],r=b[10],u=b[11],w=b[12],v=b[13],y=b[14];b=b[15];var z=c[0],A=c[1],B=c[2],D=c[3];a[0]=z*d+A*h+B*n+D*w;a[1]=z*e+A*k+B*q+D*v;a[2]=z*f+A*l+B*r+D*y;a[3]=z*g+A*m+B*u+D*b;z=c[4];A=c[5];B=c[6];D=c[7];a[4]=z*d+A*h+B*n+D*w;a[5]=z*e+A*k+B*q+D*v;a[6]=z*f+A*l+B*r+D*y;a[7]=z*g+A*m+B*u+D*b;z=c[8];A=c[9];B=c[10];D=c[11];a[8]=z*d+A*h+B*n+D*w;a[9]=z*e+A*k+B*q+D*v;a[10]=z*f+A*l+B*r+D*y;a[11]=z*g+A*m+B*u+D*b;z=c[12];A=c[13];
B=c[14];D=c[15];a[12]=z*d+A*h+B*n+D*w;a[13]=z*e+A*k+B*q+D*v;a[14]=z*f+A*l+B*r+D*y;a[15]=z*g+A*m+B*u+D*b}
function TG(a,b){var c=new Float32Array(3),d=b[0],e=b[1],f=b[2],g=b[4],h=b[5],k=b[6],l=b[8],m=b[9],n=b[10];c[0]=Math.sqrt(d*d+e*e+f*f);c[1]=Math.sqrt(g*g+h*h+k*k);c[2]=Math.sqrt(l*l+m*m+n*n);k=1/c[0];l=1/c[1];m=1/c[2];g=b[0]*k;c=b[1]*l;d=b[2]*m;e=b[4]*k;h=b[5]*l;f=b[6]*m;k*=b[8];l*=b[9];b=b[10]*m;m=g+h+b;0<m?(b=2*Math.sqrt(m+1),a[3]=.25*b,a[0]=(f-l)/b,a[1]=(k-d)/b,a[2]=(c-e)/b):g>h&&g>b?(b=2*Math.sqrt(1+g-h-b),a[3]=(f-l)/b,a[0]=.25*b,a[1]=(c+e)/b,a[2]=(k+d)/b):h>b?(b=2*Math.sqrt(1+h-g-b),a[3]=(k-
d)/b,a[0]=(c+e)/b,a[1]=.25*b,a[2]=(f+l)/b):(b=2*Math.sqrt(1+b-g-h),a[3]=(c-e)/b,a[0]=(k+d)/b,a[1]=(f+l)/b,a[2]=.25*b)}function UG(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c+c,g=d+d,h=e+e;c*=f;var k=d*f;d*=g;var l=e*f,m=e*g;e*=h;f*=b;g*=b;b*=h;a[0]=1-d-e;a[1]=k+b;a[2]=l-g;a[3]=0;a[4]=k-b;a[5]=1-c-e;a[6]=m+f;a[7]=0;a[8]=l+g;a[9]=m-f;a[10]=1-c-d;a[11]=0;a[12]=0;a[13]=0;a[14]=0;a[15]=1};function VG(){var a=new Float32Array(4);a[3]=1;return a}function WG(a,b){var c=b[0],d=b[1],e=b[2];b=b[3];var f=c*c+d*d+e*e+b*b;0<f&&(f=1/Math.sqrt(f));a[0]=c*f;a[1]=d*f;a[2]=e*f;a[3]=b*f};function XG(a){var b=[],c=[],d=[],e=Math.PI;a=(void 0===a?0:a)?e/2:e;for(var f=0;100>=f;f++){var g=f*e/100,h=Math.sin(g);g=Math.cos(g);for(var k=0;100>=k;k++){var l=2*k*a/100;b.push(Math.sin(l)*h,g,Math.cos(l)*h);c.push(k/100,f/100)}}for(e=0;100>e;e++)for(a=0;100>a;a++)f=101*e+a,h=f+101,d.push(f,h,f+1),d.push(h,h+1,f+1);return{Wj:b,Tj:c,indices:d}};function YG(a,b,c,d,e){this.i=a;this.oa=b;this.s=c;this.g=d;this.u=new Oc;this.L=VG();this.h=VG();this.ba=this.na=this.$=this.l=null;this.D=QG();this.I=QG();this.N=QG();this.Y=QG();this.C=null;this.O=!1;this.J=this.B=null;this.ra=this.sa=0;this.Z=this.P=this.R=this.K=null;this.H=this.G=0;this.j=75;this.U=0;this.m=e;this.F=-1;ZG(this)}
YG.prototype.release=function(){-1!=this.F&&(this.i.cancelVideoFrameCallback(this.F),this.F=-1);this.u&&(this.u.release(),this.u=null);this.B&&(this.B.stop(),this.B=null);this.J&&(this.J.stop(),this.J=null)};YG.prototype.Qd=function(){(this.O=!this.O)||this.g.viewport(0,0,this.s.width,this.s.height);$G(this,!1)};
function ZG(a){aH(a);bH(a);cH(a);dH(a);eH(a);El(a.i,HTMLMediaElement.HAVE_CURRENT_DATA,a.u,function(){a.i.readyState>=HTMLMediaElement.HAVE_ENOUGH_DATA&&$G(a);if("requestVideoFrameCallback"in a.i){var b=function(){-1!=a.F&&($G(a),-1!=a.F&&(a.F=a.i.requestVideoFrameCallback(b)))};a.F=a.i.requestVideoFrameCallback(b)}else{var c;a.u.o(a.i,"canplaythrough",function(){$G(a)});a.u.o(a.i,"playing",function(){a.B&&a.B.stop();if(!c){var d=a.oa.qb();d=t(d);for(var e=d.next();!e.done;e=d.next())(e=e.value.frameRate)&&
(!c||c<e)&&(c=e)}c||(c=60);$G(a);a.B=(new zf(function(){$G(a)})).Ka().ya(1/c)});a.u.o(a.i,"pause",function(){a.B&&a.B.stop();a.B=null;$G(a)});a.u.o(a.i,"seeked",function(){$G(a)});a.u.o(document,"visibilitychange",function(){$G(a)})}})}
function aH(a){var b=a.D,c=[0,0,0],d=[1,0,0],e=[0,1,0],f=c[0],g=c[1];c=c[2];var h=e[0];var k=e[1];var l=e[2];var m=d[0];e=d[1];var n=d[2];if(1E-6>Math.abs(f-m)&&1E-6>Math.abs(g-e)&&1E-6>Math.abs(c-n))for(f=0;16>f;f++)b[f]=0==f%5?1:0;else{d=f-m;e=g-e;m=c-n;var q=1/Math.sqrt(d*d+e*e+m*m);d*=q;e*=q;m*=q;n=k*m-l*e;l=l*d-h*m;h=h*e-k*d;(q=Math.sqrt(n*n+l*l+h*h))?(q=1/q,n*=q,l*=q,h*=q):h=l=n=0;k=e*h-m*l;var r=m*n-d*h;var u=d*l-e*n;(q=Math.sqrt(k*k+r*r+u*u))?(q=1/q,k*=q,r*=q,u*=q):u=r=k=0;b[0]=n;b[1]=k;b[2]=
d;b[3]=0;b[4]=l;b[5]=r;b[6]=e;b[7]=0;b[8]=h;b[9]=u;b[10]=m;b[11]=0;b[12]=-(n*f+l*g+h*c);b[13]=-(k*f+r*g+u*c);b[14]=-(d*f+e*g+m*c);b[15]=1}TG(a.L,a.D);a=b=a.Y;c=[4,4,4];f=c[0];g=c[1];c=c[2];b[0]=a[0]*f;b[1]=a[1]*f;b[2]=a[2]*f;b[3]=a[3]*f;b[4]=a[4]*g;b[5]=a[5]*g;b[6]=a[6]*g;b[7]=a[7]*g;b[8]=a[8]*c;b[9]=a[9]*c;b[10]=a[10]*c;b[11]=a[11]*c;b[12]=a[12];b[13]=a[13];b[14]=a[14];b[15]=a[15]}
function bH(a){fH(a);a.g.viewport(0,0,a.g.drawingBufferWidth,a.g.drawingBufferHeight);a.g.clearColor(0,0,0,1);a.g.enable(a.g.CULL_FACE);a.g.cullFace(a.g.FRONT);a.g.clear(a.g.COLOR_BUFFER_BIT)}
function cH(a){var b=gH(a,a.g.VERTEX_SHADER),c=gH(a,a.g.FRAGMENT_SHADER);a.l=a.g.createProgram();a.g.attachShader(a.l,b);a.g.attachShader(a.l,c);a.g.linkProgram(a.l);"cubemap"==a.m?(a.R=a.g.getAttribLocation(a.l,"aVertexPosition"),a.P=a.g.getAttribLocation(a.l,"aTextureCoord")):(a.R=a.g.getAttribLocation(a.l,"a_vPosition"),a.g.enableVertexAttribArray(a.R),a.P=a.g.getAttribLocation(a.l,"a_TexCoordinate"),a.g.enableVertexAttribArray(a.P))}
function gH(a,b){switch(b){case a.g.VERTEX_SHADER:var c="cubemap"==a.m?"attribute vec4 aVertexPosition;\nattribute vec2 aTextureCoord;\nuniform mat4 uModelViewMatrix;\nuniform mat4 uProjectionMatrix;\nvarying highp vec2 vTextureCoord;\nvarying highp vec3 vLighting;\nvoid main(void) {\n gl_Position = uProjectionMatrix * uModelViewMatrix * aVertexPosition;\n vTextureCoord = aTextureCoord;\n}":"attribute vec4 a_vPosition;\n// Per-vertex texture coordinate info\nattribute vec2 a_TexCoordinate;\nuniform mat4 u_VPMatrix;\n// Passed into the fragment shader.\nvarying vec2 v_TexCoordinate;\nvarying vec3 pass_position;\nvoid main()\n{\n gl_Position = u_VPMatrix * a_vPosition;\n // Pass through texture coord\n v_TexCoordinate = a_TexCoordinate;\n pass_position = a_vPosition.xyz;\n}";
2025-06-19 04:02:44 +02:00
break;case a.g.FRAGMENT_SHADER:c="cubemap"==a.m?"varying highp vec2 vTextureCoord;\nuniform sampler2D uSampler;\nvoid main(void) {\n highp vec4 texelColor = texture2D(uSampler, vTextureCoord);\n gl_FragColor = vec4(texelColor.rgb , texelColor.a);\n}":"precision highp float;\n#define PI 3.141592653589793238462643383279\nvarying vec2 v_TexCoordinate;\nvarying vec3 pass_position;\nuniform sampler2D uSampler;\nvoid main(void) {\nhighp float xValue =\n (PI + atan(pass_position.z, pass_position.x)) / (2.0 * PI);\n vec2 tc = vec2(xValue, v_TexCoordinate.t);\n tc = vec2(tc.x , tc.y);\nhighp vec4 texelColor =\n texture2D(uSampler, tc);\n gl_FragColor = vec4(texelColor.rgb, texelColor.a);\n}";
break;default:return null}b=a.g.createShader(b);a.g.shaderSource(b,c);a.g.compileShader(b);return b}
2025-06-27 11:02:59 +02:00
function dH(a){a.K="cubemap"==a.m?{Wj:[-1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1,1,-1,-1,1,1,1,1,1,1,1,-1,-1,-1,1,1,-1,1,1,1,1,-1,1,1,1,-1,-1,1,1,-1,1,1,1,1,-1,1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,-1,-1,-1,-1,1,-1,1,1,-1,1,-1,-1],Tj:[2/3,.5,1/3,.5,1/3,0,2/3,0,2/3,.5,2/3,0,1,0,1,.5,1,1,2/3,1,2/3,.5,1,.5,0,.5,0,0,1/3,0,1/3,.5,0,.5,1/3,.5,1/3,1,0,1,1/3,1,1/3,.5,2/3,.5,2/3,1],indices:[0,1,2,0,2,3,4,5,6,4,6,7,8,9,10,8,10,11,12,13,14,12,14,15,16,17,18,16,18,19,20,21,22,20,22,23]}:"halfequirectangular"==a.m?XG(!0):
XG();a.$=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,a.$);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.K.Wj),a.g.STATIC_DRAW);a.na=a.g.createBuffer();a.g.bindBuffer(a.g.ARRAY_BUFFER,a.na);a.g.bufferData(a.g.ARRAY_BUFFER,new Float32Array(a.K.Tj),a.g.STATIC_DRAW);a.ba=a.g.createBuffer();a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.ba);a.g.bufferData(a.g.ELEMENT_ARRAY_BUFFER,new Uint16Array(a.K.indices),a.g.STATIC_DRAW)}
function eH(a){a.Z=a.g.createTexture();a.g.bindTexture(a.g.TEXTURE_2D,a.Z);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_S,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_WRAP_T,a.g.CLAMP_TO_EDGE);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MIN_FILTER,a.g.NEAREST);a.g.texParameteri(a.g.TEXTURE_2D,a.g.TEXTURE_MAG_FILTER,a.g.NEAREST)}
function $G(a,b){b=void 0===b?!0:b;var c=a.oa.m==Qq;if(!(!a.i||2>a.i.readyState||!c&&0==a.i.playbackRate)){RG(a.I,a.j*Math.PI/180,1.5625);"cubemap"==a.m?RG(a.I,a.j*Math.PI/180,2.5):RG(a.I,a.j*Math.PI/180,1.5625);a.g.useProgram(a.l);a.g.clear(a.g.COLOR_BUFFER_BIT);fH(a);b&&(a.g.activeTexture(a.g.TEXTURE0),a.g.bindTexture(a.g.TEXTURE_2D,a.Z),a.g.pixelStorei(a.g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0),a.g.texImage2D(a.g.TEXTURE_2D,0,a.g.RGBA,a.g.RGBA,a.g.UNSIGNED_BYTE,a.i));if("equirectangular"==a.m||"halfequirectangular"==
a.m)SG(a.N,a.D,a.Y),SG(a.N,a.I,a.N);a.g.bindBuffer(a.g.ARRAY_BUFFER,a.$);a.g.vertexAttribPointer(a.R,3,a.g.FLOAT,!1,0,0);a.g.enableVertexAttribArray(a.R);a.g.bindBuffer(a.g.ARRAY_BUFFER,a.na);a.g.vertexAttribPointer(a.P,2,a.g.FLOAT,!1,0,0);a.g.enableVertexAttribArray(a.P);a.g.bindBuffer(a.g.ELEMENT_ARRAY_BUFFER,a.ba);"cubemap"==a.m?(a.g.uniformMatrix4fv(a.g.getUniformLocation(a.l,"uProjectionMatrix"),!1,a.I),a.g.uniformMatrix4fv(a.g.getUniformLocation(a.l,"uModelViewMatrix"),!1,a.N)):a.g.uniformMatrix4fv(a.g.getUniformLocation(a.l,
2025-06-19 04:02:44 +02:00
"u_VPMatrix"),!1,a.N);a.g.uniform1i(a.g.getUniformLocation(a.l,"uSampler"),0);a.O&&a.g.viewport(0,0,a.s.width/2,a.s.height);a.g.drawElements(a.g.TRIANGLES,a.K.indices.length,a.g.UNSIGNED_SHORT,0);a.O&&(a.g.viewport(a.s.width/2,0,a.s.width/2,a.s.height),a.g.drawElements(a.g.TRIANGLES,a.K.indices.length,a.g.UNSIGNED_SHORT,0))}}
2025-06-27 11:02:59 +02:00
function fH(a){var b=a.i.videoWidth;b||(b=a.s.scrollWidth);var c=a.i.videoHeight;c||(c=a.s.scrollHeight);if(a.sa!==b||a.ra!==c){a.s.width=b;a.s.height=c;a.sa=b;a.ra=c;var d=b/c,e=a.I,f=-d,g=1/(d-f);e[0]=0*g;e[1]=0;e[2]=0;e[3]=0;e[4]=0;e[5]=0;e[6]=0;e[7]=0;e[8]=(d+f)*g;e[9]=0;e[10]=-1;e[11]=-1;e[12]=0;e[13]=0;e[14]=-0;e[15]=0;a.I=e;a.g.viewport(0,0,b,c)}}
function hH(a,b,c,d){var e=Infinity,f=90*Math.PI/180;"halfequirectangular"==a.m&&(e=90*Math.PI/180,f/=2);var g="cubemap"==a.m?a.N:a.D;a.G+=b;a.H+=c;if(a.G<e&&a.G>-e){e=Math.sin(b);b=Math.cos(b);var h=g[0],k=g[1],l=g[2],m=g[3],n=g[8],q=g[9],r=g[10],u=g[11];g!==g&&(g[4]=g[4],g[5]=g[5],g[6]=g[6],g[7]=g[7],g[12]=g[12],g[13]=g[13],g[14]=g[14],g[15]=g[15]);g[0]=h*b-n*e;g[1]=k*b-q*e;g[2]=l*b-r*e;g[3]=m*b-u*e;g[8]=h*e+n*b;g[9]=k*e+q*b;g[10]=l*e+r*b;g[11]=m*e+u*b}else a.G-=b;a.H<f&&a.H>-f?(f=QG(),e=QG(),b=
-1*c,c=Math.sin(b),b=Math.cos(b),h=e[4],k=e[5],l=e[6],m=e[7],n=e[8],q=e[9],r=e[10],u=e[11],e!==f&&(f[0]=e[0],f[1]=e[1],f[2]=e[2],f[3]=e[3],f[12]=e[12],f[13]=e[13],f[14]=e[14],f[15]=e[15]),f[4]=h*b+n*c,f[5]=k*b+q*c,f[6]=l*b+r*c,f[7]=m*b+u*c,f[8]=n*b-h*c,f[9]=q*b-k*c,f[10]=r*b-l*c,f[11]=u*b-m*c,SG(g,f,g)):a.H-=c;c=QG();f=QG();e=Math.sin(d);d=Math.cos(d);b=f[0];h=f[1];k=f[2];l=f[3];m=f[4];n=f[5];q=f[6];r=f[7];f!==c&&(c[8]=f[8],c[9]=f[9],c[10]=f[10],c[11]=f[11],c[12]=f[12],c[13]=f[13],c[14]=f[14],c[15]=
f[15]);c[0]=b*d+m*e;c[1]=h*d+n*e;c[2]=k*d+q*e;c[3]=l*d+r*e;c[4]=m*d-b*e;c[5]=n*d-h*e;c[6]=q*d-k*e;c[7]=r*d-l*e;SG(g,c,g);$G(a,!1)}
function iH(a,b){if(void 0===b||b)TG(a.h,a.D),a.U=0,a.C=VG(),a.C[0]=(a.h[0]-a.L[0])/20,a.C[1]=(a.h[1]-a.L[1])/20,a.C[2]=(a.h[2]-a.L[2])/20,a.C[3]=(a.h[3]-a.L[3])/20;a.h[0]-=a.C[0];a.h[1]-=a.C[1];a.h[2]-=a.C[2];a.h[3]-=a.C[3];b=QG();WG(a.h,a.h);UG(b,a.h);a.D=b;a.J&&(a.J.stop(),a.J=null);20>a.U?a.J=(new zf(function(){iH(a,!1);a.G=0;a.H=0;a.U++;$G(a,!1)})).X(.025):(UG(b,a.L),a.D=b)};function jH(a,b,c,d,e){jb.call(this);var f=this;this.i=a;this.l=b;this.F=c;this.J=d;this.u=e;this.s=new Oc;this.h=new Oc;this.B=kH(this.l);this.g=null;this.m=!1;this.I=this.H=this.G=this.D=this.C=0;this.j=null;this.s.o(d,"loading",function(){f.g&&iH(f.g);lH(f)});this.s.o(d,"spatialvideoinfo",function(g){g=g.detail;switch(g.projection){case "rect":f.j=null;break;case "equi":f.j="equirectangular";break;case "hequ":switch(g.hfov){case 360:f.j="equirectangular";break;case 180:f.j="halfequirectangular";
break;default:null==g.hfov?f.j="halfequirectangular":f.j=null}break;case "fish":f.j="halfequirectangular";break;default:f.j=null}lH(f)});this.s.o(d,"nospatialvideoinfo",function(){f.j=null;lH(f)});this.s.o(d,"unloading",function(){f.j=null;lH(f)});lH(this)}pa(jH,jb);p=jH.prototype;p.release=function(){this.s&&(this.s.release(),this.s=null);this.h&&(this.h.release(),this.h=null);this.g&&(this.g.release(),this.g=null);jb.prototype.release.call(this)};p.configure=function(a){this.u=a;lH(this)};
p.Eg=function(){return this.l?!!this.B:!!kH(document.createElement("canvas"))};p.Tb=function(){return!!this.g};p.Qd=function(){this.g?this.g.Qd():ab("Not playing VR content")};p.qh=function(a){this.g?hH(this.g,a*mH,0,0):ab("Not playing VR content")};p.oh=function(a){this.g?hH(this.g,0,a*mH,0):ab("Not playing VR content")};p.ph=function(a){this.g?hH(this.g,0,0,a*mH):ab("Not playing VR content")};
function lH(a){if(a.u.displayInVrMode||a.j){a.l||(a.l=document.createElement("canvas"),a.l.classList.add("shaka-vr-canvas-container"),a.F.parentElement.insertBefore(a.l,a.F.nextElementSibling),a.B=kH(a.l));var b=a.j||a.u.defaultVrProjectionMode;a.g?a.g.m!=b&&(a.h.Sa(),a.g.release(),nH(a,b)):(a.l.style.display="",nH(a,b),a.dispatchEvent(new U("vrstatuschanged",(new Map).set("newStatus",a.Tb()))))}else!a.u.displayInVrMode&&!a.j&&a.l&&a.g&&(a.l.style.display="none",a.h.Sa(),a.g.release(),a.g=null,a.dispatchEvent(new U("vrstatuschanged",
(new Map).set("newStatus",a.Tb()))))}function nH(a,b){a.B&&a.l&&(a.g=new YG(a.F,a.J,a.l,a.B,b),oH(a))}function kH(a){if(!a)return null;var b=Rb().Ja();if("TV"==b||"CONSOLE"==b||"CAST"==b)return null;b=t(["webgl2","webgl"]);for(var c=b.next();!c.done;c=b.next())if(c=a.getContext(c.value))return c;return null}
function oH(a){a.h.o(a.i,"mousedown",function(d){if(!a.m){var e=d.clientX;d=d.clientY;a.m=!0;a.C=e;a.D=d}});0<navigator.maxTouchPoints&&a.h.o(a.i,"touchstart",function(d){if(!a.m){var e=d.touches[0].clientX;d=d.touches[0].clientY;a.m=!0;a.C=e;a.D=d}});a.h.o(a.i,"wheel",function(d){if(!a.m){var e=a.g,f=d.deltaY;f/=50;20<=e.j&&100>=e.j&&(e.j+=f);20>e.j?e.j=20:100<e.j&&(e.j=100);$G(e,!1);d.preventDefault();d.stopPropagation()}});a.h.o(a.i,"mousemove",function(d){a.m&&pH(a,d.clientX,d.clientY)});0<navigator.maxTouchPoints&&
a.h.o(a.i,"touchmove",function(d){a.m&&pH(a,d.touches[0].clientX,d.touches[0].clientY);d.preventDefault()});a.h.o(a.i,"mouseleave",function(){a.m=!1});a.h.o(a.i,"mouseup",function(){a.m=!1});0<navigator.maxTouchPoints&&a.h.o(a.i,"touchend",function(){a.m=!1});var b=!1;if(window.DeviceOrientationEvent)if("function"==typeof DeviceMotionEvent.requestPermission){var c=function(){DeviceMotionEvent.requestPermission().then(function(d){"granted"!==d||b||(b=!0,qH(a))})};DeviceMotionEvent.requestPermission().then(function(d){a.h.Da(a.i,
"click",c);a.h.Da(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Da(a.i,"touchend",c);"granted"!==d?(a.h.qa(a.i,"click",c),a.h.qa(a.i,"mouseup",c),0<navigator.maxTouchPoints&&a.h.qa(a.i,"touchend",c)):(b=!0,qH(a))}).catch(function(){a.h.Da(a.i,"click",c);a.h.Da(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.Da(a.i,"touchend",c);a.h.qa(a.i,"click",c);a.h.qa(a.i,"mouseup",c);0<navigator.maxTouchPoints&&a.h.qa(a.i,"touchend",c)})}else b=!0,qH(a)}
function qH(a){a.h.o(window,"deviceorientation",function(b){if(a.g){var c=(b.alpha||0)-a.G,d=(b.beta||0)-a.H,e=(b.gamma||0)-a.I;if(10<Math.abs(c)||10<Math.abs(d)||5<Math.abs(e))d=e=c=0;a.G=b.alpha||0;a.H=b.beta||0;a.I=b.gamma||0;b=screen.orientation.angle;90==b||-90==b?hH(a.g,c*mH*-1,e*mH*-1,0):hH(a.g,c*mH*-1,d*mH,0)}})}function pH(a,b,c){var d=-.6*Math.PI/180;hH(a.g,(b-a.C)*d,-1*(c-a.D)*d,0);a.C=b;a.D=c}var mH=Math.PI/180;function Z(a,b,c,d,e){jb.call(this);var f=this;this.Y=!0;this.g=e;this.D=new ht(c,a,this.g.castReceiverAppId,this.g.castAndroidReceiverCompatible);this.oa=!0;this.B=this.D.Kc();this.m=c;this.s=this.D.Sb();this.Z=a;this.l=b;this.Lb=d;this.na=this.s.mf();this.u=this.j=null;this.R=!1;this.I=[];this.Ta=[];this.Na=!1;this.J=new zf(function(){f.l.classList.add("no-cursor");f.Na=!1;rH(f)});this.$=new zf(function(){f.h.removeAttribute("shown");sH(f);tH(f);f.U&&f.U.Gi();f.N.X(f.g.closeMenusDelay)});this.N=
new zf(function(){for(var g=t(f.I),h=g.next();!h.done;h=g.next())kG(h.value,!1);f.g.enableTooltips&&f.F.classList.add("shaka-tooltips-on")});this.sa=new zf(function(){f.Ba()&&uH(f)});this.O=null;this.H=[];this.ra=vH();this.i=new Oc;this.C=null;this.configure(this.g);wH(this);xH(this);this.ba=new Set;yH(this);this.sa.ya(this.g.refreshTickInSeconds);this.i.o(this.ra,"locale-changed",function(g){g=g.locales[0];f.na.setLocale(g);f.l.setAttribute("lang",g)});this.na.initInterstitial(this.G,this.Z,this.m);
this.i.o(this.s,"texttrackvisibility",function(){tH(f)})}pa(Z,jb);p=Z.prototype;
p.destroy=function(a){a=void 0===a?!1:a;var b=this;return Q(function(c){switch(c.g){case 1:if(document.pictureInPictureElement!=b.m){c.A(2);break}return F(c,document.exitPictureInPicture(),2);case 2:b.i&&(b.i.release(),b.i=null);b.J&&(b.J.stop(),b.J=null);b.$&&(b.$.stop(),b.$=null);b.N&&(b.N.stop(),b.N=null);b.sa&&(b.sa.stop(),b.sa=null);b.C&&(b.C.release(),b.C=null);zH(b);b.h&&(b.l.removeChild(b.h),b.h=null);if(!b.D){c.A(4);break}return F(c,b.D.destroy(a),5);case 5:b.D=null;case 4:b.K&&(b.l.removeChild(b.K),
b.K=null);b.G&&(b.l.removeChild(b.G),b.G=null);if(!b.Z){c.A(6);break}return F(c,b.Z.destroy(),7);case 7:b.Z=null;case 6:b.s=null,b.m=null,b.B=null,b.ra=null,b.ba.clear(),AH(b),jb.prototype.release.call(b),I(c)}})};function zH(a){for(var b=t(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function BH(a,b){CH.set(a,b)}p.ck=function(a){this.oa=a;yH(this)};p.Dl=function(){rH(this)};
p.configure=function(a){var b=this;this.g=a;this.D.Ei(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.u&&(this.u=null);this.La&&(this.La=null);this.U&&(this.U=null);this.C&&this.C.configure(a);this.h?(Pj(this.h),zH(this)):(DH(this),EH(this),this.C=new jH(this.h,this.Lb,this.m,this.s,this.g));this.l.classList.add("shaka-video-container");this.m.classList.add("shaka-video");FH(this);this.g.addBigPlayButton&&GH(this);this.g.customContextMenu&&(this.U=new nG(this.F,this),this.H.push(this.U));
this.K||HH(this);this.g.seekOnTaps&&(IH(this),JH(this));this.Ia=W("div");this.Ia.classList.add("shaka-server-side-ad-container");this.h.appendChild(this.Ia);KH(this);this.I=Array.from(this.l.getElementsByClassName("shaka-settings-menu"));this.I.push.apply(this.I,x(Array.from(this.l.getElementsByClassName("shaka-overflow-menu"))));this.Ta=Array.from(this.l.getElementsByClassName("shaka-show-controls-on-mouse-over"));rH(this);a=t(this.l.getElementsByClassName("shaka-no-propagation"));for(var c=a.next();!c.done;c=
a.next()){c=c.value;var d=function(e){return e.stopPropagation()};this.i.o(c,"click",d);this.i.o(c,"dblclick",d);0<navigator.maxTouchPoints&&this.i.o(c,"touchend",function(e){b.Ba()&&e.stopPropagation()})}};p.Vh=function(a){(this.Y=a)?(this.l.setAttribute("shaka-controls","true"),this.m.tabIndex=-1,this.m.controls=!1):this.l.removeAttribute("shaka-controls");rH(this)};p.Ej=function(a){this.m.controls=a;this.m.tabIndex=a?0:-1;a&&this.Vh(!1)};p.getAd=function(){return this.j};p.vk=function(){return this.D};
p.Nk=function(){return this.ra};p.kl=function(){return this.l};p.Kc=function(){return this.B};p.Mk=function(){return this.m};p.Sb=function(){return this.s};p.Lk=function(){return this.Z};p.Ck=function(){return this.h};p.Yk=function(){return this.Ia};p.yk=function(){return this.G};p.zk=function(){return this.g};p.Al=function(){return this.R};p.Yh=function(a){(this.R=a)?this.J.stop():this.J.X(3)};p.ul=function(){return this.oa};p.gh=function(){return this.u?this.u.getValue():this.B.currentTime};
p.Fj=function(a){this.O=a};p.Dc=function(){return this.I.some(function(a){return!a.classList.contains("shaka-hidden")})};p.Mc=function(){this.N.Ka()};function LH(a){return!document.fullscreenEnabled||a.m.webkitSupportsFullscreen&&a.g.preferVideoFullScreenInVisionOS&&"VR"==Rb().Ja()?!1:!0}function MH(a){return"documentPictureInPicture"in window&&a.g.preferDocumentPictureInPicture}
p.ke=function(){return this.D.Pa()?!1:LH(this)||(!this.j||!this.j.isUsingAnotherMediaElement())&&this.m.webkitSupportsFullscreen?!0:!1};p.Nc=function(){if(LH(this))return!!document.fullscreenElement;var a=this.m;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
function NH(a){var b,c,d;return Q(function(e){switch(e.g){case 1:ta(e,2);if(!LH(a)){b=a.m;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();e.A(4);break}if(!a.le()){e.A(5);break}return F(e,a.qd(),6);case 6:if(!MH(a)){e.A(5);break}return F(e,new Promise(function(f){(new zf(f)).X(.05)}),5);case 5:return c=a.g.fullScreenElement,F(e,c.requestFullscreen({navigationUI:"hide"}),9);case 9:if(!a.g.forceLandscapeOnFullscreen||!screen.orientation){e.A(4);break}ta(e,11);return F(e,screen.orientation.lock("landscape"),
13);case 13:wa(e,4,2);break;case 11:xa(e,2);case 4:wa(e,0);break;case 2:d=xa(e),a.dispatchEvent(new U("error",(new Map).set("detail",d))),I(e)}})}function OH(a){var b;return Q(function(c){if(!LH(a))return b=a.m,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.A(0);screen.orientation&&screen.orientation.unlock();return F(c,document.exitFullscreen(),0)})}p.gg=function(){var a=this;return Q(function(b){return a.Nc()?F(b,OH(a),0):F(b,NH(a),0)})};
p.yf=function(){return this.D.Pa()?!1:document.pictureInPictureEnabled||MH(this)?!this.m.disablePictureInPicture:!1};p.le=function(){return!!(window.documentPictureInPicture&&window.documentPictureInPicture.window||document.pictureInPictureElement)};
p.qd=function(){var a=this,b,c;return Q(function(d){switch(d.g){case 1:ta(d,2);if(MH(a)){if(!a.Nc()){d.A(10);break}return F(d,OH(a),10)}return document.pictureInPictureElement?F(d,document.exitPictureInPicture(),5):(a.Nc()&&OH(a),b=a.m,F(d,b.requestPictureInPicture(),5));case 10:return F(d,PH(a),5);case 5:wa(d,0);break;case 2:c=xa(d),a.dispatchEvent(new U("error",(new Map).set("detail",c))),I(d)}})};
function PH(a){var b,c,d,e,f,g;return Q(function(h){if(1==h.g){if(window.documentPictureInPicture.window)return window.documentPictureInPicture.window.close(),h.return();b=a.l;c=b.getBoundingClientRect();return F(h,window.documentPictureInPicture.requestWindow({width:c.width,height:c.height}),2)}d=h.h;QH(d);e=b.parentNode||document.body;f=a.l.cloneNode(!0);f.style.visibility="hidden";f.style.height=getComputedStyle(b).height;e.appendChild(f);g=document.createElement("style");g.append("[data-shaka-player-container] {\n width: 100% !important; max-height: 100%}");
d.document.head.append(g);d.document.body.append(b);a.i.qa(d,"pagehide",function(){f.replaceWith(b)});I(h)})}
function QH(a){var b=[].concat(x(document.styleSheets)).map(function(d){try{return[].concat(x(d.cssRules)).map(function(f){return f.cssText}).join("")}catch(f){var e=document.createElement("link");e.rel="stylesheet";e.type=d.type;e.media=d.media;e.href=d.href;a.document.head.appendChild(e)}return""}).filter(Boolean).join("\n"),c=document.createElement("style");c.textContent=b;a.document.head.appendChild(c)}
p.Kj=function(){kG(this.P,!0);kG(this.G,!0);this.j.hasCustomClick()?this.h.setAttribute("ad-active","true"):this.h.removeAttribute("ad-active")};p.Ti=function(){kG(this.P,!1);kG(this.G,!1);this.h.removeAttribute("ad-active")};function tG(a){if(a.Y){if(a.j&&(a.j&&a.j.isPaused()?a.j.play():a.j&&a.j.pause(),a.j.isLinear()))return;a.B.duration&&(a.B.paused&&!a.R?(a.s.isEnded()&&(a.B.currentTime=a.s.xa().start),a.B.play()):a.B.pause())}}
function DH(a){a.h=W("div");a.h.classList.add("shaka-controls-container");a.l.appendChild(a.h);a.l.setAttribute("shaka-controls","true");a.i.o(a.h,"touchend",function(b){a.B.duration&&(a.Ba()?(a.O=Date.now(),wG(a,!0)):RH(a,b),b.cancelable&&b.preventDefault())});a.i.o(a.h,"click",function(){wG(a)});a.i.o(a.h,"dblclick",function(){a.g.doubleClickForFullscreen&&a.ke()&&a.gg()})}
function GH(a){var b=W("div");b.classList.add("shaka-play-button-container");a.h.appendChild(b);a.La=new uG(b,a);a.H.push(a.La)}function FH(a){var b=W("div");b.classList.add("shaka-scrim-container");a.h.appendChild(b)}function SH(a){a.P=W("div");a.P.classList.add("shaka-ad-controls");var b=null!=a.j&&a.j.isLinear();kG(a.P,b);a.L.appendChild(a.P);b=new MG(a.P,a);a.H.push(b)}
function HH(a){a.K=W("div");a.K.classList.add("shaka-spinner-container");a.l.appendChild(a.K);var b=W("div");b.classList.add("shaka-spinner");a.K.appendChild(b);b.insertAdjacentHTML("beforeend",'<svg focusable="false" stroke="currentColor"\n viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg"\n width="50px" height="50px" class="q-spinner text-grey-9">\n <g transform="translate(1 1)" stroke-width="6" fill="none"\n fill-rule="evenodd">\n <circle stroke-opacity=".5" cx="18" cy="18" r="16"></circle>\n <path d="M34 18c0-9.94-8.06-16-16-16">\n <animateTransform attributeName="transform" type="rotate"\n from="0 18 18" to="360 18 18" dur="1s" repeatCount="indefinite">\n </animateTransform>\n </path>\n </g>\n </svg>')}
function IH(a){var b=W("div");b.classList.add("shaka-hidden-fast-forward-container");a.h.appendChild(b);a.Ya=new xG(b,a);a.H.push(a.Ya)}function JH(a){var b=W("div");b.classList.add("shaka-hidden-rewind-container");a.h.appendChild(b);a.cb=new yG(b,a);a.H.push(a.cb)}
function KH(a){a.L=W("div");a.L.classList.add("shaka-bottom-controls");a.L.classList.add("shaka-no-propagation");a.h.appendChild(a.L);a.i.o(a.L,"click",function(e){e.target.closest(".shaka-overflow-button")||a.Mc()});SH(a);TH(a);a.F=W("div");a.F.classList.add("shaka-controls-button-panel");a.F.classList.add("shaka-show-controls-on-mouse-over");a.g.enableTooltips&&a.F.classList.add("shaka-tooltips-on");a.L.appendChild(a.F);for(var b=t(a.g.controlPanelElements),c=b.next();!c.done;c=b.next())if(c=c.value,
CH.get(c)){var d=CH.get(c).create(a.F,a);a.H.push(d);"time_and_duration"==c&&(c=new mG(a.F,a),a.H.push(c))}else ab("Unrecognized control panel element requested:",c)}function TH(a){if(a.g.addSeekBar)a.u=UH.create(a.L,a),a.H.push(a.u);else{for(var b=t(a.I),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a=a.F;a.classList.contains("shaka-tooltips-on")&&a.classList.add("shaka-tooltips-low-position")}}
function EH(a){a.G=W("div");a.G.classList.add("shaka-client-side-ad-container");kG(a.G,!1);a.i.o(a.G,"click",function(){wG(a)});a.l.appendChild(a.G)}
function wH(a){a.i.o(a.s,"buffering",function(){VH(a)});VH(a);a.i.o(window,"keydown",function(b){WH(a,b)});a.i.o(window,"click",function(){return a.Mc()});a.i.o(a,"submenuopen",function(){a.Mc()});a.i.o(a.B,"play",function(){rH(a)});a.i.o(a.B,"pause",function(){rH(a)});a.i.o(a.l,"mousemove",function(b){RH(a,b)});a.i.o(a.l,"touchmove",function(b){RH(a,b)},{passive:!0});a.i.o(a.l,"touchend",function(b){RH(a,b)},{passive:!0});a.i.o(a.l,"mouseleave",function(){a.O||a.J.Ka()});a.i.o(a.l,"wheel",function(b){RH(a,
b)},{passive:!0});a.i.o(a.D,"caststatuschanged",function(){yH(a)});a.i.o(a.C,"vrstatuschanged",function(){a.dispatchEvent(new U("vrstatuschanged"))});a.i.o(a.l,"keydown",function(b){var c=document.activeElement,d=c&&c.classList?c.classList.contains("shaka-volume-bar"):!1,e=c&&c.classList&&c.classList.contains("shaka-seek-bar");a.h.contains(c)&&RH(a,b);if(a.g.enableKeyboardPlaybackControls&&a.s.$c()){c=a.g.keyboardSeekDistance;var f=a.g.keyboardLargeSeekDistance;switch(b.key){case "ArrowLeft":a.u&&
e&&!d&&0<c&&(b.preventDefault(),XH(a,a.u.getValue()-c));break;case "ArrowRight":a.u&&e&&!d&&0<c&&(b.preventDefault(),XH(a,a.u.getValue()+c));break;case "PageDown":a.u&&e&&0<f&&(b.preventDefault(),XH(a,a.u.getValue()-f));break;case "PageUp":a.u&&e&&0<f&&(b.preventDefault(),XH(a,a.u.getValue()+f));break;case "Home":a.u&&XH(a,a.s.xa().start);break;case "End":a.u&&XH(a,a.s.xa().end);break;case "f":a.ke()&&a.gg();break;case "m":a.j&&a.j.isLinear()?a.j.setMuted(!a.j.isMuted()):a.m.muted=!a.m.muted;break;
case "p":a.yf()&&a.qd();break;case " ":e&&tG(a)}}});a.i.o(a.l,"keyup",function(b){a.ba.delete(b.key)});a.i.o(a.na,"ad-started",function(b){a.j=b.ad;a.Kj();VH(a)});a.i.o(a.na,"ad-stopped",function(){a.j=null;a.Ti();VH(a)});screen.orientation&&a.i.o(screen.orientation,"change",function(){return Q(function(b){return F(b,YH(a),0)})})}
function xH(a){if(a.g.setupMediaSession&&navigator.mediaSession){var b=function(f,g){try{navigator.mediaSession.setActionHandler(f,function(h){g(h)})}catch(h){}},c=function(){if(a.j&&a.j.isLinear())d();else{var f=a.s.xa(),g=f.end-f.start;f=parseFloat((a.B.currentTime-f.start).toFixed(2));a.s.T()&&1>Math.abs(g-f)&&(g=Infinity);try{navigator.mediaSession.setPositionState({duration:Math.max(0,g),playbackRate:a.B.playbackRate,position:Math.max(0,f)})}catch(h){}}},d=function(){try{navigator.mediaSession.setPositionState()}catch(f){}},
e=function(f){var g=a.g.keyboardSeekDistance;switch(f.action){case "pause":tG(a);break;case "play":tG(a);break;case "seekbackward":if(f.seekOffset&&!isFinite(f.seekOffset))break;a.j&&a.j.isLinear()||XH(a,a.u.getValue()-(f.seekOffset||g));break;case "seekforward":if(f.seekOffset&&!isFinite(f.seekOffset))break;a.j&&a.j.isLinear()||XH(a,a.u.getValue()+(f.seekOffset||g));break;case "seekto":if(f.seekTime&&!isFinite(f.seekTime))break;a.j&&a.j.isLinear()||XH(a,a.s.xa().start+f.seekTime);break;case "stop":a.s.lc();
break;case "enterpictureinpicture":a.j&&a.j.isLinear()||a.qd()}};b("pause",e);b("play",e);b("seekbackward",e);b("seekforward",e);b("seekto",e);b("stop",e);("documentPictureInPicture"in window||document.pictureInPictureEnabled)&&b("enterpictureinpicture",e);b=function(){a.s.T()||0!=a.s.xa().start?(c(),a.i.o(a.B,"timeupdate",c)):d()};a.s.Z&&b();a.i.o(a.s,"loaded",b);a.i.o(a.s,"unloading",function(){a.i.Da(a.B,"timeupdate",c)});a.i.o(a.s,"metadata",function(f){if(f=f.payload){var g;"TIT2"==f.key&&f.data&&
2025-06-19 04:02:44 +02:00
(g=f.data);var h;"APIC"==f.key&&"--\x3e"==f.mimeType&&(h=f.data);g&&(f={title:g,artwork:[]},navigator.mediaSession.metadata&&(f=navigator.mediaSession.metadata,f.title=g),navigator.mediaSession.metadata=new MediaMetadata(f));h&&(g=a.m,h!=g.poster&&(g.poster=h),g={title:"",artwork:[{src:h}]},navigator.mediaSession.metadata&&(g=navigator.mediaSession.metadata,g.artwork=[{src:h}]),navigator.mediaSession.metadata=new MediaMetadata(g))}})}}
2025-06-27 11:02:59 +02:00
function AH(a){if(a.g.setupMediaSession&&navigator.mediaSession){try{navigator.mediaSession.setPositionState()}catch(b){}a=function(b){try{navigator.mediaSession.setActionHandler(b,null)}catch(c){}};a("pause");a("play");a("seekbackward");a("seekforward");a("seekto");a("stop");a("enterpictureinpicture")}}
function YH(a){return Q(function(b){return a.B&&0!=a.B.readyState&&!a.D.Pa()&&a.g.enableFullscreenOnRotation&&a.ke()?screen.orientation.type.includes("landscape")&&!a.Nc()?F(b,NH(a),0):screen.orientation.type.includes("portrait")&&a.Nc()?F(b,OH(a),0):b.A(0):b.return()})}
function RH(a,b){"mousemove"==b.type&&(a.h.classList.remove("shaka-keyboard-navigation"),rH(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.O=Date.now():a.O+1E3<Date.now()&&(a.O=null);a.O&&"mousemove"==b.type||(a.l.classList.remove("no-cursor"),a.Na=!0,a.N.stop(),a.Ba()||(uH(a),rH(a)),a.J.stop(),"touchend"!=b.type&&"wheel"!=b.type&&"keyup"!=b.type&&a.O||a.J.X(3))}
function ZH(a){return window.matchMedia("hover: hover").matches?a.Ta.some(function(b){return b.matches(":hover")}):!1}function tH(a){var b=a.l.getElementsByClassName("shaka-text-container")[0];b&&(a.Ba()?b.style.bottom=a.L.clientHeight+"px":b.style.bottom="0px")}
function rH(a){var b=a.j?a.j.isPaused():!1,c=a.B.paused&&!a.R,d=a.h.classList.contains("shaka-keyboard-navigation");b||(!a.j||!a.j.isLinear())&&c||a.Na||d||ZH(a)?(uH(a),null==a.h.getAttribute("shown")&&(a.h.setAttribute("shown","true"),sH(a)),tH(a),a.$.stop()):a.$.X(a.g.fadeDelay);a.Dc()&&a.F.classList.remove("shaka-tooltips-on")}function wG(a,b){b=void 0===b?!1:b;a.Y&&!a.Tb()&&(a.Dc()?a.N.Ka():a.g.singleClickForPlayAndPause?tG(a):b&&a.Ba()&&a.Ui())}
function yH(a){var b=a.D.Pa();a.dispatchEvent(new U("caststatuschanged",(new Map).set("newStatus",b)));b?null==a.h.getAttribute("casting")&&(a.h.setAttribute("casting","true"),sH(a)):null!=a.h.getAttribute("casting")&&(a.h.removeAttribute("casting"),sH(a))}function VH(a){a.Y&&(a.j&&a.j.isClientRendering()&&a.j.isLinear()?kG(a.K,!1):kG(a.K,a.s.xf()))}p.Ba=function(){return this.Y?null!=this.h.getAttribute("shown")||null!=this.h.getAttribute("casting"):!1};
function sH(a){a.Ba()?a.dispatchEvent(new U("showingui")):a.dispatchEvent(new U("hidingui"))}function XH(a,b){a.B.currentTime=b;uH(a)}
function uH(a){if(a.u)if(a.u.setValue(a.B.currentTime),a.u.update(),a.u.isShowing()){for(var b=t(a.I),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");b=a.F;b.classList.contains("shaka-tooltips-on")&&b.classList.remove("shaka-tooltips-low-position")}else{b=t(a.I);for(c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");b=a.F;b.classList.contains("shaka-tooltips-on")&&b.classList.add("shaka-tooltips-low-position")}a.dispatchEvent(new U("timeandseekrangeupdated"))}
function WH(a,b){a.ba.add(b.key);var c=a.Dc();"Tab"==b.key&&(a.h.classList.add("shaka-keyboard-navigation"),rH(a),a.i.o(window,"mousedown",function(){a.i.Da(window,"mousedown")}));"Escape"==b.key&&a.N.Ka();c&&a.ba.has("Tab")&&$H(a,b)}
function $H(a,b){var c=a.I.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.ba.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
p.mm=function(){var a=new Event("mousemove",{bubbles:!1,cancelable:!1});RH(this,a)};p.Ui=function(){this.J.Ka()};p.Eg=function(){return this.C.Eg()};p.Tb=function(){return this.C.Tb()};
p.il=function(){var a=this.C;if(a.g){a=a.g;TG(a.h,a.D);var b=a.h;a=b[0];var c=b[1],d=b[2];b=b[3];var e=d*d,f=b*b;var g=a*a+c*c+e+f;var h=a*b-c*d;h>.499995*g?(g=Math.PI/2,a=2*Math.atan2(c,a)):h<-.499995*g?(g=-Math.PI/2,a=2*Math.atan2(c,a)):(g=Math.asin(2*(a*d-b*c)),a=Math.atan2(2*(a*b+c*d),1-2*(e+f)));a=180*Math.acos(Math.cos(a)*Math.cos(g))/Math.PI}else ab("Not playing VR content"),a=null;return a};p.hl=function(){var a=this.C;a.g?a=a.g.j:(ab("Not playing VR content"),a=null);return a};
p.lm=function(a){var b=this.C;b.g?(0>a?(ab("Field of view should be greater than 0"),a=0):100<a&&(ab("Field of view should be less than 100"),a=100),b=b.g,b.j=a,$G(b,!1)):ab("Not playing VR content")};p.Qd=function(){this.C.Qd()};p.qh=function(a){this.C.qh(a)};p.oh=function(a){this.C.oh(a)};p.ph=function(a){this.C.ph(a)};
function vH(){var a=new Hc("en");a.Va("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_STATISTICS","\u0625\u062d\u0635\u0627\u0621\u0627\u062a \u0627\u0644\u0625\u0639\u0644\u0627\u0646\u0627\u062a"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],
2025-06-19 04:02:44 +02:00
["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],["CHAPTERS","\u0627\u0644\u0641\u0635\u0648\u0644"],["DOWNLOAD_VIDEO_FRAME","\u062d\u0641\u0638 \u0625\u0637\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648"],["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"],["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"],["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"],["PLAYBACK_RATE","\u0633\u0631\u0639\u0629 \u0627\u0644\u062a\u0634\u063a\u064a\u0644"],["QUALITY","\u0627\u0644\u062c\u0648\u062f\u0629"],["RECENTER_VR","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u062a\u0648\u0633\u064a\u0637"],
["REPLAY","\u0625\u0639\u0627\u062f\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"],
["STATISTICS","\u0627\u0644\u0625\u062d\u0635\u0627\u0621\u0627\u062a"],["SUBTITLE_FORCED","\u0639\u0631\u0636 \u0625\u062c\u0628\u0627\u0631\u064a"],["SURROUND","\u0635\u0648\u062a \u0645\u062d\u064a\u0637\u064a"],["TOGGLE_STEREOSCOPIC","\u0625\u064a\u0642\u0627\u0641 \u0627\u0644\u0639\u0631\u0636 \u0627\u0644\u0645\u062c\u0633\u0651\u0645 \u0623\u0648 \u062a\u0641\u0639\u064a\u0644\u0647"],["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.Va("de",new Map([["AD_DURATION","Dauer der Werbeanzeige"],["AD_PROGRESS","Werbung\u00a0[AD_ON] von\u00a0[NUM_ADS]"],["AD_STATISTICS","Anzeigenstatistiken"],["AD_TIME","Werbeanzeige: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatisch"],["BACK","Zur\u00fcck"],["CAPTIONS","Untertitel"],["CAST","Streamen..."],["CHAPTERS","Kapitel"],["DOWNLOAD_VIDEO_FRAME",
"Videoframe speichern"],["ENTER_LOOP_MODE","In Endlosschleife spielen"],["ENTER_PICTURE_IN_PICTURE","Bild im Bild aktivieren"],["EXIT_FULL_SCREEN","Vollbildmodus beenden"],["EXIT_LOOP_MODE","Endlosschleife stoppen"],["EXIT_PICTURE_IN_PICTURE","Bild im Bild beenden"],["FAST_FORWARD","Vorspulen"],["FULL_SCREEN","Vollbildmodus"],["LANGUAGE","Sprache"],["LIVE","Live"],["LOOP","Schleife"],["MORE_SETTINGS","Weitere Einstellungen"],["MULTIPLE_LANGUAGES","Mehrere Sprachen"],["MUTE","Stummschalten"],["NOT_APPLICABLE",
"Nicht zutreffend"],["OFF","Aus"],["ON","Ein"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Bild im Bild"],["PLAY","Wiedergabe"],["PLAYBACK_RATE","Geschwindigkeit"],["QUALITY","Qualit\u00e4t"],["RECENTER_VR","Zentrieren"],["REPLAY","Noch einmal wiedergeben"],["RESOLUTION","Aufl\u00f6sung"],["REWIND","Zur\u00fcckspulen"],["SEEK","Suche"],["SKIP_AD","\u00dcberspringen"],["SKIP_TO_LIVE","Zum Live-Videostream wechseln"],["STATISTICS","Statistiken"],["SUBTITLE_FORCED","Erzwungen"],["SURROUND","Surround"],
["TOGGLE_STEREOSCOPIC","Einstellung \u201estereoskopisch\u201c ein\u2011/ausschalten"],["UNDETERMINED_LANGUAGE","Unbestimmt"],["UNMUTE","Stummschaltung aufheben"],["UNRECOGNIZED_LANGUAGE","Unbekannt"],["VOLUME","Lautst\u00e4rke"]]));a.Va("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_STATISTICS","Ad statistics"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["CHAPTERS",
"Chapters"],["DOWNLOAD_VIDEO_FRAME","Save video frame"],["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"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE",
"Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["QUALITY","Quality"],["RECENTER_VR","Recenter"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip Ad"],["SKIP_NEXT","Next"],["SKIP_TO_LIVE","Skip ahead to live"],["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC",
"Toggle stereoscopic"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.Va("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_STATISTICS","Ad statistics"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["CHAPTERS","Chapters"],["DOWNLOAD_VIDEO_FRAME","Save video frame"],["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"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE",
"Picture-in-picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["QUALITY","Quality"],["RECENTER_VR","Recentre"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Toggle stereoscopic"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME",
"volume"]]));a.Va("es",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estad\u00edsticas del anuncio"],["AD_TIME","Anuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Enviar..."],["CHAPTERS","Cap\u00edtulos"],["DOWNLOAD_VIDEO_FRAME","Guardar fotograma"],["ENTER_LOOP_MODE","Reproducir en bucle el v\u00eddeo actual"],["ENTER_PICTURE_IN_PICTURE",
"Activar el modo imagen en imagen"],["EXIT_FULL_SCREEN","Salir del modo de pantalla completa"],["EXIT_LOOP_MODE","Dejar de reproducir en bucle el v\u00eddeo actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo imagen en imagen"],["FAST_FORWARD","Avanzar r\u00e1pidamente"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Reproducir en bucle"],["MORE_SETTINGS","M\u00e1s ajustes"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],
["OFF","Desactivado"],["ON","Activado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["QUALITY","Calidad"],["RECENTER_VR","Volver a centrar"],["REPLAY","Volver a reproducir"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SKIP_AD","Saltar anuncio"],["SKIP_NEXT","Siguiente"],["SKIP_TO_LIVE","Ir al v\u00eddeo en directo"],["STATISTICS","Estad\u00edsticas"],["SUBTITLE_FORCED","Forzado"],
["SURROUND","Envolvente"],["TOGGLE_STEREOSCOPIC","Activar/Desactivar estereosc\u00f3pica"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.Va("es-419",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estad\u00edsticas de anuncios"],["AD_TIME","Anuncio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],
["CAPTIONS","Subt\u00edtulos"],["CAST","Transmitir..."],["CHAPTERS","Cap\u00edtulos"],["DOWNLOAD_VIDEO_FRAME","Guardar fotograma"],["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"],["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","Velocidad de reproducci\u00f3n"],["QUALITY","Calidad"],["RECENTER_VR","Volver a centrar"],["REPLAY",
"Volver a reproducir"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisi\u00f3n en vivo"],["STATISTICS","Estad\u00edsticas"],["SUBTITLE_FORCED","Forzado"],["SURROUND","Sonido envolvente"],["TOGGLE_STEREOSCOPIC","Activar o desactivar el modo estereosc\u00f3pico"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));
a.Va("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],["AD_PROGRESS","Annonce\u00a0[AD_ON] sur\u00a0[NUM_ADS]"],["AD_STATISTICS","Statistiques sur les annonces"],["AD_TIME","Annonce\u00a0: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],["CAST","Caster\u2026"],["CHAPTERS","Chapitres"],["DOWNLOAD_VIDEO_FRAME","T\u00e9l\u00e9charger l'image de la vid\u00e9o"],["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"],["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"],["QUALITY","Qualit\u00e9"],["RECENTER_VR","Recentrer"],["REPLAY","Revoir"],["RESOLUTION","R\u00e9solution"],["REWIND","Retour arri\u00e8re"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_NEXT","Suivante"],["SKIP_TO_LIVE","Acc\u00e9der \u00e0 la partie la plus r\u00e9cente du direct"],
["STATISTICS","Statistiques"],["SUBTITLE_FORCED","Forc\u00e9"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Activer/D\u00e9sactiver le mode st\u00e9r\u00e9oscopique"],["UNDETERMINED_LANGUAGE","Langue ind\u00e9termin\u00e9e"],["UNMUTE","R\u00e9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]]));a.Va("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_STATISTICS","Statistiche sugli annunci"],["AD_TIME","Annuncio: [AD_TIME]"],
["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS","Sottotitoli"],["CAST","Trasmetti..."],["CHAPTERS","Capitoli"],["DOWNLOAD_VIDEO_FRAME","Salva fotogramma"],["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","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"],["QUALITY","Qualit\u00e0"],["RECENTER_VR","Ricentra"],["REPLAY","Riproduci di nuovo"],
["RESOLUTION","Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SKIP_AD","Salta annuncio"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["STATISTICS","Statistiche"],["SUBTITLE_FORCED","Forzata"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Pulsante di attivazione/disattivazione stereoscopico"],["UNDETERMINED_LANGUAGE","Indeterminata"],["UNMUTE","Riattiva audio"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.Va("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_STATISTICS","\u5e83\u544a\u306e\u7d71\u8a08\u60c5\u5831"],["AD_TIME","\u5e83\u544a: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u623b\u308b"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u30ad\u30e3\u30b9\u30c8..."],["CHAPTERS","\u7ae0"],["DOWNLOAD_VIDEO_FRAME","\u52d5\u753b\u30d5\u30ec\u30fc\u30e0\u3092\u4fdd\u5b58"],["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"],["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"],["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"],
["QUALITY","\u54c1\u8cea"],["RECENTER_VR","\u4e2d\u5fc3\u3092\u518d\u8a2d\u5b9a"],["REPLAY","\u3082\u3046\u4e00\u5ea6\u518d\u751f"],["RESOLUTION","\u89e3\u50cf\u5ea6"],["REWIND","\u5dfb\u304d\u623b\u3057"],["SEEK","\u30b7\u30fc\u30af\u518d\u751f"],["SKIP_AD","\u5e83\u544a\u3092\u30b9\u30ad\u30c3\u30d7"],["SKIP_TO_LIVE","\u30e9\u30a4\u30d6\u914d\u4fe1\u307e\u3067\u30b9\u30ad\u30c3\u30d7"],["STATISTICS","\u7d71\u8a08\u60c5\u5831"],["SUBTITLE_FORCED","\u5f37\u5236"],["SURROUND","\u30b5\u30e9\u30a6\u30f3\u30c9"],
["TOGGLE_STEREOSCOPIC","\u7acb\u4f53\u753b\u50cf\u3092\u5207\u308a\u66ff\u3048\u308b"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u30df\u30e5\u30fc\u30c8\u3092\u89e3\u9664"],["UNRECOGNIZED_LANGUAGE","\u4e0d\u660e"],["VOLUME","\u97f3\u91cf"]]));a.Va("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS","\uad11\uace0 [AD_ON]/[NUM_ADS]"],["AD_STATISTICS","\uad11\uace0 \ud1b5\uacc4"],["AD_TIME","\uad11\uace0: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\uc790\ub3d9"],
["BACK","\ub4a4\ub85c"],["CAPTIONS","\uc790\ub9c9"],["CAST","\uc804\uc1a1..."],["CHAPTERS","\uc7a5"],["DOWNLOAD_VIDEO_FRAME","\ub3d9\uc601\uc0c1 \ud504\ub808\uc784 \uc800\uc7a5"],["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","\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"],["QUALITY","\ud488\uc9c8"],["RECENTER_VR","\uc911\uc2ec \uc7ac\uc124\uc815"],["REPLAY","\ub2e4\uc2dc\ubcf4\uae30"],["RESOLUTION","\ud574\uc0c1\ub3c4"],["REWIND","\ub418\uac10\uae30"],["SEEK","\ucc3e\uae30"],["SKIP_AD","\uad11\uace0 \uac74\ub108\ub6f0\uae30"],["SKIP_TO_LIVE","\ub77c\uc774\ube0c \ub3d9\uc601\uc0c1\uc73c\ub85c \uac74\ub108\ub6f0\uae30"],["STATISTICS","\ud1b5\uacc4"],["SUBTITLE_FORCED","\uac15\uc81c"],["SURROUND","\uc11c\ub77c\uc6b4\ub4dc"],
["TOGGLE_STEREOSCOPIC","\uc785\uccb4 \ubcf4\uae30 \uc804\ud658"],["UNDETERMINED_LANGUAGE","\ubbf8\uc815"],["UNMUTE","\uc74c\uc18c\uac70 \ud574\uc81c"],["UNRECOGNIZED_LANGUAGE","\uc54c \uc218 \uc5c6\uc74c"],["VOLUME","\ubcfc\ub968"]]));a.Va("nl",new Map([["AD_DURATION","Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_STATISTICS","Advertentiestatistieken"],["AD_TIME","Advertentie: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS",
"Ondertiteling"],["CAST","Casten..."],["CHAPTERS","Hoofdstukken"],["DOWNLOAD_VIDEO_FRAME","Videoframe opslaan"],["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"],["MULTIPLE_LANGUAGES","Meerdere talen"],["MUTE","Geluid uitzetten"],["NOT_APPLICABLE","Niet van toepassing"],["OFF","Uit"],["ON","Aan"],["PAUSE","Onderbreken"],["PICTURE_IN_PICTURE","Scherm-in-scherm"],["PLAY","Afspelen"],["PLAYBACK_RATE","Afspeelsnelheid"],["QUALITY","Kwaliteit"],["RECENTER_VR","Opnieuw centreren"],["REPLAY","Opnieuw afspelen"],["RESOLUTION","Resolutie"],["REWIND","Terugspoelen"],["SEEK","Zoeken"],["SKIP_AD","Advertentie overslaan"],["SKIP_TO_LIVE","Doorgaan naar live"],
["STATISTICS","Statistieken"],["SUBTITLE_FORCED","Afgedwongen"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Stereoscopisch aan-/uitzetten"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Geluid aanzetten"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.Va("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama\u00a0[AD_ON] z\u00a0[NUM_ADS]"],["AD_STATISTICS","Statystyki reklam"],["AD_TIME","Reklama: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Automatycznie"],
["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesy\u0142aj..."],["CHAPTERS","Rozdzia\u0142y"],["DOWNLOAD_VIDEO_FRAME","Zapisz klatk\u0119 filmu"],["ENTER_LOOP_MODE","Odtwarzaj bie\u017c\u0105cy film w\u00a0p\u0119tli"],["ENTER_PICTURE_IN_PICTURE","W\u0142\u0105cz tryb obrazu w\u00a0obrazie"],["EXIT_FULL_SCREEN","Zamknij pe\u0142ny ekran"],["EXIT_LOOP_MODE","Wy\u0142\u0105cz odtwarzanie bie\u017c\u0105cego filmu w\u00a0p\u0119tli"],["EXIT_PICTURE_IN_PICTURE","Wy\u0142\u0105cz tryb obrazu w\u00a0obrazie"],
["FAST_FORWARD","Przewi\u0144 do przodu"],["FULL_SCREEN","Pe\u0142ny ekran"],["LANGUAGE","J\u0119zyk"],["LIVE","Na \u017cywo"],["LOOP","Odtwarzaj w\u00a0p\u0119tli"],["MORE_SETTINGS","Wi\u0119cej ustawie\u0144"],["MULTIPLE_LANGUAGES","Wiele j\u0119zyk\u00f3w"],["MUTE","Wycisz"],["NOT_APPLICABLE","Nie dotyczy"],["OFF","Wy\u0142\u0105czone"],["ON","W\u0142\u0105czone"],["PAUSE","Wstrzymaj"],["PICTURE_IN_PICTURE","Obraz w\u00a0obrazie"],["PLAY","Odtw\u00f3rz"],["PLAYBACK_RATE","Szybko\u015b\u0107 odtwarzania"],
["QUALITY","Jako\u015b\u0107"],["RECENTER_VR","Wy\u015brodkuj"],["REPLAY","Odtw\u00f3rz ponownie"],["RESOLUTION","Rozdzielczo\u015b\u0107"],["REWIND","Przewi\u0144 do ty\u0142u"],["SEEK","Szukaj"],["SKIP_AD","Pomi\u0144 reklam\u0119"],["SKIP_NEXT","Dalej"],["SKIP_TO_LIVE","Przejd\u017a do transmisji na \u017cywo"],["STATISTICS","Statystyki"],["SUBTITLE_FORCED","Wymuszone"],["SURROUND","Przestrzenny"],["TOGGLE_STEREOSCOPIC","Prze\u0142\u0105cz tryb stereoskopowy"],["UNDETERMINED_LANGUAGE","Nie okre\u015blono"],
["UNMUTE","Wy\u0142\u0105cz wyciszenie"],["UNRECOGNIZED_LANGUAGE","Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.Va("pt-BR",new Map([["AD_DURATION","Dura\u00e7\u00e3o do an\u00fancio"],["AD_PROGRESS","An\u00fancio [AD_ON] de [NUM_ADS]"],["AD_STATISTICS","Estat\u00edsticas de an\u00fancios"],["AD_TIME","An\u00fancio: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Autom\u00e1tica"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["CHAPTERS","Cap\u00edtulos"],
["DOWNLOAD_VIDEO_FRAME","Salvar frame do v\u00eddeo"],["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"],["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"],["QUALITY","Qualidade"],["RECENTER_VR","Centralizar"],["REPLAY","Repetir"],["RESOLUTION","Resolu\u00e7\u00e3o"],["REWIND","Voltar"],["SEEK","Procurar"],["SKIP_AD","Pular an\u00fancio"],["SKIP_TO_LIVE","Pular para transmiss\u00e3o ao vivo"],
["STATISTICS","Estat\u00edsticas"],["SUBTITLE_FORCED","Exibi\u00e7\u00e3o for\u00e7ada"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC","Alternar imagem estereosc\u00f3pica"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","N\u00e3o reconhecido"],["VOLUME","Volume"]]));a.Va("ru",new Map([["AD_DURATION","\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u044b"],["AD_PROGRESS",
"\u0420\u0435\u043a\u043b\u0430\u043c\u0430 [AD_ON] \u0438\u0437 [NUM_ADS]"],["AD_STATISTICS","\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439"],["AD_TIME","\u0420\u0435\u043a\u043b\u0430\u043c\u0430: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u0410\u0432\u0442\u043e"],["BACK","\u041d\u0430\u0437\u0430\u0434"],["CAPTIONS","\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b"],["CAST","\u0422\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c..."],
["CHAPTERS","\u042d\u043f\u0438\u0437\u043e\u0434\u044b"],["DOWNLOAD_VIDEO_FRAME","\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u0430\u0434\u0440 \u0432\u0438\u0434\u0435\u043e"],["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"'],
["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"'],
["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"],
["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\u044b\u043a\u043b."],["ON","\u0412\u043a\u043b."],["PAUSE","\u041f\u0430\u0443\u0437\u0430"],["PICTURE_IN_PICTURE","\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"],
["PLAY","\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438"],["PLAYBACK_RATE","\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f"],["QUALITY","\u041a\u0430\u0447\u0435\u0441\u0442\u0432\u043e"],["RECENTER_VR","\u0426\u0435\u043d\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043d\u043e\u0432\u043e"],["REPLAY","\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c"],
["RESOLUTION","\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435"],["REWIND","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u0437\u0430\u0434"],["SEEK","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430"],["SKIP_AD","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c"],["SKIP_TO_LIVE","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043f\u0440\u044f\u043c\u043e\u0439 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438"],
["STATISTICS","\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430"],["SUBTITLE_FORCED","\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e"],["SURROUND","\u041e\u0431\u044a\u0435\u043c\u043d\u044b\u0439 \u0437\u0432\u0443\u043a"],["TOGGLE_STEREOSCOPIC","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0442\u0435\u0440\u0435\u043e\u0441\u043a\u043e\u043f\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u0435\u0436\u0438\u043c"],
["UNDETERMINED_LANGUAGE","\u041d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e"],["UNMUTE","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["UNRECOGNIZED_LANGUAGE","\u041d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043e"],["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.Va("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_STATISTICS","\u0e2a\u0e16\u0e34\u0e15\u0e34\u0e42\u0e06\u0e29\u0e13\u0e32"],["AD_TIME","\u0e42\u0e06\u0e29\u0e13\u0e32: [AD_TIME]"],["AIRPLAY","AirPlay"],["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\u0e41\u0e17\u0e19\u0e40\u0e2a\u0e35\u0e22\u0e07"],["CAST","\u0e41\u0e04\u0e2a\u0e15\u0e4c..."],["CHAPTERS","\u0e1a\u0e17"],["DOWNLOAD_VIDEO_FRAME","\u0e1a\u0e31\u0e19\u0e17\u0e36\u0e01\u0e40\u0e1f\u0e23\u0e21\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d"],
["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"],["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"],["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"],["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"],["QUALITY","\u0e04\u0e38\u0e13\u0e20\u0e32\u0e1e"],["RECENTER_VR","\u0e08\u0e31\u0e14\u0e01\u0e36\u0e48\u0e07\u0e01\u0e25\u0e32\u0e07\u0e43\u0e2b\u0e21\u0e48"],["REPLAY","\u0e40\u0e25\u0e48\u0e19\u0e0b\u0e49\u0e33"],
["RESOLUTION","\u0e04\u0e27\u0e32\u0e21\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14"],["REWIND","\u0e01\u0e23\u0e2d\u0e01\u0e25\u0e31\u0e1a"],["SEEK","\u0e04\u0e49\u0e19\u0e2b\u0e32"],["SKIP_AD","\u0e02\u0e49\u0e32\u0e21\u0e42\u0e06\u0e29\u0e13\u0e32"],["SKIP_TO_LIVE","\u0e02\u0e49\u0e32\u0e21\u0e44\u0e1b\u0e17\u0e35\u0e48\u0e01\u0e32\u0e23\u0e16\u0e48\u0e32\u0e22\u0e17\u0e2d\u0e14\u0e2a\u0e14"],["STATISTICS","\u0e2a\u0e16\u0e34\u0e15\u0e34"],["SUBTITLE_FORCED","\u0e1a\u0e31\u0e07\u0e04\u0e31\u0e1a"],
["SURROUND","\u0e40\u0e0b\u0e2d\u0e23\u0e4c\u0e23\u0e32\u0e27\u0e14\u0e4c"],["TOGGLE_STEREOSCOPIC","\u0e40\u0e1b\u0e34\u0e14/\u0e1b\u0e34\u0e14\u0e1f\u0e35\u0e40\u0e08\u0e2d\u0e23\u0e4c\u0e2a\u0e32\u0e21\u0e21\u0e34\u0e15\u0e34"],["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"],["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));
a.Va("tr",new Map([["AD_DURATION","Reklam s\u00fcresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_STATISTICS","Reklam istatistikleri"],["AD_TIME","Reklam: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyaz\u0131lar"],["CAST","Yay\u0131nla..."],["CHAPTERS","B\u00f6l\u00fcmler"],["DOWNLOAD_VIDEO_FRAME","Video karesini kaydet"],["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","Mevcut videonun d\u00f6ng\u00fcs\u00fcn\u00fc durdur"],["EXIT_PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencereden \u00c7\u0131k"],["FAST_FORWARD","\u0130leri sar"],["FULL_SCREEN","Tam ekran"],["LANGUAGE","Dil"],["LIVE","Canl\u0131"],["LOOP","D\u00f6ng\u00fc"],["MORE_SETTINGS","Daha fazla ayar"],["MULTIPLE_LANGUAGES","Birden \u00e7ok dil"],["MUTE","Sesi kapat"],["NOT_APPLICABLE","Ge\u00e7erli de\u011fil"],["OFF","Kapal\u0131"],
["ON","A\u00e7\u0131k"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","\u00c7alma h\u0131z\u0131"],["QUALITY","Kalite"],["RECENTER_VR","Ortala"],["REPLAY","Tekrar Oynat"],["RESOLUTION","\u00c7\u00f6z\u00fcn\u00fcrl\u00fck"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklam\u0131 Atla"],["SKIP_TO_LIVE","Canl\u0131 yay\u0131na atla"],["STATISTICS","\u0130statistikler"],["SUBTITLE_FORCED","Zorunlu"],["SURROUND","Surround"],["TOGGLE_STEREOSCOPIC",
"Stereoskopik modu a\u00e7/kapat"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi a\u00e7"],["UNRECOGNIZED_LANGUAGE","Tan\u0131nmayan"],["VOLUME","Ses"]]));a.Va("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],["AD_PROGRESS","\u5e7f\u544a [AD_ON]/[NUM_ADS]"],["AD_STATISTICS","\u5e7f\u544a\u7edf\u8ba1\u4fe1\u606f"],["AD_TIME","\u5e7f\u544a\uff1a[AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u81ea\u52a8"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e\u2026"],
["CHAPTERS","\u7ae0\u8282"],["DOWNLOAD_VIDEO_FRAME","\u4fdd\u5b58\u89c6\u9891\u5e27"],["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"],["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"],["QUALITY","\u753b\u8d28"],["RECENTER_VR",
"\u91cd\u65b0\u7f6e\u4e2d"],["REPLAY","\u91cd\u653e"],["RESOLUTION","\u5206\u8fa8\u7387"],["REWIND","\u5feb\u9000"],["SEEK","\u8fdb\u5ea6"],["SKIP_AD","\u8df3\u8fc7\u5e7f\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["STATISTICS","\u7edf\u8ba1\u4fe1\u606f"],["SUBTITLE_FORCED","\u5df2\u5f3a\u5236\u663e\u793a"],["SURROUND","\u73af\u7ed5\u58f0"],["TOGGLE_STEREOSCOPIC","\u5207\u6362\u7acb\u4f53\u58f0"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],
["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VOLUME","\u97f3\u91cf"]]));a.Va("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],["AD_STATISTICS","\u5ee3\u544a\u7d71\u8a08\u8cc7\u6599"],["AD_TIME","\u5ee3\u544a\uff1a[AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e..."],["CHAPTERS","\u7ae0\u7bc0"],["DOWNLOAD_VIDEO_FRAME","\u5132\u5b58\u5f71\u7247\u5f71\u683c"],
["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","\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"],["QUALITY","\u97f3\u8cea"],["RECENTER_VR","\u91cd\u65b0\u7f6e\u4e2d"],["REPLAY","\u91cd\u64ad"],["RESOLUTION","\u89e3\u6790\u5ea6"],["REWIND",
2025-06-27 11:02:59 +02:00
"\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["STATISTICS","\u7d71\u8a08\u8cc7\u6599"],["SUBTITLE_FORCED","\u5f37\u5236\u986f\u793a"],["SURROUND","\u74b0\u5834\u97f3\u6548"],["TOGGLE_STEREOSCOPIC","\u5207\u63db\u7acb\u9ad4\u5f71\u50cf"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]));a.Di(navigator.languages||
[]);return a}S("shaka.ui.Controls",Z);Z.prototype.incrementRoll=Z.prototype.ph;Z.prototype.incrementPitch=Z.prototype.oh;Z.prototype.incrementYaw=Z.prototype.qh;Z.prototype.toggleStereoscopicMode=Z.prototype.Qd;Z.prototype.setVRFieldOfView=Z.prototype.lm;Z.prototype.getVRFieldOfView=Z.prototype.hl;Z.prototype.getVRNorth=Z.prototype.il;Z.prototype.isPlayingVR=Z.prototype.Tb;Z.prototype.canPlayVR=Z.prototype.Eg;Z.prototype.hideUI=Z.prototype.Ui;Z.prototype.showUI=Z.prototype.mm;
Z.prototype.isOpaque=Z.prototype.Ba;Z.prototype.hideAdUI=Z.prototype.Ti;Z.prototype.showAdUI=Z.prototype.Kj;Z.prototype.togglePiP=Z.prototype.qd;Z.prototype.isPiPEnabled=Z.prototype.le;Z.prototype.isPiPAllowed=Z.prototype.yf;Z.prototype.toggleFullScreen=Z.prototype.gg;Z.prototype.isFullScreenEnabled=Z.prototype.Nc;Z.prototype.isFullScreenSupported=Z.prototype.ke;Z.prototype.hideSettingsMenus=Z.prototype.Mc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.Dc;Z.prototype.setLastTouchEventTime=Z.prototype.Fj;
Z.prototype.getDisplayTime=Z.prototype.gh;Z.prototype.isCastAllowed=Z.prototype.ul;Z.prototype.setSeeking=Z.prototype.Yh;Z.prototype.isSeeking=Z.prototype.Al;Z.prototype.getConfig=Z.prototype.zk;Z.prototype.getClientSideAdContainer=Z.prototype.yk;Z.prototype.getServerSideAdContainer=Z.prototype.Yk;Z.prototype.getControlsContainer=Z.prototype.Ck;Z.prototype.getLocalPlayer=Z.prototype.Lk;Z.prototype.getPlayer=Z.prototype.Sb;Z.prototype.getLocalVideo=Z.prototype.Mk;Z.prototype.getVideo=Z.prototype.Kc;
Z.prototype.getVideoContainer=Z.prototype.kl;Z.prototype.getLocalization=Z.prototype.Nk;Z.prototype.getCastProxy=Z.prototype.vk;Z.prototype.getAd=Z.prototype.getAd;Z.prototype.setEnabledNativeControls=Z.prototype.Ej;Z.prototype.setEnabledShakaControls=Z.prototype.Vh;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.Dl;Z.prototype.allowCast=Z.prototype.ck;Z.registerSeekBar=function(a){UH=a};Z.registerElement=BH;Z.prototype.destroy=Z.prototype.destroy;
var CH=new Map,UH=new LG;function aI(a,b){function c(){return bI(d)}fG.call(this,a,b);var d=this;this.m=this.controls.g;this.l=this.controls.h;this.s=this.controls.l;this.j=[];cI(this);this.g=W("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");this.l.appendChild(this.g);dI(this);this.eventManager.o(this.localization,"locale-updated",function(){eI(d)});this.eventManager.o(this.localization,
"locale-changed",function(){eI(d)});this.eventManager.o(this.adManager,"ad-started",function(){d.ad&&d.ad.isLinear()&&kG(d.h,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){kG(d.h,!0)});this.eventManager.o(this.controls,"submenuopen",function(){kG(d.g,!1)});this.eventManager.o(this.g,"touchstart",function(e){d.controls.Fj(Date.now());e.stopPropagation()});this.eventManager.o(this.h,"click",function(){d.controls.Ba()&&fI(d)});eI(this);this.ad&&this.ad.isLinear()&&kG(this.h,!1);this.i=
null;window.ResizeObserver?(this.i=new ResizeObserver(c),this.i.observe(this.controls.l)):this.eventManager.o(window,"resize",c)}pa(aI,fG);aI.prototype.release=function(){this.l=null;for(var a=t(this.j),b=a.next();!b.done;b=a.next())b.value.release();this.j=[];this.i&&(this.i.disconnect(),this.i=null);fG.prototype.release.call(this)};function gI(a,b){hI.set(a,b)}
function cI(a){a.h=Lj();a.h.classList.add("shaka-overflow-menu-button");a.h.classList.add("shaka-no-propagation");a.h.classList.add("material-icons-round");a.h.classList.add("shaka-tooltip");a.h.textContent="settings";var b=W("span");b.classList.add("shaka-overflow-quality-mark");b.style.display="none";a.h.appendChild(b);a.parent.appendChild(a.h)}
function dI(a){for(var b=t(a.m.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,hI.get(c)?(c=hI.get(c),a.j.push(c.create(a.g,a.controls))):ab("Unrecognized overflow menu element requested:",c)}function fI(a){if(a.controls.Dc())a.controls.Mc();else{kG(a.g,!0);rH(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};mb(a.g.childNodes,b)&&ob(a.g.childNodes,b)[0].focus();bI(a)}}function eI(a){a.h.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
function bI(a){var b=a.g.getBoundingClientRect(),c=window.getComputedStyle(a.g),d=parseFloat(c.paddingTop);c=parseFloat(c.paddingBottom);var e=a.s.getBoundingClientRect();a.g.style.maxHeight=b.bottom-e.top-d-c+"px"}S("shaka.ui.OverflowMenu",aI);aI.registerElement=gI;function iI(){}iI.prototype.create=function(a,b){return new aI(a,b)};BH("overflow_menu",new iI);var hI=new Map;function jI(a,b){function c(e){return d.i[e]}fG.call(this,a,b);var d=this;this.h=Lj();this.h.classList.add("shaka-ad-statistics-button");this.j=W("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.h.appendChild(this.j);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-simple-overflow-button-label-inline");this.u=W("span");a.appendChild(this.u);this.m=W("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);
this.h.appendChild(a);this.parent.appendChild(this.h);this.g=W("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-ad-statistics-container");this.g.classList.add("shaka-hidden");this.controls.h.appendChild(this.g);this.C=[];this.i=this.adManager.getStats();kG(this.h,0<this.i.started);this.s=new Map;this.B=(new Map).set("loadTimes",function(e){var f=0;e=t(d.i[e]);for(var g=e.next();!g.done;g=e.next())f+=parseFloat(g.value);
return f}).set("averageLoadTime",c).set("started",c).set("overlayAds",c).set("playedCompletely",c).set("skipped",c).set("errors",c);this.l=new zf(function(){d.i=d.adManager.getStats();for(var e=t(d.C),f=e.next();!f.done;f=e.next())f=f.value,d.s.get(f).textContent=d.B.get(f)(f)});kI(this);lI(this);this.eventManager.o(this.localization,"locale-updated",function(){kI(d)});this.eventManager.o(this.localization,"locale-changed",function(){kI(d)});this.eventManager.o(this.h,"click",function(){d.controls.Ba()&&
(mI(d),kI(d))});this.eventManager.o(this.player,"loading",function(){kG(d.h,!1)});this.eventManager.o(this.adManager,"ad-started",function(){kG(d.h,!0)})}pa(jI,fG);function mI(a){a.g.classList.contains("shaka-hidden")?(a.j.textContent="insert_chart",a.l.ya(.1),kG(a.g,!0)):(a.j.textContent="insert_chart_outlined",a.l.stop(),kG(a.g,!1))}
function kI(a){a.u.textContent=a.localization.resolve("AD_STATISTICS");a.h.ariaLabel=a.localization.resolve("AD_STATISTICS");a.m.textContent=a.localization.resolve(a.g.classList.contains("shaka-hidden")?"OFF":"ON")}function nI(a,b){var c=W("div"),d=W("label");d.textContent=b+":";c.appendChild(d);d=W("span");d.textContent=a.B.get(b)(b);c.appendChild(d);a.s.set(b,d);return c}
function lI(a){var b=W("div");b.classList.add("shaka-no-propagation");b.classList.add("shaka-statistics-close");var c=W("i");c.classList.add("material-icons");c.classList.add("notranslate");c.classList.add("material-icons-round");c.textContent="close";b.appendChild(c);a.g.appendChild(b);a.eventManager.o(c,"click",function(){mI(a)});b=t(a.controls.g.adStatisticsList);for(c=b.next();!c.done;c=b.next())c=c.value,c in a.i?(a.g.appendChild(nI(a,c)),a.C.push(c)):ab("Unrecognized ad statistic element:",
c)}jI.prototype.release=function(){this.l.stop();this.l=null;fG.prototype.release.call(this)};S("shaka.ui.AdStatisticsButton",jI);function oI(){}oI.prototype.create=function(a,b){return new jI(a,b)};gI("ad_statistics",new oI);pG("ad_statistics",new oI);function pI(a,b){fG.call(this,a,b);var c=this;this.g=Lj();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");a.appendChild(this.j);
this.i=W("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);qI(this);rI(this);this.eventManager.o(this.localization,"locale-updated",function(){qI(c)});this.eventManager.o(this.localization,"locale-changed",function(){qI(c)});this.eventManager.o(this.g,"click",function(){c.controls.Ba()&&c.controls.Kc().webkitShowPlaybackTargetPicker()});a=this.controls.Kc();this.eventManager.o(a,"webkitplaybacktargetavailabilitychanged",
function(d){var e=c.player.m==Tq;kG(c.g,"available"==d.availability&&e)});this.eventManager.o(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){rI(c)})}pa(pI,fG);function rI(a){var b=a.controls.Kc();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function qI(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}S("shaka.ui.AirPlayButton",pI);function sI(){}sI.prototype.create=function(a,b){return new pI(a,b)};
gI("airplay",new sI);BH("airplay",new sI);function tI(a,b){fG.call(this,a,b);var c=this;this.g=document.createElement("canvas");this.g.style.position="absolute";this.g.style.top="0";this.g.style.left="0";this.g.style.pointerEvents="none";this.parent.appendChild(this.g);uI(this);this.i=this.h=null;window.ResizeObserver?(this.i=new ResizeObserver(function(){return uI(c)}),this.i.observe(this.parent)):window.addEventListener("resize",function(){return uI(c)})}pa(tI,fG);function vI(a){return(a=a.g.getContext("2d"))?a:null}
function uI(a){a.g.width=a.parent.offsetWidth;a.g.height=a.parent.offsetHeight}
tI.prototype.cg=function(a,b){a={type:"static",text:a,position:"top-right",color:"rgba(255, 255, 255, 0.7)",size:20,alpha:.7,interval:2E3,skip:500,displayDuration:2E3,transitionDuration:.5};b=Object.assign({},a,b||a);if("static"===b.type){if(a=vI(this)){a.clearRect(0,0,this.g.width,this.g.height);a.globalAlpha=b.alpha;a.fillStyle=b.color;a.font=b.size+"px Arial";var c=a.measureText(b.text);switch(b.position){case "top-left":c=20;var d=b.size+20;break;case "top-right":c=this.g.width-c.width-20;d=b.size+
20;break;case "bottom-left":c=20;d=this.g.height-20;break;case "bottom-right":c=this.g.width-c.width-20;d=this.g.height-20;break;default:c=(this.g.width-c.width)/2,d=(this.g.height+b.size)/2}a.fillText(b.text,c,d)}}else"dynamic"===b.type&&wI(this,b)};
function wI(a,b){function c(){if(a.h){e.clearRect(0,0,a.g.width,a.g.height);switch(h){case "fadeIn":g=Math.min(b.alpha,g+l);g>=b.alpha&&(h="display");break;case "display":0>=--k&&(h="fadeOut");break;case "fadeOut":g=Math.max(0,g-l),0>=g&&(h="transition",f=d(),k=Math.round(60*b.displayDuration),h="fadeIn")}0<g&&(e.globalAlpha=g,e.fillStyle=b.color,e.font=b.size+"px Arial",e.fillText(b.text,f.left,f.top));a.h&&(a.h=requestAnimationFrame(c))}}function d(){e.font=b.size+"px Arial";var n=e.measureText(b.text).width,
2025-06-19 04:02:44 +02:00
q=b.size;n=[{left:20,top:q+20},{left:a.g.width-n-20,top:q+20},{left:20,top:a.g.height-20},{left:a.g.width-n-20,top:a.g.height-20},{left:(a.g.width-n)/2,top:(a.g.height+q)/2}];q=n[m];m=(m+1)%n.length;return q}var e=a.g.getContext("2d"),f={left:0,top:0},g=0,h="fadeIn",k=Math.round(60*b.displayDuration),l=1/(Math.round(60*b.transitionDuration)/2),m=0;f=d();a.h=requestAnimationFrame(c)}
2025-06-27 11:02:59 +02:00
tI.prototype.Vf=function(){this.h&&(cancelAnimationFrame(this.h),this.h=null);var a=vI(this);a&&a.clearRect(0,0,this.g.width,this.g.height)};tI.prototype.release=function(){var a=this;this.g&&this.g.parentNode&&this.g.parentNode.removeChild(this.g);this.i?(this.i.disconnect(),this.i=null):window.removeEventListener("resize",function(){return uI(a)});fG.prototype.release.call(this)};S("shaka.ui.Watermark",tI);tI.prototype.removeWatermark=tI.prototype.Vf;tI.prototype.setTextWatermark=tI.prototype.cg;function xI(a,b,c,d){d=void 0===d?null:d;this.j=a;this.l=b;this.h=yI(this);var e="",f=!1;b.dataset&&b.dataset.shakaPlayerCastReceiverId?(f=b.dataset,e=f.shakaPlayerCastReceiverId,f="true"===f.shakaPlayerCastAndroidReceiverCompatible):c.dataset&&c.dataset.shakaPlayerCastReceiverId&&(f=c.dataset,e=f.shakaPlayerCastReceiverId,f="true"===f.shakaPlayerCastAndroidReceiverCompatible);e.length&&(this.h.castReceiverAppId=e,this.h.castAndroidReceiverCompatible=f);b.dataset.shakaPlayerContainer="";b.ui=this;
this.vh()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,d,this.h);c.controls||a.Zh(b);b.ui=this;c.ui=this;this.i=null}p=xI.prototype;p.destroy=function(a){a=void 0===a?!1:a;var b=this;return Q(function(c){if(1==c.g)return b.g?F(c,b.g.destroy(a),2):c.A(2);if(4!=c.g)return b.g=null,b.j?F(c,b.j.destroy(),4):c.A(4);b.j=null;b.i=null;I(c)})};p.vh=function(){return"MOBILE"==Rb().Ja()};p.wh=function(){return"TV"==Rb().Ja()};p.getConfiguration=function(){var a=yI(this);vn(a,this.h,yI(this),{},"");return a};
p.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=wn(a,b));var c=Object.assign({},this.h);vn(c,a,yI(this),{},"");var d=yn(c,this.h);if(Object.keys(d).length&&(this.h=c,this.g.configure(this.h),this.g.dispatchEvent(new U("uiupdated")),(c=this.h.castSenderUrl)&&this.h.castReceiverAppId&&window.chrome&&!chrome.cast&&!this.wh())){d=!1;for(var e=t(document.getElementsByTagName("script")),f=e.next();!f.done;f=e.next())if(f.value.src===c){d=!0;break}d||(d=document.createElement("script"),
d.src=c,d.defer=!0,document.head.appendChild(d))}};p.Bk=function(){return this.g};p.im=function(a){this.g.Vh(a)};p.cg=function(a,b){a&&!this.i&&this.l&&this.g&&(this.i=new tI(this.l,this.g));this.i&&this.i.cg(a,b)};p.Vf=function(){this.i&&this.i.Vf()};
function yI(a){var b="play_pause skip_next mute volume time_and_duration spacer overflow_menu".split(" ");window.chrome&&b.push("cast");"remote"in HTMLMediaElement.prototype?b.push("remote"):window.WebKitPlaybackTargetAvailabilityEvent&&b.push("airplay");b.push("fullscreen");b={controlPanelElements:b,overflowMenuButtons:"captions quality language chapter picture_in_picture playback_rate recenter_vr toggle_stereoscopic save_video_frame".split(" "),statisticsList:"width height currentCodecs corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent manifestSizeBytes bytesDownloaded nonFatalErrorCount manifestPeriodCount manifestGapCount".split(" "),
2025-06-19 04:02:44 +02:00
adStatisticsList:"loadTimes averageLoadTime started overlayAds playedCompletely skipped errors".split(" "),contextMenuElements:["loop","picture_in_picture","save_video_frame","statistics","ad_statistics"],playbackRates:[.5,.75,1,1.25,1.5,1.75,2],fastForwardRates:[2,4,8,1],rewindRates:[-1,-2,-4,-8],addSeekBar:!0,addBigPlayButton:!1,customContextMenu:!1,castReceiverAppId:"",castAndroidReceiverCompatible:!1,clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",
2025-06-27 11:02:59 +02:00
buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",level:"rgb(255, 255, 255)"},qualityMarks:{720:"",1080:"HD",1440:"2K",2160:"4K",4320:"8K"},trackLabelFormat:zI,textTrackLabelFormat:zI,fadeDelay:0,closeMenusDelay:2,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!1,forceLandscapeOnFullscreen:!1,enableTooltips:!0,keyboardSeekDistance:5,
keyboardLargeSeekDistance:60,fullScreenElement:a.l,preferDocumentPictureInPicture:!0,showAudioChannelCountVariants:!0,seekOnTaps:!1,tapSeekDistance:10,refreshTickInSeconds:.125,displayInVrMode:!1,defaultVrProjectionMode:"equirectangular",setupMediaSession:!0,preferVideoFullScreenInVisionOS:!1,showAudioCodec:!0,showVideoCodec:!0,castSenderUrl:"https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"};if(a.vh()){b.addBigPlayButton=!0;b.singleClickForPlayAndPause=!1;b.seekOnTaps=!0;b.enableTooltips=!1;
b.doubleClickForFullscreen=!1;a=Rb();b.enableFullscreenOnRotation="WEBKIT"!==a.Ga();b.forceLandscapeOnFullscreen=!0;var c=["play_pause","skip_next","volume"];b.controlPanelElements=b.controlPanelElements.filter(function(e){return!c.includes(e)});b.overflowMenuButtons=b.overflowMenuButtons.filter(function(e){return!c.includes(e)});b.contextMenuElements=b.contextMenuElements.filter(function(e){return!c.includes(e)})}else if(a.wh()){b.addBigPlayButton=!0;b.singleClickForPlayAndPause=!1;b.enableTooltips=
!1;b.doubleClickForFullscreen=!1;var d="play_pause cast remote airplay volume save_video_frame".split(" ");b.controlPanelElements=b.controlPanelElements.filter(function(e){return!d.includes(e)});b.overflowMenuButtons=b.overflowMenuButtons.filter(function(e){return!d.includes(e)});b.contextMenuElements=b.contextMenuElements.filter(function(e){return!d.includes(e)})}return b}
function AI(){var a,b,c,d,e,f,g,h,k,l,m,n,q,r,u,w,v,y,z,A,B,D;return Q(function(G){switch(G.g){case 1:kC();if(!pq())return BI("shaka-ui-load-failed",CI),G.return();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");c=document.querySelectorAll("[data-shaka-player-canvas]");d=document.querySelectorAll("[data-shaka-player-vr-canvas]");if(!b.length&&!a.length){G.A(2);break}if(b.length&&!a.length){e=t(b);for(f=e.next();!f.done;f=e.next())g=f.value,
g.ui||(h=document.createElement("div"),k=g.parentElement,k.replaceChild(h,g),h.appendChild(g),l=DI(h,c,d),m=l.aj,n=l.Yj,EI(h,g,m,n));G.A(2);break}q=t(a);r=q.next();case 4:if(r.done){G.A(2);break}u=r.value;if(u.ui){G.A(5);break}w=null;v=t(b);for(y=v.next();!y.done;y=v.next())if(z=y.value,z.parentElement==u){w=z;break}w||(w=document.createElement("video"),w.setAttribute("playsinline",""),u.appendChild(w));A=DI(u,c,d);B=A.aj;D=A.Yj;ta(G,7);return F(G,EI(u,w,B,D),9);case 9:wa(G,5);break;case 7:return xa(G),
BI("shaka-ui-load-failed",FI),G.return();case 5:r=q.next();G.A(4);break;case 2:BI("shaka-ui-loaded"),I(G)}})}function BI(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
function EI(a,b,c,d){var e,f,g,h,k,l,m,n,q,r;return Q(function(u){switch(u.g){case 1:e=new X;f=new xI(e,a,b,d?d:null);e.xi(c);b.controls&&f.g.Ej(!0);g=[];if(h=b.getAttribute("src"))g.push(h),b.removeAttribute("src");k=t(b.getElementsByTagName("source"));for(l=k.next();!l.done;l=k.next())m=l.value,g.push(m.src),b.removeChild(m);return F(u,e.$b(b),2);case 2:n=t(g),q=n.next();case 3:if(q.done){u.A(0);break}r=q.value;ta(u,6);return F(u,f.g.Sb().load(r),8);case 8:u.A(0);break;case 6:xa(u);case 4:q=n.next(),
u.A(3)}})}function DI(a,b,c){var d=null;b=t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,e.parentElement==a){d=e;break}d||(d=document.createElement("canvas"),d.classList.add("shaka-canvas-container"),a.appendChild(d));b=null;c=t(c);for(e=c.next();!e.done;e=c.next())if(e=e.value,e.parentElement==a){b=e;break}return{aj:d,Yj:b}}S("shaka.ui.Overlay",xI);xI.prototype.removeWatermark=xI.prototype.Vf;xI.prototype.setTextWatermark=xI.prototype.cg;xI.prototype.setEnabled=xI.prototype.im;
xI.prototype.getControls=xI.prototype.Bk;xI.prototype.configure=xI.prototype.configure;xI.prototype.getConfiguration=xI.prototype.getConfiguration;xI.prototype.isSmartTV=xI.prototype.wh;xI.prototype.isMobile=xI.prototype.vh;xI.prototype.destroy=xI.prototype.destroy;var zI=0;xI.TrackLabelFormat={LANGUAGE:zI,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var CI=0,FI=1;xI.FailReasonCode={NO_BROWSER_SUPPORT:CI,PLAYER_FAILED_TO_LOAD:FI};
"complete"==document.readyState?Q(function(a){if(1==a.g)return F(a,Promise.resolve(),2);AI();I(a)}):window.addEventListener("load",AI);function GI(a,b,c,d,e,f,g,h){function k(K){var J="";"aac"==K?J="AAC":"ac-3"===K?J="Dolby":"ec-3"===K?J="DD+":"ac-4"===K?J="Dolby AC-4":"opus"===K?J="Opus":"flac"===K&&(J="fLaC");return J?" "+J:J}function l(K){var J="";5<=K&&(J=" "+e.resolve("SURROUND"));return J}function m(K,J,L,N,O,M){J=[K,J,M];g&&null!=N&&J.push(N);h&&n(K)&&O&&J.push(O);L&&3==f&&J.push(L);return J.join(": ")}function n(K){return r.has(K)&&1<r.get(K).size}for(var q=a.find(function(K){return 1==K.active}),r=new Map,u=t(a),w=u.next();!w.done;w=
u.next())w=w.value,w.codecs&&(r.has(w.language)||r.set(w.language,new Set),r.get(w.language).add(gf(w.codecs)));u=gG(b);Pj(b);b.appendChild(u);u=new Set;q=q?m(q.language,q.roles.join(", "),q.label,q.channelsCount,q.codecs&&gf(q.codecs),q.spatialAudio):"";a=t(a);var v=a.next();for(w={};!v.done;w={Zb:void 0},v=a.next()){w.Zb=v.value;v=w.Zb.language;var y=w.Zb.roles.join(", "),z=w.Zb.label,A=w.Zb.channelsCount,B=w.Zb.codecs&&gf(w.Zb.codecs),D=w.Zb.spatialAudio,G=m(v,y,z,A,B,D);if(!u.has(G)){u.add(G);
var C=Lj();C.addEventListener("click",function(K){return function(){c(K.Zb)}}(w));var E=W("span");C.appendChild(E);E.textContent=HI(v,e);var H="";h&&g&&D&&("ec-3"==B||"ac-4"==B)?H+=" Dolby Atmos":(h&&n(v)&&(H+=k(B)),g&&(H+=l(A)));switch(f){case zI:E.textContent+=H;break;case 1:E.textContent+=H;y?E.textContent=y:(ab("Track #"+JSON.stringify(w.Zb)+" does not have a role, but the UI is configured to only show role."),E.textContent="?");break;case 2:E.textContent+=H;y&&(E.textContent+=": "+y);break;case 3:z?
E.textContent=z:(ab("Track #"+JSON.stringify(w.Zb)+" does not have a label, but the UI is configured to only show labels."),E.textContent="?")}G==q&&(C.appendChild(jG()),E.classList.add("shaka-chosen-item"),C.ariaSelected="true",d.textContent=E.textContent);b.appendChild(C)}}}
function II(a,b,c,d,e,f,g){function h(A,B,D){A=[A,B];D&&3==g&&A.push(D);return A.join(": ")}var k=a.find(function(A){return 1==A.active}),l=gG(b);Pj(b);b.appendChild(l);l=new Set;k=k?h(k.language,k.roles.join(", "),k.label):"";a=t(a);for(var m=a.next(),n={};!m.done;n={Rc:void 0},m=a.next()){n.Rc=m.value;m=n.Rc.language;var q=n.Rc.forced,r=f.resolve("SUBTITLE_FORCED"),u=n.Rc.roles.join(", "),w=n.Rc.label,v=h(m,u,w);if(!l.has(v)){l.add(v);var y=Lj();y.addEventListener("click",function(A){return function(){c(A.Rc)}}(n));
var z=W("span");y.appendChild(z);z.textContent=HI(m,f);switch(g){case zI:q&&(z.textContent+=" ("+r+")");break;case 1:u?z.textContent=u:(ab("Track #"+n.Rc.id+" does not have a role, but the UI is configured to only show role."),z.textContent="?");q&&(z.textContent+=" ("+r+")");break;case 2:u&&(z.textContent+=": "+u);q&&(z.textContent+=" ("+r+")");break;case 3:w?z.textContent=w:(ab("Track #"+n.Rc.id+" does not have a label, but the UI is configured to only show labels."),z.textContent="?")}d&&v==k&&
(y.appendChild(jG()),z.classList.add("shaka-chosen-item"),y.ariaSelected="true",e.textContent=z.textContent);b.appendChild(y)}}}function HI(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=Dc(a);return a in Do?Do[a]:c in Do?Do[c]+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function JI(a,b,c){function d(){return KI(e)}fG.call(this,a,b);var e=this;this.m=this.controls.l;LI(this,c);MI(this);NI(this);this.eventManager.o(this.button,"click",function(){e.controls.Ba()&&(e.menu.classList.contains("shaka-hidden")?(e.controls.dispatchEvent(new U("submenuopen")),kG(e.menu,!0),iG(e.menu),KI(e)):kG(e.menu,!1))});this.j=null;window.ResizeObserver?(this.j=new ResizeObserver(d),this.j.observe(this.controls.l)):this.eventManager.o(window,"resize",d)}pa(JI,fG);
JI.prototype.release=function(){this.j&&(this.j.disconnect(),this.j=null);fG.prototype.release.call(this)};
function LI(a,b){a.button=Lj();a.button.classList.add("shaka-overflow-button");a.icon=W("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);b=W("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");b.classList.add("shaka-overflow-button-label-inline");a.nameSpan=W("span");b.appendChild(a.nameSpan);a.currentSelection=W("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);
2025-06-19 04:02:44 +02:00
a.button.appendChild(b);a.parent.appendChild(a.button)}
2025-06-27 11:02:59 +02:00
function MI(a){a.menu=W("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=Lj();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.Mc()});var b=W("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
W("span");a.backButton.appendChild(a.backSpan);a.controls.h.appendChild(a.menu)}function NI(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="navigate_before",a.eventManager.o(a.menu,"click",function(){function b(c){return 0==c.classList.contains("shaka-hidden")}kG(a.menu,!1);kG(a.parent,!0);mb(a.parent.childNodes,b)&&ob(a.parent.childNodes,b)[0].focus();rH(a.controls);KI(a)}))}
function KI(a){var b=a.menu.getBoundingClientRect(),c=window.getComputedStyle(a.menu),d=parseFloat(c.paddingTop);c=parseFloat(c.paddingBottom);var e=a.m.getBoundingClientRect();a.menu.style.maxHeight=b.bottom-e.top-d-c+"px"}S("shaka.ui.SettingsMenu",JI);function OI(a,b){JI.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-audio-languages");this.eventManager.o(this.localization,"locale-updated",function(){PI(c)});this.eventManager.o(this.localization,"locale-changed",function(){PI(c)});this.eventManager.o(this.player,"loading",function(){QI(c)});this.eventManager.o(this.player,"loaded",function(){QI(c)});this.eventManager.o(this.player,
"unloading",function(){QI(c)});this.eventManager.o(this.player,"audiotrackschanged",function(){QI(c)});PI(this);QI(this)}pa(OI,JI);
function QI(a){var b=a.player.getAudioTracks()||[];GI(b,a.menu,function(c){a.player.zj(c);a.player.configure("preferredAudioLanguage",c.language);c.label&&a.player.configure("preferredAudioLabel",c.label);c.channelsCount&&a.player.configure("preferredAudioChannelCount",c.channelsCount);a.player.configure("preferSpatialAudio",c.spatialAudio)},a.currentSelection,a.localization,a.controls.g.trackLabelFormat,a.controls.g.showAudioChannelCountVariants,a.controls.g.showAudioCodec);iG(a.menu);a.controls.dispatchEvent(new U("languageselectionupdated"));
a.button.setAttribute("shaka-status",a.currentSelection.innerText);kG(a.button,2<a.menu.getElementsByTagName("button").length)}function PI(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")}S("shaka.ui.AudioLanguageSelection",OI);function RI(){}RI.prototype.create=function(a,b){return new OI(a,b)};gI("language",new RI);
BH("language",new RI);function SI(a,b){fG.call(this,a,b);var c=this;this.h=this.controls.D;this.g=Lj();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");a.classList.add("shaka-simple-overflow-button-label-inline");this.l=W("span");a.appendChild(this.l);
this.j=W("span");this.j.classList.add("shaka-current-selection-span");a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);TI(this);UI(this);this.eventManager.o(this.localization,"locale-updated",function(){TI(c)});this.eventManager.o(this.localization,"locale-changed",function(){TI(c)});this.eventManager.o(this.g,"click",function(){c.controls.Ba()&&VI(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){UI(c)})}pa(SI,fG);
function VI(a){var b;Q(function(c){if(1==c.g){if(a.h.Pa())return a.h.Oj(),c.A(0);ta(c,3);a.g.disabled=!0;return F(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,wa(c,0);b=xa(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new U("error",(new Map).set("detail",b)));I(c)})}function UI(a){var b=a.h.Dg()&&a.controls.oa,c=a.h.Pa();kG(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");WI(a)}
function WI(a){a.j.textContent=a.h.Pa()?a.h.Tf():a.localization.resolve("OFF")}function TI(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");WI(a)}S("shaka.ui.CastButton",SI);function XI(){}XI.prototype.create=function(a,b){return new SI(a,b)};gI("cast",new XI);BH("cast",new XI);function YI(a,b){JI.call(this,a,b,"bookmarks");var c=this;this.button.classList.add("shaka-chapter-button");this.menu.classList.add("shaka-chapters");this.button.classList.add("shaka-tooltip-status");this.g=[];this.h="und";this.eventManager.o(this.localization,"locale-updated",function(){ZI(c);$I(c)});this.eventManager.o(this.localization,"locale-changed",function(){ZI(c);$I(c)});this.eventManager.o(this.player,"unloading",function(){aJ(c);c.h="und";c.g=[]});this.eventManager.o(this.player,"trackschanged",
function(){$I(c)});ZI(this);$I(this)}pa(YI,JI);function ZI(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("CHAPTERS");a.nameSpan.textContent=a.localization.resolve("CHAPTERS");a.backSpan.textContent=a.localization.resolve("CHAPTERS")}function aJ(a){var b=gG(a.menu);Pj(a.menu);a.menu.appendChild(b);kG(a.button,!1)}
function $I(a){var b,c,d,e,f,g,h,k,l,m,n,q,r,u;Q(function(w){switch(w.g){case 1:b=function(v,y){return!v&&!y||v.id===y.id&&v.title===y.title&&v.startTime===y.startTime&&v.endTime===y.endTime},c="und",d=[],e=a.localization.g,f=t(Array.from(e)),g=f.next();case 2:if(g.done){w.A(4);break}c=h=g.value;if(!a.player){w.A(5);break}return F(w,a.player.fh(c),6);case 6:d=w.h||[];case 5:if(d.length){w.A(4);break}g=f.next();w.A(2);break;case 4:if(d.length){w.A(7);break}c="und";if(!a.player){w.A(7);break}return F(w,
a.player.fh(c),9);case 9:d=w.h||[];case 7:k=c!==a.h;l=a.g.length!==d.length||!a.g.some(function(v,y){y=d.at(y);return b(v,y)||d.some(function(z){return b(v,z)})});a.h=c;a.g=d;if(!d.length)aJ(a);else if(k||l){m=t(a.g);n=m.next();for(q={};!n.done;q={Fg:void 0},n=m.next())q.Fg=n.value,r=Lj(),u=W("span"),u.classList.add("shaka-chapter"),u.textContent=q.Fg.title,r.appendChild(u),a.eventManager.o(r,"click",function(v){return function(){a.controls.Ba()&&(a.video.currentTime=v.Fg.startTime)}}(q)),a.menu.appendChild(r);
kG(a.button,!0);iG(a.menu)}I(w)}})}S("shaka.ui.ChapterSelection",YI);function bJ(){}bJ.prototype.create=function(a,b){return new YI(a,b)};gI("chapter",new bJ);BH("chapter",new bJ);function cJ(a,b){fG.call(this,a,b);var c=this;this.g=Lj();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-fast-forward-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status","1x");this.g.textContent="fast_forward";this.parent.appendChild(this.g);dJ(this);this.h=this.controls.g.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){dJ(c)});this.eventManager.o(this.localization,"locale-changed",function(){dJ(c)});
this.eventManager.o(this.g,"click",function(){if(c.controls.Ba()&&c.video.duration){var d=c.h.indexOf(c.player.Xa())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.video.paused&&c.video.play();c.player.Sc(d);c.g.setAttribute("shaka-status",d+"x")}});this.eventManager.o(this.player,"ratechange",function(){c.g.setAttribute("shaka-status",c.player.Xa()+"x")})}pa(cJ,fG);function dJ(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}S("shaka.ui.FastForwardButton",cJ);function eJ(){}
eJ.prototype.create=function(a,b){return new cJ(a,b)};BH("fast_forward",new eJ);function fJ(a,b){fG.call(this,a,b);var c=this;this.h=this.controls.m;this.g=Lj();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");gJ(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);hJ(this);this.eventManager.o(this.localization,"locale-updated",function(){hJ(c)});this.eventManager.o(this.localization,"locale-changed",function(){hJ(c)});this.eventManager.o(this.g,"click",function(){return Q(function(d){return c.controls.Ba()?
F(d,c.controls.gg(),0):d.return()})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.Nc()?"fullscreen_exit":"fullscreen";hJ(c)});this.eventManager.o(this.h,"loadedmetadata",function(){gJ(c)});this.eventManager.o(this.h,"loadeddata",function(){gJ(c)});this.eventManager.o(this.adManager,"ad-started",function(){gJ(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){gJ(c)})}pa(fJ,fG);
function gJ(a){a.controls.ke()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function hJ(a){var b=a.controls.Nc()?"EXIT_FULL_SCREEN":"FULL_SCREEN";a.g.ariaLabel=a.localization.resolve(b)}S("shaka.ui.FullscreenButton",fJ);function iJ(){}iJ.prototype.create=function(a,b){return new fJ(a,b)};BH("fullscreen",new iJ);function jJ(a,b){fG.call(this,a,b);var c=this;this.g=Lj();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");a.classList.add("shaka-simple-overflow-button-label-inline");this.l=W("span");this.l.textContent=this.localization.resolve("LOOP");a.appendChild(this.l);
this.j=W("span");this.j.classList.add("shaka-current-selection-span");a.appendChild(this.j);this.g.appendChild(a);kJ(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){kJ(c)});this.eventManager.o(this.localization,"locale-changed",function(){kJ(c)});this.eventManager.o(this.g,"click",function(){c.controls.Ba()&&(c.video.loop=!c.video.loop,c.h.Ka(),c.h.ya(1))});this.m=this.video.loop;this.h=new zf(function(){c.m!=c.video.loop&&(kJ(c),c.m=c.video.loop)});
this.h.ya(1);this.eventManager.o(this.player,"unloading",function(){lJ(c)});this.eventManager.o(this.player,"loaded",function(){lJ(c)});this.eventManager.o(this.player,"manifestupdated",function(){lJ(c)});this.eventManager.o(this.video,"durationchange",function(){lJ(c)})}pa(jJ,fG);jJ.prototype.release=function(){this.h.stop();this.h=null;fG.prototype.release.call(this)};
function kJ(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")}function lJ(a){kG(a.g,!a.player.T())}S("shaka.ui.LoopButton",jJ);function mJ(){}mJ.prototype.create=function(a,b){return new jJ(a,b)};gI("loop",new mJ);BH("loop",new mJ);pG("loop",new mJ);function nJ(a,b){fG.call(this,a,b);var c=this;this.g=Lj();this.g.classList.add("shaka-mute-button");this.g.classList.add("shaka-tooltip");this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="volume_up";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.i=W("span");this.i.textContent=this.localization.resolve("MUTE");a.appendChild(this.i);this.j=W("span");this.j.classList.add("shaka-current-selection-span");
a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);oJ(this);pJ(this);this.eventManager.o(this.localization,"locale-updated",function(){oJ(c)});this.eventManager.o(this.localization,"locale-changed",function(){oJ(c)});this.eventManager.o(this.g,"click",function(){c.controls.Ba()&&(c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted||0!=c.video.volume?c.video.muted=!c.video.muted:c.video.volume=1)});this.eventManager.o(this.video,"volumechange",function(){oJ(c);
pJ(c)});this.eventManager.o(this.player,"loading",function(){oJ(c);pJ(c)});this.eventManager.o(this.player,"loaded",function(){qJ(c)});this.eventManager.o(this.player,"unloading",function(){qJ(c)});this.eventManager.o(this.player,"trackschanged",function(){qJ(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){oJ(c);pJ(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){oJ(c);pJ(c)});this.eventManager.o(this.adManager,"ad-muted",function(){oJ(c);pJ(c)});this.eventManager.o(this.adManager,
"ad-started",function(){qJ(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;oJ(c);pJ(c);qJ(c)});qJ(this)}pa(nJ,fG);function oJ(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted||0==a.video.volume?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b);a.i.textContent=a.localization.resolve(b)}function pJ(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted||0==a.video.volume?"volume_off":"volume_up";a.h.textContent=b}
function qJ(a){var b=!0;a.ad&&a.ad.isLinear()?b=!0:a.player.xh()&&(b=!1);kG(a.g,b)}S("shaka.ui.MuteButton",nJ);function rJ(){}rJ.prototype.create=function(a,b){return new nJ(a,b)};gI("mute",new rJ);BH("mute",new rJ);pG("mute",new rJ);function sJ(a,b){fG.call(this,a,b);var c=this;this.l=this.controls.m;this.g=Lj();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");a.classList.add("shaka-simple-overflow-button-label-inline");this.j=W("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");
a.appendChild(this.j);this.h=W("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);tJ(this);this.parent.appendChild(this.g);this.controls.yf()||kG(this.g,!1);this.eventManager.o(this.localization,"locale-updated",function(){tJ(c)});this.eventManager.o(this.localization,"locale-changed",function(){tJ(c)});this.eventManager.o(this.g,"click",function(){c.controls.Ba()&&c.controls.qd()});this.eventManager.o(this.l,"enterpictureinpicture",function(){uJ(c)});
this.eventManager.o(this.l,"leavepictureinpicture",function(){vJ(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){wJ(c)});this.eventManager.o(this.player,"trackschanged",function(){wJ(c)});"documentPictureInPicture"in window&&this.eventManager.o(window.documentPictureInPicture,"enter",function(d){uJ(c);c.eventManager.qa(d.window,"pagehide",function(){vJ(c)})})}pa(sJ,fG);
function uJ(a){a.i.textContent="branding_watermark";a.g.ariaLabel=a.localization.resolve("EXIT_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("ON")}function vJ(a){a.i.textContent="picture_in_picture_alt";a.g.ariaLabel=a.localization.resolve("ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve("OFF")}
function tJ(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");var b=a.controls.le();a.g.ariaLabel=a.localization.resolve(b?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(b?"ON":"OFF")}function wJ(a){Q(function(b){if(!a.controls.yf())return kG(a.g,!1),a.controls.le()?F(b,a.controls.qd(),0):b.A(0);if(!a.player||!a.player.Cd())return kG(a.g,!0),b.A(0);kG(a.g,!1);return a.controls.le()?F(b,a.controls.qd(),0):b.A(0)})}S("shaka.ui.PipButton",sJ);
function xJ(){}xJ.prototype.create=function(a,b){return new sJ(a,b)};gI("picture_in_picture",new xJ);BH("picture_in_picture",new xJ);pG("picture_in_picture",new xJ);function yJ(a,b){JI.call(this,a,b,"slow_motion_video");var c=this;this.button.classList.add("shaka-playbackrate-button");this.menu.classList.add("shaka-playback-rates");this.button.classList.add("shaka-tooltip-status");Array.from(a.classList).includes("shaka-overflow-menu")||(this.g=W("span"),this.g.classList.add("shaka-overflow-playback-rate-mark"),this.button.appendChild(this.g));this.eventManager.o(this.localization,"locale-updated",function(){zJ(c)});this.eventManager.o(this.localization,"locale-changed",
function(){zJ(c)});this.eventManager.o(this.player,"loaded",function(){AJ(c)});this.eventManager.o(this.player,"ratechange",function(){AJ(c)});zJ(this);BJ(this);AJ(this)}pa(yJ,JI);function zJ(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")}
function AJ(a){var b=a.player.Xa(),c=hG(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 e.textContent==b+"x"}))d=c.parentElement,d.appendChild(jG()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",
b+"x");a.g&&(a.g.textContent=b+"x")}function BJ(a){for(var b=t(a.controls.g.playbackRates),c=b.next(),d={};!c.done;d={Sf:void 0},c=b.next()){d.Sf=c.value;c=Lj();var e=W("span");e.textContent=d.Sf+"x";c.appendChild(e);a.eventManager.o(c,"click",function(f){return function(){f.Sf==a.video.defaultPlaybackRate?a.player.ud():a.player.Sc(f.Sf,!1)}}(d));a.menu.appendChild(c)}iG(a.menu)}S("shaka.ui.PlaybackRateSelection",yJ);function CJ(){}CJ.prototype.create=function(a,b){return new yJ(a,b)};
gI("playback_rate",new CJ);BH("playback_rate",new CJ);function DJ(a,b){fG.call(this,a,b);var c=this;this.g=Lj();this.g.classList.add("shaka-current-time");EJ(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.controls.Ba()&&c.player.T()&&(c.video.currentTime=c.player.xa().end)});this.eventManager.o(this.player,"loading",function(){kG(c.g,!0)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.R,e=c.controls.gh(),f=c.player.xa(),g=f.end-f.start;isFinite(g)?c.player.T()?(e=
Math.max(0,Math.floor(f.end-e)),g=3600<=g,1<=e||d?(EJ(c,"- "+lG(e,g)),c.g.disabled=!1):(EJ(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=g,e=lG(Math.max(0,e-f.start),d),g&&(e+=" / "+lG(g,d)),EJ(c,e),c.g.disabled=!0):(EJ(c,c.localization.resolve("LIVE")),c.g.disabled=!0)});this.eventManager.o(this.player,"trackschanged",function(){c.player.T()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))});this.eventManager.o(this.adManager,"ad-started",function(){kG(c.g,!c.ad.isLinear())});
this.eventManager.o(this.adManager,"ad-stopped",function(){kG(c.g,!0)})}pa(DJ,fG);function EJ(a,b){b!=a.g.textContent&&(a.g.textContent=b)}S("shaka.ui.PresentationTimeTracker",DJ);function FJ(){}FJ.prototype.create=function(a,b){return new DJ(a,b)};BH("time_and_duration",new FJ);function GJ(a,b){fG.call(this,a,b);var c=this;this.g=Lj();this.g.classList.add("shaka-recenter-vr-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="control_camera";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");a.appendChild(this.j);this.i=W("span");this.i.classList.add("shaka-current-selection-span");
a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);HJ(this);this.eventManager.o(this.localization,"locale-updated",function(){HJ(c)});this.eventManager.o(this.localization,"locale-changed",function(){HJ(c)});var d=this.controls.C;this.eventManager.o(this.g,"click",function(){c.controls.Ba()&&(d.g?iH(d.g):ab("Not playing VR content"))});this.eventManager.o(d,"vrstatuschanged",function(){kG(c.g,c.controls.Tb())});kG(this.g,this.controls.Tb())}pa(GJ,fG);
function HJ(a){a.g.ariaLabel=a.localization.resolve("RECENTER_VR");a.j.textContent=a.localization.resolve("RECENTER_VR")}S("shaka.ui.RecenterVRButton",GJ);function IJ(){}IJ.prototype.create=function(a,b){return new GJ(a,b)};gI("recenter_vr",new IJ);BH("recenter_vr",new IJ);function SJ(a,b){fG.call(this,a,b);var c=this;this.j=Rb().eg();this.g=Lj();this.g.classList.add("shaka-remote-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=W("i");this.i.classList.add("material-icons-round");this.i.textContent=this.j?"airplay":"cast";this.g.appendChild(this.i);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.m=W("span");a.appendChild(this.m);this.l=W("span");this.l.classList.add("shaka-current-selection-span");
a.appendChild(this.l);this.g.appendChild(a);this.parent.appendChild(this.g);this.h=-1;TJ(this);kG(this.g,!1);this.video.remote?(this.eventManager.o(this.localization,"locale-updated",function(){TJ(c)}),this.eventManager.o(this.localization,"locale-changed",function(){TJ(c)}),this.eventManager.o(this.controls,"caststatuschanged",function(){UJ(c)}),this.eventManager.o(this.g,"click",function(){c.controls.Ba()&&c.video.remote.prompt().catch(function(){})}),this.eventManager.o(this.video.remote,"connect",
function(){UJ(c);VJ(c)}),this.eventManager.o(this.video.remote,"connecting",function(){UJ(c);VJ(c)}),this.eventManager.o(this.video.remote,"disconnect",function(){UJ(c);VJ(c)}),this.eventManager.o(this.player,"loaded",function(){UJ(c)}),UJ(this,!0),VJ(this)):this.g.classList.add("shaka-hidden")}pa(SJ,fG);SJ.prototype.release=function(){this.video.remote&&-1!=this.h&&this.video.remote.cancelWatchAvailability(this.h).catch(function(){});fG.prototype.release.call(this)};
function UJ(a,b){b=void 0===b?!1:b;var c,d;Q(function(e){switch(e.g){case 1:if(a.controls.D.Dg()&&a.controls.oa||!a.video.remote){kG(a.g,!1);-1!=a.h&&(a.video.remote.cancelWatchAvailability(a.h),a.h=-1);e.A(0);break}if("disconnected"==a.video.remote.state||b){c=function(f){if(a.player){var g=a.video.disableRemotePlayback,h=!0;Rb().eg()&&a.player.m==Qq&&"HLS"!=a.player.jh()&&(h=!1);kG(a.g,h&&f&&!g)}else kG(a.g,!1)};ta(e,7);if(-1==a.h){e.A(9);break}return F(e,a.video.remote.cancelWatchAvailability(a.h),
10)}kG(a.g,!0);if(-1==a.h){e.A(0);break}return F(e,a.video.remote.cancelWatchAvailability(a.h),6);case 6:a.h=-1;e.A(0);break;case 10:a.h=-1;case 9:wa(e,8);break;case 7:xa(e);case 8:return ta(e,11),F(e,a.video.remote.watchAvailability(c),13);case 13:d=e.h;a.h=d;wa(e,0);break;case 11:xa(e),c(!0),I(e)}})}function TJ(a){var b=a.j?a.localization.resolve("AIRPLAY"):a.localization.resolve("CAST");a.g.ariaLabel=b;a.m.textContent=b}
function VJ(a){a.j||(a.i.textContent="disconnected"==a.video.remote.state?"cast":"cast_connected")}S("shaka.ui.RemoteButton",SJ);function WJ(){}WJ.prototype.create=function(a,b){return new SJ(a,b)};gI("remote",new WJ);BH("remote",new WJ);function XJ(a,b){JI.call(this,a,b,"tune");var c=this;this.button.classList.add("shaka-resolution-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-resolutions");this.h=W("span");this.h.classList.add("shaka-current-auto-quality");this.h.style.display="none";this.i=W("sup");this.i.classList.add("shaka-current-quality-mark");this.i.style.display="none";Array.from(a.classList).includes("shaka-overflow-menu")?this.parent.parentElement&&(this.g=Oj(this.parent.parentElement)):
(this.g=W("span"),this.g.classList.add("shaka-overflow-playback-rate-mark"),this.button.appendChild(this.g));a=W("span");this.button.childNodes[1].appendChild(a);a.appendChild(this.currentSelection);a.appendChild(this.h);a.appendChild(this.i);this.eventManager.o(this.localization,"locale-updated",function(){YJ(c)});this.eventManager.o(this.localization,"locale-changed",function(){YJ(c)});this.eventManager.o(this.player,"loading",function(){ZJ(c);$J(c)});this.eventManager.o(this.player,"loaded",function(){ZJ(c);
$J(c)});this.eventManager.o(this.player,"unloading",function(){ZJ(c);$J(c)});this.eventManager.o(this.player,"variantchanged",function(){ZJ(c);$J(c)});this.eventManager.o(this.player,"trackschanged",function(){ZJ(c);$J(c)});this.eventManager.o(this.player,"abrstatuschanged",function(){ZJ(c);$J(c)});this.eventManager.o(this.player,"adaptation",function(){ZJ(c);$J(c)});ZJ(this)}pa(XJ,JI);
function $J(a){var b=a.player.getConfiguration().abr.enabled;if(a.player.Cd()){a.i.textContent="";a.i.style.display="none";a.g&&(a.g.textContent="",a.g.style.display="none");var c=a.player.qb()||[],d=c.find(function(e){return e.active});d&&(b?(a.h.textContent=d.bandwidth?aK(a,d,c):"Unknown",a.h.style.display=""):a.h.style.display="none")}else c=a.player.getVideoTracks()||[],(d=c.find(function(e){return e.active}))?(b?(a.h.textContent=d.height&&d.width?bK(a,d,c):d.bandwidth?Math.round(d.bandwidth/
1E3)+" kbits/s":"Unknown",a.h.style.display=""):a.h.style.display="none",b=cK(a,d.width,d.height),a.i.textContent=b,a.i.style.display=""!==b?"":"none",a.g&&(a.g.textContent=b,a.g.style.display=""!==b?"":"none")):a.g&&(b=a.player.getStats(),b=cK(a,b.width,b.height),a.g.textContent=b,a.g.style.display=""!==b?"":"none")}
function cK(a,b,c){if(!b||!c)return"";c>b&&(c=t([c,b]),b=c.next().value,c=c.next().value);b/c>16/9&&(c=Math.round(9*b/16));a=a.controls.g.qualityMarks;return 8640<=c?c+"p":4320<=c?a["4320"]:2160<=c?a["2160"]:1440<=c?a["1440"]:1080<=c?a["1080"]:720<=c?a["720"]:""}
function ZJ(a){var b=gG(a.menu);Pj(a.menu);a.menu.appendChild(b);b=0;b=a.player.Cd()?dK(a):eK(a);var c=Lj();c.classList.add("shaka-enable-abr-button");a.eventManager.o(c,"click",function(){a.player.configure({abr:{enabled:!0}});ZJ(a)});a.l=W("span");a.l.textContent=a.localization.resolve("AUTO_QUALITY");c.appendChild(a.l);a.player.getConfiguration().abr.enabled&&(c.ariaSelected="true",c.appendChild(jG()),a.l.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));
a.button.setAttribute("shaka-status",a.currentSelection.textContent);a.menu.appendChild(c);iG(a.menu);a.controls.dispatchEvent(new U("resolutionselectionupdated"));YJ(a);kG(a.button,0<b)}
function dK(a){var b=[];a.player.m==Tq||a.player.Ca()||(b=a.player.qb()||[]);var c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){if(k.language!=c.language||a.controls.g.showAudioChannelCountVariants&&k.channelsCount&&c.channelsCount&&k.channelsCount!=c.channelsCount)return!1;var l=a.controls.g.trackLabelFormat;return(1==l||2==l)&&JSON.stringify(k.audioRoles)!=JSON.stringify(c.audioRoles)||3==l&&k.label!=c.label||!k.bandwidth?!1:!0}));b=b.filter(function(k,l){return b.findIndex(function(m){return m.bandwidth==
k.bandwidth})==l});b.sort(function(k,l){return l.bandwidth-k.bandwidth});for(var d=a.player.getConfiguration().abr.enabled,e=t(b),f=e.next(),g={};!f.done;g={De:void 0},f=e.next()){g.De=f.value;f=Lj();f.classList.add("explicit-resolution");a.eventManager.o(f,"click",function(k){return function(){var l=k.De;a.player.configure({abr:{enabled:!1}});a.player.ye(l,a.controls.g.clearBufferOnQualityChange)}}(g));var h=W("span");h.textContent=g.De.bandwidth?aK(a,g.De,b):"Unknown";f.appendChild(h);d||g.De!=
c||(f.ariaSelected="true",f.appendChild(jG()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(f)}return b.length}
function eK(a){var b=a.player.getVideoTracks()||[],c=b.find(function(m){return m.active});b=b.filter(function(m,n){return b.findIndex(function(q){var r=q.height==m.height&&q.bandwidth==m.bandwidth&&q.frameRate==m.frameRate&&q.hdr==m.hdr&&q.videoLayout==m.videoLayout;r&&a.controls.g.showVideoCodec&&q.codecs&&m.codecs&&(r=gf(q.codecs)==gf(m.codecs));return r})==n});b.sort(function(m,n){return n.height==m.height||null==m.height||null==n.height?n.bandwidth-m.bandwidth:n.height-m.height});for(var d=a.player.getConfiguration().abr.enabled,
e=t(b),f=e.next(),g={};!f.done;g={jc:void 0},f=e.next()){g.jc=f.value;f=Lj();f.classList.add("explicit-resolution");a.eventManager.o(f,"click",function(m){return function(){var n=m.jc;a.player.configure({abr:{enabled:!1}});a.player.Aj(n,a.controls.g.clearBufferOnQualityChange)}}(g));var h=W("span");h.textContent=g.jc.height&&g.jc.width?bK(a,g.jc,b):g.jc.bandwidth?Math.round(g.jc.bandwidth/1E3)+" kbits/s":"Unknown";f.appendChild(h);var k=cK(a,g.jc.width,g.jc.height);if(""!==k){var l=W("sup");l.classList.add("shaka-quality-mark");
l.textContent=k;f.appendChild(l)}d||g.jc!=c||(f.ariaSelected="true",f.appendChild(jG()),h.classList.add("shaka-chosen-item"),a.currentSelection.textContent=h.textContent);a.menu.appendChild(f)}return b.length}
function bK(a,b,c){function d(l,m){return l!=m&&l.height==m.height&&l.hdr==m.hdr&&Math.round(l.frameRate||0)==Math.round(m.frameRate||0)}var e=b.height||0,f=b.width||0;e>f&&(e=t([e,f]),f=e.next().value,e=e.next().value);var g=e;f/e>16/9&&(g=Math.round(9*f/16));f=g+"p";e=new Set;g=t(c);for(var h=g.next();!h.done;h=g.next())h=h.value,h.frameRate&&e.add(Math.round(h.frameRate));1<e.size&&(e=b.frameRate)&&(50<=e||20>=e)&&(f+=Math.round(b.frameRate));if("PQ"==b.hdr||"HLG"==b.hdr)f+=" HDR";(b.videoLayout||
"").includes("CH-STEREO")&&(f+=" 3D");if(c.some(function(l){return d(b,l)})&&(c.some(function(l){return d(b,l)&&l.bandwidth==b.bandwidth})||(f+=" ("+Math.round(b.bandwidth/1E3)+" kbits/s)"),a.controls.g.showVideoCodec)){var k=function(l){var m="";l&&(l=gf(l),m=l.startsWith("dovi-")?"Dolby Vision":l.toUpperCase());return m?" "+m:m};c.some(function(l){return d(b,l)&&k(l.codecs)!=k(b.codecs)})&&(f+=k(b.codecs))}return f}
function aK(a,b,c){var d=Math.round(b.bandwidth/1E3)+" kbits/s";if(a.controls.g.showAudioCodec){var e=function(f){var g="";f&&(g=gf(f).toUpperCase());return g?" "+g:g};c.some(function(f){return e(f.codecs)!=e(b.codecs)})&&(d+=e(b.codecs))}return d}
function YJ(a){var b=a.player.Cd()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.localization.resolve(b);a.backButton.ariaLabel=a.localization.resolve(b);a.backSpan.textContent=a.localization.resolve(b);a.nameSpan.textContent=a.localization.resolve(b);a.l.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}S("shaka.ui.ResolutionSelection",XJ);function fK(){}
fK.prototype.create=function(a,b){return new XJ(a,b)};gI("quality",new fK);BH("quality",new fK);function gK(a,b){fG.call(this,a,b);var c=this;this.g=Lj();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-rewind-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status",this.localization.resolve("OFF"));this.g.textContent="fast_rewind";this.parent.appendChild(this.g);hK(this);this.h=this.controls.g.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){hK(c)});this.eventManager.o(this.localization,"locale-changed",function(){hK(c)});
this.eventManager.o(this.g,"click",function(){if(c.controls.Ba()&&c.video.duration){var d=c.h.indexOf(c.player.Xa())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.video.paused&&c.video.play();c.player.Sc(d);c.g.setAttribute("shaka-status",d+"x")}});this.eventManager.o(this.player,"ratechange",function(){c.g.setAttribute("shaka-status",c.player.Xa()+"x")})}pa(gK,fG);function hK(a){a.g.ariaLabel=a.localization.resolve("REWIND")}S("shaka.ui.RewindButton",gK);function iK(){}
iK.prototype.create=function(a,b){return new gK(a,b)};BH("rewind",new iK);function jK(a,b){fG.call(this,a,b);var c=this;this.l=this.controls.D;this.g=Lj();this.g.classList.add("shaka-save.video-frame-button");this.g.classList.add("shaka-tooltip");this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="download";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.i=W("span");this.i.textContent=this.localization.resolve("DOWNLOAD_VIDEO_FRAME");a.appendChild(this.i);
this.j=W("span");this.j.classList.add("shaka-current-selection-span");a.appendChild(this.j);this.g.appendChild(a);kK(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){kK(c)});this.eventManager.o(this.localization,"locale-changed",function(){kK(c)});this.eventManager.o(this.g,"click",function(){var d=document.createElement("canvas"),e=d.getContext("2d"),f=c.controls.m;d.width=f.videoWidth;d.height=f.videoHeight;e.drawImage(f,0,0,d.width,d.height);
d=d.toDataURL("image/png");e=document.createElement("a");e.href=d;e.download="videoframe_"+f.currentTime.toFixed(3)+".png";e.click()});this.eventManager.o(this.controls.C,"vrstatuschanged",function(){lK(c)});this.eventManager.o(this.adManager,"ad-started",function(){lK(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){lK(c)});this.eventManager.o(this.player,"unloading",function(){lK(c)});this.eventManager.o(this.player,"loaded",function(){lK(c)});this.eventManager.o(this.video,"play",
function(){lK(c)});this.eventManager.o(this.video,"pause",function(){lK(c)});this.eventManager.o(this.video,"seeking",function(){lK(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){lK(c)});lK(this)}pa(jK,fG);function lK(a){var b=!0;a.controls.Tb()&&(b=!1);b&&a.l.Pa()&&(b=!1);b&&(a.player.drmInfo()||a.player.Cd())&&(b=!1);b&&a.ad&&(b=!1);b&&a.video.remote&&"disconnected"!=a.video.remote.state&&(b=!1);kG(a.g,b)}
function kK(a){a.g.ariaLabel=a.localization.resolve("DOWNLOAD_VIDEO_FRAME");a.i.textContent=a.localization.resolve("DOWNLOAD_VIDEO_FRAME")}S("shaka.ui.SaveVideoFrameButton",jK);function mK(){}mK.prototype.create=function(a,b){return new jK(a,b)};gI("save_video_frame",new mK);pG("save_video_frame",new mK);function nK(a,b){fG.call(this,a,b);var c=this;if(this.h=this.player.lh())this.g=Lj(),this.g.classList.add("shaka-skip-next-button"),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-tooltip"),this.g.textContent="skip_next",this.parent.appendChild(this.g),oK(this),pK(this),this.eventManager.o(this.localization,"locale-updated",function(){oK(c)}),this.eventManager.o(this.localization,"locale-changed",function(){oK(c)}),this.eventManager.o(this.g,"click",function(){c.controls.Ba()&&
c.h.playItem(c.h.getCurrentItemIndex()+1)}),this.eventManager.o(this.h,"currentitemchanged",function(){pK(c)}),this.eventManager.o(this.h,"itemsinserted",function(){pK(c)}),this.eventManager.o(this.h,"itemsremoved",function(){pK(c)}),this.eventManager.o(this.player,"loading",function(){pK(c)})}pa(nK,fG);function oK(a){a.g.ariaLabel=a.localization.resolve("SKIP_NEXT")}function pK(a){var b=a.h.getItems().length;b=1<b&&a.h.getCurrentItemIndex()+1<b;kG(a.g,b)}S("shaka.ui.SkipNextButton",nK);
function qK(){}qK.prototype.create=function(a,b){return new nK(a,b)};BH("skip_next",new qK);function rK(a,b){rG.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.button.classList.add("shaka-tooltip")}pa(rK,rG);S("shaka.ui.SmallPlayButton",rK);function sK(){}sK.prototype.create=function(a,b){return new rK(a,b)};BH("play_pause",new sK);function tK(a,b){fG.call(this,a,b);a=W("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}pa(tK,fG);S("shaka.ui.Spacer",tK);function uK(){}uK.prototype.create=function(a,b){return new tK(a,b)};BH("spacer",new uK);function vK(a,b){function c(m){m=parseInt(l.g[m],10);return 2E9<m?(m/1E9).toFixed(2)+"GB":1E6<m?(m/1E6).toFixed(2)+"MB":1E3<m?(m/1E3).toFixed(2)+"KB":m+"B"}function d(m){return l.g[m]+" (gaps)"}function e(m){return lG(l.g[m],!1)+" (m)"}function f(m){return Math.round(l.g[m]/1E3)+" (kbits/s)"}function g(m){return l.g[m].toFixed(2)+" (s)"}function h(m){return l.g[m]+" (frames)"}function k(m){return l.g[m]+" (px)"}fG.call(this,a,b);var l=this;this.i=Lj();this.i.classList.add("shaka-statistics-button");
2025-06-19 04:02:44 +02:00
this.j=W("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-simple-overflow-button-label-inline");this.u=W("span");a.appendChild(this.u);this.m=W("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.i.appendChild(a);this.parent.appendChild(this.i);this.h=W("div");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");
this.h.classList.add("shaka-statistics-container");this.h.classList.add("shaka-hidden");this.controls.h.appendChild(this.h);this.C=[];this.D=["stateHistory","switchHistory"];this.g=this.player.getStats();this.s=new Map;this.B=(new Map).set("width",k).set("height",k).set("currentCodecs",function(m){return l.g[m]}).set("completionPercent",function(m){return l.g[m]+" (%)"}).set("bufferingTime",g).set("drmTimeSeconds",g).set("licenseTime",g).set("liveLatency",g).set("loadLatency",g).set("manifestTimeSeconds",
2025-06-27 11:02:59 +02:00
g).set("estimatedBandwidth",f).set("streamBandwidth",f).set("maxSegmentDuration",g).set("pauseTime",e).set("playTime",e).set("corruptedFrames",h).set("decodedFrames",h).set("droppedFrames",h).set("stallsDetected",function(m){return l.g[m]+" (stalls)"}).set("gapsJumped",d).set("manifestSizeBytes",c).set("bytesDownloaded",c).set("nonFatalErrorCount",function(m){return l.g[m]+" (errors)"}).set("manifestPeriodCount",function(m){return l.g[m]+" (periods)"}).set("manifestGapCount",d);this.l=new zf(function(){l.g=
l.player.getStats();for(var m=t(l.C),n=m.next();!n.done;n=m.next()){var q=n.value;n=l.s.get(q);n.textContent=l.B.get(q)(q);n&&n.parentElement&&(q=l.g[q],"string"==typeof q?kG(n.parentElement,""!=q):kG(n.parentElement,!isNaN(q)))}});wK(this);xK(this);this.eventManager.o(this.localization,"locale-updated",function(){wK(l)});this.eventManager.o(this.localization,"locale-changed",function(){wK(l)});this.eventManager.o(this.i,"click",function(){yK(l);wK(l)})}pa(vK,fG);
function yK(a){a.h.classList.contains("shaka-hidden")?(a.j.textContent="insert_chart",a.l.ya(.1),kG(a.h,!0)):(a.j.textContent="insert_chart_outlined",a.l.stop(),kG(a.h,!1))}function wK(a){a.u.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.h.classList.contains("shaka-hidden")?"OFF":"ON")}
function zK(a,b){var c=W("div"),d=W("label");d.textContent=b+":";c.appendChild(d);d=W("span");d.textContent=a.B.get(b)(b);c.appendChild(d);a.s.set(b,d);return c}
function xK(a){var b=W("div");b.classList.add("shaka-no-propagation");b.classList.add("shaka-statistics-close");var c=W("i");c.classList.add("material-icons");c.classList.add("notranslate");c.classList.add("material-icons-round");c.textContent="close";b.appendChild(c);a.h.appendChild(b);a.eventManager.o(c,"click",function(){yK(a)});b=t(a.controls.g.statisticsList);for(c=b.next();!c.done;c=b.next())if(c=c.value,c in a.g&&!a.D.includes(c)){var d=zK(a,c);a.h.appendChild(d);a.C.push(c)}else ab("Unrecognized statistic element:",
c)}vK.prototype.release=function(){this.l.stop();this.l=null;fG.prototype.release.call(this)};S("shaka.ui.StatisticsButton",vK);function AK(){}AK.prototype.create=function(a,b){return new vK(a,b)};gI("statistics",new AK);pG("statistics",new AK);function BK(a,b){JI.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-text-languages");this.player&&this.player.gd()?this.button.ariaPressed="true":this.button.ariaPressed="false";CK(this);this.eventManager.o(this.localization,"locale-updated",function(){DK(c);EK(c)});this.eventManager.o(this.localization,"locale-changed",function(){DK(c);EK(c)});this.eventManager.o(this.player,
"loading",function(){FK(c);EK(c)});this.eventManager.o(this.player,"loaded",function(){FK(c);EK(c)});this.eventManager.o(this.player,"unloading",function(){FK(c);EK(c)});this.eventManager.o(this.player,"texttrackvisibility",function(){FK(c);EK(c)});this.eventManager.o(this.player,"textchanged",function(){EK(c)});this.eventManager.o(this.player,"trackschanged",function(){EK(c)});FK(this);DK(this);EK(this)}pa(BK,JI);
function CK(a){var b=Lj();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(jG());a.g=W("span");b.appendChild(a.g)}function FK(a){a.player.gd()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new U("captionselectionupdated"))}
function EK(a){var b=a.player.rc()||[];II(b,a.menu,function(d){return GK(a,d)},a.player.gd(),a.currentSelection,a.localization,a.controls.g.textTrackLabelFormat);var c=Lj();c.classList.add("shaka-turn-captions-off-button");a.eventManager.o(c,"click",function(){a.player.Ae(!1);EK(a)});c.appendChild(a.g);a.menu.appendChild(c);a.player.gd()?a.g.classList.remove("shaka-chosen-item"):(c.ariaSelected="true",c.appendChild(jG()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));
a.button.setAttribute("shaka-status",a.currentSelection.textContent);iG(a.menu);a.controls.dispatchEvent(new U("captionselectionupdated"));kG(a.button,0<b.length)}function GK(a,b){return Q(function(c){if(1==c.g)return a.player.$f(b),F(c,a.player.Ae(!0),2);a.player.configure("preferredTextLanguage",b.language);a.player.configure("preferForcedSubs",b.forced);I(c)})}
function DK(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")}S("shaka.ui.TextSelection",BK);function HK(){}HK.prototype.create=function(a,b){return new BK(a,b)};gI("captions",new HK);BH("captions",new HK);function IK(a,b){fG.call(this,a,b);var c=this;this.g=Lj();this.g.classList.add("shaka-toggle-stereoscopic-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=W("i");this.h.classList.add("material-icons-round");this.h.textContent="3d_rotation";this.g.appendChild(this.h);a=W("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=W("span");a.appendChild(this.j);this.i=W("span");this.i.classList.add("shaka-current-selection-span");
a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);JK(this);this.eventManager.o(this.localization,"locale-updated",function(){JK(c)});this.eventManager.o(this.localization,"locale-changed",function(){JK(c)});var d=this.controls.C;this.eventManager.o(this.g,"click",function(){c.controls.Ba()&&d.Qd()});this.eventManager.o(d,"vrstatuschanged",function(){kG(c.g,c.controls.Tb())});kG(this.g,this.controls.Tb())}pa(IK,fG);
function JK(a){a.g.ariaLabel=a.localization.resolve("TOGGLE_STEREOSCOPIC");a.j.textContent=a.localization.resolve("TOGGLE_STEREOSCOPIC")}S("shaka.ui.ToggleStereoscopicButton",IK);function KK(){}KK.prototype.create=function(a,b){return new IK(a,b)};gI("toggle_stereoscopic",new KK);BH("toggle_stereoscopic",new KK);function LK(a,b){zG.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.g=this.controls.g;this.setRange(0,100);this.eventManager.o(this.video,"volumechange",function(){return MK(c)});this.eventManager.o(this.player,"loading",function(){return MK(c)});this.eventManager.o(this.player,"loaded",function(){return NK(c)});this.eventManager.o(this.player,"unloading",function(){return NK(c)});this.eventManager.o(this.player,"trackschanged",function(){return NK(c)});this.eventManager.o(this.controls,
"caststatuschanged",function(){return MK(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return OK(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return OK(c)});this.eventManager.o(this.adManager,"ad-started",function(){return NK(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){NK(c);MK(c)});this.eventManager.o(this.localization,"locale-updated",function(){return PK(c)});this.eventManager.o(this.localization,"locale-changed",function(){return PK(c)});
MK(this);PK(this);if(this.ad)this.onChange();NK(this)}pa(LK,zG);LK.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()/100):(this.video.volume=this.getValue()/100,0<this.video.volume&&(this.video.muted=!1))};function MK(a){a.video.muted?a.setValue(0):a.setValue(100*a.video.volume);QK(a)}function OK(a){var b=a.ad.getVolume();a.setValue(100*b);QK(a)}
function QK(a){var b=a.g.volumeBarColors,c=["to right"];c.push(b.level+a.getValue()+"%");c.push(b.base+a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function PK(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}function NK(a){var b=!0;a.ad&&a.ad.isLinear()?b=!0:a.player.xh()&&(b=!1);kG(a.container,b)}S("shaka.ui.VolumeBar",LK);function RK(){}RK.prototype.create=function(a,b){return new LK(a,b)};BH("volume",new RK);}).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})();
2025-06-19 04:02:44 +02:00
//# sourceMappingURL=shaka-player.ui.map