shaka-player 4.3.12 → 4.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/demo/common/asset.js +5 -0
  3. package/demo/common/assets.js +16 -1
  4. package/demo/common/message_ids.js +1 -0
  5. package/demo/locales/en.json +1 -0
  6. package/demo/locales/source.json +4 -0
  7. package/demo/main.js +1 -1
  8. package/dist/demo.compiled.debug.js +55 -53
  9. package/dist/demo.compiled.debug.map +3 -3
  10. package/dist/demo.compiled.js +55 -53
  11. package/dist/demo.compiled.map +3 -3
  12. package/dist/locales.js +27 -27
  13. package/dist/receiver.compiled.debug.js +24 -22
  14. package/dist/receiver.compiled.debug.map +3 -3
  15. package/dist/receiver.compiled.js +24 -22
  16. package/dist/receiver.compiled.map +3 -3
  17. package/dist/shaka-player.compiled.d.ts +1 -1
  18. package/dist/shaka-player.compiled.debug.d.ts +1 -1
  19. package/dist/shaka-player.compiled.debug.externs.js +6 -4
  20. package/dist/shaka-player.compiled.debug.js +87 -89
  21. package/dist/shaka-player.compiled.debug.map +3 -3
  22. package/dist/shaka-player.compiled.externs.js +6 -4
  23. package/dist/shaka-player.compiled.js +340 -338
  24. package/dist/shaka-player.compiled.map +3 -3
  25. package/dist/shaka-player.ui.d.ts +1 -1
  26. package/dist/shaka-player.ui.debug.d.ts +1 -1
  27. package/dist/shaka-player.ui.debug.externs.js +6 -4
  28. package/dist/shaka-player.ui.debug.js +235 -237
  29. package/dist/shaka-player.ui.debug.map +3 -3
  30. package/dist/shaka-player.ui.externs.js +6 -4
  31. package/dist/shaka-player.ui.js +510 -508
  32. package/dist/shaka-player.ui.map +3 -3
  33. package/docs/tutorials/offline.md +1 -1
  34. package/lib/dash/dash_parser.js +4 -1
  35. package/lib/hls/hls_parser.js +60 -24
  36. package/lib/media/segment_reference.js +11 -5
  37. package/lib/media/streaming_engine.js +15 -25
  38. package/lib/player.js +1 -1
  39. package/lib/text/vtt_text_parser.js +2 -2
  40. package/lib/util/cmcd_manager.js +6 -1
  41. package/lib/util/manifest_parser_utils.js +10 -4
  42. package/lib/util/ts_parser.js +3 -3
  43. package/package.json +1 -1
  44. package/test/dash/dash_parser_manifest_unit.js +5 -0
  45. package/test/dash/dash_parser_segment_base_unit.js +5 -0
  46. package/test/dash/dash_parser_segment_list_unit.js +21 -17
  47. package/test/dash/dash_parser_segment_template_unit.js +5 -0
  48. package/test/hls/hls_live_unit.js +33 -0
  49. package/test/hls/hls_parser_unit.js +2 -57
  50. package/test/test/util/dash_parser_util.js +16 -7
  51. package/test/text/vtt_text_parser_unit.js +2 -17
  52. package/test/util/ts_parser_unit.js +1 -1
@@ -22,7 +22,7 @@ fa("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(v
22
22
  function t(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function ia(a){if(!(a instanceof Array)){a=t(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ja="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},la;
23
23
  if("function"==typeof Object.setPrototypeOf)la=Object.setPrototypeOf;else{var ma;a:{var na={a:!0},oa={};try{oa.__proto__=na;ma=oa.a;break a}catch(a){}ma=!1}la=ma?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var pa=la;
24
24
  function qa(a,b){a.prototype=ja(b.prototype);a.prototype.constructor=a;if(pa)pa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.zh=b.prototype}function ra(){this.o=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.u=this.i=null}function sa(a){if(a.o)throw new TypeError("Generator is already running");a.o=!0}ra.prototype.s=function(a){this.h=a};
25
- function ta(a,b){a.i={Ee:b,Le:!0};a.g=a.m||a.j}ra.prototype.return=function(a){this.i={return:a};this.g=this.j};function u(a,b,c){a.g=c;return{value:b}}ra.prototype.B=function(a){this.g=a};function A(a){a.g=0}function C(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ua(a){a.m=0;a.j=2}function va(a,b){a.g=b;a.m=0}function wa(a){a.m=0;var b=a.i.Ee;a.i=null;return b}function ya(a){a.u=[a.i];a.m=0;a.j=0}
25
+ function ta(a,b){a.i={Ee:b,Le:!0};a.g=a.m||a.j}ra.prototype.return=function(a){this.i={return:a};this.g=this.j};function u(a,b,c){a.g=c;return{value:b}}ra.prototype.B=function(a){this.g=a};function A(a){a.g=0}function C(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ua(a){a.m=0;a.j=2}function va(a,b){a.g=b;a.m=0}function xa(a){a.m=0;var b=a.i.Ee;a.i=null;return b}function ya(a){a.u=[a.i];a.m=0;a.j=0}
26
26
  function za(a,b){var c=a.u.splice(0)[0];(c=a.i=a.i||c)?c.Le?a.g=a.m||a.j:void 0!=c.B&&a.j<c.B?(a.g=c.B,a.i=null):a.g=a.j:a.g=b}function Aa(a){this.g=new ra;this.h=a}function Ba(a,b){sa(a.g);var c=a.g.l;if(c)return Ca(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Da(a)}
27
27
  function Ca(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.o=!1,e;var f=e.value}catch(g){return a.g.l=null,ta(a.g,g),Da(a)}a.g.l=null;d.call(a.g,f);return Da(a)}function Da(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.o=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,ta(a.g,c)}a.g.o=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Le)throw b.Ee;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
28
28
  function Ea(a){this.next=function(b){sa(a.g);a.g.l?b=Ca(a,a.g.l.next,b,a.g.s):(a.g.s(b),b=Da(a));return b};this.throw=function(b){sa(a.g);a.g.l?b=Ca(a,a.g.l["throw"],b,a.g.s):(ta(a.g,b),b=Da(a));return b};this.return=function(b){return Ba(a,b)};this[Symbol.iterator]=function(){return this}}function Ga(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})}
@@ -47,19 +47,19 @@ f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;b.prototy
47
47
  b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});function La(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{Je:e,v:f}}return{Je:-1,v:void 0}}fa("Array.prototype.findIndex",function(a){return a?a:function(b,c){return La(this,b,c).Je}});fa("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
48
48
  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 Ma(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""}
49
49
  fa("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ma(this,b,"includes").indexOf(b,c||0)}});fa("Array.prototype.find",function(a){return a?a:function(b,c){return La(this,b,c).v}});fa("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ma(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}});
50
- 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})}});var Pa="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)Ja(d,e)&&(a[e]=d[e])}return a};
51
- fa("Object.assign",function(a){return a||Pa});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("Array.prototype.values",function(a){return a?a:function(){return Oa(this,function(b,c){return c})}});
52
- fa("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});fa("Array.prototype.entries",function(a){return a?a:function(){return Oa(this,function(b,c){return[b,c]})}});
50
+ function Pa(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 Pa(this,function(b){return b})}});var Qa="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)Ja(d,e)&&(a[e]=d[e])}return a};
51
+ fa("Object.assign",function(a){return a||Qa});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("Array.prototype.values",function(a){return a?a:function(){return Pa(this,function(b,c){return c})}});
52
+ fa("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});fa("Array.prototype.entries",function(a){return a?a:function(){return Pa(this,function(b,c){return[b,c]})}});
53
53
  fa("String.prototype.repeat",function(a){return a?a:function(b){var c=Ma(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});fa("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});fa("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ja(b,d)&&c.push(b[d]);return c}});fa("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
54
- fa("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});fa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ja(b,d)&&c.push([d,b[d]]);return c}});var Qa=this||self;
55
- function K(a,b){a=a.split(".");var c=Qa;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};function Ra(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}Ra.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 Sa(a){return a.h/(1-Math.pow(a.g,a.i))};function Ta(){this.h=new Ra(2);this.j=new Ra(5);this.g=0;this.i=128E3;this.l=16E3}Ta.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)};Ta.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)}};Ta.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(Sa(this.h),Sa(this.j))};function Va(){}function Wa(){}function Xa(){}function Ya(a){var b=Ia.apply(1,arguments);Za.has(a)||(Za.add(a),Xa.apply(Va,ia(b)))}function $a(){}function ab(){}function bb(){}function cb(){}var Za=new Set;window.console&&(Xa=function(){return console.warn.apply(console,ia(Ia.apply(0,arguments)))},Wa=function(){console.error.apply(console,ia(Ia.apply(0,arguments)))});function db(a){if(eb.has(a))return eb.get(a);var b=MediaSource.isTypeSupported(a);eb.set(a,b);return b}var eb=new Map;function fb(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function gb(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function hb(a,b,c){c||(c=fb);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={od:d.od},e=a.next()){d.od=e.value;e=b.findIndex(function(f){return function(g){return c(f.od,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
56
- function ib(a,b,c){c||(c=fb);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 jb(a,b,c){this.startTime=a;this.direction=kb;this.endTime=b;this.payload=c;this.region=new lb;this.position=null;this.positionAlign=mb;this.size=0;this.textAlign=nb;this.writingMode=ob;this.lineInterpretation=qb;this.line=null;this.lineHeight="";this.lineAlign=rb;this.displayAlign=sb;this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.textShadow=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=tb;this.fontStyle=ub;this.linePadding=this.letterSpacing=
57
- this.fontFamily="";this.opacity=1;this.textDecoration=[];this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.cellResolution={columns:32,rows:15}}jb.prototype.clone=function(){var a=new jb(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
58
- function vb(a,b){if(a.startTime!=b.startTime||a.endTime!=b.endTime||a.payload!=b.payload)return!1;for(var c in a)if("startTime"!=c&&"endTime"!=c&&"payload"!=c)if("nestedCues"==c){if(!ib(a.nestedCues,b.nestedCues,vb))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(!ib(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}K("shaka.text.Cue",jb);var mb="auto";
59
- jb.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:mb};var nb="center",wb={LEFT:"left",RIGHT:"right",CENTER:nb,START:"start",END:"end"};jb.textAlign=wb;var sb="after",xb={BEFORE:"before",CENTER:"center",AFTER:sb};jb.displayAlign=xb;var kb="ltr";jb.direction={HORIZONTAL_LEFT_TO_RIGHT:kb,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var ob="horizontal-tb";jb.writingMode={HORIZONTAL_TOP_TO_BOTTOM:ob,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var qb=0;
60
- jb.lineInterpretation={LINE_NUMBER:qb,PERCENTAGE:1};var rb="start",yb={CENTER:"center",START:rb,END:"end"};jb.lineAlign=yb;var zb={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};jb.defaultTextColor=zb;var Ab={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};jb.defaultTextBackgroundColor=Ab;var tb=400;jb.fontWeight={NORMAL:tb,BOLD:700};
61
- var ub="normal",Bb={NORMAL:ub,ITALIC:"italic",OBLIQUE:"oblique"};jb.fontStyle=Bb;jb.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function lb(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Cb;this.scroll=Db}K("shaka.text.CueRegion",lb);var Cb=1;lb.units={PX:0,PERCENTAGE:Cb,LINES:2};var Db="";lb.scrollMode={NONE:Db,UP:"up"};function Eb(){}function Fb(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Gb(a)==Gb(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;var c=L(a);b=L(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function Gb(a){return a instanceof ArrayBuffer?a:a.buffer}function Hb(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
62
- function L(a,b,c){c=void 0===c?Infinity:c;return Ib(a,void 0===b?0:b,c,Uint8Array)}function Jb(a,b,c){c=void 0===c?Infinity:c;return Ib(a,void 0===b?0:b,c,DataView)}function Ib(a,b,c,d){var e=(a.byteOffset||0)+a.byteLength;b=Math.max(0,Math.min((a.byteOffset||0)+b,e));return new d(Gb(a),b,Math.min(b+Math.max(c,0),e)-b)}K("shaka.util.BufferUtils",Eb);Eb.toDataView=Jb;Eb.toUint8=L;Eb.toArrayBuffer=Hb;Eb.equal=Fb;function O(a,b,c){var d=Ia.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1}O.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};K("shaka.util.Error",O);O.Severity={RECOVERABLE:1,CRITICAL:2};O.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
54
+ fa("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});fa("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ja(b,d)&&c.push([d,b[d]]);return c}});var Ra=this||self;
55
+ function K(a,b){a=a.split(".");var c=Ra;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};function Sa(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}Sa.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 Ta(a){return a.h/(1-Math.pow(a.g,a.i))};function Ua(){this.h=new Sa(2);this.j=new Sa(5);this.g=0;this.i=128E3;this.l=16E3}Ua.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)};Ua.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)}};Ua.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(Ta(this.h),Ta(this.j))};function Va(){}function Wa(){}function Xa(){}function Za(a){var b=Ia.apply(1,arguments);$a.has(a)||($a.add(a),Xa.apply(Va,ia(b)))}function ab(){}function cb(){}function db(){}function eb(){}var $a=new Set;window.console&&(Xa=function(){return console.warn.apply(console,ia(Ia.apply(0,arguments)))},Wa=function(){console.error.apply(console,ia(Ia.apply(0,arguments)))});function fb(a){if(gb.has(a))return gb.get(a);var b=MediaSource.isTypeSupported(a);gb.set(a,b);return b}var gb=new Map;function hb(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function ib(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function jb(a,b,c){c||(c=hb);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={pd:d.pd},e=a.next()){d.pd=e.value;e=b.findIndex(function(f){return function(g){return c(f.pd,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
56
+ function kb(a,b,c){c||(c=hb);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 lb(a,b,c){this.startTime=a;this.direction=mb;this.endTime=b;this.payload=c;this.region=new nb;this.position=null;this.positionAlign=ob;this.size=0;this.textAlign=pb;this.writingMode=qb;this.lineInterpretation=rb;this.line=null;this.lineHeight="";this.lineAlign=sb;this.displayAlign=tb;this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.textShadow=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=ub;this.fontStyle=vb;this.linePadding=this.letterSpacing=
57
+ this.fontFamily="";this.opacity=1;this.textDecoration=[];this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.cellResolution={columns:32,rows:15}}lb.prototype.clone=function(){var a=new lb(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
58
+ function wb(a,b){if(a.startTime!=b.startTime||a.endTime!=b.endTime||a.payload!=b.payload)return!1;for(var c in a)if("startTime"!=c&&"endTime"!=c&&"payload"!=c)if("nestedCues"==c){if(!kb(a.nestedCues,b.nestedCues,wb))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(!kb(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}K("shaka.text.Cue",lb);var ob="auto";
59
+ lb.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:ob};var pb="center",xb={LEFT:"left",RIGHT:"right",CENTER:pb,START:"start",END:"end"};lb.textAlign=xb;var tb="after",yb={BEFORE:"before",CENTER:"center",AFTER:tb};lb.displayAlign=yb;var mb="ltr";lb.direction={HORIZONTAL_LEFT_TO_RIGHT:mb,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var qb="horizontal-tb";lb.writingMode={HORIZONTAL_TOP_TO_BOTTOM:qb,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var rb=0;
60
+ lb.lineInterpretation={LINE_NUMBER:rb,PERCENTAGE:1};var sb="start",zb={CENTER:"center",START:sb,END:"end"};lb.lineAlign=zb;var Ab={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};lb.defaultTextColor=Ab;var Bb={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};lb.defaultTextBackgroundColor=Bb;var ub=400;lb.fontWeight={NORMAL:ub,BOLD:700};
61
+ var vb="normal",Cb={NORMAL:vb,ITALIC:"italic",OBLIQUE:"oblique"};lb.fontStyle=Cb;lb.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function nb(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Db;this.scroll=Eb}K("shaka.text.CueRegion",nb);var Db=1;nb.units={PX:0,PERCENTAGE:Db,LINES:2};var Eb="";nb.scrollMode={NONE:Eb,UP:"up"};function Fb(){}function Gb(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Hb(a)==Hb(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;var c=L(a);b=L(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function Hb(a){return a instanceof ArrayBuffer?a:a.buffer}function Ib(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
62
+ function L(a,b,c){c=void 0===c?Infinity:c;return Jb(a,void 0===b?0:b,c,Uint8Array)}function Kb(a,b,c){c=void 0===c?Infinity:c;return Jb(a,void 0===b?0:b,c,DataView)}function Jb(a,b,c,d){var e=(a.byteOffset||0)+a.byteLength;b=Math.max(0,Math.min((a.byteOffset||0)+b,e));return new d(Hb(a),b,Math.min(b+Math.max(c,0),e)-b)}K("shaka.util.BufferUtils",Fb);Fb.toDataView=Kb;Fb.toUint8=L;Fb.toArrayBuffer=Ib;Fb.equal=Gb;function O(a,b,c){var d=Ia.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1}O.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};K("shaka.util.Error",O);O.Severity={RECOVERABLE:1,CRITICAL:2};O.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
63
63
  O.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,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,
64
64
  CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,CHAPTERS_TRACK_FAILED:2015,CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_SRC_EQUALS:2016,UNSUPPORTED_EXTERNAL_THUMBNAILS_URI:2017,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,
65
65
  WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,
@@ -72,38 +72,38 @@ LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT
72
72
  Copyright 2008 The Closure Library Authors
73
73
  SPDX-License-Identifier: Apache-2.0
74
74
  */
75
- var Kb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");/*
75
+ var Lb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");/*
76
76
  @license
77
77
  Copyright 2006 The Closure Library Authors
78
78
  SPDX-License-Identifier: Apache-2.0
79
79
  */
80
- function Mb(a){var b;a instanceof Mb?(Nb(this,a.Ea),this.qb=a.qb,this.Ha=a.Ha,Ob(this,a.Lb),this.ra=a.ra,Pb(this,a.g.clone()),this.fb=a.fb):a&&(b=String(a).match(Kb))?(Nb(this,b[1]||"",!0),this.qb=Qb(b[2]||""),this.Ha=Qb(b[3]||"",!0),Ob(this,b[4]),this.ra=Qb(b[5]||"",!0),Pb(this,b[6]||"",!0),this.fb=Qb(b[7]||"")):this.g=new Rb(null)}r=Mb.prototype;r.Ea="";r.qb="";r.Ha="";r.Lb=null;r.ra="";r.fb="";
80
+ function Mb(a){var b;a instanceof Mb?(Nb(this,a.Ea),this.qb=a.qb,this.Ha=a.Ha,Ob(this,a.Lb),this.ra=a.ra,Pb(this,a.g.clone()),this.fb=a.fb):a&&(b=String(a).match(Lb))?(Nb(this,b[1]||"",!0),this.qb=Qb(b[2]||""),this.Ha=Qb(b[3]||"",!0),Ob(this,b[4]),this.ra=Qb(b[5]||"",!0),Pb(this,b[6]||"",!0),this.fb=Qb(b[7]||"")):this.g=new Rb(null)}r=Mb.prototype;r.Ea="";r.qb="";r.Ha="";r.Lb=null;r.ra="";r.fb="";
81
81
  r.toString=function(){var a=[],b=this.Ea;b&&a.push(Sb(b,Tb,!0),":");if(b=this.Ha){a.push("//");var c=this.qb;c&&a.push(Sb(c,Tb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Lb;null!=b&&a.push(":",String(b))}if(b=this.ra)this.Ha&&"/"!=b.charAt(0)&&a.push("/"),a.push(Sb(b,"/"==b.charAt(0)?Ub:Vb,!0));(b=this.g.toString())&&a.push("?",b);(b=this.fb)&&a.push("#",Sb(b,Wb));return a.join("")};
82
82
  r.resolve=function(a){var b=this.clone();"data"===b.Ea&&(b=new Mb);var c=!!a.Ea;c?Nb(b,a.Ea):c=!!a.qb;c?b.qb=a.qb:c=!!a.Ha;c?b.Ha=a.Ha:c=null!=a.Lb;var d=a.ra;if(c)Ob(b,a.Lb);else if(c=!!a.ra){if("/"!=d.charAt(0))if(this.Ha&&!this.ra)d="/"+d;else{var e=b.ra.lastIndexOf("/");-1!=e&&(d=b.ra.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(""):".."==
83
83
  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.ra=d:c=""!==a.g.toString();c?Pb(b,a.g.clone()):c=!!a.fb;c&&(b.fb=a.fb);return b};r.clone=function(){return new Mb(this)};function Nb(a,b,c){a.Ea=c?Qb(b,!0):b;a.Ea&&(a.Ea=a.Ea.replace(/:$/,""))}function Ob(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Lb=b}else a.Lb=null}function Pb(a,b,c){b instanceof Rb?a.g=b:(c||(b=Sb(b,Xb)),a.g=new Rb(b))}
84
84
  function Qb(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function Sb(a,b,c){return null!=a?(a=encodeURI(a).replace(b,Yb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Yb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var Tb=/[#\/\?@]/g,Vb=/[#\?:]/g,Ub=/[#\?]/g,Xb=/[#\?@]/g,Wb=/#/g;function Rb(a){this.g=a||null}
85
85
  function $b(a){if(!a.na&&(a.na={},a.Pc=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," ")))}}r=Rb.prototype;r.na=null;r.Pc=null;r.add=function(a,b){$b(this);this.g=null;var c=this.na.hasOwnProperty(a)?this.na[a]:null;c||(this.na[a]=c=[]);c.push(b);this.Pc++;return this};
86
- r.set=function(a,b){$b(this);this.g=null;this.na.hasOwnProperty(a)?this.na[a]=[b]:this.add(a,b);return this};r.toString=function(){if(this.g)return this.g;if(!this.na)return"";var a=[],b;for(b in this.na)for(var c=encodeURIComponent(b),d=this.na[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};r.clone=function(){var a=new Rb;a.g=this.g;if(this.na){var b={},c;for(c in this.na)b[c]=this.na[c].concat();a.na=b;a.Pc=this.Pc}return a};function ac(a,b){return a.concat(b)}function bc(){}function cc(a){return null!=a};function dc(a,b){if(0==b.length)return a;var c=b.map(function(d){return new Mb(d)});return a.map(function(d){return new Mb(d)}).map(function(d){return c.map(function(e){return d.resolve(e)})}).reduce(ac,[]).map(function(d){return d.toString()})}function ec(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:b||[],keyIds:new Set}}
87
- function fc(a,b){if(1==b.length)return b[0];a=gc(a,b);if(null!=a)return a;throw new O(2,4,4025,b);}function gc(a,b){for(var c=t(hc[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==ic?"":null}
88
- var ic="text",jc={va:"video",Ic:"audio",X:ic,Xb:"image",Ig:"application"},hc={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cex]$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/,/^dvh/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function kc(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}kc.prototype.resolve=function(){};kc.prototype.reject=function(){};function lc(a){this.h=a;this.g=void 0}lc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function mc(a){this.h=a;this.g=null}mc.prototype.O=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};mc.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function P(a){this.h=a;this.g=null}P.prototype.Nb=function(){this.stop();this.h();return this};P.prototype.O=function(a){var b=this;this.stop();this.g=(new mc(function(){b.h()})).O(a);return this};P.prototype.Ca=function(a){var b=this;this.stop();this.g=(new mc(function(){b.g.O(a);b.h()})).O(a);return this};P.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};K("shaka.util.Timer",P);P.prototype.stop=P.prototype.stop;P.prototype.tickEvery=P.prototype.Ca;P.prototype.tickAfter=P.prototype.O;
86
+ r.set=function(a,b){$b(this);this.g=null;this.na.hasOwnProperty(a)?this.na[a]=[b]:this.add(a,b);return this};r.toString=function(){if(this.g)return this.g;if(!this.na)return"";var a=[],b;for(b in this.na)for(var c=encodeURIComponent(b),d=this.na[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};r.clone=function(){var a=new Rb;a.g=this.g;if(this.na){var b={},c;for(c in this.na)b[c]=this.na[c].concat();a.na=b;a.Pc=this.Pc}return a};function ac(a,b){return a.concat(b)}function bc(){}function cc(a){return null!=a};function dc(a,b){if(0==b.length)return a;if(1==a.length&&1==b.length)return a=new Mb(a[0]),b=new Mb(b[0]),[a.resolve(b).toString()];var c=b.map(function(d){return new Mb(d)});return a.map(function(d){var e=new Mb(d);return c.map(function(f){return e.resolve(f).toString()})}).reduce(ac,[])}
87
+ function ec(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:b||[],keyIds:new Set}}function fc(a,b){if(1==b.length)return b[0];a=gc(a,b);if(null!=a)return a;throw new O(2,4,4025,b);}
88
+ function gc(a,b){for(var c=t(hc[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==ic?"":null}var ic="text",jc={va:"video",Ic:"audio",Y:ic,Xb:"image",Ig:"application"},hc={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cex]$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/,/^dvh/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function kc(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}kc.prototype.resolve=function(){};kc.prototype.reject=function(){};function lc(a){this.h=a;this.g=void 0}lc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function mc(a){this.h=a;this.g=null}mc.prototype.N=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};mc.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function P(a){this.h=a;this.g=null}P.prototype.Nb=function(){this.stop();this.h();return this};P.prototype.N=function(a){var b=this;this.stop();this.g=(new mc(function(){b.h()})).N(a);return this};P.prototype.Ca=function(a){var b=this;this.stop();this.g=(new mc(function(){b.g.N(a);b.h()})).N(a);return this};P.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};K("shaka.util.Timer",P);P.prototype.stop=P.prototype.stop;P.prototype.tickEvery=P.prototype.Ca;P.prototype.tickAfter=P.prototype.N;
89
89
  P.prototype.tickNow=P.prototype.Nb;function nc(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function oc(a){return""!=pc().canPlayType(a)}function qc(){return navigator.userAgent.match(/Edge?\//)?!0:!1}function rc(){return sc("Xbox One")}function tc(){return sc("Tizen")}function uc(){return sc("Web0S")&&sc("Chrome/38.0.2125.122 Safari/537.36")}function vc(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!tc()&&!sc("PC=EOS")&&!sc("VirginMedia")&&!sc("SOPOpenBrowser")&&!wc()&&!sc("AFT")}
90
- function wc(){return sc("PlayStation 4")}function xc(){if(!vc())return null;var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null}function sc(a){return(navigator.userAgent||"").includes(a)}function pc(){if(yc)return yc;zc||(zc=new P(function(){yc=null}));(yc=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(yc=document.createElement("video"));zc.O(1);return yc}
90
+ function wc(){return sc("PlayStation 4")}function xc(){if(!vc())return null;var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null}function sc(a){return(navigator.userAgent||"").includes(a)}function pc(){if(yc)return yc;zc||(zc=new P(function(){yc=null}));(yc=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(yc=document.createElement("video"));zc.N(1);return yc}
91
91
  var zc=null,yc=null;function Ac(){}
92
92
  function Bc(a){if(!a)return"";a=L(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!wc())return a=(new TextDecoder).decode(a),a.includes("\ufffd")&&Wa('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),a;for(var b="",c=0;c<a.length;++c){var d=65533;0==(a[c]&128)?d=a[c]:a.length>=c+2&&192==(a[c]&224)&&128==(a[c+1]&192)?(d=(a[c]&31)<<6|a[c+1]&63,c+=1):a.length>=c+3&&224==(a[c]&240)&&128==(a[c+1]&192)&&128==(a[c+
93
93
  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}
94
- function Cc(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new O(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=Jb(a);for(var e=0;e<c;e++)d[e]=a.getUint16(2*e,b);return Dc.value()(d)}
94
+ function Cc(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new O(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=Kb(a);for(var e=0;e<c;e++)d[e]=a.getUint16(2*e,b);return Dc.value()(d)}
95
95
  function Ec(a){function b(d){return c.byteLength<=d||32<=c[d]&&126>=c[d]}if(!a)return"";var c=L(a);if(239==c[0]&&187==c[1]&&191==c[2])return Bc(c);if(254==c[0]&&255==c[1])return Cc(c.subarray(2),!1);if(255==c[0]&&254==c[1])return Cc(c.subarray(2),!0);if(0==c[0]&&0==c[2])return Cc(a,!1);if(0==c[1]&&0==c[3])return Cc(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return Bc(a);throw new O(2,2,2003);}
96
- function Fc(a){if(window.TextEncoder&&!wc()){var b=new TextEncoder;return Hb(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 Hb(b)}function Gc(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}K("shaka.util.StringUtils",Ac);Ac.resetFromCharCode=function(){Dc.g=void 0};Ac.toUTF16=Gc;Ac.toUTF8=Fc;Ac.fromBytesAutoDetect=Ec;Ac.fromUTF16=Cc;
96
+ function Fc(a){if(window.TextEncoder&&!wc()){var b=new TextEncoder;return Ib(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 Ib(b)}function Gc(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}K("shaka.util.StringUtils",Ac);Ac.resetFromCharCode=function(){Dc.g=void 0};Ac.toUTF16=Gc;Ac.toUTF8=Fc;Ac.fromBytesAutoDetect=Ec;Ac.fromUTF16=Cc;
97
97
  Ac.fromUTF8=Bc;var Dc=new lc(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={Va:65536};0<b.Va;b={Va:b.Va},b.Va/=2)if(a(b.Va))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.Va)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.Va));return e}}(b);return null});function Hc(){}function Ic(a){a=L(a);a=Dc.value()(a);return btoa(a)}function Jc(a,b){b=void 0==b?!0:b;a=Ic(a).replace(/\+/g,"-").replace(/\//g,"_");return b?a:a.replace(/[=]*$/,"")}function Kc(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 Lc(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}
98
98
  function Mc(a){var b=L(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 Nc(){for(var a=Ia.apply(0,arguments),b=0,c=t(a),d=c.next();!d.done;d=c.next())b+=d.value.byteLength;b=new Uint8Array(b);c=0;a=t(a);for(d=a.next();!d.done;d=a.next())d=d.value,b.set(L(d),c),c+=d.byteLength;return b}K("shaka.util.Uint8ArrayUtils",Hc);Hc.concat=Nc;Hc.toHex=Mc;Hc.fromHex=Lc;Hc.fromBase64=Kc;Hc.toBase64=Jc;Hc.toStandardBase64=Ic;function Oc(){}K("shaka.dependencies",Oc);Oc.has=function(a){return Pc.has(a)};Oc.add=function(a,b){if(!Qc[a])throw Error(a+" is not supported");Pc.set(a,function(){return b})};var Qc={muxjs:"muxjs"};Oc.Allowed=Qc;var Pc=new Map([["muxjs",function(){return window.muxjs}]]);function Rc(a){var b=this;this.o=a;this.m=Pc.get("muxjs")();this.h=this.g=null;this.l=[];this.i=[];this.j=!1;this.m&&(this.g=new this.m.mp4.Transmuxer({keepOriginalTimestamps:!0}),this.g.on("data",function(c){b.i=c.captions;b.l.push(Nc(c.initSegment,c.data))}),this.g.on("done",function(){var c={data:Nc.apply(Hc,ia(b.l)),captions:b.i};b.h.resolve(c);b.j=!1}))}Rc.prototype.destroy=function(){this.g&&this.g.dispose();this.g=null;return Promise.resolve()};
99
- function Sc(a,b){var c=Tc(a),d="audio/aac"==a.toLowerCase().split(";")[0];if(!Pc.get("muxjs")()||!c&&!d)return!1;if(d)return db('audio/mp4; codecs="mp4a.40.2"');if(b)return db(Uc(b,a));b=Uc("audio",a);a=Uc("video",a);return db(b)||db(a)}function Tc(a){return"mp2t"==a.toLowerCase().split(";")[0].split("/")[1]}function Vc(a,b){return"audio/aac"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp4a.40.2"':Tc(b)?Uc(a,b):b}
99
+ function Sc(a,b){var c=Tc(a),d="audio/aac"==a.toLowerCase().split(";")[0];if(!Pc.get("muxjs")()||!c&&!d)return!1;if(d)return fb('audio/mp4; codecs="mp4a.40.2"');if(b)return fb(Uc(b,a));b=Uc("audio",a);a=Uc("video",a);return fb(b)||fb(a)}function Tc(a){return"mp2t"==a.toLowerCase().split(";")[0].split("/")[1]}function Vc(a,b){return"audio/aac"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp4a.40.2"':Tc(b)?Uc(a,b):b}
100
100
  function Uc(a,b){b=b.replace(/mp2t/i,"mp4");"audio"==a&&(b=b.replace("video","audio"));if(a=/avc1\.(66|77|100)\.(\d+)/.exec(b)){var c="avc1.",d=a[1],e=Number(a[2]);c=("66"==d?c+"4200":"77"==d?c+"4d00":c+"6400")+(e>>4).toString(16);c+=(e&15).toString(16);b=b.replace(a[0],c)}return b}function Wc(a,b){a.j=!0;a.h=new kc;a.l=[];a.i=[];b=L(b);a.g.push(b);a.g.flush();a.j&&a.h.reject(new O(2,3,3018));return a.h};function Xc(){}function Yc(a,b){b&&(a+='; codecs="'+b+'"');return a}function Zc(a,b,c){b=Yc(a,b);return Sc(b,c)?Vc(c,b):"video/mp2t"!=a&&"audio"==c?b.replace("video","audio"):b}
101
101
  function $c(a){var b=ad(a);a=b[0];b=b[1].toLowerCase();switch(!0){case "mp4a"===a&&"69"===b:case "mp4a"===a&&"6b"===b:return"mp3";case "mp4a"===a&&"66"===b:case "mp4a"===a&&"67"===b:case "mp4a"===a&&"68"===b:case "mp4a"===a&&"40.2"===b:case "mp4a"===a&&"40.02"===b:case "mp4a"===a&&"40.5"===b:case "mp4a"===a&&"40.05"===b:case "mp4a"===a&&"40.29"===b:case "mp4a"===a&&"40.42"===b:return"aac";case "mp4a"===a&&"a5"===b:return"ac-3";case "mp4a"===a&&"a6"===b:return"ec-3";case "mp4a"===a&&"b2"===b:return"dtsx";
102
102
  case "mp4a"===a&&"a9"===b:return"dtsc";case "avc1"===a:case "avc3"===a:return"avc";case "hvc1"===a:case "hev1"===a:return"hevc";case "dvh1"===a:case "dvhe"===a:return"dovi"}return a}function bd(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""}function ad(a){a=a.split(".");var b=a[0];a.shift();return[b,a.join(".")]}K("shaka.util.MimeUtils",Xc);Xc.getFullType=Yc;
103
103
  (new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");function cd(a){this.i=null;this.j=a;this.u=!1;this.l=this.s=0;this.m=Infinity;this.h=this.g=null;this.A="";this.o=new Map}function dd(a){return ed[a]||"application/cea-608"==a||"application/cea-708"==a?!0:!1}cd.prototype.destroy=function(){this.j=this.i=null;this.o.clear();return Promise.resolve()};
104
104
  function fd(a,b,c,d){var e,f,g,h;return G(function(k){if(1==k.g)return u(k,Promise.resolve(),2);if(!a.i||!a.j)return k.return();if(null==c||null==d)return a.i.parseInit(L(b)),k.return();e=a.u?c:a.s;f={periodStart:a.s,segmentStart:c,segmentEnd:d,vttOffset:e};g=a.i.parseMedia(L(b),f);h=g.filter(function(l){return l.startTime>=a.l&&l.startTime<a.m});a.j.append(h);null==a.g&&(a.g=Math.max(c,a.l));a.h=Math.min(d,a.m);A(k)})}
105
105
  cd.prototype.remove=function(a,b){var c=this;return G(function(d){if(1==d.g)return u(d,Promise.resolve(),2);!c.j||!c.j.remove(a,b)||null==c.g||b<=c.g||a>=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&b<c.h?c.g=b:a>c.g&&b>=c.h&&(c.h=a));A(d)})};function gd(a,b,c){a.l=b;a.m=c}function hd(a,b,c){a.A=b;if(b=a.o.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)}
106
- function id(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.push({stream:c.stream,cue:new jb(c.startTime,c.endTime,c.text)});return b}function jd(a,b,c){b.startTime+=c;b.endTime+=c;b=t(b.nestedCues);for(var d=b.next();!d.done;d=b.next())jd(a,d.value,c)}
106
+ function id(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.push({stream:c.stream,cue:new lb(c.startTime,c.endTime,c.text)});return b}function jd(a,b,c){b.startTime+=c;b.endTime+=c;b=t(b.nestedCues);for(var d=b.next();!d.done;d=b.next())jd(a,d.value,c)}
107
107
  function kd(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,[]);jd(a,k,e);k.startTime>=a.l&&k.startTime<a.m&&(g.get(h).get(f).push(k),h==a.A&&a.j.append([k]))}e=t(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.o.has(f)||a.o.set(f,new Map),b=t(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),a.o.get(f).set(h,k);a.g=null==a.g?Math.max(c,
108
108
  a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m))}K("shaka.text.TextEngine",cd);cd.prototype.destroy=cd.prototype.destroy;cd.findParser=function(a){return ed[a]};cd.unregisterParser=function(a){delete ed[a]};cd.registerParser=function(a,b){ed[a]=b};var ed={};function ld(){}function md(a,b){a=nd(a);b=nd(b);return a.split("-")[0]==b.split("-")[0]}function od(a,b){a=nd(a);b=nd(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length}function pd(a,b){a=nd(a);b=nd(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[0]}function nd(a){var b=a.split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=qd.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a}
109
109
  function rd(a,b){a=nd(a);b=nd(b);return b==a?4:od(b,a)?3:pd(b,a)?2:od(a,b)?1:0}function sd(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=qd.get(a)||a}function td(a){return a.language?nd(a.language):a.audio&&a.audio.language?nd(a.audio.language):a.video&&a.video.language?nd(a.video.language):"und"}
@@ -116,14 +116,14 @@ var qd=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"]
116
116
  "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",
117
117
  "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function vd(){this.g={}}r=vd.prototype;r.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};r.get=function(a){return(a=this.g[a])?a.slice():null};r.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};r.forEach=function(a){for(var b in this.g)a(b,this.g[b])};r.size=function(){return Object.keys(this.g).length};r.keys=function(){return Object.keys(this.g)};function wd(a,b,c,d,e){var f=a.variants;if(b.length||c.length)f=xd(f,b,c);f=yd(f,d);b=zd(f);b=Ad(b);var g=Bd(b,e);a.variants=a.variants.filter(function(h){return Cd(h)==g?!0:!1})}function zd(a){var b=new vd;a=t(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Cd(c);b.push(d,c)}return b}
118
118
  function Ad(a){var b=0,c=new Map,d=a.size();a.forEach(function(e,f){f=t(f);for(var g=f.next();!g.done;g=f.next()){g=g.value;var h=g.video;if(h&&h.width&&h.height){h=h.width*h.height*(h.frameRate||1);c.has(h)||c.set(h,new vd);var k=c.get(h);k.push(e,g);k.size()===d&&(b=Math.max(b,h))}}});return b?c.get(b):a}
119
- function xd(a,b,c){var d={};b=t(b);for(var e=b.next();!e.done;d={zd:d.zd},e=b.next())if(d.zd=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.zd)}}(d)),e.length){a=e;break}d={};c=t(c);for(b=c.next();!b.done;d={ld:d.ld},b=c.next())if(d.ld=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.ld)}}(d)),b.length){a=b;break}return a}
119
+ function xd(a,b,c){var d={};b=t(b);for(var e=b.next();!e.done;d={Bd:d.Bd},e=b.next())if(d.Bd=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.Bd)}}(d)),e.length){a=e;break}d={};c=t(c);for(b=c.next();!b.done;d={md:d.md},b=c.next())if(d.md=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.md)}}(d)),b.length){a=b;break}return a}
120
120
  function Bd(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c==Dd||c==Ed){if(a=Fd(a,c),1==a.size())return a.keys()[0]}else if(c==Gd)break;return Hd(a)}function Fd(a,b){var c=0,d=new vd;a.forEach(function(e,f){for(var g=0,h=0,k=t(f),l=k.next();!l.done;l=k.next())l=l.value,l.decodingInfos.length&&(g+=l.decodingInfos[0][b]?1:0,h++);g/=h;g>c?(d.g={},d.push(e,f),c=g):g==c&&d.push(e,f)});return d}
121
121
  function Hd(a){var b="",c=Infinity;a.forEach(function(d,e){var f=0,g=0;e=t(e);for(var h=e.next();!h.done;h=e.next())f+=h.value.bandwidth||0,++g;f/=g;f<c&&(b=d,c=f)});return b}function Cd(a){var b="";a.video&&(b=$c(a.video.codecs));var c="";a.audio&&(c=$c(a.audio.codecs));return b+"-"+c}function Id(a,b,c){a.variants=a.variants.filter(function(d){return Jd(d,b,c)})}
122
122
  function Jd(a,b,c){function d(f,g,h){return f>=g&&f<=h}var e=a.video;if(0!=a.disabledUntilTime){if(a.disabledUntilTime>Date.now()/1E3)return!1;a.disabledUntilTime=0}return e&&e.width&&e.height&&(!d(e.width,b.minWidth,Math.min(b.maxWidth,c.width))||!d(e.height,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))||a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}
123
123
  function Kd(a,b,c){var d=!1;a=t(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.allowedByApplication;e.allowedByApplication=Jd(e,b,c);f!=e.allowedByApplication&&(d=!0)}return d}function Ld(a,b){return G(function(c){if(1==c.g)return u(c,Md(b,0<b.offlineSessionIds.length),2);Nd(a,b);Od(b);return u(c,Pd(b),0)})}
124
- function Md(a,b){return G(function(c){if(1==c.g)return u(c,Qd(a.variants,b,!1),2);a.variants=a.variants.filter(function(d){var e=d.video;if(e){var f=Rd(e.codecs);if(e.codecs.includes(",")){var g=e.codecs.split(",");f=fc("video",g);f=Rd(f);g=fc("audio",g);g=Sd(g);var h=Zc(e.mimeType,g,"audio");if(!db(h))return!1;f=[f,g].join()}g=Zc(e.mimeType,f,"video");if(!db(g))return!1;e.codecs=f}if(f=d.audio){g=Sd(f.codecs);h=Zc(f.mimeType,g,"audio");if(!db(h))return!1;f.codecs=g}if(rc()&&e&&(e.width&&1920<e.width||
125
- e.height&&1080<e.height)&&(e.codecs.includes("avc1.")||e.codecs.includes("avc3.")))return ab(Td(d)),!1;(e=d.decodingInfos.some(function(k){return k.supported}))||ab(Td(d));return e});A(c)})}
126
- function Qd(a,b,c){var d,e,f,g,h,k,l,m,p,n,q;return G(function(v){if(d=a.some(function(y){return y.decodingInfos.length}))return v.return();e=navigator.mediaCapabilities;f=[];g=function(y,w){var x;return G(function(D){if(1==D.g)return C(D,2),u(D,e.decodingInfo(w),4);if(2!=D.g)return x=D.h,y.decodingInfos.push(x),va(D,0);wa(D);JSON.stringify(w);A(D)})};h=t(a);for(k=h.next();!k.done;k=h.next())for(l=k.value,m=Ud(l,b,c),p=t(m),n=p.next();!n.done;n=p.next())q=n.value,f.push(g(l,q));return u(v,Promise.all(f),
124
+ function Md(a,b){return G(function(c){if(1==c.g)return u(c,Qd(a.variants,b,!1),2);a.variants=a.variants.filter(function(d){var e=d.video;if(e){var f=Rd(e.codecs);if(e.codecs.includes(",")){var g=e.codecs.split(",");f=fc("video",g);f=Rd(f);g=fc("audio",g);g=Sd(g);var h=Zc(e.mimeType,g,"audio");if(!fb(h))return!1;f=[f,g].join()}g=Zc(e.mimeType,f,"video");if(!fb(g))return!1;e.codecs=f}if(f=d.audio){g=Sd(f.codecs);h=Zc(f.mimeType,g,"audio");if(!fb(h))return!1;f.codecs=g}if(rc()&&e&&(e.width&&1920<e.width||
125
+ e.height&&1080<e.height)&&(e.codecs.includes("avc1.")||e.codecs.includes("avc3.")))return cb(Td(d)),!1;(e=d.decodingInfos.some(function(k){return k.supported}))||cb(Td(d));return e});A(c)})}
126
+ function Qd(a,b,c){var d,e,f,g,h,k,l,m,p,n,q;return G(function(v){if(d=a.some(function(y){return y.decodingInfos.length}))return v.return();e=navigator.mediaCapabilities;f=[];g=function(y,w){var x;return G(function(D){if(1==D.g)return C(D,2),u(D,e.decodingInfo(w),4);if(2!=D.g)return x=D.h,y.decodingInfos.push(x),va(D,0);xa(D);JSON.stringify(w);A(D)})};h=t(a);for(k=h.next();!k.done;k=h.next())for(l=k.value,m=Ud(l,b,c),p=t(m),n=p.next();!n.done;n=p.next())q=n.value,f.push(g(l,q));return u(v,Promise.all(f),
127
127
  0)})}
128
128
  function Ud(a,b,c){var d=a.audio,e=a.video;c={type:c?"file":"media-source"};if(e){var f=e.codecs;if(e.codecs.includes(",")){var g=e.codecs.split(",");f=fc("video",g);f=Rd(f);g=fc("audio",g);g=Sd(g);g=Zc(e.mimeType,g,"audio");c.audio={contentType:g,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1}}f=Rd(f);f=Zc(e.mimeType,f,"video");c.video={contentType:f,width:e.width||64,height:e.height||64,bitrate:e.bandwidth||a.bandwidth||1,framerate:e.frameRate||1};if(e.hdr)switch(e.hdr){case "SDR":c.video.transferFunction="srgb";
129
129
  break;case "PQ":c.video.transferFunction="pq";break;case "HLG":c.video.transferFunction="hlg"}}d&&(f=Sd(d.codecs),f=Zc(d.mimeType,f,"audio"),c.audio={contentType:f,channels:d.channelsCount||2,bitrate:d.bandwidth||a.bandwidth||1,samplerate:d.audioSamplingRate||1,spatialRendering:d.spatialAudio});g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return[c];a=[];f=new Map;g=t(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;f.get(k.keySystem)||f.set(k.keySystem,[]);
@@ -146,109 +146,109 @@ function yd(a,b){var c=a.filter(function(g){return g.audio&&g.audio.channelsCoun
146
146
  function ie(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=ud(nd(b),a.map(function(k){return k.language}));h&&(e=a.filter(function(k){return nd(k.language)==h}))}e=e.filter(function(k){return k.forced==d});if(c){if(a=je(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(ac,[]);return a.length?
147
147
  je(e,a[0]):e}function je(a,b){return a.filter(function(c){return c.roles.includes(b)})}function Td(a){var b=[];a.audio&&b.push(ke(a.audio));a.video&&b.push(ke(a.video));return b.join(", ")}
148
148
  function ke(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"}
149
- var ce=0,Dd="smooth",Ed="powerEfficient",Gd="bandwidth",Wd=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),Xd=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function le(){var a=this;this.l=null;this.o=!1;this.i=new Ta;this.u=null;navigator.connection&&navigator.connection.addEventListener&&(this.u=function(){if(a.o&&a.g.useNetworkInformation){a.i=new Ta;a.g&&a.i.configure(a.g.advanced);var b=a.chooseVariant();b&&a.l(b)}},navigator.connection.addEventListener("change",this.u));this.m=[];this.A=1;this.F=!1;this.h=this.j=this.g=this.s=null;this.D=new P(function(){if(a.g.restrictToElementSize){var b=a.chooseVariant();b&&a.l(b)}})}r=le.prototype;
149
+ var ce=0,Dd="smooth",Ed="powerEfficient",Gd="bandwidth",Wd=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),Xd=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function le(){var a=this;this.l=null;this.o=!1;this.i=new Ua;this.u=null;navigator.connection&&navigator.connection.addEventListener&&(this.u=function(){if(a.o&&a.g.useNetworkInformation){a.i=new Ua;a.g&&a.i.configure(a.g.advanced);var b=a.chooseVariant();b&&a.l(b)}},navigator.connection.addEventListener("change",this.u));this.m=[];this.A=1;this.F=!1;this.h=this.j=this.g=this.s=null;this.D=new P(function(){if(a.g.restrictToElementSize){var b=a.chooseVariant();b&&a.l(b)}})}r=le.prototype;
150
150
  r.stop=function(){this.l=null;this.o=!1;this.m=[];this.A=1;this.j=this.s=null;this.h&&(this.h.disconnect(),this.h=null);this.D.stop()};r.release=function(){navigator.connection&&navigator.connection.removeEventListener&&(navigator.connection.removeEventListener("change",this.u),this.u=null);this.D=null};r.init=function(a){this.l=a};
151
151
  r.chooseVariant=function(){var a=Infinity,b=Infinity;this.g.restrictToScreenSize&&(b=this.g.ignoreDevicePixelRatio?1:window.devicePixelRatio,a=window.screen.height*b,b*=window.screen.width);this.h&&this.g.restrictToElementSize&&(b=this.g.ignoreDevicePixelRatio?1:window.devicePixelRatio,a=this.j.clientHeight*b,b*=this.j.clientWidth);a=me(this.g.restrictions,this.m,a,b);b=this.i.getBandwidthEstimate(ne(this));this.m.length&&!a.length&&(a=me(null,this.m,Infinity,Infinity),a=[a[0]]);for(var c=a[0]||null,
152
152
  d=0;d<a.length;d++){for(var e=a[d],f=isNaN(this.A)?1:Math.abs(this.A),g=f*e.bandwidth/this.g.bandwidthDowngradeTarget,h={bandwidth:Infinity},k=d+1;k<a.length;k++)if(e.bandwidth!=a[k].bandwidth){h=a[k];break}f=f*h.bandwidth/this.g.bandwidthUpgradeTarget;b>=g&&b<=f&&c.bandwidth!=e.bandwidth&&(c=e)}this.s=Date.now();return c};r.enable=function(){this.o=!0};r.disable=function(){this.o=!1};
153
153
  r.segmentDownloaded=function(a,b){this.i.sample(a,b);if(null!=this.s&&this.o)a:{if(!this.F){a=this.i;if(!(a.g>=a.i))break a;this.F=!0}else if(Date.now()-this.s<1E3*this.g.switchInterval)break a;a=this.chooseVariant();this.i.getBandwidthEstimate(ne(this));a&&this.l(a)}};r.getBandwidthEstimate=function(){return this.i.getBandwidthEstimate(ne(this))};r.setVariants=function(a){this.m=a};r.playbackRateChanged=function(a){this.A=a};
154
- r.setMediaElement=function(a){var b=this;this.j=a;this.h&&(this.h.disconnect(),this.h=null);this.j&&"ResizeObserver"in window&&(this.h=new ResizeObserver(function(){b.D.O(oe)}),this.h.observe(this.j))};r.configure=function(a){this.g=a;this.i&&this.g&&this.i.configure(this.g.advanced)};function ne(a){var b=a.g.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&a.g.useNetworkInformation&&(b=1E6*navigator.connection.downlink);return b}
154
+ r.setMediaElement=function(a){var b=this;this.j=a;this.h&&(this.h.disconnect(),this.h=null);this.j&&"ResizeObserver"in window&&(this.h=new ResizeObserver(function(){b.D.N(oe)}),this.h.observe(this.j))};r.configure=function(a){this.g=a;this.i&&this.g&&this.i.configure(this.g.advanced)};function ne(a){var b=a.g.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&a.g.useNetworkInformation&&(b=1E6*navigator.connection.downlink);return b}
155
155
  function me(a,b,c,d){a&&(b=b.filter(function(e){return Jd(e,a,{width:d,height:c})}));return b.sort(function(e,f){return e.bandwidth-f.bandwidth})}K("shaka.abr.SimpleAbrManager",le);le.prototype.configure=le.prototype.configure;le.prototype.setMediaElement=le.prototype.setMediaElement;le.prototype.playbackRateChanged=le.prototype.playbackRateChanged;le.prototype.setVariants=le.prototype.setVariants;le.prototype.getBandwidthEstimate=le.prototype.getBandwidthEstimate;le.prototype.segmentDownloaded=le.prototype.segmentDownloaded;
156
156
  le.prototype.disable=le.prototype.disable;le.prototype.enable=le.prototype.enable;le.prototype.chooseVariant=le.prototype.chooseVariant;le.prototype.init=le.prototype.init;le.prototype.release=le.prototype.release;le.prototype.stop=le.prototype.stop;var oe=1;function pe(a,b){this.g=a;this.h=b}pe.prototype.toString=function(){return"v"+this.g+"."+this.h};function qe(a,b){var c=new pe(5,0),d=re,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function se(a,b,c,d){Xa([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function te(a,b,c,d){Wa([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(""))}var re=null;K("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});function ue(a,b){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)}ue.prototype.add=function(a){return ve(this.h,a)?(this.g.add(a),!0):!1};
157
157
  function ve(a,b){var c;if(!(c=!!a.audio!=!!b.audio||!!a.video!=!!b.video||a.language!=b.language)&&(c=a.audio&&b.audio)){c=a.audio;var d=b.audio;c=!((!(!c.channelsCount||!d.channelsCount||2<c.channelsCount||2<d.channelsCount)||c.channelsCount==d.channelsCount)&&we(c,d)&&xe(c.roles,d.roles))}!c&&(c=a.video&&b.video)&&(a=a.video,b=b.video,c=!(we(a,b)&&xe(a.roles,b.roles)));return c?!1:!0}ue.prototype.values=function(){return this.g.values()};
158
158
  function we(a,b){if(a.mimeType!=b.mimeType)return!1;a=a.codecs.split(",").map(function(d){return ad(d)[0]});b=b.codecs.split(",").map(function(d){return ad(d)[0]});if(a.length!=b.length)return!1;a.sort();b.sort();for(var c=0;c<a.length;c++)if(a[c]!=b[c])return!1;return!0}function xe(a,b){a=new Set(a);b=new Set(b);a.delete("main");b.delete("main");if(a.size!=b.size)return!1;a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b.has(c.value))return!1;return!0};function ye(a){this.g=a;this.h=new ze(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"")}ye.prototype.create=function(a){var b=this,c=a.filter(function(d){return ve(b.g,d)});return c.length?new ue(c[0],c):this.h.create(a)};function ze(a,b,c,d){this.i=a;this.j=b;this.g=c;this.h=void 0===d?"":d}
159
159
  ze.prototype.create=function(a){var b=[];b=Ae(a,this.i);var c=a.filter(function(d){return d.primary});b=b.length?b:c.length?c:a;a=Be(b,this.j);a.length&&(b=a);this.g&&(a=yd(b,this.g),a.length&&(b=a));this.h&&(a=Ce(b,this.h),a.length&&(b=a));a=new ue(b[0]);b=t(b);for(c=b.next();!c.done;c=b.next())c=c.value,ve(a.h,c)&&a.add(c);return a};function Ae(a,b){b=nd(b);var c=ud(b,a.map(function(d){return td(d)}));return c?a.filter(function(d){return c==td(d)}):[]}
160
160
  function Be(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):0==c.audio.roles.length:!1})}function Ce(a,b){return a.filter(function(c){return c.audio?c.audio.label.toLowerCase()==b.toLowerCase():!1})};function De(){this.g=Ee;this.h=(new Map).set(Ee,2).set(Fe,1)}function Ge(a,b,c){a.h.set(Ee,c).set(Fe,b)}var Fe=0,Ee=1;function He(a,b){var c=Ie();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.o=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}
161
- function Je(a){var b,c;return G(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new O(2,7,1010);b=a.g;a.g++;if(0==b)return d.return();c=a.h*(1+(2*Math.random()-1)*a.o);return u(d,new Promise(function(e){(new P(e)).O(c/1E3)}),2)}a.h*=a.m;A(d)})}function Ie(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function Ke(a,b){this.promise=a;this.i=b;this.g=!1}function Le(a){return new Ke(Promise.reject(a),function(){return Promise.resolve()})}function Me(){var a=Promise.reject(new O(2,7,7001));a.catch(function(){});return new Ke(a,function(){return Promise.resolve()})}function Ne(a){return new Ke(Promise.resolve(a),function(){return Promise.resolve()})}function Oe(a){return new Ke(a,function(){return a.catch(function(){})})}Ke.prototype.abort=function(){this.g=!0;return this.i()};
161
+ function Je(a){var b,c;return G(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new O(2,7,1010);b=a.g;a.g++;if(0==b)return d.return();c=a.h*(1+(2*Math.random()-1)*a.o);return u(d,new Promise(function(e){(new P(e)).N(c/1E3)}),2)}a.h*=a.m;A(d)})}function Ie(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function Ke(a,b){this.promise=a;this.i=b;this.g=!1}function Le(a){return new Ke(Promise.reject(a),function(){return Promise.resolve()})}function Me(){var a=Promise.reject(new O(2,7,7001));a.catch(function(){});return new Ke(a,function(){return Promise.resolve()})}function Ne(a){return new Ke(Promise.resolve(a),function(){return Promise.resolve()})}function Oe(a){return new Ke(a,function(){return a.catch(function(){})})}Ke.prototype.abort=function(){this.g=!0;return this.i()};
162
162
  function Pe(a){return new Ke(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}Ke.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
163
163
  Ke.prototype.Z=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=Qe(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new kc,g=new O(2,7,7001);this.promise.then(c(!0),c(!1));return new Ke(f,function(){return d()})};
164
- function Qe(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()}}}K("shaka.util.AbortableOperation",Ke);Ke.prototype.chain=Ke.prototype.Z;Ke.prototype["finally"]=Ke.prototype.finally;Ke.all=Pe;Ke.prototype.abort=Ke.prototype.abort;Ke.notAbortable=Oe;Ke.completed=Ne;Ke.aborted=Me;Ke.failed=Le;function S(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}
165
- function Re(a){var b=new S(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}S.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};S.prototype.stopImmediatePropagation=function(){this.g=!0};S.prototype.stopPropagation=function(){};K("shaka.util.FakeEvent",S);
164
+ function Qe(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()}}}K("shaka.util.AbortableOperation",Ke);Ke.prototype.chain=Ke.prototype.Z;Ke.prototype["finally"]=Ke.prototype.finally;Ke.all=Pe;Ke.prototype.abort=Ke.prototype.abort;Ke.notAbortable=Oe;Ke.completed=Ne;Ke.aborted=Me;Ke.failed=Le;function R(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}
165
+ function Re(a){var b=new R(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}R.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};R.prototype.stopImmediatePropagation=function(){this.g=!0};R.prototype.stopPropagation=function(){};K("shaka.util.FakeEvent",R);
166
166
  var Se={Kg:"abrstatuschanged",Lg:"adaptation",Mg:"buffering",Ng:"downloadfailed",Og:"downloadheadersreceived",Pg:"drmsessionupdate",Rg:"emsg",bh:"prft",Error:"error",Sg:"expirationupdated",Tg:"gapjumped",Vg:"loaded",Wg:"loading",Yg:"manifestparsed",Zg:"mediaqualitychanged",Metadata:"metadata",$g:"onstatechange",ah:"onstateidle",dh:"ratechange",fh:"segmentappended",gh:"sessiondata",hh:"stalldetected",ih:"streaming",jh:"textchanged",kh:"texttrackvisibility",lh:"timelineregionadded",mh:"timelineregionenter",
167
- nh:"timelineregionexit",oh:"trackschanged",qh:"unloading",rh:"variantchanged"};function Te(){this.ea=new vd;this.Xc=this}Te.prototype.addEventListener=function(a,b){this.ea&&this.ea.push(a,b)};Te.prototype.removeEventListener=function(a,b){this.ea&&this.ea.remove(a,b)};Te.prototype.dispatchEvent=function(a){if(!this.ea)return!0;var b=this.ea.get(a.type)||[],c=this.ea.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.Xc;a.currentTarget=this.Xc;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
168
- Te.prototype.release=function(){this.ea=null};function Ue(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||d.buffer&&d.buffer.constructor==ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new Set;return b(a)}function Ve(a){var b={},c;for(c in a)b[c]=a[c];return b};function We(){this.g=[]}function Xe(a,b){a.g.push(b.finally(function(){gb(a.g,b)}))}We.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 Ye(a,b,c){Te.call(this);this.i=!1;this.m=new We;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.s=c||null;this.o=!1}qa(Ye,Te);r=Ye.prototype;r.ke=function(a){this.o=a};function Ze(a,b,c,d){c=c||$e;var e=af[a];if(!e||c>=e.priority)af[a]={priority:c,lg:b,mg:void 0===d?!1:d}}r.ng=function(a){this.g.add(a)};r.Dg=function(a){this.g.delete(a)};r.tf=function(){this.g.clear()};r.og=function(a){this.h.add(a)};r.Eg=function(a){this.h.delete(a)};r.uf=function(){this.h.clear()};
167
+ nh:"timelineregionexit",oh:"trackschanged",qh:"unloading",rh:"variantchanged"};function Te(){this.ea=new vd;this.Yc=this}Te.prototype.addEventListener=function(a,b){this.ea&&this.ea.push(a,b)};Te.prototype.removeEventListener=function(a,b){this.ea&&this.ea.remove(a,b)};Te.prototype.dispatchEvent=function(a){if(!this.ea)return!0;var b=this.ea.get(a.type)||[],c=this.ea.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.Yc;a.currentTarget=this.Yc;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
168
+ Te.prototype.release=function(){this.ea=null};function Ue(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||d.buffer&&d.buffer.constructor==ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new Set;return b(a)}function Ve(a){var b={},c;for(c in a)b[c]=a[c];return b};function We(){this.g=[]}function Xe(a,b){a.g.push(b.finally(function(){ib(a.g,b)}))}We.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 Ye(a,b,c){Te.call(this);this.i=!1;this.m=new We;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.s=c||null;this.o=!1}qa(Ye,Te);r=Ye.prototype;r.ke=function(a){this.o=a};function Ze(a,b,c,d){c=c||$e;var e=af[a];if(!e||c>=e.priority)af[a]={priority:c,lg:b,mg:void 0===d?!1:d}}r.ng=function(a){this.g.add(a)};r.Dg=function(a){this.g.delete(a)};r.tf=function(){this.g.clear()};r.og=function(a){this.h.add(a)};r.Eg=function(a){this.h.delete(a)};r.uf=function(){this.h.clear()};
169
169
  function bf(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}}r.destroy=function(){this.i=!0;this.g.clear();this.h.clear();Te.prototype.release.call(this);return this.m.destroy()};
170
170
  r.request=function(a,b){var c=this,d=new cf;if(this.i){var e=Promise.reject(new O(2,7,7001));e.catch(function(){});return new df(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?Ue(b.retryParameters):Ie();b.uris=Ue(b.uris);e=ef(this,a,b);var f=e.Z(function(){return ff(c,a,b,new He(b.retryParameters,!1),0,null,d)}),g=f.Z(function(p){return gf(c,a,p)}),h=Date.now(),k=0;e.promise.then(function(){k=Date.now()-h},function(){});
171
171
  var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.Z(function(p){var n=Date.now()-l,q=p.response;q.timeMs+=k;q.timeMs+=n;p.Zf||!c.l||q.fromCache||"HEAD"==b.method||a!=hf||c.l(q.timeMs,q.data.byteLength);return q},function(p){p&&(p.severity=2);throw p;});e=new df(m.promise,function(){return m.abort()},d);Xe(this.m,e);return e};
172
- function ef(a,b,c){var d=Ne(void 0),e={};a=t(a.g);for(var f=a.next();!f.done;e={ud:e.ud},f=a.next())e.ud=f.value,d=d.Z(function(g){return function(){c.body&&(c.body=Hb(c.body));return g.ud(b,c)}}(e));return d.Z(void 0,function(g){if(g instanceof O&&7001==g.code)throw g;throw new O(2,1,1006,g);})}
173
- function ff(a,b,c,d,e,f,g){a.o&&(c.uris[e]=c.uris[e].replace("http://","https://"));var h=new Mb(c.uris[e]),k=h.Ea,l=!1;k||(k=location.protocol,k=k.slice(0,-1),Nb(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=af[k])?k.lg:null;if(!m)return Le(new O(2,1,1E3,h));var p=k.mg,n=null,q=null,v=!1,y=!1,w;return Oe(Je(d)).Z(function(){if(a.i)return Me();w=Date.now();var x=m(c.uris[e],c,b,function(B,E,F){n&&n.stop();q&&q.O(z/1E3);a.l&&b==hf&&(a.l(B,E),l=!0,g.g=F)},function(B){a.j&&a.j(B,c,b);y=!0});
174
- if(!p)return x;var D=c.retryParameters.connectionTimeout;D&&(n=new P(function(){v=!0;x.abort()}),n.O(D/1E3));var z=c.retryParameters.stallTimeout;z&&(q=new P(function(){v=!0;x.abort()}));return x}).Z(function(x){n&&n.stop();q&&q.stop();void 0==x.timeMs&&(x.timeMs=Date.now()-w);var D={response:x,Zf:l};!y&&a.j&&a.j(x.headers,c,b);return D},function(x){n&&n.stop();q&&q.stop();if(a.s){var D=null,z=0;x instanceof O&&(D=x,1001==x.code&&(z=x.data[1]));a.s(c,D,z,v)}if(a.i)return Me();v&&(x=new O(1,1,1003,
175
- c.uris[e],b));if(x instanceof O){if(7001==x.code)throw x;if(1010==x.code)throw f;if(1==x.severity)return D=(new Map).set("error",x),D=new S("retry",D),a.dispatchEvent(D),e=(e+1)%c.uris.length,ff(a,b,c,d,e,x,g)}throw x;})}
176
- function gf(a,b,c){var d=Ne(void 0),e={};a=t(a.h);for(var f=a.next();!f.done;e={vd:e.vd},f=a.next())e.vd=f.value,d=d.Z(function(g){return function(){var h=c.response;h.data&&(h.data=Hb(h.data));return g.vd(b,h)}}(e));return d.Z(function(){return c},function(g){var h=2;if(g instanceof O){if(7001==g.code)throw g;h=g.severity}throw new O(h,1,1007,g);})}K("shaka.net.NetworkingEngine",Ye);Ye.prototype.request=Ye.prototype.request;Ye.prototype.destroy=Ye.prototype.destroy;Ye.makeRequest=bf;
172
+ function ef(a,b,c){var d=Ne(void 0),e={};a=t(a.g);for(var f=a.next();!f.done;e={vd:e.vd},f=a.next())e.vd=f.value,d=d.Z(function(g){return function(){c.body&&(c.body=Ib(c.body));return g.vd(b,c)}}(e));return d.Z(void 0,function(g){if(g instanceof O&&7001==g.code)throw g;throw new O(2,1,1006,g);})}
173
+ function ff(a,b,c,d,e,f,g){a.o&&(c.uris[e]=c.uris[e].replace("http://","https://"));var h=new Mb(c.uris[e]),k=h.Ea,l=!1;k||(k=location.protocol,k=k.slice(0,-1),Nb(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=af[k])?k.lg:null;if(!m)return Le(new O(2,1,1E3,h));var p=k.mg,n=null,q=null,v=!1,y=!1,w;return Oe(Je(d)).Z(function(){if(a.i)return Me();w=Date.now();var x=m(c.uris[e],c,b,function(B,E,F){n&&n.stop();q&&q.N(z/1E3);a.l&&b==hf&&(a.l(B,E),l=!0,g.g=F)},function(B){a.j&&a.j(B,c,b);y=!0});
174
+ if(!p)return x;var D=c.retryParameters.connectionTimeout;D&&(n=new P(function(){v=!0;x.abort()}),n.N(D/1E3));var z=c.retryParameters.stallTimeout;z&&(q=new P(function(){v=!0;x.abort()}));return x}).Z(function(x){n&&n.stop();q&&q.stop();void 0==x.timeMs&&(x.timeMs=Date.now()-w);var D={response:x,Zf:l};!y&&a.j&&a.j(x.headers,c,b);return D},function(x){n&&n.stop();q&&q.stop();if(a.s){var D=null,z=0;x instanceof O&&(D=x,1001==x.code&&(z=x.data[1]));a.s(c,D,z,v)}if(a.i)return Me();v&&(x=new O(1,1,1003,
175
+ c.uris[e],b));if(x instanceof O){if(7001==x.code)throw x;if(1010==x.code)throw f;if(1==x.severity)return D=(new Map).set("error",x),D=new R("retry",D),a.dispatchEvent(D),e=(e+1)%c.uris.length,ff(a,b,c,d,e,x,g)}throw x;})}
176
+ function gf(a,b,c){var d=Ne(void 0),e={};a=t(a.h);for(var f=a.next();!f.done;e={wd:e.wd},f=a.next())e.wd=f.value,d=d.Z(function(g){return function(){var h=c.response;h.data&&(h.data=Ib(h.data));return g.wd(b,h)}}(e));return d.Z(function(){return c},function(g){var h=2;if(g instanceof O){if(7001==g.code)throw g;h=g.severity}throw new O(h,1,1007,g);})}K("shaka.net.NetworkingEngine",Ye);Ye.prototype.request=Ye.prototype.request;Ye.prototype.destroy=Ye.prototype.destroy;Ye.makeRequest=bf;
177
177
  Ye.defaultRetryParameters=function(){return Ie()};Ye.prototype.clearAllResponseFilters=Ye.prototype.uf;Ye.prototype.unregisterResponseFilter=Ye.prototype.Eg;Ye.prototype.registerResponseFilter=Ye.prototype.og;Ye.prototype.clearAllRequestFilters=Ye.prototype.tf;Ye.prototype.unregisterRequestFilter=Ye.prototype.Dg;Ye.prototype.registerRequestFilter=Ye.prototype.ng;Ye.unregisterScheme=function(a){delete af[a]};Ye.registerScheme=Ze;Ye.prototype.setForceHTTPS=Ye.prototype.ke;function cf(){this.g=0}
178
178
  Ye.NumBytesRemainingClass=cf;function df(a,b,c){Ke.call(this,a,b);this.h=c}qa(df,Ke);Ye.PendingRequest=df;var hf=1;Ye.RequestType={MANIFEST:0,SEGMENT:hf,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6};var $e=3;Ye.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:$e};var af={};function jf(a){this.g=!1;this.h=new kc;this.i=a}jf.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 kf(a,b){if(a.g){if(b instanceof O&&7003==b.code)throw b;throw new O(2,7,7003,b);}};function lf(){this.g=new vd}r=lf.prototype;r.release=function(){this.ob();this.g=null};r.C=function(a,b,c,d){this.g&&(a=new mf(a,b,c,d),this.g.push(b,a))};r.ca=function(a,b,c,d){function e(g){f.Ac(a,b,e);c(g)}var f=this;this.C(a,b,e,d)};r.Ac=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.Ac(),this.g.remove(b,e))}};
179
179
  r.ob=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,ia(a.g[c]));a=t(b);for(b=a.next();!b.done;b=a.next())b.value.Ac();this.g.g={}}};K("shaka.util.EventManager",lf);lf.prototype.removeAll=lf.prototype.ob;lf.prototype.unlisten=lf.prototype.Ac;lf.prototype.listenOnce=lf.prototype.ca;lf.prototype.listen=lf.prototype.C;lf.prototype.release=lf.prototype.release;function mf(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=nf(a,d);this.target.addEventListener(b,c,this.g)}
180
180
  mf.prototype.Ac=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function nf(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 of(a)?b:b.capture||!1}
181
- function of(a){var b=pf;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}pf=b}return b||!1}var pf=void 0;function qf(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 rf(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0};function sf(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 tf(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function uf(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;a=t(a);for(var c=a.next();!c.done;c=a.next()){var d=t(c.value);c=d.next().value;d=d.next().value;if(!b.has(c))return!1;c=b.get(c);if(c!=d||void 0==c)return!1}return!0};function vf(a,b){this.S=Jb(a);this.h=b==wf;this.g=0}r=vf.prototype;r.ia=function(){return this.g<this.S.byteLength};r.$=function(){return this.g};r.Hf=function(){return this.S.byteLength};r.Sa=function(){try{var a=this.S.getUint8(this.g);this.g+=1;return a}catch(b){throw xf();}};r.be=function(){try{var a=this.S.getUint16(this.g,this.h);this.g+=2;return a}catch(b){throw xf();}};r.K=function(){try{var a=this.S.getUint32(this.g,this.h);this.g+=4;return a}catch(b){throw xf();}};
181
+ function of(a){var b=pf;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}pf=b}return b||!1}var pf=void 0;function qf(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 rf(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0};function sf(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 tf(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function uf(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;a=t(a);for(var c=a.next();!c.done;c=a.next()){var d=t(c.value);c=d.next().value;d=d.next().value;if(!b.has(c))return!1;c=b.get(c);if(c!=d||void 0==c)return!1}return!0};function vf(a,b){this.S=Kb(a);this.h=b==wf;this.g=0}r=vf.prototype;r.ia=function(){return this.g<this.S.byteLength};r.$=function(){return this.g};r.Hf=function(){return this.S.byteLength};r.Sa=function(){try{var a=this.S.getUint8(this.g);this.g+=1;return a}catch(b){throw xf();}};r.be=function(){try{var a=this.S.getUint16(this.g,this.h);this.g+=2;return a}catch(b){throw xf();}};r.K=function(){try{var a=this.S.getUint32(this.g,this.h);this.g+=4;return a}catch(b){throw xf();}};
182
182
  r.Pe=function(){try{var a=this.S.getInt32(this.g,this.h);this.g+=4;return a}catch(b){throw xf();}};r.$a=function(){try{if(this.h){var a=this.S.getUint32(this.g,!0);var b=this.S.getUint32(this.g+4,!0)}else b=this.S.getUint32(this.g,!1),a=this.S.getUint32(this.g+4,!1)}catch(c){throw xf();}if(2097151<b)throw new O(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};r.Za=function(a){if(this.g+a>this.S.byteLength)throw xf();var b=L(this.S,this.g,a);this.g+=a;return b};
183
183
  r.skip=function(a){if(this.g+a>this.S.byteLength)throw xf();this.g+=a};r.ug=function(a){if(this.g<a)throw xf();this.g-=a};r.seek=function(a){if(0>a||a>this.S.byteLength)throw xf();this.g=a};r.tc=function(){for(var a=this.g;this.ia()&&0!=this.S.getUint8(this.g);)this.g+=1;a=L(this.S,a,this.g-a);this.g+=1;return Bc(a)};function xf(){return new O(2,3,3E3)}K("shaka.util.DataViewReader",vf);vf.prototype.readTerminatedString=vf.prototype.tc;vf.prototype.seek=vf.prototype.seek;vf.prototype.rewind=vf.prototype.ug;
184
- vf.prototype.skip=vf.prototype.skip;vf.prototype.readBytes=vf.prototype.Za;vf.prototype.readUint64=vf.prototype.$a;vf.prototype.readInt32=vf.prototype.Pe;vf.prototype.readUint32=vf.prototype.K;vf.prototype.readUint16=vf.prototype.be;vf.prototype.readUint8=vf.prototype.Sa;vf.prototype.getLength=vf.prototype.Hf;vf.prototype.getPosition=vf.prototype.$;vf.prototype.hasMoreData=vf.prototype.ia;var wf=1;vf.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:wf};function yf(){this.i=[];this.h=[];this.g=!1}r=yf.prototype;r.box=function(a,b){a=zf(a);this.i[a]=Af;this.h[a]=b;return this};r.R=function(a,b){a=zf(a);this.i[a]=Bf;this.h[a]=b;return this};r.stop=function(){this.g=!0};r.parse=function(a,b,c){a=new vf(a,0);for(this.g=!1;a.ia()&&!this.g;)this.rc(0,a,b,c)};
184
+ vf.prototype.skip=vf.prototype.skip;vf.prototype.readBytes=vf.prototype.Za;vf.prototype.readUint64=vf.prototype.$a;vf.prototype.readInt32=vf.prototype.Pe;vf.prototype.readUint32=vf.prototype.K;vf.prototype.readUint16=vf.prototype.be;vf.prototype.readUint8=vf.prototype.Sa;vf.prototype.getLength=vf.prototype.Hf;vf.prototype.getPosition=vf.prototype.$;vf.prototype.hasMoreData=vf.prototype.ia;var wf=1;vf.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:wf};function yf(){this.i=[];this.h=[];this.g=!1}r=yf.prototype;r.box=function(a,b){a=zf(a);this.i[a]=Af;this.h[a]=b;return this};r.P=function(a,b){a=zf(a);this.i[a]=Bf;this.h[a]=b;return this};r.stop=function(){this.g=!0};r.parse=function(a,b,c){a=new vf(a,0);for(this.g=!1;a.ia()&&!this.g;)this.rc(0,a,b,c)};
185
185
  r.rc=function(a,b,c,d){var e=b.$();if(d&&e+8>b.S.byteLength)this.g=!0;else{var f=b.K(),g=b.K(),h=Cf(g),k=!1;switch(f){case 0:f=b.S.byteLength-e;break;case 1:if(d&&b.$()+8>b.S.byteLength){this.g=!0;return}f=b.$a();k=!0}var l=this.h[g];if(l){var m=null,p=null;if(this.i[g]==Bf){if(d&&b.$()+4>b.S.byteLength){this.g=!0;return}p=b.K();m=p>>>24;p&=16777215}g=e+f;c&&g>b.S.byteLength&&(g=b.S.byteLength);d&&g>b.S.byteLength?this.g=!0:(d=g-b.$(),b=0<d?b.Za(d):new Uint8Array(0),b=new vf(b,0),l({name:h,parser:this,
186
186
  partialOkay:c||!1,version:m,flags:p,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.$(),b.S.byteLength-b.$()))}};function Df(a){for(var b=Ef(a);a.reader.ia()&&!a.parser.g;)a.parser.rc(a.start+b,a.reader,a.partialOkay)}function Ff(a){for(var b=Ef(a),c=a.reader.K(),d=0;d<c&&(a.parser.rc(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Gf(a){var b=Ef(a);for(a.reader.skip(78);a.reader.ia()&&!a.parser.g;)a.parser.rc(a.start+b,a.reader,a.partialOkay)}
187
187
  function Hf(a){return function(b){a(b.reader.Za(b.reader.S.byteLength-b.reader.$()))}}function zf(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 Cf(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function Ef(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}K("shaka.util.Mp4Parser",yf);yf.headerSize=Ef;yf.typeToString=Cf;yf.allData=Hf;yf.visualSampleEntry=Gf;yf.sampleDescription=Ff;yf.children=Df;yf.prototype.parseNext=yf.prototype.rc;
188
- yf.prototype.parse=yf.prototype.parse;yf.prototype.stop=yf.prototype.stop;yf.prototype.fullBox=yf.prototype.R;yf.prototype.box=yf.prototype.box;var Af=0,Bf=1;function If(a){var b=this;this.g=[];this.h=[];this.data=[];(new yf).box("moov",Df).box("moof",Df).R("pssh",function(c){if(!(1<c.version)){var d=L(c.reader.S,-12,c.size);b.data.push(d);b.g.push(Mc(c.reader.Za(16)));if(0<c.version){d=c.reader.K();for(var e=0;e<d;e++){var f=Mc(c.reader.Za(16));b.h.push(f)}}}}).parse(a)}
189
- function Jf(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=Jb(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=Lc(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function Kf(a,b){a=Lf(a,b);return 1!=a.length?null:a[0]}function Mf(a,b,c){a=Nf(a,b,c);return 1!=a.length?null:a[0]}function Lf(a,b){var c=[];a=t(a.childNodes);for(var d=a.next();!d.done;d=a.next())d=d.value,d instanceof Element&&d.tagName==b&&c.push(d);return c}function Of(a){return Array.from(a.childNodes).filter(function(b){return b instanceof Element})}
188
+ yf.prototype.parse=yf.prototype.parse;yf.prototype.stop=yf.prototype.stop;yf.prototype.fullBox=yf.prototype.P;yf.prototype.box=yf.prototype.box;var Af=0,Bf=1;function If(a){var b=this;this.g=[];this.h=[];this.data=[];(new yf).box("moov",Df).box("moof",Df).P("pssh",function(c){if(!(1<c.version)){var d=L(c.reader.S,-12,c.size);b.data.push(d);b.g.push(Mc(c.reader.Za(16)));if(0<c.version){d=c.reader.K();for(var e=0;e<d;e++){var f=Mc(c.reader.Za(16));b.h.push(f)}}}}).parse(a)}
189
+ function Jf(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=Kb(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=Lc(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function Kf(a,b){a=Lf(a,b);return 1!=a.length?null:a[0]}function Mf(a,b,c){a=Nf(a,b,c);return 1!=a.length?null:a[0]}function Lf(a,b){var c=[];a=t(a.childNodes);for(var d=a.next();!d.done;d=a.next())d=d.value,d instanceof Element&&d.tagName==b&&c.push(d);return c}function Of(a){return Array.from(a.childNodes).filter(function(b){return b instanceof Element})}
190
190
  function Nf(a,b,c){var d=[];a=t(a.childNodes);for(var e=a.next();!e.done;e=a.next())e=e.value,e instanceof Element&&e.localName==c&&e.namespaceURI==b&&d.push(e);return d}function Pf(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null}function Qf(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,a.hasAttributeNS(d,c))return a.getAttributeNS(d,c);return null}function Rf(a){return Array.from(a.childNodes).every(Sf)?a.textContent.trim():null}
191
191
  function Sf(a){return a.nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION_NODE}function Tf(a,b,c,d){d=void 0===d?null:d;var e=null;a=a.getAttribute(b);null!=a&&(e=c(a));return null==e?d:e}function Uf(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}
192
192
  function Vf(a){if(!a)return null;a=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$").exec(a);if(!a)return null;a=31536E3*Number(a[1]||null)+2592E3*Number(a[2]||null)+86400*Number(a[3]||null)+3600*Number(a[4]||null)+60*Number(a[5]||null)+Number(a[6]||null);return isFinite(a)?a:null}
193
193
  function Wf(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 Xf(a){a=Number(a);return 0===a%1?a:null}function Yf(a){a=Number(a);return 0===a%1&&0<a?a:null}function Zf(a){a=Number(a);return 0===a%1&&0<=a?a:null}function $f(a){a=Number(a);return isNaN(a)?null:a}function ag(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}
194
194
  function bg(a,b){var c=new DOMParser,d=cg.value()(a);a=null;try{a=c.parseFromString(d,"text/xml")}catch(e){return null}c=a.documentElement;if(!c||c.getElementsByTagName("parsererror").length||c.tagName!=b)return null;for(b=document.createNodeIterator(a,NodeFilter.SHOW_ALL);a=b.nextNode();)if(a instanceof HTMLElement||a instanceof SVGElement)return null;return c}function dg(a,b){try{var c=Bc(a);return bg(c,b)}catch(d){return null}}
195
- var cg=new lc(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 eg(a,b){var c=this;b=void 0===b?1:b;this.D=a;this.G=new Set;this.l=this.u=null;this.fa=this.ba=!1;this.H=0;this.g=null;this.s=new lf;this.i=new Map;this.A=[];this.o=new kc;this.h=null;this.m=function(d){c.o.reject(d);a.onError(d)};this.ka=new Map;this.da=new Map;this.V=new P(function(){return fg(c)});this.M=!1;this.L=[];this.P=!1;this.ea=(new P(function(){gg(c)})).Ca(b);this.o.catch(function(){});this.j=new jf(function(){return hg(c)});this.W=!1;this.J=this.F=null}r=eg.prototype;
196
- r.destroy=function(){return this.j.destroy()};function hg(a){return G(function(b){switch(b.g){case 1:return a.s.release(),a.s=null,a.o.reject(),a.ea.stop(),a.ea=null,a.V.stop(),a.V=null,u(b,ig(a),2);case 2:if(!a.l){b.B(3);break}C(b,4);return u(b,a.l.setMediaKeys(null),6);case 6:va(b,5);break;case 4:wa(b);case 5:a.l=null;case 3:a.g=null,a.G.clear(),a.u=null,a.A=[],a.h=null,a.m=function(){},a.D=null,a.W=!1,a.F=null,A(b)}})}r.configure=function(a){this.h=a};
195
+ var cg=new lc(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 eg(a,b){var c=this;b=void 0===b?1:b;this.D=a;this.G=new Set;this.l=this.u=null;this.fa=this.ba=!1;this.H=0;this.g=null;this.s=new lf;this.i=new Map;this.A=[];this.o=new kc;this.h=null;this.m=function(d){c.o.reject(d);a.onError(d)};this.ka=new Map;this.da=new Map;this.V=new P(function(){return fg(c)});this.M=!1;this.L=[];this.O=!1;this.ea=(new P(function(){gg(c)})).Ca(b);this.o.catch(function(){});this.j=new jf(function(){return hg(c)});this.W=!1;this.J=this.F=null}r=eg.prototype;
196
+ r.destroy=function(){return this.j.destroy()};function hg(a){return G(function(b){switch(b.g){case 1:return a.s.release(),a.s=null,a.o.reject(),a.ea.stop(),a.ea=null,a.V.stop(),a.V=null,u(b,ig(a),2);case 2:if(!a.l){b.B(3);break}C(b,4);return u(b,a.l.setMediaKeys(null),6);case 6:va(b,5);break;case 4:xa(b);case 5:a.l=null;case 3:a.g=null,a.G.clear(),a.u=null,a.A=[],a.h=null,a.m=function(){},a.D=null,a.W=!1,a.F=null,A(b)}})}r.configure=function(a){this.h=a};
197
197
  function jg(a,b,c){a.fa=!0;a.A=[];a.M=c;return kg(a,b)}function lg(a,b,c){a.A=c;a.M=0<c.length;return kg(a,b)}
198
198
  function mg(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 ng(a,g,[])}
199
199
  function kg(a,b){var c,d,e,f,g,h,k,l,m,p,n,q,v,y,w,x,D;return G(function(z){if(1==z.g){if(c=og(a))for(d=t(b),e=d.next();!e.done;e=d.next())f=e.value,f.video&&(f.video.drmInfos=[c]),f.audio&&(f.audio.drmInfos=[c]);g=b.some(function(B){return B.video&&B.video.drmInfos.length||B.audio&&B.audio.drmInfos.length?!0:!1});g||(h=sf(a.h.servers),pg(b,h));k=new Set;l=t(b);for(e=l.next();!e.done;e=l.next())for(m=e.value,p=qg(m),n=t(p),q=n.next();!q.done;q=n.next())v=q.value,k.add(v);y=t(k);for(q=y.next();!q.done;q=
200
200
  y.next())w=q.value,rg(w,sf(a.h.servers),sf(a.h.advanced||{}),a.h.keySystemsMapping);return u(z,Qd(b,a.M,a.W),2)}x=g||Object.keys(a.h.servers).length;if(!x)return a.ba=!0,z.return(Promise.resolve());D=ng(a,void 0,b);return z.return(g?D:D.catch(function(){}))})}
201
- function sg(a){var b;return G(function(c){switch(c.g){case 1:if(a.l.mediaKeys)return c.return();if(!a.F){c.B(2);break}return u(c,a.F,3);case 3:return kf(a.j),c.return();case 2:return C(c,4),a.F=a.l.setMediaKeys(a.u),u(c,a.F,6);case 6:va(c,5);break;case 4:b=wa(c),a.m(new O(2,6,6003,b.message));case 5:kf(a.j),A(c)}})}function tg(a,b){return G(function(c){if(1==c.g)return u(c,sg(a),2);ug(a,b.initDataType,L(b.initData));A(c)})}
202
- r.Zb=function(a){var b=this;return G(function(c){if(1==c.g){if(!b.u)return b.s.ca(a,"encrypted",function(){b.m(new O(2,6,6010))}),c.return();b.l=a;b.s.ca(b.l,"play",function(){for(var d=t(b.L),e=d.next();!e.done;e=d.next())vg(b,e.value);b.P=!0;b.L=[]});"webkitCurrentPlaybackTargetIsWireless"in b.l&&b.s.C(b.l,"webkitcurrentplaybacktargetiswirelesschanged",function(){return ig(b)});b.J=b.g?b.g.initData.find(function(d){return 0<d.initData.length})||null:null;return b.J||"com.apple.fps"!==b.g.keySystem||
201
+ function sg(a){var b;return G(function(c){switch(c.g){case 1:if(a.l.mediaKeys)return c.return();if(!a.F){c.B(2);break}return u(c,a.F,3);case 3:return kf(a.j),c.return();case 2:return C(c,4),a.F=a.l.setMediaKeys(a.u),u(c,a.F,6);case 6:va(c,5);break;case 4:b=xa(c),a.m(new O(2,6,6003,b.message));case 5:kf(a.j),A(c)}})}function tg(a,b){return G(function(c){if(1==c.g)return u(c,sg(a),2);ug(a,b.initDataType,L(b.initData));A(c)})}
202
+ r.Zb=function(a){var b=this;return G(function(c){if(1==c.g){if(!b.u)return b.s.ca(a,"encrypted",function(){b.m(new O(2,6,6010))}),c.return();b.l=a;b.s.ca(b.l,"play",function(){for(var d=t(b.L),e=d.next();!e.done;e=d.next())vg(b,e.value);b.O=!0;b.L=[]});"webkitCurrentPlaybackTargetIsWireless"in b.l&&b.s.C(b.l,"webkitcurrentplaybacktargetiswirelesschanged",function(){return ig(b)});b.J=b.g?b.g.initData.find(function(d){return 0<d.initData.length})||null:null;return b.J||"com.apple.fps"!==b.g.keySystem||
203
203
  b.A.length?u(c,sg(b),2):c.B(2)}wg(b);b.J||b.A.length||b.h.parseInbandPsshEnabled||b.s.C(b.l,"encrypted",function(d){return tg(b,d)});A(c)})};
204
- function xg(a){var b,c,d,e,f;return G(function(g){switch(g.g){case 1:if(!a.u||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.B(2);break}b=bf([a.g.serverCertificateUri],a.h.retryParameters);C(g,3);c=a.D.lb.request(5,b);return u(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=L(d.data);va(g,4);break;case 3:throw e=wa(g),new O(2,6,6017,e);case 4:if(a.j.g)return g.return();case 2:if(!a.g.serverCertificate||!a.g.serverCertificate.length)return g.return();
205
- C(g,6);return u(g,a.u.setServerCertificate(a.g.serverCertificate),8);case 8:va(g,0);break;case 6:throw f=wa(g),new O(2,6,6004,f.message);}})}function yg(a,b){var c,d,e;return G(function(f){if(1==f.g)return u(f,zg(a,b),2);if(3!=f.g){c=f.h;if(!c)return f.return();d=[];if(e=a.i.get(c))e.Ja=new kc,d.push(e.Ja);d.push(c.remove());return u(f,Promise.all(d),3)}a.i.delete(c);A(f)})}
206
- function wg(a){for(var b=(a.g?a.g.initData:[])||[],c=t(b),d=c.next();!d.done;d=c.next())d=d.value,ug(a,d.initDataType,d.initData);c=t(a.A);for(d=c.next();!d.done;d=c.next())zg(a,d.value);b.length||a.A.length||a.o.resolve();return a.o}function ug(a,b,c){if(c.length){var d=a.i.values();d=t(d);for(var e=d.next();!e.done;e=d.next())if(Fb(c,e.value.initData)&&!sc("Tizen 2"))return;0<a.i.size&&Ag(a)&&(a.o.resolve(),a.o=new kc,a.o.catch(function(){}));Bg(a,b,c,a.g.sessionType)}}
204
+ function xg(a){var b,c,d,e,f;return G(function(g){switch(g.g){case 1:if(!a.u||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.B(2);break}b=bf([a.g.serverCertificateUri],a.h.retryParameters);C(g,3);c=a.D.lb.request(5,b);return u(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=L(d.data);va(g,4);break;case 3:throw e=xa(g),new O(2,6,6017,e);case 4:if(a.j.g)return g.return();case 2:if(!a.g.serverCertificate||!a.g.serverCertificate.length)return g.return();
205
+ C(g,6);return u(g,a.u.setServerCertificate(a.g.serverCertificate),8);case 8:va(g,0);break;case 6:throw f=xa(g),new O(2,6,6004,f.message);}})}function yg(a,b){var c,d,e;return G(function(f){if(1==f.g)return u(f,zg(a,b),2);if(3!=f.g){c=f.h;if(!c)return f.return();d=[];if(e=a.i.get(c))e.Ja=new kc,d.push(e.Ja);d.push(c.remove());return u(f,Promise.all(d),3)}a.i.delete(c);A(f)})}
206
+ function wg(a){for(var b=(a.g?a.g.initData:[])||[],c=t(b),d=c.next();!d.done;d=c.next())d=d.value,ug(a,d.initDataType,d.initData);c=t(a.A);for(d=c.next();!d.done;d=c.next())zg(a,d.value);b.length||a.A.length||a.o.resolve();return a.o}function ug(a,b,c){if(c.length){var d=a.i.values();d=t(d);for(var e=d.next();!e.done;e=d.next())if(Gb(c,e.value.initData)&&!sc("Tizen 2"))return;0<a.i.size&&Ag(a)&&(a.o.resolve(),a.o=new kc,a.o.catch(function(){}));Bg(a,b,c,a.g.sessionType)}}
207
207
  function Cg(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function Dg(a){a=a.i.keys();a=qf(a,function(b){return b.sessionId});return Array.from(a)}r.jc=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};r.Rc=function(){return tf(this.da)};
208
208
  function ng(a,b,c){var d,e,f,g,h,k,l,m,p,n,q,v,y;return G(function(w){switch(w.g){case 1:d=new Map;if(c.length){e=Eg(a,c,d);w.B(2);break}return u(w,Fg(a,b),3);case 3:e=w.h;case 2:f=e;if(!f)throw new O(2,6,6001);kf(a.j);C(w,4);a.G.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=t(h);for(m=l.next();!m.done;m=l.next())p=m.value,a.G.add(p.contentType.toLowerCase());n=t(k);for(m=n.next();!m.done;m=n.next())q=m.value,a.G.add(q.contentType.toLowerCase());if(c.length){var x=
209
209
  f.keySystem;var D=d.get(f.keySystem);var z=[],B=[],E=[],F=[],H=new Set;Gg(D,z,E,B,F,H);var I=a.M?"persistent-license":"temporary";x={keySystem:x,licenseServerUri:z[0],distinctiveIdentifierRequired:D[0].distinctiveIdentifierRequired,persistentStateRequired:D[0].persistentStateRequired,sessionType:D[0].sessionType||I,audioRobustness:D[0].audioRobustness||"",videoRobustness:D[0].videoRobustness||"",serverCertificate:E[0],serverCertificateUri:B[0],initData:F,keyIds:H};D=t(D);for(z=D.next();!z.done;z=
210
210
  D.next())z=z.value,z.distinctiveIdentifierRequired&&(x.distinctiveIdentifierRequired=z.distinctiveIdentifierRequired),z.persistentStateRequired&&(x.persistentStateRequired=z.persistentStateRequired);D=x}else D=f.keySystem,x=b.get(f.keySystem),z=[],B=[],E=[],F=[],H=new Set,Gg(x.drmInfos,z,E,B,F,H),D={keySystem:D,licenseServerUri:z[0],distinctiveIdentifierRequired:"required"==x.distinctiveIdentifier,persistentStateRequired:"required"==x.persistentState,sessionType:x.sessionTypes[0]||"temporary",audioRobustness:(x.audioCapabilities?
211
- x.audioCapabilities[0].robustness:"")||"",videoRobustness:(x.videoCapabilities?x.videoCapabilities[0].robustness:"")||"",serverCertificate:E[0],serverCertificateUri:B[0],initData:F,keyIds:H};a.g=D;if(!a.g.licenseServerUri)throw new O(2,6,6012,a.g.keySystem);return u(w,f.createMediaKeys(),6);case 6:return v=w.h,kf(a.j),a.u=v,a.ba=!0,u(w,xg(a),7);case 7:kf(a.j);va(w,0);break;case 4:y=wa(w);kf(a.j,y);a.g=null;a.G.clear();if(y instanceof O)throw y;throw new O(2,6,6002,y.message);}})}
212
- function Eg(a,b,c){for(var d=t(b),e=d.next();!e.done;e=d.next()){var f=t(qg(e.value));for(e=f.next();!e.done;e=f.next())e=e.value,c.has(e.keySystem)||c.set(e.keySystem,[]),c.get(e.keySystem).push(e)}if(1==c.size&&c.has(""))throw new O(2,6,6E3);d={};a=t(a.h.preferredKeySystems);for(e=a.next();!e.done;d={sd:d.sd},e=a.next())for(d.sd=e.value,f=t(b),e=f.next();!e.done;e=f.next())if(e=e.value.decodingInfos.find(function(l){return function(m){return m.supported&&null!=m.keySystemAccess&&m.keySystemAccess.keySystem==
213
- l.sd}}(d)))return e.keySystemAccess;a=t([!0,!1]);for(e=a.next();!e.done;e=a.next())for(d=e.value,f=t(b),e=f.next();!e.done;e=f.next()){var g=t(e.value.decodingInfos);for(e=g.next();!e.done;e=g.next()){var h=e.value;if(h.supported&&h.keySystemAccess){e=c.get(h.keySystemAccess.keySystem);var k=t(e);for(e=k.next();!e.done;e=k.next())if(!!e.value.licenseServerUri==d)return h.keySystemAccess}}}return null}
211
+ x.audioCapabilities[0].robustness:"")||"",videoRobustness:(x.videoCapabilities?x.videoCapabilities[0].robustness:"")||"",serverCertificate:E[0],serverCertificateUri:B[0],initData:F,keyIds:H};a.g=D;if(!a.g.licenseServerUri)throw new O(2,6,6012,a.g.keySystem);return u(w,f.createMediaKeys(),6);case 6:return v=w.h,kf(a.j),a.u=v,a.ba=!0,u(w,xg(a),7);case 7:kf(a.j);va(w,0);break;case 4:y=xa(w);kf(a.j,y);a.g=null;a.G.clear();if(y instanceof O)throw y;throw new O(2,6,6002,y.message);}})}
212
+ function Eg(a,b,c){for(var d=t(b),e=d.next();!e.done;e=d.next()){var f=t(qg(e.value));for(e=f.next();!e.done;e=f.next())e=e.value,c.has(e.keySystem)||c.set(e.keySystem,[]),c.get(e.keySystem).push(e)}if(1==c.size&&c.has(""))throw new O(2,6,6E3);d={};a=t(a.h.preferredKeySystems);for(e=a.next();!e.done;d={td:d.td},e=a.next())for(d.td=e.value,f=t(b),e=f.next();!e.done;e=f.next())if(e=e.value.decodingInfos.find(function(l){return function(m){return m.supported&&null!=m.keySystemAccess&&m.keySystemAccess.keySystem==
213
+ l.td}}(d)))return e.keySystemAccess;a=t([!0,!1]);for(e=a.next();!e.done;e=a.next())for(d=e.value,f=t(b),e=f.next();!e.done;e=f.next()){var g=t(e.value.decodingInfos);for(e=g.next();!e.done;e=g.next()){var h=e.value;if(h.supported&&h.keySystemAccess){e=c.get(h.keySystemAccess.keySystem);var k=t(e);for(e=k.next();!e.done;e=k.next())if(!!e.value.licenseServerUri==d)return h.keySystemAccess}}}return null}
214
214
  function Fg(a,b){var c,d,e,f,g,h,k,l,m,p,n,q,v,y,w;return G(function(x){switch(x.g){case 1:if(1==b.size&&b.has(""))throw new O(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){x.B(4);break}k=h.value;if(!b.has(k)){x.B(3);break}l=b.get(k);C(x,6);return u(x,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
215
- x.h,x.return(c);case 6:wa(x);case 7:kf(a.j);case 3:h=g.next();x.B(2);break;case 4:m=t([!0,!1]),p=m.next();case 9:if(p.done){x.B(11);break}n=p.value;q=t(b.keys());h=q.next();case 12:if(h.done){p=m.next();x.B(9);break}v=h.value;y=b.get(v);w=y.drmInfos.some(function(D){return!!D.licenseServerUri});if(w!=n){x.B(13);break}C(x,15);return u(x,navigator.requestMediaKeySystemAccess(v,[y]),17);case 17:return c=x.h,x.return(c);case 15:wa(x);case 16:kf(a.j);case 13:h=q.next();x.B(12);break;case 11:return x.return(c)}})}
215
+ x.h,x.return(c);case 6:xa(x);case 7:kf(a.j);case 3:h=g.next();x.B(2);break;case 4:m=t([!0,!1]),p=m.next();case 9:if(p.done){x.B(11);break}n=p.value;q=t(b.keys());h=q.next();case 12:if(h.done){p=m.next();x.B(9);break}v=h.value;y=b.get(v);w=y.drmInfos.some(function(D){return!!D.licenseServerUri});if(w!=n){x.B(13);break}C(x,15);return u(x,navigator.requestMediaKeySystemAccess(v,[y]),17);case 17:return c=x.h,x.return(c);case 15:xa(x);case 16:kf(a.j);case 13:h=q.next();x.B(12);break;case 11:return x.return(c)}})}
216
216
  function og(a){a=sf(a.h.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=f;22!=g.length&&(g=Jc(Lc(f),!1));f=e;22!=f.length&&(f=Jc(Lc(e),!1));e={kty:"oct",kid:g,k:f};b.push(e);c.push(e.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:L(Fc(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",
217
217
  videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:d,keyIds:new Set(c)}}
218
- function zg(a,b){var c,d,e,f,g;return G(function(h){switch(h.g){case 1:try{c=a.u.createSession("persistent-license")}catch(k){return d=new O(2,6,6005,k.message),a.m(d),h.return(Promise.reject(d))}a.s.C(c,"message",function(k){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.P?a.L.push(k):vg(a,k)});a.s.C(c,"keystatuseschange",function(k){return Hg(a,k)});e={initData:null,initDataType:null,loaded:!1,Xd:Infinity,Ja:null,type:"persistent-license"};a.i.set(c,e);C(h,2);return u(h,c.load(b),4);case 4:f=
219
- h.h;kf(a.j);if(!f)return a.i.delete(c),a.m(new O(2,6,6013)),h.return(Promise.resolve());e.loaded=!0;Ag(a)&&a.o.resolve();return h.return(c);case 2:g=wa(h),kf(a.j,g),a.i.delete(c),a.m(new O(2,6,6005,g.message));case 3:return h.return(Promise.resolve())}})}
220
- function Bg(a,b,c,d){try{var e=a.u.createSession(d)}catch(f){a.m(new O(2,6,6005,f.message));return}a.s.C(e,"message",function(f){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.P?a.L.push(f):vg(a,f)});a.s.C(e,"keystatuseschange",function(f){return Hg(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Xd:Infinity,Ja:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof O||(b=new O(2,6,6016,f));a.m(b);return}a.h.logLicenseExchange&&Jc(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
218
+ function zg(a,b){var c,d,e,f,g;return G(function(h){switch(h.g){case 1:try{c=a.u.createSession("persistent-license")}catch(k){return d=new O(2,6,6005,k.message),a.m(d),h.return(Promise.reject(d))}a.s.C(c,"message",function(k){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.O?a.L.push(k):vg(a,k)});a.s.C(c,"keystatuseschange",function(k){return Hg(a,k)});e={initData:null,initDataType:null,loaded:!1,Xd:Infinity,Ja:null,type:"persistent-license"};a.i.set(c,e);C(h,2);return u(h,c.load(b),4);case 4:f=
219
+ h.h;kf(a.j);if(!f)return a.i.delete(c),a.m(new O(2,6,6013)),h.return(Promise.resolve());e.loaded=!0;Ag(a)&&a.o.resolve();return h.return(c);case 2:g=xa(h),kf(a.j,g),a.i.delete(c),a.m(new O(2,6,6005,g.message));case 3:return h.return(Promise.resolve())}})}
220
+ function Bg(a,b,c,d){try{var e=a.u.createSession(d)}catch(f){a.m(new O(2,6,6005,f.message));return}a.s.C(e,"message",function(f){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.O?a.L.push(f):vg(a,f)});a.s.C(e,"keystatuseschange",function(f){return Hg(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Xd:Infinity,Ja:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof O||(b=new O(2,6,6016,f));a.m(b);return}a.h.logLicenseExchange&&Jc(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e);
221
221
  var g=f.errorCode;if(g&&g.systemCode){var h=g.systemCode;0>h&&(h+=Math.pow(2,32));h="0x"+h.toString(16)}a.m(new O(2,6,6006,f.message,f,h))}})}
222
222
  function vg(a,b){var c,d,e,f,g,h,k,l,m,p,n,q,v,y;G(function(w){switch(w.g){case 1:return c=b.target,a.h.logLicenseExchange&&Jc(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=bf([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),
223
- Cg(a.g.keySystem)&&Ig(g),h=Date.now(),C(w,2),l=a.D.lb.request(2,g),u(w,l.promise,4);case 4:k=w.h;va(w,3);break;case 2:return m=wa(w),p=new O(2,6,6007,m),a.m(p),d&&d.Ja&&d.Ja.reject(p),w.return();case 3:if(a.j.g)return w.return();a.H+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&Jc(k.data);C(w,5);return u(w,c.update(k.data),7);case 7:va(w,6);break;case 5:return n=wa(w),q=new O(2,6,6008,n.message),a.m(q),d&&d.Ja&&d.Ja.reject(q),w.return();case 6:if(a.j.g)return w.return();v=new S("drmsessionupdate");
224
- a.D.onEvent(v);d&&(d.Ja&&d.Ja.resolve(),y=new P(function(){d.loaded=!0;Ag(a)&&a.o.resolve()}),y.O(Jg));A(w)}})}
223
+ Cg(a.g.keySystem)&&Ig(g),h=Date.now(),C(w,2),l=a.D.lb.request(2,g),u(w,l.promise,4);case 4:k=w.h;va(w,3);break;case 2:return m=xa(w),p=new O(2,6,6007,m),a.m(p),d&&d.Ja&&d.Ja.reject(p),w.return();case 3:if(a.j.g)return w.return();a.H+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&Jc(k.data);C(w,5);return u(w,c.update(k.data),7);case 7:va(w,6);break;case 5:return n=xa(w),q=new O(2,6,6008,n.message),a.m(q),d&&d.Ja&&d.Ja.reject(q),w.return();case 6:if(a.j.g)return w.return();v=new R("drmsessionupdate");
224
+ a.D.onEvent(v);d&&(d.Ja&&d.Ja.resolve(),y=new P(function(){d.loaded=!0;Ag(a)&&a.o.resolve()}),y.N(Jg));A(w)}})}
225
225
  function Ig(a){var b=Cc(a.body,!0,!0);if(b.includes("PlayReadyKeyMessage")){b=bg(b,"PlayReadyKeyMessage");for(var c=t(b.getElementsByTagName("HttpHeader")),d=c.next();!d.done;d=c.next())d=d.value,a.headers[d.getElementsByTagName("name")[0].textContent]=d.getElementsByTagName("value")[0].textContent;a.body=Kc(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"}
226
- function Hg(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}if(Cg(a.g.keySystem)&&16==g.byteLength&&(qc()||wc())){h=Jb(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=Mc(g).slice(0,32);a.ka.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.Ja&&(a.i.delete(b),b.close().catch(function(){}));
227
- Ag(a)&&(a.o.resolve(),a.V.O(Kg))}function fg(a){var b=a.ka,c=a.da;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.m(new O(2,6,6014));a.D.dd(tf(c))}
226
+ function Hg(a,b){b=b.target;var c=a.i.get(b),d=!1;b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}if(Cg(a.g.keySystem)&&16==g.byteLength&&(qc()||wc())){h=Kb(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=Mc(g).slice(0,32);a.ka.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.Ja&&(a.i.delete(b),b.close().catch(function(){}));
227
+ Ag(a)&&(a.o.resolve(),a.V.N(Kg))}function fg(a){var b=a.ka,c=a.da;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.m(new O(2,6,6014));a.D.ed(tf(c))}
228
228
  function Lg(){var a,b,c,d,e,f,g,h;return G(function(k){return 1==k.g?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),b=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],c={initDataTypes:["cenc"],videoCapabilities:b},d={videoCapabilities:b,persistentState:"required",sessionTypes:["persistent-license"]},e=[d,c],f=new Map,g=function(l){var m,p,
229
- n;return G(function(q){switch(q.g){case 1:C(q,2);if("org.w3.clearkey"===l&&xc())throw Error("Unsupported keySystem");return u(q,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=q.h,n=(p=m.getConfiguration().sessionTypes)?p.includes("persistent-license"):!1,sc("Tizen 3")&&(n=!1),f.set(l,{persistentState:n}),u(q,m.createMediaKeys(),5);case 5:va(q,0);break;case 2:wa(q),f.set(l,null),A(q)}})},h=a.map(function(l){return g(l)}),u(k,Promise.all(h),2)):k.return(tf(f))})}
230
- function Mg(a){var b;return G(function(c){if(1==c.g)return b=new Promise(function(d,e){(new P(e)).O(Ng)}),C(c,2),u(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return va(c,0);wa(c);A(c)})}
231
- function ig(a){var b;return G(function(c){b=Array.from(a.i.entries());a.i.clear();return u(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return G(function(g){if(1==g.g)return C(g,2),a.fa||a.A.includes(e.sessionId)||"persistent-license"!==f.type?u(g,Mg(e),5):u(g,e.remove(),5);if(2!=g.g)return va(g,0);wa(g);A(g)})})),0)})}
229
+ n;return G(function(q){switch(q.g){case 1:C(q,2);if("org.w3.clearkey"===l&&xc())throw Error("Unsupported keySystem");return u(q,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=q.h,n=(p=m.getConfiguration().sessionTypes)?p.includes("persistent-license"):!1,sc("Tizen 3")&&(n=!1),f.set(l,{persistentState:n}),u(q,m.createMediaKeys(),5);case 5:va(q,0);break;case 2:xa(q),f.set(l,null),A(q)}})},h=a.map(function(l){return g(l)}),u(k,Promise.all(h),2)):k.return(tf(f))})}
230
+ function Mg(a){var b;return G(function(c){if(1==c.g)return b=new Promise(function(d,e){(new P(e)).N(Ng)}),C(c,2),u(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return va(c,0);xa(c);A(c)})}
231
+ function ig(a){var b;return G(function(c){b=Array.from(a.i.entries());a.i.clear();return u(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return G(function(g){if(1==g.g)return C(g,2),a.fa||a.A.includes(e.sessionId)||"persistent-license"!==f.type?u(g,Mg(e),5):u(g,e.remove(),5);if(2!=g.g)return va(g,0);xa(g);A(g)})})),0)})}
232
232
  function Og(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={},f=t(b),g=f.next();!g.done;e={Da:e.Da},g=f.next())if(g=g.value,d.keySystem==g.keySystem){e.Da=[];e.Da=e.Da.concat(d.initData||[]);e.Da=e.Da.concat(g.initData||[]);e.Da=e.Da.filter(function(h){return function(k,l){return void 0===k.keyId||l===h.Da.findIndex(function(m){return m.keyId===k.keyId})}}(e));f=d.keyIds&&g.keyIds?new Set([].concat(ia(d.keyIds),ia(g.keyIds))):
233
233
  d.keyIds||g.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri||g.licenseServerUri,distinctiveIdentifierRequired:d.distinctiveIdentifierRequired||g.distinctiveIdentifierRequired,persistentStateRequired:d.persistentStateRequired||g.persistentStateRequired,videoRobustness:d.videoRobustness||g.videoRobustness,audioRobustness:d.audioRobustness||g.audioRobustness,serverCertificate:d.serverCertificate||g.serverCertificate,serverCertificateUri:d.serverCertificateUri||g.serverCertificateUri,
234
234
  initData:e.Da,keyIds:f});break}}return c}function qg(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function gg(a){a.i.forEach(function(b,c){var d=b.Xd,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.D.onExpirationUpdated(c.sessionId,e),b.Xd=e)})}function Ag(a){a=a.i.values();return rf(a,function(b){return b.loaded})}
235
235
  function pg(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)}
236
- function Gg(a,b,c,d,e,f){var g={};a=t(a);for(var h=a.next();!h.done;g={pa:g.pa},h=a.next()){g.pa=h.value;b.includes(g.pa.licenseServerUri)||b.push(g.pa.licenseServerUri);d.includes(g.pa.serverCertificateUri)||d.push(g.pa.serverCertificateUri);g.pa.serverCertificate&&(c.some(function(m){return function(p){return Fb(p,m.pa.serverCertificate)}}(g))||c.push(g.pa.serverCertificate));if(g.pa.initData){h={};for(var k=t(g.pa.initData),l=k.next();!l.done;h={Ec:h.Ec},l=k.next())h.Ec=l.value,e.some(function(m){return function(p){var n=
237
- m.Ec;return p.keyId&&p.keyId==n.keyId?!0:p.initDataType==n.initDataType&&Fb(p.initData,n.initData)}}(h))||e.push(h.Ec)}if(g.pa.keyIds)for(h=t(g.pa.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}}
236
+ function Gg(a,b,c,d,e,f){var g={};a=t(a);for(var h=a.next();!h.done;g={pa:g.pa},h=a.next()){g.pa=h.value;b.includes(g.pa.licenseServerUri)||b.push(g.pa.licenseServerUri);d.includes(g.pa.serverCertificateUri)||d.push(g.pa.serverCertificateUri);g.pa.serverCertificate&&(c.some(function(m){return function(p){return Gb(p,m.pa.serverCertificate)}}(g))||c.push(g.pa.serverCertificate));if(g.pa.initData){h={};for(var k=t(g.pa.initData),l=k.next();!l.done;h={Ec:h.Ec},l=k.next())h.Ec=l.value,e.some(function(m){return function(p){var n=
237
+ m.Ec;return p.keyId&&p.keyId==n.keyId?!0:p.initDataType==n.initDataType&&Gb(p.initData,n.initData)}}(h))||e.push(h.Ec)}if(g.pa.keyIds)for(h=t(g.pa.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}}
238
238
  function rg(a,b,c,d){var e=a.keySystem;if(e&&("org.w3.clearkey"!=e||!a.licenseServerUri)){b.size&&(b=b.get(e)||"",a.licenseServerUri=b);a.keyIds||(a.keyIds=new Set);if(c=c.get(e))a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness),a.audioRobustness||(a.audioRobustness=c.audioRobustness),a.serverCertificate||(a.serverCertificate=
239
- c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);d[e]&&(a.keySystem=d[e]);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==e&&(a.keySystem="com.chromecast.playready")}}var Ng=1,Jg=5,Kg=.5,Pg=new lc(function(){return Hb(new Uint8Array([0]))});function Qg(){}function Rg(a,b,c,d){var e,f,g,h;return G(function(k){if(1==k.g){if(d&&(e=Sg[d.toLowerCase()]))return k.return(e);if(f=Tg(a))if(g=Ug[f])return k.return(g);return d?k.B(2):u(k,Vg(a,b,c),3)}if(2!=k.g&&(d=k.h)&&(h=Sg[d]))return k.return(h);throw new O(2,4,4E3,a);})}function Vg(a,b,c){var d,e,f;return G(function(g){if(1==g.g)return d=bf([a],c),d.method="HEAD",u(g,b.request(0,d).promise,2);e=g.h;f=e.headers["content-type"];return g.return(f?f.toLowerCase().split(";").shift():"")})}
240
- function Tg(a){a=(new Mb(a)).ra.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()}K("shaka.media.ManifestParser",Qg);Qg.unregisterParserByMime=function(a){delete Sg[a]};Qg.registerParserByMime=function(a,b){Sg[a]=b};Qg.registerParserByExtension=function(a,b){Ug[a]=b};var Sg={},Ug={};function Wg(a){function b(){d=!0}function c(l){f.push(l);Df(l)}a=L(a);var d=!1,e,f=[],g=[];(new yf).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).R("stsd",function(l){e=l;f.push(l);Ff(l)}).R("encv",b).R("enca",b).R("hev1",function(l){g.push({box:l,mb:1701733238})}).R("hvc1",function(l){g.push({box:l,mb:1701733238})}).R("avc1",function(l){g.push({box:l,mb:1701733238})}).R("avc3",function(l){g.push({box:l,mb:1701733238})}).R("ac-3",function(l){g.push({box:l,mb:1701733217})}).R("ec-3",
241
- function(l){g.push({box:l,mb:1701733217})}).R("mp4a",function(l){g.push({box:l,mb:1701733217})}).parse(a);if(d)return a;if(0==g.length||!e)throw cb(Mc(a)),new O(2,3,3019);g.reverse();for(var h=t(g),k=h.next();!k.done;k=h.next())k=k.value,a=Xg(a,e,k.box,f,k.mb);return a}
242
- function Xg(a,b,c,d,e){var f=Yg.value(),g=a.subarray(c.start,c.start+c.size),h=Jb(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Jb(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);Zg(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=rc()?c.start:c.start+c.size;f=a.subarray(c);e.set(a.subarray(0,c));e.set(k,c);e.set(f,c+k.byteLength);a=t(d);for(d=a.next();!d.done;d=a.next())d=d.value,Zg(e,d.start,d.size+k.byteLength);k=Jb(e,b.start);b=Ef(b);a=k.getUint32(b);
243
- k.setUint32(b,a+1);return e}function Zg(a,b,c){a=Jb(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var Yg=new lc(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function $g(a,b,c,d,e){if(d>=e)return null;for(var f=-1,g=-1,h=0;h<c.length;h++)if(c[h].some(function(B){return null!=B&&""!=B.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(B){return null!=B&&""!=B.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",p=ah(d,e,h,k,l,m);f<=g;f++){for(var n=c[f],q=-1,v=-1,y=0;y<n.length;y++)if(null!=n[y]&&""!==n[y].g.trim()){q=y;break}for(y=n.length-1;0<=y;y--)if(null!=n[y]&&""!==n[y].g.trim()){v=y;break}if(-1===
239
+ c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);d[e]&&(a.keySystem=d[e]);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==e&&(a.keySystem="com.chromecast.playready")}}var Ng=1,Jg=5,Kg=.5,Pg=new lc(function(){return Ib(new Uint8Array([0]))});function Qg(){}function Rg(a,b,c,d){var e,f,g,h;return G(function(k){if(1==k.g){if(d&&(e=Sg[d.toLowerCase()]))return k.return(e);if(f=Tg(a))if(g=Ug[f])return k.return(g);return d?k.B(2):u(k,Vg(a,b,c),3)}if(2!=k.g&&(d=k.h)&&(h=Sg[d]))return k.return(h);throw new O(2,4,4E3,a);})}function Vg(a,b,c){var d,e,f;return G(function(g){if(1==g.g)return d=bf([a],c),d.method="HEAD",u(g,b.request(0,d).promise,2);e=g.h;f=e.headers["content-type"];return g.return(f?f.toLowerCase().split(";").shift():"")})}
240
+ function Tg(a){a=(new Mb(a)).ra.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()}K("shaka.media.ManifestParser",Qg);Qg.unregisterParserByMime=function(a){delete Sg[a]};Qg.registerParserByMime=function(a,b){Sg[a]=b};Qg.registerParserByExtension=function(a,b){Ug[a]=b};var Sg={},Ug={};function Wg(a){function b(){d=!0}function c(l){f.push(l);Df(l)}a=L(a);var d=!1,e,f=[],g=[];(new yf).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).P("stsd",function(l){e=l;f.push(l);Ff(l)}).P("encv",b).P("enca",b).P("hev1",function(l){g.push({box:l,mb:1701733238})}).P("hvc1",function(l){g.push({box:l,mb:1701733238})}).P("avc1",function(l){g.push({box:l,mb:1701733238})}).P("avc3",function(l){g.push({box:l,mb:1701733238})}).P("ac-3",function(l){g.push({box:l,mb:1701733217})}).P("ec-3",
241
+ function(l){g.push({box:l,mb:1701733217})}).P("mp4a",function(l){g.push({box:l,mb:1701733217})}).parse(a);if(d)return a;if(0==g.length||!e)throw eb(Mc(a)),new O(2,3,3019);g.reverse();for(var h=t(g),k=h.next();!k.done;k=h.next())k=k.value,a=Xg(a,e,k.box,f,k.mb);return a}
242
+ function Xg(a,b,c,d,e){var f=Yg.value(),g=a.subarray(c.start,c.start+c.size),h=Kb(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Kb(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);Zg(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=rc()?c.start:c.start+c.size;f=a.subarray(c);e.set(a.subarray(0,c));e.set(k,c);e.set(f,c+k.byteLength);a=t(d);for(d=a.next();!d.done;d=a.next())d=d.value,Zg(e,d.start,d.size+k.byteLength);k=Kb(e,b.start);b=Ef(b);a=k.getUint32(b);
243
+ k.setUint32(b,a+1);return e}function Zg(a,b,c){a=Kb(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var Yg=new lc(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function $g(a,b,c,d,e){if(d>=e)return null;for(var f=-1,g=-1,h=0;h<c.length;h++)if(c[h].some(function(B){return null!=B&&""!=B.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(B){return null!=B&&""!=B.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",p=ah(d,e,h,k,l,m);f<=g;f++){for(var n=c[f],q=-1,v=-1,y=0;y<n.length;y++)if(null!=n[y]&&""!==n[y].g.trim()){q=y;break}for(y=n.length-1;0<=y;y--)if(null!=n[y]&&""!==n[y].g.trim()){v=y;break}if(-1===
244
244
  q||-1===v)n=bh(d,e),a.nestedCues.push(n);else{for(;q<=v;q++)if(y=n[q]){var w=y.l,x=y.i,D=y.j,z=y.h;if(w!=h||x!=k||D!=l||z!=m)p.payload&&a.nestedCues.push(p),p=ah(d,e,w,x,D,z),h=w,k=x,l=D,m=z;p.payload+=y.g}else p.payload+=" ";p.payload&&a.nestedCues.push(p);f!==g&&(p=bh(d,e),a.nestedCues.push(p));p=ah(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
245
- function ah(a,b,c,d,e,f){a=new jb(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function bh(a,b){a=new jb(a,b,"");a.lineBreak=!0;return a}function ch(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function dh(a,b){this.i=[];this.g=1;this.h=0;this.u=a;this.s=b;this.j=this.m=!1;this.l="white";this.o="black";eh(this)}function fh(a,b,c){return $g(new jb(b,c,""),"CC"+(a.u<<1|a.s+1),a.i,b,c)}function eh(a){gh(a,0,15);a.g=1}function hh(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case ih:d=jh.has(c)?jh.get(c):String.fromCharCode(c);break;case kh:d=lh.get(c);break;case mh:a.i[a.g].pop();d=nh.get(c);break;case oh:a.i[a.g].pop(),d=ph.get(c)}d&&a.i[a.g].push(new ch(d,a.m,a.j,a.o,a.l))}}
245
+ function ah(a,b,c,d,e,f){a=new lb(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function bh(a,b){a=new lb(a,b,"");a.lineBreak=!0;return a}function ch(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function dh(a,b){this.i=[];this.g=1;this.h=0;this.u=a;this.s=b;this.j=this.m=!1;this.l="white";this.o="black";eh(this)}function fh(a,b,c){return $g(new lb(b,c,""),"CC"+(a.u<<1|a.s+1),a.i,b,c)}function eh(a){gh(a,0,15);a.g=1}function hh(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case ih:d=jh.has(c)?jh.get(c):String.fromCharCode(c);break;case kh:d=lh.get(c);break;case mh:a.i[a.g].pop();d=nh.get(c);break;case oh:a.i[a.g].pop(),d=ph.get(c)}d&&a.i[a.g].push(new ch(d,a.m,a.j,a.o,a.l))}}
246
246
  function qh(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 gh(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
247
247
  var ih=0,kh=1,mh=2,oh=3,jh=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"]]),lh=new Map([[48,"\u00ae"],[49,"\u00b0"],[50,"\u00bd"],[51,"\u00bf"],[52,"\u2122"],[53,"\u00a2"],[54,"\u00a3"],[55,"\u266a"],[56,"\u00e0"],[57,"\u2800"],[58,"\u00e8"],[59,"\u00e2"],[60,"\u00ea"],[61,"\u00ee"],[62,"\u00f4"],[63,"\u00fb"]]),nh=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],
248
248
  [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"]]),ph=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"],
249
- [39,"\u00d5"],[40,"\u00f5"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"\u00c4"],[49,"\u00e4"],[50,"\u00d6"],[51,"\u00f6"],[52,"\u00df"],[53,"\u00a5"],[54,"\u00a4"],[55,"\u2502"],[56,"\u00c5"],[57,"\u00e5"],[58,"\u00d8"],[59,"\u00f8"],[60,"\u250c"],[61,"\u2510"],[62,"\u2514"],[63,"\u2518"]]);function rh(a,b){this.h=sh;this.o=new dh(a,b);this.i=new dh(a,b);this.l=new dh(a,b);this.g=this.i;this.j=0;this.m=null}function th(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==uh&&a.h!==vh&&(e=fh(d,a.j,c),c=a.i,c.g=0<c.h?c.h:0,gh(c,0,15),c=a.l,c.g=0<c.h?c.h:0,gh(c,0,15),d.g=15);a.h=uh;d.h=b;return e}function wh(a){a.h=xh;a.g=a.l;a.g.h=0}function yh(a){Ya("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.o;a.h=vh}
249
+ [39,"\u00d5"],[40,"\u00f5"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"\u00c4"],[49,"\u00e4"],[50,"\u00d6"],[51,"\u00f6"],[52,"\u00df"],[53,"\u00a5"],[54,"\u00a4"],[55,"\u2502"],[56,"\u00c5"],[57,"\u00e5"],[58,"\u00d8"],[59,"\u00f8"],[60,"\u250c"],[61,"\u2510"],[62,"\u2514"],[63,"\u2518"]]);function rh(a,b){this.h=sh;this.o=new dh(a,b);this.i=new dh(a,b);this.l=new dh(a,b);this.g=this.i;this.j=0;this.m=null}function th(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==uh&&a.h!==vh&&(e=fh(d,a.j,c),c=a.i,c.g=0<c.h?c.h:0,gh(c,0,15),c=a.l,c.g=0<c.h?c.h:0,gh(c,0,15),d.g=15);a.h=uh;d.h=b;return e}function wh(a){a.h=xh;a.g=a.l;a.g.h=0}function yh(a){Za("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.o;a.h=vh}
250
250
  var sh=0,xh=1,uh=3,vh=4,zh="black green blue cyan red yellow magenta black".split(" "),Ah="white green blue cyan red yellow magenta white_italics".split(" ");function Bh(){this.l=!1;this.A=this.F=0;this.D=Ch;this.i=[];this.g=this.h=this.j=0;this.u=this.o=!1;this.s="white";this.m="black";Dh(this)}function Dh(a){a.i=[];for(var b=0;16>b;b++)a.i.push(Eh())}function Eh(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function Fh(a,b){Gh(a)&&(a.i[a.h][a.g]=new ch(b,a.u,a.o,a.m,a.s),a.g++)}function Gh(a){var b=a.g<a.A&&0<=a.g;return a.h<a.F&&0<=a.h&&b}Bh.prototype.isVisible=function(){return this.l};
251
- function Hh(a,b,c){var d=new jb(a.j,b,"");d.textAlign=a.D===Ih?"left":a.D===Jh?"right":nb;if(c=$g(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var Ih=0,Jh=1,Ch=2;function Kh(){this.i=[];this.h=null;this.g=0}function Lh(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 Mh(a.h)),a.h=null,a.g=0))}function Mh(a){this.g=0;this.h=a}Mh.prototype.ia=function(){return this.g<this.h.length};Mh.prototype.$=function(){return this.g};function Nh(a){if(!a.ia())throw new O(2,2,3E3);return a.h[a.g++]}Mh.prototype.skip=function(a){if(this.g+a>this.h.length)throw new O(2,2,3E3);this.g+=a};function Oh(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
251
+ function Hh(a,b,c){var d=new lb(a.j,b,"");d.textAlign=a.D===Ih?"left":a.D===Jh?"right":pb;if(c=$g(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var Ih=0,Jh=1,Ch=2;function Kh(){this.i=[];this.h=null;this.g=0}function Lh(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 Mh(a.h)),a.h=null,a.g=0))}function Mh(a){this.g=0;this.h=a}Mh.prototype.ia=function(){return this.g<this.h.length};Mh.prototype.$=function(){return this.g};function Nh(a){if(!a.ia())throw new O(2,2,3E3);return a.h[a.g++]}Mh.prototype.skip=function(a){if(this.g+a>this.h.length)throw new O(2,2,3E3);this.g+=a};function Oh(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
252
252
  function Ph(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=Nh(b).value;b=null;c=t(Qh(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Hh(e,d,a.i)),Dh(e);return b}if(137===c)for(b=Nh(b).value,b=t(Qh(a,b)),c=b.next();!c.done;c=b.next())c=a.h[c.value],c.isVisible()||(c.j=d),c.l=!0;else{if(138===c){c=Nh(b).value;b=null;c=t(Qh(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=Hh(e,d,a.i)),e.l=!1;return b}if(139===c){c=Nh(b).value;
253
253
  b=null;c=t(Qh(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=Hh(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=Nh(b).value,Rh(a,b,d);if(143===c)return d=Rh(a,255,d),Sh(a),d;if(144===c)b.skip(1),d=Nh(b).value,a.g&&(a.g.o=0<(d&128),a.g.u=0<(d&64));else if(145===c)d=Nh(b).value,c=Nh(b).value,b.skip(1),a.g&&(b=Th((c&48)>>4,(c&12)>>2,c&3),a.g.s=Th((d&48)>>4,(d&12)>>2,d&3),a.g.m=b);else if(146===c)d=Nh(b).value,b=Nh(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),
254
254
  b.skip(1),d=Nh(b).value,b.skip(1),a.g&&(a.g.D=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];if(!e){var f=new Bh;f.j=d;a.h[c]=f}d=Nh(b).value;Nh(b);Nh(b);f=Nh(b).value;var g=Nh(b).value;b=Nh(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.u=!1,b.o=!1,b.s="white",b.m="black");b=a.h[c];b.l=0<(d&32);b.F=(f&15)+1;b.A=(g&63)+1;a.g=a.h[c]}}}return null}function Qh(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}
@@ -261,18 +261,18 @@ a=1===(a&1);if(c.h!==vh){e=c.g;if(c.h===uh&&b!==e.g){var g=1+b-e.h;qh(e,g,1+e.g-
261
261
  f-1),gh(b,b.g,15-b.g),c.j=a);break;case 46:gh(c.l,0,15);break;case 47:b=null,c.h!==vh&&(b=fh(c.i,c.j,a)),d=c.l,c.l=c.i,c.i=d,wh(c),c.j=a,d=b}a=d;break a}a=null}else d=b.La,hh(c.g,ih,b.xa),hh(c.g,ih,d);return a}
262
262
  function $h(a,b){var c=[];try{for(;b.ia();){var d=Nh(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=Nh(b).value&63);if(0!=e){a.j.has(e)||a.j.set(e,new Oh(e));for(var g=a.j.get(e),h=b.$();b.$()-h<f;){e=b;var k=Nh(e),l=k.value,m=k.pts;if(16===l){var p=Nh(e);l=l<<16|p.value}if(0<=l&&31>=l){var n=m;if(g.g){var q=g.g;e=null;switch(l){case 8:!Gh(q)||0>=q.g&&0>=q.h||(0>=q.g?(q.g=q.A-1,q.h--):q.g--,q.i[q.h][q.g]=null);break;case 13:q.isVisible()&&(e=Hh(q,n,g.i));if(q.h+1>=q.F){n=q;for(var v=0,y=1;16>y;y++,
263
263
  v++)n.i[v]=n.i[y];for(y=0;1>y;y++,v++)n.i[v]=Eh()}else q.h++;q.g=0;break;case 14:q.isVisible()&&(e=Hh(q,n,g.i));q.i[q.h]=Eh();q.g=0;break;case 12:q.isVisible()&&(e=Hh(q,n,g.i)),Dh(q),n=q,n.h=0,n.g=0}var w=e}else w=null}else if(128<=l&&159>=l)w=Ph(g,e,l,m);else{if(4096<=l&&4127>=l)n=l&255,8<=n&&15>=n?e.skip(1):16<=n&&23>=n?e.skip(2):24<=n&&31>=n&&e.skip(3);else if(4224<=l&&4255>=l)n=l&255,128<=n&&135>=n?e.skip(4):136<=n&&143>=n&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?Fh(g.g,"\u266a"):Fh(g.g,
264
- String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&Fh(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(Vh.has(e)){var x=Vh.get(e);Fh(g.g,x)}else Fh(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?Fh(g.g,"_"):Fh(g.g,"[CC]"));w=null}(e=w)&&c.push(e)}}}}catch(D){if(D instanceof O&&3E3===D.code)Ya("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw D;}return c}function ai(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function bi(){}bi.prototype.init=function(){};bi.prototype.parse=function(){return[]};function ci(a){for(var b=[],c=a,d=a=0;d<c.length;)2==a&&3==c[d]?(a=0,c=[].concat(ia(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 di(a,b){var c=null,d=null,e=null,f=a.K();b&1&&(e=a.$a());b&2&&a.skip(4);b&8&&(c=a.K());b&16&&(d=a.K());return{trackId:f,Ce:c,yf:d,sh:e}}function ei(a,b){return{we:1==b?a.$a():a.K()}}function fi(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.K()}}
265
- function gi(a,b,c){var d=a.K(),e=[],f=null;c&1&&(f=a.K());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={ge:null,sampleSize:null,fd:null};c&256&&(h.ge=a.K());c&512&&(h.sampleSize=a.K());c&1024&&a.skip(4);c&2048&&(h.fd=0==b?a.K():a.Pe());e.push(h)}return{yh:d,Re:e,xf:f}};function hi(){this.j=new Map;this.i=this.h=0;this.g=ii}
266
- hi.prototype.init=function(a){function b(f){f=f.name;f in ji&&(c.g=ji[f])}var c=this,d=[],e=[];(new yf).box("moov",Df).box("mvex",Df).R("trex",function(f){var g=f.reader;g.skip(4);g.skip(4);f=g.K();g=g.K();c.h=f;c.i=g}).box("trak",Df).R("tkhd",function(f){var g=f.reader;1==f.version?(g.skip(8),g.skip(8)):(g.skip(4),g.skip(4));f=g.K();d.push(f)}).box("mdia",Df).R("mdhd",function(f){f=fi(f.reader,f.version);e.push(f.timescale)}).box("minf",Df).box("stbl",Df).R("stsd",Ff).box("avc1",b).box("avc3",b).box("hev1",
264
+ String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&Fh(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(Vh.has(e)){var x=Vh.get(e);Fh(g.g,x)}else Fh(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?Fh(g.g,"_"):Fh(g.g,"[CC]"));w=null}(e=w)&&c.push(e)}}}}catch(D){if(D instanceof O&&3E3===D.code)Za("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw D;}return c}function ai(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function bi(){}bi.prototype.init=function(){};bi.prototype.parse=function(){return[]};function ci(a){for(var b=[],c=a,d=a=0;d<c.length;)2==a&&3==c[d]?(a=0,c=[].concat(ia(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 di(a,b){var c=null,d=null,e=null,f=a.K();b&1&&(e=a.$a());b&2&&a.skip(4);b&8&&(c=a.K());b&16&&(d=a.K());return{trackId:f,Ce:c,yf:d,sh:e}}function ei(a,b){return{we:1==b?a.$a():a.K()}}function fi(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.K()}}
265
+ function gi(a,b,c){var d=a.K(),e=[],f=null;c&1&&(f=a.K());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={ge:null,sampleSize:null,gd:null};c&256&&(h.ge=a.K());c&512&&(h.sampleSize=a.K());c&1024&&a.skip(4);c&2048&&(h.gd=0==b?a.K():a.Pe());e.push(h)}return{yh:d,Re:e,xf:f}};function hi(){this.j=new Map;this.i=this.h=0;this.g=ii}
266
+ hi.prototype.init=function(a){function b(f){f=f.name;f in ji&&(c.g=ji[f])}var c=this,d=[],e=[];(new yf).box("moov",Df).box("mvex",Df).P("trex",function(f){var g=f.reader;g.skip(4);g.skip(4);f=g.K();g=g.K();c.h=f;c.i=g}).box("trak",Df).P("tkhd",function(f){var g=f.reader;1==f.version?(g.skip(8),g.skip(8)):(g.skip(4),g.skip(4));f=g.K();d.push(f)}).box("mdia",Df).P("mdhd",function(f){f=fi(f.reader,f.version);e.push(f.timescale)}).box("minf",Df).box("stbl",Df).P("stsd",Ff).box("avc1",b).box("avc3",b).box("hev1",
267
267
  b).box("hvc1",b).box("dvh1",b).box("dvhe",b).box("encv",Gf).box("sinf",Df).box("frma",function(f){f=f.reader.K();f=Cf(f);f in ji&&(c.g=ji[f])}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new O(2,2,2010);this.g==ii&&Xa("Unable to determine bitstream format for CEA parsing!");d.forEach(function(f,g){c.j.set(f,e[g])})};
268
- hi.prototype.parse=function(a){var b=this;if(this.g==ii)return[];var c=[],d=this.h,e=this.i,f=0,g=[],h=null,k=9E4;(new yf).box("moof",function(l){f=l.start;g=[];Df(l)}).box("traf",Df).R("trun",function(l){l=gi(l.reader,l.version,l.flags);g.push(l)}).R("tfhd",function(l){l=di(l.reader,l.flags);d=l.Ce||b.h;e=l.yf||b.i;l=l.trackId;b.j.has(l)&&(k=b.j.get(l))}).R("tfdt",function(l){h=ei(l.reader,l.version).we}).box("mdat",function(l){if(null===h)throw Xa("Unable to find base media decode time for CEA captions!"),
268
+ hi.prototype.parse=function(a){var b=this;if(this.g==ii)return[];var c=[],d=this.h,e=this.i,f=0,g=[],h=null,k=9E4;(new yf).box("moof",function(l){f=l.start;g=[];Df(l)}).box("traf",Df).P("trun",function(l){l=gi(l.reader,l.version,l.flags);g.push(l)}).P("tfhd",function(l){l=di(l.reader,l.flags);d=l.Ce||b.h;e=l.yf||b.i;l=l.trackId;b.j.has(l)&&(k=b.j.get(l))}).P("tfdt",function(l){h=ei(l.reader,l.version).we}).box("mdat",function(l){if(null===h)throw Xa("Unable to find base media decode time for CEA captions!"),
269
269
  new O(2,2,2010);ki(b,l.reader,h,k,d,e,f-l.start-8,g,c)}).parse(a,!1);return c};
270
- function ki(a,b,c,d,e,f,g,h,k){var l=0,m=f,p=h.map(function(v){return v.Re});p=[].concat.apply([],ia(p));p.length&&(m=p[0].sampleSize||f);for(b.skip(g+h[0].xf);b.ia();){g=b.K();var n=b.Sa(),q=null;q=!1;h=1;switch(a.g){case li:q=n&31;q=6==q;break;case mi:h=2;b.skip(1);q=n>>1&63;q=39==q||40==q;break;default:return}if(q)for(n=0,l<p.length&&(n=p[l].fd||0),n=(c+n)/d,h=t(ci(b.Za(g-h))),q=h.next();!q.done;q=h.next())k.push({kg:q.value,pts:n});else try{b.skip(g-h)}catch(v){break}m-=g+4;0==m&&(c=l<p.length?
270
+ function ki(a,b,c,d,e,f,g,h,k){var l=0,m=f,p=h.map(function(v){return v.Re});p=[].concat.apply([],ia(p));p.length&&(m=p[0].sampleSize||f);for(b.skip(g+h[0].xf);b.ia();){g=b.K();var n=b.Sa(),q=null;q=!1;h=1;switch(a.g){case li:q=n&31;q=6==q;break;case mi:h=2;b.skip(1);q=n>>1&63;q=39==q||40==q;break;default:return}if(q)for(n=0,l<p.length&&(n=p[l].gd||0),n=(c+n)/d,h=t(ci(b.Za(g-h))),q=h.next();!q.done;q=h.next())k.push({kg:q.value,pts:n});else try{b.skip(g-h)}catch(v){break}m-=g+4;0==m&&(c=l<p.length?
271
271
  c+(p[l].ge||e):c+e,l++,l<p.length?m=p[l].sampleSize||f:m=f)}}var ii=0,li=1,mi=2,ji={avc1:li,avc3:li,hev1:mi,hvc1:mi,dvh1:mi,dvhe:mi};function ni(a){this.h=new bi;a.includes("video/mp4")&&(this.h=new hi);this.g=new Wh}ni.prototype.init=function(a){this.h.init(a)};
272
272
  function oi(a,b){b=a.h.parse(b);b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=L(d.kg);if(0<e.length&&(c=a.g,d=d.pts,e=new vf(e,0),181===e.Sa()&&49===e.be()&&1195456820===e.K()&&3===e.Sa())){var f=e.Sa();if(0!==(f&64)){f&=31;e.skip(1);for(var g=0;g<f;g++){var h=e.Sa(),k=(h&4)>>2,l=e.Sa(),m=e.Sa();k&&(h&=3,0===h||1===h?c.h.push({pts:d,type:h,xa:l,La:m,order:c.h.length}):(c.g.push({pts:d,type:h,value:l,order:c.g.length}),c.g.push({pts:d,type:2,value:m,order:c.g.length})))}}}}return Yh(a.g)}
273
- ;function pi(a,b,c,d,e){this.ya=a;this.Ba=b;this.ma=c;this.Qd=void 0===d?null:d;this.timescale=e}pi.prototype.mc=function(){return this.Ba};pi.prototype.ic=function(){return this.ma};function qi(a,b){return a&&b?a.mc()==b.mc()&&a.ic()==b.ic()&&ib(a.ya(),b.ya()):a==b}K("shaka.media.InitSegmentReference",pi);pi.prototype.getEndByte=pi.prototype.ic;pi.prototype.getStartByte=pi.prototype.mc;
274
- function T(a,b,c,d,e,f,g,h,k,l,m,p,n,q,v){l=void 0===l?[]:l;q=void 0===q?ri:q;this.startTime=a;this.l=this.endTime=b;this.A=c;this.Ba=d;this.ma=e;this.h=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.i=l;this.tilesLayout=void 0===m?"":m;this.s=void 0===p?null:p;this.g=void 0===n?null:n;this.status=q;this.u=!1;this.m=void 0===v?null:v;this.o=null;this.j=0}r=T.prototype;r.ya=function(){return this.A()};r.getStartTime=function(){return this.startTime};r.Ff=function(){return this.endTime};
275
- r.mc=function(){return this.Ba};r.ic=function(){return this.ma};r.Wf=function(){return this.tilesLayout};r.Vf=function(){return this.s};r.Fb=function(){return this.status};r.dg=function(){this.status=si};r.Me=function(){this.u=!0};r.bg=function(){return this.u};r.Ze=function(a){this.o=a};r.Tf=function(){return this.o};r.offset=function(a){this.startTime+=a;this.endTime+=a;this.l+=a;for(var b=t(this.i),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.l+=a};
273
+ ;function pi(a,b,c,d,e,f){this.ya=a;this.Ba=b;this.ma=c;this.Qd=void 0===d?null:d;this.timescale=void 0===e?null:e;this.m=void 0===f?null:f}pi.prototype.mc=function(){return this.Ba};pi.prototype.ic=function(){return this.ma};function qi(a,b){return a&&b?a.mc()==b.mc()&&a.ic()==b.ic()&&kb(a.ya(),b.ya()):a==b}K("shaka.media.InitSegmentReference",pi);pi.prototype.getEndByte=pi.prototype.ic;pi.prototype.getStartByte=pi.prototype.mc;
274
+ function T(a,b,c,d,e,f,g,h,k,l,m,p,n,q,v){l=void 0===l?[]:l;q=void 0===q?ri:q;this.startTime=a;this.j=this.endTime=b;this.A=c;this.Ba=d;this.ma=e;this.h=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.i=l;this.tilesLayout=void 0===m?"":m;this.s=void 0===p?null:p;this.g=void 0===n?null:n;this.status=q;this.u=!1;this.m=void 0===v?null:v;this.o=null;this.l=0}r=T.prototype;r.ya=function(){return this.A()};r.getStartTime=function(){return this.startTime};r.Ff=function(){return this.endTime};
275
+ r.mc=function(){return this.Ba};r.ic=function(){return this.ma};r.Wf=function(){return this.tilesLayout};r.Vf=function(){return this.s};r.Fb=function(){return this.status};r.dg=function(){this.status=si};r.Me=function(){this.u=!0};r.bg=function(){return this.u};r.Ze=function(a){this.o=a};r.Tf=function(){return this.o};r.offset=function(a){this.startTime+=a;this.endTime+=a;this.j+=a;for(var b=t(this.i),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.j+=a};
276
276
  r.oe=function(a){null==this.g?Wa("Sync attempted without sync time!"):(a=this.g-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};K("shaka.media.SegmentReference",T);T.prototype.syncAgainst=T.prototype.oe;T.prototype.offset=T.prototype.offset;T.prototype.getThumbnailSprite=T.prototype.Tf;T.prototype.setThumbnailSprite=T.prototype.Ze;T.prototype.isPreload=T.prototype.bg;T.prototype.markAsPreload=T.prototype.Me;T.prototype.markAsUnavailable=T.prototype.dg;T.prototype.getStatus=T.prototype.Fb;
277
277
  T.prototype.getTileDuration=T.prototype.Vf;T.prototype.getTilesLayout=T.prototype.Wf;T.prototype.getEndByte=T.prototype.ic;T.prototype.getStartByte=T.prototype.mc;T.prototype.getEndTime=T.prototype.Ff;T.prototype.getStartTime=T.prototype.getStartTime;T.prototype.getUris=T.prototype.ya;var ri=0,si=1;T.Status={Jg:ri,ph:si,Xg:2};function ti(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:1==a.length&&0>a.start(0)?0:a.length?a.start(0):null}function ui(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function vi(a,b){return!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0)||b>a.end(a.length-1)?!1:b>=a.start(0)}
278
278
  function wi(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;var c=0;a=t(xi(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 yi(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=xi(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}
@@ -284,128 +284,128 @@ function xi(a){if(!a)return[];for(var b=[],c=0;c<a.length;c++)b.push({start:a.st
284
284
  */
285
285
  function zi(){}function Ai(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}
286
286
  function Bi(a){var b={key:a.type,description:"",data:""};if("TXXX"===a.type){if(2>a.size||3!==a.data[0])return null;var c=a.data.subarray(1).indexOf(0);if(-1===c)return null;var d=Bc(L(a.data,1,c));a=Bc(L(a.data,2+c)).replace(/\0*$/,"");b.description=d;b.data=a;return b}if("WXXX"===a.type){if(2>a.size||3!==a.data[0])return null;c=a.data.subarray(1).indexOf(0);if(-1===c)return null;d=Bc(L(a.data,1,c));a=Bc(L(a.data,2+c)).replace(/\0*$/,"");b.description=d;b.data=a;return b}if("PRIV"===a.type){if(2>
287
- a.size)return null;d=a.data.indexOf(0);if(-1===d)return null;d=Bc(L(a.data,0,d));a=Hb(a.data.subarray(d.length+1));b.description=d;b.data=a;return b}if("T"===a.type[0]){if(2>a.size||3!==a.data[0])return null;a=Bc(a.data.subarray(1)).replace(/\0*$/,"");b.data=a;return b}return"W"===a.type[0]?(a=Bc(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=Hb(a.data),b):null}
287
+ a.size)return null;d=a.data.indexOf(0);if(-1===d)return null;d=Bc(L(a.data,0,d));a=Ib(a.data.subarray(d.length+1));b.description=d;b.data=a;return b}if("T"===a.type[0]){if(2>a.size||3!==a.data[0])return null;a=Bc(a.data.subarray(1)).replace(/\0*$/,"");b.data=a;return b}return"W"===a.type[0]?(a=Bc(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=Ib(a.data),b):null}
288
288
  function Ci(a){for(var b=0,c=[];b+10<=a.length&&73===a[b]&&68===a[b+1]&&51===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9];){var d=Ai(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=Ai(e,4);e={type:String.fromCharCode(e[0],e[1],e[2],e[3]),size:f,data:e.subarray(10,10+f)};(f=Bi(e))&&c.push(f);b+=e.size+10}b+10<=a.length&&51===a[b]&&68===a[b+1]&&73===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]&&(b+=10)}return c}
289
- K("shaka.util.Id3Utils",zi);zi.getID3Frames=Ci;function Di(){this.o=null;this.s=!1;this.l=this.m=null;this.A=[];this.g=this.h=null;this.u=[];this.j=null;this.i=[]}
290
- Di.prototype.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,Ei(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.o=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.o:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,Gd:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&
291
- 15)<<8|f[h+11]);h<k;){var l=(f[h+1]&31)<<8|f[h+2];switch(f[h]){case 15:-1===g.audio&&(g.audio=l,g.audioCodec="aac");break;case 21:-1===g.Gd&&(g.Gd=l);break;case 27:-1===g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1===g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1===g.video&&(g.video=l,g.videoCodec="hvc")}h+=((f[h+3]&15)<<8|f[h+4])+5}f=g;null==this.l&&(this.l=f.video);null==this.g&&(this.g=f.audio);null==this.j&&(this.j=f.Gd);d&&!this.s&&(d=!1,e=b-188);this.s=!0;break;case this.l:f=
292
- a.subarray(h,e+188);null==this.m&&(h=Fi(f))&&null!=h.pts&&(this.m=h.pts/9E4);this.A.push(f);break;case this.g:f=a.subarray(h,e+188);null==this.h&&(h=Fi(f))&&null!=h.pts&&(this.h=h.pts/9E4);this.u.push(f);break;case this.j:this.i.push(a.subarray(h,e+188));break;default:d=!0}}return this};
289
+ K("shaka.util.Id3Utils",zi);zi.getID3Frames=Ci;function Di(){this.m=null;this.o=!1;this.s=this.i=null;this.A=[];this.j=this.g=null;this.u=[];this.l=null;this.h=[]}
290
+ Di.prototype.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,Ei(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.m=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.m:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,Xc:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&
291
+ 15)<<8|f[h+11]);h<k;){var l=(f[h+1]&31)<<8|f[h+2];switch(f[h]){case 15:-1===g.audio&&(g.audio=l,g.audioCodec="aac");break;case 21:-1===g.Xc&&(g.Xc=l);break;case 27:-1===g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1===g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1===g.video&&(g.video=l,g.videoCodec="hvc")}h+=((f[h+3]&15)<<8|f[h+4])+5}f=g;-1!=f.video&&(this.s=f.video);-1!=f.audio&&(this.j=f.audio);-1!=f.Xc&&(this.l=f.Xc);d&&!this.o&&(d=!1,e=b-188);this.o=!0;break;case this.s:f=
292
+ a.subarray(h,e+188);null==this.i&&(h=Fi(f))&&null!=h.pts&&(this.i=h.pts/9E4);this.A.push(f);break;case this.j:f=a.subarray(h,e+188);null==this.g&&(h=Fi(f))&&null!=h.pts&&(this.g=h.pts/9E4);this.u.push(f);break;case this.l:this.h.push(a.subarray(h,e+188));break;default:d=!0}}return this};
293
293
  function Fi(a){if(1!==(a[0]<<16|a[1]<<8|a[2]))return null;var b={data:new Uint8Array(0),xh:6+(a[4]<<8|a[5]),pts:null,dts:null},c=a[7];c&192&&(b.pts=536870912*(a[9]&14)+4194304*(a[10]&255)+16384*(a[11]&254)+128*(a[12]&255)+(a[13]&254)/2,b.dts=b.pts,c&64&&(b.dts=536870912*(a[14]&14)+4194304*(a[15]&255)+16384*(a[16]&254)+128*(a[17]&255)+(a[18]&254)/2));b.data=a.subarray(9+a[8]);return b}
294
- function Gi(a){for(var b=[],c=new Uint8Array(0),d=a.i.length-1;0<=d;d--){c=Nc(a.i[d],c);var e=Fi(c);e&&(b.unshift({cueTime:e.pts?e.pts/9E4:null,data:e.data,frames:Ci(e.data),dts:e.dts,pts:e.pts}),c=new Uint8Array(0))}return b}Di.prototype.getStartTime=function(){return{audio:this.h,video:this.m}};function Ei(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}K("shaka.util.TsParser",Di);function Hi(a,b,c){this.g=null;this.i=-1;this.j=a;this.h=b;this.l=c;"undefined"===typeof libDPIModule&&Xa("Could not Find LCEVC Library dependencies on this page");"undefined"===typeof LcevcDil?Xa("Could not Find LCEVC Library on this page"):LcevcDil.SupportObject.SupportStatus||Xa(LcevcDil.SupportObject.SupportError);"undefined"!==typeof LcevcDil&&"undefined"!==typeof libDPIModule&&this.h instanceof HTMLCanvasElement&&LcevcDil.SupportObject.SupportStatus&&!this.g&&LcevcDil.SupportObject.webGLSupport(this.h)&&
295
- (this.h.classList.remove("shaka-hidden"),this.g=new LcevcDil.LcevcDil(this.j,this.h,this.l))}Hi.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function Ii(a,b){var c=Ji;switch(b.mimeType){case "video/webm":c=Ki;break;case "video/mp4":c=Li}a.g&&(a.i=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(c))}K("shaka.lcevc.Dil",Hi);Hi.prototype.release=Hi.prototype.release;var Ji=0,Ki=1,Li=2;function Mi(a,b,c,d){var e=this;this.l=a;this.G=null;this.m=b;this.h={};this.L={};this.P={};this.g=null;this.H=!1;this.V=c||function(){};this.F=d||null;this.i={};this.u=new lf;this.o={};this.s=null;this.J=new kc;this.M="";this.j=Ni(this,this.J);this.D=new jf(function(){return Oi(e)});this.A=!1;this.W=new kc}function Ni(a,b){var c=new MediaSource;a.u.ca(c,"sourceopen",function(){URL.revokeObjectURL(a.M);b.resolve()});a.M=Pi(c);a.l.src=a.M;return c}r=Mi.prototype;r.destroy=function(){return this.D.destroy()};
294
+ function Gi(a){for(var b=[],c=new Uint8Array(0),d=a.h.length-1;0<=d;d--){c=Nc(a.h[d],c);var e=Fi(c);e&&(b.unshift({cueTime:e.pts?e.pts/9E4:null,data:e.data,frames:Ci(e.data),dts:e.dts,pts:e.pts}),c=new Uint8Array(0))}return b}Di.prototype.getStartTime=function(){return{audio:this.g,video:this.i}};function Ei(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}K("shaka.util.TsParser",Di);function Hi(a,b,c){this.g=null;this.i=-1;this.j=a;this.h=b;this.l=c;"undefined"===typeof libDPIModule&&Xa("Could not Find LCEVC Library dependencies on this page");"undefined"===typeof LcevcDil?Xa("Could not Find LCEVC Library on this page"):LcevcDil.SupportObject.SupportStatus||Xa(LcevcDil.SupportObject.SupportError);"undefined"!==typeof LcevcDil&&"undefined"!==typeof libDPIModule&&this.h instanceof HTMLCanvasElement&&LcevcDil.SupportObject.SupportStatus&&!this.g&&LcevcDil.SupportObject.webGLSupport(this.h)&&
295
+ (this.h.classList.remove("shaka-hidden"),this.g=new LcevcDil.LcevcDil(this.j,this.h,this.l))}Hi.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function Ii(a,b){var c=Ji;switch(b.mimeType){case "video/webm":c=Ki;break;case "video/mp4":c=Li}a.g&&(a.i=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(c))}K("shaka.lcevc.Dil",Hi);Hi.prototype.release=Hi.prototype.release;var Ji=0,Ki=1,Li=2;function Mi(a,b,c,d){var e=this;this.l=a;this.G=null;this.m=b;this.h={};this.L={};this.O={};this.g=null;this.H=!1;this.V=c||function(){};this.F=d||null;this.i={};this.u=new lf;this.o={};this.s=null;this.J=new kc;this.M="";this.j=Ni(this,this.J);this.D=new jf(function(){return Oi(e)});this.A=!1;this.W=new kc}function Ni(a,b){var c=new MediaSource;a.u.ca(c,"sourceopen",function(){URL.revokeObjectURL(a.M);b.resolve()});a.M=Pi(c);a.l.src=a.M;return c}r=Mi.prototype;r.destroy=function(){return this.D.destroy()};
296
296
  function Oi(a){var b,c,d,e,f,g,h,k;return G(function(l){if(1==l.g){b=[];for(c in a.i)for(d=a.i[c],e=d[0],a.i[c]=d.slice(0,1),e&&b.push(e.p.catch(bc)),f=t(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new O(2,7,7003,void 0));a.g&&b.push(a.g.destroy());a.m&&b.push(a.m.destroy());for(k in a.o)b.push(a.o[k].destroy());return u(l,Promise.all(b),2)}a.u&&(a.u.release(),a.u=null);a.l&&(a.l.removeAttribute("src"),a.l.load(),a.l=null);a.G=null;a.j=null;a.g=null;a.m=null;a.h={};a.o={};a.s=null;
297
297
  a.i={};a.F=null;A(l)})}
298
- r.init=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m,p;return G(function(n){if(1==n.g)return e=jc,u(n,d.J,2);d.A=c;f={};g=t(a.keys());for(h=g.next();!h.done;f={oa:f.oa},h=g.next())if(f.oa=h.value,k=a.get(f.oa),l=Yc(k.mimeType,k.codecs),f.oa==e.X)Qi(d,l,c,k.external);else{!b&&db(l)||!Sc(l,f.oa)||(d.o[f.oa]=new Rc(l),l=Vc(f.oa,l));m=l+d.G.sourceBufferExtraFeatures;kf(d.D);p=void 0;try{p=d.j.addSourceBuffer(m)}catch(q){throw new O(2,3,3015,q,"The mediaSource_ status was"+d.j.readyState+
299
- "expected 'open'");}d.u.C(p,"error",function(q){return function(){d.i[q.oa][0].p.reject(new O(2,3,3014,d.l.error?d.l.error.code:0))}}(f));d.u.C(p,"updateend",function(q){return function(){return Ri(d,q.oa)}}(f));d.h[f.oa]=p;d.L[f.oa]=l;d.i[f.oa]=[];d.P[f.oa]=!!k.drmInfos.length}A(n)})};r.configure=function(a){this.G=a};
298
+ r.init=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m,p;return G(function(n){if(1==n.g)return e=jc,u(n,d.J,2);d.A=c;f={};g=t(a.keys());for(h=g.next();!h.done;f={oa:f.oa},h=g.next())if(f.oa=h.value,k=a.get(f.oa),l=Yc(k.mimeType,k.codecs),f.oa==e.Y)Qi(d,l,c,k.external);else{!b&&fb(l)||!Sc(l,f.oa)||(d.o[f.oa]=new Rc(l),l=Vc(f.oa,l));m=l+d.G.sourceBufferExtraFeatures;kf(d.D);p=void 0;try{p=d.j.addSourceBuffer(m)}catch(q){throw new O(2,3,3015,q,"The mediaSource_ status was"+d.j.readyState+
299
+ "expected 'open'");}d.u.C(p,"error",function(q){return function(){d.i[q.oa][0].p.reject(new O(2,3,3014,d.l.error?d.l.error.code:0))}}(f));d.u.C(p,"updateend",function(q){return function(){return Ri(d,q.oa)}}(f));d.h[f.oa]=p;d.L[f.oa]=l;d.i[f.oa]=[];d.O[f.oa]=!!k.drmInfos.length}A(n)})};r.configure=function(a){this.G=a};
300
300
  function Qi(a,b,c,d){a.g||(a.g=new cd(a.m));var e=a.g;a=d||a.H;"application/cea-608"==b||"application/cea-708"==b?e.i=null:(e.i=(0,ed[b])(),e.i.setSequenceMode?e.i.setSequenceMode(c):Xa('Text parsers should have a "setSequenceMode" method!'),e.u=a)}function Si(a){return a.j?"ended"==a.j.readyState:!0}function Ti(a,b){return b==ic?a.g.g:ti(Ui(a,b))}function Vi(a,b){return b==ic?a.g.h:ui(Ui(a,b))}
301
301
  function Wi(a,b,c){if(b==ic)return a=a.g,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=Ui(a,b);return wi(a,c)}r.Ma=function(){var a={total:xi(this.l.buffered),audio:xi(Ui(this,"audio")),video:xi(Ui(this,"video")),text:[]};if(this.g){var b=this.g.g,c=this.g.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function Ui(a,b){try{return a.h[b].buffered}catch(c){return null}}
302
- function Xi(a,b,c,d,e,f,g){f=void 0===f?!1:f;g=void 0===g?!1:g;var h,k,l,m,p,n,q,v,y,w,x,D,z,B,E,F,H,I,J,N,R,Q,ba;return G(function(M){switch(M.g){case 1:h=jc;if(b!=h.X){M.B(2);break}if(!a.A){M.B(3);break}return u(M,a.W,4);case 4:k=M.h,a.g.s=k;case 3:return u(M,fd(a.g,c,d?d.startTime:null,d?d.endTime:null),5);case 5:return M.return();case 2:l=L(c);m=a.L[b];a.o[b]&&(m=a.o[b].o);0>Ei(l)?Yi.includes(m)&&(v=Ci(l),v.length&&d&&(y={cueTime:d.startTime,data:l,frames:v,dts:d.startTime,pts:d.startTime},a.V([y],
302
+ function Xi(a,b,c,d,e,f,g){f=void 0===f?!1:f;g=void 0===g?!1:g;var h,k,l,m,p,n,q,v,y,w,x,D,z,B,E,F,H,I,J,N,S,Q,ba;return G(function(M){switch(M.g){case 1:h=jc;if(b!=h.Y){M.B(2);break}if(!a.A){M.B(3);break}return u(M,a.W,4);case 4:k=M.h,a.g.s=k;case 3:return u(M,fd(a.g,c,d?d.startTime:null,d?d.endTime:null),5);case 5:return M.return();case 2:l=L(c);m=a.L[b];a.o[b]&&(m=a.o[b].o);0>Ei(l)?Yi.includes(m)&&(v=Ci(l),v.length&&d&&(y={cueTime:d.startTime,data:l,frames:v,dts:d.startTime,pts:d.startTime},a.V([y],
303
303
  0,d.endTime))):(p=(new Di).parse(l),n=d.startTime-(p.getStartTime()[b]||0),q=Gi(p),q.length&&a.V(q,n,d?d.endTime:null));if(!a.o[b]){e&&b==h.va&&(a.g||Qi(a,"application/cea-608",a.A,!1),a.s||(a.s=new ni(m)),d?(w=oi(a.s,c),w.length&&(x=a.h[h.va].timestampOffset,kd(a.g,w,d.startTime,d.endTime,x))):a.s.init(c));M.B(6);break}f&&a.o[b].g.resetCaptions();return u(M,Wc(a.o[b],c),7);case 7:D=M.h,a.g||Qi(a,"application/cea-608",a.A,!1),D.captions&&D.captions.length&&(z=a.h[h.va].timestampOffset,B=id(D.captions),
304
304
  kd(a.g,B,d?d.startTime:null,d?d.endTime:null,z)),c=D.data;case 6:c=Zi(a,c,d?d.startTime:null,b);E=a.h[b];F=$i;if(!a.A||E.mode==F||!d){M.B(8);break}H=a.j.duration;I=b==h.va||!(h.va in a.h);if(!I){M.B(9);break}J=[E.appendWindowStart,E.appendWindowEnd];E.appendWindowStart=0;E.appendWindowEnd=Infinity;N=E.timestampOffset;E.timestampOffset=0;return u(M,aj(a,b,function(){return bj(a,b,c)}),10);case 10:return u(M,aj(a,b,function(){return cj(a,b)}),11);case 11:return E.timestampOffset=N,E.appendWindowStart=
305
- J[0],E.appendWindowEnd=J[1],R=ti(Ui(a,b)),Q=(d.startTime||0)-(R||0),a.W.resolve(Q),u(M,aj(a,b,function(){return dj(a,b,0,H)}),12);case 12:if(b!=h.va){M.B(9);break}return u(M,aj(a,b,function(){a.l.currentTime-=.001;Ri(a,b)}),9);case 9:return E.mode=F,u(M,a.Aa(H),8);case 8:return d&&a.A&&b!=h.X&&(f||g)&&(ba=d.startTime,aj(a,b,function(){return cj(a,b)}),aj(a,b,function(){return ej(a,b,ba)})),u(M,aj(a,b,function(){bj(a,b,c)}),16);case 16:A(M)}})}function fj(a,b){var c=Vi(a,"video")||0;hd(a.g,b,c)}
306
- function gj(a){a.g&&hd(a.g,"",0)}r.remove=function(a,b,c){var d=this,e;return G(function(f){e=jc;return a==e.X?u(f,d.g.remove(b,c),0):u(f,aj(d,a,function(){return dj(d,a,b,c)}),0)})};function hj(a,b){var c;return G(function(d){c=jc;return b==c.X?a.g?u(d,a.g.remove(0,Infinity),0):d.return():u(d,aj(a,b,function(){return dj(a,b,0,a.j.duration)}),0)})}r.flush=function(a){var b=this,c;return G(function(d){c=jc;return a==c.X?d.return():u(d,aj(b,a,function(){b.l.currentTime-=.001;Ri(b,a)}),0)})};
307
- function ij(a,b,c,d,e,f){var g;return G(function(h){g=jc;return b==g.X?(f||(a.g.s=c),gd(a.g,d,e),h.return()):u(h,Promise.all([aj(a,b,function(){return cj(a,b)}),f?Promise.resolve():aj(a,b,function(){return ej(a,b,c)}),aj(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=d;Ri(a,b)})]),0)})}function jj(a,b,c){var d;return G(function(e){d=jc;if(b==d.X)return e.return();aj(a,b,function(){return cj(a,b)});return u(e,aj(a,b,function(){return ej(a,b,c)}),0)})}
305
+ J[0],E.appendWindowEnd=J[1],S=ti(Ui(a,b)),Q=(d.startTime||0)-(S||0),a.W.resolve(Q),u(M,aj(a,b,function(){return dj(a,b,0,H)}),12);case 12:if(b!=h.va){M.B(9);break}return u(M,aj(a,b,function(){a.l.currentTime-=.001;Ri(a,b)}),9);case 9:return E.mode=F,u(M,a.Aa(H),8);case 8:return d&&a.A&&b!=h.Y&&(f||g)&&(ba=d.startTime,aj(a,b,function(){return cj(a,b)}),aj(a,b,function(){return ej(a,b,ba)})),u(M,aj(a,b,function(){bj(a,b,c)}),16);case 16:A(M)}})}function fj(a,b){var c=Vi(a,"video")||0;hd(a.g,b,c)}
306
+ function gj(a){a.g&&hd(a.g,"",0)}r.remove=function(a,b,c){var d=this,e;return G(function(f){e=jc;return a==e.Y?u(f,d.g.remove(b,c),0):u(f,aj(d,a,function(){return dj(d,a,b,c)}),0)})};function hj(a,b){var c;return G(function(d){c=jc;return b==c.Y?a.g?u(d,a.g.remove(0,Infinity),0):d.return():u(d,aj(a,b,function(){return dj(a,b,0,a.j.duration)}),0)})}r.flush=function(a){var b=this,c;return G(function(d){c=jc;return a==c.Y?d.return():u(d,aj(b,a,function(){b.l.currentTime-=.001;Ri(b,a)}),0)})};
307
+ function ij(a,b,c,d,e,f){var g;return G(function(h){g=jc;return b==g.Y?(f||(a.g.s=c),gd(a.g,d,e),h.return()):u(h,Promise.all([aj(a,b,function(){return cj(a,b)}),f?Promise.resolve():aj(a,b,function(){return ej(a,b,c)}),aj(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=d;Ri(a,b)})]),0)})}function jj(a,b,c){var d;return G(function(e){d=jc;if(b==d.Y)return e.return();aj(a,b,function(){return cj(a,b)});return u(e,aj(a,b,function(){return ej(a,b,c)}),0)})}
308
308
  r.endOfStream=function(a){var b=this;return G(function(c){return u(c,kj(b,function(){Si(b)||"closed"===b.j.readyState||(a?b.j.endOfStream(a):b.j.endOfStream())}),0)})};r.Aa=function(a){var b=this;return G(function(c){return u(c,kj(b,function(){if(a<b.j.duration)for(var d in b.h){var e={start:function(){},p:new kc};b.i[d].unshift(e)}b.j.duration=a}),0)})};r.getDuration=function(){return this.j.duration};
309
309
  function bj(a,b,c){if("video"==b&&a.F){var d=a.F;d.g&&d.g.appendBuffer(c,"video",d.i)}a.h[b].appendBuffer(c)}function dj(a,b,c,d){d<=c?Ri(a,b):a.h[b].remove(c,d)}function cj(a,b){var c=a.h[b].appendWindowStart,d=a.h[b].appendWindowEnd;a.h[b].abort();a.h[b].appendWindowStart=c;a.h[b].appendWindowEnd=d;Ri(a,b)}function ej(a,b,c){0>c&&(c+=.001);a.h[b].timestampOffset=c;Ri(a,b)}function Ri(a,b){var c=a.i[b][0];c&&(c.p.resolve(),lj(a,b))}
310
310
  function aj(a,b,c){kf(a.D);c={start:c,p:new kc};a.i[b].push(c);1==a.i[b].length&&mj(a,b);return c.p}
311
- function kj(a,b){var c,d,e,f,g,h;return G(function(k){switch(k.g){case 1:kf(a.D);c=[];d={};for(e in a.h)d.Vb=new kc,f={start:function(l){return function(){return l.Vb.resolve()}}(d),p:d.Vb},a.i[e].push(f),c.push(d.Vb),1==a.i[e].length&&f.start(),d={Vb:d.Vb};C(k,2);return u(k,Promise.all(c),4);case 4:va(k,3);break;case 2:throw g=wa(k),g;case 3:try{b()}catch(l){throw new O(2,3,3015,l);}finally{for(h in a.h)lj(a,h)}A(k)}})}function lj(a,b){a.i[b].shift();mj(a,b)}
312
- function mj(a,b){var c=a.i[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new O(2,3,3017,b)):c.p.reject(new O(2,3,3015,d)),lj(a,b)}}function Zi(a,b,c,d){var e=a.P[d];null==c&&e&&(tc()||rc())&&"mp4"==a.L[d].split(";")[0].split("/")[1]&&(b=Wg(b));return b}var Pi=window.URL.createObjectURL,$i="sequence",Yi=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function U(a,b,c){this.i=a;this.m=b;this.o=this.j=Infinity;this.g=1;this.h=this.l=null;this.s=0;this.u=!0;this.A=0;this.D=void 0===c?!0:c;this.F=0;this.G=!1}r=U.prototype;r.getDuration=function(){return this.j};r.Lf=function(){return this.g};r.Ye=function(a){this.i=a};r.Aa=function(a){this.j=a};r.Qf=function(){return this.i};r.We=function(a){this.s=a};r.zc=function(a){this.u=a};r.ne=function(a){this.o=a};r.Xe=function(a){this.m=a};r.Ef=function(){return this.m};
311
+ function kj(a,b){var c,d,e,f,g,h;return G(function(k){switch(k.g){case 1:kf(a.D);c=[];d={};for(e in a.h)d.Vb=new kc,f={start:function(l){return function(){return l.Vb.resolve()}}(d),p:d.Vb},a.i[e].push(f),c.push(d.Vb),1==a.i[e].length&&f.start(),d={Vb:d.Vb};C(k,2);return u(k,Promise.all(c),4);case 4:va(k,3);break;case 2:throw g=xa(k),g;case 3:try{b()}catch(l){throw new O(2,3,3015,l);}finally{for(h in a.h)lj(a,h)}A(k)}})}function lj(a,b){a.i[b].shift();mj(a,b)}
312
+ function mj(a,b){var c=a.i[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new O(2,3,3017,b)):c.p.reject(new O(2,3,3015,d)),lj(a,b)}}function Zi(a,b,c,d){var e=a.O[d];null==c&&e&&(tc()||rc())&&"mp4"==a.L[d].split(";")[0].split("/")[1]&&(b=Wg(b));return b}var Pi=window.URL.createObjectURL,$i="sequence",Yi=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function U(a,b,c){this.i=a;this.m=b;this.o=this.j=Infinity;this.g=1;this.h=this.l=null;this.s=0;this.u=!0;this.A=0;this.D=void 0===c?!0:c;this.F=0;this.G=!1}r=U.prototype;r.getDuration=function(){return this.j};r.Lf=function(){return this.g};r.Ye=function(a){this.i=a};r.Aa=function(a){this.j=a};r.Qf=function(){return this.i};r.We=function(a){this.s=a};r.zc=function(a){this.u=a};r.ne=function(a){this.o=a};r.Xe=function(a){this.m=a};r.Ef=function(){return this.m};
313
313
  r.Jb=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.s)/1E3;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d<e.startTime||(b=Math.min(b,e.startTime),c=Math.max(c,e.endTime),this.g=Math.max(this.g,e.endTime-e.startTime));this.Vd(b);this.h=Math.max(this.h,c);null!=this.i&&this.D&&!this.G&&(this.i=d-this.h-this.g)}};r.Od=function(){this.G=!0};r.Vd=function(a){this.l=null==this.l?a:Math.min(this.l,a)};r.Ud=function(a){this.g=Math.max(this.g,a)};
314
314
  r.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};r.T=function(){return Infinity==this.j&&!this.u};r.jb=function(){return Infinity!=this.j&&!this.u};r.Oa=function(){return Math.max(this.A,this.gb()-this.o)};r.$e=function(a){this.A=a};r.gb=function(){return this.T()||this.jb()?Math.min(Math.max(0,(Date.now()+this.s)/1E3-this.g-this.i)+this.F,this.j):this.h?Math.min(this.h,this.j):this.j};
315
315
  r.lc=function(a){var b=Math.max(this.l,this.A);return Infinity==this.o?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.gb()-this.o+a,this.Na()))};r.Eb=function(){return this.lc(0)};r.Na=function(){return Math.max(0,this.gb()-(this.T()||this.jb()?this.m:0))};r.ef=function(){return null==this.i||null!=this.h&&this.D?!1:!0};r.Ve=function(a){this.F=a};K("shaka.media.PresentationTimeline",U);U.prototype.setAvailabilityTimeOffset=U.prototype.Ve;U.prototype.usingPresentationStartTime=U.prototype.ef;
316
316
  U.prototype.getSeekRangeEnd=U.prototype.Na;U.prototype.getSeekRangeStart=U.prototype.Eb;U.prototype.getSafeSeekRangeStart=U.prototype.lc;U.prototype.getSegmentAvailabilityEnd=U.prototype.gb;U.prototype.setUserSeekStart=U.prototype.$e;U.prototype.getSegmentAvailabilityStart=U.prototype.Oa;U.prototype.isInProgress=U.prototype.jb;U.prototype.isLive=U.prototype.T;U.prototype.offset=U.prototype.offset;U.prototype.notifyMaxSegmentDuration=U.prototype.Ud;U.prototype.notifyMinSegmentStartTime=U.prototype.Vd;
317
317
  U.prototype.lockStartTime=U.prototype.Od;U.prototype.notifySegments=U.prototype.Jb;U.prototype.getDelay=U.prototype.Ef;U.prototype.setDelay=U.prototype.Xe;U.prototype.setSegmentAvailabilityDuration=U.prototype.ne;U.prototype.setStatic=U.prototype.zc;U.prototype.setClockOffset=U.prototype.We;U.prototype.getPresentationStartTime=U.prototype.Qf;U.prototype.setDuration=U.prototype.Aa;U.prototype.setPresentationStartTime=U.prototype.Ye;U.prototype.getMaxSegmentDuration=U.prototype.Lf;
318
318
  U.prototype.getDuration=U.prototype.getDuration;function nj(a,b,c){this.l=c;this.j=a;this.s=oj(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.o=0;this.u=b;this.i=function(){}}nj.prototype.release=function(){this.l=this.j=null;this.i=function(){}};function pj(a,b){a.i=b}function qj(a){this.g=a}function oj(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(xi(a.g.buffered));for(var c=a.next();!c.done;c=a.next())if(c=c.value,!(b<c.start-.1||b>c.end-.5)){b=!0;break a}b=!1}return b};function rj(a,b,c,d,e){var f=this;this.s=e;this.g=a;this.u=b;this.F=c;this.l=new lf;this.j=!1;this.D=a.readyState;this.A=this.i=0;this.h=d;this.o=!1;this.l.C(a,"waiting",function(){return sj(f)});this.m=(new P(function(){sj(f)})).Ca(.25)}rj.prototype.release=function(){this.l&&(this.l.release(),this.l=null);null!=this.m&&(this.m.stop(),this.m=null);this.h&&(this.h.release(),this.h=null);this.g=this.u=this.s=null};rj.prototype.Yd=function(){this.o=!0;sj(this)};
319
- function sj(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.j)return}else a.j=!1;if(!a.g.paused||a.g.currentTime==a.i&&(a.g.autoplay||a.g.currentTime!=a.i)){a.g.readyState!=a.D&&(a.D=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.j,d=oj(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.s!=d)b.m=f,b.g=e,b.s=d,b.h=!1;e=f-b.m;if(d=e>=b.u&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.o++,b.l(new S("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=yi(c,b,a.F.gapDetectionThreshold),null==
320
- d||0==d&&!a.o||(e=c.start(d),e>=a.u.Na()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.i&&(a.i=e),a.A++,a.s(new S("gapjumped")))))}}};function tj(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=uj.value().get(b),c.ca(a,b,d))}var uj=new lc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function vj(a,b,c,d){var e=this;this.g=a;this.l=b;this.o=c;this.j=d;this.m=!1;this.h=new lf;this.i=new wj(a);tj(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){xj(e,e.j)})}vj.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.l=function(){};this.g=null};function yj(a){return a.m?a.g.currentTime:a.j}function zj(a,b){0<a.g.readyState?Aj(a.i,b):tj(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){xj(a,a.j)})}
319
+ function sj(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.j)return}else a.j=!1;if(!a.g.paused||a.g.currentTime==a.i&&(a.g.autoplay||a.g.currentTime!=a.i)){a.g.readyState!=a.D&&(a.D=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.j,d=oj(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.s!=d)b.m=f,b.g=e,b.s=d,b.h=!1;e=f-b.m;if(d=e>=b.u&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.o++,b.l(new R("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=yi(c,b,a.F.gapDetectionThreshold),null==
320
+ d||0==d&&!a.o||(e=c.start(d),e>=a.u.Na()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.i&&(a.i=e),a.A++,a.s(new R("gapjumped")))))}}};function tj(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=uj.value().get(b),c.ca(a,b,d))}var uj=new lc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function vj(a,b,c,d){var e=this;this.g=a;this.l=b;this.o=c;this.j=d;this.m=!1;this.h=new lf;this.i=new wj(a);tj(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){xj(e,e.j)})}vj.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.l=function(){};this.g=null};function yj(a){return a.m?a.g.currentTime:a.j}function zj(a,b){0<a.g.readyState?Aj(a.i,b):tj(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){xj(a,a.j)})}
321
321
  function xj(a,b){.001>Math.abs(a.g.currentTime-b)?Bj(a):(a.h.ca(a.g,"seeking",function(){Bj(a)}),Aj(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function Bj(a){a.m=!0;a.h.C(a.g,"seeking",function(){return a.l()});a.o(a.g.currentTime)}function wj(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new P(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}wj.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};
322
- function Aj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.Ca(.1)};function Cj(a){this.g=a;this.j=!1;this.h=null;this.i=new lf}r=Cj.prototype;r.Bd=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.ca(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;tj(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};r.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};r.Cd=function(a){this.h=this.j?this.h:a};r.Jc=function(){return(this.j?this.g.currentTime:this.h)||0};r.ue=function(){return 0};
322
+ function Aj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.Ca(.1)};function Cj(a){this.g=a;this.j=!1;this.h=null;this.i=new lf}r=Cj.prototype;r.Cd=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.ca(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;tj(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};r.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};r.Dd=function(a){this.h=this.j?this.h:a};r.Jc=function(){return(this.j?this.g.currentTime:this.h)||0};r.ue=function(){return 0};
323
323
  r.te=function(){return 0};r.Oe=function(){};
324
324
  function Dj(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.A=b.minBufferTime||0;this.l=c;this.u=e;this.s=null;this.o=Ej(a,c,f);this.j=new rj(a,b.presentationTimeline,c,this.o,f);this.h=new vj(a,function(){a:{var h=g.j;h.j=!0;h.o=!1;var k=yj(g.h);h=Fj(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.s||g.s<k-1)){g.s=k;zj(g.h,h);h=void 0;break a}g.u();h=void 0}return h},function(h){var k=g.j;k.g.seeking&&!k.j&&(k.j=!0,k.i=h)},Gj(this,d));this.m=new P(function(){if(0!=g.i.readyState&&
325
- !g.i.paused){var h=yj(g.h),k=g.g.Eb(),l=g.g.Na();3>l-k&&(k=l-3);h<k&&(h=Fj(g,h),g.i.currentTime=h)}})}r=Dj.prototype;r.Bd=function(){this.m.Ca(.25)};r.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.u=function(){}};r.Cd=function(a){zj(this.h,a)};r.Jc=function(){var a=yj(this.h);return 0<this.i.readyState&&!this.i.paused?Hj(this,a):a};r.ue=function(){return this.o?this.o.o:0};
325
+ !g.i.paused){var h=yj(g.h),k=g.g.Eb(),l=g.g.Na();3>l-k&&(k=l-3);h<k&&(h=Fj(g,h),g.i.currentTime=h)}})}r=Dj.prototype;r.Cd=function(){this.m.Ca(.25)};r.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.u=function(){}};r.Dd=function(a){zj(this.h,a)};r.Jc=function(){var a=yj(this.h);return 0<this.i.readyState&&!this.i.paused?Hj(this,a):a};r.ue=function(){return this.o?this.o.o:0};
326
326
  r.te=function(){return this.j.A};function Gj(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.Eb():a.g.Na():0>b&&(b=a.g.Na()+b);return Ij(a,Hj(a,b))}r.Oe=function(){this.j.Yd()};function Ij(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}
327
327
  function Fj(a,b){var c=Math.max(a.A,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.Eb(),f=a.g.Na(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.lc(c),k=a.g.lc(d);c=a.g.lc(c+d);return b>=g?Ij(a,b):b>f?f:b<e?vi(a.i.buffered,k)?k:c:b>=h||vi(a.i.buffered,b)?b:c}function Hj(a,b){var c=a.g.Eb();if(b<c)return c;a=a.g.Na();return b>a?a:b}
328
328
  function Ej(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new nj(new qj(a),b.stallThreshold,c);pj(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Jj(a){this.g=a;this.h=null;this.i=0;this.j=!1}r=Jj.prototype;r.release=function(){this.j||(this.g=[],this.h&&this.h.stop(),this.h=null)};r.eg=function(){this.j=!0};function Kj(a,b){a=t(a.g);for(var c=a.next();!c.done;c=a.next())b(c.value)}r.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};
329
329
  r.get=function(a){if(0==this.g.length)return null;a-=this.i;return 0>a||a>=this.g.length?null:this.g[a]};r.offset=function(a){if(!this.j)for(var b=t(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};r.qc=function(a){if(!this.j&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,ia(a))}};
330
330
  r.Ib=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.qc(a);this.eb(b)};r.eb=function(a){if(!this.j){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.i+=b-this.g.length}};
331
- r.Ya=function(a,b,c){c=void 0===c?!1:c;if(!this.j){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.i++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],this.g[this.g.length-1]=new T(a.startTime,b,a.A,a.Ba,a.ma,a.h,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.i,a.tilesLayout,a.s,a.g,a.status,a.m),this.g[this.g.length-1].j=a.j)}};
332
- r.hd=function(a,b){var c=this;this.j||(this.h&&this.h.stop(),this.h=new P(function(){var d=b();d?c.g.push.apply(c.g,ia(d)):(c.h.stop(),c.h=null)}),this.h.Ca(a))};Jj.prototype[Symbol.iterator]=function(){return this.Db(0)};Jj.prototype.Db=function(a){var b=this.find(a);if(null==b)return null;b--;var c=this.get(b+1),d=-1;if(c&&0<c.i.length)for(var e=c.i.length-1;0<=e;--e){var f=c.i[e];if(a>=f.startTime&&a<f.endTime){b++;d=e-1;break}}return new Lj(this,b,d)};
333
- function Mj(a,b,c){return new Jj([new T(a,a+b,function(){return c},0,null,null,a,a,a+b)])}K("shaka.media.SegmentIndex",Jj);Jj.forSingleSegment=Mj;Jj.prototype.getIteratorForTime=Jj.prototype.Db;Jj.prototype.updateEvery=Jj.prototype.hd;Jj.prototype.fit=Jj.prototype.Ya;Jj.prototype.evict=Jj.prototype.eb;Jj.prototype.mergeAndEvict=Jj.prototype.Ib;Jj.prototype.offset=Jj.prototype.offset;Jj.prototype.get=Jj.prototype.get;Jj.prototype.find=Jj.prototype.find;Jj.prototype.markImmutable=Jj.prototype.eg;
331
+ r.Ya=function(a,b,c){c=void 0===c?!1:c;if(!this.j){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.i++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],this.g[this.g.length-1]=new T(a.startTime,b,a.A,a.Ba,a.ma,a.h,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.i,a.tilesLayout,a.s,a.g,a.status,a.m),this.g[this.g.length-1].l=a.l)}};
332
+ r.jd=function(a,b){var c=this;this.j||(this.h&&this.h.stop(),this.h=new P(function(){var d=b();d?c.g.push.apply(c.g,ia(d)):(c.h.stop(),c.h=null)}),this.h.Ca(a))};Jj.prototype[Symbol.iterator]=function(){return this.Db(0)};Jj.prototype.Db=function(a){var b=this.find(a);if(null==b)return null;b--;var c=this.get(b+1),d=-1;if(c&&0<c.i.length)for(var e=c.i.length-1;0<=e;--e){var f=c.i[e];if(a>=f.startTime&&a<f.endTime){b++;d=e-1;break}}return new Lj(this,b,d)};
333
+ function Mj(a,b,c){return new Jj([new T(a,a+b,function(){return c},0,null,null,a,a,a+b)])}K("shaka.media.SegmentIndex",Jj);Jj.forSingleSegment=Mj;Jj.prototype.getIteratorForTime=Jj.prototype.Db;Jj.prototype.updateEvery=Jj.prototype.jd;Jj.prototype.fit=Jj.prototype.Ya;Jj.prototype.evict=Jj.prototype.eb;Jj.prototype.mergeAndEvict=Jj.prototype.Ib;Jj.prototype.offset=Jj.prototype.offset;Jj.prototype.get=Jj.prototype.get;Jj.prototype.find=Jj.prototype.find;Jj.prototype.markImmutable=Jj.prototype.eg;
334
334
  Jj.prototype.release=Jj.prototype.release;function Lj(a,b,c){this.i=a;this.g=b;this.h=c}Lj.prototype.wf=function(){return this.g};Lj.prototype.current=function(){var a=this.i.get(this.g);a&&0<a.i.length&&a.ya().length&&this.h>=a.i.length&&(this.g++,this.h=0,a=this.i.get(this.g));return a&&0<a.i.length?a.i[this.h]:a};
335
335
  Lj.prototype.next=function(){var a=this.i.get(this.g);a&&0<a.i.length?(this.h++,a.ya().length&&this.h==a.i.length&&(this.g++,this.h=0)):(this.g++,this.h=0);a=this.current();return{value:a,done:!a}};K("shaka.media.SegmentIterator",Lj);Lj.prototype.next=Lj.prototype.next;Lj.prototype.current=Lj.prototype.current;Lj.prototype.currentPosition=Lj.prototype.wf;function Nj(){Jj.call(this,[]);this.l=[]}qa(Nj,Jj);r=Nj.prototype;r.clone=function(){var a=new Nj;a.l=this.l.slice();return a};
336
- r.release=function(){for(var a=t(this.l),b=a.next();!b.done;b=a.next())b.value.release();this.l=[]};r.find=function(a){for(var b=0,c=t(this.l),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.i+d.g.length}return null};r.get=function(a){for(var b=0,c=t(this.l),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.i+d.g.length}return null};r.offset=function(){};r.qc=function(){};r.eb=function(){};r.Ib=function(){};r.Ya=function(){};r.hd=function(){};
337
- K("shaka.media.MetaSegmentIndex",Nj);Nj.prototype.updateEvery=Nj.prototype.hd;Nj.prototype.fit=Nj.prototype.Ya;Nj.prototype.mergeAndEvict=Nj.prototype.Ib;Nj.prototype.evict=Nj.prototype.eb;Nj.prototype.merge=Nj.prototype.qc;Nj.prototype.offset=Nj.prototype.offset;Nj.prototype.get=Nj.prototype.get;Nj.prototype.find=Nj.prototype.find;Nj.prototype.release=Nj.prototype.release;function Oj(a){var b=this;this.g=a;this.j=!1;this.i=this.g.Uc();this.h=new P(function(){b.g.Ne(.25*b.i)})}Oj.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};Oj.prototype.set=function(a){this.i=a;Pj(this)};Oj.prototype.Qc=function(){return this.g.Qc()};function Pj(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.Uc()!=b&&a.g.me(b);return}catch(c){}a.h.Ca(.25);0!=a.g.Uc()&&a.g.me(0)};function Qj(a){var b=this;this.h=a;this.g=new Set;this.i=(new P(function(){Rj(b,!1)})).Ca(.25)}Qj.prototype.release=function(){this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function Rj(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Sj(a){Te.call(this);this.g=new Map;this.h=a}qa(Sj,Te);Sj.prototype.release=function(){this.g.clear();Te.prototype.release.call(this)};function Tj(a,b){var c=a.g.get(b);c||(c={sc:[],Ae:null,contentType:b},a.g.set(b,c));return c}function Uj(a,b,c){var d=Tj(a,b.contentType);Vj(a,d);a={Qd:b,position:c};d=d.sc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
336
+ r.release=function(){for(var a=t(this.l),b=a.next();!b.done;b=a.next())b.value.release();this.l=[]};r.find=function(a){for(var b=0,c=t(this.l),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.i+d.g.length}return null};r.get=function(a){for(var b=0,c=t(this.l),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.i+d.g.length}return null};r.offset=function(){};r.qc=function(){};r.eb=function(){};r.Ib=function(){};r.Ya=function(){};r.jd=function(){};
337
+ K("shaka.media.MetaSegmentIndex",Nj);Nj.prototype.updateEvery=Nj.prototype.jd;Nj.prototype.fit=Nj.prototype.Ya;Nj.prototype.mergeAndEvict=Nj.prototype.Ib;Nj.prototype.evict=Nj.prototype.eb;Nj.prototype.merge=Nj.prototype.qc;Nj.prototype.offset=Nj.prototype.offset;Nj.prototype.get=Nj.prototype.get;Nj.prototype.find=Nj.prototype.find;Nj.prototype.release=Nj.prototype.release;function Oj(a){var b=this;this.g=a;this.j=!1;this.i=this.g.Uc();this.h=new P(function(){b.g.Ne(.25*b.i)})}Oj.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};Oj.prototype.set=function(a){this.i=a;Pj(this)};Oj.prototype.Qc=function(){return this.g.Qc()};function Pj(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.Uc()!=b&&a.g.me(b);return}catch(c){}a.h.Ca(.25);0!=a.g.Uc()&&a.g.me(0)};function Qj(a){var b=this;this.h=a;this.g=new Set;this.i=(new P(function(){Rj(b,!1)})).Ca(.25)}Qj.prototype.release=function(){this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function Rj(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Sj(a){Te.call(this);this.g=new Map;this.h=a}qa(Sj,Te);Sj.prototype.release=function(){this.g.clear();Te.prototype.release.call(this)};function Tj(a,b){var c=a.g.get(b);c||(c={sc:[],Ae:null,contentType:b},a.g.set(b,c));return c}function Uj(a,b,c){var d=Tj(a,b.contentType);Vj(a,d);a={Qd:b,position:c};d=d.sc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
338
338
  Sj.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.sc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.Qd;break a}}d=null}if(e=d)e=c.Ae,e=!(e===d||e&&d&&e.bandwidth==d.bandwidth&&e.audioSamplingRate==d.audioSamplingRate&&e.codecs==d.codecs&&e.contentType==d.contentType&&e.frameRate==d.frameRate&&e.height==d.height&&e.mimeType==d.mimeType&&e.channelsCount==d.channelsCount&&e.pixelAspectRatio==d.pixelAspectRatio&&e.width==d.width);
339
- if(e)a:{e=a;f=d.contentType;if((f=this.h()[f])&&0<f.length){var g=f[f.length-1].end;if(e>=f[0].start&&e<g){e=!0;break a}}e=!1}e&&(c.Ae=d,JSON.stringify(d),c=new S("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function Vj(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.sc;b.sc=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.sc=[]};function Wj(a){Te.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new P(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new S("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).Ca(2)}qa(Wj,Te);Wj.prototype.release=function(){this.g.clear();this.h.stop();Te.prototype.release.call(this)};function Xj(a,b){Te.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{sb:null,rb:Yj,ib:function(d,e){return Zj(c,"enter",d,e)}},{sb:ak,rb:Yj,ib:function(d,e){return Zj(c,"enter",d,e)}},{sb:bk,rb:Yj,ib:function(d,e){return Zj(c,"enter",d,e)}},{sb:Yj,rb:ak,ib:function(d,e){return Zj(c,"exit",d,e)}},{sb:Yj,rb:bk,ib:function(d,e){return Zj(c,"exit",d,e)}},{sb:ak,rb:bk,ib:function(d,e){return Zj(c,"skip",d,e)}},{sb:bk,rb:ak,ib:function(d,e){return Zj(c,"skip",d,e)}}];this.h=new lf;this.h.C(this.i,
339
+ if(e)a:{e=a;f=d.contentType;if((f=this.h()[f])&&0<f.length){var g=f[f.length-1].end;if(e>=f[0].start&&e<g){e=!0;break a}}e=!1}e&&(c.Ae=d,JSON.stringify(d),c=new R("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function Vj(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.sc;b.sc=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.sc=[]};function Wj(a){Te.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new P(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new R("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).Ca(2)}qa(Wj,Te);Wj.prototype.release=function(){this.g.clear();this.h.stop();Te.prototype.release.call(this)};function Xj(a,b){Te.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{sb:null,rb:Yj,ib:function(d,e){return Zj(c,"enter",d,e)}},{sb:ak,rb:Yj,ib:function(d,e){return Zj(c,"enter",d,e)}},{sb:bk,rb:Yj,ib:function(d,e){return Zj(c,"enter",d,e)}},{sb:Yj,rb:ak,ib:function(d,e){return Zj(c,"exit",d,e)}},{sb:Yj,rb:bk,ib:function(d,e){return Zj(c,"exit",d,e)}},{sb:ak,rb:bk,ib:function(d,e){return Zj(c,"skip",d,e)}},{sb:bk,rb:ak,ib:function(d,e){return Zj(c,"skip",d,e)}}];this.h=new lf;this.h.C(this.i,
340
340
  "regionremove",function(d){c.g.delete(d.region)})}qa(Xj,Te);Xj.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;Te.prototype.release.call(this)};Xj.prototype.j=function(a,b){if(!this.l||0!=a){this.l=!1;for(var c=t(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?ak:a>d.endTime?bk:Yj;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;h=g.next())h=h.value,h.sb==e&&h.rb==f&&h.ib(d,b)}}};
341
- function Zj(a,b,c,d){b=new S(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var ak=1,Yj=2,bk=3;function ck(a,b,c,d,e){a=bf(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function dk(a,b){var c=this;this.g=b;this.m=a;this.i=null;this.u=1;this.o=this.l=null;this.F=0;this.D=!1;this.j=new Map;this.A=!1;this.G=null;this.s=!1;this.h=new jf(function(){return ek(c)})}r=dk.prototype;r.destroy=function(){return this.h.destroy()};function ek(a){var b,c,d,e;return G(function(f){if(1==f.g){b=[];c=t(a.j.values());for(d=c.next();!d.done;d=c.next())e=d.value,fk(e),b.push(gk(e));return u(f,Promise.all(b),2)}a.j.clear();a.g=null;a.m=null;a.i=null;A(f)})}
342
- r.configure=function(a){this.i=a;this.G=new He({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)};r.start=function(){var a=this;return G(function(b){if(1==b.g)return u(b,hk(a),2);kf(a.h);a.A=!0;A(b)})};
343
- function ik(a,b){var c,d,e,f,g,h,k;G(function(l){switch(l.g){case 1:return c=jc,a.F++,d=a.F,C(l,2),u(l,hj(a.g.N,c.X),4);case 4:va(l,3);break;case 2:if(e=wa(l),a.g)a.g.onError(e);case 3:f=Yc(b.mimeType,b.codecs),Qi(a.g.N,f,a.m.sequenceMode,b.external),g=a.g.N.m,(h=g.isTextVisible()||a.i.alwaysStreamText)&&a.F==d&&(k=jk(b),a.j.set(c.X,k),kk(a,k,0)),A(l)}})}function lk(a){var b=a.j.get(ic);b&&(fk(b),gk(b).catch(function(){}),a.j.delete(ic));a.o=null}
341
+ function Zj(a,b,c,d){b=new R(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var ak=1,Yj=2,bk=3;function ck(a,b,c,d,e){a=bf(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function dk(a,b){var c=this;this.g=b;this.m=a;this.h=null;this.u=1;this.o=this.l=null;this.F=0;this.D=!1;this.j=new Map;this.A=!1;this.G=null;this.s=!1;this.i=new jf(function(){return ek(c)})}r=dk.prototype;r.destroy=function(){return this.i.destroy()};function ek(a){var b,c,d,e;return G(function(f){if(1==f.g){b=[];c=t(a.j.values());for(d=c.next();!d.done;d=c.next())e=d.value,fk(e),b.push(gk(e));return u(f,Promise.all(b),2)}a.j.clear();a.g=null;a.m=null;a.h=null;A(f)})}
342
+ r.configure=function(a){this.h=a;this.G=new He({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)};r.start=function(){var a=this;return G(function(b){if(1==b.g)return u(b,hk(a),2);kf(a.i);a.A=!0;A(b)})};
343
+ function ik(a,b){var c,d,e,f,g,h,k;G(function(l){switch(l.g){case 1:return c=jc,a.F++,d=a.F,C(l,2),u(l,hj(a.g.R,c.Y),4);case 4:va(l,3);break;case 2:if(e=xa(l),a.g)a.g.onError(e);case 3:f=Yc(b.mimeType,b.codecs),Qi(a.g.R,f,a.m.sequenceMode,b.external),g=a.g.R.m,(h=g.isTextVisible()||a.h.alwaysStreamText)&&a.F==d&&(k=jk(b),a.j.set(c.Y,k),kk(a,k,0)),A(l)}})}function lk(a){var b=a.j.get(ic);b&&(fk(b),gk(b).catch(function(){}),a.j.delete(ic));a.o=null}
344
344
  function mk(a,b){var c=a.j.get("video");if(c){var d=c.stream;if(d)if(b)(b=d.trickModeVideo)&&!c.pb&&(nk(a,b,!1,0,!1),c.pb=d);else if(d=c.pb)c.pb=null,nk(a,d,!0,0,!1)}}function ok(a,b,c,d,e,f){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;f=void 0===f?!1:f;a.l=b;a.A&&(b.video&&nk(a,b.video,c,d,e,f),b.audio&&nk(a,b.audio,c,d,e,f))}function pk(a,b){G(function(c){if(1==c.g)return a.o=b,a.A?b.segmentIndex?c.B(2):u(c,b.createSegmentIndex(),2):c.return();nk(a,b,!0,0,!1);A(c)})}
345
- function nk(a,b,c,d,e,f){var g=a.j.get(b.type);g||b.type!=ic?g&&(g.pb&&(b.trickModeVideo?(g.pb=b,b=b.trickModeVideo):g.pb=null),g.stream!=b||e)&&(b.type==ic&&Qi(a.g.N,Yc(b.mimeType,b.codecs),a.m.sequenceMode,b.external),g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.Y=null,g.ve=!!f,c&&(g.bc?g.kd=!0:g.sa?(g.bb=!0,g.Oc=d,g.kd=!0):(fk(g),qk(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),rk(a,g).catch(function(h){if(a.g)a.g.onError(h)})):ik(a,b)}
346
- function rk(a,b){var c,d;return G(function(e){if(1==e.g){if(!b.ua)return e.return();c=b.stream;d=b.ua;return c.segmentIndex?e.B(2):u(e,c.createSegmentIndex(),2)}if(b.ua!=d||b.stream!=c)return e.return();var f=a.g.Tc();var g=Vi(a.g.N,b.type),h=b.stream.segmentIndex.find(b.qa?b.qa.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.ma?k.ma-k.Ba:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.h)&&(h+=(k.ma?k.ma-k.Ba:null)||0),k=a.g.getBandwidthEstimate(),
347
- f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.i.rebufferingGoal)||b.ua.h.g>h?!0:!1):f=!1;f&&b.ua.abort();A(e)})}
348
- r.wc=function(){if(this.g)for(var a=this.g.Tc(),b=t(this.j.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.j.get(d);var e=null;c.Y&&(e=c.Y.current());if(!e||e.startTime>a||e.endTime<a)c.Y=null;e=this.g.N;d==ic?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Ui(e,d),e=vi(e,a));if(!e){(null!=Vi(this.g.N,d)||c.sa)&&sk(this,c);c.ua&&(c.ua.abort(),c.ua=null);if(d===ic&&(d=this.g.N,d.s))for(d=d.s.g,d.l=0,d.h=[],d.g=[],e=d.i,e.i=[],e.h=[],e.g=0,Xh(d),d=t(d.j.values()),e=d.next();!e.done;e=
349
- d.next())Sh(e.value);c.wc=!0}}};function sk(a,b){b.bc||b.bb||(b.sa?(b.bb=!0,b.Oc=0):null==Ti(a.g.N,b.type)?null==b.Ka&&kk(a,b,0):(fk(b),qk(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
350
- function hk(a){var b,c,d,e,f,g,h,k,l,m;return G(function(p){if(1==p.g){b=jc;if(!a.l)throw new O(2,5,5006);c=new Map;d=new Set;a.l.audio&&(c.set(b.Ic,a.l.audio),d.add(a.l.audio));a.l.video&&(c.set(b.va,a.l.video),d.add(a.l.video));a.o&&(c.set(b.X,a.o),d.add(a.o));e=a.g.N;f=a.i.forceTransmux;return u(p,e.init(c,f,a.m.sequenceMode),2)}kf(a.h);a.updateDuration();g=t(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),a.j.has(k)||(m=jk(l),a.j.set(k,m),kk(a,m,0));A(p)})}
351
- function jk(a){return{stream:a,type:a.type,Y:null,qa:null,$c:null,Md:null,Ld:null,Kd:null,pb:null,endOfStream:!1,sa:!1,Ka:null,bb:!1,Oc:0,kd:!1,bc:!1,wc:!0,Td:!1,de:!1,oc:!1,ua:null}}r.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.N.Aa(a):this.g.N.Aa(Math.pow(2,32))};
352
- function tk(a,b){var c,d,e,f,g;return G(function(h){switch(h.g){case 1:kf(a.h);if(b.sa||null==b.Ka||b.bc)return h.return();b.Ka=null;if(!b.bb){h.B(2);break}return u(h,qk(a,b,b.kd,b.Oc),3);case 3:return h.return();case 2:if(b.stream.segmentIndex){h.B(4);break}c=b.stream;return u(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.sa||b.Ka||kk(a,b,0),h.return();case 4:C(h,6);d=uk(a,b);null!=d&&(kk(a,b,d),b.oc=!1);va(h,7);break;case 6:return e=
353
- wa(h),u(h,vk(a,e),8);case 8:return h.return();case 7:f=Array.from(a.j.values());if(!a.A||!f.every(function(k){return k.endOfStream})){h.B(0);break}return u(h,a.g.N.endOfStream(),10);case 10:kf(a.h),g=a.g.N.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.Aa(g),A(h)}})}
354
- function uk(a,b){if(wk(b))return fj(a.g.N,b.stream.originalId||""),null;b.type==ic&&gj(a.g.N);var c=a.g.Tc(),d=b.qa?b.qa.endTime:c,e=Wi(a.g.N,b.type,c),f=Math.max(a.m.minBufferTime||0,a.i.rebufferingGoal,a.i.bufferingGoal)*a.u,g=a.m.presentationTimeline.getDuration()-d,h=Vi(a.g.N,b.type);if(1E-6>g&&h)return b.endOfStream=!0,"video"==b.type&&(a=a.j.get(ic))&&wk(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.i.updateIntervalSeconds/2;e=xk(a,b,c,h);if(!e)return a.i.updateIntervalSeconds;
355
- f=Infinity;g=Array.from(a.j.values());g=t(g);for(h=g.next();!h.done;h=g.next())h=h.value,wk(h)||h.Y&&!h.Y.current()||(f=Math.min(f,h.qa?h.qa.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.i.updateIntervalSeconds;yk(a,b,c,e).catch(function(){});return null}
356
- function xk(a,b,c,d){if(b.Y)return b.Y.current();if(b.qa||d)return c=b.qa?b.qa.endTime:d,b.Td=!0,b.Y=b.stream.segmentIndex.Db(c),b.Y&&b.Y.next().value;a=a.i.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.Y=b.stream.segmentIndex.Db(d),e=b.Y&&b.Y.next().value);e||(b.Y=b.stream.segmentIndex.Db(c),e=b.Y&&b.Y.next().value);return e}
357
- function yk(a,b,c,d){var e,f,g,h,k,l,m,p,n,q,v,y,w,x,D;return G(function(z){switch(z.g){case 1:e=jc;f=b.stream;g=b.Y;b.sa=!0;C(z,2);if(2==d.Fb())throw new O(1,1,1011);return u(z,zk(a,b,d),4);case 4:kf(a.h);if(a.s)return z.return();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.i.lowLatencyMode&&k&&h&&!d.m)return p=new Uint8Array(0),q=n=!1,v=function(B){var E,F,H;return G(function(I){if(n)return I.return();q=!0;kf(a.h);if(a.s)return I.return();p=Ak(p,B);E=!1;F=0;(new yf).box("mdat",
358
- function(J){F=J.size+J.start;E=!0}).parse(p,!1,!0);if(!E)return I.B(0);H=p.subarray(0,F);p=p.subarray(F);return u(I,Bk(a,b,c,f,d,H),0)})},u(z,Ck(a,b,d,v),11);l=Ck(a,b,d);return u(z,l,7);case 7:m=z.h;kf(a.h);if(a.s)return z.return();if(!d.m){z.B(8);break}return u(z,Dk(m,d,g),9);case 9:m=z.h;case 8:return kf(a.h),b.bb?(b.sa=!1,kk(a,b,0),z.return()):u(z,Bk(a,b,c,f,d,m),6);case 11:y=z.h;if(q){z.B(6);break}n=!0;kf(a.h);return a.s?z.return():b.bb?(b.sa=!1,kk(a,b,0),z.return()):u(z,Bk(a,b,c,f,d,y),6);case 6:kf(a.h);
359
- if(a.s)return z.return();b.qa=d;g.next();b.sa=!1;b.de=!1;w=a.g.N.Ma();x=w[b.type];bb(JSON.stringify(x));b.bb||a.g.Yd(d.startTime,d.endTime,b.type);kk(a,b,0);va(z,0);break;case 2:D=wa(z);kf(a.h,D);if(a.s)return z.return();b.sa=!1;if(7001==D.code)b.sa=!1,fk(b),kk(a,b,0),z.B(0);else if(b.type==e.X&&a.i.ignoreTextStreamFailures)a.j.delete(e.X),z.B(0);else if(3017==D.code)Ek(a,b,D),z.B(0);else return b.oc=!0,D.severity=2,u(z,vk(a,D),0)}})}
360
- function Dk(a,b,c){var d,e,f,g;return G(function(h){if(1==h.g)return d=b.m,d.cryptoKey?h.B(2):u(h,d.fetchKey(),3);e=d.iv;if(!e)for(e=L(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c.g,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;return h.return(window.crypto.subtle.decrypt({name:"AES-CBC",iv:e},d.cryptoKey,a))})}function Ak(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
361
- function Ek(a,b,c){if(!Array.from(a.j.values()).some(function(e){return e!=b&&e.de})){var d=Math.round(100*a.u);if(20<d)a.u-=.2;else if(4<d)a.u-=.04;else{b.oc=!0;a.s=!0;a.g.onError(c);return}b.de=!0}kk(a,b,4)}
362
- function zk(a,b,c){var d,e,f,g,h,k,l,m;return G(function(p){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.Md||e!=b.Ld||f!=b.Kd)h=function(){var n;return G(function(q){if(1==q.g)return C(q,2),b.Ld=e,b.Kd=f,b.Md=g,u(q,ij(a.g.N,b.type,g,e,f,a.m.sequenceMode),4);if(2!=q.g)return va(q,0);n=wa(q);b.Ld=null;b.Kd=null;b.Md=null;throw n;})},d.push(h());!qi(c.h,b.$c)&&(b.$c=c.h)&&(k=Ck(a,b,c.h),l=function(){var n,q,v,y;return G(function(w){switch(w.g){case 1:return C(w,
363
- 2),u(w,k,4);case 4:return n=w.h,kf(a.h),q=new yf,q.box("moov",Df).box("trak",Df).box("mdia",Df).R("mdhd",function(x){x=fi(x.reader||0,x.version||0);c.h.timescale=x.timescale}).parse(n),v=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,u(w,a.g.xe(b.type,n),5);case 5:return u(w,Xi(a.g.N,b.type,n,null,v),6);case 6:va(w,0);break;case 2:throw y=wa(w),b.$c=null,y;}})},a.g.hg(c.startTime,c.h),d.push(l()));m=b.qa?b.qa.j:null;if(a.m.sequenceMode){if(c.j!=m||b.Td)b.Td=!1,d.push(jj(a.g.N,b.type,c.startTime))}else c.j!=
364
- m&&d.push(jj(a.g.N,b.type,c.timestampOffset));return u(p,Promise.all(d),0)})}
365
- function Bk(a,b,c,d,e,f){var g,h,k,l,m,p;return G(function(n){switch(n.g){case 1:g=d.closedCaptions&&0<d.closedCaptions.size;k=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.i.dispatchAllEmsgBoxes;l=a.i.parsePrftBox&&!a.D;if(k||l)h=new yf;k&&h.R("emsg",function(q){var v=d.emsgSchemeIdUris;if(0===q.version){var y=q.reader.tc();var w=q.reader.tc();var x=q.reader.K();var D=q.reader.K();var z=q.reader.K();var B=q.reader.K();var E=e.startTime+D/x}else x=q.reader.K(),E=q.reader.$a()/x+e.timestampOffset,
366
- D=E-e.startTime,z=q.reader.K(),B=q.reader.K(),y=q.reader.tc(),w=q.reader.tc();q=q.reader.Za(q.reader.S.byteLength-q.reader.$());if(v&&v.includes(y)||a.i.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==y?a.g.ig():(v=(new Map).set("detail",{startTime:E,endTime:E+z/x,schemeIdUri:y,value:w,timescale:x,presentationTimeDelta:D,eventDuration:z,id:B,messageData:q}),v=new S("emsg",v),v.cancelable=!0,a.g.onEvent(v),v.defaultPrevented||"https://aomedia.org/emsg/ID3"!=y&&"https://developer.apple.com/streaming/emsg-id3"!=
367
- y||(y=Ci(q),y.length&&e&&a.g.jg([{cueTime:e.startTime,data:q,frames:y,dts:e.startTime,pts:e.startTime}],0,e.endTime)))});l&&h.R("prft",function(q){a:{if(!a.D&&e.h.timescale){q.reader.K();var v=q.reader.K(),y=q.reader.K();v=1E3*v+y/Math.pow(2,32)*1E3;if(0===q.version)var w=q.reader.K();else try{w=q.reader.$a()}catch(x){a.D=!0;w=void 0;break a}q=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+v)).getTime();w=(new Map).set("detail",{wallClockTime:q,programStartDate:new Date(q-w/e.h.timescale*
368
- 1E3)});w=new S("prft",w);a.g.onEvent(w);a.D=!0}w=void 0}return w});(k||l)&&h.parse(f);return u(n,Fk(a,b,c),2);case 2:return kf(a.h),m=b.wc,b.wc=!1,p=b.ve,b.ve=!1,u(n,a.g.xe(b.type,f),3);case 3:return u(n,Xi(a.g.N,b.type,f,e,g,m,p),4);case 4:kf(a.h),A(n)}})}
369
- function Fk(a,b,c){var d,e,f,g;return G(function(h){if(1==h.g){d=Math.max(a.i.bufferBehind,a.m.presentationTimeline.g);e=Ti(a.g.N,b.type);if(null==e)return h.return();f=c-e;g=f-d;return.01>=g?h.return():u(h,a.g.N.remove(b.type,e,e+g),2)}kf(a.h);A(h)})}function wk(a){return a&&a.type==ic&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
370
- function Ck(a,b,c,d){var e,f,g,h,k;return G(function(l){if(1==l.g)return e=hf,f=ck(c.ya(),c.Ba,c.ma,a.i.retryParameters,d),g=b.stream,a.g.modifySegmentRequest(f,{type:g.type,init:c instanceof pi,duration:c.endTime-c.startTime,mimeType:g.mimeType,codecs:g.codecs,bandwidth:g.bandwidth}),h=a.g.lb.request(e,f),b.ua=h,u(l,h.promise,2);k=l.h;b.ua=null;return l.return(k.data)})}
371
- function qk(a,b,c,d){var e,f;return G(function(g){if(1==g.g)return b.bb=!1,b.kd=!1,b.Oc=0,b.bc=!0,b.qa=null,b.$c=null,b.Y=null,d?(e=a.g.Tc(),f=a.g.N.getDuration(),u(g,a.g.N.remove(b.type,e+d,f),3)):u(g,hj(a.g.N,b.type),4);if(3!=g.g)return kf(a.h),c?u(g,a.g.N.flush(b.type),3):g.B(3);kf(a.h);b.bc=!1;b.endOfStream=!1;b.sa||b.Ka||kk(a,b,0);A(g)})}
372
- function kk(a,b,c){var d=b.type;if(d!=ic||a.j.has(d))b.Ka=(new mc(function(){var e;return G(function(f){if(1==f.g)return C(f,2),u(f,tk(a,b),4);if(2!=f.g)return va(f,0);e=wa(f);if(a.g)a.g.onError(e);A(f)})})).O(c)}function fk(a){null!=a.Ka&&(a.Ka.stop(),a.Ka=null)}function gk(a){return G(function(b){return a.ua?u(b,a.ua.abort(),0):b.B(0)})}function vk(a,b){return G(function(c){if(1==c.g)return u(c,Je(a.G),2);kf(a.h);a.g.onError(b);b.handled||a.i.failureCallback(b);A(c)})};function Gk(a,b){var c=Hk(),d=this;this.j=b;this.i=a;this.l=c;this.o=null;this.m=[];this.h=this.g=null;this.u=Promise.resolve().then(function(){return Ik(d)});this.s=new jf(function(){return Jk(d)})}Gk.prototype.destroy=function(){return this.s.destroy()};function Jk(a){var b,c,d;return G(function(e){if(1==e.g)return a.h&&a.h.abort(),Kk(a),u(e,a.u,2);a.g&&a.g.Ia.nb();b=t(a.m);for(c=b.next();!c.done;c=b.next())d=c.value,d.Ia.nb();a.g=null;a.m=[];a.j=null;A(e)})}
373
- function Lk(a,b){var c={Kb:function(){},cd:function(){},nb:function(){},onError:function(){},ed:function(){},vh:function(){}};a.m.push({create:b,Ia:c});a.h&&a.h.abort();Kk(a);return c}
374
- function Ik(a){return G(function(b){if(a.s.g)b=b.B(0);else{if(0==a.m.length||a.g&&!a.g.hb)var c=!1;else{a.g&&(a.g.Ia.nb(),a.g=null);c=a.m.shift();var d=c.create(a.l);d?(c.Ia.Kb(),a.g={node:d.node,payload:d.payload,hb:d.hb,Ia:c.Ia}):c.Ia.ed();c=!0}c?c=Promise.resolve():a.g?c=Mk(a):(a.j.gg(a.i),a.o=new kc,c=a.o);b=u(b,c,1)}return b})}
375
- function Mk(a){var b,c;return G(function(d){switch(d.g){case 1:return a.i=a.j.Nf(a.i,a.l,a.g.node,a.g.payload),C(d,2),a.h=a.j.zf(a.i,a.l,a.g.payload),u(d,a.h.promise,4);case 4:a.h=null;a.i==a.g.node&&(a.g.Ia.cd(),a.g=null);va(d,0);break;case 2:b=wa(d);if(7001==b.code)a.g.Ia.nb();else a.g.Ia.onError(b);a.g=null;a.h=null;c=a;return u(d,a.j.handleError(a.l,b),5);case 5:c.i=d.h,A(d)}})}function Kk(a){a.o&&(a.o.resolve(),a.o=null)};function Nk(a){var b=[],c=700<=a.fontWeight,d="italic"==a.fontStyle,e=a.textDecoration.includes("underline");c&&b.push("b");d&&b.push("i");e&&b.push("u");c=b.reduce(function(f,g){return f+"<"+g+">"},"");b=b.reduceRight(function(f,g){return f+"</"+g+">"},"");return a.lineBreak?"\n":a.nestedCues.length?a.nestedCues.map(Nk).join(""):c+a.payload+b}
345
+ function nk(a,b,c,d,e,f){var g=a.j.get(b.type);g||b.type!=ic?g&&(g.pb&&(b.trickModeVideo?(g.pb=b,b=b.trickModeVideo):g.pb=null),g.stream!=b||e)&&(b.type==ic&&Qi(a.g.R,Yc(b.mimeType,b.codecs),a.m.sequenceMode,b.external),g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.X=null,g.ve=!!f,c&&(g.bc?g.ld=!0:g.sa?(g.bb=!0,g.Oc=d,g.ld=!0):(fk(g),qk(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),rk(a,g).catch(function(h){if(a.g)a.g.onError(h)})):ik(a,b)}
346
+ function rk(a,b){var c,d;return G(function(e){if(1==e.g){if(!b.ua)return e.return();c=b.stream;d=b.ua;return c.segmentIndex?e.B(2):u(e,c.createSegmentIndex(),2)}if(b.ua!=d||b.stream!=c)return e.return();var f=a.g.Tc();var g=Vi(a.g.R,b.type),h=b.stream.segmentIndex.find(b.qa?b.qa.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.ma?k.ma-k.Ba:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.h)&&(h+=(k.ma?k.ma-k.Ba:null)||0),k=a.g.getBandwidthEstimate(),
347
+ f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal)||b.ua.h.g>h?!0:!1):f=!1;f&&b.ua.abort();A(e)})}
348
+ r.wc=function(){if(this.g)for(var a=this.g.Tc(),b=t(this.j.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.j.get(d);var e=null;c.X&&(e=c.X.current());if(!e||e.startTime>a||e.endTime<a)c.X=null;e=this.g.R;d==ic?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Ui(e,d),e=vi(e,a));if(!e){(null!=Vi(this.g.R,d)||c.sa)&&sk(this,c);c.ua&&(c.ua.abort(),c.ua=null);if(d===ic&&(d=this.g.R,d.s))for(d=d.s.g,d.l=0,d.h=[],d.g=[],e=d.i,e.i=[],e.h=[],e.g=0,Xh(d),d=t(d.j.values()),e=d.next();!e.done;e=
349
+ d.next())Sh(e.value);c.wc=!0}}};function sk(a,b){b.bc||b.bb||(b.sa?(b.bb=!0,b.Oc=0):null==Ti(a.g.R,b.type)?null==b.Ka&&kk(a,b,0):(fk(b),qk(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))}
350
+ function hk(a){var b,c,d,e,f,g,h,k,l,m;return G(function(p){if(1==p.g){b=jc;if(!a.l)throw new O(2,5,5006);c=new Map;d=new Set;a.l.audio&&(c.set(b.Ic,a.l.audio),d.add(a.l.audio));a.l.video&&(c.set(b.va,a.l.video),d.add(a.l.video));a.o&&(c.set(b.Y,a.o),d.add(a.o));e=a.g.R;f=a.h.forceTransmux;return u(p,e.init(c,f,a.m.sequenceMode),2)}kf(a.i);a.updateDuration();g=t(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),a.j.has(k)||(m=jk(l),a.j.set(k,m),kk(a,m,0));A(p)})}
351
+ function jk(a){return{stream:a,type:a.type,X:null,qa:null,ad:null,Md:null,Ld:null,Kd:null,pb:null,endOfStream:!1,sa:!1,Ka:null,bb:!1,Oc:0,ld:!1,bc:!1,wc:!0,Td:!1,de:!1,oc:!1,ua:null}}r.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.R.Aa(a):this.g.R.Aa(Math.pow(2,32))};
352
+ function tk(a,b){var c,d,e,f,g;return G(function(h){switch(h.g){case 1:kf(a.i);if(b.sa||null==b.Ka||b.bc)return h.return();b.Ka=null;if(!b.bb){h.B(2);break}return u(h,qk(a,b,b.ld,b.Oc),3);case 3:return h.return();case 2:if(b.stream.segmentIndex){h.B(4);break}c=b.stream;return u(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.sa||b.Ka||kk(a,b,0),h.return();case 4:C(h,6);d=uk(a,b);null!=d&&(kk(a,b,d),b.oc=!1);va(h,7);break;case 6:return e=
353
+ xa(h),u(h,vk(a,e),8);case 8:return h.return();case 7:f=Array.from(a.j.values());if(!a.A||!f.every(function(k){return k.endOfStream})){h.B(0);break}return u(h,a.g.R.endOfStream(),10);case 10:kf(a.i),g=a.g.R.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.Aa(g),A(h)}})}
354
+ function uk(a,b){if(wk(b))return fj(a.g.R,b.stream.originalId||""),null;b.type==ic&&gj(a.g.R);var c=a.g.Tc(),d=b.qa?b.qa.endTime:c,e=Wi(a.g.R,b.type,c),f=Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal,a.h.bufferingGoal)*a.u,g=a.m.presentationTimeline.getDuration()-d,h=Vi(a.g.R,b.type);if(1E-6>g&&h)return b.endOfStream=!0,"video"==b.type&&(a=a.j.get(ic))&&wk(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.h.updateIntervalSeconds/2;e=xk(a,b,c,h);if(!e)return a.h.updateIntervalSeconds;
355
+ f=Infinity;g=Array.from(a.j.values());g=t(g);for(h=g.next();!h.done;h=g.next())h=h.value,wk(h)||h.X&&!h.X.current()||(f=Math.min(f,h.qa?h.qa.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.h.updateIntervalSeconds;yk(a,b,c,e).catch(function(){});return null}
356
+ function xk(a,b,c,d){if(b.X)return b.X.current();if(b.qa||d)return c=b.qa?b.qa.endTime:d,b.Td=!0,b.X=b.stream.segmentIndex.Db(c),b.X&&b.X.next().value;a=a.h.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.X=b.stream.segmentIndex.Db(d),e=b.X&&b.X.next().value);e||(b.X=b.stream.segmentIndex.Db(c),e=b.X&&b.X.next().value);return e}
357
+ function yk(a,b,c,d){var e,f,g,h,k,l,m,p,n,q,v,y,w,x,D;return G(function(z){switch(z.g){case 1:e=jc;f=b.stream;g=b.X;b.sa=!0;C(z,2);if(2==d.Fb())throw new O(1,1,1011);return u(z,zk(a,b,d),4);case 4:kf(a.i);if(a.s)return z.return();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.h.lowLatencyMode&&k&&h&&!d.m)return p=new Uint8Array(0),q=n=!1,v=function(B){var E,F,H;return G(function(I){if(n)return I.return();q=!0;kf(a.i);if(a.s)return I.return();p=Ak(p,B);E=!1;F=0;(new yf).box("mdat",
358
+ function(J){F=J.size+J.start;E=!0}).parse(p,!1,!0);if(!E)return I.B(0);H=p.subarray(0,F);p=p.subarray(F);return u(I,Bk(a,b,c,f,d,H),0)})},u(z,Ck(a,b,d,v),9);l=Ck(a,b,d);return u(z,l,7);case 7:return m=z.h,kf(a.i),a.s?z.return():b.bb?(b.sa=!1,kk(a,b,0),z.return()):u(z,Bk(a,b,c,f,d,m),6);case 9:y=z.h;if(q){z.B(6);break}n=!0;kf(a.i);return a.s?z.return():b.bb?(b.sa=!1,kk(a,b,0),z.return()):u(z,Bk(a,b,c,f,d,y),6);case 6:kf(a.i);if(a.s)return z.return();b.qa=d;g.next();b.sa=!1;b.de=!1;w=a.g.R.Ma();x=w[b.type];
359
+ db(JSON.stringify(x));b.bb||a.g.Yd(d.startTime,d.endTime,b.type);kk(a,b,0);va(z,0);break;case 2:D=xa(z);kf(a.i,D);if(a.s)return z.return();b.sa=!1;if(7001==D.code)b.sa=!1,fk(b),kk(a,b,0),z.B(0);else if(b.type==e.Y&&a.h.ignoreTextStreamFailures)a.j.delete(e.Y),z.B(0);else if(3017==D.code)Dk(a,b,D),z.B(0);else return b.oc=!0,D.severity=2,u(z,vk(a,D),0)}})}
360
+ function Ek(a,b,c){var d,e,f,g;return G(function(h){if(1==h.g)return d=b,d.cryptoKey?h.B(2):u(h,d.fetchKey(),3);e=d.iv;if(!e)for(e=L(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c.g,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;return h.return(window.crypto.subtle.decrypt({name:"AES-CBC",iv:e},d.cryptoKey,a))})}function Ak(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
361
+ function Dk(a,b,c){if(!Array.from(a.j.values()).some(function(e){return e!=b&&e.de})){var d=Math.round(100*a.u);if(20<d)a.u-=.2;else if(4<d)a.u-=.04;else{b.oc=!0;a.s=!0;a.g.onError(c);return}b.de=!0}kk(a,b,4)}
362
+ function zk(a,b,c){var d,e,f,g,h,k,l,m;return G(function(p){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.Md||e!=b.Ld||f!=b.Kd)h=function(){var n;return G(function(q){if(1==q.g)return C(q,2),b.Ld=e,b.Kd=f,b.Md=g,u(q,ij(a.g.R,b.type,g,e,f,a.m.sequenceMode),4);if(2!=q.g)return va(q,0);n=xa(q);b.Ld=null;b.Kd=null;b.Md=null;throw n;})},d.push(h());!qi(c.h,b.ad)&&(b.ad=c.h)&&(k=Ck(a,b,c.h),l=function(){var n,q,v,y;return G(function(w){switch(w.g){case 1:return C(w,
363
+ 2),u(w,k,4);case 4:return n=w.h,kf(a.i),q=new yf,q.box("moov",Df).box("trak",Df).box("mdia",Df).P("mdhd",function(x){x=fi(x.reader||0,x.version||0);c.h.timescale=x.timescale}).parse(n),v=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,u(w,a.g.xe(b.type,n),5);case 5:return u(w,Xi(a.g.R,b.type,n,null,v),6);case 6:va(w,0);break;case 2:throw y=xa(w),b.ad=null,y;}})},a.g.hg(c.startTime,c.h),d.push(l()));a.m.sequenceMode&&(m=b.qa?b.qa.l:null,c.l!=m||b.Td)&&(b.Td=!1,d.push(jj(a.g.R,b.type,c.startTime)));
364
+ return u(p,Promise.all(d),0)})}
365
+ function Bk(a,b,c,d,e,f){var g,h,k,l,m,p;return G(function(n){switch(n.g){case 1:g=d.closedCaptions&&0<d.closedCaptions.size;k=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.h.dispatchAllEmsgBoxes;l=a.h.parsePrftBox&&!a.D;if(k||l)h=new yf;k&&h.P("emsg",function(q){var v=d.emsgSchemeIdUris;if(0===q.version){var y=q.reader.tc();var w=q.reader.tc();var x=q.reader.K();var D=q.reader.K();var z=q.reader.K();var B=q.reader.K();var E=e.startTime+D/x}else x=q.reader.K(),E=q.reader.$a()/x+e.timestampOffset,
366
+ D=E-e.startTime,z=q.reader.K(),B=q.reader.K(),y=q.reader.tc(),w=q.reader.tc();q=q.reader.Za(q.reader.S.byteLength-q.reader.$());if(v&&v.includes(y)||a.h.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==y?a.g.ig():(v=(new Map).set("detail",{startTime:E,endTime:E+z/x,schemeIdUri:y,value:w,timescale:x,presentationTimeDelta:D,eventDuration:z,id:B,messageData:q}),v=new R("emsg",v),v.cancelable=!0,a.g.onEvent(v),v.defaultPrevented||"https://aomedia.org/emsg/ID3"!=y&&"https://developer.apple.com/streaming/emsg-id3"!=
367
+ y||(y=Ci(q),y.length&&e&&a.g.jg([{cueTime:e.startTime,data:q,frames:y,dts:e.startTime,pts:e.startTime}],0,e.endTime)))});l&&h.P("prft",function(q){a:{if(!a.D&&e.h.timescale){q.reader.K();var v=q.reader.K(),y=q.reader.K();v=1E3*v+y/Math.pow(2,32)*1E3;if(0===q.version)var w=q.reader.K();else try{w=q.reader.$a()}catch(x){a.D=!0;w=void 0;break a}q=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+v)).getTime();w=(new Map).set("detail",{wallClockTime:q,programStartDate:new Date(q-w/e.h.timescale*
368
+ 1E3)});w=new R("prft",w);a.g.onEvent(w);a.D=!0}w=void 0}return w});(k||l)&&h.parse(f);return u(n,Fk(a,b,c),2);case 2:return kf(a.i),m=b.wc,b.wc=!1,p=b.ve,b.ve=!1,u(n,a.g.xe(b.type,f),3);case 3:return u(n,Xi(a.g.R,b.type,f,e,g,m,p),4);case 4:kf(a.i),A(n)}})}
369
+ function Fk(a,b,c){var d,e,f,g;return G(function(h){if(1==h.g){d=Math.max(a.h.bufferBehind,a.m.presentationTimeline.g);e=Ti(a.g.R,b.type);if(null==e)return h.return();f=c-e;g=f-d;return.01>=g?h.return():u(h,a.g.R.remove(b.type,e,e+g),2)}kf(a.i);A(h)})}function wk(a){return a&&a.type==ic&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
370
+ function Ck(a,b,c,d){var e,f,g,h,k,l,m;return G(function(p){switch(p.g){case 1:return e=hf,f=ck(c.ya(),c.Ba,c.ma,a.h.retryParameters,d),g=b.stream,a.g.modifySegmentRequest(f,{type:g.type,init:c instanceof pi,duration:c.endTime-c.startTime,mimeType:g.mimeType,codecs:g.codecs,bandwidth:g.bandwidth}),h=a.g.lb.request(e,f),b.ua=h,u(p,h.promise,2);case 2:k=p.h;b.ua=null;l=k.data;if(!c.m){p.B(3);break}m=b.X;return u(p,Ek(l,c.m,m),4);case 4:l=p.h;case 3:return p.return(l)}})}
371
+ function qk(a,b,c,d){var e,f;return G(function(g){if(1==g.g)return b.bb=!1,b.ld=!1,b.Oc=0,b.bc=!0,b.qa=null,b.ad=null,b.X=null,d?(e=a.g.Tc(),f=a.g.R.getDuration(),u(g,a.g.R.remove(b.type,e+d,f),3)):u(g,hj(a.g.R,b.type),4);if(3!=g.g)return kf(a.i),c?u(g,a.g.R.flush(b.type),3):g.B(3);kf(a.i);b.bc=!1;b.endOfStream=!1;b.sa||b.Ka||kk(a,b,0);A(g)})}
372
+ function kk(a,b,c){var d=b.type;if(d!=ic||a.j.has(d))b.Ka=(new mc(function(){var e;return G(function(f){if(1==f.g)return C(f,2),u(f,tk(a,b),4);if(2!=f.g)return va(f,0);e=xa(f);if(a.g)a.g.onError(e);A(f)})})).N(c)}function fk(a){null!=a.Ka&&(a.Ka.stop(),a.Ka=null)}function gk(a){return G(function(b){return a.ua?u(b,a.ua.abort(),0):b.B(0)})}function vk(a,b){return G(function(c){if(1==c.g)return u(c,Je(a.G),2);kf(a.i);a.g.onError(b);b.handled||a.h.failureCallback(b);A(c)})};function Gk(a,b){var c=Hk(),d=this;this.j=b;this.i=a;this.l=c;this.o=null;this.m=[];this.h=this.g=null;this.u=Promise.resolve().then(function(){return Ik(d)});this.s=new jf(function(){return Jk(d)})}Gk.prototype.destroy=function(){return this.s.destroy()};function Jk(a){var b,c,d;return G(function(e){if(1==e.g)return a.h&&a.h.abort(),Kk(a),u(e,a.u,2);a.g&&a.g.Ia.nb();b=t(a.m);for(c=b.next();!c.done;c=b.next())d=c.value,d.Ia.nb();a.g=null;a.m=[];a.j=null;A(e)})}
373
+ function Lk(a,b){var c={Kb:function(){},dd:function(){},nb:function(){},onError:function(){},fd:function(){},vh:function(){}};a.m.push({create:b,Ia:c});a.h&&a.h.abort();Kk(a);return c}
374
+ function Ik(a){return G(function(b){if(a.s.g)b=b.B(0);else{if(0==a.m.length||a.g&&!a.g.hb)var c=!1;else{a.g&&(a.g.Ia.nb(),a.g=null);c=a.m.shift();var d=c.create(a.l);d?(c.Ia.Kb(),a.g={node:d.node,payload:d.payload,hb:d.hb,Ia:c.Ia}):c.Ia.fd();c=!0}c?c=Promise.resolve():a.g?c=Mk(a):(a.j.gg(a.i),a.o=new kc,c=a.o);b=u(b,c,1)}return b})}
375
+ function Mk(a){var b,c;return G(function(d){switch(d.g){case 1:return a.i=a.j.Nf(a.i,a.l,a.g.node,a.g.payload),C(d,2),a.h=a.j.zf(a.i,a.l,a.g.payload),u(d,a.h.promise,4);case 4:a.h=null;a.i==a.g.node&&(a.g.Ia.dd(),a.g=null);va(d,0);break;case 2:b=xa(d);if(7001==b.code)a.g.Ia.nb();else a.g.Ia.onError(b);a.g=null;a.h=null;c=a;return u(d,a.j.handleError(a.l,b),5);case 5:c.i=d.h,A(d)}})}function Kk(a){a.o&&(a.o.resolve(),a.o=null)};function Nk(a){var b=[],c=700<=a.fontWeight,d="italic"==a.fontStyle,e=a.textDecoration.includes("underline");c&&b.push("b");d&&b.push("i");e&&b.push("u");c=b.reduce(function(f,g){return f+"<"+g+">"},"");b=b.reduceRight(function(f,g){return f+"</"+g+">"},"");return a.lineBreak?"\n":a.nestedCues.length?a.nestedCues.map(Nk).join(""):c+a.payload+b}
376
376
  function Ok(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.isContainer)Ok(c.nestedCues,b);else{var d=c.clone();d.nestedCues=[];d.payload=Nk(c);b.push(d)}return b};function Pk(a){this.g=null;for(var b=t(Array.from(a.textTracks)),c=b.next();!c.done;c=b.next())c=c.value,c.mode="disabled","Shaka Player TextTrack"==c.label&&(this.g=c);this.g||(this.g=a.addTextTrack("subtitles","Shaka Player TextTrack"));this.g.mode="hidden"}r=Pk.prototype;r.remove=function(a,b){if(!this.g)return!1;Qk(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
377
377
  r.append=function(a){var b=Ok(a,[]),c=[];a=this.g.cues?Array.from(this.g.cues):[];var d={};b=t(b);for(var e=b.next();!e.done;d={ub:d.ub},e=b.next())d.ub=e.value,a.some(function(f){return function(g){return g.startTime==f.ub.startTime&&g.endTime==f.ub.endTime&&g.text==f.ub.payload?!0:!1}}(d))||(e=Rk(d.ub))&&c.push(e);a=c.slice().sort(function(f,g){return f.startTime!=g.startTime?f.startTime-g.startTime:f.endTime!=g.endTime?f.endTime-g.startTime:"line"in VTTCue.prototype?c.indexOf(g)-c.indexOf(f):c.indexOf(f)-
378
378
  c.indexOf(g)});a=t(a);for(d=a.next();!d.done;d=a.next())this.g.addCue(d.value)};r.destroy=function(){this.g&&(Qk(this.g,function(){return!0}),this.g.mode="disabled");this.g=null;return Promise.resolve()};r.isTextVisible=function(){return"showing"==this.g.mode};r.setTextVisibility=function(a){this.g.mode=a?"showing":"hidden"};
379
379
  function Rk(a){if(a.startTime>=a.endTime)return null;var b=new VTTCue(a.startTime,a.endTime,a.payload);b.lineAlign=a.lineAlign;b.positionAlign=a.positionAlign;a.size&&(b.size=a.size);try{b.align=a.textAlign}catch(c){}"center"==a.textAlign&&"center"!=b.align&&(b.align="middle");"vertical-lr"==a.writingMode?b.vertical="lr":"vertical-rl"==a.writingMode&&(b.vertical="rl");1==a.lineInterpretation&&(b.snapToLines=!1);null!=a.line&&(b.line=a.line);null!=a.position&&(b.position=a.position);return b}
380
380
  function Qk(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=t(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}K("shaka.text.SimpleTextDisplayer",Pk);Pk.prototype.setTextVisibility=Pk.prototype.setTextVisibility;Pk.prototype.isTextVisible=Pk.prototype.isTextVisible;Pk.prototype.destroy=Pk.prototype.destroy;Pk.prototype.append=Pk.prototype.append;Pk.prototype.remove=Pk.prototype.remove;function Sk(){}function Tk(a){for(;a.firstChild;)a.removeChild(a.firstChild)}K("shaka.util.Dom",Sk);Sk.removeAllChildren=Tk;function Uk(a,b){var c=this;this.j=!1;this.i=[];this.A=a;this.m=b;this.g=document.createElement("div");this.g.classList.add("shaka-text-container");this.g.style.textAlign="center";this.g.style.display="flex";this.g.style.flexDirection="column";this.g.style.alignItems="center";this.g.style.justifyContent="flex-end";this.m.appendChild(this.g);this.u=(new P(function(){Vk(c)})).Ca(.25);this.h=new Map;this.s=new lf;this.s.C(document,"fullscreenchange",function(){Vk(c,!0)});this.l=null;"ResizeObserver"in
381
- window&&(this.l=new ResizeObserver(function(){Vk(c,!0)}),this.l.observe(this.g));this.o=new Map}r=Uk.prototype;r.append=function(a){var b=[].concat(ia(this.i)),c={};a=t(a);for(var d=a.next();!d.done;c={Dc:c.Dc},d=a.next())c.Dc=d.value,b.some(function(e){return function(f){return vb(f,e.Dc)}}(c))||this.i.push(c.Dc);Vk(this)};
381
+ window&&(this.l=new ResizeObserver(function(){Vk(c,!0)}),this.l.observe(this.g));this.o=new Map}r=Uk.prototype;r.append=function(a){var b=[].concat(ia(this.i)),c={};a=t(a);for(var d=a.next();!d.done;c={Dc:c.Dc},d=a.next())c.Dc=d.value,b.some(function(e){return function(f){return wb(f,e.Dc)}}(c))||this.i.push(c.Dc);Vk(this)};
382
382
  r.destroy=function(){this.m.removeChild(this.g);this.g=null;this.j=!1;this.i=[];this.u&&this.u.stop();this.h.clear();this.s&&(this.s.release(),this.s=null);this.l&&(this.l.disconnect(),this.l=null)};r.remove=function(a,b){if(!this.g)return!1;var c=this.i.length;this.i=this.i.filter(function(d){return d.startTime<a||d.endTime>=b});Vk(this,c>this.i.length);return!0};r.isTextVisible=function(){return this.j};r.setTextVisibility=function(a){this.j=a};
383
383
  function Wk(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1}
384
- function Xk(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.h.get(k),m=k.startTime<=d&&k.endTime>d,p=l?l.ff:null;l&&(g.push(l.Dd),l.uc&&g.push(l.uc),m||(f=!0,a.h.delete(k),l=null));m&&(h.push(k),l?Wk(a,p)||(f=!0):(Yk(a,k,e),l=a.h.get(k),p=l.ff,f=!0));0<k.nestedCues.length&&p&&Xk(a,k.nestedCues,p,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(n,q){return n.startTime!=
385
- q.startTime?n.startTime-q.startTime:n.endTime-q.endTime});h=t(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),d.uc?(c.appendChild(d.uc),d.uc.appendChild(d.Dd)):c.appendChild(d.Dd)}}function Vk(a,b){if(a.g){var c=a.A.currentTime;if(!a.j||(void 0===b?0:b)){b=t(a.o.values());for(var d=b.next();!d.done;d=b.next())Tk(d.value);Tk(a.g);a.h.clear();a.o.clear()}if(a.j){b=new Map;d=t(a.h.keys());for(var e=d.next();!e.done;e=d.next())e=e.value,b.set(e,a.h.get(e));Xk(a,a.i,a.g,c,[])}}}
386
- function Yk(a,b,c){var d=1<c.length,e=d?"span":"div";b.lineBreak&&(e="br");d=!d&&0<b.nestedCues.length;var f=document.createElement(e);"br"!=e&&Zk(a,f,b,c,d);c=null;if(b.region&&b.region.id)if(c=b.region,e=c.id+"_"+c.width+"x"+c.height+(c.heightUnits==Cb?"%":"px")+"-"+c.viewportAnchorX+"x"+c.viewportAnchorY+(c.viewportAnchorUnits==Cb?"%":"px"),a.o.has(e))c=a.o.get(e);else{var g=document.createElement("span"),h=c.heightUnits==Cb?"%":"px",k=c.widthUnits==Cb?"%":"px",l=c.viewportAnchorUnits==Cb?"%":
384
+ function Xk(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.h.get(k),m=k.startTime<=d&&k.endTime>d,p=l?l.ff:null;l&&(g.push(l.Ed),l.uc&&g.push(l.uc),m||(f=!0,a.h.delete(k),l=null));m&&(h.push(k),l?Wk(a,p)||(f=!0):(Yk(a,k,e),l=a.h.get(k),p=l.ff,f=!0));0<k.nestedCues.length&&p&&Xk(a,k.nestedCues,p,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(n,q){return n.startTime!=
385
+ q.startTime?n.startTime-q.startTime:n.endTime-q.endTime});h=t(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),d.uc?(c.appendChild(d.uc),d.uc.appendChild(d.Ed)):c.appendChild(d.Ed)}}function Vk(a,b){if(a.g){var c=a.A.currentTime;if(!a.j||(void 0===b?0:b)){b=t(a.o.values());for(var d=b.next();!d.done;d=b.next())Tk(d.value);Tk(a.g);a.h.clear();a.o.clear()}if(a.j){b=new Map;d=t(a.h.keys());for(var e=d.next();!e.done;e=d.next())e=e.value,b.set(e,a.h.get(e));Xk(a,a.i,a.g,c,[])}}}
386
+ function Yk(a,b,c){var d=1<c.length,e=d?"span":"div";b.lineBreak&&(e="br");d=!d&&0<b.nestedCues.length;var f=document.createElement(e);"br"!=e&&Zk(a,f,b,c,d);c=null;if(b.region&&b.region.id)if(c=b.region,e=c.id+"_"+c.width+"x"+c.height+(c.heightUnits==Db?"%":"px")+"-"+c.viewportAnchorX+"x"+c.viewportAnchorY+(c.viewportAnchorUnits==Db?"%":"px"),a.o.has(e))c=a.o.get(e);else{var g=document.createElement("span"),h=c.heightUnits==Db?"%":"px",k=c.widthUnits==Db?"%":"px",l=c.viewportAnchorUnits==Db?"%":
387
387
  "px";g.id="shaka-text-region---"+e;g.classList.add("shaka-text-region");g.style.height=c.height+h;g.style.width=c.width+k;g.style.position="absolute";g.style.top=c.viewportAnchorY+l;g.style.left=c.viewportAnchorX+l;g.style.display="flex";g.style.flexDirection="column";g.style.alignItems="center";g.style.justifyContent="before"==b.displayAlign?"flex-start":"center"==b.displayAlign?"center":"flex-end";a.o.set(e,g);c=g}e=f;d&&(e=document.createElement("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=
388
- b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.h.set(b,{Dd:f,ff:e,uc:c})}function $k(a){var b=a.direction,c=a.positionAlign;a=a.textAlign;return c!==mb?c:"left"===a||"start"===a&&b===kb||"end"===a&&"rtl"===b?"line-left":"right"===a||"start"===a&&"rtl"===b||"end"===a&&b===kb?"line-right":"center"}
388
+ b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.h.set(b,{Ed:f,ff:e,uc:c})}function $k(a){var b=a.direction,c=a.positionAlign;a=a.textAlign;return c!==ob?c:"left"===a||"start"===a&&b===mb||"end"===a&&"rtl"===b?"line-left":"right"===a||"start"===a&&"rtl"===b||"end"===a&&b===mb?"line-right":"center"}
389
389
  function Zk(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=al(c.linePadding,c,a.m);f.paddingRight=al(c.linePadding,c,a.m);f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage="url('"+c.backgroundImage+"')",f.backgroundRepeat=
390
390
  "no-repeat",f.backgroundSize="contain",f.backgroundPosition="center",f.width="100%",f.height="100%";else{if(c.nestedCues.length)var l=b;else l=document.createElement("span"),b.appendChild(l);c.border&&(l.style.border=c.border);e||((b=bl(d,function(m){return m.backgroundColor}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"));k&&(l.textContent=k)}h&&!d[d.length-1].isContainer?f.display="inline":(f.display="flex",f.flexDirection="column",f.alignItems="center",f.justifyContent=
391
- "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;f.fontSize=al(c.fontSize,c,a.m);null!=c.line&&(a=c.lineInterpretation,0==c.line&&a==qb&&(a=1),1==a&&(f.position="absolute",c.writingMode==ob?(f.width="100%",c.lineAlign==rb?f.top=c.line+"%":"end"==c.lineAlign&&(f.bottom=100-c.line+"%")):"vertical-lr"==c.writingMode?(f.height="100%",
392
- c.lineAlign==rb?f.left=c.line+"%":"end"==c.lineAlign&&(f.right=100-c.line+"%")):(f.height="100%",c.lineAlign==rb?f.right=c.line+"%":"end"==c.lineAlign&&(f.left=100-c.line+"%"))));f.lineHeight=c.lineHeight;null!=c.position&&(c.writingMode==ob?f.paddingLeft=c.position:f.paddingTop=c.position);a=$k(c);"line-left"==a?f.cssFloat="left":"line-right"==a&&(f.cssFloat="right");f.textAlign=c.textAlign;f.textDecoration=c.textDecoration.join(" ");f.writingMode=c.writingMode;"writingMode"in document.documentElement.style&&
393
- f.writingMode==c.writingMode||(f.webkitWritingMode=c.writingMode);c.size&&(c.writingMode==ob?f.width=c.size+"%":f.height=c.size+"%")}function al(a,b,c){var d=(d=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(d[1]),unit:d[2]}:null;if(!d)return a;var e=d.value;switch(d.unit){case "%":return e/100*c.clientHeight/b.cellResolution.rows+"px";case "c":return c.clientHeight*e/b.cellResolution.rows+"px";default:return a}}
391
+ "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;f.fontSize=al(c.fontSize,c,a.m);null!=c.line&&(a=c.lineInterpretation,0==c.line&&a==rb&&(a=1),1==a&&(f.position="absolute",c.writingMode==qb?(f.width="100%",c.lineAlign==sb?f.top=c.line+"%":"end"==c.lineAlign&&(f.bottom=100-c.line+"%")):"vertical-lr"==c.writingMode?(f.height="100%",
392
+ c.lineAlign==sb?f.left=c.line+"%":"end"==c.lineAlign&&(f.right=100-c.line+"%")):(f.height="100%",c.lineAlign==sb?f.right=c.line+"%":"end"==c.lineAlign&&(f.left=100-c.line+"%"))));f.lineHeight=c.lineHeight;null!=c.position&&(c.writingMode==qb?f.paddingLeft=c.position:f.paddingTop=c.position);a=$k(c);"line-left"==a?f.cssFloat="left":"line-right"==a&&(f.cssFloat="right");f.textAlign=c.textAlign;f.textDecoration=c.textDecoration.join(" ");f.writingMode=c.writingMode;"writingMode"in document.documentElement.style&&
393
+ f.writingMode==c.writingMode||(f.webkitWritingMode=c.writingMode);c.size&&(c.writingMode==qb?f.width=c.size+"%":f.height=c.size+"%")}function al(a,b,c){var d=(d=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(d[1]),unit:d[2]}:null;if(!d)return a;var e=d.value;switch(d.unit){case "%":return e/100*c.clientHeight/b.cellResolution.rows+"px";case "c":return c.clientHeight*e/b.cellResolution.rows+"px";default:return a}}
394
394
  function bl(a,b){for(var c=a.length-1;0<=c;c--){var d=b(a[c]);if(d||0===d)return d}return null}K("shaka.text.UITextDisplayer",Uk);Uk.prototype.setTextVisibility=Uk.prototype.setTextVisibility;Uk.prototype.isTextVisible=Uk.prototype.isTextVisible;Uk.prototype.remove=Uk.prototype.remove;Uk.prototype.destroy=Uk.prototype.destroy;Uk.prototype.append=Uk.prototype.append;function cl(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=Ok(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");
395
- break;case "right":g.push("align:right");break;case nb: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}K("shaka.text.WebVttGenerator",function(){});function dl(a,b){this.h=a;this.g=b;this.j="";this.o=void 0;this.i=!1;this.m=!0;this.l=!1}function el(a,b,c){try{if(a.g.enabled){var d={d:1E3*c.duration,st:a.h.T()?fl:gl};d.ot=hl(c);var e=d.ot===il||d.ot===jl||d.ot===kl||d.ot===ll;e&&(d.bl=ml(a,c.type));c.bandwidth&&(d.br=c.bandwidth/1E3);e&&d.ot!==ll&&(d.tb=nl(a,d.ot)/1E3);ol(a,b,d)}}catch(f){Ya("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",f)}}
396
- function pl(a,b,c){try{if(!a.g.enabled)return b;var d=ql(a);a:{switch(c){case "video/webm":case "video/mp4":var e=kl;break a;case "application/x-mpegurl":e=rl;break a}e=void 0}d.ot=e;d.su=!0;var f=sl(d);return tl(b,f)}catch(g){return Ya("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}function ql(a){a.j||(a.j=a.g.sessionId||window.crypto.randomUUID());return{v:1,sf:a.o,sid:a.j,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}}
397
- function ol(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled){Object.assign(c,ql(a));c.pr=a.h.Sc();var e=c.ot===il||c.ot===kl;a.l&&e&&(c.bs=!0,c.su=!0,a.l=!1);null==c.su&&(c.su=a.m);if(d)a=ul(c),Object.keys(a).length&&Object.assign(b.headers,a);else{var f=sl(c);f&&(b.uris=b.uris.map(function(g){return tl(g,f)}))}}}
395
+ break;case "right":g.push("align:right");break;case pb: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}K("shaka.text.WebVttGenerator",function(){});function dl(a,b){this.h=a;this.g=b;this.j="";this.o=void 0;this.i=!1;this.m=!0;this.l=!1}function el(a,b,c){try{if(a.g.enabled){var d={d:1E3*c.duration,st:a.h.T()?fl:gl};d.ot=hl(c);var e=d.ot===il||d.ot===jl||d.ot===kl||d.ot===ll;e&&(d.bl=ml(a,c.type));c.bandwidth&&(d.br=c.bandwidth/1E3);e&&d.ot!==ll&&(d.tb=nl(a,d.ot)/1E3);ol(a,b,d)}}catch(f){Za("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",f)}}
396
+ function pl(a,b,c){try{if(!a.g.enabled)return b;var d=ql(a);a:{switch(c.toLowerCase()){case "video/webm":case "video/mp4":case "video/mpeg":case "video/mp2t":var e=kl;break a;case "application/x-mpegurl":case "application/vnd.apple.mpegurl":case "application/dash+xml":case "video/vnd.mpeg.dash.mpd":e=rl;break a}e=void 0}d.ot=e;d.su=!0;var f=sl(d);return tl(b,f)}catch(g){return Za("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}
397
+ function ql(a){a.j||(a.j=a.g.sessionId||window.crypto.randomUUID());return{v:1,sf:a.o,sid:a.j,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}}function ol(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled){Object.assign(c,ql(a));c.pr=a.h.Sc();var e=c.ot===il||c.ot===kl;a.l&&e&&(c.bs=!0,c.su=!0,a.l=!1);null==c.su&&(c.su=a.m);if(d)a=ul(c),Object.keys(a).length&&Object.assign(b.headers,a);else{var f=sl(c);f&&(b.uris=b.uris.map(function(g){return tl(g,f)}))}}}
398
398
  function hl(a){var b=a.type;if(a.init)return vl;if("video"==b)return a.codecs.includes(",")?kl:il;if("audio"==b)return jl;if("text"==b)return"application/mp4"===a.mimeType?ll:wl}function ml(a,b){b=a.h.Ma()[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}
399
399
  function nl(a,b){var c=a.h.Pa();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 il:return a.videoBandwidth||NaN;case jl:return a.audioBandwidth||NaN;default:return a.bandwidth}}
400
400
  function sl(a){function b(p){return 100*c(p/100)}function c(p){return Math.round(p)}function d(p){return!Number.isNaN(p)&&null!=p&&""!==p&&!1!==p}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(p){return encodeURIComponent(p)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=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"===
401
401
  l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function ul(a){var b=Object.keys(a),c={},d=["Object","Request","Session","Status"],e=[{},{},{},{}],f={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3};b=t(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[null!=f[g]?f[g]:1][g]=a[g];for(a=0;a<e.length;a++)(f=sl(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
402
402
  function tl(a,b){if(!b||a.includes("offline:"))return a;a=new Mb(a);a.g.set("CMCD",b);return a.toString()}var rl="m",jl="a",il="v",kl="av",vl="i",wl="c",ll="tt",gl="v",fl="l";K("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",eh:"s",OTHER:"o"});function xl(){}
403
403
  function yl(a,b,c,d,e){var f=e in d,g=!0,h;for(h in b){var k=e+"."+h,l=f?d[e]:c[h];f||h in c?void 0===b[h]?void 0===l||f?delete a[h]:a[h]=Ue(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=Ue(l)),k=yl(a[h],b[h],l,d,k),g=g&&k):typeof b[h]!=typeof l||null==b[h]||"function"!=typeof b[h]&&b[h].constructor!=l.constructor?(Wa("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&Xa("Unexpected number of arguments for "+k),a[h]=b[h]):(Wa("Invalid config, unrecognized key "+
404
- k),g=!1)}return g}function zl(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 Al(a,b){return a&&b}K("shaka.util.ConfigUtils",xl);xl.convertToConfigObject=zl;xl.mergeConfigObjects=yl;function Bl(){}function Cl(a){a=Ec(a);return(new Mb(a)).Ha}function Dl(a,b,c){function d(h){Jb(f).setUint32(g,h.byteLength,!0);g+=4;f.set(L(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new O(2,6,6015);var e;"string"==typeof b?e=Gc(b,!0):e=b;a=Ec(a);a=Gc(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}K("shaka.util.FairPlayUtils",Bl);
405
- Bl.commonFairPlayResponse=function(a,b){if(2===a){try{var c=Bc(b.data)}catch(e){return}a=!1;c=c.trim();"<ckc>"===c.substr(0,5)&&"</ckc>"===c.substr(-6)&&(c=c.slice(5,-6),a=!0);try{var d=JSON.parse(c);d.ckc&&(c=d.ckc,a=!0);d.CkcMessage&&(c=d.CkcMessage,a=!0);d.License&&(c=d.License,a=!0)}catch(e){}a&&(b.data=Hb(Kc(c)))}};Bl.conaxFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};Bl.ezdrmFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};
404
+ k),g=!1)}return g}function zl(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 Al(a,b){return a&&b}K("shaka.util.ConfigUtils",xl);xl.convertToConfigObject=zl;xl.mergeConfigObjects=yl;function Bl(){}function Cl(a){a=Ec(a);return(new Mb(a)).Ha}function Dl(a,b,c){function d(h){Kb(f).setUint32(g,h.byteLength,!0);g+=4;f.set(L(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new O(2,6,6015);var e;"string"==typeof b?e=Gc(b,!0):e=b;a=Ec(a);a=Gc(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}K("shaka.util.FairPlayUtils",Bl);
405
+ Bl.commonFairPlayResponse=function(a,b){if(2===a){try{var c=Bc(b.data)}catch(e){return}a=!1;c=c.trim();"<ckc>"===c.substr(0,5)&&"</ckc>"===c.substr(-6)&&(c=c.slice(5,-6),a=!0);try{var d=JSON.parse(c);d.ckc&&(c=d.ckc,a=!0);d.CkcMessage&&(c=d.CkcMessage,a=!0);d.License&&(c=d.License,a=!0)}catch(e){}a&&(b.data=Ib(Kc(c)))}};Bl.conaxFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};Bl.ezdrmFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};
406
406
  Bl.verimatrixFairPlayRequest=function(a,b){2===a&&(a=L(b.body),a=Jc(a),b.headers["Content-Type"]="application/x-www-form-urlencoded",b.body=Fc("spc="+a))};Bl.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Ec(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(2*c.length);d=new Uint16Array(d);for(var e=0,f=c.length;e<f;e++)d[e]=c.charCodeAt(e);return Dl(a,d,b)};
407
407
  Bl.ezdrmInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Ec(a).split(";").pop();return Dl(a,c,b)};Bl.verimatrixInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Ec(a).split("skd://").pop();return Dl(a,c,b)};Bl.initDataTransform=Dl;Bl.defaultGetContentId=Cl;
408
- Bl.isFairPlaySupported=function(){var a;return G(function(b){if(1==b.g)return a={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},C(b,2),u(b,navigator.requestMediaKeySystemAccess("com.apple.fps",[a]),4);if(2!=b.g)return b.return(!0);wa(b);return b.return(!1)})};function El(){}
408
+ Bl.isFairPlaySupported=function(){var a;return G(function(b){if(1==b.g)return a={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},C(b,2),u(b,navigator.requestMediaKeySystemAccess("com.apple.fps",[a]),4);if(2!=b.g)return b.return(!0);xa(b);return b.return(!1)})};function El(){}
409
409
  function Fl(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&(a=360);var b={retryParameters:Ie(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:function(g,h,k){window.shakaMediaKeysPolyfill&&"skd"==h&&(h=k.serverCertificate,k=Cl(g),g=Dl(g,k,h));return g},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:rc()},c={retryParameters:Ie(),availabilityWindowOverride:NaN,disableAudio:!1,
410
410
  disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey",
411
411
  "urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},manifestPreprocessor:function(g){return Al([g],g)},sequenceMode:!1},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,
@@ -417,63 +417,63 @@ minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth
417
417
  function Hl(a,b,c){var d={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return yl(a,b,c||Fl(),d,"")}
418
418
  function Gl(a,b){var c=a.filter(function(g){return"variant"==g.type}),d=[],e=ud(b,c.map(function(g){return g.language}));e&&(d=c.filter(function(g){return nd(g.language)==e}));0==d.length&&(d=c.filter(function(g){return g.primary}));0==d.length&&(c.map(function(g){return g.language}),d=c);var f=d.filter(function(g){return g.height&&480>=g.height});f.length&&(f.sort(function(g,h){return h.height-g.height}),d=f.filter(function(g){return g.height==f[0].height}));b=[];d.length&&(c=Math.floor(d.length/
419
419
  2),d.sort(function(g,h){return g.bandwidth-h.bandwidth}),b.push(d[c]));a=t(a);for(d=a.next();!d.done;d=a.next())d=d.value,d.type!=ic&&"image"!=d.type||b.push(d);return b}K("shaka.util.PlayerConfiguration",El);El.mergeConfigObjects=Hl;El.createDefault=Fl;function Il(){this.g=null;this.h=[]}function Jl(a,b){if(null==a.g)a.g={timestamp:Date.now()/1E3,state:b,duration:0};else{var c=Date.now()/1E3;a.g.duration=c-a.g.timestamp;a.g.state!=b&&(a.h.push(a.g),a.g={timestamp:c,state:b,duration:0})}}function Kl(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}
420
- function Ll(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 Ml(){this.i=this.h=null;this.g=[]}function Nl(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 Ol(){this.u=this.A=this.G=this.D=this.s=this.j=this.F=this.m=this.i=this.M=this.P=this.H=this.J=this.L=this.l=this.o=NaN;this.g=new Il;this.h=new Ml};function V(a,b){Te.call(this);var c=this;this.l=Pl;this.Vc=this.g=null;this.da=!1;this.Yc=new lf;this.Yb=new lf;this.u=new lf;this.Ob=this.i=this.Zc=this.J=this.j=this.ka=this.L=this.df=this.V=this.Fa=this.M=this.Wc=this.H=this.yb=this.A=this.G=this.m=this.D=null;this.ec=!1;this.Pd=this.s=null;this.$d=1E9;this.h=Ql(this);this.fc={width:Infinity,height:Infinity};this.o=null;this.vb=new ze(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount);this.wb=this.h.preferredTextLanguage;
421
- this.dc=this.h.preferredTextRole;this.ac=this.h.preferForcedSubs;this.$b=[];this.hc=null;b&&b(this);this.D=Rl(this);this.D.ke(this.h.streaming.forceHTTPS);this.F=null;Sl&&(this.F=Sl());this.Yc.C(window,"online",function(){c.ee()});this.P={name:"detach"};this.W={name:"attach"};this.fa={name:"unload"};this.ae={name:"manifest-parser"};this.Zd={name:"manifest"};this.xb={name:"media-source"};this.Sd={name:"drm-engine"};this.ba={name:"load"};this.fe={name:"src-equals-drm-engine"};this.zb={name:"src-equals"};
422
- var d=new Map;d.set(this.W,function(e,f){return Oe(Tl(c,e,f))});d.set(this.P,function(e){e.mediaElement&&(c.Yb.ob(),e.mediaElement=null);c.F&&c.F.release();c.g=null;e=Promise.resolve();return Oe(e)});d.set(this.fa,function(e){return Oe(Ul(c,e))});d.set(this.xb,function(e){e=Vl(c,e);return Oe(e)});d.set(this.ae,function(e,f){e=Wl(c,e,f);return Oe(e)});d.set(this.Zd,function(e){return Xl(c,e)});d.set(this.Sd,function(e){e=Yl(c,e);return Oe(e)});d.set(this.ba,function(e,f){return Oe(Zl(c,e,f))});d.set(this.fe,
423
- function(e,f){e=$l(c,e,f);return Oe(e)});d.set(this.zb,function(e,f){return am(c,e,f)});this.Ga=new Gk(this.P,{Nf:function(e,f,g,h){var k=null;e==c.P&&(k=g==c.P?c.P:c.W);e==c.W&&(k=g==c.P||f.mediaElement!=h.mediaElement?c.P:g==c.W?c.W:g==c.xb||g==c.ba?c.xb:g==c.zb?c.fe:null);e==c.xb&&(k=g==c.ba&&f.mediaElement==h.mediaElement?c.ae:c.fa);e==c.ae&&(k=bm(c.ba,c.Zd,c.fa,g,f,h));e==c.Zd&&(k=bm(c.ba,c.Sd,c.fa,g,f,h));e==c.Sd&&(k=bm(c.ba,c.ba,c.fa,g,f,h));e==c.fe&&(k=g==c.zb&&f.mediaElement==h.mediaElement?
424
- c.zb:c.fa);if(e==c.ba||e==c.zb)k=c.fa;e==c.fa&&(k=h.mediaElement&&f.mediaElement==h.mediaElement?c.W:c.P);return k},zf:function(e,f,g){c.dispatchEvent(cm("onstatechange",(new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return G(function(f){return 1==f.g?u(f,Ul(c,e),2):f.return(e.mediaElement?c.W:c.P)})},gg:function(e){c.dispatchEvent(cm("onstateidle",(new Map).set("state",e.name)))}});this.bf=new P(function(){Kd(c.i.variants,c.h.restrictions,c.fc)&&dm(c)});a&&this.Zb(a,
425
- !0)}qa(V,Te);function em(a){null!=a.L&&(a.L.release(),a.L=null)}function fm(a,b){if(b.lcevc.enabled){var c=a.Pa();c&&c[0]&&c[0].videoMimeType==gm.ts&&(qc()||navigator.userAgent.match(/Edge\//))&&(b.streaming.forceTransmux||Xa("LCEVC Warning: For MPEG-2 TS decoding the config.streaming.forceTransmux must be enabled."));em(a);null==a.L&&(a.L=new Hi(a.g,a.df,b.lcevc),a.G&&(a.G.F=a.L))}else em(a)}function cm(a,b){return new S(a,b)}r=V.prototype;
426
- r.destroy=function(){var a=this,b;return G(function(c){switch(c.g){case 1:if(a.l==hm)return c.return();em(a);a.l=hm;b=Lk(a.Ga,function(){return{node:a.P,payload:Hk(),hb:!1}});return u(c,new Promise(function(d){b.Kb=function(){};b.cd=function(){d()};b.nb=function(){d()};b.onError=function(){d()};b.ed=function(){d()}}),2);case 2:return u(c,a.Ga.destroy(),3);case 3:a.Yc&&(a.Yc.release(),a.Yc=null);a.Yb&&(a.Yb.release(),a.Yb=null);a.u&&(a.u.release(),a.u=null);a.Pd=null;a.h=null;a.o=null;a.Vc=null;a.V=
420
+ function Ll(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 Ml(){this.i=this.h=null;this.g=[]}function Nl(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 Ol(){this.u=this.A=this.G=this.D=this.s=this.j=this.F=this.m=this.i=this.M=this.O=this.H=this.J=this.L=this.l=this.o=NaN;this.g=new Il;this.h=new Ml};function V(a,b){Te.call(this);var c=this;this.l=Pl;this.Vc=this.g=null;this.da=!1;this.Zc=new lf;this.Yb=new lf;this.u=new lf;this.Ob=this.i=this.$c=this.J=this.j=this.ka=this.L=this.df=this.V=this.Fa=this.M=this.Wc=this.H=this.yb=this.A=this.G=this.m=this.D=null;this.ec=!1;this.Pd=this.s=null;this.$d=1E9;this.h=Ql(this);this.fc={width:Infinity,height:Infinity};this.o=null;this.vb=new ze(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount);this.wb=this.h.preferredTextLanguage;
421
+ this.dc=this.h.preferredTextRole;this.ac=this.h.preferForcedSubs;this.$b=[];this.hc=null;b&&b(this);this.D=Rl(this);this.D.ke(this.h.streaming.forceHTTPS);this.F=null;Sl&&(this.F=Sl());this.Zc.C(window,"online",function(){c.ee()});this.O={name:"detach"};this.W={name:"attach"};this.fa={name:"unload"};this.ae={name:"manifest-parser"};this.Zd={name:"manifest"};this.xb={name:"media-source"};this.Sd={name:"drm-engine"};this.ba={name:"load"};this.fe={name:"src-equals-drm-engine"};this.zb={name:"src-equals"};
422
+ var d=new Map;d.set(this.W,function(e,f){return Oe(Tl(c,e,f))});d.set(this.O,function(e){e.mediaElement&&(c.Yb.ob(),e.mediaElement=null);c.F&&c.F.release();c.g=null;e=Promise.resolve();return Oe(e)});d.set(this.fa,function(e){return Oe(Ul(c,e))});d.set(this.xb,function(e){e=Vl(c,e);return Oe(e)});d.set(this.ae,function(e,f){e=Wl(c,e,f);return Oe(e)});d.set(this.Zd,function(e){return Xl(c,e)});d.set(this.Sd,function(e){e=Yl(c,e);return Oe(e)});d.set(this.ba,function(e,f){return Oe(Zl(c,e,f))});d.set(this.fe,
423
+ function(e,f){e=$l(c,e,f);return Oe(e)});d.set(this.zb,function(e,f){return am(c,e,f)});this.Ga=new Gk(this.O,{Nf:function(e,f,g,h){var k=null;e==c.O&&(k=g==c.O?c.O:c.W);e==c.W&&(k=g==c.O||f.mediaElement!=h.mediaElement?c.O:g==c.W?c.W:g==c.xb||g==c.ba?c.xb:g==c.zb?c.fe:null);e==c.xb&&(k=g==c.ba&&f.mediaElement==h.mediaElement?c.ae:c.fa);e==c.ae&&(k=bm(c.ba,c.Zd,c.fa,g,f,h));e==c.Zd&&(k=bm(c.ba,c.Sd,c.fa,g,f,h));e==c.Sd&&(k=bm(c.ba,c.ba,c.fa,g,f,h));e==c.fe&&(k=g==c.zb&&f.mediaElement==h.mediaElement?
424
+ c.zb:c.fa);if(e==c.ba||e==c.zb)k=c.fa;e==c.fa&&(k=h.mediaElement&&f.mediaElement==h.mediaElement?c.W:c.O);return k},zf:function(e,f,g){c.dispatchEvent(cm("onstatechange",(new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return G(function(f){return 1==f.g?u(f,Ul(c,e),2):f.return(e.mediaElement?c.W:c.O)})},gg:function(e){c.dispatchEvent(cm("onstateidle",(new Map).set("state",e.name)))}});this.bf=new P(function(){Kd(c.i.variants,c.h.restrictions,c.fc)&&dm(c)});a&&this.Zb(a,
425
+ !0)}qa(V,Te);function em(a){null!=a.L&&(a.L.release(),a.L=null)}function fm(a,b){if(b.lcevc.enabled){var c=a.Pa();c&&c[0]&&c[0].videoMimeType==gm.ts&&(qc()||navigator.userAgent.match(/Edge\//))&&(b.streaming.forceTransmux||Xa("LCEVC Warning: For MPEG-2 TS decoding the config.streaming.forceTransmux must be enabled."));em(a);null==a.L&&(a.L=new Hi(a.g,a.df,b.lcevc),a.G&&(a.G.F=a.L))}else em(a)}function cm(a,b){return new R(a,b)}r=V.prototype;
426
+ r.destroy=function(){var a=this,b;return G(function(c){switch(c.g){case 1:if(a.l==hm)return c.return();em(a);a.l=hm;b=Lk(a.Ga,function(){return{node:a.O,payload:Hk(),hb:!1}});return u(c,new Promise(function(d){b.Kb=function(){};b.dd=function(){d()};b.nb=function(){d()};b.onError=function(){d()};b.fd=function(){d()}}),2);case 2:return u(c,a.Ga.destroy(),3);case 3:a.Zc&&(a.Zc.release(),a.Zc=null);a.Yb&&(a.Yb.release(),a.Yb=null);a.u&&(a.u.release(),a.u=null);a.Pd=null;a.h=null;a.o=null;a.Vc=null;a.V=
427
427
  null;if(!a.D){c.B(4);break}return u(c,a.D.destroy(),5);case 5:a.D=null;case 4:a.s&&(a.s.release(),a.s=null),Te.prototype.release.call(a),A(c)}})};r.Zb=function(a,b){b=void 0===b?!0:b;if(this.l==hm)return Promise.reject(im());var c=Hk();c.mediaElement=a;nc()||(b=!1);var d=b?this.xb:this.W;a=Lk(this.Ga,function(){return{node:d,payload:c,hb:!1}});a.Kb=function(){};return jm(a)};r.mf=function(a){this.df=a};
428
- r.detach=function(){var a=this;if(this.l==hm)return Promise.reject(im());var b=Lk(this.Ga,function(){return{node:a.P,payload:Hk(),hb:!1}});b.Kb=function(){};return jm(b)};r.re=function(a){var b=this;a=void 0===a?!0:a;if(this.l==hm)return Promise.reject(im());this.ec=!1;nc()||(a=!1);em(this);var c=Hk(),d=Lk(this.Ga,function(e){var f=e.mediaElement&&a?b.xb:e.mediaElement?b.W:b.P;c.mediaElement=e.mediaElement;return{node:f,payload:c,hb:!1}});d.Kb=function(){};return jm(d)};r.Hg=function(a){this.hc=a};
429
- r.load=function(a,b,c){var d=this;this.hc=null;this.ec=!1;if(this.l==hm)return Promise.reject(im());this.dispatchEvent(cm("loading"));var e=Hk();e.uri=a;e.gd=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=km(this,e)?this.zb:this.ba,g=Lk(this.Ga,function(h){if(null==h.mediaElement)return null;e.mediaElement=h.mediaElement;return{node:f,payload:e,hb:!0}});this.o=new Ol;this.V=lm(this);g.Kb=function(){};return new Promise(function(h,k){g.ed=function(){return k(new O(2,7,7002))};g.cd=
428
+ r.detach=function(){var a=this;if(this.l==hm)return Promise.reject(im());var b=Lk(this.Ga,function(){return{node:a.O,payload:Hk(),hb:!1}});b.Kb=function(){};return jm(b)};r.re=function(a){var b=this;a=void 0===a?!0:a;if(this.l==hm)return Promise.reject(im());this.ec=!1;nc()||(a=!1);em(this);var c=Hk(),d=Lk(this.Ga,function(e){var f=e.mediaElement&&a?b.xb:e.mediaElement?b.W:b.O;c.mediaElement=e.mediaElement;return{node:f,payload:c,hb:!1}});d.Kb=function(){};return jm(d)};r.Hg=function(a){this.hc=a};
429
+ r.load=function(a,b,c){var d=this;this.hc=null;this.ec=!1;if(this.l==hm)return Promise.reject(im());this.dispatchEvent(cm("loading"));var e=Hk();e.uri=a;e.hd=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=km(this,e)?this.zb:this.ba,g=Lk(this.Ga,function(h){if(null==h.mediaElement)return null;e.mediaElement=h.mediaElement;return{node:f,payload:e,hb:!0}});this.o=new Ol;this.V=lm(this);g.Kb=function(){};return new Promise(function(h,k){g.fd=function(){return k(new O(2,7,7002))};g.dd=
430
430
  function(){h();d.dispatchEvent(cm("loaded"))};g.nb=function(){return k(im())};g.onError=function(l){return k(l)}})};function km(a,b){if(!nc())return!0;var c=b.mimeType,d=b.uri||"";c||(c=Tg(d),c=gm[c]);if(c){if(""==(b.mediaElement||pc()).canPlayType(c))return!1;if(!nc()||!(c in Sg||Tg(d)in Ug)||("application/x-mpegurl"===c||"application/vnd.apple.mpegurl"===c)&&a.h.streaming.preferNativeHls)return!0;if(vc())return a.h.streaming.useNativeHlsOnSafari}return!1}
431
431
  function Tl(a,b,c){null==b.mediaElement&&(b.mediaElement=c.mediaElement,a.Yb.C(b.mediaElement,"error",function(){var d=mm(a);d&&nm(a,d)}));a.g=b.mediaElement;return Promise.resolve()}
432
- function Ul(a,b){var c,d,e,f,g,h,k,l,m;return G(function(p){switch(p.g){case 1:return a.l!=hm&&(a.l=Pl),c=a.$b.map(function(n){return n()}),a.$b=[],u(p,Promise.all(c),2);case 2:a.dispatchEvent(cm("unloading"));b.mimeType=null;b.startTime=null;b.uri=null;a.Fa&&(a.Fa.release(),a.Fa=null);b.mediaElement&&a.u.ob();a.bf.stop();a.yb&&(a.yb.release(),a.yb=null);a.Wc&&(a.Wc.stop(),a.Wc=null);if(!a.J){p.B(3);break}return u(p,a.J.stop(),4);case 4:a.J=null,a.Zc=null;case 3:if(!a.s){p.B(5);break}return u(p,a.s.stop(),
433
- 5);case 5:if(!a.j){p.B(7);break}return u(p,a.j.destroy(),8);case 8:a.j=null;case 7:a.H&&(a.H.release(),a.H=null);a.A&&(a.A.release(),a.A=null);if(!a.G){p.B(9);break}return u(p,a.G.destroy(),10);case 10:a.G=null;case 9:if(a.F)a.F.onAssetUnload();if(!b.mediaElement||!b.mediaElement.src){p.B(11);break}return u(p,new Promise(function(n){return(new P(n)).O(.1)}),12);case 12:for(b.mediaElement.removeAttribute("src"),b.mediaElement.load();b.mediaElement.lastChild;)b.mediaElement.removeChild(b.mediaElement.firstChild);
432
+ function Ul(a,b){var c,d,e,f,g,h,k,l,m;return G(function(p){switch(p.g){case 1:return a.l!=hm&&(a.l=Pl),c=a.$b.map(function(n){return n()}),a.$b=[],u(p,Promise.all(c),2);case 2:a.dispatchEvent(cm("unloading"));b.mimeType=null;b.startTime=null;b.uri=null;a.Fa&&(a.Fa.release(),a.Fa=null);b.mediaElement&&a.u.ob();a.bf.stop();a.yb&&(a.yb.release(),a.yb=null);a.Wc&&(a.Wc.stop(),a.Wc=null);if(!a.J){p.B(3);break}return u(p,a.J.stop(),4);case 4:a.J=null,a.$c=null;case 3:if(!a.s){p.B(5);break}return u(p,a.s.stop(),
433
+ 5);case 5:if(!a.j){p.B(7);break}return u(p,a.j.destroy(),8);case 8:a.j=null;case 7:a.H&&(a.H.release(),a.H=null);a.A&&(a.A.release(),a.A=null);if(!a.G){p.B(9);break}return u(p,a.G.destroy(),10);case 10:a.G=null;case 9:if(a.F)a.F.onAssetUnload();if(!b.mediaElement||!b.mediaElement.src){p.B(11);break}return u(p,new Promise(function(n){return(new P(n)).N(.1)}),12);case 12:for(b.mediaElement.removeAttribute("src"),b.mediaElement.load();b.mediaElement.lastChild;)b.mediaElement.removeChild(b.mediaElement.firstChild);
434
434
  case 11:if(!a.m){p.B(13);break}return u(p,a.m.destroy(),14);case 14:a.m=null;case 13:a.Ob=null;a.M=null;if(a.i){d=t(a.i.variants);for(e=d.next();!e.done;e=d.next())for(f=e.value,g=t([f.audio,f.video]),h=g.next();!h.done;h=g.next())(k=h.value)&&k.segmentIndex&&k.segmentIndex.release();l=t(a.i.textStreams);for(h=l.next();!h.done;h=l.next())m=h.value,m.segmentIndex&&m.segmentIndex.release()}a.i=null;a.o=new Ol;a.Wd=null;om(a);A(p)}})}
435
435
  function Vl(a,b){var c,d,e,f,g;return G(function(h){if(1==h.g)return c=a.h.textDisplayFactory,d=c(),a.Wd=c,e=pm(b.mediaElement,d,function(k,l,m){qm(a,k,l,m)},a.L),e.configure(a.h.mediaSource),f=a.h.manifest,g=f.segmentRelativeVttTiming,e.H=g,u(h,e.J,2);a.G=e;A(h)})}
436
- function Wl(a,b,c){var d,e,f,g;return G(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.D,a.Ob=d,f=a,u(h,Rg(d,e,a.h.manifest.retryParameters,b.mimeType),2);f.Zc=h.h;a.J=a.Zc();g=Ue(a.h.manifest);c.mediaElement&&"AUDIO"===c.mediaElement.nodeName&&(g.disableVideo=!0);a.J.configure(g);A(h)})}
436
+ function Wl(a,b,c){var d,e,f,g;return G(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.D,a.Ob=d,f=a,u(h,Rg(d,e,a.h.manifest.retryParameters,b.mimeType),2);f.$c=h.h;a.J=a.$c();g=Ue(a.h.manifest);c.mediaElement&&"AUDIO"===c.mediaElement.nodeName&&(g.disableVideo=!0);a.J.configure(g);A(h)})}
437
437
  function Xl(a,b){var c=b.uri;b=a.D;a.Fa=new Wj(function(){return a.vc()});a.Fa.addEventListener("regionadd",function(f){f=f.region;rm(a,"timelineregionadded",f);if(a.F)a.F.onDashTimedMetadata(f)});a.ka=null;a.h.streaming.observeQualityChanges&&(a.ka=new Sj(function(){return a.Ma()}),a.ka.addEventListener("qualitychange",function(f){var g=f.quality;f=f.position;g=(new Map).set("mediaQuality",{bandwidth:g.bandwidth,audioSamplingRate:g.audioSamplingRate,codecs:g.codecs,contentType:g.contentType,frameRate:g.frameRate,
438
- height:g.height,mimeType:g.mimeType,channelsCount:g.channelsCount,pixelAspectRatio:g.pixelAspectRatio,width:g.width}).set("position",f);a.dispatchEvent(cm("mediaqualitychanged",g))}));var d={networkingEngine:b,modifyManifestRequest:function(f,g){var h=a.V;try{h.g.enabled&&(h.o=g.format,ol(h,f,{ot:rl,su:!h.i}))}catch(k){Ya("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",k)}},modifySegmentRequest:function(f,g){el(a.V,f,g)},filter:function(f){return sm(a,f)},makeTextStreamsForClosedCaptions:function(f){return tm(a,
439
- f)},onTimelineRegionAdded:function(f){var g=a.Fa;a:{var h=t(g.g);for(var k=h.next();!k.done;k=h.next())if(k=k.value,k.schemeIdUri==f.schemeIdUri&&k.id==f.id&&k.startTime==f.startTime&&k.endTime==f.endTime){h=k;break a}h=null}null==h&&(g.g.add(f),f=new S("regionadd",new Map([["region",f]])),g.dispatchEvent(f))},onEvent:function(f){return a.dispatchEvent(f)},onError:function(f){return nm(a,f)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},
438
+ height:g.height,mimeType:g.mimeType,channelsCount:g.channelsCount,pixelAspectRatio:g.pixelAspectRatio,width:g.width}).set("position",f);a.dispatchEvent(cm("mediaqualitychanged",g))}));var d={networkingEngine:b,modifyManifestRequest:function(f,g){var h=a.V;try{h.g.enabled&&(h.o=g.format,ol(h,f,{ot:rl,su:!h.i}))}catch(k){Za("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",k)}},modifySegmentRequest:function(f,g){el(a.V,f,g)},filter:function(f){return sm(a,f)},makeTextStreamsForClosedCaptions:function(f){return tm(a,
439
+ f)},onTimelineRegionAdded:function(f){var g=a.Fa;a:{var h=t(g.g);for(var k=h.next();!k.done;k=h.next())if(k=k.value,k.schemeIdUri==f.schemeIdUri&&k.id==f.id&&k.startTime==f.startTime&&k.endTime==f.endTime){h=k;break a}h=null}null==h&&(g.g.add(f),f=new R("regionadd",new Map([["region",f]])),g.dispatchEvent(f))},onEvent:function(f){return a.dispatchEvent(f)},onError:function(f){return nm(a,f)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},
440
440
  enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",!0)},updateDuration:function(){a.j&&a.j.updateDuration()},newDrmInfo:function(f){var g=a.m?a.m.g:null;g&&a.m.u&&um(a,g.keySystem,f)}},e=Date.now()/1E3;return new Ke(function(){var f,g,h,k;return G(function(l){if(1==l.g)return f=a,u(l,a.J.start(c,d),2);f.i=l.h;g=cm("manifestparsed");a.dispatchEvent(g);if(0==a.i.variants.length)throw new O(2,4,4036);vm(a.i);h=Date.now()/1E3;k=h-e;a.o.F=k;A(l)})}(),function(){return a.J.stop()})}
441
- function Yl(a,b){var c,d;return G(function(e){return 1==e.g?(c=Date.now()/1E3,d=!0,a.m=wm(a,{lb:a.D,onError:function(f){nm(a,f)},dd:function(f){xm(a,f)},onExpirationUpdated:function(f,g){ym(a,f,g)},onEvent:function(f){a.dispatchEvent(f);"drmsessionupdate"==f.type&&d&&(d=!1,a.o.j=Date.now()/1E3-c,a.L&&(f=a.L,f.g&&f.h.classList.add("shaka-hidden")))}}),a.m.configure(a.h.drm),u(e,lg(a.m,a.i.variants,a.i.offlineSessionIds),2)):3!=e.g?u(e,a.m.Zb(b.mediaElement),3):u(e,sm(a,a.i),0)})}
441
+ function Yl(a,b){var c,d;return G(function(e){return 1==e.g?(c=Date.now()/1E3,d=!0,a.m=wm(a,{lb:a.D,onError:function(f){nm(a,f)},ed:function(f){xm(a,f)},onExpirationUpdated:function(f,g){ym(a,f,g)},onEvent:function(f){a.dispatchEvent(f);"drmsessionupdate"==f.type&&d&&(d=!1,a.o.j=Date.now()/1E3-c,a.L&&(f=a.L,f.g&&f.h.classList.add("shaka-hidden")))}}),a.m.configure(a.h.drm),u(e,lg(a.m,a.i.variants,a.i.offlineSessionIds),2)):3!=e.g?u(e,a.m.Zb(b.mediaElement),3):u(e,sm(a,a.i),0)})}
442
442
  function Zl(a,b,c){var d,e,f,g,h,k,l,m,p,n,q,v,y,w,x,D,z;return G(function(B){switch(B.g){case 1:b.startTime=c.startTime;null!=a.hc&&(b.startTime=a.hc,a.hc=null);d=b.mediaElement;e=b.uri;a.Ob=e;a.H=new Oj({Uc:function(){return d.playbackRate},Qc:function(){return d.defaultPlaybackRate},me:function(E){d.playbackRate=E},Ne:function(E){d.currentTime+=E}});f=function(){return zm(a)};g=function(){return Am(a)};a.u.C(d,"playing",f);a.u.C(d,"pause",f);a.u.C(d,"ended",f);a.u.C(d,"ratechange",g);fm(a,a.h);
443
443
  h=a.h.abrFactory;a.s&&a.Pd==h||(a.Pd=h,a.s=h(),"function"!=typeof a.s.setMediaElement&&(qe("AbrManager","Please use an AbrManager with setMediaElement function."),a.s.setMediaElement=function(){}),a.s.configure(a.h.abr));a.vb=new ze(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount);a.wb=a.h.preferredTextLanguage;a.dc=a.h.preferredTextRole;a.ac=a.h.preferForcedSubs;Bm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.s.init(function(E,F,H){a.j&&E!=a.j.l&&
444
444
  Cm(a,E,!0,void 0===F?!1:F,void 0===H?0:H)});a.s.setMediaElement(d);wd(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredAudioChannelCount,a.h.preferredDecodingAttributes);a.j=Dm(a);a.j.configure(a.h.streaming);a.l=Em;d.textTracks&&a.u.C(d.textTracks,"addtrack",function(E){if(E.track)switch(E=E.track,E.kind){case "chapters":Fm(a,E)}});a.dispatchEvent(cm("streaming"));k=null;(l=a.j.l)||(k=dm(a));m=[];p=l||k;n=t([p.video,p.audio]);for(q=n.next();!q.done;q=n.next())(v=q.value)&&!v.segmentIndex&&
445
- m.push(v.createSegmentIndex());if(!(0<m.length)){B.B(2);break}return u(B,Promise.all(m),2);case 2:Bm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.A=Gm(a,b.startTime);a.yb=Hm(a,b.gd);y=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);Im(a,y);if(l){B.B(4);break}Cm(a,k,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){B.B(4);break}w=a.A.Jc();return u(B,Jm(k,w),6);case 6:x=B.h,a.A.Cd(x);case 4:return a.A.Bd(),D=a.Gb().find(function(E){return E.active}),D||((z=ie(a.i.textStreams,
446
- a.wb,a.dc,a.ac)[0]||null)&&Nl(a.o.h,z,!0),k&&(z?(k.audio&&Km(a,k.audio,z)&&(a.da=!0),a.da&&a.G.m.setTextVisibility(!0),Lm(a)):a.da=!1),z&&(a.h.streaming.alwaysStreamText||a.Jd())&&pk(a.j,z)),u(B,a.j.start(),7);case 7:a.h.abr.enabled&&(a.s.enable(),Mm(a)),Nd(a.j?a.j.l:null,a.i),Nm(a.i),Om(a),Pm(a),a.i.variants.some(function(E){return E.primary}),a.ec=!0,a.u.ca(d,"loadedmetadata",function(){a.o.m=Date.now()/1E3-c.gd}),A(B)}})}
447
- function $l(a,b,c){var d,e,f,g,h,k,l;return G(function(m){return 1==m.g?(d=jc,e=Date.now()/1E3,f=!0,a.m=wm(a,{lb:a.D,onError:function(p){nm(a,p)},dd:function(p){xm(a,p)},onExpirationUpdated:function(p,n){ym(a,p,n)},onEvent:function(p){a.dispatchEvent(p);"drmsessionupdate"==p.type&&f&&(f=!1,a.o.j=Date.now()/1E3-e)}}),a.m.configure(a.h.drm),g=c.uri||"",h=Tg(g),k=gm[h],"application/x-mpegurl"==k&&vc()&&(k="application/vnd.apple.mpegurl"),k||(k="video/mp4"),l={id:0,language:"und",disabledUntilTime:0,
445
+ m.push(v.createSegmentIndex());if(!(0<m.length)){B.B(2);break}return u(B,Promise.all(m),2);case 2:Bm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.A=Gm(a,b.startTime);a.yb=Hm(a,b.hd);y=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);Im(a,y);if(l){B.B(4);break}Cm(a,k,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){B.B(4);break}w=a.A.Jc();return u(B,Jm(k,w),6);case 6:x=B.h,a.A.Dd(x);case 4:return a.A.Cd(),D=a.Gb().find(function(E){return E.active}),D||((z=ie(a.i.textStreams,
446
+ a.wb,a.dc,a.ac)[0]||null)&&Nl(a.o.h,z,!0),k&&(z?(k.audio&&Km(a,k.audio,z)&&(a.da=!0),a.da&&a.G.m.setTextVisibility(!0),Lm(a)):a.da=!1),z&&(a.h.streaming.alwaysStreamText||a.Jd())&&pk(a.j,z)),u(B,a.j.start(),7);case 7:a.h.abr.enabled&&(a.s.enable(),Mm(a)),Nd(a.j?a.j.l:null,a.i),Nm(a.i),Om(a),Pm(a),a.i.variants.some(function(E){return E.primary}),a.ec=!0,a.u.ca(d,"loadedmetadata",function(){a.o.m=Date.now()/1E3-c.hd}),A(B)}})}
447
+ function $l(a,b,c){var d,e,f,g,h,k,l;return G(function(m){return 1==m.g?(d=jc,e=Date.now()/1E3,f=!0,a.m=wm(a,{lb:a.D,onError:function(p){nm(a,p)},ed:function(p){xm(a,p)},onExpirationUpdated:function(p,n){ym(a,p,n)},onEvent:function(p){a.dispatchEvent(p);"drmsessionupdate"==p.type&&f&&(f=!1,a.o.j=Date.now()/1E3-e)}}),a.m.configure(a.h.drm),g=c.uri||"",h=Tg(g),k=gm[h],"application/x-mpegurl"==k&&vc()&&(k="application/vnd.apple.mpegurl"),k||(k="video/mp4"),l={id:0,language:"und",disabledUntilTime:0,
448
448
  primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]:k,codecs:c.mimeType?bd(c.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.va,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,
449
449
  decodingInfos:[]},a.m.W=!0,u(m,lg(a.m,[l],[]),2)):u(m,a.m.Zb(b.mediaElement),0)})}
450
- function am(a,b,c){function d(){return zm(a)}b.uri=c.uri;b.startTime=c.startTime;a.Ob=b.uri;var e=b.mediaElement;a.A=new Cj(e);var f=!1;a.$b.push(function(){f=!0});null!=b.startTime&&a.A.Cd(b.startTime);a.H=new Oj({Uc:function(){return e.playbackRate},Qc:function(){return e.defaultPlaybackRate},me:function(k){e.playbackRate=k},Ne:function(k){e.currentTime+=k}});Im(a,a.h.streaming.rebufferingGoal);a.u.C(e,"playing",d);a.u.C(e,"pause",d);a.u.C(e,"ended",d);a.u.C(e,"ratechange",function(){return Am(a)});
451
- "none"!=e.preload&&a.u.ca(e,"loadedmetadata",function(){a.o.m=Date.now()/1E3-c.gd});e.audioTracks&&(a.u.C(e.audioTracks,"addtrack",function(){return Om(a)}),a.u.C(e.audioTracks,"removetrack",function(){return Om(a)}),a.u.C(e.audioTracks,"change",function(){return Om(a)}));e.textTracks&&(a.u.C(e.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case "metadata":Qm(a,k);break;case "chapters":Fm(a,k);break;default:Om(a)}}),a.u.C(e.textTracks,"removetrack",function(){return Om(a)}),
452
- a.u.C(e.textTracks,"change",function(){return Om(a)}));var g=Tg(b.uri);e.src=pl(a.V,b.uri,gm[g]);(tc()||sc("Web0S"))&&e.load();a.l=Rm;a.dispatchEvent(cm("streaming"));var h=new kc;tj(e,HTMLMediaElement.HAVE_METADATA,a.u,function(){a.A.Bd();h.resolve()});tj(e,HTMLMediaElement.HAVE_CURRENT_DATA,a.u,function(){var k;return G(function(l){if(1==l.g)return Sm(a),k=Tm(a),k.find(function(m){return"disabled"!=m.mode})?(0<k.length&&(a.da=!0),l.B(2)):u(l,new Promise(function(m){a.u.ca(e.textTracks,"change",
453
- m);(new P(m)).O(1)}),2);if(f)return l.return();Um(a);A(l)})});e.error?h.reject(mm(a)):"none"==e.preload&&(Xa('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),h.resolve());a.u.ca(e,"error",function(){h.reject(mm(a))});return(new Ke(h,function(){h.reject(new O(2,7,7001));return Promise.resolve()})).Z(function(){a.ec=
450
+ function am(a,b,c){function d(){return zm(a)}b.uri=c.uri;b.startTime=c.startTime;a.Ob=b.uri;var e=b.mediaElement;a.A=new Cj(e);var f=!1;a.$b.push(function(){f=!0});null!=b.startTime&&a.A.Dd(b.startTime);a.H=new Oj({Uc:function(){return e.playbackRate},Qc:function(){return e.defaultPlaybackRate},me:function(k){e.playbackRate=k},Ne:function(k){e.currentTime+=k}});Im(a,a.h.streaming.rebufferingGoal);a.u.C(e,"playing",d);a.u.C(e,"pause",d);a.u.C(e,"ended",d);a.u.C(e,"ratechange",function(){return Am(a)});
451
+ "none"!=e.preload&&a.u.ca(e,"loadedmetadata",function(){a.o.m=Date.now()/1E3-c.hd});e.audioTracks&&(a.u.C(e.audioTracks,"addtrack",function(){return Om(a)}),a.u.C(e.audioTracks,"removetrack",function(){return Om(a)}),a.u.C(e.audioTracks,"change",function(){return Om(a)}));e.textTracks&&(a.u.C(e.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case "metadata":Qm(a,k);break;case "chapters":Fm(a,k);break;default:Om(a)}}),a.u.C(e.textTracks,"removetrack",function(){return Om(a)}),
452
+ a.u.C(e.textTracks,"change",function(){return Om(a)}));var g=Tg(b.uri);e.src=pl(a.V,b.uri,gm[g]);(tc()||sc("Web0S"))&&e.load();a.l=Rm;a.dispatchEvent(cm("streaming"));var h=new kc;tj(e,HTMLMediaElement.HAVE_METADATA,a.u,function(){a.A.Cd();h.resolve()});tj(e,HTMLMediaElement.HAVE_CURRENT_DATA,a.u,function(){var k;return G(function(l){if(1==l.g)return Sm(a),k=Tm(a),k.find(function(m){return"disabled"!=m.mode})?(0<k.length&&(a.da=!0),l.B(2)):u(l,new Promise(function(m){a.u.ca(e.textTracks,"change",
453
+ m);(new P(m)).N(1)}),2);if(f)return l.return();Um(a);A(l)})});e.error?h.reject(mm(a)):"none"==e.preload&&(Xa('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),h.resolve());a.u.ca(e,"error",function(){h.reject(mm(a))});return(new Ke(h,function(){h.reject(new O(2,7,7001));return Promise.resolve()})).Z(function(){a.ec=
454
454
  !0})}function Sm(a){var b=a.h.preferredAudioLanguage;""!=b&&a.Se(b,a.h.preferredVariantRole)}function Um(a){var b=a.h.preferredTextLanguage;""!=b&&a.Te(b,a.h.preferredTextRole,a.h.preferForcedSubs)}
455
- function Qm(a,b){if("metadata"==b.kind){b.mode="hidden";a.u.C(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,Vm(a,e.startTime,e.endTime,e.type,e.value),a.F)a.F.onCueMetadataChange(e.value)});var c=(new P(function(){var d=Wm(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Nb().O(.5);a.$b.push(function(){c.stop()})}}
455
+ function Qm(a,b){if("metadata"==b.kind){b.mode="hidden";a.u.C(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,Vm(a,e.startTime,e.endTime,e.type,e.value),a.F)a.F.onCueMetadataChange(e.value)});var c=(new P(function(){var d=Wm(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).Nb().N(.5);a.$b.push(function(){c.stop()})}}
456
456
  function qm(a,b,c,d){b=t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,e.data&&e.cueTime&&e.frames){var f=e.cueTime+c,g=d;g&&f>g&&(g=f);for(var h=t(e.frames),k=h.next();!k.done;k=h.next())Vm(a,f,g,"org.id3",k.value);if(a.F)a.F.onHlsTimedMetadata(e,f)}}function Vm(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(cm("metadata",b))}
457
- function Fm(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new P(function(){b.mode="hidden"})).Nb().O(.5);a.$b.push(function(){c.stop()})}}function vm(a){function b(c){return c.video&&c.audio||c.video&&c.video.codecs.includes(",")}a.variants.some(b)&&(a.variants=a.variants.filter(b))}function wm(a,b){return new eg(b,a.h.drm.updateExpirationTime)}
457
+ function Fm(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new P(function(){b.mode="hidden"})).Nb().N(.5);a.$b.push(function(){c.stop()})}}function vm(a){function b(c){return c.video&&c.audio||c.video&&c.video.codecs.includes(",")}a.variants.some(b)&&(a.variants=a.variants.filter(b))}function wm(a,b){return new eg(b,a.h.drm.updateExpirationTime)}
458
458
  function Rl(a){return new Ye(function(b,c){a.s&&a.s.segmentDownloaded(b,c)},function(b,c,d){b=(new Map).set("headers",b).set("request",c).set("requestType",d);a.dispatchEvent(cm("downloadheadersreceived",b))},function(b,c,d,e){b=(new Map).set("request",b).set("error",c).set("httpResponseCode",d).set("aborted",e);a.dispatchEvent(cm("downloadfailed",b))})}
459
459
  function Gm(a,b){return new Dj(a.g,a.i,a.h.streaming,b,function(){a.yb&&Rj(a.yb,!0);a.j&&a.j.wc();a.M&&Xm(a)},function(c){return a.dispatchEvent(c)})}
460
460
  function Hm(a,b){b=new Xj(a.Fa,a.T()||0<b);b.addEventListener("enter",function(d){rm(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){rm(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(rm(a,"timelineregionenter",e),rm(a,"timelineregionexit",e))});var c=new Qj(a.g);c.g.add(b);a.ka&&c.g.add(a.ka);return c}function Im(a,b){a.M=new De;a.M.g=Fe;Ge(a.M,b,Math.min(.5,b/2));om(a);a.Wc=(new P(function(){Xm(a)})).Ca(.25)}
461
461
  function Xm(a){switch(a.l){case Rm:if(a.g.ended)var b=!0;else{var c=ui(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case Em:a:if(a.g.ended||Si(a.G))b=!0;else{if(a.i.presentationTimeline.T()){c=a.i.presentationTimeline.gb();var d=ui(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=wi(a.g.buffered,a.g.currentTime);c=a.M;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?Ee:Fe;c.g=d;b!=d&&om(a)}function pm(a,b,c,d){return new Mi(a,b,c,d)}
462
462
  function lm(a){return new dl({getBandwidthEstimate:function(){return a.s?a.s.getBandwidthEstimate():NaN},Ma:function(){return a.Ma()},getCurrentTime:function(){return a.g?a.g.currentTime:0},Pa:function(){return a.Pa()},Sc:function(){return a.Sc()},T:function(){return a.T()}},a.h.cmcd)}
463
- function Dm(a){return new dk(a.i,{Tc:function(){return a.A?a.A.Jc():0},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate()},modifySegmentRequest:function(b,c){el(a.V,b,c)},N:a.G,lb:a.D,onError:function(b){return nm(a,b)},onEvent:function(b){return a.dispatchEvent(b)},ig:function(){a.J&&a.J.update&&a.J.update()},Yd:function(b,c,d){a.A&&a.A.Oe();Xm(a);b=(new Map).set("start",b).set("end",c).set("contentType",d);a.dispatchEvent(cm("segmentappended",b))},hg:function(b,c){(c=c.Qd)&&a.ka&&
463
+ function Dm(a){return new dk(a.i,{Tc:function(){return a.A?a.A.Jc():0},getBandwidthEstimate:function(){return a.s.getBandwidthEstimate()},modifySegmentRequest:function(b,c){el(a.V,b,c)},R:a.G,lb:a.D,onError:function(b){return nm(a,b)},onEvent:function(b){return a.dispatchEvent(b)},ig:function(){a.J&&a.J.update&&a.J.update()},Yd:function(b,c,d){a.A&&a.A.Oe();Xm(a);b=(new Map).set("start",b).set("end",c).set("contentType",d);a.dispatchEvent(cm("segmentappended",b))},hg:function(b,c){(c=c.Qd)&&a.ka&&
464
464
  Uj(a.ka,c,b)},xe:function(b,c){var d=a.m;if(d.h.parseInbandPsshEnabled&&!d.J&&["audio","video"].includes(b)){c=new If(L(c));var e=0,f=t(c.data);for(b=f.next();!b.done;b=f.next())e+=b.value.length;if(0==e)d=Promise.resolve();else{e=new Uint8Array(e);f=0;c=t(c.data);for(b=c.next();!b.done;b=c.next())b=b.value,e.set(b,f),f+=b.length;ug(d,"cenc",e);d=d.o}}else d=Promise.resolve();return d},jg:function(b,c,d){qm(a,b,c,d)}})}
465
465
  r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=zl(a,b));a.streaming&&"forceTransmuxTS"in a.streaming&&(qe("streaming.forceTransmuxTS configuration","Please Use streaming.forceTransmux instead."),a.streaming.forceTransmux=a.streaming.forceTransmuxTS,delete a.streaming.forceTransmuxTS);a.streaming&&a.streaming.lowLatencyMode&&(void 0==a.streaming.inaccurateManifestTolerance&&(a.streaming.inaccurateManifestTolerance=0),void 0==a.streaming.rebufferingGoal&&(a.streaming.rebufferingGoal=
466
466
  .01));var c=Hl(this.h,a,Ql(this));Ym(this);return c};
467
467
  function Ym(a){if(a.J){var b=Ue(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.J.configure(b)}a.m&&a.m.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{Zm(a,a.i)}catch(f){nm(a,f)}a.s&&Pm(a);b=a.j.l;!b||b.allowedByApplication&&b.allowedByKeySystem||$m(a)}a.D&&a.D.ke(a.h.streaming.forceHTTPS);if(a.G&&(a.G.configure(a.h.mediaSource),a.G.H=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.Wd!=b)){var c=b(),d=a.G,e=d.m;d.m=c;e&&(c.setTextVisibility(e.isTextVisible()),
468
468
  e.destroy());d.g&&(d.g.j=c);a.Wd=b;a.j&&(b=a.j,(c=b.j.get(ic))&&nk(b,c.stream,!0,0,!0))}a.s&&(a.s.configure(a.h.abr),a.h.abr.enabled?a.s.enable():a.s.disable(),Mm(a));a.M&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),Ge(a.M,b,Math.min(.5,b/2)));a.i&&Bm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd)}r.getConfiguration=function(){var a=Ql(this);Hl(a,this.h,Ql(this));return a};
469
- r.Cf=function(){if(this.g){var a=this.g.buffered.length;a=a?this.g.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.g.currentTime+b,this.vc().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};r.tg=function(){for(var a in this.h)delete this.h[a];Hl(this.h,Ql(this),Ql(this));Ym(this)};r.If=function(){return this.l};r.Mf=function(){return this.g};r.kc=function(){return this.D};r.Fd=function(){return this.Ob};
469
+ r.Cf=function(){if(this.g){var a=this.g.buffered.length;a=a?this.g.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.g.currentTime+b,this.vc().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};r.tg=function(){for(var a in this.h)delete this.h[a];Hl(this.h,Ql(this),Ql(this));Ym(this)};r.If=function(){return this.l};r.Mf=function(){return this.g};r.kc=function(){return this.D};r.Gd=function(){return this.Ob};
470
470
  r.Ge=function(){return this.F?this.F:null};r.T=function(){return this.i?this.i.presentationTimeline.T():this.g&&this.g.src?Infinity==this.g.duration:!1};r.jb=function(){return this.i?this.i.presentationTimeline.jb():!1};r.$f=function(){if(this.i){var a=this.i.variants;return a.length?!a[0].video:!1}return this.g&&this.g.src?this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight:!1};
471
471
  r.vc=function(){if(!this.ec)return{start:0,end:0};if(this.i){var a=this.i.presentationTimeline;return{start:a.Eb(),end:a.Na()}}return this.g&&this.g.src&&(a=this.g.seekable,a.length)?{start:a.start(0),end:a.end(a.length-1)}:{start:0,end:0}};r.Yf=function(){this.T()&&(this.g.currentTime=this.vc().end)};r.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};r.drmInfo=function(){return this.m?this.m.g:null};r.jc=function(){return this.m?this.m.jc():Infinity};
472
472
  r.Rc=function(){return this.m?this.m.Rc():{}};r.Hd=function(){return this.M?this.M.g==Fe:!1};r.Sc=function(){return this.g?this.H?this.H.i:1:0};r.Cg=function(a){0==a?Xa("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.H.set(a),this.l==Em&&(this.s.playbackRateChanged(a),mk(this.j,1<Math.abs(a))))};r.qf=function(){var a=this.H.Qc();this.l==Rm&&this.H.set(a);this.l==Em&&(this.H.set(a),this.s.playbackRateChanged(a),mk(this.j,!1))};
473
473
  r.Pa=function(){if(this.i){for(var a=this.j?this.j.l:null,b=[],c=0,d=t(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,ge(e)){var f=Zd(e);f.active=e==a;f.active||1==c||null==a||e.video!=a.video||e.audio!=a.audio||(f.active=!0);f.active&&c++;b.push(f)}return b}return this.g&&this.g.audioTracks?Array.from(this.g.audioTracks).map(function(g){return fe(g)}):[]};
474
474
  r.Gb=function(){if(this.i){for(var a=this.j?this.j.o:null,b=[],c=t(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=$d(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?Tm(this).map(function(f){return de(f)}):[]};r.Gf=function(){return this.i?this.i.imageStreams.map(function(a){return ae(a)}):[]};
475
475
  r.Uf=function(a,b){var c=this,d,e,f,g,h,k,l,m,p,n,q,v,y,w,x,D,z,B,E,F;return G(function(H){if(1==H.g)return c.i?(d=c.i.imageStreams.find(function(I){return I.id==a}))?d.segmentIndex?H.B(3):u(H,d.createSegmentIndex(),3):H.return(null):H.B(2);if(2!=H.g){e=d.segmentIndex.find(b);if(null==e)return H.return(null);f=d.segmentIndex.get(e);g=f.tilesLayout||d.tilesLayout;h=/(\d+)x(\d+)/.exec(g);if(!h)return H.return(null);k=d.width||0;l=d.height||0;m=parseInt(h[1],10);p=parseInt(h[2],10);n=k/m;q=l/p;v=m*p;
476
- y=f.l-f.startTime;w=f.s||y/v;x=f.startTime;z=D=0;1<v&&(B=Math.floor((b-f.startTime)/w),x=f.startTime+B*w,D=B%m*n,z=Math.floor(B/m)*q);E=!1;if(F=f.o)E=!0,q=F.height,D=F.positionX,z=F.positionY,n=F.width;return H.return({imageHeight:l,imageWidth:k,height:q,positionX:D,positionY:z,startTime:x,duration:w,uris:f.ya(),width:n,sprite:E})}return H.return(null)})};
476
+ y=f.j-f.startTime;w=f.s||y/v;x=f.startTime;z=D=0;1<v&&(B=Math.floor((b-f.startTime)/w),x=f.startTime+B*w,D=B%m*n,z=Math.floor(B/m)*q);E=!1;if(F=f.o)E=!0,q=F.height,D=F.positionX,z=F.positionY,n=F.width;return H.return({imageHeight:l,imageWidth:k,height:q,positionX:D,positionY:z,startTime:x,duration:w,uris:f.ya(),width:n,sprite:E})}return H.return(null)})};
477
477
  r.Ue=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.o&&(Nl(this.o.h,b,!1),pk(this.j,b),an(this),this.wb=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=Tm(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,be(c)==a.id?c.mode=this.da?"showing":"hidden":c.mode="disabled";an(this)}};
478
478
  r.ie=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.i&&this.j){this.h.abr.enabled&&Xa("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var d=this.i.variants.find(function(e){return e.id==a.id});d&&ge(d)&&(Cm(this,d,!1,b,c),this.vb=new ye(d),Pm(this))}else if(this.g&&this.g.audioTracks)for(b=Array.from(this.g.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,
479
479
  be(c)==a.id){bn(this,c);break}};r.Bf=function(){return cn(this.Pa())};r.Sf=function(){return cn(this.Gb())};r.Af=function(){return Array.from(dn(this.Pa()))};r.Rf=function(){return Array.from(dn(this.Gb()))};
@@ -487,21 +487,21 @@ r.Ag=function(a){a=!!a;if(this.da!=a){this.da=a;if(this.l==Em)this.G.m.setTextVi
487
487
  r.Pf=function(){if(!this.T())return null;var a=this.Ga.l,b=0;if(this.A)b=this.A.Jc();else if(a){if(null==a.startTime)return new Date;b=a.startTime}return this.i?new Date(1E3*(this.i.presentationTimeline.i+b)):this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:new Date(a.getTime()+1E3*b)):null};
488
488
  r.Ie=function(){if(!this.T())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.i);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};r.Ma=function(){if(this.l==Em)return this.G.Ma();var a={total:[],audio:[],video:[],text:[]};this.l==Rm&&(a.total=xi(this.g.buffered));return a};
489
489
  r.getStats=function(){if(this.l!=Em&&this.l!=Rm)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};zm(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=this.o;b=
490
- Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.A&&(this.o.M=this.A.te(),this.o.P=this.A.ue());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.o;var d=Number(c.totalVideoFrames);b.L=Number(c.droppedVideoFrames);b.J=d;this.o.H=Number(c.corruptedVideoFrames)}this.m?(c=this.m,c=c.H?c.H:NaN):c=NaN;this.o.s=c;if(this.l==Em){if(c=this.j.l)this.o.A=(this.H?this.H.i:1)*c.bandwidth;c&&c.video&&(b=this.o,d=c.video.height||NaN,b.o=c.video.width||NaN,b.l=d);this.T()&&(c=this.Ie().valueOf()+
491
- 1E3*this.vc().end,this.o.D=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&(this.o.G=this.i.presentationTimeline.g);c=this.s.getBandwidthEstimate();this.o.u=c}this.l==Rm&&(c=this.o,b=a.videoHeight||NaN,c.o=a.videoWidth||NaN,c.l=b);var e=this.o;a=e.o;c=e.l;b=e.A;d=e.J;var f=e.L,g=e.H,h=e.P,k=e.M,l=e.u,m=e.i,p=e.m,n=e.F,q=e.j,v=Kl(e.g,"playing"),y=Kl(e.g,"paused"),w=Kl(e.g,"buffering"),x=e.s,D=e.D,z=e.G,B=Ll(e.g),E=[];e=t(e.h.g);for(var F=e.next();!F.done;F=e.next())F=F.value,E.push({timestamp:F.timestamp,
490
+ Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.A&&(this.o.M=this.A.te(),this.o.O=this.A.ue());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.o;var d=Number(c.totalVideoFrames);b.L=Number(c.droppedVideoFrames);b.J=d;this.o.H=Number(c.corruptedVideoFrames)}this.m?(c=this.m,c=c.H?c.H:NaN):c=NaN;this.o.s=c;if(this.l==Em){if(c=this.j.l)this.o.A=(this.H?this.H.i:1)*c.bandwidth;c&&c.video&&(b=this.o,d=c.video.height||NaN,b.o=c.video.width||NaN,b.l=d);this.T()&&(c=this.Ie().valueOf()+
491
+ 1E3*this.vc().end,this.o.D=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&(this.o.G=this.i.presentationTimeline.g);c=this.s.getBandwidthEstimate();this.o.u=c}this.l==Rm&&(c=this.o,b=a.videoHeight||NaN,c.o=a.videoWidth||NaN,c.l=b);var e=this.o;a=e.o;c=e.l;b=e.A;d=e.J;var f=e.L,g=e.H,h=e.O,k=e.M,l=e.u,m=e.i,p=e.m,n=e.F,q=e.j,v=Kl(e.g,"playing"),y=Kl(e.g,"paused"),w=Kl(e.g,"buffering"),x=e.s,D=e.D,z=e.G,B=Ll(e.g),E=[];e=t(e.h.g);for(var F=e.next();!F.done;F=e.next())F=F.value,E.push({timestamp:F.timestamp,
492
492
  id:F.id,type:F.type,fromAdaptation:F.fromAdaptation,bandwidth:F.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:f,corruptedFrames:g,stallsDetected:h,gapsJumped:k,estimatedBandwidth:l,completionPercent:m,loadLatency:p,manifestTimeSeconds:n,drmTimeSeconds:q,playTime:v,pauseTime:y,bufferingTime:w,licenseTime:x,liveLatency:D,maxSegmentDuration:z,stateHistory:B,switchHistory:E}};
493
493
  r.jf=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,p,n,q,v,y,w,x,D;return G(function(z){switch(z.g){case 1:if(h.l!=Em&&h.l!=Rm)throw new O(1,7,7004);if(d){z.B(2);break}return u(z,fn(h,a),3);case 3:d=z.h;case 2:k=[];if(h.F)try{k=h.F.getServerSideCuePoints()}catch(B){}if(h.l!=Rm){z.B(4);break}g&&(c="forced");return u(z,gn(h,a,b,c,d,f||"",k),5);case 5:l=h.Gb();if(m=l.find(function(B){return B.language==b&&B.label==(f||"")&&B.kind==c}))return Om(h),z.return(m);throw new O(1,2,2012);case 4:p=
494
- jc;n=h.i.presentationTimeline.getDuration();if(Infinity==n)throw new O(1,4,4033);if(!k.length){z.B(6);break}return u(z,hn(h,a,h.D,h.h.streaming.retryParameters),7);case 7:q=z.h,v=jn(h,q,d,k),y=new Blob([v],{type:"text/vtt"}),a=Pi(y),d="text/vtt";case 6:w={id:h.$d++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Mj(0,n,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:p.X,primary:!1,trickModeVideo:null,
494
+ jc;n=h.i.presentationTimeline.getDuration();if(Infinity==n)throw new O(1,4,4033);if(!k.length){z.B(6);break}return u(z,hn(h,a,h.D,h.h.streaming.retryParameters),7);case 7:q=z.h,v=jn(h,q,d,k),y=new Blob([v],{type:"text/vtt"}),a=Pi(y),d="text/vtt";case 6:w={id:h.$d++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Mj(0,n,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:p.Y,primary:!1,trickModeVideo:null,
495
495
  emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!0};x=Yc(w.mimeType,w.codecs);D=dd(x);if(!D)throw new O(2,2,2014,d);h.i.textStreams.push(w);Om(h);return z.return($d(w))}})};
496
496
  r.kf=function(a,b){var c=this,d,e,f,g,h,k,l,m,p,n,q,v,y,w,x,D;return G(function(z){switch(z.g){case 1:if(c.l!=Em&&c.l!=Rm)throw new O(1,7,7004);if(c.l==Rm)throw new O(1,2,2016);if(b){z.B(2);break}return u(z,fn(c,a),3);case 3:b=z.h;case 2:if("text/vtt"!=b)throw new O(1,2,2017,a);d=jc;e=c.i.presentationTimeline.getDuration();if(Infinity==e)throw new O(1,4,4045);return u(z,hn(c,a,c.D,c.h.streaming.retryParameters),4);case 4:f=z.h;g=ed[b];if(!g)throw new O(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,
497
497
  segmentEnd:e,vttOffset:0};l=L(f);m=h.parseMedia(l,k);p=[];n={};q=t(m);for(v=q.next();!v.done;n={Sb:n.Sb},v=q.next())y=v.value,n.Sb=dc([a],[y.payload])[0],w=new T(y.startTime,y.endTime,function(B){return function(){return[B.Sb]}}(n),0,null,null,0,0,Infinity),n.Sb.includes("#xywh")&&(x=n.Sb.split("#xywh=")[1].split(","),4===x.length&&w.Ze({height:parseInt(x[3],10),positionX:parseInt(x[0],10),positionY:parseInt(x[1],10),width:parseInt(x[2],10)})),p.push(w);D={id:c.$d++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},
498
498
  segmentIndex:new Jj(p),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.Xb,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",external:!0};c.i.imageStreams.push(D);Om(c);return z.return(ae(D))}})};
499
499
  r.hf=function(a,b,c){var d=this,e,f,g,h;return G(function(k){switch(k.g){case 1:if(d.l!=Em&&d.l!=Rm)throw new O(1,7,7004);if(c){k.B(2);break}return u(k,fn(d,a),3);case 3:c=k.h;case 2:e=[];if(d.F)try{e=d.F.getServerSideCuePoints()}catch(l){}return u(k,gn(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.He();h=g.find(function(l){return l.language==b});if(!h){k.B(5);break}return u(k,new Promise(function(l,m){d.u.ca(f,"load",l);d.u.ca(f,"error",function(){m(new O(1,2,2015))})}),6);case 6:return k.return(h);
500
- case 5:throw new O(1,2,2012);}})};function fn(a,b){var c,d;return G(function(e){switch(e.g){case 1:c=Tg(b);if(d=kn[c])return e.return(d);C(e,2);return u(e,Vg(b,a.D,a.h.streaming.retryParameters),4);case 4:d=e.h;va(e,3);break;case 2:wa(e);case 3:if(d)return e.return(d);throw new O(1,2,2011,c);}})}
501
- function gn(a,b,c,d,e,f,g){var h,k,l,m;return G(function(p){if(1==p.g)return"text/vtt"!=e||g.length?u(p,hn(a,b,a.D,a.h.streaming.retryParameters),3):p.B(2);2!=p.g&&(h=p.h,k=jn(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=Pi(l),e="text/vtt");m=document.createElement("track");var n=a.V,q=b;try{if(n.g.enabled){var v=ql(n);v.ot=wl;v.su=!0;var y=sl(v);var w=tl(q,y)}else w=q}catch(x){Ya("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",x),w=q}m.src=w;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
502
- a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return p.return(m)})}function hn(a,b,c,d){var e,f,g;return G(function(h){if(1==h.g){e=hf;f=bf([b],d);f.method="GET";var k=a.V;try{k.g.enabled&&ol(k,f,{ot:wl,su:!0})}catch(l){Ya("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return u(h,c.request(e,f).promise,2)}g=h.h;return h.return(g.data)})}
503
- function jn(a,b,c,d){var e=ed[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=L(b),b=c.parseMedia(b,a),cl(b,d);throw new O(2,2,2014,c);}r.le=function(a,b){this.fc.width=a;this.fc.height=b};r.ee=function(a){if(this.l==Em){var b=this.j;a=void 0===a?.1:a;if(b.h.g)b=!1;else if(b.s)b=!1;else{for(var c=t(b.j.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.oc||d.sa||d.Ka||(d.oc=!1,kk(b,d,a));b=!0}}else b=!1;return b};
504
- r.Jf=function(){Xa("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};r.Kf=function(){return this.Zc};
500
+ case 5:throw new O(1,2,2012);}})};function fn(a,b){var c,d;return G(function(e){switch(e.g){case 1:c=Tg(b);if(d=kn[c])return e.return(d);C(e,2);return u(e,Vg(b,a.D,a.h.streaming.retryParameters),4);case 4:d=e.h;va(e,3);break;case 2:xa(e);case 3:if(d)return e.return(d);throw new O(1,2,2011,c);}})}
501
+ function gn(a,b,c,d,e,f,g){var h,k,l,m;return G(function(p){if(1==p.g)return"text/vtt"!=e||g.length?u(p,hn(a,b,a.D,a.h.streaming.retryParameters),3):p.B(2);2!=p.g&&(h=p.h,k=jn(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=Pi(l),e="text/vtt");m=document.createElement("track");var n=a.V,q=b;try{if(n.g.enabled){var v=ql(n);v.ot=wl;v.su=!0;var y=sl(v);var w=tl(q,y)}else w=q}catch(x){Za("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",x),w=q}m.src=w;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
502
+ a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return p.return(m)})}function hn(a,b,c,d){var e,f,g;return G(function(h){if(1==h.g){e=hf;f=bf([b],d);f.method="GET";var k=a.V;try{k.g.enabled&&ol(k,f,{ot:wl,su:!0})}catch(l){Za("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return u(h,c.request(e,f).promise,2)}g=h.h;return h.return(g.data)})}
503
+ function jn(a,b,c,d){var e=ed[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=L(b),b=c.parseMedia(b,a),cl(b,d);throw new O(2,2,2014,c);}r.le=function(a,b){this.fc.width=a;this.fc.height=b};r.ee=function(a){if(this.l==Em){var b=this.j;a=void 0===a?.1:a;if(b.i.g)b=!1;else if(b.s)b=!1;else{for(var c=t(b.j.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.oc||d.sa||d.Ka||(d.oc=!1,kk(b,d,a));b=!0}}else b=!1;return b};
504
+ r.Jf=function(){Xa("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};r.Kf=function(){return this.$c};
505
505
  function Ql(a){var b=Fl();b.streaming.failureCallback=function(c){if(a.T()){var d=null;1001==c.code||1002==c.code?d=1:1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.ee(d))}};b.textDisplayFactory=function(){return a.Vc?new Uk(a.g,a.Vc):new Pk(a.g)};return b}r.af=function(a){this.Vc=a};
506
506
  function tm(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 Nj;h={id:a.$d++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},
507
507
  segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:e.closedCaptions.get(g),label:null,type:ic,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:e.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1};b.textStreams.push(h);c.add(g)}}function sm(a,b){return G(function(c){if(1==c.g)return u(c,ln(a,b),2);Zm(a,b);A(c)})}
@@ -513,7 +513,7 @@ function Pm(a){try{mn(a,a.i)}catch(c){return nm(a,c),!1}var b=a.i.variants.filte
513
513
  function Cm(a,b,c,d,e){var f=a.j.l;if(b==f)d&&ok(a.j,b,d,e,!0);else{var g=a.o.h;g.h!=b&&(g.h=b,g.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));ok(a.j,b,d,e,void 0,c);d=null;f&&(d=Zd(f));b=Zd(b);c?(c=(new Map).set("oldTrack",d).set("newTrack",b),a.L&&Ii(a.L,b),c=cm("adaptation",c),nn(a,c)):on(a,d,b)}}
514
514
  function bn(a,b){var c=Array.from(a.g.audioTracks).find(function(d){return d.enabled});b.enabled=!0;b.id!==c.id&&(c.enabled=!1);c=fe(c);b=fe(b);on(a,c,b)}function Km(a,b,c){if(0==a.h.autoShowText)return!1;if(1==a.h.autoShowText)return!0;var d=nd(a.h.preferredTextLanguage);c=nd(c.language);if(2==a.h.autoShowText)return md(c,d);if(3==a.h.autoShowText)return a=nd(b.language),md(c,d)&&!md(a,c);Xa("Invalid autoShowText setting!");return!1}function Om(a){var b=cm("trackschanged");nn(a,b)}
515
515
  function on(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.L&&Ii(a.L,c);c=cm("variantchanged",b);nn(a,c)}function an(a){var b=cm("textchanged");nn(a,b)}function Lm(a){var b=cm("texttrackvisibility");nn(a,b)}function Mm(a){var b=(new Map).set("newStatus",a.h.abr.enabled);nn(a,cm("abrstatuschanged",b))}
516
- function pn(a,b){if(1002!=b.code&&1011!=b.code||1!=b.category||a.l!=Em||!navigator.onLine)return!1;var c=a.h.streaming.maxDisabledTime;if(0==c)if(1011==b.code)c=1;else return!1;b=a.Pa().find(function(g){return g.active});for(var d=a.i,e=t(d.variants),f=e.next();!f.done;f=e.next())f=f.value,f.id===b.id&&(f.disabledUntilTime=Date.now()/1E3+c);Kd(d.variants,a.h.restrictions,a.fc);b=dm(a);if(!b)return!1;d=a.Ma().video.reduce(function(g,h){return g+h.end-h.start},0);Cm(a,b,!1,!0,d);a.bf.O(c);return!0}
516
+ function pn(a,b){if(1002!=b.code&&1011!=b.code||1!=b.category||a.l!=Em||!navigator.onLine)return!1;var c=a.h.streaming.maxDisabledTime;if(0==c)if(1011==b.code)c=1;else return!1;b=a.Pa().find(function(g){return g.active});for(var d=a.i,e=t(d.variants),f=e.next();!f.done;f=e.next())f=f.value,f.id===b.id&&(f.disabledUntilTime=Date.now()/1E3+c);Kd(d.variants,a.h.restrictions,a.fc);b=dm(a);if(!b)return!1;d=a.Ma().video.reduce(function(g,h){return g+h.end-h.start},0);Cm(a,b,!1,!0,d);a.bf.N(c);return!0}
517
517
  function nm(a,b){if(a.l!=hm)if(pn(a,b))b.handled=!0;else{var c=cm("error",(new Map).set("detail",b));a.dispatchEvent(c);c.defaultPrevented&&(b.handled=!0)}}function rm(a,b,c){c=(new Map).set("detail",{schemeIdUri:c.schemeIdUri,value:c.value,startTime:c.startTime,endTime:c.endTime,id:c.id,eventElement:c.eventElement});a.dispatchEvent(cm(b,c))}
518
518
  function mm(a){if(!a.g.error)return null;var b=a.g.error.code;if(1==b)return null;var c=a.g.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new O(2,3,3016,b,c,a.g.error.message)}
519
519
  function xm(a,b){if(a.j){var c=Object.keys(b),d=1==c.length&&"00"==c[0],e=!1;if(c.length){c=t(a.i.variants);for(var f=c.next();!f.done;f=c.next()){f=f.value;var g=[];f.audio&&g.push(f.audio);f.video&&g.push(f.video);g=t(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;h=f.allowedByKeySystem;if(k.keyIds.size){f.allowedByKeySystem=!0;k=t(k.keyIds);for(var l=k.next();!l.done;l=k.next())l=l.value,l=b[d?"00":l],f.allowedByKeySystem=f.allowedByKeySystem&&!!l&&!qn.includes(l)}h!=f.allowedByKeySystem&&
@@ -521,78 +521,78 @@ function xm(a,b){if(a.j){var c=Object.keys(b),d=1==c.length&&"00"==c[0],e=!1;if(
521
521
  function mn(a,b){a=a.m?a.m.Rc():{};var c=Object.keys(a);c=c.length&&"00"==c[0];var d=!1,e=!1,f=new Set,g=new Set;b=t(b.variants);for(var h=b.next();!h.done;h=b.next()){h=h.value;var k=[];h.audio&&k.push(h.audio);h.video&&k.push(h.video);k=t(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.keyIds.size){l=t(l.keyIds);for(var m=l.next();!m.done;m=l.next()){m=m.value;var p=a[c?"00":m];p?qn.includes(p)&&g.add(p):f.add(m)}}h.allowedByApplication?h.allowedByKeySystem&&(d=!0):e=!0}if(!d)throw a={hasAppRestrictions:e,
522
522
  missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new O(2,4,4012,a);}function Nm(a){if(!a.variants.some(ge))throw new O(2,4,4032);}function nn(a,b){G(function(c){if(1==c.g)return u(c,Promise.resolve(),2);a.l!=hm&&a.dispatchEvent(b);A(c)})}function dn(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(nd(c.language)):b.add("und");return b}
523
523
  function cn(a){var b=new Map,c=new Map;a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="und",f=[];d.language&&(e=nd(d.language));"variant"==d.type?f=d.audioRoles:f=d.roles;f&&f.length||(f=[""]);b.has(e)||b.set(e,new Set);f=t(f);for(var g=f.next();!g.done;g=f.next())g=g.value,b.get(e).add(g),d.label&&(c.has(e)||c.set(e,new Map),c.get(e).set(g,d.label))}var h=[];b.forEach(function(k,l){k=t(k);for(var m=k.next();!m.done;m=k.next()){m=m.value;var p=null;c.has(l)&&c.get(l).has(m)&&(p=c.get(l).get(m));
524
- h.push({language:l,role:m,label:p})}});return h}function im(){return new O(2,7,7E3)}function bm(a,b,c,d,e,f){return d==a&&e.mediaElement==f.mediaElement&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function Hk(){return{mediaElement:null,mimeType:null,startTime:null,gd:NaN,uri:null}}function jm(a){return new Promise(function(b,c){a.nb=function(){return c(im())};a.cd=function(){return b()};a.onError=function(d){return c(d)};a.ed=function(){return c(im())}})}K("shaka.Player",V);
524
+ h.push({language:l,role:m,label:p})}});return h}function im(){return new O(2,7,7E3)}function bm(a,b,c,d,e,f){return d==a&&e.mediaElement==f.mediaElement&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function Hk(){return{mediaElement:null,mimeType:null,startTime:null,hd:NaN,uri:null}}function jm(a){return new Promise(function(b,c){a.nb=function(){return c(im())};a.dd=function(){return b()};a.onError=function(d){return c(d)};a.fd=function(){return c(im())}})}K("shaka.Player",V);
525
525
  V.prototype.setVideoContainer=V.prototype.af;V.prototype.getManifestParserFactory=V.prototype.Kf;V.prototype.getManifest=V.prototype.Jf;V.prototype.retryStreaming=V.prototype.ee;V.prototype.setMaxHardwareResolution=V.prototype.le;V.prototype.addChaptersTrack=V.prototype.hf;V.prototype.addThumbnailsTrack=V.prototype.kf;V.prototype.addTextTrackAsync=V.prototype.jf;V.prototype.getStats=V.prototype.getStats;V.prototype.getBufferedInfo=V.prototype.Ma;V.prototype.getPresentationStartTimeAsDate=V.prototype.Ie;
526
526
  V.prototype.getPlayheadTimeAsDate=V.prototype.Pf;V.prototype.setTextTrackVisibility=V.prototype.Ag;V.prototype.getChapters=V.prototype.Df;V.prototype.getChaptersTracks=V.prototype.He;V.prototype.isTextTrackVisible=V.prototype.Jd;V.prototype.selectVariantsByLabel=V.prototype.vg;V.prototype.selectTextLanguage=V.prototype.Te;V.prototype.selectAudioLanguage=V.prototype.Se;V.prototype.getTextLanguages=V.prototype.Rf;V.prototype.getAudioLanguages=V.prototype.Af;V.prototype.getTextLanguagesAndRoles=V.prototype.Sf;
527
527
  V.prototype.getAudioLanguagesAndRoles=V.prototype.Bf;V.prototype.selectVariantTrack=V.prototype.ie;V.prototype.selectTextTrack=V.prototype.Ue;V.prototype.getThumbnails=V.prototype.Uf;V.prototype.getImageTracks=V.prototype.Gf;V.prototype.getTextTracks=V.prototype.Gb;V.prototype.getVariantTracks=V.prototype.Pa;V.prototype.cancelTrickPlay=V.prototype.qf;V.prototype.trickPlay=V.prototype.Cg;V.prototype.getPlaybackRate=V.prototype.Sc;V.prototype.isBuffering=V.prototype.Hd;V.prototype.getKeyStatuses=V.prototype.Rc;
528
- V.prototype.getExpiration=V.prototype.jc;V.prototype.drmInfo=V.prototype.drmInfo;V.prototype.keySystem=V.prototype.keySystem;V.prototype.goToLive=V.prototype.Yf;V.prototype.seekRange=V.prototype.vc;V.prototype.isAudioOnly=V.prototype.$f;V.prototype.isInProgress=V.prototype.jb;V.prototype.isLive=V.prototype.T;V.prototype.getAdManager=V.prototype.Ge;V.prototype.getAssetUri=V.prototype.Fd;V.prototype.getNetworkingEngine=V.prototype.kc;V.prototype.getMediaElement=V.prototype.Mf;
528
+ V.prototype.getExpiration=V.prototype.jc;V.prototype.drmInfo=V.prototype.drmInfo;V.prototype.keySystem=V.prototype.keySystem;V.prototype.goToLive=V.prototype.Yf;V.prototype.seekRange=V.prototype.vc;V.prototype.isAudioOnly=V.prototype.$f;V.prototype.isInProgress=V.prototype.jb;V.prototype.isLive=V.prototype.T;V.prototype.getAdManager=V.prototype.Ge;V.prototype.getAssetUri=V.prototype.Gd;V.prototype.getNetworkingEngine=V.prototype.kc;V.prototype.getMediaElement=V.prototype.Mf;
529
529
  V.prototype.getLoadMode=V.prototype.If;V.prototype.resetConfiguration=V.prototype.tg;V.prototype.getBufferFullness=V.prototype.Cf;V.prototype.getConfiguration=V.prototype.getConfiguration;V.prototype.configure=V.prototype.configure;V.prototype.load=V.prototype.load;V.prototype.updateStartTime=V.prototype.Hg;V.prototype.unload=V.prototype.re;V.prototype.detach=V.prototype.detach;V.prototype.attachCanvas=V.prototype.mf;V.prototype.attach=V.prototype.Zb;
530
530
  V.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return G(function(h){if(1==h.g)return b={},a?u(h,Lg(),3):h.B(2);2!=h.g&&(b=h.h);var k={};if(nc()){for(var l in Sg)k[l]=!0;for(var m in Ug)k[m]=!0}l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};m=t(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var p=m.next();!p.done;p=m.next())p=p.value,k[p]=nc()?!!Sg[p]:oc(p);for(var n in l)k[n]=
531
531
  nc()?!!Ug[n]:oc(l[n]);c=k;n='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(ia(Yi));
532
- k={};n=t(n);for(l=n.next();!l.done;l=n.next())l=l.value,k[l]=nc()?dd(l)?!0:db(l)||Sc(l):oc(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=rn;for(g in f)e[g]=f[g]();return h.return(e)})};
532
+ k={};n=t(n);for(l=n.next();!l.done;l=n.next())l=l.value,k[l]=nc()?dd(l)?!0:fb(l)||Sc(l):oc(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=rn;for(g in f)e[g]=f[g]();return h.return(e)})};
533
533
  V.isBrowserSupported=function(){window.Promise||Xa("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||sc("Trident/"))return!1;var a=xc();return a&&13>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:nc()?!0:oc("application/x-mpegurl")};V.setAdManagerFactory=function(a){Sl=a};
534
- V.registerSupportPlugin=function(a,b){rn[a]=b};V.prototype.destroy=V.prototype.destroy;var hm=0,Pl=1,Em=2,Rm=3;V.LoadMode={DESTROYED:hm,NOT_LOADED:Pl,MEDIA_SOURCE:Em,SRC_EQUALS:Rm};V.version="v4.3.12";var sn=["4","3"];re=new function(a){this.g=a;this.i=se;this.h=te}(new pe(Number(sn[0]),Number(sn[1])));
534
+ V.registerSupportPlugin=function(a,b){rn[a]=b};V.prototype.destroy=V.prototype.destroy;var hm=0,Pl=1,Em=2,Rm=3;V.LoadMode={DESTROYED:hm,NOT_LOADED:Pl,MEDIA_SOURCE:Em,SRC_EQUALS:Rm};V.version="v4.3.13";var sn=["4","3"];re=new function(a){this.g=a;this.i=se;this.h=te}(new pe(Number(sn[0]),Number(sn[1])));
535
535
  var qn=["output-restricted","internal-error"],rn={},Sl=null,gm={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"},kn={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",
536
536
  ssa:"text/x-ssa",ass:"text/x-ssa"};function tn(){this.h=[];this.j=this.i=this.g=0};function W(a,b,c){var d=this;this.h=a;this.g=b;this.m=c;this.i=!1;this.l=this.g.getVolume();this.j=new lf;this.j.C(this.g,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.j.C(this.g,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}r=W.prototype;r.getDuration=function(){return this.h.getDuration()};r.getMinSuggestedDuration=function(){return this.h.getMinSuggestedDuration()};r.getRemainingTime=function(){return this.g.getRemainingTime()};r.isPaused=function(){return this.i};
537
537
  r.isSkippable=function(){return 0<=this.h.getSkipTimeOffset()};r.getTimeUntilSkippable=function(){var a=this.h.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};r.canSkipNow=function(){return this.g.getAdSkippableState()};r.skip=function(){return this.g.skip()};r.pause=function(){return this.g.pause()};r.play=function(){return this.g.resume()};r.getVolume=function(){return this.g.getVolume()};r.setVolume=function(a){return this.g.setVolume(a)};r.isMuted=function(){return 0==this.g.getVolume()};
538
538
  r.isLinear=function(){return this.h.isLinear()};r.resize=function(a,b){var c=!1,d=this.m;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.g.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};r.setMuted=function(a){a?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)};r.getSequenceLength=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getTotalAds()};
539
539
  r.getPositionInSequence=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getAdPosition()};r.getTitle=function(){return this.h.getTitle()};r.getDescription=function(){return this.h.getDescription()};r.release=function(){this.g=this.h=null};K("shaka.ads.ClientSideAd",W);W.prototype.release=W.prototype.release;W.prototype.getDescription=W.prototype.getDescription;W.prototype.getTitle=W.prototype.getTitle;W.prototype.getPositionInSequence=W.prototype.getPositionInSequence;
540
540
  W.prototype.getSequenceLength=W.prototype.getSequenceLength;W.prototype.setMuted=W.prototype.setMuted;W.prototype.resize=W.prototype.resize;W.prototype.isLinear=W.prototype.isLinear;W.prototype.isMuted=W.prototype.isMuted;W.prototype.setVolume=W.prototype.setVolume;W.prototype.getVolume=W.prototype.getVolume;W.prototype.play=W.prototype.play;W.prototype.pause=W.prototype.pause;W.prototype.skip=W.prototype.skip;W.prototype.canSkipNow=W.prototype.canSkipNow;W.prototype.getTimeUntilSkippable=W.prototype.getTimeUntilSkippable;
541
- W.prototype.isSkippable=W.prototype.isSkippable;W.prototype.isPaused=W.prototype.isPaused;W.prototype.getRemainingTime=W.prototype.getRemainingTime;W.prototype.getMinSuggestedDuration=W.prototype.getMinSuggestedDuration;W.prototype.getDuration=W.prototype.getDuration;function un(a,b,c,d){var e=this;this.o=a;this.i=b;this.u=!1;this.s=null;this.A=NaN;this.l=d;this.j=null;this.h=new lf;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.o,this.i);a.initialize();this.m=new google.ima.AdsLoader(a);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.3.12");this.g=null;this.h.ca(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){vn(e,f)});this.h.C(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,
542
- function(f){wn(e,f)});this.h.C(this.i,"ended",function(){e.m.contentComplete()});this.h.ca(this.i,"play",function(){e.u=!0})}un.prototype.stop=function(){this.g&&this.g.stop();this.o&&Tk(this.o)};un.prototype.release=function(){this.stop();this.s&&this.s.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy()};function wn(a,b){b.getError();xn(a,null);a.l(new S("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
543
- function vn(a,b){a.l(new S("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.A)));a.g=b.getAdsManager(a.i);a.l(new S("ima-ad-manager-loaded",(new Map).set("imaAdManager",a.g)));var c=a.g.getCuePoints();if(c.length){b=[];c=t(c);for(var d=c.next();!d.done;d=c.next())b.push({start:d.value,end:null});a.l(new S("ad-cue-points-changed",(new Map).set("cuepoints",b)))}yn(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,zn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.C(a.i,"loadeddata",
541
+ W.prototype.isSkippable=W.prototype.isSkippable;W.prototype.isPaused=W.prototype.isPaused;W.prototype.getRemainingTime=W.prototype.getRemainingTime;W.prototype.getMinSuggestedDuration=W.prototype.getMinSuggestedDuration;W.prototype.getDuration=W.prototype.getDuration;function un(a,b,c,d){var e=this;this.o=a;this.i=b;this.u=!1;this.s=null;this.A=NaN;this.l=d;this.j=null;this.h=new lf;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.o,this.i);a.initialize();this.m=new google.ima.AdsLoader(a);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.3.13");this.g=null;this.h.ca(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){vn(e,f)});this.h.C(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,
542
+ function(f){wn(e,f)});this.h.C(this.i,"ended",function(){e.m.contentComplete()});this.h.ca(this.i,"play",function(){e.u=!0})}un.prototype.stop=function(){this.g&&this.g.stop();this.o&&Tk(this.o)};un.prototype.release=function(){this.stop();this.s&&this.s.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy()};function wn(a,b){b.getError();xn(a,null);a.l(new R("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
543
+ function vn(a,b){a.l(new R("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.A)));a.g=b.getAdsManager(a.i);a.l(new R("ima-ad-manager-loaded",(new Map).set("imaAdManager",a.g)));var c=a.g.getCuePoints();if(c.length){b=[];c=t(c);for(var d=c.next();!d.done;d=c.next())b.push({start:d.value,end:null});a.l(new R("ad-cue-points-changed",(new Map).set("cuepoints",b)))}yn(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,zn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.C(a.i,"loadeddata",
544
544
  function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,zn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in window?(a.s=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,zn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.s.observe(a.i)):a.h.C(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,zn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.u?a.g.start():a.h.ca(a.i,"play",
545
545
  function(){a.u=!0;a.g.start()})}catch(e){xn(a,null)}}function zn(a){if(document.fullscreenEnabled)return!!document.fullscreenElement;a=a.i;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1}
546
- function yn(a){function b(c,d){c=(new Map).set("originalEvent",c);a.l(new S(d,c))}a.h.C(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){wn(a,c)});a.h.C(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){An(a,c)});a.h.C(a.g,google.ima.AdEvent.Type.STARTED,function(c){An(a,c)});a.h.C(a.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.C(a.g,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.C(a.g,google.ima.AdEvent.Type.THIRD_QUARTILE,
546
+ function yn(a){function b(c,d){c=(new Map).set("originalEvent",c);a.l(new R(d,c))}a.h.C(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){wn(a,c)});a.h.C(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){An(a,c)});a.h.C(a.g,google.ima.AdEvent.Type.STARTED,function(c){An(a,c)});a.h.C(a.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.C(a.g,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.C(a.g,google.ima.AdEvent.Type.THIRD_QUARTILE,
547
547
  function(c){b(c,"ad-third-quartile")});a.h.C(a.g,google.ima.AdEvent.Type.COMPLETE,function(c){b(c,"ad-complete")});a.h.C(a.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(c){xn(a,c)});a.h.C(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){xn(a,c)});a.h.C(a.g,google.ima.AdEvent.Type.SKIPPED,function(c){b(c,"ad-skipped")});a.h.C(a.g,google.ima.AdEvent.Type.VOLUME_CHANGED,function(c){b(c,"ad-volume-changed")});a.h.C(a.g,google.ima.AdEvent.Type.VOLUME_MUTED,function(c){b(c,"ad-muted")});
548
548
  a.h.C(a.g,google.ima.AdEvent.Type.PAUSED,function(c){a.j&&(a.j.i=!0,b(c,"ad-paused"))});a.h.C(a.g,google.ima.AdEvent.Type.RESUMED,function(c){a.j&&(a.j.i=!1,b(c,"ad-resumed"))});a.h.C(a.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(c){a.j&&b(c,"ad-skip-state-changed")});a.h.C(a.g,google.ima.AdEvent.Type.CLICK,function(c){b(c,"ad-clicked")});a.h.C(a.g,google.ima.AdEvent.Type.AD_PROGRESS,function(c){b(c,"ad-progress")});a.h.C(a.g,google.ima.AdEvent.Type.AD_BUFFERING,function(c){b(c,"ad-buffering")});
549
549
  a.h.C(a.g,google.ima.AdEvent.Type.IMPRESSION,function(c){b(c,"ad-impression")});a.h.C(a.g,google.ima.AdEvent.Type.DURATION_CHANGE,function(c){b(c,"ad-duration-changed")});a.h.C(a.g,google.ima.AdEvent.Type.USER_CLOSE,function(c){b(c,"ad-closed")});a.h.C(a.g,google.ima.AdEvent.Type.LOADED,function(c){b(c,"ad-loaded")});a.h.C(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){b(c,"all-ads-completed")});a.h.C(a.g,google.ima.AdEvent.Type.LINEAR_CHANGED,function(c){b(c,"ad-linear-changed")});a.h.C(a.g,
550
550
  google.ima.AdEvent.Type.AD_METADATA,function(c){b(c,"ad-metadata")});a.h.C(a.g,google.ima.AdEvent.Type.LOG,function(c){b(c,"ad-recoverable-error")});a.h.C(a.g,google.ima.AdEvent.Type.AD_BREAK_READY,function(c){b(c,"ad-break-ready")});a.h.C(a.g,google.ima.AdEvent.Type.INTERACTION,function(c){b(c,"ad-interaction")})}
551
- function An(a,b){var c=b.getAd();c?(a.j=new W(c,a.g,a.i),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.l(new S("ad-started",b)),a.j.isLinear()&&(a.o.setAttribute("ad-active","true"),a.i.pause(),a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))):Xa("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")}
552
- function xn(a,b){a.l(new S("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.o.removeAttribute("ad-active"),a.i.ended||a.i.play())};function X(a,b){this.i=a;this.h=null;this.g=b}r=X.prototype;r.getDuration=function(){return this.h?this.h.duration:-1};r.getMinSuggestedDuration=function(){return this.getDuration()};r.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1};r.isPaused=function(){return this.g.paused};r.isSkippable=function(){return this.i.isSkippable()};r.getTimeUntilSkippable=function(){var a=this.i.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};
551
+ function An(a,b){var c=b.getAd();c?(a.j=new W(c,a.g,a.i),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.l(new R("ad-started",b)),a.j.isLinear()&&(a.o.setAttribute("ad-active","true"),a.i.pause(),a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))):Xa("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")}
552
+ function xn(a,b){a.l(new R("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.o.removeAttribute("ad-active"),a.i.ended||a.i.play())};function X(a,b){this.i=a;this.h=null;this.g=b}r=X.prototype;r.getDuration=function(){return this.h?this.h.duration:-1};r.getMinSuggestedDuration=function(){return this.getDuration()};r.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1};r.isPaused=function(){return this.g.paused};r.isSkippable=function(){return this.i.isSkippable()};r.getTimeUntilSkippable=function(){var a=this.i.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};
553
553
  r.canSkipNow=function(){return 0==this.getTimeUntilSkippable()};r.skip=function(){this.g.currentTime+=this.getRemainingTime()};r.pause=function(){return this.g.pause()};r.play=function(){return this.g.play()};r.getVolume=function(){return this.g.volume};r.setVolume=function(a){this.g.volume=a};r.isMuted=function(){return this.g.muted};r.isLinear=function(){return!0};r.resize=function(){};r.setMuted=function(a){this.g.muted=a};
554
554
  r.getSequenceLength=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getTotalAds()};r.getPositionInSequence=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getAdPosition()};r.getTitle=function(){return this.i.getTitle()};r.getDescription=function(){return this.i.getDescription()};r.release=function(){this.g=this.h=this.i=null};K("shaka.ads.ServerSideAd",X);X.prototype.release=X.prototype.release;X.prototype.getDescription=X.prototype.getDescription;X.prototype.getTitle=X.prototype.getTitle;
555
555
  X.prototype.getPositionInSequence=X.prototype.getPositionInSequence;X.prototype.getSequenceLength=X.prototype.getSequenceLength;X.prototype.setMuted=X.prototype.setMuted;X.prototype.resize=X.prototype.resize;X.prototype.isLinear=X.prototype.isLinear;X.prototype.isMuted=X.prototype.isMuted;X.prototype.setVolume=X.prototype.setVolume;X.prototype.getVolume=X.prototype.getVolume;X.prototype.play=X.prototype.play;X.prototype.pause=X.prototype.pause;X.prototype.skip=X.prototype.skip;
556
- X.prototype.canSkipNow=X.prototype.canSkipNow;X.prototype.getTimeUntilSkippable=X.prototype.getTimeUntilSkippable;X.prototype.isSkippable=X.prototype.isSkippable;X.prototype.isPaused=X.prototype.isPaused;X.prototype.getRemainingTime=X.prototype.getRemainingTime;X.prototype.getMinSuggestedDuration=X.prototype.getMinSuggestedDuration;X.prototype.getDuration=X.prototype.getDuration;function Bn(a,b,c,d){var e=this;this.s=a;this.l=b;this.j=null;this.G=NaN;this.i=d;this.F=!1;this.u=this.m=this.o=null;this.A="";this.D=[];this.h=new lf;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.g=new google.ima.dai.api.StreamManager(this.l,this.s,a);this.i(new S("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g)));this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){Cn(e,f)});this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.A.length?
557
- e.j.resolve(e.A):e.j.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.j=null});this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.m=new X(f,e.l);e.u&&(e.m.h=e.u);e.i(new S("ad-started",(new Map).set("ad",e.m)));e.s.setAttribute("ad-active","true")});this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.s.removeAttribute("ad-active");
558
- var f=e.l.currentTime;e.o&&e.o>f&&(e.l.currentTime=e.o,e.o=null)});this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.u=f.getStreamData().adProgressData;e.m&&(e.m.h=e.u)});this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.i(new S("ad-first-quartile"))});this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.i(new S("ad-midpoint"))});this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.i(new S("ad-third-quartile"))});
559
- this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.i(new S("ad-complete"));e.i(new S("ad-stopped"));e.s.removeAttribute("ad-active");e.m=null});this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.i(new S("ad-skipped"));e.i(new S("ad-stopped"))});this.h.C(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=
560
- f;e.i(new S("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}Bn.prototype.stop=function(){this.A="";this.o=null;this.D=[]};Bn.prototype.release=function(){this.stop();this.h&&this.h.release()};Bn.prototype.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.g.onTimedMetadata(b)}};
561
- function Cn(a,b){a.i(new S("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.G)));b=b.getStreamData().url;a.j.resolve(b);a.j=null;a.F||a.h.C(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.o=c,a.l.currentTime=d.start)}})};function Y(){Te.call(this);this.g=this.i=null;this.h=new tn;this.j=navigator.language}qa(Y,Te);r=Y.prototype;r.setLocale=function(a){this.j=a};r.initClientSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new O(2,10,1E4);this.i&&this.i.release();this.i=new un(a,b,this.j,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.h.h.push(d.loadTime);break;case "ad-started":c.h.g++;break;case "ad-complete":c.h.i++;break;case "ad-skipped":c.h.j++}c.dispatchEvent(d)})};
562
- r.release=function(){this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);Te.prototype.release.call(this)};r.onAssetUnload=function(){this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new S("ad-stopped"));this.h=new tn};r.requestClientSideAds=function(a){if(!this.i)throw new O(1,10,10001);var b=this.i;b.A=Date.now()/1E3;b.m.requestAds(a)};
556
+ X.prototype.canSkipNow=X.prototype.canSkipNow;X.prototype.getTimeUntilSkippable=X.prototype.getTimeUntilSkippable;X.prototype.isSkippable=X.prototype.isSkippable;X.prototype.isPaused=X.prototype.isPaused;X.prototype.getRemainingTime=X.prototype.getRemainingTime;X.prototype.getMinSuggestedDuration=X.prototype.getMinSuggestedDuration;X.prototype.getDuration=X.prototype.getDuration;function Bn(a,b,c,d){var e=this;this.s=a;this.l=b;this.j=null;this.G=NaN;this.i=d;this.F=!1;this.u=this.m=this.o=null;this.A="";this.D=[];this.h=new lf;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.g=new google.ima.dai.api.StreamManager(this.l,this.s,a);this.i(new R("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g)));this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){Cn(e,f)});this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.A.length?
557
+ e.j.resolve(e.A):e.j.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.j=null});this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.m=new X(f,e.l);e.u&&(e.m.h=e.u);e.i(new R("ad-started",(new Map).set("ad",e.m)));e.s.setAttribute("ad-active","true")});this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.s.removeAttribute("ad-active");
558
+ var f=e.l.currentTime;e.o&&e.o>f&&(e.l.currentTime=e.o,e.o=null)});this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.u=f.getStreamData().adProgressData;e.m&&(e.m.h=e.u)});this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.i(new R("ad-first-quartile"))});this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.i(new R("ad-midpoint"))});this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.i(new R("ad-third-quartile"))});
559
+ this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.i(new R("ad-complete"));e.i(new R("ad-stopped"));e.s.removeAttribute("ad-active");e.m=null});this.h.C(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.i(new R("ad-skipped"));e.i(new R("ad-stopped"))});this.h.C(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=
560
+ f;e.i(new R("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}Bn.prototype.stop=function(){this.A="";this.o=null;this.D=[]};Bn.prototype.release=function(){this.stop();this.h&&this.h.release()};Bn.prototype.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.g.onTimedMetadata(b)}};
561
+ function Cn(a,b){a.i(new R("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.G)));b=b.getStreamData().url;a.j.resolve(b);a.j=null;a.F||a.h.C(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.o=c,a.l.currentTime=d.start)}})};function Y(){Te.call(this);this.g=this.i=null;this.h=new tn;this.j=navigator.language}qa(Y,Te);r=Y.prototype;r.setLocale=function(a){this.j=a};r.initClientSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new O(2,10,1E4);this.i&&this.i.release();this.i=new un(a,b,this.j,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.h.h.push(d.loadTime);break;case "ad-started":c.h.g++;break;case "ad-complete":c.h.i++;break;case "ad-skipped":c.h.j++}c.dispatchEvent(d)})};
562
+ r.release=function(){this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);Te.prototype.release.call(this)};r.onAssetUnload=function(){this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new R("ad-stopped"));this.h=new tn};r.requestClientSideAds=function(a){if(!this.i)throw new O(1,10,10001);var b=this.i;b.A=Date.now()/1E3;b.m.requestAds(a)};
563
563
  r.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new O(2,10,10002);this.g&&this.g.release();this.g=new Bn(a,b,this.j,function(d){if(d&&d.type)switch(d.type){case "ads-loaded":c.h.h.push(d.loadTime);break;case "ad-started":c.h.g++;break;case "ad-complete":c.h.i++;break;case "ad-skipped":c.h.j++}c.dispatchEvent(d)})};
564
- r.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new O(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Xa('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.3.12";c=this.g;c.j?a=Promise.reject(new O(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
565
- (c.F=!0),c.j=new kc,c.g.requestStream(a),c.A=b||"",c.G=Date.now()/1E3,a=c.j);return a};r.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new O(1,10,10003);(a.mpt||a.mpv)&&Xa('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.3.12";this.g.g.replaceAdTagParameters(a)};r.getServerSideCuePoints=function(){if(!this.g)throw new O(1,10,10003);return this.g.D};
564
+ r.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new O(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Xa('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.3.13";c=this.g;c.j?a=Promise.reject(new O(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
565
+ (c.F=!0),c.j=new kc,c.g.requestStream(a),c.A=b||"",c.G=Date.now()/1E3,a=c.j);return a};r.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new O(1,10,10003);(a.mpt||a.mpv)&&Xa('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.3.13";this.g.g.replaceAdTagParameters(a)};r.getServerSideCuePoints=function(){if(!this.g)throw new O(1,10,10003);return this.g.D};
566
566
  r.getStats=function(){var a=this.h;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};r.onDashTimedMetadata=function(a){if(this.g&&"urn:google:dai:2018"==a.schemeIdUri){var b=a.schemeIdUri,c=a.eventElement?a.eventElement.getAttribute("messageData"):null;this.g.g.processMetadata(b,c,a.startTime)}};r.onHlsTimedMetadata=function(a,b){this.g&&this.g.g.processMetadata("ID3",a.data,b)};r.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};K("shaka.ads.AdManager",Y);
567
567
  Y.prototype.onCueMetadataChange=Y.prototype.onCueMetadataChange;Y.prototype.onHlsTimedMetadata=Y.prototype.onHlsTimedMetadata;Y.prototype.onDashTimedMetadata=Y.prototype.onDashTimedMetadata;Y.prototype.getStats=Y.prototype.getStats;Y.prototype.getServerSideCuePoints=Y.prototype.getServerSideCuePoints;Y.prototype.replaceServerSideAdTagParameters=Y.prototype.replaceServerSideAdTagParameters;Y.prototype.requestServerSideStream=Y.prototype.requestServerSideStream;Y.prototype.initServerSide=Y.prototype.initServerSide;
568
568
  Y.prototype.requestClientSideAds=Y.prototype.requestClientSideAds;Y.prototype.onAssetUnload=Y.prototype.onAssetUnload;Y.prototype.release=Y.prototype.release;Y.prototype.initClientSide=Y.prototype.initClientSide;Y.prototype.setLocale=Y.prototype.setLocale;Y.ADS_LOADED="ads-loaded";Y.AD_STARTED="ad-started";Y.AD_FIRST_QUARTILE="ad-first-quartile";Y.AD_MIDPOINT="ad-midpoint";Y.AD_THIRD_QUARTILE="ad-third-quartile";Y.AD_COMPLETE="ad-complete";Y.AD_STOPPED="ad-stopped";Y.AD_SKIPPED="ad-skipped";
569
569
  Y.AD_VOLUME_CHANGED="ad-volume-changed";Y.AD_MUTED="ad-muted";Y.AD_PAUSED="ad-paused";Y.AD_RESUMED="ad-resumed";Y.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";Y.CUEPOINTS_CHANGED="ad-cue-points-changed";Y.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";Y.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";Y.AD_CLICKED="ad-clicked";Y.AD_PROGRESS="ad-progress";Y.AD_BUFFERING="ad-buffering";Y.AD_IMPRESSION="ad-impression";Y.AD_DURATION_CHANGED="ad-duration-changed";Y.AD_CLOSED="ad-closed";
570
- Y.AD_LOADED="ad-loaded";Y.ALL_ADS_COMPLETED="all-ads-completed";Y.AD_LINEAR_CHANGED="ad-linear-changed";Y.AD_METADATA="ad-metadata";Y.AD_RECOVERABLE_ERROR="ad-recoverable-error";Y.AD_BREAK_READY="ad-break-ready";Y.AD_INTERACTION="ad-interaction";Sl=function(){return new Y};function Dn(a){return JSON.stringify(a,function(b,c){if("function"!=typeof c){if(c instanceof Event||c instanceof S){var d={};for(e in c)(b=c[e])&&"object"==typeof b?"detail"==e&&(d[e]=b):e in Event||(d[e]=b);return d}if(c instanceof Error){var e=new Set(["name","message","stack"]);for(d in c)e.add(d);b=t(Object.getOwnPropertyNames(c));for(d=b.next();!d.done;d=b.next())e.add(d.value);b={};e=t(e);for(d=e.next();!d.done;d=e.next())d=d.value,b[d]=c[d];c={__type__:"Error",contents:b}}else if(c instanceof
570
+ Y.AD_LOADED="ad-loaded";Y.ALL_ADS_COMPLETED="all-ads-completed";Y.AD_LINEAR_CHANGED="ad-linear-changed";Y.AD_METADATA="ad-metadata";Y.AD_RECOVERABLE_ERROR="ad-recoverable-error";Y.AD_BREAK_READY="ad-break-ready";Y.AD_INTERACTION="ad-interaction";Sl=function(){return new Y};function Dn(a){return JSON.stringify(a,function(b,c){if("function"!=typeof c){if(c instanceof Event||c instanceof R){var d={};for(e in c)(b=c[e])&&"object"==typeof b?"detail"==e&&(d[e]=b):e in Event||(d[e]=b);return d}if(c instanceof Error){var e=new Set(["name","message","stack"]);for(d in c)e.add(d);b=t(Object.getOwnPropertyNames(c));for(d=b.next();!d.done;d=b.next())e.add(d.value);b={};e=t(e);for(d=e.next();!d.done;d=e.next())d=d.value,b[d]=c[d];c={__type__:"Error",contents:b}}else if(c instanceof
571
571
  TimeRanges){e={__type__:"TimeRanges",length:c.length,start:[],end:[]};c=t(xi(c));for(d=c.next();!d.done;d=c.next())d=d.value,b=d.end,e.start.push(d.start),e.end.push(b);c=e}else c=c instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(c)}:"number"==typeof c?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c;return c}})}
572
572
  function En(a){return JSON.parse(a,function(b,c){if("NaN"==c)var d=NaN;else if("-Infinity"==c)d=-Infinity;else if("Infinity"==c)d=Infinity;else if(c&&"object"==typeof c&&"TimeRanges"==c.__type__)d=Fn(c);else if(c&&"object"==typeof c&&"Uint8Array"==c.__type__)d=new Uint8Array(c.entries);else if(c&&"object"==typeof c&&"Error"==c.__type__){b=c.contents;c=Error(b.message);for(d in b)c[d]=b[d];d=c}else d=c;return d})}
573
573
  function Fn(a){return{length:a.length,start:function(b){return a.start[b]},end:function(b){return a.end[b]}}}
574
574
  var Gn="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),Hn="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),In=["loop","playbackRate"],Jn=["pause","play"],Kn={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getImageTracks:2,getThumbnails:2,
575
575
  isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},Ln={getConfiguration:4,getStats:5,getTextTracks:2,getVariantTracks:2},Mn={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},Nn=[["getConfiguration","configure"]],On=[["isTextTrackVisible","setTextTrackVisibility"]],Pn="addChaptersTrack addTextTrackAsync addThumbnailsTrack cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),
576
- Qn=["attach","attachCanvas","detach","load","unload"];function Rn(a,b,c,d,e,f,g){var h=this;this.G=a;this.M=g;this.j=new P(b);this.P=c;this.u=!1;this.s=d;this.F=e;this.J=f;this.h=this.m=!1;this.L="";this.o=null;this.A=function(){return Sn(h)};this.D=function(k,l){k=En(l);switch(k.type){case "event":var m=k.targetName,p=Re(k.event);h.s(m,p);break;case "update":m=k.update;for(p in m){k=h.g[p]||{};for(var n in m[p])k[n]=m[p][n]}h.u&&(h.P(),h.u=!1);break;case "asyncComplete":if(p=k.id,n=k.error,k=h.i[p],delete h.i[p],k)if(n){p=new O(n.severity,n.category,
577
- n.code);for(m in n)p[m]=n[m];k.reject(p)}else k.resolve()}};this.g={video:{},player:{}};this.H=0;this.i={};this.l=null;Tn.add(this)}r=Rn.prototype;r.destroy=function(){Tn.delete(this);Vn(this);Wn&&Xn(this);this.j&&(this.j.stop(),this.j=null);this.F=this.s=null;this.h=this.m=!1;this.D=this.A=this.l=this.i=this.g=this.o=null;return Promise.resolve()};r.ta=function(){return this.h};r.ce=function(){return this.L};
578
- r.init=function(){if(this.G.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.j.Nb();var a=new chrome.cast.SessionRequest(this.G,[],null,this.M,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(Tn),d=c.next();!d.done;d=c.next())Yn(d.value,b)},function(b){for(var c=t(Tn),d=c.next();!d.done;d=c.next())d=d.value,Zn="available"==b,d.j.Nb()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});Zn&&this.j.O($n);(a=Wn)&&a.status!=chrome.cast.SessionStatus.STOPPED?
576
+ Qn=["attach","attachCanvas","detach","load","unload"];function Rn(a,b,c,d,e,f,g){var h=this;this.G=a;this.M=g;this.j=new P(b);this.O=c;this.u=!1;this.s=d;this.F=e;this.J=f;this.h=this.m=!1;this.L="";this.o=null;this.A=function(){return Sn(h)};this.D=function(k,l){k=En(l);switch(k.type){case "event":var m=k.targetName,p=Re(k.event);h.s(m,p);break;case "update":m=k.update;for(p in m){k=h.g[p]||{};for(var n in m[p])k[n]=m[p][n]}h.u&&(h.O(),h.u=!1);break;case "asyncComplete":if(p=k.id,n=k.error,k=h.i[p],delete h.i[p],k)if(n){p=new O(n.severity,n.category,
577
+ n.code);for(m in n)p[m]=n[m];k.reject(p)}else k.resolve()}};this.g={video:{},player:{}};this.H=0;this.i={};this.l=null;Un.add(this)}r=Rn.prototype;r.destroy=function(){Un.delete(this);Vn(this);Wn&&Xn(this);this.j&&(this.j.stop(),this.j=null);this.F=this.s=null;this.h=this.m=!1;this.D=this.A=this.l=this.i=this.g=this.o=null;return Promise.resolve()};r.ta=function(){return this.h};r.ce=function(){return this.L};
578
+ r.init=function(){if(this.G.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.j.Nb();var a=new chrome.cast.SessionRequest(this.G,[],null,this.M,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(Un),d=c.next();!d.done;d=c.next())Yn(d.value,b)},function(b){for(var c=t(Un),d=c.next();!d.done;d=c.next())d=d.value,Zn="available"==b,d.j.Nb()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});Zn&&this.j.N($n);(a=Wn)&&a.status!=chrome.cast.SessionStatus.STOPPED?
579
579
  Yn(this,a):Wn=null}else window.__onGCastApiAvailable!==ao&&(bo=window.__onGCastApiAvailable||null,window.__onGCastApiAvailable=ao)};r.je=function(a){this.o=a;this.h&&co(this,{type:"appData",appData:this.o})};r.cast=function(a){var b=this;return G(function(c){if(!b.m)throw new O(1,8,8E3);if(!Zn)throw new O(1,8,8001);if(b.h)throw new O(1,8,8002);b.l=new kc;chrome.cast.requestSession(function(d){return eo(b,a,d)},function(d){return fo(b,d)});return u(c,b.l,0)})};
580
580
  function go(a){if(a.h){var b=a.J();chrome.cast.requestSession(function(c){return eo(a,b,c)},function(c){return fo(a,c)})}}r.Bb=function(){if(this.h){Vn(this);if(Wn){Xn(this);try{Wn.stop(function(){},function(){})}catch(a){}Wn=null}Sn(this)}};
581
581
  r.get=function(a,b){var c=this;if("video"==a){if(Jn.includes(b))return function(){return c.Qe.apply(c,[a,b].concat(ia(Ia.apply(0,arguments))))}}else if("player"==a){if(Mn[b]&&!this.get("player","isLive")())return function(){};if(Pn.includes(b))return function(){return c.Qe.apply(c,[a,b].concat(ia(Ia.apply(0,arguments))))};if(Qn.includes(b))return function(){return c.qg.apply(c,[a,b].concat(ia(Ia.apply(0,arguments))))};if(Kn[b]||Ln[b])return function(){return c.g[a][b]}}return this.g[a][b]};
582
582
  r.set=function(a,b,c){this.g[a][b]=c;co(this,{type:"set",targetName:a,property:b,value:c})};function eo(a,b,c){Wn=c;c.addUpdateListener(a.A);c.addMessageListener("urn:x-cast:com.google.shaka.v2",a.D);Sn(a);co(a,{type:"init",initState:b,appData:a.o});a.l.resolve()}function fo(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.l.reject(new O(2,8,c,b))}
583
583
  r.Qe=function(a,b){co(this,{type:"call",targetName:a,methodName:b,args:Ia.apply(2,arguments)})};r.qg=function(a,b){var c=Ia.apply(2,arguments),d=new kc,e=this.H.toString();this.H++;this.i[e]=d;try{co(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function Yn(a,b){var c=a.J();a.l=new kc;a.u=!0;eo(a,c,b)}function Xn(a){var b=Wn;b.removeUpdateListener(a.A);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.D)}
584
- function Sn(a){var b=Wn?"connected"==Wn.status:!1;if(a.h&&!b){a.F();for(var c in a.g)a.g[c]={};Vn(a)}a.h=b;a.L=b?Wn.receiver.friendlyName:"";a.j.Nb()}function Vn(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new O(1,7,7E3))}}function co(a,b){b=Dn(b);var c=Wn;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},$a)}catch(d){throw b=new O(2,8,8005,d),c=new S("error",(new Map).set("detail",b)),a.s("player",c),a.Bb(),b;}}var $n=.02,Zn=!1,Wn=null,bo=null,Tn=new Set;
585
- function ao(a){bo?window.__onGCastApiAvailable=bo:delete window.__onGCastApiAvailable;bo=null;if(a)for(var b=t(Tn),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function ho(a,b,c,d){d=void 0===d?!1:d;Te.call(this);var e=this;this.i=a;this.h=b;this.m=this.o=this.j=this.s=this.l=null;this.D=c;this.A=d;this.u=new Map;this.g=new Rn(c,function(){return io(e)},function(){return jo(e)},function(f,g){return ko(e,f,g)},function(){return lo(e)},function(){return mo(e)},d);no(this)}qa(ho,Te);r=ho.prototype;
584
+ function Sn(a){var b=Wn?"connected"==Wn.status:!1;if(a.h&&!b){a.F();for(var c in a.g)a.g[c]={};Vn(a)}a.h=b;a.L=b?Wn.receiver.friendlyName:"";a.j.Nb()}function Vn(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new O(1,7,7E3))}}function co(a,b){b=Dn(b);var c=Wn;try{c.sendMessage("urn:x-cast:com.google.shaka.v2",b,function(){},ab)}catch(d){throw b=new O(2,8,8005,d),c=new R("error",(new Map).set("detail",b)),a.s("player",c),a.Bb(),b;}}var $n=.02,Zn=!1,Wn=null,bo=null,Un=new Set;
585
+ function ao(a){bo?window.__onGCastApiAvailable=bo:delete window.__onGCastApiAvailable;bo=null;if(a)for(var b=t(Un),c=b.next();!c.done;c=b.next())c.value.init();"function"===typeof window.__onGCastApiAvailable&&window.__onGCastApiAvailable(a)};function ho(a,b,c,d){d=void 0===d?!1:d;Te.call(this);var e=this;this.i=a;this.h=b;this.m=this.o=this.j=this.s=this.l=null;this.D=c;this.A=d;this.u=new Map;this.g=new Rn(c,function(){return io(e)},function(){return jo(e)},function(f,g){return ko(e,f,g)},function(){return lo(e)},function(){return mo(e)},d);no(this)}qa(ho,Te);r=ho.prototype;
586
586
  r.destroy=function(a){a&&this.g.Bb();this.m&&(this.m.release(),this.m=null);a=[];this.h&&(a.push(this.h.destroy()),this.h=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.s=this.l=this.i=null;Te.prototype.release.call(this);return Promise.all(a)};r.Xf=function(){return this.l};r.Of=function(){return this.s};r.pf=function(){return this.g.m&&Zn};r.ta=function(){return this.g.ta()};r.ce=function(){return this.g.ce()};
587
587
  r.cast=function(){var a=this,b;return G(function(c){return 1==c.g?(b=mo(a),u(c,a.g.cast(b),2)):a.h?u(c,a.h.re(),0):c.return()})};r.je=function(a){this.g.je(a)};r.Bg=function(){go(this.g)};r.Bb=function(){this.g.Bb()};
588
588
  r.rf=function(a,b){b=void 0===b?!1:b;var c=this;return G(function(d){if(1==d.g){if(a==c.D&&b==c.A)return d.return();c.D=a;c.A=b;c.g.Bb();return u(d,c.g.destroy(),2)}c.g=null;c.g=new Rn(a,function(){return io(c)},function(){return jo(c)},function(e,f){return ko(c,e,f)},function(){return lo(c)},function(){return mo(c)},b);c.g.init();A(d)})};
589
589
  function no(a){a.g.init();a.m=new lf;for(var b=t(Gn),c=b.next();!c.done;c=b.next())a.m.C(a.i,c.value,function(f){a.g.ta()||(f=Re(f),a.j.dispatchEvent(f))});for(var d in Se)a.m.C(a.h,Se[d],function(f){a.g.ta()||a.o.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.Tb=e,Object.defineProperty(a.l,b.Tb,{configurable:!1,enumerable:!0,get:function(f){return function(){return oo(a,f.Tb)}}(b),set:function(f){return function(g){var h=f.Tb;a.g.ta()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={Tb:b.Tb};a.s={};po(a,
590
- function(f){Object.defineProperty(a.s,f,{configurable:!1,enumerable:!0,get:function(){return qo(a,f)}})});ro(a);a.j=new Te;a.j.Xc=a.l;a.o=new Te;a.o.Xc=a.s}function ro(a){var b=new Map;po(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.u.set(c,d):a.u.set(d,c)):b.set(d,c)})}
590
+ function(f){Object.defineProperty(a.s,f,{configurable:!1,enumerable:!0,get:function(){return qo(a,f)}})});ro(a);a.j=new Te;a.j.Yc=a.l;a.o=new Te;a.o.Yc=a.s}function ro(a){var b=new Map;po(a,function(c,d){b.has(d)?(d=b.get(d),c.length<d.length?a.u.set(c,d):a.u.set(d,c)):b.set(d,c)})}
591
591
  function po(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)}}
592
- function mo(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.Fd(),startTime:null};a.i.pause();for(var c=t(In),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(Nn);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.h[e[0]]();b.player[d]=e}c=t(On);for(d=c.next();!d.done;d=c.next())e=d.value,d=e[1],e=a.h[e[0]](),b.playerAfterLoad[d]=e;return b}function io(a){var b=new S("caststatuschanged");a.dispatchEvent(b)}
593
- function jo(a){var b=new S(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
592
+ function mo(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.Gd(),startTime:null};a.i.pause();for(var c=t(In),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(Nn);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.h[e[0]]();b.player[d]=e}c=t(On);for(d=c.next();!d.done;d=c.next())e=d.value,d=e[1],e=a.h[e[0]](),b.playerAfterLoad[d]=e;return b}function io(a){var b=new R("caststatuschanged");a.dispatchEvent(b)}
593
+ function jo(a){var b=new R(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
594
594
  function lo(a){for(var b=t(Nn),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[1];d=a.g.get("player",d[0])();a.h[c](d)}var e=a.g.get("player","getAssetUri")();c=a.g.get("video","ended");b=Promise.resolve();var f=a.i.autoplay;d=null;c||(d=a.g.get("video","currentTime"));e&&(a.i.autoplay=!1,b=a.h.load(e,d));var g={};c=t(In);for(d=c.next();!d.done;d=c.next())d=d.value,g[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var h=t(In),k=h.next();!k.done;k=h.next())k=k.value,a.i[k]=g[k];h=t(On);for(k=
595
- h.next();!k.done;k=h.next()){var l=k.value;k=l[1];l=a.g.get("player",l[0])();a.h[k](l)}a.i.autoplay=f;e&&a.i.play()}},function(h){h=(new Map).set("detail",h);h=new S("error",h);a.h.dispatchEvent(h)})}
595
+ h.next();!k.done;k=h.next()){var l=k.value;k=l[1];l=a.g.get("player",l[0])();a.h[k](l)}a.i.autoplay=f;e&&a.i.play()}},function(h){h=(new Map).set("detail",h);h=new R("error",h);a.h.dispatchEvent(h)})}
596
596
  function oo(a,b){if("addEventListener"==b)return function(d,e,f){return a.j.addEventListener(d,e,f)};if("removeEventListener"==b)return function(d,e,f){return a.j.removeEventListener(d,e,f)};if(a.g.ta()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.ta()?a.g.get("video",b):(b=a.i[b],"function"==typeof b&&(b=b.bind(a.i)),b)}
597
597
  function qo(a,b){a.u.has(b)&&(b=a.u.get(b));if("addEventListener"==b)return function(c,d,e){return a.o.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.o.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.l};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.kc()};if("getDrmEngine"==b)return function(){return a.h.m};if("getAdManager"==b)return function(){return a.h.Ge()};
598
598
  if("setVideoContainer"==b)return function(c){return a.h.af(c)};if(a.g.ta()){if("getManifest"==b||"drmInfo"==b)return function(){Xa(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Xa(b+"() does not work while casting!");return Promise.resolve()}}return a.g.ta()&&0==Object.keys(a.g.g.video).length&&(Kn[b]||Ln[b])||!a.g.ta()?a.h[b].bind(a.h):a.g.get("player",b)}
@@ -602,12 +602,12 @@ r.zg=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.
602
602
  r.destroy=function(){var a=this,b,c;return G(function(d){if(1==d.g)return a.j&&(a.j.release(),a.j=null),b=[],a.h&&(b.push(a.h.destroy()),a.h=null),a.G&&(a.G.stop(),a.G=null),a.g=null,a.H=null,a.D=null,a.F=!1,a.o=!0,a.l=null,a.s=null,Te.prototype.release.call(a),u(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();A(d)})};
603
603
  function uo(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return vo(a)};b.onSenderDisconnected=function(){return vo(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&wo(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);wo(a,{type:"event",targetName:"video",event:{type:"volumechange"}},a.l)};a.s=b.getCastMessageBus("urn:x-cast:com.google.cast.media");a.s.onMessage=function(e){return xo(a,
604
604
  e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return yo(a,e)};b.start();b=t(Gn);for(var c=b.next();!c.done;c=b.next())a.j.C(a.g,c.value,function(e){return zo(a,"video",e)});for(var d in Se)a.j.C(a.h,Se[d],function(e){return zo(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.le(3840,2160):a.h.le(1920,1080);a.j.C(a.g,"loadeddata",function(){a.A=!0});a.j.C(a.h,"loading",function(){a.o=
605
- !1;Ao(a)});a.j.C(a.g,"playing",function(){a.o=!1;Ao(a)});a.j.C(a.g,"pause",function(){Ao(a)});a.j.C(a.h,"unloading",function(){a.o=!0;Ao(a)});a.j.C(a.g,"ended",function(){(new P(function(){a.g&&a.g.ended&&(a.o=!0,Ao(a))})).O(Bo)})}function vo(a){a.m=0;a.u=!0;a.F=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;Ao(a)}
606
- function Ao(a){var b;G(function(c){if(1==c.g)return u(c,Promise.resolve(),2);if(!a.h)return c.return();b=new S("caststatuschanged");a.dispatchEvent(b);Co(a)||Do(a);A(c)})}
607
- function Eo(a,b,c){var d,e,f,g,h,k,l,m,p,n;G(function(q){switch(q.g){case 1:for(d in b.player)e=b.player[d],a.h[d](e);a.D(c);f=a.g.autoplay;return b.manifest?(a.g.autoplay=!1,C(q,5),u(q,a.h.load(b.manifest,b.startTime),7)):u(q,Promise.resolve(),3);case 7:va(q,3);break;case 5:return g=wa(q),h=(new Map).set("detail",g),k=new S("error",h),a.h&&a.h.dispatchEvent(k),q.return();case 3:if(!a.h)return q.return();for(l in b.video)m=b.video[l],a.g[l]=m;for(p in b.playerAfterLoad)n=b.playerAfterLoad[p],a.h[p](n);
605
+ !1;Ao(a)});a.j.C(a.g,"playing",function(){a.o=!1;Ao(a)});a.j.C(a.g,"pause",function(){Ao(a)});a.j.C(a.h,"unloading",function(){a.o=!0;Ao(a)});a.j.C(a.g,"ended",function(){(new P(function(){a.g&&a.g.ended&&(a.o=!0,Ao(a))})).N(Bo)})}function vo(a){a.m=0;a.u=!0;a.F=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;Ao(a)}
606
+ function Ao(a){var b;G(function(c){if(1==c.g)return u(c,Promise.resolve(),2);if(!a.h)return c.return();b=new R("caststatuschanged");a.dispatchEvent(b);Co(a)||Do(a);A(c)})}
607
+ function Eo(a,b,c){var d,e,f,g,h,k,l,m,p,n;G(function(q){switch(q.g){case 1:for(d in b.player)e=b.player[d],a.h[d](e);a.D(c);f=a.g.autoplay;return b.manifest?(a.g.autoplay=!1,C(q,5),u(q,a.h.load(b.manifest,b.startTime),7)):u(q,Promise.resolve(),3);case 7:va(q,3);break;case 5:return g=xa(q),h=(new Map).set("detail",g),k=new R("error",h),a.h&&a.h.dispatchEvent(k),q.return();case 3:if(!a.h)return q.return();for(l in b.video)m=b.video[l],a.g[l]=m;for(p in b.playerAfterLoad)n=b.playerAfterLoad[p],a.h[p](n);
608
608
  a.g.autoplay=f;b.manifest&&(a.g.play(),Do(a));A(q)}})}function zo(a,b,c){a.h&&(to(a),wo(a,{type:"event",targetName:b,event:c},a.l))}
609
- function to(a){a.G.O(Fo);for(var b={video:{},player:{}},c=t(Hn),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.h.T())for(var e in Mn)0==a.m%Mn[e]&&(b.player[e]=a.h[e]());for(var f in Kn)0==a.m%Kn[f]&&(b.player[f]=a.h[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;wo(a,{type:"update",update:b},a.l);for(var g in Ln)0==a.m%Ln[g]&&(b={player:{}},b.player[g]=a.h[g](),wo(a,{type:"update",update:b},a.l));a.A&&(a.m+=
610
- 1);Co(a)}function Co(a){return a.u&&(a.g.duration||a.h.T())?(Go(a),a.u=!1,!0):!1}function Go(a,b){var c={contentId:a.h.Fd(),streamType:a.h.T()?"LIVE":"BUFFERED",contentType:""};a.h.T()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);Do(a,void 0===b?0:b,c)}
609
+ function to(a){a.G.N(Fo);for(var b={video:{},player:{}},c=t(Hn),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.h.T())for(var e in Mn)0==a.m%Mn[e]&&(b.player[e]=a.h[e]());for(var f in Kn)0==a.m%Kn[f]&&(b.player[f]=a.h[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;wo(a,{type:"update",update:b},a.l);for(var g in Ln)0==a.m%Ln[g]&&(b={player:{}},b.player[g]=a.h[g](),wo(a,{type:"update",update:b},a.l));a.A&&(a.m+=
610
+ 1);Co(a)}function Co(a){return a.u&&(a.g.duration||a.h.T())?(Go(a),a.u=!1,!0):!1}function Go(a,b){var c={contentId:a.h.Gd(),streamType:a.h.T()?"LIVE":"BUFFERED",contentType:""};a.h.T()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);Do(a,void 0===b?0:b,c)}
611
611
  function yo(a,b){var c=En(b.data);switch(c.type){case "init":a.m=0;a.A=!1;a.u=!0;Eo(a,c.initState,c.appData);to(a);break;case "appData":a.D(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;
612
612
  "player"==d&&"load"==e&&(a.m=0,a.A=!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.u=!0}));c.then(function(){return Ho(a,g,f,null)},function(h){return Ho(a,g,f,h)})}}
613
613
  function xo(a,b){var c=En(b.data);switch(c.type){case "PLAY":a.g.play();Do(a);break;case "PAUSE":a.g.pause();Do(a);break;case "SEEK":b=c.currentTime;var d=c.resumeState;null!=b&&(a.g.currentTime=Number(b));d&&"PLAYBACK_START"==d?(a.g.play(),Do(a)):d&&"PLAYBACK_PAUSE"==d&&(a.g.pause(),Do(a));break;case "STOP":a.h.re().then(function(){a.h&&Do(a)});break;case "GET_STATUS":Go(a,Number(c.requestId));break;case "VOLUME":d=c.volume;b=d.level;d=d.muted;var e=a.g.volume,f=a.g.muted;null!=b&&(a.g.volume=Number(b));
@@ -615,7 +615,7 @@ null!=d&&(a.g.muted=d);e==a.g.volume&&f==a.g.muted||Do(a);break;case "LOAD":a.m=
615
615
  function Ho(a,b,c,d){a.h&&wo(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function wo(a,b,c,d){a.F&&(a=Dn(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function Do(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.o?Io:a.h.Hd()?Jo:a.g.paused?Ko:Lo,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);wo(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.s)}
616
616
  K("shaka.cast.CastReceiver",so);so.prototype.destroy=so.prototype.destroy;so.prototype.setContentArtist=so.prototype.wg;so.prototype.setContentImage=so.prototype.xg;so.prototype.setContentTitle=so.prototype.zg;so.prototype.clearContentMetadata=so.prototype.vf;so.prototype.setContentMetadata=so.prototype.yg;so.prototype.isIdle=so.prototype.ag;so.prototype.isConnected=so.prototype.isConnected;var Fo=.5,Bo=5,Io="IDLE",Lo="PLAYING",Jo="BUFFERING",Ko="PAUSED";function Mo(a,b,c){var d=No(a),e=null;a=[];var f=[],g=new Set(d.map(function(h){return h.keyId}));g.delete(null);if(1<g.size)throw new O(2,4,4010);b||(f=d.filter(function(h){return"urn:mpeg:dash:mp4protection:2011"==h.he?(e=h.init||e,!1):!0}),f.length&&(a=Oo(e,f,c,g),0==a.length&&(a=[ec("",e)])));if(d.length&&(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(ec(c,e));if(g=Array.from(g)[0]||null)for(b=t(a),c=b.next();!c.done;c=b.next())for(c=
617
617
  t(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;return{Be:g,th:e,drmInfos:a,Fe:!0}}function Po(a,b,c,d){var e=Mo(a,c,d);if(b.Fe){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.Fe=!1}else if(0<e.drmInfos.length&&(b.drmInfos=b.drmInfos.filter(function(f){return e.drmInfos.some(function(g){return g.keySystem==f.keySystem})}),0==b.drmInfos.length))throw new O(2,4,4008);return e.Be||b.Be}
618
- function Qo(a){var b=0,c=Jb(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=L(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}
618
+ function Qo(a){var b=0,c=Kb(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=L(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}
619
619
  function Ro(a){a=t(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next()){b=t(b.value.childNodes);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c instanceof Element&&"LA_URL"==c.tagName)return c.textContent}return""}function So(a){a=Mf(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=Kc(a.textContent);a=Qo(a).filter(function(b){return b.type===To})[0];if(!a)return"";a=Cc(a.value,!0);return(a=bg(a,"WRMHEADER"))?Ro(a):""}
620
620
  function Oo(a,b,c,d){var e=[];b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g=c[f.he];if(g){var h;if(h=Mf(f.node,"urn:microsoft:playready","pro")){h=Kc(h.textContent);var k=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);h=[{initData:Jf(h,k,new Set,0),initDataType:"cenc",keyId:f.keyId}]}else h=null;k=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===f.he)if(k=d,0==k.size)k=null;else{var l=new Uint8Array([16,119,239,236,192,178,77,2,172,227,60,30,82,
621
621
  226,251,75]),m=new Uint8Array([]);k=[{initData:Jf(m,l,k,1),initDataType:"cenc",keyId:f.keyId}]}h=ec(g,f.init||a||h||k);if(g=Uo.get(g))h.licenseServerUri=g(f);e.push(h)}}return e}function No(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=Vo(c.value))&&b.push(c);return b}
@@ -627,38 +627,38 @@ m)if(p){p=Tf(p,"t",Zf);if(null==p)break;else if(n>=p)break;m=Math.ceil((p-n)/q)-
627
627
  function Zo(a,b,c){return[b(a.I),b(a.ga),b(a.aa)].filter(cc).map(function(d){return Kf(d,c)}).reduce(function(d,e){return d||e})}
628
628
  function $o(a,b,c,d,e,f){for(var g=Pf(a,"http://www.w3.org/1999/xlink","href"),h=Pf(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Array.from(a.attributes)),l=k.next();!l.done;l=k.next())l=l.value,"http://www.w3.org/1999/xlink"==l.namespaceURI&&a.removeAttributeNS(l.namespaceURI,l.localName);if(5<=f)return Le(new O(2,4,4028));if("onLoad"!=h)return Le(new O(2,4,4027));var m=dc([d],[g]);return e.request(0,bf(m,b)).Z(function(p){p=dg(p.data,a.tagName);if(!p)return Le(new O(2,4,4001,g));
629
629
  for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;p.childNodes.length;){var n=p.childNodes[0];p.removeChild(n);a.appendChild(n)}p=t(Array.from(p.attributes));for(n=p.next();!n.done;n=p.next())a.setAttributeNode(n.value.cloneNode(!1));return ap(a,b,c,m[0],e,f+1)})}
630
- function ap(a,b,c,d,e,f){f=void 0===f?0:f;if(Pf(a,"http://www.w3.org/1999/xlink","href")){var g=$o(a,b,c,d,e,f);c&&(g=g.Z(void 0,function(){return ap(a,b,c,d,e,f)}));return g}g=[];for(var h=t(Array.from(a.childNodes)),k=h.next();!k.done;k=h.next())k=k.value,k instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==Pf(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(ap(k,b,c,d,e,f)));return Pe(g).Z(function(){return a})};function bp(a,b,c,d,e,f,g){var h,k=(new yf).R("sidx",function(l){h=cp(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new O(2,3,3004);}
631
- function cp(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.K();if(0==k)throw new O(2,3,3005);if(0==g.version){var l=g.reader.K();var m=g.reader.K()}else l=g.reader.$a(),m=g.reader.$a();g.reader.skip(2);var p=g.reader.be();a=a+g.size+m;for(m=0;m<p;m++){var n=g.reader.K(),q=(n&2147483648)>>>31;n&=2147483647;var v=g.reader.K();g.reader.skip(4);if(1==q)throw new O(2,3,3006);h.push(new T(l/k+c,(l+v)/k+c,function(){return f},a,a+n-1,b,c,d,e));l+=v;a+=n}g.parser.stop();return h};function dp(a){this.h=Jb(a);this.g=new vf(this.h,0)}dp.prototype.ia=function(){return this.g.ia()};
632
- function ep(a){var b=fp(a);if(7<b.length)throw new O(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=fp(a);a:{d=t(gp);for(var e=d.next();!e.done;e=d.next())if(Fb(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.$();else{if(8==b.length&&b[1]&224)throw new O(2,3,3001);for(e=d=0;e<b.length;e++){var f=b[e];d=0==e?f&(1<<8-b.length)-1:256*d+f}b=d}b=a.g.$()+b<=a.h.byteLength?b:a.h.byteLength-a.g.$();d=Jb(a.h,a.g.$(),b);a.g.skip(b);return new hp(c,d)}
630
+ function ap(a,b,c,d,e,f){f=void 0===f?0:f;if(Pf(a,"http://www.w3.org/1999/xlink","href")){var g=$o(a,b,c,d,e,f);c&&(g=g.Z(void 0,function(){return ap(a,b,c,d,e,f)}));return g}g=[];for(var h=t(Array.from(a.childNodes)),k=h.next();!k.done;k=h.next())k=k.value,k instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==Pf(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(ap(k,b,c,d,e,f)));return Pe(g).Z(function(){return a})};function bp(a,b,c,d,e,f,g){var h,k=(new yf).P("sidx",function(l){h=cp(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new O(2,3,3004);}
631
+ function cp(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.K();if(0==k)throw new O(2,3,3005);if(0==g.version){var l=g.reader.K();var m=g.reader.K()}else l=g.reader.$a(),m=g.reader.$a();g.reader.skip(2);var p=g.reader.be();a=a+g.size+m;for(m=0;m<p;m++){var n=g.reader.K(),q=(n&2147483648)>>>31;n&=2147483647;var v=g.reader.K();g.reader.skip(4);if(1==q)throw new O(2,3,3006);h.push(new T(l/k+c,(l+v)/k+c,function(){return f},a,a+n-1,b,c,d,e));l+=v;a+=n}g.parser.stop();return h};function dp(a){this.h=Kb(a);this.g=new vf(this.h,0)}dp.prototype.ia=function(){return this.g.ia()};
632
+ function ep(a){var b=fp(a);if(7<b.length)throw new O(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=fp(a);a:{d=t(gp);for(var e=d.next();!e.done;e=d.next())if(Gb(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.$();else{if(8==b.length&&b[1]&224)throw new O(2,3,3001);for(e=d=0;e<b.length;e++){var f=b[e];d=0==e?f&(1<<8-b.length)-1:256*d+f}b=d}b=a.g.$()+b<=a.h.byteLength?b:a.h.byteLength-a.g.$();d=Kb(a.h,a.g.$(),b);a.g.skip(b);return new hp(c,d)}
633
633
  function fp(a){var b=a.g.$(),c=a.g.Sa();if(0==c)throw new O(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return L(a.h,b,c)}var gp=[[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 hp(a,b){this.id=a;this.g=b}
634
634
  function ip(a){if(8<a.g.byteLength)throw new O(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new O(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function jp(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new dp(a.g);for(var p=null,n=null;a.ia();){var q=ep(a);if(187==q.id){var v=kp(q);v&&(q=c*v.Gg,v=b+v.pg,null!=p&&m.push(new T(p+g,q+g,l,n,v-1,f,g,h,k)),p=q,n=v)}}null!=p&&m.push(new T(p+g,d+g,l,n,null,f,g,h,k));return m}
635
635
  function kp(a){var b=new dp(a.g);a=ep(b);if(179!=a.id)throw new O(2,3,3013);a=ip(a);b=ep(b);if(183!=b.id)throw new O(2,3,3012);b=new dp(b.g);for(var c=0;b.ia();){var d=ep(b);if(241==d.id){c=ip(d);break}}return{Gg:a,pg:c}};function lp(a,b){b=Zo(a,b,"Initialization");if(!b)return null;var c=a.I.wa,d=b.getAttribute("sourceURL");d&&(c=dc(a.I.wa,[d]));d=0;var e=null;if(b=Tf(b,"range",Wf))d=b.start,e=b.end;return new pi(function(){return c},d,e,mp(a))}
636
636
  function np(a,b){var c=Number(Yo(a,op,"presentationTimeOffset"))||0,d=Yo(a,op,"timescale"),e=1;d&&(e=Yf(d)||1);var f=c/e||0,g=lp(a,op);pp(a,g);var h=Ve(a);return{Cb:function(){var k=Zo(h,op,"RepresentationIndex");var l=h.I.wa;k&&(k=k.getAttribute("sourceURL"))&&(l=dc(h.I.wa,[k]));k=qp(h);return rp(h,b,g,l,k.start,k.end,f)}}}
637
637
  function rp(a,b,c,d,e,f,g){var h,k,l,m,p,n,q,v,y,w,x,D,z,B,E;return G(function(F){if(1==F.g)return h=a.presentationTimeline,k=!a.Xa||!a.U.Id,l=a.U.start,m=a.U.duration,p=a.I.mimeType.split("/")[1],n=b,q=null,v=[n(d,e,f),"webm"==p?n(c.ya(),c.Ba,c.ma):null],n=null,u(F,Promise.all(v),2);y=F.h;w=y[0];x=y[1]||null;D=null;z=l-g;B=l;E=m?l+m:Infinity;if("mp4"==p)var H=bp(w,e,d,c,z,B,E);else{H=new dp(x);if(440786851!=ep(H).id)throw new O(2,3,3008);var I=ep(H);if(408125543!=I.id)throw new O(2,3,3009);H=I.g.byteOffset;
638
- I=new dp(I.g);for(var J=null;I.ia();){var N=ep(I);if(357149030==N.id){J=N;break}}if(!J)throw new O(2,3,3010);J=new dp(J.g);N=1E6;for(I=null;J.ia();){var R=ep(J);if(2807729==R.id)N=ip(R);else if(17545==R.id)if(4==R.g.byteLength)I=R.g.getFloat32(0);else if(8==R.g.byteLength)I=R.g.getFloat64(0);else throw new O(2,3,3003);}if(null==I)throw new O(2,3,3011);J=N/1E9;I*=J;N=ep(new dp(w));if(475249515!=N.id)throw new O(2,3,3007);H=jp(N,H,J,I,d,c,z,B,E)}D=H;h.Jb(D);q=new Jj(D);k&&q.Ya(B,E,!0);return F.return(q)})}
638
+ I=new dp(I.g);for(var J=null;I.ia();){var N=ep(I);if(357149030==N.id){J=N;break}}if(!J)throw new O(2,3,3010);J=new dp(J.g);N=1E6;for(I=null;J.ia();){var S=ep(J);if(2807729==S.id)N=ip(S);else if(17545==S.id)if(4==S.g.byteLength)I=S.g.getFloat32(0);else if(8==S.g.byteLength)I=S.g.getFloat64(0);else throw new O(2,3,3003);}if(null==I)throw new O(2,3,3011);J=N/1E9;I*=J;N=ep(new dp(w));if(475249515!=N.id)throw new O(2,3,3007);H=jp(N,H,J,I,d,c,z,B,E)}D=H;h.Jb(D);q=new Jj(D);k&&q.Ya(B,E,!0);return F.return(q)})}
639
639
  function op(a){return a.xc}function qp(a){var b=Zo(a,op,"RepresentationIndex");a=Yo(a,op,"indexRange");a=Wf(a||"");b&&(a=Tf(b,"range",Wf,a));return a}function pp(a,b){sp(a,b);if(!qp(a))throw new O(2,4,4002);}function sp(a,b){var c=a.I.mimeType.split("/")[1];if(a.I.contentType!=ic&&"mp4"!=c&&"webm"!=c)throw new O(2,4,4006);if("webm"==c&&!b)throw new O(2,4,4005);}
640
- function mp(a){var b=a.I;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.bd,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function tp(a,b){var c=lp(a,up),d=vp(a);if(!d.ja&&!d.timeline&&1<d.Hb.length)throw new O(2,4,4002);if(!d.ja&&!a.U.duration&&!d.timeline&&1==d.Hb.length)throw new O(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new O(2,4,4002);var e=null,f=null;a.aa.id&&a.I.id&&(f=b[a.aa.id+","+a.I.id])&&(e=f.segmentIndex);var g=wp(a.U.start,a.U.duration,a.I.wa,d,c);b=!e;e?e.Ib(g,a.presentationTimeline.Oa()):e=new Jj(g);a.presentationTimeline.Jb(g);a.Xa&&a.U.Id||e.Ya(a.U.start,a.U.duration?a.U.start+a.U.duration:
640
+ function mp(a){var b=a.I;return{bandwidth:a.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate||null,height:b.height||null,mimeType:b.mimeType,channelsCount:b.cd,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function tp(a,b){var c=lp(a,up),d=vp(a);if(!d.ja&&!d.timeline&&1<d.Hb.length)throw new O(2,4,4002);if(!d.ja&&!a.U.duration&&!d.timeline&&1==d.Hb.length)throw new O(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new O(2,4,4002);var e=null,f=null;a.aa.id&&a.I.id&&(f=b[a.aa.id+","+a.I.id])&&(e=f.segmentIndex);var g=wp(a.U.start,a.U.duration,a.I.wa,d,c);b=!e;e?e.Ib(g,a.presentationTimeline.Oa()):e=new Jj(g);a.presentationTimeline.Jb(g);a.Xa&&a.U.Id||e.Ya(a.U.start,a.U.duration?a.U.start+a.U.duration:
641
641
  Infinity,b);f&&(f.segmentIndex=e);return{Cb:function(){e&&0!=e.g.length||e.qc(g);return Promise.resolve(e)}}}function up(a){return a.ab}function vp(a){var b=xp(a);a=Xo(a,up);var c=a.Mb;0==c&&(c=1);var d=0;a.ja?d=a.ja*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{ja:a.ja,startTime:d,Mb:c,Ta:a.Ta,timeline:a.timeline,Hb:b}}
642
- function wp(a,b,c,d,e){var f=d.Hb.length;d.timeline&&d.timeline.length!=d.Hb.length&&(f=Math.min(d.timeline.length,d.Hb.length));for(var g=a-d.Ta,h=b?a+b:Infinity,k=[],l=d.startTime,m={},p=0;p<f;m={qd:m.qd},p++){var n=d.Hb[p];m.qd=dc(c,[n.fg]);var q=void 0;q=null!=d.ja?l+d.ja:d.timeline?d.timeline[p].end:l+b;k.push(new T(a+l,a+q,function(v){return function(){return v.qd}}(m),n.start,n.end,e,g,a,h));l=q}return k}
642
+ function wp(a,b,c,d,e){var f=d.Hb.length;d.timeline&&d.timeline.length!=d.Hb.length&&(f=Math.min(d.timeline.length,d.Hb.length));for(var g=a-d.Ta,h=b?a+b:Infinity,k=[],l=d.startTime,m={},p=0;p<f;m={rd:m.rd},p++){var n=d.Hb[p];m.rd=dc(c,[n.fg]);var q=void 0;q=null!=d.ja?l+d.ja:d.timeline?d.timeline[p].end:l+b;k.push(new T(a+l,a+q,function(v){return function(){return v.rd}}(m),n.start,n.end,e,g,a,h));l=q}return k}
643
643
  function xp(a){return[a.I.ab,a.ga.ab,a.aa.ab].filter(cc).map(function(b){return Lf(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Ke&&(a.Ke=!0);var c=b.getAttribute("media");b=Tf(b,"mediaRange",Wf,{start:0,end:null});return{fg:c,start:b.start,end:b.end}})};function yp(a,b,c,d,e,f){var g=zp(a),h=Ap(a);Bp(h);var k=Ve(a);if(h.pc)return sp(a,g),{Cb:function(){var q=Wo(h.pc,k.I.id,null,k.bandwidth||null,null);q=dc(k.I.wa,[q]);return rp(k,b,g,q,0,null,h.Ta)}};if(h.ja)return d||"image"===a.ga.contentType||(a.presentationTimeline.Ud(h.ja),a.presentationTimeline.Vd(a.U.start)),{Cb:function(){return Cp(k,h,e,g,f)}};var l=null;d=d=null;a.aa.id&&a.I.id&&(d=a.aa.id+","+a.I.id,d=c[d])&&(l=d.segmentIndex);var m=Dp(k,h,g);c=a.U.start;var p=a.U.duration?a.U.start+a.U.duration:
644
644
  Infinity,n=!(a.Xa&&a.U.Id);l?(n&&(new Jj(m)).Ya(c,p,!0),l.Ib(m,a.presentationTimeline.Oa())):l=new Jj(m);a.presentationTimeline.Jb(m);n&&l.Ya(c,p);d&&a.Xa&&(d.segmentIndex=l);return{Cb:function(){l&&0!=l.g.length||l.qc(m);return Promise.resolve(l)}}}function Ep(a){return a.yc}function Ap(a){var b=Xo(a,Ep),c=Yo(a,Ep,"media");a=Yo(a,Ep,"index");return{ja:b.ja,timescale:b.timescale,Mb:b.Mb,Ta:b.Ta,se:b.se,timeline:b.timeline,Rd:c,pc:a}}
645
645
  function Bp(a){var b=a.pc?1:0;b+=a.timeline?1:0;b+=a.ja?1:0;if(0==b)throw new O(2,4,4002);1!=b&&(a.pc&&(a.timeline=null),a.ja=null);if(!a.pc&&!a.Rd)throw new O(2,4,4002);}
646
- function Cp(a,b,c,d,e){function f(J){var N=(J-q)*n,R=N+b.Ta,Q=N+l;N=Q+n;var ba=Math.min(N,h());Q=new T(Q,ba,function(){var M=Wo(y,x,J,w,R*v);return dc(D,[M])},0,null,d,z,l,h());Q.l=N;return Q}function g(){var J=[Math.max(k.Oa(),l),Math.min(k.gb(),h())].map(function(N){return N-l});return[Math.ceil(J[0]/n),Math.ceil(J[1]/n)-1].map(function(N){return N+q})}function h(){var J=null!=m&&e[m]||p;return J?l+J:Infinity}var k=a.presentationTimeline,l=a.U.start,m=a.aa.id,p=a.U.duration,n=b.ja,q=b.Mb,v=b.timescale,
647
- y=b.Rd,w=a.bandwidth||null,x=a.I.id,D=a.I.wa,z=l-b.Ta,B=g();a=a.Xa?Math.max(B[0],B[1]-c+1):B[0];B=B[1];c=[];for(var E=a;E<=B;++E){var F=f(E);c.push(F)}var H=new Jj(c);c=k.gb()<h();E=k.T();if(c||E){var I=Math.max(a,B+1);H.hd(n,function(){var J=k.Oa();H.eb(J);var N=t(g());N.next();N=N.next().value;for(var R=[];I<=N;){var Q=f(I);R.push(Q);I++}return J>h()&&!R.length?null:R})}return Promise.resolve(H)}
648
- function Dp(a,b,c){var d=a.U.start,e=a.U.duration,f=d-b.Ta;e=e?d+e:Infinity;for(var g=[],h={},k=0;k<b.timeline.length;h={pd:h.pd,td:h.td,wd:h.wd,md:h.md,yd:h.yd,nd:h.nd},k++){var l=b.timeline[k],m=l.start,p=l.Fg;l=l.end;h.wd=k+b.Mb;h.yd=p+b.se;h.td=a.I.id;h.md=a.bandwidth||null;h.pd=b.Rd;h.nd=a.I.wa;g.push(new T(d+m,d+l,function(n){return function(){var q=Wo(n.pd,n.td,n.wd,n.md||null,n.yd);return dc(n.nd,[q]).map(function(v){return v.toString()})}}(h),0,null,c,f,d,e))}return g}
646
+ function Cp(a,b,c,d,e){function f(J){var N=(J-q)*n,S=N+b.Ta,Q=N+l;N=Q+n;var ba=Math.min(N,h());Q=new T(Q,ba,function(){var M=Wo(y,x,J,w,S*v);return dc(D,[M])},0,null,d,z,l,h());Q.j=N;return Q}function g(){var J=[Math.max(k.Oa(),l),Math.min(k.gb(),h())].map(function(N){return N-l});return[Math.ceil(J[0]/n),Math.ceil(J[1]/n)-1].map(function(N){return N+q})}function h(){var J=null!=m&&e[m]||p;return J?l+J:Infinity}var k=a.presentationTimeline,l=a.U.start,m=a.aa.id,p=a.U.duration,n=b.ja,q=b.Mb,v=b.timescale,
647
+ y=b.Rd,w=a.bandwidth||null,x=a.I.id,D=a.I.wa,z=l-b.Ta,B=g();a=a.Xa?Math.max(B[0],B[1]-c+1):B[0];B=B[1];c=[];for(var E=a;E<=B;++E){var F=f(E);c.push(F)}var H=new Jj(c);c=k.gb()<h();E=k.T();if(c||E){var I=Math.max(a,B+1);H.jd(n,function(){var J=k.Oa();H.eb(J);var N=t(g());N.next();N=N.next().value;for(var S=[];I<=N;){var Q=f(I);S.push(Q);I++}return J>h()&&!S.length?null:S})}return Promise.resolve(H)}
648
+ function Dp(a,b,c){var d=a.U.start,e=a.U.duration,f=d-b.Ta;e=e?d+e:Infinity;for(var g=[],h={},k=0;k<b.timeline.length;h={qd:h.qd,ud:h.ud,xd:h.xd,nd:h.nd,zd:h.zd,od:h.od},k++){var l=b.timeline[k],m=l.start,p=l.Fg;l=l.end;h.xd=k+b.Mb;h.zd=p+b.se;h.ud=a.I.id;h.nd=a.bandwidth||null;h.qd=b.Rd;h.od=a.I.wa;g.push(new T(d+m,d+l,function(n){return function(){var q=Wo(n.qd,n.ud,n.xd,n.nd||null,n.zd);return dc(n.od,[q]).map(function(v){return v.toString()})}}(h),0,null,c,f,d,e))}return g}
649
649
  function zp(a){var b=Yo(a,Ep,"initialization");if(!b)return null;var c=a.I.id,d=a.bandwidth||null,e=a.I.wa;return new pi(function(){var f=Wo(b,c,null,d,null);return dc(e,[f])},0,null,mp(a))};function Fp(){this.l=[];this.g=[];this.h=[];this.j=[];this.i=[];this.m=new Set}Fp.prototype.release=function(){for(var a=t(this.g.concat(this.h,this.j,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.g=[];this.h=[];this.j=[];this.i=[];this.l=[]};
650
- function Gp(a,b,c){var d,e,f,g,h,k,l,m,p,n,q,v,y,w,x,D,z,B,E,F,H,I,J,N,R,Q,ba,M,ka,Fa;return G(function(xa){switch(xa.g){case 1:d=jc;Hp(b);Ip(b);Jp(b);Kp(b);if(!c&&1==b.length){e=b[0];a.g=e.Lc;a.h=e.jd;a.j=e.textStreams;a.i=e.imageStreams;xa.B(2);break}f=-1;for(g=0;g<b.length;g++)h=b[g],a.m.has(h.id)||(a.m.add(h.id),-1==f&&(f=g));if(-1==f)return xa.return();k=b.map(function(Na){return Na.Lc});l=b.map(function(Na){return Na.jd});m=b.map(function(Na){return Na.textStreams});p=b.map(function(Na){return Na.imageStreams});
651
- n=t(m);for(q=n.next();!q.done;q=n.next())v=q.value,v.push(Lp(d.X));y=t(p);for(w=y.next();!w.done;w=y.next())x=w.value,x.push(Lp(d.Xb));return u(xa,Mp(a.g,k,f,Np,Op),3);case 3:return u(xa,Mp(a.h,l,f,Np,Op),4);case 4:return u(xa,Mp(a.j,m,f,Np,Op),5);case 5:return u(xa,Mp(a.i,p,f,Np,Op),2);case 2:D=0;z=[];if(a.h.length&&a.g.length)for(J=t(a.g),N=J.next();!N.done;N=J.next())for(R=N.value,Q=t(a.h),ba=Q.next();!ba.done;ba=Q.next())M=ba.value,ka=Og(R.drmInfos,M.drmInfos),R.drmInfos.length&&M.drmInfos.length&&
652
- !ka.length||(Fa=D++,z.push({id:Fa,language:R.language,primary:R.primary,audio:R,video:M,bandwidth:(R.bandwidth||0)+(M.bandwidth||0),drmInfos:ka,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(B=a.h.concat(a.g),E=t(B),F=E.next();!F.done;F=E.next())H=F.value,I=D++,z.push({id:I,language:H.language,primary:H.primary,audio:H.type==d.Ic?H:null,video:H.type==d.va?H:null,bandwidth:H.bandwidth||0,drmInfos:H.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});
653
- a.l=z;A(xa)}})}function Hp(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=t(b.Lc),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=t(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.channelsCount==h.channelsCount&&e.language==h.language&&e.bandwidth==h.bandwidth&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&hb(e.roles,h.roles)&&e.audioSamplingRate==h.audioSamplingRate&&e.primary==h.primary&&(f=!0);f||c.push(e)}b.Lc=c}}
654
- function Jp(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=t(b.textStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=t(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.language==h.language&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.bandwidth==h.bandwidth&&hb(e.roles,h.roles)&&(f=!0);f||c.push(e)}b.textStreams=c}}
655
- function Ip(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=t(b.jd),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=t(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.frameRate==h.frameRate&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.label==h.label&&hb(e.roles,h.roles)&&uf(e.closedCaptions,h.closedCaptions)&&e.bandwidth==h.bandwidth&&(f=!0);f||c.push(e)}b.jd=c}}
650
+ function Gp(a,b,c){var d,e,f,g,h,k,l,m,p,n,q,v,y,w,x,D,z,B,E,F,H,I,J,N,S,Q,ba,M,ka,Fa;return G(function(wa){switch(wa.g){case 1:d=jc;Hp(b);Ip(b);Jp(b);Kp(b);if(!c&&1==b.length){e=b[0];a.g=e.Lc;a.h=e.kd;a.j=e.textStreams;a.i=e.imageStreams;wa.B(2);break}f=-1;for(g=0;g<b.length;g++)h=b[g],a.m.has(h.id)||(a.m.add(h.id),-1==f&&(f=g));if(-1==f)return wa.return();k=b.map(function(Oa){return Oa.Lc});l=b.map(function(Oa){return Oa.kd});m=b.map(function(Oa){return Oa.textStreams});p=b.map(function(Oa){return Oa.imageStreams});
651
+ n=t(m);for(q=n.next();!q.done;q=n.next())v=q.value,v.push(Lp(d.Y));y=t(p);for(w=y.next();!w.done;w=y.next())x=w.value,x.push(Lp(d.Xb));return u(wa,Mp(a.g,k,f,Np,Op),3);case 3:return u(wa,Mp(a.h,l,f,Np,Op),4);case 4:return u(wa,Mp(a.j,m,f,Np,Op),5);case 5:return u(wa,Mp(a.i,p,f,Np,Op),2);case 2:D=0;z=[];if(a.h.length&&a.g.length)for(J=t(a.g),N=J.next();!N.done;N=J.next())for(S=N.value,Q=t(a.h),ba=Q.next();!ba.done;ba=Q.next())M=ba.value,ka=Og(S.drmInfos,M.drmInfos),S.drmInfos.length&&M.drmInfos.length&&
652
+ !ka.length||(Fa=D++,z.push({id:Fa,language:S.language,primary:S.primary,audio:S,video:M,bandwidth:(S.bandwidth||0)+(M.bandwidth||0),drmInfos:ka,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(B=a.h.concat(a.g),E=t(B),F=E.next();!F.done;F=E.next())H=F.value,I=D++,z.push({id:I,language:H.language,primary:H.primary,audio:H.type==d.Ic?H:null,video:H.type==d.va?H:null,bandwidth:H.bandwidth||0,drmInfos:H.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});
653
+ a.l=z;A(wa)}})}function Hp(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=t(b.Lc),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=t(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.channelsCount==h.channelsCount&&e.language==h.language&&e.bandwidth==h.bandwidth&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&jb(e.roles,h.roles)&&e.audioSamplingRate==h.audioSamplingRate&&e.primary==h.primary&&(f=!0);f||c.push(e)}b.Lc=c}}
654
+ function Jp(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=t(b.textStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=t(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.language==h.language&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.bandwidth==h.bandwidth&&jb(e.roles,h.roles)&&(f=!0);f||c.push(e)}b.textStreams=c}}
655
+ function Ip(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=t(b.kd),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=t(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.frameRate==h.frameRate&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.label==h.label&&jb(e.roles,h.roles)&&uf(e.closedCaptions,h.closedCaptions)&&e.bandwidth==h.bandwidth&&(f=!0);f||c.push(e)}b.kd=c}}
656
656
  function Kp(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=t(b.imageStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=t(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&(f=!0);f||c.push(e)}b.imageStreams=c}}
657
- function Pp(a){var b,c,d,e,f,g,h,k,l,m,p,n,q,v,y,w,x,D,z,B,E,F,H,I,J,N,R;return G(function(Q){switch(Q.g){case 1:b=jc;if(1==a.length)return Q.return(a[0]);c=a.map(function(ba){return ba.filter(function(M){return M.type==b.Ic})});d=a.map(function(ba){return ba.filter(function(M){return M.type==b.va})});e=a.map(function(ba){return ba.filter(function(M){return M.type==b.X})});f=a.map(function(ba){return ba.filter(function(M){return M.type==b.Xb})});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,
658
- k.push(Qp(b.X));l=t(f);for(m=l.next();!m.done;m=l.next())p=m.value,p.push(Qp(b.Xb));return u(Q,Mp([],c,0,Rp,Sp),2);case 2:return n=Q.h,u(Q,Mp([],d,0,Rp,Sp),3);case 3:return q=Q.h,u(Q,Mp([],e,0,Rp,Sp),4);case 4:return v=Q.h,u(Q,Mp([],f,0,Rp,Sp),5);case 5:y=Q.h;w=0;if(q.length&&n.length)for(E=t(n),F=E.next();!F.done;F=E.next())for(H=F.value,I=t(q),J=I.next();!J.done;J=I.next())N=J.value,R=w++,N.variantIds.push(R),H.variantIds.push(R);else for(x=q.concat(n),D=t(x),z=D.next();!z.done;z=D.next())B=z.value,
657
+ function Pp(a){var b,c,d,e,f,g,h,k,l,m,p,n,q,v,y,w,x,D,z,B,E,F,H,I,J,N,S;return G(function(Q){switch(Q.g){case 1:b=jc;if(1==a.length)return Q.return(a[0]);c=a.map(function(ba){return ba.filter(function(M){return M.type==b.Ic})});d=a.map(function(ba){return ba.filter(function(M){return M.type==b.va})});e=a.map(function(ba){return ba.filter(function(M){return M.type==b.Y})});f=a.map(function(ba){return ba.filter(function(M){return M.type==b.Xb})});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,
658
+ k.push(Qp(b.Y));l=t(f);for(m=l.next();!m.done;m=l.next())p=m.value,p.push(Qp(b.Xb));return u(Q,Mp([],c,0,Rp,Sp),2);case 2:return n=Q.h,u(Q,Mp([],d,0,Rp,Sp),3);case 3:return q=Q.h,u(Q,Mp([],e,0,Rp,Sp),4);case 4:return v=Q.h,u(Q,Mp([],f,0,Rp,Sp),5);case 5:y=Q.h;w=0;if(q.length&&n.length)for(E=t(n),F=E.next();!F.done;F=E.next())for(H=F.value,I=t(q),J=I.next();!J.done;J=I.next())N=J.value,S=w++,N.variantIds.push(S),H.variantIds.push(S);else for(x=q.concat(n),D=t(x),z=D.next();!z.done;z=D.next())B=z.value,
659
659
  B.variantIds=[w++];return Q.return(q.concat(n).concat(v).concat(y))}})}
660
660
  function Mp(a,b,c,d,e){var f,g,h,k,l,m,p,n,q,v,y,w,x,D,z,B,E,F,H,I,J;return G(function(N){switch(N.g){case 1:f=jc;g=[];for(h=0;h<b.length;h++)h>=c?g.push(new Set(b[h])):g.push(new Set);k=t(a);l=k.next();case 2:if(l.done){N.B(4);break}m=l.value;return u(N,Tp(m,b,c,e,g),5);case 5:p=N.h;if(!p)throw new O(2,4,4037);l=k.next();N.B(2);break;case 4:n=t(g);for(q=n.next();!q.done;q=n.next())for(v=q.value,y=t(v),w=y.next();!w.done;w=y.next())x=w.value,(D=Up(x,b,d,e,g))&&a.push(D);z=t(g);for(q=z.next();!q.done;q=
661
- z.next())for(B=q.value,E={},F=t(B),w=F.next();!w.done;E={Wa:E.Wa},w=F.next())if(E.Wa=w.value,H=E.Wa.type==f.X&&!E.Wa.language,I=E.Wa.type==f.Xb&&!E.Wa.tilesLayout,!H&&!I&&(J=a.some(function(R){return function(Q){return Q.mimeType==R.Wa.mimeType&&$c(Q.codecs)==$c(R.Wa.codecs)}}(E))))throw new O(2,4,4037);return N.return(a)}})}function Tp(a,b,c,d,e){return G(function(f){if(1==f.g)return Vp(b,a),a.matchedStreams?a.segmentIndex?u(f,Wp(a,c),2):f.B(2):f.return(!1);Xp(a,c,d,e);return f.return(!0)})}
661
+ z.next())for(B=q.value,E={},F=t(B),w=F.next();!w.done;E={Wa:E.Wa},w=F.next())if(E.Wa=w.value,H=E.Wa.type==f.Y&&!E.Wa.language,I=E.Wa.type==f.Xb&&!E.Wa.tilesLayout,!H&&!I&&(J=a.some(function(S){return function(Q){return Q.mimeType==S.Wa.mimeType&&$c(Q.codecs)==$c(S.Wa.codecs)}}(E))))throw new O(2,4,4037);return N.return(a)}})}function Tp(a,b,c,d,e){return G(function(f){if(1==f.g)return Vp(b,a),a.matchedStreams?a.segmentIndex?u(f,Wp(a,c),2):f.B(2):f.return(!1);Xp(a,c,d,e);return f.return(!0)})}
662
662
  function Wp(a,b){var c,d,e,f,g,h,k;return G(function(l){if(1==l.g){c=[];d=a.matchedStreams;e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,c.push(g.createSegmentIndex()),g.trickModeVideo&&!g.trickModeVideo.segmentIndex&&c.push(g.trickModeVideo.createSegmentIndex());return u(l,Promise.all(c),2)}if(a.segmentIndex instanceof Nj)for(h=b;h<d.length;h++)k=d[h],k.segmentIndex&&a.segmentIndex.l.push(k.segmentIndex);A(l)})}
663
663
  function Up(a,b,c,d,e){var f=c(a);Vp(b,f);f.createSegmentIndex&&(f.createSegmentIndex=function(){return G(function(g){if(f.segmentIndex)return g.B(0);f.segmentIndex=new Nj;return u(g,Wp(f,0),0)})});if(!f.matchedStreams||!f.matchedStreams.length)return null;Xp(f,0,d,e);return f}function Xp(a,b,c,d){for(var e=a.matchedStreams,f=0;f<e.length;f++)if(f>=b){var g=e[f];c(a,g);var h=!0;"audio"==a.type&&0==rd(a.language,g.language)&&(h=!1);h&&d[f].delete(g)}}
664
664
  function Np(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.segmentIndex=null;b.emsgSchemeIdUris=[];b.keyIds=new Set;b.closedCaptions=null;b.trickModeVideo=null;return b}
@@ -674,20 +674,20 @@ function bq(a,b,c){if(a.id==c.id)return!0;var d=eq(a.width*a.height,b.width*b.he
674
674
  function cq(a,b,c){if(a.id==c.id)return!0;var d=rd(a.language,b.language),e=rd(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(a.roles.length){d=b.roles.filter(function(f){return a.roles.includes(f)});e=c.roles.filter(function(f){return a.roles.includes(f)});if(e.length>d.length)return!0;if(e.length<d.length)return!1}else{if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1}return c.mimeType!=
675
675
  a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function dq(a,b,c){return a.id==c.id?!0:eq(a.width*a.height,b.width*b.height,c.width*c.height)==fq?!0:!1}function Qp(a){return{id:0,originalId:"",primary:!1,type:a,mimeType:"",codecs:"",language:"",label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1}}
676
676
  function Lp(a){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Jj([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",label:null,type:a,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1}}
677
- function eq(a,b,c){if(b==a&&a!=c)return gq;if(c==a&&a!=b)return fq;if(b>a){if(c<=a||c-a<b-a)return fq;if(c-a>b-a)return gq}else{if(c>a)return gq;if(a-c<a-b)return fq;if(a-c>a-b)return gq}return iq}function hq(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?fq:b<a?gq:iq}var fq=1,iq=0,gq=-1;function jq(){var a=this;this.h=this.g=null;this.m=[];this.i=null;this.G=1;this.l={};this.L={};this.j=new Fp;this.F=0;this.H=new Ra(5);this.D=new P(function(){kq(a)});this.o=new We;this.s=null;this.J=[];this.u=Infinity;this.A=!1}r=jq.prototype;r.configure=function(a){this.g=a};r.start=function(a,b){var c=this,d;return G(function(e){if(1==e.g)return c.A=b.isLowLatencyMode(),c.m=[a],c.h=b,u(e,lq(c),2);d=e.h;c.h&&mq(c,d);if(!c.h)throw new O(2,7,7001);return e.return(c.i)})};
678
- r.stop=function(){for(var a=t(Object.values(this.l)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.j&&this.j.release();this.g=this.h=null;this.m=[];this.i=null;this.l={};this.j=null;null!=this.D&&(this.D.stop(),this.D=null);return this.o.destroy()};r.update=function(){var a=this,b;return G(function(c){if(1==c.g)return C(c,2),u(c,lq(a),4);if(2!=c.g)return va(c,0);b=wa(c);if(!a.h||!b)return c.return();a.h.onError(b);A(c)})};r.onExpirationUpdated=function(){};
677
+ function eq(a,b,c){if(b==a&&a!=c)return gq;if(c==a&&a!=b)return fq;if(b>a){if(c<=a||c-a<b-a)return fq;if(c-a>b-a)return gq}else{if(c>a)return gq;if(a-c<a-b)return fq;if(a-c>a-b)return gq}return iq}function hq(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?fq:b<a?gq:iq}var fq=1,iq=0,gq=-1;function jq(){var a=this;this.h=this.g=null;this.m=[];this.i=null;this.G=1;this.l={};this.L={};this.j=new Fp;this.F=0;this.H=new Sa(5);this.D=new P(function(){kq(a)});this.o=new We;this.s=null;this.J=[];this.u=Infinity;this.A=!1}r=jq.prototype;r.configure=function(a){this.g=a};r.start=function(a,b){var c=this,d;return G(function(e){if(1==e.g)return c.A=b.isLowLatencyMode(),c.m=[a],c.h=b,u(e,lq(c),2);d=e.h;c.h&&mq(c,d);if(!c.h)throw new O(2,7,7001);return e.return(c.i)})};
678
+ r.stop=function(){for(var a=t(Object.values(this.l)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.j&&this.j.release();this.g=this.h=null;this.m=[];this.i=null;this.l={};this.j=null;null!=this.D&&(this.D.stop(),this.D=null);return this.o.destroy()};r.update=function(){var a=this,b;return G(function(c){if(1==c.g)return C(c,2),u(c,lq(a),4);if(2!=c.g)return va(c,0);b=xa(c);if(!a.h||!b)return c.return();a.h.onError(b);A(c)})};r.onExpirationUpdated=function(){};
679
679
  function lq(a){var b,c,d,e,f,g,h;return G(function(k){if(1==k.g)return b=bf(a.m,a.g.retryParameters),c=a.h.networkingEngine,a.h.modifyManifestRequest(b,{format:"d"}),d=Date.now(),e=c.request(0,b),Xe(a.o,e),u(k,e.promise,2);if(3!=k.g){f=k.h;if(!a.h)return k.return(0);f.uri&&!a.m.includes(f.uri)&&a.m.unshift(f.uri);return u(k,nq(a,f.data,f.uri),3)}g=Date.now();h=(g-d)/1E3;a.H.sample(1,h);return k.return(h)})}
680
680
  function nq(a,b,c){var d,e,f,g,h;return G(function(k){if(1==k.g){d=dg(b,"MPD");if(!d)throw new O(2,4,4001,c);if(e=a.g.dash.disableXlinkProcessing)return k.return(oq(a,d,c));f=a.g.dash.xlinkFailGracefully;g=ap(d,a.g.retryParameters,f,c,a.h.networkingEngine);Xe(a.o,g);return u(k,g.promise,2)}h=k.h;return k.return(oq(a,h,c))})}
681
- function oq(a,b,c){var d,e,f,g,h,k,l,m,p,n,q,v,y,w,x,D,z,B,E,F,H,I,J,N,R,Q,ba,M,ka,Fa,xa,Na;return G(function(Ha){switch(Ha.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);e=[c];f=Lf(b,"Location").map(Rf).filter(cc);0<f.length&&(g=dc(e,f),e=a.m=g);h=Lf(b,"BaseURL");k=h.map(Rf);l=dc(e,k);m=0;h&&h.length&&(m=Tf(h[0],"availabilityTimeOffset",$f)||0);p=a.g.dash.ignoreMinBufferTime;n=0;p||(n=Tf(b,"minBufferTime",Vf)||0);a.F=Tf(b,"minimumUpdatePeriod",Vf,-1);q=Tf(b,"availabilityStartTime",Uf);v=Tf(b,
681
+ function oq(a,b,c){var d,e,f,g,h,k,l,m,p,n,q,v,y,w,x,D,z,B,E,F,H,I,J,N,S,Q,ba,M,ka,Fa,wa,Oa,Ya;return G(function(Na){switch(Na.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);e=[c];f=Lf(b,"Location").map(Rf).filter(cc);0<f.length&&(g=dc(e,f),e=a.m=g);h=Lf(b,"BaseURL");k=h.map(Rf);l=dc(e,k);m=0;h&&h.length&&(m=Tf(h[0],"availabilityTimeOffset",$f)||0);p=a.g.dash.ignoreMinBufferTime;n=0;p||(n=Tf(b,"minBufferTime",Vf)||0);a.F=Tf(b,"minimumUpdatePeriod",Vf,-1);q=Tf(b,"availabilityStartTime",Uf);v=Tf(b,
682
682
  "timeShiftBufferDepth",Vf);y=a.g.dash.ignoreSuggestedPresentationDelay;w=null;y||(w=Tf(b,"suggestedPresentationDelay",Vf));x=a.g.dash.ignoreMaxSegmentDuration;D=null;x||(D=Tf(b,"maxSegmentDuration",Vf));z=b.getAttribute("type")||"static";if(a.i)for(B=a.i.presentationTimeline,E=t(Object.values(a.l)),F=E.next();!F.done;F=E.next())H=F.value,H.segmentIndex&&H.segmentIndex.eb(B.Oa());else I=a.g.defaultPresentationDelay||1.5*n,J=null!=w?w:I,B=new U(q,J,a.g.dash.autoCorrectDrift);B.zc("static"==z);(N=B.T())&&
683
- !isNaN(a.g.availabilityWindowOverride)&&(v=a.g.availabilityWindowOverride);null==v&&(v=Infinity);B.ne(v);R=b.getAttribute("profiles")||"";Q={Xa:"static"!=z,presentationTimeline:B,aa:null,U:null,ga:null,I:null,bandwidth:0,Ke:!1,Ab:m,profiles:R.split(",")};ba=pq(a,Q,l,b);M=ba.duration;ka=ba.periods;"static"!=z&&ba.De||B.Aa(M||Infinity);a.u&&!a.A&&(Fa=a.h.isAutoLowLatencyMode())&&(a.h.enableLowLatencyMode(),a.A=a.h.isLowLatencyMode());a.A?B.Ve(a.u):a.u&&Xa("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");
684
- B.Ud(D||1);return u(Ha,Gp(a.j,ka,Q.Xa),2);case 2:if(a.i){a.i.variants=a.j.l;a.i.textStreams=a.j.j.slice();a.i.imageStreams=a.j.i;a.h.filter(a.i);Ha.B(3);break}a.i={presentationTimeline:B,variants:a.j.l,textStreams:a.j.j.slice(),imageStreams:a.j.i,offlineSessionIds:[],minBufferTime:n||0,sequenceMode:a.g.dash.sequenceMode};if(!B.ef()){Ha.B(4);break}xa=Lf(b,"UTCTiming");return u(Ha,qq(a,l,xa),5);case 5:Na=Ha.h;if(!a.h)return Ha.return();B.We(Na);case 4:B.Od();case 3:a.h.makeTextStreamsForClosedCaptions(a.i),
685
- A(Ha)}})}
683
+ !isNaN(a.g.availabilityWindowOverride)&&(v=a.g.availabilityWindowOverride);null==v&&(v=Infinity);B.ne(v);S=b.getAttribute("profiles")||"";Q={Xa:"static"!=z,presentationTimeline:B,aa:null,U:null,ga:null,I:null,bandwidth:0,Ke:!1,Ab:m,profiles:S.split(",")};ba=pq(a,Q,l,b);M=ba.duration;ka=ba.periods;"static"!=z&&ba.De||B.Aa(M||Infinity);a.u&&!a.A&&(Fa=a.h.isAutoLowLatencyMode())&&(a.h.enableLowLatencyMode(),a.A=a.h.isLowLatencyMode());a.A?B.Ve(a.u):a.u&&Xa("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");
684
+ B.Ud(D||1);return u(Na,Gp(a.j,ka,Q.Xa),2);case 2:if(a.i){a.i.variants=a.j.l;wa=a.j.j.slice();0<wa.length&&(a.i.textStreams=wa);a.i.imageStreams=a.j.i;a.h.filter(a.i);Na.B(3);break}a.i={presentationTimeline:B,variants:a.j.l,textStreams:a.j.j.slice(),imageStreams:a.j.i,offlineSessionIds:[],minBufferTime:n||0,sequenceMode:a.g.dash.sequenceMode};if(!B.ef()){Na.B(4);break}Oa=Lf(b,"UTCTiming");return u(Na,qq(a,l,Oa),5);case 5:Ya=Na.h;if(!a.h)return Na.return();B.We(Ya);case 4:B.Od();case 3:a.h.makeTextStreamsForClosedCaptions(a.i),
685
+ A(Na)}})}
686
686
  function pq(a,b,c,d){var e=Tf(d,"mediaPresentationDuration",Vf),f=[],g=0;d=Lf(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=Tf(k,"start",Vf,g),p=k.id,n=Tf(k,"duration",Vf),q=null;if(l){var v=Tf(l,"start",Vf);null!=v&&(q=v-m)}else null!=e&&(q=e-m);null==q&&(q=n);if(!(null!==a.s&&null!==p&&null!==m&&m<a.s)||a.J.includes(p)||h+1==d.length){null!==m&&(null===a.s||m>a.s)&&(a.s=m);g=rq(a,b,c,{start:m,duration:q,node:k,Id:null==q||!l});f.push(g);b.aa.id&&q&&(a.L[b.aa.id]=q);if(null==q){g=
687
687
  null;break}g=m+q}}a.J=f.map(function(y){return y.id});return null!=e?{periods:f,duration:e,De:!1}:{periods:f,duration:g,De:!0}}
688
688
  function rq(a,b,c,d){b.aa=sq(d.node,null,c);b.U=d;b.aa.Ab=b.Ab;b.aa.id||(b.aa.id="__shaka_period_"+d.start);var e=Lf(d.node,"EventStream");c=b.presentationTimeline.Oa();e=t(e);for(var f=e.next();!f.done;f=e.next())tq(a,d.start,d.duration,f.value,c);c=Lf(d.node,"AdaptationSet").map(function(m){return uq(a,b,m)}).filter(cc);if(b.Xa){d=[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.sg);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new O(2,4,4018);
689
689
  }d=c.filter(function(m){return!m.qe});c=c.filter(function(m){return m.qe});c=t(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.qe.split(" ");g=t(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=t(k.streams);for(var l=k.next();!l.done;h={Hc:h.Hc},l=k.next())h.Hc=l.value,h.Hc.trickModeVideo=e.streams.find(function(m){return function(p){return $c(m.Hc.codecs)==$c(p.codecs)}}(h))}}}e=a.g.disableAudio?[]:vq(d,"audio");g=a.g.disableVideo?[]:vq(d,"video");f=a.g.disableText?
690
- []:vq(d,ic);c=a.g.disableThumbnails?[]:vq(d,"image");if(!g.length&&!e.length)throw new O(2,4,4004);d=[];e=t(e);for(h=e.next();!h.done;h=e.next())d.push.apply(d,ia(h.value.streams));e=[];g=t(g);for(h=g.next();!h.done;h=g.next())e.push.apply(e,ia(h.value.streams));g=[];f=t(f);for(h=f.next();!h.done;h=f.next())g.push.apply(g,ia(h.value.streams));f=[];c=t(c);for(h=c.next();!h.done;h=c.next())f.push.apply(f,ia(h.value.streams));return{id:b.aa.id,Lc:d,jd:e,textStreams:g,imageStreams:f}}
690
+ []:vq(d,ic);c=a.g.disableThumbnails?[]:vq(d,"image");if(!g.length&&!e.length)throw new O(2,4,4004);d=[];e=t(e);for(h=e.next();!h.done;h=e.next())d.push.apply(d,ia(h.value.streams));e=[];g=t(g);for(h=g.next();!h.done;h=g.next())e.push.apply(e,ia(h.value.streams));g=[];f=t(f);for(h=f.next();!h.done;h=f.next())g.push.apply(g,ia(h.value.streams));f=[];c=t(c);for(h=c.next();!h.done;h=c.next())f.push.apply(f,ia(h.value.streams));return{id:b.aa.id,Lc:d,kd:e,textStreams:g,imageStreams:f}}
691
691
  function vq(a,b){return a.filter(function(c){return c.contentType==b})}
692
692
  function uq(a,b,c){function d(F){switch(F){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.ga=sq(c,b.aa,null);var e=!1,f=Lf(c,"Role"),g=f.map(function(F){return F.getAttribute("value")}).filter(cc),h=void 0,k=b.ga.contentType==ic;k&&(h="subtitle");f=t(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=l.getAttribute("schemeIdUri");if(null==m||"urn:mpeg:dash:role:2011"==m)switch(l=l.getAttribute("value"),l){case "main":e=!0;break;case "caption":case "subtitle":h=
693
693
  l}}var p;m=Lf(c,"EssentialProperty");f=null;l=!1;m=t(m);for(var n=m.next();!n.done;n=m.next()){n=n.value;var q=n.getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==q?f=n.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==q?p=d(parseInt(n.getAttribute("value"),10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"!=q&&"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=q&&(l=!0)}m=Lf(c,"SupplementalProperty");m=t(m);for(n=m.next();!n.done;n=m.next())n=n.value,"urn:mpeg:mpegB:cicp:TransferCharacteristics"==
@@ -698,17 +698,17 @@ b.ga.contentType;k=t(c);for(m=k.next();!m.done;m=k.next())for(m=m.value,n=t(z.dr
698
698
  function wq(a,b,c,d,e,f,g,h,k,l){b.I=sq(l,b.ga,null);a.u=Math.min(a.u,b.I.Ab);if(!yq(b.I))return null;var m=b.U.start;b.bandwidth=Tf(l,"bandwidth",Yf)||0;var p=b.I.contentType,n=p==ic||"application"==p;p="image"==p;try{var q=function(F,H,I){return zq(a,F,H,I)};if(b.I.xc)var v=np(b,q);else if(b.I.ab)v=tp(b,a.l);else if(b.I.yc)v=yp(b,q,a.l,!!a.i,a.g.dash.initialSegmentLimit,a.L);else{var y=b.I.wa,w=b.U.duration||0;v={Cb:function(){return Promise.resolve(Mj(m,w,y))}}}}catch(F){if((n||p)&&4002==F.code)return null;
699
699
  throw F;}q=Lf(l,"ContentProtection");q=Po(q,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);q=new Set(q?[q]:[]);var x=!1;Lf(l,"SupplementalProperty").some(function(F){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==F.getAttribute("schemeIdUri")&&"JOC"==F.getAttribute("value")})&&(x=!0);var D=!1;n&&(D=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var z;if(p&&((l=Lf(l,"EssentialProperty").find(function(F){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(F.getAttribute("schemeIdUri"))}))&&
700
700
  (z=l.getAttribute("value")),!z))return null;var B;l=b.I.codecs;b.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(l.includes("hvc1.2.4.L153.B0")||l.includes("hev1.2.4.L153.B0"))&&(B="PQ");l=b.I.id?b.aa.id+","+b.I.id:"";var E=l&&a.l[l]?a.l[l]:{id:a.G++,originalId:b.I.id,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){E.segmentIndex&&(E.segmentIndex.release(),E.segmentIndex=null)},segmentIndex:null,mimeType:b.I.mimeType,codecs:b.I.codecs,
701
- frameRate:b.I.frameRate,pixelAspectRatio:b.I.pixelAspectRatio,bandwidth:b.bandwidth,width:b.I.width,height:b.I.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:q,language:e,label:f,type:b.ga.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.I.emsgSchemeIdUris,roles:h,forced:D,channelsCount:b.I.bd,audioSamplingRate:b.I.audioSamplingRate,spatialAudio:x,closedCaptions:k,hdr:B,tilesLayout:z,matchedStreams:[],external:!1};E.createSegmentIndex=function(){var F;return G(function(H){if(1==
702
- H.g){if(E.segmentIndex)return H.B(0);F=E;return u(H,v.Cb(),3)}F.segmentIndex=H.h;A(H)})};l&&b.Xa&&!a.l[l]&&(a.l[l]=E);return E}function kq(a){var b,c;G(function(d){switch(d.g){case 1:return b=0,C(d,2),u(d,lq(a),4);case 4:b=d.h;va(d,3);break;case 2:c=wa(d),a.h&&(c.severity=1,a.h.onError(c));case 3:if(!a.h)return d.return();mq(a,b);A(d)}})}function mq(a,b){0>a.F||a.D.O(Math.max(3,a.F-b,Sa(a.H)))}
703
- function sq(a,b,c){b=b||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,bd:null,audioSamplingRate:null,Ab:0};c=c||b.wa;var d=Lf(a,"BaseURL"),e=d.map(Rf),f=a.getAttribute("contentType")||b.contentType,g=a.getAttribute("mimeType")||b.mimeType,h=a.getAttribute("codecs")||b.codecs,k=Tf(a,"frameRate",ag)||b.frameRate,l=a.getAttribute("sar")||b.pixelAspectRatio,m=Lf(a,"InbandEventStream"),p=b.emsgSchemeIdUris.slice();m=t(m);for(var n=m.next();!n.done;n=
704
- m.next())n=n.value.getAttribute("schemeIdUri"),p.includes(n)||p.push(n);m=Lf(a,"AudioChannelConfiguration");m=Aq(m)||b.bd;n=Tf(a,"audioSamplingRate",Zf)||b.audioSamplingRate;f||(f=xq(g,h));var q=Kf(a,"SegmentBase"),v=Kf(a,"SegmentTemplate"),y=q?Tf(q,"availabilityTimeOffset",$f)||0:0,w=v?Tf(v,"availabilityTimeOffset",$f)||0:0;d=d&&d.length?Tf(d[0],"availabilityTimeOffset",$f)||0:0;d=b.Ab+d+y+w;return{wa:dc(c,e),xc:q||b.xc,ab:Kf(a,"SegmentList")||b.ab,yc:v||b.yc,width:Tf(a,"width",Zf)||b.width,height:Tf(a,
705
- "height",Zf)||b.height,contentType:f,mimeType:g,codecs:h,frameRate:k,pixelAspectRatio:l,emsgSchemeIdUris:p,id:a.getAttribute("id"),bd:m,audioSamplingRate:n,Ab:d}}
701
+ frameRate:b.I.frameRate,pixelAspectRatio:b.I.pixelAspectRatio,bandwidth:b.bandwidth,width:b.I.width,height:b.I.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:q,language:e,label:f,type:b.ga.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.I.emsgSchemeIdUris,roles:h,forced:D,channelsCount:b.I.cd,audioSamplingRate:b.I.audioSamplingRate,spatialAudio:x,closedCaptions:k,hdr:B,tilesLayout:z,matchedStreams:[],external:!1};E.createSegmentIndex=function(){var F;return G(function(H){if(1==
702
+ H.g){if(E.segmentIndex)return H.B(0);F=E;return u(H,v.Cb(),3)}F.segmentIndex=H.h;A(H)})};l&&b.Xa&&!a.l[l]&&(a.l[l]=E);return E}function kq(a){var b,c;G(function(d){switch(d.g){case 1:return b=0,C(d,2),u(d,lq(a),4);case 4:b=d.h;va(d,3);break;case 2:c=xa(d),a.h&&(c.severity=1,a.h.onError(c));case 3:if(!a.h)return d.return();mq(a,b);A(d)}})}function mq(a,b){0>a.F||a.D.N(Math.max(3,a.F-b,Ta(a.H)))}
703
+ function sq(a,b,c){b=b||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,cd:null,audioSamplingRate:null,Ab:0};c=c||b.wa;var d=Lf(a,"BaseURL"),e=d.map(Rf),f=a.getAttribute("contentType")||b.contentType,g=a.getAttribute("mimeType")||b.mimeType,h=a.getAttribute("codecs")||b.codecs,k=Tf(a,"frameRate",ag)||b.frameRate,l=a.getAttribute("sar")||b.pixelAspectRatio,m=Lf(a,"InbandEventStream"),p=b.emsgSchemeIdUris.slice();m=t(m);for(var n=m.next();!n.done;n=
704
+ m.next())n=n.value.getAttribute("schemeIdUri"),p.includes(n)||p.push(n);m=Lf(a,"AudioChannelConfiguration");m=Aq(m)||b.cd;n=Tf(a,"audioSamplingRate",Zf)||b.audioSamplingRate;f||(f=xq(g,h));var q=Kf(a,"SegmentBase"),v=Kf(a,"SegmentTemplate"),y=q?Tf(q,"availabilityTimeOffset",$f)||0:0,w=v?Tf(v,"availabilityTimeOffset",$f)||0:0;d=d&&d.length?Tf(d[0],"availabilityTimeOffset",$f)||0:0;d=b.Ab+d+y+w;return{wa:dc(c,e),xc:q||b.xc,ab:Kf(a,"SegmentList")||b.ab,yc:v||b.yc,width:Tf(a,"width",Zf)||b.width,height:Tf(a,
705
+ "height",Zf)||b.height,contentType:f,mimeType:g,codecs:h,frameRate:k,pixelAspectRatio:l,emsgSchemeIdUris:p,id:a.getAttribute("id"),cd:m,audioSamplingRate:n,Ab:d}}
706
706
  function Aq(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(b=c.getAttribute("schemeIdUri"))if(c=c.getAttribute("value"))switch(b){case "urn:mpeg:dash:outputChannelPositionList:2012":return c.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(c,10);if(!b)continue;return b;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":b=
707
707
  parseInt(c,16);if(!b)continue;for(a=0;b;)b&1&&++a,b>>=1;return a;case "urn:mpeg:mpegB:cicp:ChannelConfiguration":if(b=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(c=parseInt(c,10))&&0<c&&c<b.length)return b[c]}}return null}function yq(a){var b=a.xc?1:0;b+=a.ab?1:0;b+=a.yc?1:0;if(0==b)return a.contentType==ic||"application"==a.contentType?!0:!1;1!=b&&(a.xc&&(a.ab=null),a.yc=null);return!0}
708
708
  function Bq(a,b,c,d){var e,f,g,h,k,l;return G(function(m){if(1==m.g)return e=dc(b,[c]),f=bf(e,a.g.retryParameters),f.method=d,g=a.h.networkingEngine.request(4,f),Xe(a.o,g),u(m,g.promise,2);h=m.h;if("HEAD"==d){if(!h.headers||!h.headers.date)return m.return(0);k=h.headers.date}else k=Bc(h.data);l=Date.parse(k);return isNaN(l)?m.return(0):m.return(l-Date.now())})}
709
709
  function qq(a,b,c){var d,e,f,g,h,k,l,m;return G(function(p){switch(p.g){case 1:d=c.map(function(n){return{scheme:n.getAttribute("schemeIdUri"),value:n.getAttribute("value")}}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=t(d),g=f.next();case 2:if(g.done){p.B(4);break}h=g.value;C(p,5);k=h.scheme;l=h.value;switch(k){case "urn:mpeg:dash:utc:http-head:2014":case "urn:mpeg:dash:utc:http-head:2012":return p.B(7);case "urn:mpeg:dash:utc:http-xsdate:2014":case "urn:mpeg:dash:utc:http-iso:2014":case "urn:mpeg:dash:utc:http-xsdate:2012":case "urn:mpeg:dash:utc:http-iso:2012":return p.B(8);
710
710
  case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),p.return(isNaN(m)?0:m-Date.now());case "urn:mpeg:dash:utc:http-ntp:2014":case "urn:mpeg:dash:utc:ntp:2014":case "urn:mpeg:dash:utc:sntp:2014":Xa("NTP UTCTiming scheme is not supported");break;default:Xa("Unrecognized scheme in UTCTiming element",k)}p.B(9);break;case 7:return u(p,Bq(a,b,l,"HEAD"),10);case 10:return p.return(p.h);case 8:return u(p,Bq(a,b,l,"GET"),11);case 11:return p.return(p.h);case 9:va(p,
711
- 3);break;case 5:wa(p);case 3:g=f.next();p.B(2);break;case 4:return Xa("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),p.return(0)}})}
711
+ 3);break;case 5:xa(p);case 3:g=f.next();p.B(2);break;case 4:return Xa("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),p.return(0)}})}
712
712
  function tq(a,b,c,d,e){var f=d.getAttribute("schemeIdUri")||"",g=d.getAttribute("value")||"",h=Tf(d,"timescale",Zf)||1;d=t(Lf(d,"Event"));for(var k=d.next();!k.done;k=d.next()){k=k.value;var l=Tf(k,"presentationTime",Zf)||0,m=Tf(k,"duration",Zf)||0;l=l/h+b;m=l+m/h;null!=c&&(l=Math.min(l,b+c),m=Math.min(m,b+c));m<e||(k={schemeIdUri:f,value:g,startTime:l,endTime:m,id:k.getAttribute("id")||"",eventElement:k},a.h.onTimelineRegionAdded(k))}}
713
713
  function zq(a,b,c,d){var e,f,g,h,k;return G(function(l){if(1==l.g)return e=hf,f=ck(b,c,d,a.g.retryParameters),g=a.h.networkingEngine,h=g.request(e,f),Xe(a.o,h),u(l,h.promise,2);k=l.h;return l.return(k.data)})}function xq(a,b){return dd(Yc(a,b))?ic:a.split("/")[0]}K("shaka.dash.DashParser",jq);Ug.mpd=function(){return new jq};Sg["application/dash+xml"]=function(){return new jq};Sg["video/vnd.mpeg.dash.mpd"]=function(){return new jq};function Cq(a,b,c,d){this.h=a;this.type=b;this.g=c;this.segments=d||null}function Dq(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}Dq.prototype.toString=function(){function a(d){return d.name+"="+(isNaN(Number(d.value))?'"'+d.value+'"':d.value)}var b="#"+this.name,c=this.g?this.g.map(a):[];this.value&&c.unshift(this.value);0<c.length&&(b+=":"+c.join(","));return b};
714
714
  Dq.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function Z(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function Eq(a,b){a=a.getAttribute(b);if(!a)throw new O(2,4,4023,b);return a.value}function Fq(a,b,c){c=void 0===c?[]:c;this.g=b;this.i=a;this.h=c}function Gq(a,b){this.name=a;this.value=b};function Hq(a,b){return a.filter(function(c){return c.name==b})}function Iq(a,b){return a.filter(function(c){return Eq(c,"TYPE")==b})}function Jq(a,b){a=Hq(a,b);return a.length?a[0]:null}function Kq(a,b){var c=0;c=void 0===c?0:c;return(a=Jq(a,b))?Number(a.value):c}function Lq(a,b){return dc([a],[b])[0]};function Mq(a){this.h=a;this.g=0}function Nq(a){Oq(a,/[ \t]+/gm)}function Oq(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 Pq(a){return a.g==a.h.length?null:(a=Oq(a,/[^ \t\n]*/gm))?a[0]:null};function Qq(){this.g=0}
@@ -716,24 +716,24 @@ function Rq(a,b,c){b=Bc(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var d
716
716
  var l=d.splice(g,d.length-g);d=c;e=[];g=[];k=[];h=null;l=t(l);for(var m=l.next();!m.done;m=l.next())m=m.value,/^(#EXT)/.test(m)?(m=Sq(a,m),Tq.includes(m.name)?f.push(m):"EXT-X-MAP"==m.name?h=m:"EXT-X-PART"==m.name?k.push(m):"EXT-X-PRELOAD-HINT"==m.name?"PART"==Z(m,"TYPE")?null!=Z(m,"BYTERANGE-START")?null!=Z(m,"BYTERANGE-LENGTH")&&k.push(m):k.push(m):"MAP"==Z(m,"TYPE")&&(m.name="EXT-X-MAP",h=m):g.push(m)):/^#(?!EXT)/m.test(m)||(m=Lq(d,m.trim()),h&&g.push(h),e.push(new Fq(m,g,k)),g=[],k=[]);k.length&&
717
717
  (h&&g.push(h),e.push(new Fq("",g,k)));return new Cq(c,b,f,e)}f.push(h);"EXT-X-STREAM-INF"==h.name&&(h.g.push(new Gq("URI",k)),e=!0)}}return new Cq(c,b,f)}function Sq(a,b){a=a.g++;var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new O(2,4,4016,b);b=c[1];var d=c[2];c=[];var e;if(d){d=new Mq(d);var f;(f=Oq(d,/^([^,=]+)(?:,|$)/g))&&(e=f[1]);for(var g=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;f=Oq(d,g);)c.push(new Gq(f[1],f[2]||f[3])),Nq(d)}return new Dq(a,b,c,e)}
718
718
  var Tq="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP EXT-X-PART-INF".split(" "),Uq="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Vq(){}function Wq(a){try{var b=Xq(a);return Ne({uri:a,originalUri:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return Le(c)}}
719
- function Xq(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new O(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new O(2,1,1004,a);var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"==b[b.length-1]&&(d=!0,b.pop());var e;d?e=Kc(a):e=Fc(a);return{data:e,contentType:c}}K("shaka.net.DataUriPlugin",Vq);Vq.parse=Wq;Ze("data",Wq);function Yq(){var a=this;this.g=this.i=null;this.Fa=1;this.o=new Map;this.u=new Map;this.F=new Map;this.F.set("video",new Map);this.F.set("audio",new Map);this.F.set(ic,new Map);this.F.set("image",new Map);this.ka=new Set;this.h=new Map;this.j=null;this.M="";this.W=new Qq;this.P=0;this.A=-1;this.H=Infinity;this.Ga=!1;this.m=new P(function(){Zq(a)});this.fa=$q;this.D=null;this.da=0;this.J=Infinity;this.V=this.ea=0;this.G=new We;this.L=new Map;this.s=new Map;this.ba=new Map;this.l=!1}r=Yq.prototype;
719
+ function Xq(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new O(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new O(2,1,1004,a);var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"==b[b.length-1]&&(d=!0,b.pop());var e;d?e=Kc(a):e=Fc(a);return{data:e,contentType:c}}K("shaka.net.DataUriPlugin",Vq);Vq.parse=Wq;Ze("data",Wq);function Yq(){var a=this;this.g=this.i=null;this.Fa=1;this.o=new Map;this.u=new Map;this.F=new Map;this.F.set("video",new Map);this.F.set("audio",new Map);this.F.set(ic,new Map);this.F.set("image",new Map);this.ka=new Set;this.h=new Map;this.j=null;this.M="";this.W=new Qq;this.O=0;this.A=-1;this.H=Infinity;this.Ga=!1;this.m=new P(function(){Zq(a)});this.fa=$q;this.D=null;this.da=0;this.J=Infinity;this.V=this.ea=0;this.G=new We;this.L=new Map;this.s=new Map;this.ba=new Map;this.l=!1}r=Yq.prototype;
720
720
  r.configure=function(a){this.g=a};r.start=function(a,b){var c=this,d;return G(function(e){return 1==e.g?(c.i=b,c.l=b.isLowLatencyMode(),u(e,ar(c,a),2)):3!=e.g?(d=e.h,c.M=d.uri,u(e,br(c,d.data,a),3)):e.return(c.D)})};r.stop=function(){this.m&&(this.m.stop(),this.m=null);var a=[];this.G&&(a.push(this.G.destroy()),this.G=null);this.g=this.i=null;this.ka.clear();this.D=null;this.h.clear();this.u.clear();this.s.clear();this.o.clear();return Promise.all(a)};
721
721
  r.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return G(function(m){if(1==m.g){if(!cr(a))return m.return();b=[];c=Array.from(a.h.values());d=c.filter(function(p){return p.stream.segmentIndex});e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(dr(a,g));return u(m,Promise.all(b),2)}er(a,d.map(function(p){return p.stream}));h=d.some(function(p){return 0==p.nc});d.length&&!h&&(k=fr,gr(a,k.gf),l=d.map(function(p){return p.Qa}),a.j.Aa(Math.min.apply(Math,ia(l))),a.i.updateDuration());h&&hr(a);
722
- A(m)})};function ir(a,b){return cr(a)?a.F.get(b.type):b.ad}
722
+ A(m)})};function ir(a,b){return cr(a)?a.F.get(b.type):b.bd}
723
723
  function dr(a,b){var c,d,e,f,g,h,k,l,m,p,n,q,v,y,w,x,D,z;return G(function(B){if(1==B.g)return c=b.Kc,d=new Mb(c),a.l&&b.Nc&&Pb(d,new Rb("_HLS_skip=YES")),u(B,ar(a,d.toString()),2);e=B.h;if(!b.stream.segmentIndex)return B.return();f=Rq(a.W,e.data,e.uri);if(1!=f.type)throw new O(2,4,4017);g=Hq(f.g,"EXT-X-DEFINE");h=jr(a,g);k=b.stream;l=ir(a,b);m=kr(f,k.mimeType);p=m.keyIds;n=m.drmInfos;q=function(E,F){return E.size===F.size&&[].concat(ia(E)).every(function(H){return F.has(H)})};q(k.keyIds,p)||(k.keyIds=
724
724
  p,k.drmInfos=n,a.i.newDrmInfo(k));v=lr(a,f,k.type,l,h);k.segmentIndex.Ib(v,a.j.Oa());v.length&&(y=Kq(f.g,"EXT-X-MEDIA-SEQUENCE"),w=l.get(y),k.segmentIndex.eb(w));x=v[0];b.kb=x.startTime;D=v[v.length-1];b.Qa=D.endTime;if(z=Jq(f.g,"EXT-X-ENDLIST"))b.nc=!0;A(B)})}r.onExpirationUpdated=function(){};
725
- function mr(a,b){for(var c=-1==a.A,d=t(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex,g=ir(a,e);if(f=f.g[0]||null){g=t(g);for(var h=g.next();!h.done;h=g.next()){h=t(h.value);var k=h.next().value;if(h.next().value==f.startTime){c&&(a.A=Math.max(a.A,k));e.Ed=k;break}}}}if(!(0>a.A))for(b=t(b),e=b.next();!e.done;e=b.next())if(c=e.value,d=c.stream.segmentIndex)if(d.g.splice(0,a.A-c.Ed),d=d.g[0]||null)d=-d.startTime,c.stream.segmentIndex.offset(d),nr(a,c,d)}
725
+ function mr(a,b){for(var c=-1==a.A,d=t(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex,g=ir(a,e);if(f=f.g[0]||null){g=t(g);for(var h=g.next();!h.done;h=g.next()){h=t(h.value);var k=h.next().value;if(h.next().value==f.startTime){c&&(a.A=Math.max(a.A,k));e.Fd=k;break}}}}if(!(0>a.A))for(b=t(b),e=b.next();!e.done;e=b.next())if(c=e.value,d=c.stream.segmentIndex)if(d.g.splice(0,a.A-c.Fd),d=d.g[0]||null)d=-d.startTime,c.stream.segmentIndex.offset(d),nr(a,c,d)}
726
726
  function or(a,b){if(Infinity==a.H){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value.stream.segmentIndex.g[0]||null;null!=d&&null!=d.g&&(a.H=Math.min(a.H,d.g))}}b=a.H;if(Infinity!=b)for(d=t(a.h.values()),c=d.next();!c.done;c=d.next()){c=c.value;var e=c.stream.segmentIndex;if(null!=e){var f=e.g[0]||null;if(null==f.g)Wa("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.Bc,"Expect AV sync issues!");else for(nr(a,c,f.g-b-f.startTime),c=t(e),e=c.next();!e.done;e=c.next())e.value.oe(b)}}}
727
727
  function nr(a,b,c){b.kb+=c;b.Qa+=c;a=ir(a,b);b=t(a);for(var d=b.next();!d.done;d=b.next()){var e=t(d.value);d=e.next().value;e=e.next().value;a.set(d,e+c)}}
728
- function br(a,b,c){var d,e,f,g,h,k,l,m,p,n,q,v,y,w,x,D,z,B,E,F,H,I,J,N,R,Q,ba,M,ka,Fa,xa,Na;return G(function(Ha){switch(Ha.g){case 1:d=Rq(a.W,b,a.M);e=Hq(d.g,"EXT-X-DEFINE");for(var Lb=t(e),Ka=Lb.next();!Ka.done;Ka=Lb.next()){var Ua=Ka.value;Ka=Z(Ua,"NAME");Ua=Z(Ua,"VALUE");Ka&&Ua&&(a.o.has(Ka)||a.o.set(Ka,Ua))}f=[];g=[];h=[];if(1==d.type)return F=a.g.hls.mediaPlaylistFullMimeType,d.segments.length&&(H=new Mb(d.segments[0].i),I=H.ra.split(".").pop(),(J=pr[I])?F=J:"ts"!==I&&"mp4"!==I&&(qr[I]?(J=qr[I],
729
- N=a.g.hls.defaultAudioCodec,F=J+'; codecs="'+N+'"'):rr[I]&&(J=rr[I],R=a.g.hls.defaultVideoCodec,F=J+'; codecs="'+R+'"'))),Q=F.split(";")[0],ba=Q.split("/")[0],M=bd(F),ka=new Map,u(Ha,sr(a,d,c,c,M,ba,"",!0,"Media Playlist",null,ka,null,!1,!1,Q),5);k=Hq(d.g,"EXT-X-MEDIA");l=Hq(d.g,"EXT-X-STREAM-INF");m=Hq(d.g,"EXT-X-IMAGE-STREAM-INF");p=Hq(d.g,"EXT-X-SESSION-KEY");Lb=t(l);for(Ka=Lb.next();!Ka.done;Ka=Lb.next()){var Zb=Ka.value;Ua=Z(Zb,"AUDIO");Ka=Z(Zb,"VIDEO");var pb=Z(Zb,"SUBTITLES");Zb=tr(a,Zb);if(pb){var Un=
730
- gc(ic,Zb);a.s.set(pb,Un);gb(Zb,Un)}Ua&&(pb=gc("audio",Zb),pb||(pb=a.g.hls.defaultAudioCodec),a.s.set(Ua,pb));Ka&&(Ua=gc("video",Zb),Ua||(Ua=a.g.hls.defaultVideoCodec),a.s.set(Ka,Ua))}n=Hq(d.g,"EXT-X-SESSION-DATA");q=t(n);for(v=q.next();!v.done;v=q.next())if(y=v.value,w=Z(y,"DATA-ID"),x=Z(y,"URI"),D=Z(y,"LANGUAGE"),z=Z(y,"VALUE"),B=(new Map).set("id",w),x&&B.set("uri",Lq(a.M,x)),D&&B.set("language",D),z&&B.set("value",z),E=new S("sessiondata",B),a.i)a.i.onEvent(E);ur(a,k);Lb=Iq(k,"CLOSED-CAPTIONS");
731
- Lb=t(Lb);for(Ka=Lb.next();!Ka.done;Ka=Lb.next())pb=Ka.value,Ka=vr(pb),Ua=Eq(pb,"GROUP-ID"),pb=Eq(pb,"INSTREAM-ID"),a.L.get(Ua)||a.L.set(Ua,new Map),a.L.get(Ua).set(pb,Ka);f=wr(a,l,p);g=xr(a,k);return u(Ha,yr(a,m),4);case 4:h=Ha.h;Ha.B(3);break;case 5:Fa=Ha.h,a.h.set(c,Fa),f.push({id:0,language:"und",disabledUntilTime:0,primary:!0,audio:"audio"==ba?Fa.stream:null,video:"video"==ba?Fa.stream:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.i)throw new O(2,
732
- 7,7001);a.j=new U(null,0);a.j.zc(!0);1==d.type&&(cr(a)&&(zr(a),xa=a.P,a.m.O(xa)),Na=Array.from(a.h.values()),Ar(a,Na),hr(a));a.D={presentationTimeline:a.j,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:!0};a.i.makeTextStreamsForClosedCaptions(a.D);A(Ha)}})}
733
- function hr(a){if(cr(a)){if(a.P=a.J,a.fa==Br){for(var b,c=b=Infinity,d=t(a.h.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&(b=Math.min(b,e.Qa),c=Math.min(c,e.kb));b-=c;a.g.hls.useSafariBehaviorForLive&&(b=a.j.m);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.j.ne(b)}}else a.j.Aa(Cr(a));a.j.Od()}
728
+ function br(a,b,c){var d,e,f,g,h,k,l,m,p,n,q,v,y,w,x,D,z,B,E,F,H,I,J,N,S,Q,ba,M,ka,Fa,wa,Oa;return G(function(Ya){switch(Ya.g){case 1:d=Rq(a.W,b,a.M);e=Hq(d.g,"EXT-X-DEFINE");for(var Na=t(e),Ha=Na.next();!Ha.done;Ha=Na.next()){var Ka=Ha.value;Ha=Z(Ka,"NAME");Ka=Z(Ka,"VALUE");Ha&&Ka&&(a.o.has(Ha)||a.o.set(Ha,Ka))}f=[];g=[];h=[];if(1==d.type)return F=a.g.hls.mediaPlaylistFullMimeType,d.segments.length&&(H=new Mb(d.segments[0].i),I=H.ra.split(".").pop(),(J=pr[I])?F=J:"ts"!==I&&"mp4"!==I&&(qr[I]?(J=qr[I],
729
+ N=a.g.hls.defaultAudioCodec,F=J+'; codecs="'+N+'"'):rr[I]&&(J=rr[I],S=a.g.hls.defaultVideoCodec,F=J+'; codecs="'+S+'"'))),Q=F.split(";")[0],ba=Q.split("/")[0],M=bd(F),ka=new Map,u(Ya,sr(a,d,c,c,M,ba,"",!0,"Media Playlist",null,ka,null,!1,!1,Q),5);k=Hq(d.g,"EXT-X-MEDIA");l=Hq(d.g,"EXT-X-STREAM-INF");m=Hq(d.g,"EXT-X-IMAGE-STREAM-INF");p=Hq(d.g,"EXT-X-SESSION-KEY");Na=t(l);for(Ha=Na.next();!Ha.done;Ha=Na.next()){var Zb=Ha.value;Ka=Z(Zb,"AUDIO");Ha=Z(Zb,"VIDEO");var bb=Z(Zb,"SUBTITLES");Zb=tr(a,Zb);if(bb){var Tn=
730
+ gc(ic,Zb);a.s.set(bb,Tn);ib(Zb,Tn)}Ka&&(bb=gc("audio",Zb),bb||(bb=a.g.hls.defaultAudioCodec),a.s.set(Ka,bb));Ha&&(Ka=gc("video",Zb),Ka||(Ka=a.g.hls.defaultVideoCodec),a.s.set(Ha,Ka))}n=Hq(d.g,"EXT-X-SESSION-DATA");q=t(n);for(v=q.next();!v.done;v=q.next())if(y=v.value,w=Z(y,"DATA-ID"),x=Z(y,"URI"),D=Z(y,"LANGUAGE"),z=Z(y,"VALUE"),B=(new Map).set("id",w),x&&B.set("uri",Lq(a.M,x)),D&&B.set("language",D),z&&B.set("value",z),E=new R("sessiondata",B),a.i)a.i.onEvent(E);ur(a,k);Na=Iq(k,"CLOSED-CAPTIONS");
731
+ Na=t(Na);for(Ha=Na.next();!Ha.done;Ha=Na.next())Ka=Ha.value,bb=Z(Ka,"LANGUAGE"),Ha=vr(Ka),bb||(bb=Z(Ka,"NAME"))&&(Ha=bb),bb=Eq(Ka,"GROUP-ID"),Ka=Eq(Ka,"INSTREAM-ID").replace("SERVICE","svc"),a.L.get(bb)||a.L.set(bb,new Map),a.L.get(bb).set(Ka,Ha);f=wr(a,l,p);g=xr(a,k);return u(Ya,yr(a,m),4);case 4:h=Ya.h;Ya.B(3);break;case 5:Fa=Ya.h,a.h.set(c,Fa),f.push({id:0,language:"und",disabledUntilTime:0,primary:!0,audio:"audio"==ba?Fa.stream:null,video:"video"==ba?Fa.stream:null,bandwidth:0,allowedByApplication:!0,
732
+ allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.i)throw new O(2,7,7001);a.j=new U(null,0);a.j.zc(!0);1==d.type&&(cr(a)&&(zr(a,d),wa=a.O,a.m.N(wa)),Oa=Array.from(a.h.values()),Ar(a,Oa),hr(a));a.D={presentationTimeline:a.j,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:!0};a.i.makeTextStreamsForClosedCaptions(a.D);A(Ya)}})}
733
+ function hr(a){if(cr(a)){if(a.O=a.J,a.fa==Br){for(var b,c=b=Infinity,d=t(a.h.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&(b=Math.min(b,e.Qa),c=Math.min(c,e.kb));b-=c;a.g.hls.useSafariBehaviorForLive&&(b=a.j.m);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.j.ne(b)}}else a.j.Aa(Cr(a));a.j.Od()}
734
734
  function jr(a,b){var c=new Map;b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=Z(e,"NAME");var f=Z(e,"VALUE");e=Z(e,"IMPORT");d&&f&&c.set(d,f);e&&(d=a.o.get(e))&&c.set(e,d)}return c}
735
735
  function xr(a,b){var c=Iq(b,"SUBTITLES");b=c.map(function(g){if(a.g.disableText)return null;try{return Dr(a,g).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=Eq(d.value,"GROUP-ID");if(d=a.s.get(e))if(e=a.u.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=Er(ic,d)||Fr(ic)}}return b.filter(function(g){return g})}
736
- function yr(a,b){var c,d;return G(function(e){if(1==e.g)return c=b.map(function(f){var g,h,k;return G(function(l){if(1==l.g){if(g=a.g.disableThumbnails)return l.return(null);C(l,2);return u(l,Gr(a,f),4)}if(2!=l.g)return h=l.h,l.return(h.stream);k=wa(l);if(a.g.hls.ignoreImageStreamFailures)return l.return(null);throw k;})}),u(e,Promise.all(c),2);d=e.h;return e.return(d.filter(function(f){return f}))})}
736
+ function yr(a,b){var c,d;return G(function(e){if(1==e.g)return c=b.map(function(f){var g,h,k;return G(function(l){if(1==l.g){if(g=a.g.disableThumbnails)return l.return(null);C(l,2);return u(l,Gr(a,f),4)}if(2!=l.g)return h=l.h,l.return(h.stream);k=xa(l);if(a.g.hls.ignoreImageStreamFailures)return l.return(null);throw k;})}),u(e,Promise.all(c),2);d=e.h;return e.return(d.filter(function(f){return f}))})}
737
737
  function ur(a,b){b=b.filter(function(d){var e=Z(d,"URI")||"";return"SUBTITLES"!=Z(d,"TYPE")&&""!=e});b=t(b);for(var c=b.next();!c.done;c=b.next())Dr(a,c.value)}
738
738
  function wr(a,b,c){var d=[],e=new Set;if(0<c.length){c=t(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;var g=Eq(f,"METHOD");if("NONE"!=g&&"AES-128"!=g&&(g=Z(f,"KEYFORMAT")||"identity",f=(g=Hr[g])?g(f,""):null)){if(f.keyIds){g=t(f.keyIds);for(var h=g.next();!h.done;h=g.next())e.add(h.value)}d.push(f)}}}b=b.map(function(k){var l=Z(k,"FRAME-RATE"),m=Number(Z(k,"AVERAGE-BANDWIDTH"))||Number(Eq(k,"BANDWIDTH")),p=Z(k,"RESOLUTION");p=t(p?p.split("x"):[null,null]);var n=p.next().value,q=p.next().value,
739
739
  v=Z(k,"VIDEO-RANGE");k=Ir(a,k);p=k.audio;k=k.video;for(var y=t(k),w=y.next();!w.done;w=y.next())if(w=w.value.stream)w.width=Number(n)||void 0,w.height=Number(q)||void 0,w.frameRate=Number(l)||void 0,w.hdr=v||void 0;l=a.g.disableAudio;if(!p.length||l)p=[null];l=a.g.disableVideo;if(!k.length||l)k=[null];l=[];p=t(p);for(n=p.next();!n.done;n=p.next())for(n=n.value,q=t(k),v=q.next();!v.done;v=q.next()){var x=v.value;if(v=n?n.stream:null)v.drmInfos=d,v.keyIds=e;if(y=x?x.stream:null)y.drmInfos=d,y.keyIds=
@@ -744,45 +744,47 @@ function Dr(a,b){var c=Eq(b,"GROUP-ID"),d="",e=Eq(b,"TYPE").toLowerCase();"subti
744
744
  a.u.set(c,[d]);if(a.h.has(e))return a.h.get(e);a.h.set(e,d);return d}
745
745
  function Gr(a,b){var c,d,e,f,g,h,k,l,m,p;return G(function(n){if(1==n.g){c=Kr(Eq(b,"URI"),a.o);d=Z(b,"CODECS","jpeg")||"";if(a.h.has(c))return n.return(a.h.get(c));e=vr(b);f=Z(b,"NAME");g=Z(b,"CHARACTERISTICS");h=Lr(a,c,d,"image",e,!1,f,null,null,g,!1,!1);return a.h.has(c)?n.return(a.h.get(c)):(k=Z(b,"RESOLUTION"))?u(n,h.stream.createSegmentIndex(),3):n.B(2)}2!=n.g&&(l=h.stream.segmentIndex.get(0),m=l.tilesLayout)&&(h.stream.width=Number(k.split("x")[0])*Number(m.split("x")[0]),h.stream.height=Number(k.split("x")[1])*
746
746
  Number(m.split("x")[1]));if(p=Z(b,"BANDWIDTH"))h.stream.bandwidth=Number(p);a.h.set(c,h);return n.return(h)})}function Jr(a,b,c,d){var e=Kr(Eq(b,"URI"),a.o);if(a.h.has(e))return a.h.get(e);b=Z(b,"CLOSED-CAPTIONS");b="video"==d&&b&&"NONE"!=b?a.L.get(b):null;c=fc(d,c);d=Lr(a,e,c,d,"und",!1,null,null,b,null,!1,!1);if(a.h.has(e))return a.h.get(e);a.h.set(e,d);return d}
747
- function Lr(a,b,c,d,e,f,g,h,k,l,m,p){function n(D){var z,B,E,F,H,I,J,N,R,Q,ba,M,ka,Fa;return G(function(xa){if(1==xa.g)return u(xa,ar(a,y.Kc),2);if(3!=xa.g){z=xa.h;if(D.aborted)return xa.return();B=z.uri;E=Rq(a.W,z.data,B);F=cr(a);return u(xa,sr(a,E,b,B,c,d,e,f,g,h,k,l,m,p),3)}H=xa.h;if(D.aborted)return xa.return();I=H.stream;cr(a)&&!F&&zr(a);y.Kc=B;y.kb=H.kb;y.Qa=H.Qa;y.Nc=H.Nc;y.nc=H.nc;y.ad=H.ad;y.Nd=!0;v.segmentIndex=I.segmentIndex;v.encrypted=I.encrypted;v.drmInfos=I.drmInfos;v.keyIds=I.keyIds;
748
- v.mimeType=I.mimeType;Yi.includes(v.mimeType)&&(v.codecs="");v.drmInfos.length&&a.i.newDrmInfo(v);J=jc;if(d==J.va||d==J.Ic)for(N=t(a.h.values()),R=N.next();!R.done;R=N.next())Q=R.value,Q.Nd||Q.type!=d||(Q.stream.mimeType=I.mimeType,Yi.includes(Q.stream.mimeType)&&(Q.stream.codecs=""));d==J.X&&(ba=I.segmentIndex.get(0))&&ba.h&&(v.mimeType="application/mp4");Mr(a)&&(a.Ga?Ar(a,[y]):(a.Ga=!0,M=Array.from(a.h.values()),ka=M.filter(function(Na){return Na.stream.segmentIndex}),Ar(a,ka),hr(a),Fa=a.P,0<Fa&&
749
- a.m.O(Fa)));A(xa)})}var q=Lq(a.M,b),v=Nr(a,c,d,e,f,g,h,k,l,m,p);Yi.includes(v.mimeType)&&(v.codecs="");var y={stream:v,type:d,Bc:b,Kc:q,kb:0,Qa:0,ad:new Map,Nc:!1,nc:!1,Ed:-1,Nd:!1},w=null,x=new AbortController;v.createSegmentIndex=function(){if(w)return w;x=new AbortController;return w=new Promise(function(D){D(n(x.signal))})};v.closeSegmentIndex=function(){w&&!v.segmentIndex&&x.abort();v.segmentIndex&&(v.segmentIndex.release(),v.segmentIndex=null);w=null};return y}
747
+ function Lr(a,b,c,d,e,f,g,h,k,l,m,p){function n(D){var z,B,E,F,H,I,J,N,S,Q,ba,M,ka,Fa;return G(function(wa){if(1==wa.g)return u(wa,ar(a,y.Kc),2);if(3!=wa.g){z=wa.h;if(D.aborted)return wa.return();B=z.uri;E=Rq(a.W,z.data,B);F=cr(a);return u(wa,sr(a,E,b,B,c,d,e,f,g,h,k,l,m,p),3)}H=wa.h;if(D.aborted)return wa.return();I=H.stream;cr(a)&&!F&&zr(a,E);y.Kc=B;y.kb=H.kb;y.Qa=H.Qa;y.Nc=H.Nc;y.nc=H.nc;y.bd=H.bd;y.Nd=!0;v.segmentIndex=I.segmentIndex;v.encrypted=I.encrypted;v.drmInfos=I.drmInfos;v.keyIds=I.keyIds;
748
+ v.mimeType=I.mimeType;Yi.includes(v.mimeType)&&(v.codecs="");v.drmInfos.length&&a.i.newDrmInfo(v);J=jc;if(d==J.va||d==J.Ic)for(N=t(a.h.values()),S=N.next();!S.done;S=N.next())Q=S.value,Q.Nd||Q.type!=d||(Q.stream.mimeType=I.mimeType,Yi.includes(Q.stream.mimeType)&&(Q.stream.codecs=""));d==J.Y&&(ba=I.segmentIndex.get(0))&&ba.h&&(v.mimeType="application/mp4");Mr(a)&&(a.Ga?Ar(a,[y]):(a.Ga=!0,M=Array.from(a.h.values()),ka=M.filter(function(Oa){return Oa.stream.segmentIndex}),Ar(a,ka),hr(a),Fa=a.O,0<Fa&&
749
+ a.m.N(Fa)));A(wa)})}var q=Lq(a.M,b),v=Nr(a,c,d,e,f,g,h,k,l,m,p);Yi.includes(v.mimeType)&&(v.codecs="");var y={stream:v,type:d,Bc:b,Kc:q,kb:0,Qa:0,bd:new Map,Nc:!1,nc:!1,Fd:-1,Nd:!1},w=null,x=new AbortController;v.createSegmentIndex=function(){if(w)return w;x=new AbortController;return w=new Promise(function(D){D(n(x.signal))})};v.closeSegmentIndex=function(){w&&!v.segmentIndex&&x.abort();v.segmentIndex&&(v.segmentIndex.release(),v.segmentIndex=null);w=null};return y}
750
750
  function Cr(a){var b=Infinity;a=t(a.h.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&"text"!=c.stream.type&&(b=Math.min(b,c.Qa));return b}function er(a,b){var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&Kj(d.segmentIndex,function(e){c.push(e)});a.j.Jb(c)}
751
751
  function Ar(a,b){if(!cr(a))for(var c=Cr(a),d=t(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.Ya(0,c);c=t(b);for(e=c.next();!e.done;e=c.next())e=e.value.stream,Yi.includes(e.mimeType)&&(e.codecs="");er(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?mr(a,b):or(a,b)}
752
752
  function Mr(a){if(!a.D)return!1;var b=[],c=[];a=t(a.D.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}
753
- function sr(a,b,c,d,e,f,g,h,k,l,m,p,n,q,v){var y,w,x,D,z,B,E,F,H,I,J,N,R,Q,ba,M;return G(function(ka){if(1==ka.g){if(1!=b.type)throw new O(2,4,4017);y=Hq(b.g,"EXT-X-DEFINE");w=jr(a,y);Or(a,b);return v?ka.B(2):u(ka,Pr(a,f,e,b,w),3)}2!=ka.g&&(v=ka.h);x=kr(b,v);D=x.drmInfos;z=x.keyIds;B=x.encrypted;E=x.lf;if(B&&!D.length&&!E)throw new O(2,4,4026);F=cr(a)?a.F.get(f):new Map;H=a.l;I=lr(a,b,f,F,w);H!=a.l&&Or(a,b);J=I[0].startTime;N=I[I.length-1].endTime;R=new Jj(I);ba=(Q=Jq(b.g,"EXT-X-SERVER-CONTROL"))?
754
- null!=Q.getAttribute("CAN-SKIP-UNTIL"):!1;M=Nr(a,e,f,g,h,k,l,m,p,n,q);M.segmentIndex=R;M.encrypted=B;M.drmInfos=D;M.keyIds=z;M.mimeType=v;return ka.return({stream:M,type:f,Bc:c,Kc:d,kb:J,Qa:N,Nc:ba,nc:!1,Ed:-1,ad:F,Nd:!1})})}
753
+ function sr(a,b,c,d,e,f,g,h,k,l,m,p,n,q,v){var y,w,x,D,z,B,E,F,H,I,J,N,S,Q,ba,M;return G(function(ka){if(1==ka.g){if(1!=b.type)throw new O(2,4,4017);y=Hq(b.g,"EXT-X-DEFINE");w=jr(a,y);Or(a,b);return v?ka.B(2):u(ka,Pr(a,f,e,b,w),3)}2!=ka.g&&(v=ka.h);x=kr(b,v);D=x.drmInfos;z=x.keyIds;B=x.encrypted;E=x.lf;if(B&&!D.length&&!E)throw new O(2,4,4026);F=cr(a)?a.F.get(f):new Map;H=a.l;I=lr(a,b,f,F,w);H!=a.l&&Or(a,b);J=I[0].startTime;N=I[I.length-1].endTime;S=new Jj(I);ba=(Q=Jq(b.g,"EXT-X-SERVER-CONTROL"))?
754
+ null!=Q.getAttribute("CAN-SKIP-UNTIL"):!1;M=Nr(a,e,f,g,h,k,l,m,p,n,q);M.segmentIndex=S;M.encrypted=B;M.drmInfos=D;M.keyIds=z;M.mimeType=v;return ka.return({stream:M,type:f,Bc:c,Kc:d,kb:J,Qa:N,Nc:ba,nc:!1,Fd:-1,bd:F,Nd:!1})})}
755
755
  function Nr(a,b,c,d,e,f,g,h,k,l,m){var p=Er(c,b)||Fr(c),n=[];if(k){k=t(k.split(","));for(var q=k.next();!q.done;q=k.next())n.push(q.value)}k=c==ic?"subtitle":void 0;n.length||"subtitle"!==k||n.push("subtitle");return{id:a.Fa++,originalId:f,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:p,codecs:b,kind:k,encrypted:!1,drmInfos:[],keyIds:new Set,language:d,label:f,type:c,primary:e,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,
756
756
  height:void 0,bandwidth:void 0,roles:n,forced:l,channelsCount:g,audioSamplingRate:null,spatialAudio:m,closedCaptions:h,hdr:void 0,tilesLayout:void 0,external:!1}}
757
757
  function kr(a,b){var c=[];if(a.segments){a=t(a.segments);for(var d=a.next();!d.done;d=a.next())d=Hq(d.value.g,"EXT-X-KEY"),c.push.apply(c,ia(d))}d=a=!1;var e=[],f=new Set;c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=Eq(g,"METHOD");if("NONE"!=h)if(a=!0,"AES-128"==h)d=!0;else if(h=Z(g,"KEYFORMAT")||"identity",g=(h=Hr[h])?h(g,b):null){if(g.keyIds){h=t(g.keyIds);for(var k=h.next();!k.done;k=h.next())f.add(k.value)}e.push(g)}}return{drmInfos:e,keyIds:f,encrypted:a,lf:d}}
758
758
  function Qr(a,b,c){if(!window.crypto||!window.crypto.subtle)throw Xa("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new O(2,4,4042);var d=0,e=Z(b,"IV","");if(e){var f=Lc(e.substr(2));if(16!=f.byteLength)throw new O(2,4,4043);}else d=Kq(c.g,"EXT-X-MEDIA-SEQUENCE");b=Lq(c.h,Eq(b,"URI"));var g=bf([b],a.g.retryParameters),h={method:"AES-128",iv:f,firstMediaSequenceNumber:d,fetchKey:function(){var k,l,m;return G(function(p){if(1==p.g)return u(p,
759
759
  Rr(a,g,6),2);if(3!=p.g){k=p.h;if(!k.data||16!=k.data.byteLength)throw new O(2,4,4044);l={name:"AES-CBC"};m=h;return u(p,window.crypto.subtle.importKey("raw",k.data,l,!0,["decrypt"]),3)}m.cryptoKey=p.h;h.fetchKey=void 0;A(p)})}};return h}
760
760
  function Or(a,b){var c=Jq(b.g,"EXT-X-PLAYLIST-TYPE"),d=Jq(b.g,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;if(d)gr(a,$q);else{c?gr(a,Br):gr(a,Sr);d=Jq(b.g,"EXT-X-TARGETDURATION");if(!d)throw new O(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);c=Jq(b.g,"EXT-X-PART-INF");a.l&&c?(a.ea=Number(Eq(c,"PART-TARGET")),a.J=Math.min(a.ea,a.J),b=Jq(b.g,"EXT-X-SERVER-CONTROL"),a.V=b?Number(Eq(b,"PART-HOLD-BACK")):0):a.J=Math.min(d,a.J);a.da=Math.max(d,a.da)}}
761
- function zr(a){var b=a.g.defaultPresentationDelay?a.g.defaultPresentationDelay:a.V?a.V:a.da*a.g.hls.liveSegmentsDelay;a.j.Ye(0);a.j.Xe(b);a.j.zc(!1)}function Tr(a,b,c,d){c=Jq(c,"EXT-X-MAP");if(!c)return null;var e=Eq(c,"URI");d=Kr(Lq(b,e),d);b=[d,Z(c,"BYTERANGE","")].join("-");a.ba.has(b)||(c=Ur(d,c),a.ba.set(b,c));return a.ba.get(b)}function Ur(a,b){var c=0,d=null;if(b=Z(b,"BYTERANGE"))c=b.split("@"),d=Number(c[0]),c=Number(c[1]),d=c+d-1;return new pi(function(){return[a]},c,d)}
762
- function Vr(a,b,c,d,e,f,g,h,k,l){var m=d.g,p=Kr(d.i,f),n=Jq(m,"EXTINF"),q=0;f=0;var v=null;d.h.length&&!a.l&&Xa("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");var y=null;if(!a.g.hls.ignoreManifestProgramDateTime){var w=Jq(m,"EXT-X-PROGRAM-DATE-TIME");w&&w.value&&(y=Uf(w.value))}w=ri;Jq(m,"EXT-X-GAP")&&(w=2);if(!n){if(0==d.h.length)throw new O(2,4,
763
- 4024,"EXTINF");if(!a.l)return null}var x=[];if(a.l){q={};for(var D=0;D<d.h.length;q={rd:q.rd},D++){var z=d.h[D],B=0==D?c:x[x.length-1],E=0==D?e:B.endTime,F=Number(Z(z,"DURATION"))||a.ea;if(F){F=E+F;var H=0,I=null;"EXT-X-PRELOAD-HINT"==z.name?H=(H=Z(z,"BYTERANGE-START"))?Number(H):0:(H=Z(z,"BYTERANGE"),I=t(Wr(B,H)),H=I.next().value,I=I.next().value);if(B=Z(z,"URI"))q.rd=Lq(g,B),B=ri,"YES"==Z(z,"GAP")&&(B=2),E=new T(E,F,function(J){return function(){return[J.rd]}}(q),H,I,b,0,0,Infinity,[],"",null,null,
764
- B),"EXT-X-PRELOAD-HINT"==z.name&&E.Me(),x.push(E)}}}if(n){a=Number(n.value.split(",")[0]);if(0==a)return null;q=e+a}else q=x[x.length-1].endTime;(a=Jq(m,"EXT-X-BYTERANGE"))?(v=t(Wr(c,a.value)),f=v.next().value,v=v.next().value):x.length&&(f=x[0].Ba,v=x[x.length-1].ma);c="";a=null;"image"==h&&(c="1x1",h=Jq(m,"EXT-X-TILES"))&&(c=Eq(h,"LAYOUT"),(h=Z(h,"DURATION"))&&(a=Number(h)));return new T(e,q,function(){return p.length?[p]:[]},f,v,b,k,0,Infinity,x,c,a,y,w,l)}
761
+ function zr(a,b){if(a.g.defaultPresentationDelay)b=a.g.defaultPresentationDelay;else if(a.V)b=a.V;else{b=b.segments.length;var c=a.g.hls.liveSegmentsDelay;c>b-2&&(c=Math.max(1,b-2));b=a.da*c}a.j.Ye(0);a.j.Xe(b);a.j.zc(!1)}
762
+ function Tr(a,b,c,d){var e=Jq(c,"EXT-X-MAP");if(!e)return null;var f=Eq(e,"URI");f=Kr(Lq(b.h,f),d);d=[f,Z(e,"BYTERANGE","")].join("-");if(!a.ba.has(d)){var g=void 0;c=t(c);for(var h=c.next();!h.done;h=c.next())h=h.value,"EXT-X-KEY"==h.name&&"AES-128"==Eq(h,"METHOD")&&h.id<e.id&&(g=Qr(a,h,b));b=Ur(f,e,g);a.ba.set(d,b)}return a.ba.get(d)}
763
+ function Ur(a,b,c){var d=0,e=null;if(b=Z(b,"BYTERANGE"))d=b.split("@"),e=Number(d[0]),d=Number(d[1]),e=d+e-1,c&&(b=e+1-d,b%16&&(e+=16-b%16));return new pi(function(){return[a]},d,e,null,null,c)}
764
+ function Vr(a,b,c,d,e,f,g,h,k){var l=d.g,m=Kr(d.i,f),p=Jq(l,"EXTINF"),n=0;f=0;var q=null;d.h.length&&!a.l&&Xa("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");var v=null;if(!a.g.hls.ignoreManifestProgramDateTime){var y=Jq(l,"EXT-X-PROGRAM-DATE-TIME");y&&y.value&&(v=Uf(y.value))}y=ri;Jq(l,"EXT-X-GAP")&&(y=2);if(!p){if(0==d.h.length)throw new O(2,4,4024,
765
+ "EXTINF");if(!a.l)return null}var w=[];if(a.l){n={};for(var x=0;x<d.h.length;n={sd:n.sd},x++){var D=d.h[x],z=0==x?c:w[w.length-1],B=0==x?e:z.endTime,E=Number(Z(D,"DURATION"))||a.ea;if(E){E=B+E;var F=0,H=null;"EXT-X-PRELOAD-HINT"==D.name?F=(F=Z(D,"BYTERANGE-START"))?Number(F):0:(F=Z(D,"BYTERANGE"),H=t(Wr(z,F)),F=H.next().value,H=H.next().value);if(z=Z(D,"URI"))n.sd=Lq(g,z),z=ri,"YES"==Z(D,"GAP")&&(z=2),B=new T(B,E,function(I){return function(){return[I.sd]}}(n),F,H,b,0,0,Infinity,[],"",null,null,z),
766
+ "EXT-X-PRELOAD-HINT"==D.name&&B.Me(),w.push(B)}}}if(p){a=Number(p.value.split(",")[0]);if(0==a)return null;n=e+a}else if(w.length)n=w[w.length-1].endTime;else return null;(a=Jq(l,"EXT-X-BYTERANGE"))?(q=t(Wr(c,a.value)),f=q.next().value,q=q.next().value):w.length&&(f=w[0].Ba,q=w[w.length-1].ma);c="";a=null;"image"==h&&(c="1x1",h=Jq(l,"EXT-X-TILES"))&&(c=Eq(h,"LAYOUT"),(h=Z(h,"DURATION"))&&(a=Number(h)));return new T(e,n,function(){return m.length?[m]:[]},f,q,b,0,0,Infinity,w,c,a,v,y,k)}
765
767
  function Wr(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.ma+1,d=c+b-1);return[c,d]}
766
- function lr(a,b,c,d,e){var f=b.segments,g=void 0,h=Kq(b.g,"EXT-X-DISCONTINUITY-SEQUENCE"),k=Kq(b.g,"EXT-X-MEDIA-SEQUENCE"),l=Jq(b.g,"EXT-X-SKIP");l=l?Number(Z(l,"SKIPPED-SEGMENTS")):0;var m=k+l,p=0;cr(a)&&d.has(m)&&(p=d.get(m));for(var n=[],q=null,v=p,y=0;y<f.length;y++){var w=f[y],x=0==y?p:q.endTime;m=k+l+y;Jq(w.g,"EXT-X-DISCONTINUITY")&&(h++,v=x);var D=t(w.g);for(var z=D.next();!z.done;z=D.next())z=z.value,"EXT-X-KEY"==z.name&&("AES-128"==Eq(z,"METHOD")?g=Qr(a,z,b):g=void 0);d.set(m,x);D=Tr(a,b.h,
767
- w.g,e);!a.l&&a.i.isAutoLowLatencyMode()&&(a.i.enableLowLatencyMode(),a.l=a.i.isLowLatencyMode());if(w=Vr(a,D,q,w,x,e,b.h,c,v,g))q=w,w.j=h,a.g.hls.ignoreManifestProgramDateTime&&null!=a.A&&m<a.A||n.push(w)}if(b=n.some(function(B){return null!=B.g}))for(c={},d=0;d<n.length;c={Rb:c.Rb,Qb:c.Qb,Cc:c.Cc,Ua:c.Ua,Pb:c.Pb},d++)if(c.Ua=n[d],null==c.Ua.g)for(c.Qb=0,c.Rb=d,e=function(B){return function(){var E=n[B.Rb];if(E){if(null!=E.g)return E.g+B.Qb;B.Qb-=E.endTime-E.startTime;B.Rb+=1}return null}}(c),c.Pb=
768
- 0,c.Cc=d,f=function(B){return function(){var E=n[B.Cc];if(E){E!=B.Ua&&(B.Pb+=E.endTime-E.startTime);if(null!=E.g)return E.g+B.Pb;--B.Cc}return null}}(c);null==c.Ua.g;)c.Ua.g=f(),null==c.Ua.g&&(c.Ua.g=e());if(b)for(c=t(n),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.g,e=t(e.i),f=e.next();!f.done;f=e.next())f=f.value,f.g=d,d+=f.endTime-f.startTime;a=a.H;if(b&&Infinity!=a)for(b=t(n),d=b.next();!d.done;d=b.next())d.value.oe(a);return n}
768
+ function lr(a,b,c,d,e){var f=b.segments,g=void 0,h=Kq(b.g,"EXT-X-DISCONTINUITY-SEQUENCE"),k=Kq(b.g,"EXT-X-MEDIA-SEQUENCE"),l=Jq(b.g,"EXT-X-SKIP");l=l?Number(Z(l,"SKIPPED-SEGMENTS")):0;var m=k+l,p=0;cr(a)&&d.has(m)&&(p=d.get(m));for(var n=[],q=null,v=0;v<f.length;v++){var y=f[v],w=0==v?p:q.endTime;m=k+l+v;Jq(y.g,"EXT-X-DISCONTINUITY")&&h++;var x=t(y.g);for(var D=x.next();!D.done;D=x.next())D=D.value,"EXT-X-KEY"==D.name&&("AES-128"==Eq(D,"METHOD")?g=Qr(a,D,b):g=void 0);d.set(m,w);x=Tr(a,b,y.g,e);!a.l&&
769
+ a.i.isAutoLowLatencyMode()&&(a.i.enableLowLatencyMode(),a.l=a.i.isLowLatencyMode());if(y=Vr(a,x,q,y,w,e,b.h,c,g))q=y,y.l=h,a.g.hls.ignoreManifestProgramDateTime&&null!=a.A&&m<a.A||n.push(y)}if(b=n.some(function(z){return null!=z.g}))for(c={},d=0;d<n.length;c={Rb:c.Rb,Qb:c.Qb,Cc:c.Cc,Ua:c.Ua,Pb:c.Pb},d++)if(c.Ua=n[d],null==c.Ua.g)for(c.Qb=0,c.Rb=d,e=function(z){return function(){var B=n[z.Rb];if(B){if(null!=B.g)return B.g+z.Qb;z.Qb-=B.endTime-B.startTime;z.Rb+=1}return null}}(c),c.Pb=0,c.Cc=d,f=function(z){return function(){var B=
770
+ n[z.Cc];if(B){B!=z.Ua&&(z.Pb+=B.endTime-B.startTime);if(null!=B.g)return B.g+z.Pb;--z.Cc}return null}}(c);null==c.Ua.g;)c.Ua.g=f(),null==c.Ua.g&&(c.Ua.g=e());if(b)for(c=t(n),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.g,e=t(e.i),f=e.next();!f.done;f=e.next())f=f.value,f.g=d,d+=f.endTime-f.startTime;a=a.H;if(b&&Infinity!=a)for(b=t(n),d=b.next();!d.done;d=b.next())d.value.oe(a);return n}
769
771
  function Kr(a,b){if(!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 O(2,4,4039,e);}}return a}function Er(a,b){if(a==ic){if("vtt"==b||"wvtt"==b)return"text/vtt";if(b&&""!==b)return"application/mp4"}return"image"!=a||b&&"jpeg"!=b?"audio"==a&&"mp4a.40.34"==b?"audio/mpeg":null:"image/jpeg"}
770
772
  function Fr(a){return a==ic?"text/vtt":Xr[a].mp4}function Pr(a,b,c,d,e){var f,g,h,k,l,m,p,n,q,v;return G(function(y){if(1==y.g){f=hf;g=Math.trunc((d.segments.length-1)/2);h=Kr(d.segments[g].i,e);k=new Mb(h);l=k.ra.split(".").pop();m=Xr[b];if((p=m[l])||(p=pr[l])||(p=Er(b,c)))return y.return(p);n=bf([h],a.g.retryParameters);n.method="HEAD";return u(y,Rr(a,n,f),2)}q=y.h;return(v=q.headers["content-type"])?y.return(v.split(";")[0]):y.return(Fr(b))})}
771
- function ar(a,b){b=bf([b],a.g.retryParameters);a.i.modifyManifestRequest(b,{format:"h"});return Rr(a,b,0)}function Zq(a){var b,c;G(function(d){if(1==d.g){if(!a.i)return d.return();C(d,2);return u(d,a.update(),4)}if(2!=d.g)return cr(a)&&(b=a.P,a.m.O(b)),va(d,0);c=wa(d);if(!a.i)return d.return();c.severity=1;a.i.onError(c);a.m.O(.1);A(d)})}function cr(a){return a.fa!=$q}function gr(a,b){a.fa=b;a.j&&a.j.zc(!cr(a));cr(a)||a.m.stop()}
773
+ function ar(a,b){b=bf([b],a.g.retryParameters);a.i.modifyManifestRequest(b,{format:"h"});return Rr(a,b,0)}function Zq(a){var b,c;G(function(d){if(1==d.g){if(!a.i)return d.return();C(d,2);return u(d,a.update(),4)}if(2!=d.g)return cr(a)&&(b=a.O,a.m.N(b)),va(d,0);c=xa(d);if(!a.i)return d.return();c.severity=1;a.i.onError(c);a.m.N(.1);A(d)})}function cr(a){return a.fa!=$q}function gr(a,b){a.fa=b;a.j&&a.j.zc(!cr(a));cr(a)||a.m.stop()}
772
774
  function Rr(a,b,c){if(!a.G)throw new O(2,7,7001);b=a.i.networkingEngine.request(c,b);Xe(a.G,b);return b.promise}K("shaka.hls.HlsParser",Yq);
773
775
  var pr={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},qr={mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",tsa:"video/mp2t"},rr={mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t",tsv:"video/mp2t"},Xr={audio:qr,video:rr,text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",
774
776
  vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},Hr={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new O(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new O(2,4,4041);return ec("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=Eq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;
775
777
  b=Eq(a,"URI");b=Xq(b);b=L(b.data);b=ec("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=Z(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=Eq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=Eq(a,"URI");a=Xq(a);a=L(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Jf(a,b,new Set,0);return ec("com.microsoft.playready",[{initDataType:"cenc",initData:a}])},identity:function(a){a=
776
- Eq(a,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a)?ec("org.w3.clearkey",null):null}},$q="VOD",Sr="EVENT",Br="LIVE",fr={gf:$q,Qg:Sr,Ug:Br};sc("Tizen 3")||sc("Tizen 2")||uc()||(Ug.m3u8=function(){return new Yq},Sg["application/x-mpegurl"]=function(){return new Yq},Sg["application/vnd.apple.mpegurl"]=function(){return new Yq});function Yr(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=Ec(b)}catch(g){}throw new O(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function Zr(){}function $r(a,b,c,d,e){var f=new as;sf(b.headers).forEach(function(l,m){f.append(m,l)});var g=new bs,h={ye:!1,cf:!1};a=cs(a,c,{body:b.body||void 0,headers:f,method:b.method,signal:g.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},h,d,e,b.streamDataCallback);a=new Ke(a,function(){h.ye=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new P(function(){h.cf=!0;g.abort()});k.O(b/1E3);a.finally(function(){k.stop()})}return a}
777
- function cs(a,b,c,d,e,f,g){var h,k,l,m,p,n,q,v,y,w,x,D,z;return G(function(B){switch(B.g){case 1:return h=ds,k=es,n=p=0,q=Date.now(),C(B,2),u(B,h(a,c),4);case 4:l=B.h;f(fs(l.headers));if("HEAD"==c.method){B.B(5);break}v=l.clone().body.getReader();w=(y=l.headers.get("Content-Length"))?parseInt(y,10):0;x=function(E){function F(){var H,I;return G(function(J){switch(J.g){case 1:return C(J,2),u(J,v.read(),4);case 4:H=J.h;va(J,3);break;case 2:return wa(J),J.return();case 3:if(H.done){J.B(5);break}p+=H.value.byteLength;
778
- if(!g){J.B(5);break}return u(J,g(H.value),5);case 5:I=Date.now();if(100<I-q||H.done)e(I-q,p-n,w-p),n=p,q=I;H.done?E.close():(E.enqueue(H.value),F());A(J)}})}F()};new k({start:x});return u(B,l.arrayBuffer(),6);case 6:m=B.h;case 5:va(B,3);break;case 2:D=wa(B);if(d.ye)throw new O(1,1,7001,a,b);if(d.cf)throw new O(1,1,1003,a,b);throw new O(1,1,1002,a,D,b);case 3:return z=fs(l.headers),B.return(Yr(z,m,l.status,a,l.url,b))}})}function fs(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}
778
+ Eq(a,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a)?ec("org.w3.clearkey",null):null}},$q="VOD",Sr="EVENT",Br="LIVE",fr={gf:$q,Qg:Sr,Ug:Br};sc("Tizen 3")||sc("Tizen 2")||uc()||(Ug.m3u8=function(){return new Yq},Sg["application/x-mpegurl"]=function(){return new Yq},Sg["application/vnd.apple.mpegurl"]=function(){return new Yq});function Yr(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=Ec(b)}catch(g){}throw new O(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function Zr(){}function $r(a,b,c,d,e){var f=new as;sf(b.headers).forEach(function(l,m){f.append(m,l)});var g=new bs,h={ye:!1,cf:!1};a=cs(a,c,{body:b.body||void 0,headers:f,method:b.method,signal:g.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},h,d,e,b.streamDataCallback);a=new Ke(a,function(){h.ye=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new P(function(){h.cf=!0;g.abort()});k.N(b/1E3);a.finally(function(){k.stop()})}return a}
779
+ function cs(a,b,c,d,e,f,g){var h,k,l,m,p,n,q,v,y,w,x,D,z;return G(function(B){switch(B.g){case 1:return h=ds,k=es,n=p=0,q=Date.now(),C(B,2),u(B,h(a,c),4);case 4:l=B.h;f(fs(l.headers));if("HEAD"==c.method){B.B(5);break}v=l.clone().body.getReader();w=(y=l.headers.get("Content-Length"))?parseInt(y,10):0;x=function(E){function F(){var H,I;return G(function(J){switch(J.g){case 1:return C(J,2),u(J,v.read(),4);case 4:H=J.h;va(J,3);break;case 2:return xa(J),J.return();case 3:if(H.done){J.B(5);break}p+=H.value.byteLength;
780
+ if(!g){J.B(5);break}return u(J,g(H.value),5);case 5:I=Date.now();if(100<I-q||H.done)e(I-q,p-n,w-p),n=p,q=I;H.done?E.close():(E.enqueue(H.value),F());A(J)}})}F()};new k({start:x});return u(B,l.arrayBuffer(),6);case 6:m=B.h;case 5:va(B,3);break;case 2:D=xa(B);if(d.ye)throw new O(1,1,7001,a,b);if(d.cf)throw new O(1,1,1003,a,b);throw new O(1,1,1002,a,D,b);case 3:return z=fs(l.headers),B.return(Yr(z,m,l.status,a,l.url,b))}})}function fs(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}
779
781
  function gs(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;if(window.Response){if(!(new Response("")).body)return!1}else return!1;return!(!window.fetch||!window.AbortController)}K("shaka.net.HttpFetchPlugin",Zr);Zr.isSupported=gs;Zr.parse=$r;var ds=window.fetch,bs=window.AbortController,es=window.ReadableStream,as=window.Headers;gs()&&(Ze("http",$r,2,!0),Ze("https",$r,2,!0),Ze("blob",$r,2,!0));function hs(){}
780
782
  function is(a,b,c,d,e){var f=new js,g=Date.now(),h=0,k=new Promise(function(l,m){f.open(b.method,a,!0);f.responseType="arraybuffer";f.timeout=b.retryParameters.timeout;f.withCredentials=b.allowCrossSiteCredentials;f.onabort=function(){m(new O(1,1,7001,a,c))};var p=!1;f.onreadystatechange=function(){if(2==f.readyState&&!p){var q=ks(f);e(q);p=!0}};f.onload=function(){var q=ks(f),v=f.response;try{var y=Yr(q,v,f.status,a,f.responseURL,c);l(y)}catch(w){m(w)}};f.onerror=function(q){m(new O(1,1,1002,a,q,
781
783
  c))};f.ontimeout=function(){m(new O(1,1,1003,a,c))};f.onprogress=function(q){var v=Date.now();if(100<v-g||q.lengthComputable&&q.loaded==q.total)d(v-g,q.loaded-h,q.total-q.loaded),h=q.loaded,g=v};for(var n in b.headers)f.setRequestHeader(n.toLowerCase(),b.headers[n]);f.send(b.body)});return new Ke(k,function(){f.abort();return Promise.resolve()})}
782
784
  function ks(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value.split(": "),a[c[0].toLowerCase()]=c.slice(1).join(": ");return a}K("shaka.net.HttpXHRPlugin",hs);hs.parse=is;var js=window.XMLHttpRequest;Ze("http",is,1,!0);Ze("https",is,1,!0);Ze("blob",is,1,!0);function ls(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function ms(a){return a.ya().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.Ba+":"+a.ma}function ns(a,b){return ck(a.g.ya(),a.g.Ba,a.g.ma,b.streaming.retryParameters)};function os(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function ps(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}os.prototype.close=function(a,b){if(this.g.has(a)){var c=this.g.get(a);this.g.delete(a);this.j+=c;this.h+=b}};function qs(a){var b=this;this.o=a;this.j=new Map;this.i=new jf(function(){return rs(b).catch(function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new os}qs.prototype.destroy=function(){return this.i.destroy()};function ss(a,b,c){a.m=b;a.l=c}function rs(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
783
785
  function ts(a,b,c,d,e,f){kf(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,p,n,q;return G(function(v){if(1==v.g)return u(v,us(a,c),2);h=v.h;if(a.i.g)throw new O(2,9,7001);if(e)for(m in k=L(h),l=new If(k),l.data)p=Number(m),n=l.data[p],q=l.g[p],a.l(n,q);a.g.close(d,h.byteLength);var y=a.g;a.m(0==y.i?0:y.j/y.i,a.g.h);return v.return(f(h))})});a.j.set(b,g)}function vs(a){return G(function(b){return 1==b.g?u(b,Promise.all(a.j.values()),2):b.return(a.g.h)})}
784
- function us(a,b){var c,d,e,f;return G(function(g){if(1==g.g)return c=hf,d=a.o.request(c,b),e=function(){return d.abort()},a.h.push(e),u(g,d.promise,2);f=g.h;gb(a.h,e);return g.return(f.data)})};function ws(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new kc;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}ws.prototype.abort=function(){var a=this;return G(function(b){if(1==b.g){try{a.i.abort()}catch(c){}C(b,2);return u(b,a.g,4)}if(2!=b.g)return va(b,0);wa(b);A(b)})};
785
- function xs(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return G(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return u(g,b(f.key,f.value,f),2)}f.continue();A(g)})}})}ws.prototype.store=function(){return this.h};ws.prototype.promise=function(){return this.g};function ys(a){this.h=a;this.g=[]}ys.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function zs(a,b){return As(a,b,"readwrite")}function As(a,b,c){c=a.h.transaction([b],c);var d=new ws(c,b);a.g.push(d);d.promise().then(function(){gb(a.g,d)},function(){gb(a.g,d)});return d};function Bs(a,b,c){this.h=new ys(a);this.i=b;this.g=c}r=Bs.prototype;r.destroy=function(){return this.h.destroy()};r.hasFixedKeySpace=function(){return!0};r.addSegments=function(){return Cs(this.i)};r.removeSegments=function(a,b){return Ds(this,this.i,a,b)};r.getSegments=function(a){var b=this,c;return G(function(d){if(1==d.g)return u(d,Es(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.ze(e)}))})};r.addManifests=function(){return Cs(this.g)};
786
+ function us(a,b){var c,d,e,f;return G(function(g){if(1==g.g)return c=hf,d=a.o.request(c,b),e=function(){return d.abort()},a.h.push(e),u(g,d.promise,2);f=g.h;ib(a.h,e);return g.return(f.data)})};function ws(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new kc;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}ws.prototype.abort=function(){var a=this;return G(function(b){if(1==b.g){try{a.i.abort()}catch(c){}C(b,2);return u(b,a.g,4)}if(2!=b.g)return va(b,0);xa(b);A(b)})};
787
+ function xs(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return G(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return u(g,b(f.key,f.value,f),2)}f.continue();A(g)})}})}ws.prototype.store=function(){return this.h};ws.prototype.promise=function(){return this.g};function ys(a){this.h=a;this.g=[]}ys.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function zs(a,b){return As(a,b,"readwrite")}function As(a,b,c){c=a.h.transaction([b],c);var d=new ws(c,b);a.g.push(d);d.promise().then(function(){ib(a.g,d)},function(){ib(a.g,d)});return d};function Bs(a,b,c){this.h=new ys(a);this.i=b;this.g=c}r=Bs.prototype;r.destroy=function(){return this.h.destroy()};r.hasFixedKeySpace=function(){return!0};r.addSegments=function(){return Cs(this.i)};r.removeSegments=function(a,b){return Ds(this,this.i,a,b)};r.getSegments=function(a){var b=this,c;return G(function(d){if(1==d.g)return u(d,Es(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.ze(e)}))})};r.addManifests=function(){return Cs(this.g)};
786
788
  r.updateManifest=function(){return Promise.reject(new O(2,9,9016,"Cannot modify values in "+this.g))};function Fs(a,b,c){a=zs(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}r.updateManifestExpiration=function(a,b){var c=zs(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()};r.removeManifests=function(a,b){return Ds(this,this.g,a,b)};
787
789
  r.getManifests=function(a){var b=this,c;return G(function(d){if(1==d.g)return u(d,Es(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.cc(e)})))})};r.getAllManifests=function(){var a=this,b,c;return G(function(d){return 1==d.g?(b=As(a.h,a.g,"readonly"),c=new Map,u(d,xs(b,function(e,f){var g;return G(function(h){if(1==h.g)return u(h,a.cc(f),2);g=h.h;c.set(e,g);A(h)})}),2)):3!=d.g?u(d,b.promise(),3):d.return(c)})};r.ze=function(a){return a};r.cc=function(a){return Promise.resolve(a)};
788
790
  function Cs(a){return Promise.reject(new O(2,9,9011,"Cannot add new value to "+a))}r.add=function(a,b){var c=this,d,e,f,g,h,k,l;return G(function(m){if(1==m.g){d=zs(c.h,a);e=d.store();f=[];g={};h=t(b);for(k=h.next();!k.done;g={Gc:g.Gc},k=h.next())l=k.value,g.Gc=e.add(l),g.Gc.onsuccess=function(p){return function(){f.push(p.Gc.result)}}(g);return u(m,d.promise(),2)}return m.return(f)})};
@@ -802,7 +804,7 @@ Vs.prototype.cc=function(a){var b,c,d,e,f,g;return G(function(h){if(1==h.g){b=[]
802
804
  Infinity:a.expiration,originalManifestUri:a.originalManifestUri,sessionIds:a.sessionIds,size:a.size,streams:g,sequenceMode:!1})})};
803
805
  function Ws(a,b,c){return{id:a.id,originalId:a.originalId,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:a.pixelAspectRatio,hdr:void 0,kind:a.kind,language:a.language,label:a.label,width:a.width,height:a.height,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(d){return{startTime:b+d.startTime,endTime:b+d.endTime,initSegmentKey:a.initSegmentKey,appendWindowStart:b,appendWindowEnd:c,timestampOffset:b-a.presentationTimeOffset,
804
806
  dataKey:d.dataKey,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1}};function Xs(){Bs.apply(this,arguments)}qa(Xs,Bs);r=Xs.prototype;r.hasFixedKeySpace=function(){return!1};r.addSegments=function(a){return this.add(this.i,a)};r.addManifests=function(a){return this.add(this.g,a)};r.updateManifest=function(a,b){return Fs(this,a,b)};r.cc=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function Ys(){this.m=this.j=this.i=this.h=this.g=this.l=null}r=Ys.prototype;
805
- r.init=function(){var a=this,b=new kc,c=!1,d=new P(function(){c=!0;b.reject(new O(2,9,9017))});d.O(5);var e=window.indexedDB.open("shaka_offline_db",5);e.onsuccess=function(){if(!c){var f=e.result;a.l=f;var g=f.objectStoreNames;g=g.contains("manifest")&&g.contains("segment")?new Qs(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new Vs(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;g=g.contains("manifest-v3")&&g.contains("segment-v3")?
807
+ r.init=function(){var a=this,b=new kc,c=!1,d=new P(function(){c=!0;b.reject(new O(2,9,9017))});d.N(5);var e=window.indexedDB.open("shaka_offline_db",5);e.onsuccess=function(){if(!c){var f=e.result;a.l=f;var g=f.objectStoreNames;g=g.contains("manifest")&&g.contains("segment")?new Qs(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new Vs(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;g=g.contains("manifest-v3")&&g.contains("segment-v3")?
806
808
  new Vs(f,"segment-v3","manifest-v3"):null;a.i=g;g=f.objectStoreNames;g=g.contains("manifest-v5")&&g.contains("segment-v5")?new Xs(f,"segment-v5","manifest-v5"):null;a.j=g;f=f.objectStoreNames.contains("session-ids")?new Gs(f):null;a.m=f;d.stop();b.resolve()}};e.onupgradeneeded=function(){for(var f=e.result,g=t(["segment-v5","manifest-v5","session-ids"]),h=g.next();!h.done;h=g.next())h=h.value,f.objectStoreNames.contains(h)||f.createObjectStore(h,{autoIncrement:!0})};e.onerror=function(f){c||(b.reject(new O(2,
807
809
  9,9001,e.error)),d.stop(),f.preventDefault())};return b};r.destroy=function(){var a=this;return G(function(b){switch(b.g){case 1:if(!a.g){b.B(2);break}return u(b,a.g.destroy(),2);case 2:if(!a.h){b.B(4);break}return u(b,a.h.destroy(),4);case 4:if(!a.i){b.B(6);break}return u(b,a.i.destroy(),6);case 6:if(!a.j){b.B(8);break}return u(b,a.j.destroy(),8);case 8:if(!a.m){b.B(10);break}return u(b,a.m.destroy(),10);case 10:a.l&&a.l.close(),A(b)}})};
808
810
  r.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};r.getEmeSessionCell=function(){return this.m};
@@ -818,25 +820,25 @@ roles:b.roles,forced:b.forced,channelsCount:b.channelsCount,audioSamplingRate:b.
818
820
  function gt(a,b){var c=new $s("segment",a.h,a.g,b);return new pi(function(){return[c.toString()]},0,null)};function ht(){this.g=null}r=ht.prototype;r.configure=function(){};
819
821
  r.start=function(a,b){var c=this,d,e,f,g,h,k,l;return G(function(m){switch(m.g){case 1:d=at(a);c.g=d;if(null==d||"manifest"!=d.g)throw new O(2,1,9004,a);e=new Hs;ua(m);return u(m,e.init(),4);case 4:return u(m,Ls(e,d.za(),d.la()),5);case 5:return f=m.h,u(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new bt(d.za(),d.la()),l=ct(k,h),b.makeTextStreamsForClosedCaptions(l),m.return(l);case 2:return ya(m),u(m,e.destroy(),7);case 7:za(m,0)}})};r.stop=function(){return Promise.resolve()};
820
822
  r.update=function(){};
821
- r.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return G(function(m){switch(m.g){case 1:return d=c.g,e=new Hs,C(m,2,3),u(m,e.init(),5);case 5:return u(m,Ls(e,d.za(),d.la()),6);case 6:return f=m.h,u(m,f.getManifests([d.key()]),7);case 7:g=m.h;h=g[0];k=h.sessionIds.includes(a);l=void 0==h.expiration||h.expiration>b;if(!k||!l){m.B(3);break}return u(m,f.updateManifestExpiration(d.key(),b),3);case 3:return ya(m),u(m,e.destroy(),10);case 10:za(m,0);break;case 2:wa(m),m.B(3)}})};
823
+ r.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return G(function(m){switch(m.g){case 1:return d=c.g,e=new Hs,C(m,2,3),u(m,e.init(),5);case 5:return u(m,Ls(e,d.za(),d.la()),6);case 6:return f=m.h,u(m,f.getManifests([d.key()]),7);case 7:g=m.h;h=g[0];k=h.sessionIds.includes(a);l=void 0==h.expiration||h.expiration>b;if(!k||!l){m.B(3);break}return u(m,f.updateManifestExpiration(d.key(),b),3);case 3:return ya(m),u(m,e.destroy(),10);case 10:za(m,0);break;case 2:xa(m),m.B(3)}})};
822
824
  Sg["application/x-offline-manifest"]=function(){return new ht};function it(){}function jt(a){var b=at(a);b&&"manifest"==b.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=Ne(a)):a=b&&"segment"==b.g?kt(b.key(),b):Le(new O(2,1,9004,a));return a}
823
825
  function kt(a,b){var c=new Hs;return Ne(void 0).Z(function(){return c.init()}).Z(function(){return Ls(c,b.za(),b.la())}).Z(function(d){return d.getSegments([b.key()])}).Z(function(d){return{uri:b,data:d[0].data,headers:{}}}).finally(function(){return c.destroy()})}K("shaka.offline.OfflineScheme",it);it.plugin=jt;Ze("offline",jt);function lt(a,b,c){var d,e,f,g,h,k;return G(function(l){switch(l.g){case 1:d=[];for(var m=[],p=t(c),n=p.next();!n.done;n=p.next()){n=n.value;for(var q=!1,v=t(m),y=v.next();!y.done;y=v.next())if(y=y.value,mt(y.info,n)){y.sessionIds.push(n.sessionId);q=!0;break}q||m.push({info:n,sessionIds:[n.sessionId]})}e=t(m);f=e.next();case 2:if(f.done){l.B(4);break}g=f.value;h=nt(a,b,g);return u(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.B(2);break;case 4:return l.return(d)}})}
824
- function nt(a,b,c){var d,e;return G(function(f){switch(f.g){case 1:return d=new eg({lb:b,onError:function(){},dd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),C(f,2),d.configure(a),u(f,mg(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:va(f,3);break;case 2:return wa(f),u(f,d.destroy(),5);case 5:return f.return([]);case 3:return C(f,6),u(f,xg(d),8);case 8:va(f,7);break;case 6:return wa(f),u(f,d.destroy(),
825
- 9);case 9:return f.return([]);case 7:return e=[],u(f,Promise.all(c.sessionIds.map(function(g){return G(function(h){if(1==h.g)return C(h,2),u(h,yg(d,g),4);if(2!=h.g)return e.push(g),va(h,0);wa(h);A(h)})})),10);case 10:return u(f,d.destroy(),11);case 11:return f.return(e)}})}
826
- function mt(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&hb(a.audioCapabilities,b.audioCapabilities,c)&&hb(a.videoCapabilities,b.videoCapabilities,c)};function ot(a,b,c){var d=b.presentationTimeline.getDuration();b=pt(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function qt(a,b){var c=ct(new bt(a.za(),a.la()),b),d=b.appMetadata||{};c=pt(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}}
826
+ function nt(a,b,c){var d,e;return G(function(f){switch(f.g){case 1:return d=new eg({lb:b,onError:function(){},ed:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),C(f,2),d.configure(a),u(f,mg(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:va(f,3);break;case 2:return xa(f),u(f,d.destroy(),5);case 5:return f.return([]);case 3:return C(f,6),u(f,xg(d),8);case 8:va(f,7);break;case 6:return xa(f),u(f,d.destroy(),
827
+ 9);case 9:return f.return([]);case 7:return e=[],u(f,Promise.all(c.sessionIds.map(function(g){return G(function(h){if(1==h.g)return C(h,2),u(h,yg(d,g),4);if(2!=h.g)return e.push(g),va(h,0);xa(h);A(h)})})),10);case 10:return u(f,d.destroy(),11);case 11:return f.return(e)}})}
828
+ function mt(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&jb(a.audioCapabilities,b.audioCapabilities,c)&&jb(a.videoCapabilities,b.videoCapabilities,c)};function ot(a,b,c){var d=b.presentationTimeline.getDuration();b=pt(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function qt(a,b){var c=ct(new bt(a.za(),a.la()),b),d=b.appMetadata||{};c=pt(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}}
827
829
  function pt(a){var b=[],c=he(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(Zd(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push($d(c.value));return b};function rt(){this.g={}}function st(a,b){var c=b.audio,d=b.video;c&&!d&&(a.g[c.id]=c.bandwidth||b.bandwidth);!c&&d&&(a.g[d.id]=d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g[c.id]=e;a.g[d.id]=f}}function tt(a,b){a.g[b.id]=b.bandwidth||2048}function ut(a,b){a=a.g[b];null==a&&(a=0);return a};function vt(a){var b=this;if(a&&a.constructor!=V)throw new O(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.kc()):(this.h=Fl(),this.g=new Ye);this.i=[];this.j=[];var c=!a;this.l=new jf(function(){var d,e,f,g,h;return G(function(k){switch(k.g){case 1:return u(k,Promise.all(b.j.map(function(l){return rs(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 u(k,Promise.all(e),3);case 3:if(!c){k.B(4);break}return u(k,b.g.destroy(),4);
828
830
  case 4:b.h=null,b.g=null,A(k)}})})}function wt(){if(nc())a:{var a=t(Is.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}r=vt.prototype;r.destroy=function(){return this.l.destroy()};r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=zl(a,b));return Hl(this.h,a)};r.getConfiguration=function(){var a=Fl();Hl(a,this.h,Fl());return a};r.kc=function(){return this.g};
829
- r.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new qs(this.g);this.j.push(f);b=xt(this,a,b||{},function(){var g;return G(function(h){if(1==h.g)return u(h,Rg(a,d.g,e.manifest.retryParameters,c||null),2);g=h.h;return h.return(g())})},e,f);b=new Ke(b,function(){return rs(f)});b.finally(function(){gb(d.j,f)});return yt(this,b)};
831
+ r.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new qs(this.g);this.j.push(f);b=xt(this,a,b||{},function(){var g;return G(function(h){if(1==h.g)return u(h,Rg(a,d.g,e.manifest.retryParameters,c||null),2);g=h.h;return h.return(g())})},e,f);b=new Ke(b,function(){return rs(f)});b.finally(function(){ib(d.j,f)});return yt(this,b)};
830
832
  function xt(a,b,c,d,e,f){var g,h,k,l,m,p,n,q,v,y,w,x,D,z;return G(function(B){switch(B.g){case 1:return zt(),h=g=null,k=new Hs,p=m=l=null,C(B,2,3),u(B,d(),5);case 5:return g=B.h,u(B,At(a,b,g,e),6);case 6:n=B.h;Bt(a);q=!n.presentationTimeline.T()&&!n.presentationTimeline.jb();if(!q)throw new O(2,9,9005,b);return u(B,Ct(a,n,function(E){p=p||E},e),7);case 7:h=B.h;Bt(a);if(p)throw p;return u(B,Dt(n,e),8);case 8:return u(B,k.init(),9);case 9:return Bt(a),u(B,Js(k),10);case 10:return l=B.h,Bt(a),v=Et(h,
831
- n,b,c,e,f),y=v.cg,w=v.pe,u(B,l.la.addManifests([y]),11);case 11:x=B.h;Bt(a);m=x[0];Bt(a);if(p)throw p;return u(B,Ft(a,w,m,y,f,e,l.la,n,h),12);case 12:return Bt(a),D=new $s("manifest",l.path.za,l.path.la,m),B.return(qt(D,y));case 3:return ya(B),u(B,k.destroy(),13);case 13:if(!g){B.B(14);break}return u(B,g.stop(),14);case 14:if(!h){B.B(16);break}return u(B,h.destroy(),16);case 16:za(B,0);break;case 2:z=wa(B);if(null==m){B.B(18);break}return u(B,Gt(m),18);case 18:throw p||z;}})}
832
- function Ft(a,b,c,d,e,f,g,h,k){var l,m,p,n,q,v,y,w,x,D;return G(function(z){switch(z.g){case 1:l={};m=0;p=function(B,E){var F,H,I,J,N,R,Q;return G(function(ba){if(1==ba.g){F={};H=t(B);for(I=H.next();!I.done;F={cb:F.cb},I=H.next())F.cb=I.value,J=ns(F.cb,f),N=F.cb.i,R=F.cb.h,Q=function(M){return function(ka){var Fa,xa,Na;return G(function(Ha){if(1==Ha.g)return u(Ha,g.addSegments([{data:ka}]),2);Fa=Ha.h;Bt(a);xa=M.cb.g;Na=ms(xa);l[Na]=Fa[0];m+=ka.byteLength;A(Ha)})}}(F),ts(e,F.cb.groupId,J,N,R,Q);return u(ba,
833
+ n,b,c,e,f),y=v.cg,w=v.pe,u(B,l.la.addManifests([y]),11);case 11:x=B.h;Bt(a);m=x[0];Bt(a);if(p)throw p;return u(B,Ft(a,w,m,y,f,e,l.la,n,h),12);case 12:return Bt(a),D=new $s("manifest",l.path.za,l.path.la,m),B.return(qt(D,y));case 3:return ya(B),u(B,k.destroy(),13);case 13:if(!g){B.B(14);break}return u(B,g.stop(),14);case 14:if(!h){B.B(16);break}return u(B,h.destroy(),16);case 16:za(B,0);break;case 2:z=xa(B);if(null==m){B.B(18);break}return u(B,Gt(m),18);case 18:throw p||z;}})}
834
+ function Ft(a,b,c,d,e,f,g,h,k){var l,m,p,n,q,v,y,w,x,D;return G(function(z){switch(z.g){case 1:l={};m=0;p=function(B,E){var F,H,I,J,N,S,Q;return G(function(ba){if(1==ba.g){F={};H=t(B);for(I=H.next();!I.done;F={cb:F.cb},I=H.next())F.cb=I.value,J=ns(F.cb,f),N=F.cb.i,S=F.cb.h,Q=function(M){return function(ka){var Fa,wa,Oa;return G(function(Ya){if(1==Ya.g)return u(Ya,g.addSegments([{data:ka}]),2);Fa=Ya.h;Bt(a);wa=M.cb.g;Oa=ms(wa);l[Oa]=Fa[0];m+=ka.byteLength;A(Ya)})}}(F),ts(e,F.cb.groupId,J,N,S,Q);return u(ba,
833
835
  vs(e),2)}if(!E)return ba.B(0);Bt(a);Ht(h,d,k,f);return u(ba,g.updateManifest(c,d),0)})};n=!1;C(z,2);if(!It(h)||!n||Jt(h)){z.B(4);break}return u(z,p(b.filter(function(B){return B.h}),!0),5);case 5:return Bt(a),b=b.filter(function(B){return!B.h}),q=l,v=m,l={},m=0,u(z,Kt(g,c,d,q,v,function(){return Bt(a)}),6);case 6:Bt(a);case 4:if(n){z.B(7);break}return u(z,p(b,!1),8);case 8:return Bt(a),y=l,w=m,l={},m=0,u(z,Kt(g,c,d,y,w,function(){return Bt(a)}),9);case 9:Bt(a);case 7:va(z,0);break;case 2:return x=
834
- wa(z),D=Object.values(l),u(z,g.removeSegments(D,function(){}),10);case 10:throw x;}})}function Gt(a){var b,c,d,e;return G(function(f){switch(f.g){case 1:return b=new Hs,u(f,b.init(),2);case 2:return u(f,Js(b),3);case 3:return c=f.h,d=new $s("manifest",c.path.za,c.path.la,a),u(f,b.destroy(),4);case 4:return e=new vt,u(f,e.remove(d.toString()),0)}})}
836
+ xa(z),D=Object.values(l),u(z,g.removeSegments(D,function(){}),10);case 10:throw x;}})}function Gt(a){var b,c,d,e;return G(function(f){switch(f.g){case 1:return b=new Hs,u(f,b.init(),2);case 2:return u(f,Js(b),3);case 3:return c=f.h,d=new $s("manifest",c.path.za,c.path.la,a),u(f,b.destroy(),4);case 4:return e=new vt,u(f,e.remove(d.toString()),0)}})}
835
837
  function Kt(a,b,c,d,e,f){var g,h,k,l,m,p,n,q,v,y,w;return G(function(x){switch(x.g){case 1:g=!1;C(x,2);h=!0;k=t(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,p=t(m.segments),n=p.next();!n.done;n=p.next())q=n.value,v=q.pendingSegmentRefId?d[q.pendingSegmentRefId]:null,null!=v&&(q.dataKey=v,q.pendingSegmentRefId=void 0),v=q.pendingInitSegmentRefId?d[q.pendingInitSegmentRefId]:null,null!=v&&(q.initSegmentKey=v,q.pendingInitSegmentRefId=void 0),q.pendingSegmentRefId&&(h=!1),q.pendingInitSegmentRefId&&
836
- (h=!1);c.size+=e;h&&(c.isIncomplete=!1);return u(x,a.updateManifest(b,c),4);case 4:g=!0;f();va(x,0);break;case 2:return y=wa(x),u(x,Gt(b),5);case 5:if(g){x.B(6);break}w=Object.values(d);return u(x,a.removeSegments(w,function(){}),6);case 6:throw y;}})}
837
- function Dt(a,b){var c,d,e,f,g,h,k,l,m,p,n,q,v,y,w,x,D,z,B,E,F,H,I,J,N,R,Q,ba,M;return G(function(ka){switch(ka.g){case 1:return c={width:Infinity,height:Infinity},Id(a,b.restrictions,c),u(ka,Md(a,b.offline.usePersistentLicense),2);case 2:d=[];e=b.preferredAudioChannelCount;f=b.preferredDecodingAttributes;g=b.preferredVideoCodecs;h=b.preferredAudioCodecs;wd(a,g,h,e,f);k=t(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,d.push(Zd(m));p=t(a.textStreams);for(n=p.next();!n.done;n=p.next())q=n.value,
838
- d.push($d(q));v=t(a.imageStreams);for(y=v.next();!y.done;y=v.next())w=y.value,d.push(ae(w));return u(ka,b.offline.trackSelectionCallback(d),3);case 3:x=ka.h;D=a.presentationTimeline.getDuration();z=0;B=t(x);for(E=B.next();!E.done;E=B.next())F=E.value,H=F.bandwidth*D/8,z+=H;C(ka,4);return u(ka,b.offline.downloadSizeCallback(z),6);case 6:I=ka.h;if(!I)throw new O(2,9,9014);va(ka,5);break;case 4:J=wa(ka);if(J instanceof O)throw J;throw new O(2,9,9015);case 5:N=new Set;R=new Set;Q=new Set;ba=t(x);for(E=
839
- ba.next();!E.done;E=ba.next())M=E.value,"variant"==M.type&&N.add(M.id),"text"==M.type&&R.add(M.id),"image"==M.type&&Q.add(M.id);a.variants=a.variants.filter(function(Fa){return N.has(Fa.id)});a.textStreams=a.textStreams.filter(function(Fa){return R.has(Fa.id)});a.imageStreams=a.imageStreams.filter(function(Fa){return Q.has(Fa.id)});Lt(a);A(ka)}})}
838
+ (h=!1);c.size+=e;h&&(c.isIncomplete=!1);return u(x,a.updateManifest(b,c),4);case 4:g=!0;f();va(x,0);break;case 2:return y=xa(x),u(x,Gt(b),5);case 5:if(g){x.B(6);break}w=Object.values(d);return u(x,a.removeSegments(w,function(){}),6);case 6:throw y;}})}
839
+ function Dt(a,b){var c,d,e,f,g,h,k,l,m,p,n,q,v,y,w,x,D,z,B,E,F,H,I,J,N,S,Q,ba,M;return G(function(ka){switch(ka.g){case 1:return c={width:Infinity,height:Infinity},Id(a,b.restrictions,c),u(ka,Md(a,b.offline.usePersistentLicense),2);case 2:d=[];e=b.preferredAudioChannelCount;f=b.preferredDecodingAttributes;g=b.preferredVideoCodecs;h=b.preferredAudioCodecs;wd(a,g,h,e,f);k=t(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,d.push(Zd(m));p=t(a.textStreams);for(n=p.next();!n.done;n=p.next())q=n.value,
840
+ d.push($d(q));v=t(a.imageStreams);for(y=v.next();!y.done;y=v.next())w=y.value,d.push(ae(w));return u(ka,b.offline.trackSelectionCallback(d),3);case 3:x=ka.h;D=a.presentationTimeline.getDuration();z=0;B=t(x);for(E=B.next();!E.done;E=B.next())F=E.value,H=F.bandwidth*D/8,z+=H;C(ka,4);return u(ka,b.offline.downloadSizeCallback(z),6);case 6:I=ka.h;if(!I)throw new O(2,9,9014);va(ka,5);break;case 4:J=xa(ka);if(J instanceof O)throw J;throw new O(2,9,9015);case 5:N=new Set;S=new Set;Q=new Set;ba=t(x);for(E=
841
+ ba.next();!E.done;E=ba.next())M=E.value,"variant"==M.type&&N.add(M.id),"text"==M.type&&S.add(M.id),"image"==M.type&&Q.add(M.id);a.variants=a.variants.filter(function(Fa){return N.has(Fa.id)});a.textStreams=a.textStreams.filter(function(Fa){return S.has(Fa.id)});a.imageStreams=a.imageStreams.filter(function(Fa){return Q.has(Fa.id)});Lt(a);A(ka)}})}
840
842
  function Et(a,b,c,d,e,f){var g=ot(c,b,d),h=e.offline.progressCallback;ss(f,function(q,v){g.size=v;h(g,q)},function(q,v){k&&e.offline.usePersistentLicense&&l==v&&ug(a,"cenc",q)});var k=It(b)&&!Jt(b),l=null;k&&(l=Mt.get(a.g.keySystem));for(var m=new rt,p=t(b.textStreams),n=p.next();!n.done;n=p.next())m.g[n.value.id]=52;p=t(b.imageStreams);for(n=p.next();!n.done;n=p.next())tt(m,n.value);n=t(b.variants);for(p=n.next();!p.done;p=n.next())st(m,p.value);m=Nt(f,m,b,e);f=m.streams;m=m.pe;n=a.g;p=e.offline.usePersistentLicense;
841
843
  n&&p&&(n.initData=[]);return{cg:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.jc(),streams:f,sessionIds:p?Dg(a):[],drmInfo:n,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode},pe:m}}function It(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
842
844
  function Jt(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 Ht(a,b,c,d){b.expiration=c.jc();c=Dg(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(It(a)&&d.offline.usePersistentLicense&&!c.length)throw new O(2,9,9007);}r.remove=function(a){return Ot(this,Pt(this,a))};
@@ -847,33 +849,33 @@ function Vt(a){var b,c,d,e,f,g,h,k,l,m;return G(function(p){switch(p.g){case 1:r
847
849
  r.list=function(){return Ot(this,Wt())};function Wt(){var a,b,c;return G(function(d){switch(d.g){case 1:return zt(),a=[],b=new Hs,ua(d),u(d,b.init(),4);case 4:return c=Promise.resolve(),Ks(b,function(e,f){c=c.then(function(){var g;return G(function(h){if(1==h.g)return u(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=qt(new $s("manifest",e.za,e.la,l),k);a.push(k)});A(h)})})}),u(d,c,2);case 2:return ya(d),u(d,b.destroy(),6);case 6:za(d,3);break;case 3:return d.return(a)}})}
848
850
  function At(a,b,c,d){var e,f,g,h,k;return G(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,modifyManifestRequest:function(){},modifySegmentRequest:function(){},filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){},updateDuration:function(){},newDrmInfo:function(){}},
849
851
  c.configure(d.manifest),Bt(a),u(l,c.start(b,g),2);if(3!=l.g)return h=l.h,Bt(a),k=Xt(h),u(l,Promise.all(qf(k,function(m){return m.createSegmentIndex()})),3);Bt(a);if(e)throw e;return l.return(h)})}
850
- function Ct(a,b,c,d){var e;return G(function(f){switch(f.g){case 1:return e=new eg({lb:a.g,onError:c,dd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),u(f,jg(e,b.variants,d.offline.usePersistentLicense),2);case 2:return u(f,xg(e),3);case 3:return u(f,wg(e),4);case 4:return f.return(e)}})}
852
+ function Ct(a,b,c,d){var e;return G(function(f){switch(f.g){case 1:return e=new eg({lb:a.g,onError:c,ed:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),u(f,jg(e,b.variants,d.offline.usePersistentLicense),2);case 2:return u(f,xg(e),3);case 3:return u(f,wg(e),4);case 4:return f.return(e)}})}
851
853
  function Nt(a,b,c,d){var e=new Map,f=Xt(c),g=new Map;f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=Yt(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()),pe:Array.from(e.values())}}
852
854
  function Yt(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,kind:d.kind,language:d.language,label:d.label,width:d.width||null,height:d.height||null,encrypted:d.encrypted,keyIds:d.keyIds,segments:[],variantIds:[],roles:d.roles,forced:d.forced,channelsCount:d.channelsCount,audioSamplingRate:d.audioSamplingRate,spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,
853
855
  tilesLayout:d.tilesLayout,external:d.external},h=e.offline.numberOfParallelDownloads,k=0;Zt(d,c.presentationTimeline.Oa(),function(l){var m=ms(l),p=void 0;if(!f.has(m)){var n=l.endTime-l.startTime;n=ut(b,d.id)*n;n=ps(a.g,n);f.set(m,new ls(l,n,k,!1))}l.h&&(p=ms(l.h),f.has(p)||(n=.5*ut(b,d.id),n=ps(a.g,n),f.set(p,new ls(l.h,n,k,!0))));g.segments.push({pendingInitSegmentRefId:p,initSegmentKey:p?0:null,startTime:l.startTime,endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,
854
- timestampOffset:l.timestampOffset,tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function Zt(a,b,c){b=a.segmentIndex.find(b);if(null!=b)for(var d=a.segmentIndex.get(b);d;)c(d),d=a.segmentIndex.get(++b)}function Bt(a){if(a.l.g)throw new O(2,9,7001);}function zt(){if(!wt())throw new O(2,9,9E3);}function Ot(a,b){return G(function(c){if(1==c.g)return a.i.push(b),ua(c),u(c,b,4);if(2!=c.g)return c.return(c.h);ya(c);gb(a.i,b);return za(c,0)})}
855
- function yt(a,b){var c=b.promise;a.i.push(c);return b.finally(function(){gb(a.i,c)})}function Ut(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)}
856
+ timestampOffset:l.timestampOffset,tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function Zt(a,b,c){b=a.segmentIndex.find(b);if(null!=b)for(var d=a.segmentIndex.get(b);d;)c(d),d=a.segmentIndex.get(++b)}function Bt(a){if(a.l.g)throw new O(2,9,7001);}function zt(){if(!wt())throw new O(2,9,9E3);}function Ot(a,b){return G(function(c){if(1==c.g)return a.i.push(b),ua(c),u(c,b,4);if(2!=c.g)return c.return(c.h);ya(c);ib(a.i,b);return za(c,0)})}
857
+ function yt(a,b){var c=b.promise;a.i.push(c);return b.finally(function(){ib(a.i,c)})}function Ut(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)}
856
858
  function Tt(a,b,c,d){var e,f,g;return G(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=Ns(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:St(d,!1),videoCapabilities:St(d,!0)}});return u(h,lt(b,a,f),2)}return 3!=h.g?(g=h.h,u(h,e.remove(g),3)):u(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
857
859
  function Xt(a){for(var b=new Set,c=t(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);c=t(a.imageStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=t(a.variants);for(c=a.next();!c.done;c=a.next())c=c.value,c.audio&&b.add(c.audio),c.video&&b.add(c.video);return b}
858
860
  function Lt(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());}K("shaka.offline.Storage",vt);vt.deleteAll=function(){var a;return G(function(b){return 1==b.g?(a=new Hs,ua(b),u(b,Os(a),2)):5!=b.g?(ya(b),u(b,a.destroy(),5)):za(b,0)})};vt.prototype.list=vt.prototype.list;
859
861
  vt.prototype.removeEmeSessions=vt.prototype.rg;vt.prototype.remove=vt.prototype.remove;vt.prototype.store=vt.prototype.store;vt.prototype.getNetworkingEngine=vt.prototype.kc;vt.prototype.getConfiguration=vt.prototype.getConfiguration;vt.prototype.configure=vt.prototype.configure;vt.prototype.destroy=vt.prototype.destroy;vt.support=wt;
860
862
  var Mt=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");
861
- rn.offline=wt;function $t(){}function au(a,b){a={priority:b||0,nf:a};for(b=0;b<bu.length;b++)if(bu[b].priority<a.priority){bu.splice(b,0,a);return}bu.push(a)}K("shaka.polyfill",$t);$t.register=au;$t.installAll=function(){for(var a=t(bu),b=a.next();!b.done;b=a.next()){b=b.value;try{b.nf()}catch(c){Xa("Error installing polyfill!",c)}}};var bu=[];function cu(){this.g=new du}function eu(){window.AbortController||(window.AbortController=cu,window.AbortSignal=du)}cu.prototype.abort=function(a){var b=this.g;if(!b.h){b.h=!0;b.g=a;void 0===b.g&&(b.g=new DOMException("signal is aborted without reason","AbortError"));a=new S("abort");if(b.onabort)b.onabort(a);b.dispatchEvent(a)}};ea.Object.defineProperties(cu.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});$t.AbortController=cu;cu.install=eu;
863
+ rn.offline=wt;function $t(){}function au(a,b){a={priority:b||0,nf:a};for(b=0;b<bu.length;b++)if(bu[b].priority<a.priority){bu.splice(b,0,a);return}bu.push(a)}K("shaka.polyfill",$t);$t.register=au;$t.installAll=function(){for(var a=t(bu),b=a.next();!b.done;b=a.next()){b=b.value;try{b.nf()}catch(c){Xa("Error installing polyfill!",c)}}};var bu=[];function cu(){this.g=new du}function eu(){window.AbortController||(window.AbortController=cu,window.AbortSignal=du)}cu.prototype.abort=function(a){var b=this.g;if(!b.h){b.h=!0;b.g=a;void 0===b.g&&(b.g=new DOMException("signal is aborted without reason","AbortError"));a=new R("abort");if(b.onabort)b.onabort(a);b.dispatchEvent(a)}};ea.Object.defineProperties(cu.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});$t.AbortController=cu;cu.install=eu;
862
864
  function du(){Te.call(this);this.h=!1;this.g=void 0;this.onabort=null}qa(du,Te);ea.Object.defineProperties(du.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}});au(eu);function fu(){}function gu(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=t(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())hu(b.value)}function hu(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)}})}$t.Aria=fu;fu.install=gu;au(gu);function iu(){}function ju(){ku()}$t.EncryptionScheme=iu;iu.install=ju;au(ju,-2);function lu(){}
863
865
  function mu(){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}}),
864
866
  Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",nu);document.addEventListener("webkitfullscreenerror",nu);document.addEventListener("mozfullscreenchange",nu);document.addEventListener("mozfullscreenerror",nu);document.addEventListener("MSFullscreenChange",nu);document.addEventListener("MSFullscreenError",nu)}}
865
867
  function nu(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)}$t.Fullscreen=lu;lu.install=mu;au(mu);function ou(){}function pu(){var a=!0;if(vc()||sc("PlayStation 5")||wc()||sc("Web0S")||tc()||sc("CrKey")||sc("PC=EOS")||sc("Hisense")||sc("VIDAA"))a=!1;a&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),qu=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=ru)}
866
868
  function ru(a){var b,c,d,e,f,g,h,k,l,m,p,n,q,v,y,w,x,D;return G(function(z){switch(z.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return z.return(b);c=a.video;d=a.audio;if("media-source"==a.type){if(!nc())return z.return(b);if(c){if(sc("CrKey"))if(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType){var B=c.contentType;c.width&&c.height&&(B+="; width="+c.width+"; height="+c.height);c.framerate&&(B+="; framerate="+c.framerate);"pq"===
867
- c.transferFunction&&(B+="; eotf=smpte2084");e=cast.__platform__.canDisplayType(B)}else e=db(c.contentType);else tc()?(f=c.contentType,c.width&&c.height&&(f+="; width="+c.width,f+="; height="+c.height),c.framerate&&(f+="; framerate="+c.framerate),c.bitrate&&(f+="; bitrate="+c.bitrate),e=db(f)):e=db(c.contentType);if(!e)return z.return(b)}if(d&&(g=d.contentType,h=db(g),!h))return z.return(b)}else if("file"==a.type){if(c&&(k=c.contentType,l=oc(k),!l)||d&&(m=d.contentType,p=oc(m),!p))return z.return(b)}else return z.return(b);
869
+ c.transferFunction&&(B+="; eotf=smpte2084");e=cast.__platform__.canDisplayType(B)}else e=fb(c.contentType);else tc()?(f=c.contentType,c.width&&c.height&&(f+="; width="+c.width,f+="; height="+c.height),c.framerate&&(f+="; framerate="+c.framerate),c.bitrate&&(f+="; bitrate="+c.bitrate),e=fb(f)):e=fb(c.contentType);if(!e)return z.return(b)}if(d&&(g=d.contentType,h=fb(g),!h))return z.return(b)}else if("file"==a.type){if(c&&(k=c.contentType,l=oc(k),!l)||d&&(m=d.contentType,p=oc(m),!p))return z.return(b)}else return z.return(b);
868
870
  if(!a.keySystemConfiguration)return b.supported=!0,z.return(Promise.resolve(b));n=a.keySystemConfiguration;q=[];v=[];n.audio&&(y={robustness:n.audio.robustness||"",contentType:a.audio.contentType},q.push(y));n.video&&(w={robustness:n.video.robustness||"",contentType:a.video.contentType},v.push(w));x={initDataTypes:[n.initDataType],distinctiveIdentifier:n.distinctiveIdentifier,persistentState:n.persistentState,sessionTypes:n.sessionTypes};q.length&&(x.audioCapabilities=q);v.length&&(x.videoCapabilities=
869
- v);C(z,3);return u(z,navigator.requestMediaKeySystemAccess(n.keySystem,[x]),5);case 5:D=z.h;va(z,4);break;case 3:wa(z);case 4:D&&(b.supported=!0,b.keySystemAccess=D);case 2:return z.return(b)}})}$t.MediaCapabilities=ou;ou.install=pu;var qu=null;ou.originalMcap=qu;au(pu,-1);function su(){}function tu(){var a=xc();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?uu():a?12>=a?(vu(),wu()):15>=a&&vu():qc()?xu():(sc("Tizen 2")||sc("Tizen 3")||sc("Tizen 4"))&&yu());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&zu()}
871
+ v);C(z,3);return u(z,navigator.requestMediaKeySystemAccess(n.keySystem,[x]),5);case 5:D=z.h;va(z,4);break;case 3:xa(z);case 4:D&&(b.supported=!0,b.keySystemAccess=D);case 2:return z.return(b)}})}$t.MediaCapabilities=ou;ou.install=pu;var qu=null;ou.originalMcap=qu;au(pu,-1);function su(){}function tu(){var a=xc();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?uu():a?12>=a?(vu(),wu()):15>=a&&vu():qc()?xu():(sc("Tizen 2")||sc("Tizen 3")||sc("Tizen 4"))&&yu());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&zu()}
870
872
  function vu(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Ia.apply(0,arguments));b.abort=function(){};return b}}function wu(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function xu(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"mp2t"!=b.split(";")[0].split("/")[1]&&a(b)}}
871
873
  function yu(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=ad(b)[0]&&a(b)}}function uu(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */);c.shift();return c.some(function(d){return d.startsWith("codecs=")})?cast.__platform__.canDisplayType(b):a(b)}}
872
874
  function zu(){var a=MediaSource.isTypeSupported;sc("Web0S")||(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(0>d)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});0<=f&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}$t.MediaSource=su;su.install=tu;au(tu);function Au(){}function Bu(){screen.orientation&&screen.orientation.unlock||(void 0!=screen.orientation?Cu():void 0!=window.orientation&&Du())}function Cu(){void 0===screen.orientation.lock&&(screen.orientation.lock=function(){return Promise.resolve()});void 0===screen.orientation.unlock&&(screen.orientation.unlock=function(){})}
873
- function Du(){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 Eu;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new S("change");b.dispatchEvent(c)})}$t.Orientation=Au;Au.install=Bu;function Eu(){Te.call(this);this.type="";this.angle=0}qa(Eu,Te);
875
+ function Du(){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 Eu;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new R("change");b.dispatchEvent(c)})}$t.Orientation=Au;Au.install=Bu;function Eu(){Te.call(this);this.type="";this.angle=0}qa(Eu,Te);
874
876
  Eu.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)};
875
877
  Eu.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};au(Bu);function Fu(){}var Gu,Hu,Iu,Ju,Ku,Lu;function Mu(a,b){try{var c=new Nu(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function Ou(a){var b=this.mediaKeys;b&&b!=a&&Pu(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?Pu(a,this):Promise.resolve()}
876
- function Qu(a){a=L(a.initData);if(Jb(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=Cc(a.subarray(4),!0);a=Fc(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Hb(a);this.dispatchEvent(b)}$t.PatchedMediaKeysApple=Fu;
878
+ function Qu(a){a=L(a.initData);if(Kb(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=Cc(a.subarray(4),!0);a=Fc(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Ib(a);this.dispatchEvent(b)}$t.PatchedMediaKeysApple=Fu;
877
879
  Fu.uninstall=function(){Gu&&(Gu=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",Hu),HTMLMediaElement.prototype.setMediaKeys=Iu,window.MediaKeys=Ju,window.MediaKeySystemAccess=Ku,navigator.requestMediaKeySystemAccess=Lu,Hu=Lu=Iu=Ku=Ju=null,window.shakaMediaKeysPolyfill=!1)};
878
880
  Fu.install=function(a){if(window.HTMLVideoElement&&window.WebKitMediaKeys){if(void 0===a?0:a)Gu=!0,Hu=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),Iu=HTMLMediaElement.prototype.setMediaKeys,Ju=window.MediaKeys,Ku=window.MediaKeySystemAccess,Lu=navigator.requestMediaKeySystemAccess;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=Ou;window.MediaKeys=Ru;window.MediaKeySystemAccess=Nu;navigator.requestMediaKeySystemAccess=
879
881
  Mu;window.shakaMediaKeysPolyfill=!0}};
@@ -881,79 +883,79 @@ function Nu(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=t(b),b=
881
883
  g.contentType.split(";")[0])&&(b.audioCapabilities.push(g),e=!0));if(c.videoCapabilities)for(c=t(c.videoCapabilities),g=c.next();!g.done;g=c.next())f=g.value,f.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,f.contentType.split(";")[0])&&(b.videoCapabilities.push(f),e=!0));d||(e=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));b=e?b:null}if(b){this.g=b;return}}a=Error("Unsupported keySystem");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}
882
884
  Nu.prototype.createMediaKeys=function(){var a=new Ru(this.keySystem);return Promise.resolve(a)};Nu.prototype.getConfiguration=function(){return this.g};function Ru(a){this.h=new WebKitMediaKeys(a);this.g=new lf}Ru.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new Su(this.h,a)};Ru.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
883
885
  function Pu(a,b){a.g.ob();if(!b)return Promise.resolve();a.g.C(b,"webkitneedkey",Qu);try{return tj(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}function Su(a){Te.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new lf;this.sessionId="";this.expiration=NaN;this.closed=new kc;this.keyStatuses=new Tu}qa(Su,Te);r=Su.prototype;
884
- r.generateRequest=function(a,b){var c=this;this.h=new kc;try{var d=this.l.createSession("video/mp4",L(b));this.i=d;this.sessionId=d.sessionId||"";this.j.C(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.Fb()?"license-request":"license-renewal").set("message",Hb(e.message));e=new S("message",e);c.dispatchEvent(e)});this.j.C(d,"webkitkeyadded",function(){c.g&&(Uu(c,"usable"),c.g.resolve(),c.g=null)});this.j.C(d,"webkitkeyerror",
886
+ r.generateRequest=function(a,b){var c=this;this.h=new kc;try{var d=this.l.createSession("video/mp4",L(b));this.i=d;this.sessionId=d.sessionId||"";this.j.C(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.Fb()?"license-request":"license-renewal").set("message",Ib(e.message));e=new R("message",e);c.dispatchEvent(e)});this.j.C(d,"webkitkeyadded",function(){c.g&&(Uu(c,"usable"),c.g.resolve(),c.g=null)});this.j.C(d,"webkitkeyerror",
885
887
  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:Uu(c,"output-not-allowed");break;default:Uu(c,"internal-error")}});Uu(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};r.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
886
- r.update=function(a){this.g=new kc;try{this.i.update(L(a))}catch(b){this.g.reject(b)}return this.g};r.close=function(){try{this.i.close(),this.closed.resolve(),this.j.ob()}catch(a){this.closed.reject(a)}return this.closed};r.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function Uu(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new S("keystatuseschange");a.dispatchEvent(b)}
887
- function Tu(){this.size=0;this.g=void 0}r=Tu.prototype;r.Fb=function(){return this.g};r.forEach=function(a){this.g&&a(this.g,Pg.value())};r.get=function(a){if(this.has(a))return this.g};r.has=function(a){var b=Pg.value();return this.g&&Fb(a,b)?!0:!1};r.entries=function(){};r.keys=function(){};r.values=function(){};function Vu(){}function Wu(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=Xu,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Yu,window.MediaKeys=Zu,window.MediaKeySystemAccess=$u,window.shakaMediaKeysPolyfill=!0)}function Xu(){return Promise.reject(Error("The key system specified is not supported."))}
888
+ r.update=function(a){this.g=new kc;try{this.i.update(L(a))}catch(b){this.g.reject(b)}return this.g};r.close=function(){try{this.i.close(),this.closed.resolve(),this.j.ob()}catch(a){this.closed.reject(a)}return this.closed};r.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function Uu(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new R("keystatuseschange");a.dispatchEvent(b)}
889
+ function Tu(){this.size=0;this.g=void 0}r=Tu.prototype;r.Fb=function(){return this.g};r.forEach=function(a){this.g&&a(this.g,Pg.value())};r.get=function(a){if(this.has(a))return this.g};r.has=function(a){var b=Pg.value();return this.g&&Gb(a,b)?!0:!1};r.entries=function(){};r.keys=function(){};r.values=function(){};function Vu(){}function Wu(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=Xu,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Yu,window.MediaKeys=Zu,window.MediaKeySystemAccess=$u,window.shakaMediaKeysPolyfill=!0)}function Xu(){return Promise.reject(Error("The key system specified is not supported."))}
888
890
  function Yu(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}$t.PatchedMediaKeysNop=Vu;Vu.install=Wu;function Zu(){throw new TypeError("Illegal constructor.");}Zu.prototype.createSession=function(){};Zu.prototype.setServerCertificate=function(){};function $u(){this.keySystem="";throw new TypeError("Illegal constructor.");}$u.prototype.getConfiguration=function(){};$u.prototype.createMediaKeys=function(){};au(Wu,-10);function av(){}
889
891
  function bv(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)cv="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=dv;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=ev;window.MediaKeys=fv;window.MediaKeySystemAccess=gv;window.shakaMediaKeysPolyfill=!0}}
890
892
  function hv(a){var b=cv;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function dv(a,b){try{var c=new gv(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function ev(a){var b=this.mediaKeys;b&&b!=a&&iv(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&iv(a,this);return Promise.resolve()}$t.PatchedMediaKeysWebkit=av;av.install=bv;
891
893
  function gv(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),
892
894
  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"]):
893
895
  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;}gv.prototype.createMediaKeys=function(){var a=new fv(this.g);return Promise.resolve(a)};gv.prototype.getConfiguration=function(){return this.h};function fv(a){this.l=a;this.h=null;this.g=new lf;this.i=[];this.j=new Map}
894
- function iv(a,b){a.h=b;a.g.ob();var c=cv;b&&(a.g.C(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Hb(d.initData);a.h.dispatchEvent(e)}),a.g.C(b,c+"keymessage",function(d){var e=jv(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.Fb()?"licenserequest":"licenserenewal").set("message",d.message),d=new S("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.C(b,c+"keyadded",function(d){if(d=jv(a,d.sessionId))kv(d,"usable"),
896
+ function iv(a,b){a.h=b;a.g.ob();var c=cv;b&&(a.g.C(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Ib(d.initData);a.h.dispatchEvent(e)}),a.g.C(b,c+"keymessage",function(d){var e=jv(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.Fb()?"licenserequest":"licenserenewal").set("message",d.message),d=new R("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.C(b,c+"keyadded",function(d){if(d=jv(a,d.sessionId))kv(d,"usable"),
895
897
  d.g&&d.g.resolve(),d.g=null}),a.g.C(b,c+"keyerror",function(d){var e=jv(a,d.sessionId);e&&e.handleError(d)}))}fv.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 lv(b,this.l,a);this.i.push(a);return a};fv.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
896
898
  function jv(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 lv(a,b,c){Te.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 kc;this.keyStatuses=new mv}qa(lv,Te);r=lv.prototype;
897
899
  r.handleError=function(a){var b=Error("EME v0.1b key error"),c=a.errorCode;c.systemCode=a.systemCode;b.errorCode=c;!a.sessionId&&this.h?(45==a.systemCode&&(b.message="Unsupported session type."),this.h.reject(b),this.h=null):a.sessionId&&this.g?(this.g.reject(b),this.g=null):(b=a.systemCode,a.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?kv(this,"output-restricted"):1==b?kv(this,"expired"):kv(this,"internal-error"))};
898
- function nv(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=L(Fc("LOAD_SESSION|"+c));else{var e=Fc("PERSISTENT|");d=Nc(e,b)}else d=L(b)}catch(g){return Promise.reject(g)}a.h=new kc;var f=hv("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new P(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).O(.01)}return a.h}
900
+ function nv(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=L(Fc("LOAD_SESSION|"+c));else{var e=Fc("PERSISTENT|");d=Nc(e,b)}else d=L(b)}catch(g){return Promise.reject(g)}a.h=new kc;var f=hv("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new P(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).N(.01)}return a.h}
899
901
  function ov(a,b,c){if(a.g)a.g.then(function(){return ov(a,b,c)}).catch(function(){return ov(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=Bc(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=Kc(e.keys[0].k);e=Kc(e.keys[0].kid)}else d=L(c),e=null;var f=hv("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
900
- function kv(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new S("keystatuseschange");a.dispatchEvent(b)}r.generateRequest=function(a,b){return nv(this,b,null)};r.load=function(a){return"persistent-license"==this.l?nv(this,null,a):Promise.reject(Error("Not a persistent session."))};r.update=function(a){var b=new kc;ov(this,b,a);return b};
902
+ function kv(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new R("keystatuseschange");a.dispatchEvent(b)}r.generateRequest=function(a,b){return nv(this,b,null)};r.load=function(a){return"persistent-license"==this.l?nv(this,null,a):Promise.reject(Error("Not a persistent session."))};r.update=function(a){var b=new kc;ov(this,b,a);return b};
901
903
  r.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=hv("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};r.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function mv(){this.size=0;this.g=void 0}r=mv.prototype;r.Fb=function(){return this.g};
902
- r.forEach=function(a){this.g&&a(this.g,Pg.value())};r.get=function(a){if(this.has(a))return this.g};r.has=function(a){var b=Pg.value();return this.g&&Fb(a,b)?!0:!1};r.entries=function(){};r.keys=function(){};r.values=function(){};var cv="";au(bv);function pv(){}function qv(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=rv,Object.defineProperty(a,"disablePictureInPicture",{get:sv,set:tv,enumerable:!0,configurable:!0}),document.exitPictureInPicture=uv,document.addEventListener("webkitpresentationmodechanged",vv,!0))}}
904
+ r.forEach=function(a){this.g&&a(this.g,Pg.value())};r.get=function(a){if(this.has(a))return this.g};r.has=function(a){var b=Pg.value();return this.g&&Gb(a,b)?!0:!1};r.entries=function(){};r.keys=function(){};r.values=function(){};var cv="";au(bv);function pv(){}function qv(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=rv,Object.defineProperty(a,"disablePictureInPicture",{get:sv,set:tv,enumerable:!0,configurable:!0}),document.exitPictureInPicture=uv,document.addEventListener("webkitpresentationmodechanged",vv,!0))}}
903
905
  function vv(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)}
904
906
  function rv(){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 uv(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
905
- function sv(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function tv(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}$t.PiPWebkit=pv;pv.install=qv;au(qv);function wv(){}function xv(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=yv))}function yv(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}$t.RandomUUID=wv;wv.install=xv;au(xv);function zv(){}function Av(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=Bv)}function Bv(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}$t.StorageEstimate=zv;zv.install=Av;au(Av);function Cv(){}function Dv(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:Ev})}function Ev(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}$t.Symbol=Cv;Cv.install=Dv;au(Dv);function Fv(){}function Gv(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}$t.VideoPlayPromise=Fv;Fv.install=Gv;au(Gv);function Hv(){}function Iv(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||uc())&&(a.getVideoPlaybackQuality=Jv)}}function Jv(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}$t.VideoPlaybackQuality=Hv;Hv.install=Iv;au(Iv);function Kv(){}function Lv(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=Mv;else if(6==b)a=Nv;else{try{var c=!!Mv(1,2,"")}catch(d){c=!1}c&&(a=Mv)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function Mv(a,b,c){return new window.TextTrackCue(a,b,c)}function Nv(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}$t.VTTCue=Kv;Kv.install=Lv;au(Lv);function Ov(){}Ov.prototype.parseInit=function(){};Ov.prototype.setSequenceMode=function(){};Ov.prototype.parseMedia=function(a,b){var c=null,d=[];a=Bc(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=Pv.exec(e))){var f=Qv.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new jb(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};K("shaka.text.LrcTextParser",Ov);Ov.prototype.parseMedia=Ov.prototype.parseMedia;
907
+ function sv(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function tv(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}$t.PiPWebkit=pv;pv.install=qv;au(qv);function wv(){}function xv(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=yv))}function yv(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}$t.RandomUUID=wv;wv.install=xv;au(xv);function zv(){}function Av(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=Bv)}function Bv(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}$t.StorageEstimate=zv;zv.install=Av;au(Av);function Cv(){}function Dv(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:Ev})}function Ev(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}$t.Symbol=Cv;Cv.install=Dv;au(Dv);function Fv(){}function Gv(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}$t.VideoPlayPromise=Fv;Fv.install=Gv;au(Gv);function Hv(){}function Iv(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||uc())&&(a.getVideoPlaybackQuality=Jv)}}function Jv(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}$t.VideoPlaybackQuality=Hv;Hv.install=Iv;au(Iv);function Kv(){}function Lv(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=Mv;else if(6==b)a=Nv;else{try{var c=!!Mv(1,2,"")}catch(d){c=!1}c&&(a=Mv)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function Mv(a,b,c){return new window.TextTrackCue(a,b,c)}function Nv(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}$t.VTTCue=Kv;Kv.install=Lv;au(Lv);function Ov(){}Ov.prototype.parseInit=function(){};Ov.prototype.setSequenceMode=function(){};Ov.prototype.parseMedia=function(a,b){var c=null,d=[];a=Bc(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=Pv.exec(e))){var f=Qv.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new lb(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};K("shaka.text.LrcTextParser",Ov);Ov.prototype.parseMedia=Ov.prototype.parseMedia;
906
908
  Ov.prototype.setSequenceMode=Ov.prototype.setSequenceMode;Ov.prototype.parseInit=Ov.prototype.parseInit;var Pv=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,Qv=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;ed["application/x-subtitle-lrc"]=function(){return new Ov};function Rv(){}Rv.prototype.parseInit=function(){};Rv.prototype.setSequenceMode=function(){};
907
909
  Rv.prototype.parseMedia=function(a,b){var c=Bc(a);a=[];if(""==c)return a;var d=bg(c,"tt");if(!d)throw new O(2,2,2005,"Failed to parse TTML.");c=d.getElementsByTagName("body")[0];if(!c)return[];var e=Qf(d,Sv,"frameRate"),f=Qf(d,Sv,"subFrameRate"),g=Qf(d,Sv,"frameRateMultiplier"),h=Qf(d,Sv,"tickRate"),k=Qf(d,Sv,"cellResolution"),l=d.getAttribute("xml:space")||"default",m=Qf(d,Tv,"extent");if("default"!=l&&"preserve"!=l)throw new O(2,2,2005,"Invalid xml:space value: "+l);l="default"==l;e=new Uv(e,f,
908
- g,h);k=k?(k=/^(\d+) (\d+)$/.exec(k))?{columns:parseInt(k[1],10),rows:parseInt(k[2],10)}:null:null;f=(f=d.getElementsByTagName("metadata")[0])?Of(f):[];g=Array.from(d.getElementsByTagName("style"));d=Array.from(d.getElementsByTagName("region"));h=[];for(var p=t(d),n=p.next();!n.done;n=p.next()){var q=n.value;n=new lb;var v=q.getAttribute("xml:id");if(v){n.id=v;var y=null;m&&(y=Vv.exec(m)||Wv.exec(m));v=y?Number(y[1]):null;y=y?Number(y[2]):null;var w,x;if(w=Xv(q,g,"extent"))w=(x=Vv.exec(w))||Wv.exec(w),
909
- null!=w&&(n.width=Number(w[1]),n.height=Number(w[2]),x||(null!=v&&(n.width=100*n.width/v),null!=y&&(n.height=100*n.height/y)),n.widthUnits=x||null!=v?Cb:0,n.heightUnits=x||null!=y?Cb:0);if(q=Xv(q,g,"origin"))w=(x=Vv.exec(q))||Wv.exec(q),null!=w&&(n.viewportAnchorX=Number(w[1]),n.viewportAnchorY=Number(w[2]),x||(null!=y&&(n.viewportAnchorY=100*n.viewportAnchorY/y),null!=v&&(n.viewportAnchorX=100*n.viewportAnchorX/v)),n.viewportAnchorUnits=x||null!=v?Cb:0)}else n=null;n&&h.push(n)}if(Lf(c,"p").length)throw new O(2,
910
+ g,h);k=k?(k=/^(\d+) (\d+)$/.exec(k))?{columns:parseInt(k[1],10),rows:parseInt(k[2],10)}:null:null;f=(f=d.getElementsByTagName("metadata")[0])?Of(f):[];g=Array.from(d.getElementsByTagName("style"));d=Array.from(d.getElementsByTagName("region"));h=[];for(var p=t(d),n=p.next();!n.done;n=p.next()){var q=n.value;n=new nb;var v=q.getAttribute("xml:id");if(v){n.id=v;var y=null;m&&(y=Vv.exec(m)||Wv.exec(m));v=y?Number(y[1]):null;y=y?Number(y[2]):null;var w,x;if(w=Xv(q,g,"extent"))w=(x=Vv.exec(w))||Wv.exec(w),
911
+ null!=w&&(n.width=Number(w[1]),n.height=Number(w[2]),x||(null!=v&&(n.width=100*n.width/v),null!=y&&(n.height=100*n.height/y)),n.widthUnits=x||null!=v?Db:0,n.heightUnits=x||null!=y?Db:0);if(q=Xv(q,g,"origin"))w=(x=Vv.exec(q))||Wv.exec(q),null!=w&&(n.viewportAnchorX=Number(w[1]),n.viewportAnchorY=Number(w[2]),x||(null!=y&&(n.viewportAnchorY=100*n.viewportAnchorY/y),null!=v&&(n.viewportAnchorX=100*n.viewportAnchorX/v)),n.viewportAnchorUnits=x||null!=v?Db:0)}else n=null;n&&h.push(n)}if(Lf(c,"p").length)throw new O(2,
910
912
  2,2001,"<p> can only be inside <div> in TTML");m=t(Lf(c,"div"));for(p=m.next();!p.done;p=m.next())if(Lf(p.value,"span").length)throw new O(2,2,2001,"<span> can only be inside <p> in TTML");if(b=Yv(c,b,e,f,g,d,h,l,k,null,!1))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a};
911
913
  function Yv(a,b,c,d,e,f,g,h,k,l,m){var p=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var n=document.createElement("span");n.textContent=a.textContent}else n=a;for(var q=null,v=t(Zv),y=v.next();!y.done&&!(q=$v(n,"backgroundImage",d,"#",y.value)[0]);y=v.next());if("p"==a.nodeName||q)m=!0;a=m;v="default"==(n.getAttribute("xml:space")||(h?"default":"preserve"));y=Array.from(n.childNodes).every(function(B){return B.nodeType==Node.TEXT_NODE});
912
914
  h=[];if(!y)for(var w=t(n.childNodes),x=w.next();!x.done;x=w.next())(x=Yv(x.value,b,c,d,e,f,g,v,k,n,m))&&h.push(x);d=null!=l;w=/\S/.test(n.textContent);var D=n.hasAttribute("begin")||n.hasAttribute("end")||n.hasAttribute("dur");if(!(D||w||"br"==n.tagName||0!=h.length||d&&!v))return null;x=aw(n,c);w=x.start;for(x=x.end;p&&p.nodeType==Node.ELEMENT_NODE&&"tt"!=p.tagName;)x=bw(p,c,w,x),w=x.start,x=x.end,p=p.parentNode;null==w&&(w=0);w+=b.periodStart;x=null==x?Infinity:x+b.periodStart;w=Math.max(w,b.segmentStart);
913
- x=Math.min(x,b.segmentEnd);if(!D&&0<h.length)for(w=Infinity,x=0,b=t(h),c=b.next();!c.done;c=b.next())c=c.value,w=Math.min(w,c.startTime),x=Math.max(x,c.endTime);if("br"==n.tagName)return e=new jb(w,x,""),e.lineBreak=!0,e;b="";y&&(b=n.textContent,v&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new jb(w,x,b);b.nestedCues=h;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=$v(n,"region",f,"")[0];if(n.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var z=k.getAttribute("xml:id");b.region=g.filter(function(B){return B.id==
915
+ x=Math.min(x,b.segmentEnd);if(!D&&0<h.length)for(w=Infinity,x=0,b=t(h),c=b.next();!c.done;c=b.next())c=c.value,w=Math.min(w,c.startTime),x=Math.max(x,c.endTime);if("br"==n.tagName)return e=new lb(w,x,""),e.lineBreak=!0,e;b="";y&&(b=n.textContent,v&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new lb(w,x,b);b.nestedCues=h;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=$v(n,"region",f,"")[0];if(n.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var z=k.getAttribute("xml:id");b.region=g.filter(function(B){return B.id==
914
916
  z})[0]}g=k;l&&d&&!n.getAttribute("region")&&!n.getAttribute("style")&&(g=$v(l,"region",f,"")[0]);cw(b,n,g,q,e,a,0==h.length);return b}
915
- function cw(a,b,c,d,e,f,g){f=f||g;"rtl"==dw(b,c,e,"direction",f)&&(a.direction="rtl");g=dw(b,c,e,"writingMode",f);"tb"==g||"tblr"==g?a.writingMode="vertical-lr":"tbrl"==g?a.writingMode="vertical-rl":"rltb"==g||"rl"==g?a.direction="rtl":g&&(a.direction=kb);(g=dw(b,c,e,"textAlign",!0))?(a.positionAlign=ew[g],a.lineAlign=fw[g],a.textAlign=wb[g.toUpperCase()]):a.textAlign=nb;if(g=dw(b,c,e,"displayAlign",!0))a.displayAlign=xb[g.toUpperCase()];if(g=dw(b,c,e,"color",f))a.color=g;if(g=dw(b,c,e,"backgroundColor",
917
+ function cw(a,b,c,d,e,f,g){f=f||g;"rtl"==dw(b,c,e,"direction",f)&&(a.direction="rtl");g=dw(b,c,e,"writingMode",f);"tb"==g||"tblr"==g?a.writingMode="vertical-lr":"tbrl"==g?a.writingMode="vertical-rl":"rltb"==g||"rl"==g?a.direction="rtl":g&&(a.direction=mb);(g=dw(b,c,e,"textAlign",!0))?(a.positionAlign=ew[g],a.lineAlign=fw[g],a.textAlign=xb[g.toUpperCase()]):a.textAlign=pb;if(g=dw(b,c,e,"displayAlign",!0))a.displayAlign=yb[g.toUpperCase()];if(g=dw(b,c,e,"color",f))a.color=g;if(g=dw(b,c,e,"backgroundColor",
916
918
  f))a.backgroundColor=g;if(g=dw(b,c,e,"border",f))a.border=g;if(g=dw(b,c,e,"fontFamily",f))switch(g){case "monospaceSerif":a.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case "proportionalSansSerif":a.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case "sansSerif":a.fontFamily="sans-serif";break;case "monospaceSansSerif":a.fontFamily="Consolas,monospace";break;case "proportionalSerif":a.fontFamily="serif";break;default:a.fontFamily=g}(g=dw(b,c,e,"fontWeight",f))&&
917
- "bold"==g&&(a.fontWeight=700);g=dw(b,c,e,"wrapOption",f);a.wrapLine=g&&"noWrap"==g?!1:!0;(g=dw(b,c,e,"lineHeight",f))&&g.match(gw)&&(a.lineHeight=g);(g=dw(b,c,e,"fontSize",f))&&(g.match(gw)||g.match(hw))&&(a.fontSize=g);if(g=dw(b,c,e,"fontStyle",f))a.fontStyle=Bb[g.toUpperCase()];if(d){g=d.getAttribute("imageType")||d.getAttribute("imagetype");var h=d.getAttribute("encoding");d=d.textContent.trim();"PNG"==g&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)}if(d=dw(b,c,e,"textOutline",
919
+ "bold"==g&&(a.fontWeight=700);g=dw(b,c,e,"wrapOption",f);a.wrapLine=g&&"noWrap"==g?!1:!0;(g=dw(b,c,e,"lineHeight",f))&&g.match(gw)&&(a.lineHeight=g);(g=dw(b,c,e,"fontSize",f))&&(g.match(gw)||g.match(hw))&&(a.fontSize=g);if(g=dw(b,c,e,"fontStyle",f))a.fontStyle=Cb[g.toUpperCase()];if(d){g=d.getAttribute("imageType")||d.getAttribute("imagetype");var h=d.getAttribute("encoding");d=d.textContent.trim();"PNG"==g&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)}if(d=dw(b,c,e,"textOutline",
918
920
  f))d=d.split(" "),d[0].match(gw)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match(gw)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=dw(b,c,e,"letterSpacing",f))&&d.match(gw)&&(a.letterSpacing=d);(d=dw(b,c,e,"linePadding",f))&&d.match(gw)&&(a.linePadding=d);if(f=dw(b,c,e,"opacity",f))a.opacity=parseFloat(f);(c=Xv(c,e,"textDecoration"))&&iw(a,c);(b=jw(b,e,"textDecoration"))&&iw(a,b)}
919
- function iw(a,b){b=t(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&gb(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&gb(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
920
- a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&gb(a.textDecoration,"overline")}}function dw(a,b,c,d,e){e=void 0===e?!0:e;return(a=jw(a,c,d))?a:e?Xv(b,c,d):null}function Xv(a,b,c){if(!a)return null;var d=Qf(a,Tv,c);return d?d:kw(a,b,c)}function jw(a,b,c){var d=Qf(a,Tv,c);return d?d:kw(a,b,c)}
921
+ function iw(a,b){b=t(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&ib(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&ib(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
922
+ a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&ib(a.textDecoration,"overline")}}function dw(a,b,c,d,e){e=void 0===e?!0:e;return(a=jw(a,c,d))?a:e?Xv(b,c,d):null}function Xv(a,b,c){if(!a)return null;var d=Qf(a,Tv,c);return d?d:kw(a,b,c)}function jw(a,b,c){var d=Qf(a,Tv,c);return d?d:kw(a,b,c)}
921
923
  function kw(a,b,c){a=$v(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=Pf(a[e],"urn:ebu:tt:style",c);f||(f=Qf(a[e],Tv,c));f||(f=jw(a[e],b,c));f&&(d=f)}return d}
922
924
  function $v(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?Pf(g,e,b):g.getAttribute(b))&&(g=g.parentNode,g instanceof Element););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.getAttribute("xml:id")==e){f.push(g);break}return f}function bw(a,b,c,d){a=aw(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}}
923
925
  function aw(a,b){var c=lw(a.getAttribute("begin"),b),d=lw(a.getAttribute("end"),b);a=lw(a.getAttribute("dur"),b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}}
924
926
  function lw(a,b){var c=null;if(mw.test(a)){a=mw.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(nw.test(a))c=ow(nw,a);else if(pw.test(a))c=ow(pw,a);else if(qw.test(a))a=qw.exec(a),c=Number(a[1])/b.frameRate;else if(rw.test(a))a=rw.exec(a),c=Number(a[1])/b.g;else if(sw.test(a))c=ow(sw,a);else if(a)throw new O(2,2,2001,"Could not parse cue time range in TTML");return c}
925
927
  function ow(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)}K("shaka.text.TtmlTextParser",Rv);Rv.prototype.parseMedia=Rv.prototype.parseMedia;Rv.prototype.setSequenceMode=Rv.prototype.setSequenceMode;Rv.prototype.parseInit=Rv.prototype.parseInit;
926
928
  function Uv(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]))}
927
- var Vv=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,hw=/^(\d{1,2}(?:\.\d+)?|100)%$/,gw=/^(\d+px|\d+em|\d*\.?\d+c)$/,Wv=/^(\d+)px (\d+)px$/,mw=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,nw=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,pw=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,qw=/^(\d*(?:\.\d*)?)f$/,rw=/^(\d*(?:\.\d*)?)t$/,sw=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),fw={left:rb,center:"center",right:"end",start:rb,
928
- end:"end"},ew={left:"line-left",center:"center",right:"line-right"},Sv=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],Tv=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],Zv=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];ed["application/ttml+xml"]=function(){return new Rv};function tw(){this.g=new Rv}tw.prototype.parseInit=function(a){var b=!1;(new yf).box("moov",Df).box("trak",Df).box("mdia",Df).box("minf",Df).box("stbl",Df).R("stsd",Ff).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new O(2,2,2007);};tw.prototype.setSequenceMode=function(){};tw.prototype.parseMedia=function(a,b){var c=this,d=!1,e=[];(new yf).box("mdat",Hf(function(f){d=!0;e=e.concat(c.g.parseMedia(f,b))})).parse(a,!1);if(!d)throw new O(2,2,2007);return e};
929
+ var Vv=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,hw=/^(\d{1,2}(?:\.\d+)?|100)%$/,gw=/^(\d+px|\d+em|\d*\.?\d+c)$/,Wv=/^(\d+)px (\d+)px$/,mw=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,nw=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,pw=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,qw=/^(\d*(?:\.\d*)?)f$/,rw=/^(\d*(?:\.\d*)?)t$/,sw=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),fw={left:sb,center:"center",right:"end",start:sb,
930
+ end:"end"},ew={left:"line-left",center:"center",right:"line-right"},Sv=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],Tv=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],Zv=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];ed["application/ttml+xml"]=function(){return new Rv};function tw(){this.g=new Rv}tw.prototype.parseInit=function(a){var b=!1;(new yf).box("moov",Df).box("trak",Df).box("mdia",Df).box("minf",Df).box("stbl",Df).P("stsd",Ff).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new O(2,2,2007);};tw.prototype.setSequenceMode=function(){};tw.prototype.parseMedia=function(a,b){var c=this,d=!1,e=[];(new yf).box("mdat",Hf(function(f){d=!0;e=e.concat(c.g.parseMedia(f,b))})).parse(a,!1);if(!d)throw new O(2,2,2007);return e};
929
931
  K("shaka.text.Mp4TtmlParser",tw);tw.prototype.parseMedia=tw.prototype.parseMedia;tw.prototype.setSequenceMode=tw.prototype.setSequenceMode;tw.prototype.parseInit=tw.prototype.parseInit;ed['application/mp4; codecs="stpp"']=function(){return new tw};ed['application/mp4; codecs="stpp.ttml"']=function(){return new tw};ed['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new tw};ed['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new tw};function uw(){this.g=!1}uw.prototype.parseInit=function(){};uw.prototype.setSequenceMode=function(a){this.g=a};
930
932
  uw.prototype.parseMedia=function(a,b){a=Bc(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 O(2,2,2E3);a=b.vttOffset;if(c[0].includes("X-TIMESTAMP-MAP")&&this.g){var d=c[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),e=c[0].match(/MPEGTS:(\d+)/m);if(d&&e){a=vw(new Mq(d[1]));if(null==a)throw new O(2,2,2E3);e=Number(e[1]);for(d=b.segmentStart-b.periodStart;95443.7176888889<=d;)d-=95443.7176888889,e+=8589934592;a=b.periodStart+
931
- e/9E4-a}}b=[];e=t(c[0].split("\n"));for(d=e.next();!d.done;d=e.next())if(d=d.value,/^Region:/.test(d)){d=new Mq(d);var f=new lb;Pq(d);Nq(d);for(var g=Pq(d);g;){var h=f,k=g;(g=/^id=(.*)$/.exec(k))?h.id=g[1]:(g=/^width=(\d{1,2}|100)%$/.exec(k))?h.width=Number(g[1]):(g=/^lines=(\d+)$/.exec(k))?(h.height=Number(g[1]),h.heightUnits=2):(g=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.regionAnchorX=Number(g[1]),h.regionAnchorY=Number(g[2])):(g=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?
933
+ e/9E4-a}}b=[];e=t(c[0].split("\n"));for(d=e.next();!d.done;d=e.next())if(d=d.value,/^Region:/.test(d)){d=new Mq(d);var f=new nb;Pq(d);Nq(d);for(var g=Pq(d);g;){var h=f,k=g;(g=/^id=(.*)$/.exec(k))?h.id=g[1]:(g=/^width=(\d{1,2}|100)%$/.exec(k))?h.width=Number(g[1]):(g=/^lines=(\d+)$/.exec(k))?(h.height=Number(g[1]),h.heightUnits=2):(g=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.regionAnchorX=Number(g[1]),h.regionAnchorY=Number(g[2])):(g=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?
932
934
  (h.viewportAnchorX=Number(g[1]),h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up");Nq(d);g=Pq(d)}b.push(f)}e=new Map;ww(e);d=[];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(/\((.*)\)/))&&
933
- (g=k.pop());k=l.slice(1,-1);l[0].includes("}")&&(l=/\{(.*?)\}/.exec(l[0]))&&(k=l[1].split(";"));(l=e.get(g))||(l=new jb(0,0,""));for(var m=!1,p=0;p<k.length;p++){var n=/^\s*([^:]+):\s*(.*)/.exec(k[p]);if(n){var q=n[2].trim().replace(";","");switch(n[1].trim()){case "background-color":case "background":m=!0;l.backgroundColor=q;break;case "color":m=!0;l.color=q;break;case "font-family":m=!0;l.fontFamily=q;break;case "font-size":m=!0;l.fontSize=q;break;case "font-weight":if(700<=parseInt(q,10)||"bold"==
934
- q)m=!0,l.fontWeight=700;break;case "font-style":switch(q){case "normal":m=!0;l.fontStyle=ub;break;case "italic":m=!0;l.fontStyle="italic";break;case "oblique":m=!0,l.fontStyle="oblique"}break;case "opacity":m=!0;l.opacity=parseFloat(q);break;case "text-shadow":m=!0;l.textShadow=q;break;case "white-space":m=!0,l.wrapLine="noWrap"!=q}}}m&&e.set(g,l)}}m=a;if(1==f.length&&!f[0]||/^NOTE($|[ \t])/.test(f[0])||"STYLE"==f[0]||"REGION"==f[0])f=null;else{h=null;f[0].includes("--\x3e")||(h=f[0],f.splice(0,1));
935
- g=new Mq(f[0]);k=vw(g);p=Oq(g,/[ \t]+--\x3e[ \t]+/g);l=vw(g);if(null==k||null==p||null==l)throw new O(2,2,2001,"Could not parse cue time range in WebVTT");k+=m;l+=m;f=f.slice(1).join("\n").trim();e.has("global")?(m=e.get("global").clone(),m.startTime=k,m.endTime=l,m.payload=""):m=new jb(k,l,"");Nq(g);for(k=Pq(g);k;)xw(m,k,b),Nq(g),k=Pq(g);yw(f,m,e);null!=h&&(m.id=h);f=m}f&&d.push(f)}return d};
936
- function ww(a){for(var b=t(Object.entries(zb)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new jb(0,0,"");e.color=d;a.set("."+c,e)}b=t(Object.entries(Ab));for(c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new jb(0,0,""),e.backgroundColor=d,a.set("."+c,e)}
937
- function yw(a,b,c){0===c.size&&ww(c);a:{var d=a;a=[];for(var e=-1,f="",g=0;g<d.length;g++)if("/"===d[g]&&0<g&&"<"===d[g-1]){var h=d.indexOf(">",g);if(h<=g){a=d;break a}if((h=d.substring(g+1,h))&&"c"===h){var k=a.pop();k?k===h?(f+="/"+h+">",g+=h.length+1):k.startsWith("c.")?(g+=h.length+1,f+="/"+k+">"):f+=d[g]:f+=d[g]}else f+=d[g]}else"<"===d[g]?(e=g+1,"c"!=d[e]&&(e=-1)):">"===d[g]&&0<e&&(a.push(d.substr(e,g-e)),e=-1),f+=d[g];a=f}d=[];f=-1;for(e=0;e<a.length;e++)"<"===a[e]?f=e+1:">"===a[e]&&0<f&&(f=
935
+ (g=k.pop());k=l.slice(1,-1);l[0].includes("}")&&(l=/\{(.*?)\}/.exec(l[0]))&&(k=l[1].split(";"));(l=e.get(g))||(l=new lb(0,0,""));for(var m=!1,p=0;p<k.length;p++){var n=/^\s*([^:]+):\s*(.*)/.exec(k[p]);if(n){var q=n[2].trim().replace(";","");switch(n[1].trim()){case "background-color":case "background":m=!0;l.backgroundColor=q;break;case "color":m=!0;l.color=q;break;case "font-family":m=!0;l.fontFamily=q;break;case "font-size":m=!0;l.fontSize=q;break;case "font-weight":if(700<=parseInt(q,10)||"bold"==
936
+ q)m=!0,l.fontWeight=700;break;case "font-style":switch(q){case "normal":m=!0;l.fontStyle=vb;break;case "italic":m=!0;l.fontStyle="italic";break;case "oblique":m=!0,l.fontStyle="oblique"}break;case "opacity":m=!0;l.opacity=parseFloat(q);break;case "text-shadow":m=!0;l.textShadow=q;break;case "white-space":m=!0,l.wrapLine="noWrap"!=q}}}m&&e.set(g,l)}}m=a;if(1==f.length&&!f[0]||/^NOTE($|[ \t])/.test(f[0])||"STYLE"==f[0]||"REGION"==f[0])f=null;else{h=null;f[0].includes("--\x3e")||(h=f[0],f.splice(0,1));
937
+ g=new Mq(f[0]);k=vw(g);p=Oq(g,/[ \t]+--\x3e[ \t]+/g);l=vw(g);if(null==k||null==p||null==l)throw new O(2,2,2001,"Could not parse cue time range in WebVTT");k+=m;l+=m;m=f.slice(1).join("\n").trim();e.has("global")?(f=e.get("global").clone(),f.startTime=k,f.endTime=l,f.payload=""):f=new lb(k,l,"");xw(m,f,e);Nq(g);for(k=Pq(g);k;)yw(f,k,b),Nq(g),k=Pq(g);null!=h&&(f.id=h)}f&&d.push(f)}return d};
938
+ function ww(a){for(var b=t(Object.entries(Ab)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new lb(0,0,"");e.color=d;a.set("."+c,e)}b=t(Object.entries(Bb));for(c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new lb(0,0,""),e.backgroundColor=d,a.set("."+c,e)}
939
+ function xw(a,b,c){0===c.size&&ww(c);a:{var d=a;a=[];for(var e=-1,f="",g=0;g<d.length;g++)if("/"===d[g]&&0<g&&"<"===d[g-1]){var h=d.indexOf(">",g);if(h<=g){a=d;break a}if((h=d.substring(g+1,h))&&"c"===h){var k=a.pop();k?k===h?(f+="/"+h+">",g+=h.length+1):k.startsWith("c.")?(g+=h.length+1,f+="/"+k+">"):f+=d[g]:f+=d[g]}else f+=d[g]}else"<"===d[g]?(e=g+1,"c"!=d[e]&&(e=-1)):">"===d[g]&&0<e&&(a.push(d.substr(e,g-e)),e=-1),f+=d[g];a=f}d=[];f=-1;for(e=0;e<a.length;e++)"<"===a[e]?f=e+1:">"===a[e]&&0<f&&(f=
938
940
  a.substr(f,e-f),f.match(zw)&&d.push(f),f=-1);d=t(d);for(e=d.next();!e.done;e=d.next())e=e.value,a=a.replace("<"+e+">",'<div time="'+e+'">'),a+="</div>";a:{e=a;f=[];g=-1;d="";a=!1;for(h=0;h<e.length;h++)if("/"===e[h]){k=e.indexOf(">",h);if(-1===k){a=e;break a}if((k=e.substring(h+1,k))&&"v"==k){a=!0;var l=null;f.length&&(l=f[f.length-1]);if(l){if(l===k)d+="/"+k+">";else{if(!l.startsWith("v")){d+=e[h];continue}d+="/"+l+">"}h+=k.length+1}else d+=e[h]}else d+=e[h]}else"<"===e[h]?(g=h+1,"v"!=e[g]&&(g=-1)):
939
941
  ">"===e[h]&&0<g&&(f.push(e.substr(g,h-g)),g=-1),d+=e[h];e=t(f);for(f=e.next();!f.done;f=e.next())f=f.value,g=f.replace(" ",".voice-"),d=d.replace("<"+f+">","<"+g+">"),d=d.replace("</"+f+">","</"+g+">"),a||(d+="</"+g+">");a=d}if(e=bg("<span>"+a+"</span>","span")){d=[];e=e.childNodes;if(1==e.length&&(f=e[0],f.nodeType==Node.TEXT_NODE||f.nodeType==Node.CDATA_SECTION_NODE)){b.payload=Aw(a);return}a=t(e);for(e=a.next();!e.done;e=a.next())Bw(e.value,b,d,c);b.nestedCues=d}else b.payload=Aw(a)}
940
942
  function Cw(a,b){return a&&0<a.length?a:b}
941
943
  function Bw(a,b,c,d){var e=b.clone();if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var f=t(a.nodeName.split(/(?=[ .])+/g)),g=f.next();!g.done;g=f.next()){var h=g=g.value;if(h.startsWith(".voice-")){var k=h.split("-").pop();h='v[voice="'+k+'"]';d.has(h)||(h="v[voice="+k+"]")}d.has(h)&&(h=d.get(h))&&(e.backgroundColor=Cw(h.backgroundColor,e.backgroundColor),e.color=Cw(h.color,e.color),e.fontFamily=Cw(h.fontFamily,e.fontFamily),e.fontSize=Cw(h.fontSize,e.fontSize),e.fontWeight=h.fontWeight,e.fontStyle=
942
944
  h.fontStyle,e.opacity=h.opacity,e.textShadow=h.textShadow,e.wrapLine=h.wrapLine);switch(g){case "br":g=b.clone();g.lineBreak=!0;c.push(g);break;case "b":e.fontWeight=700;break;case "i":e.fontStyle="italic";break;case "u":e.textDecoration.push("underline");break;case "div":if(g=a.getAttribute("time"))if(g=vw(new Mq(g)))e.startTime=g}}if(Sf(a))for(f=!0,d=t(a.textContent.split("\n")),a=d.next();!a.done;a=d.next())a=a.value,f||(f=b.clone(),f.lineBreak=!0,c.push(f)),0<a.length&&(f=e.clone(),f.payload=
943
945
  Aw(a),c.push(f)),f=!1;else for(b=t(a.childNodes),a=b.next();!a.done;a=b.next())Bw(a.value,e,c,d)}
944
- function xw(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=nb:a.textAlign=wb[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))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==b||
945
- "end"==b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=Dw(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=yb[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=qb,a.line=Number(c[1]),c[2]&&(a.lineAlign=yb[c[2].toUpperCase()])}function Dw(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}
946
+ function yw(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=pb:a.textAlign=xb[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))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==b||
947
+ "end"==b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=Dw(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=zb[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=rb,a.line=Number(c[1]),c[2]&&(a.lineAlign=zb[c[2].toUpperCase()])}function Dw(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}
946
948
  function vw(a){a=Oq(a,zw);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}function Aw(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":"\u00a0","&lrm;":"\u200e","&rlm;":"\u200f"},c=/&(?:amp|lt|gt|quot|#(0+)?39|nbsp|lrm|rlm);/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||"'"}):a||""}K("shaka.text.VttTextParser",uw);uw.prototype.parseMedia=uw.prototype.parseMedia;
947
- uw.prototype.setSequenceMode=uw.prototype.setSequenceMode;uw.prototype.parseInit=uw.prototype.parseInit;var zw=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;ed["text/vtt"]=function(){return new uw};ed['text/vtt; codecs="vtt"']=function(){return new uw};ed['text/vtt; codecs="wvtt"']=function(){return new uw};function Ew(){this.g=null}Ew.prototype.parseInit=function(a){var b=this,c=!1;(new yf).box("moov",Df).box("trak",Df).box("mdia",Df).R("mdhd",function(d){d=fi(d.reader,d.version);b.g=d.timescale}).box("minf",Df).box("stbl",Df).R("stsd",Ff).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new O(2,2,2008);if(!c)throw new O(2,2,2008);};Ew.prototype.setSequenceMode=function(){};
948
- Ew.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new O(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new yf).box("moof",Df).box("traf",Df).R("tfdt",function(z){g=!0;c=ei(z.reader,z.version).we}).R("tfhd",function(z){l=di(z.reader,z.flags).Ce}).R("trun",function(z){h=!0;d=gi(z.reader,z.version,z.flags).Re}).box("mdat",Hf(function(z){k=!0;e=z})).parse(a,!1);if(!k&&!g&&!h)throw new O(2,2,2008);a=c;for(var m=new vf(e,0),p=t(d),n=p.next();!n.done;n=p.next()){n=n.value;
949
- var q=n.ge||l,v=n.fd?c+n.fd:a;a=v+(q||0);var y=0;do{var w=m.K();y+=w;var x=m.K(),D=null;"vttc"==Cf(x)?8<w&&(D=m.Za(w-8)):m.skip(w-8);q&&D&&(w=Fw(D,b.periodStart+v/this.g,b.periodStart+a/this.g),f.push(w))}while(n.sampleSize&&y<n.sampleSize)}return f.filter(cc)};function Fw(a,b,c){var d,e,f;(new yf).box("payl",Hf(function(g){d=Bc(g)})).box("iden",Hf(function(g){e=Bc(g)})).box("sttg",Hf(function(g){f=Bc(g)})).parse(a);return d?Gw(d,e,f,b,c):null}
950
- function Gw(a,b,c,d,e){d=new jb(d,e,"");yw(a,d,new Map);b&&(d.id=b);if(c)for(a=new Mq(c),b=Pq(a);b;)xw(d,b,[]),Nq(a),b=Pq(a);return d}K("shaka.text.Mp4VttParser",Ew);Ew.prototype.parseMedia=Ew.prototype.parseMedia;Ew.prototype.setSequenceMode=Ew.prototype.setSequenceMode;Ew.prototype.parseInit=Ew.prototype.parseInit;ed['application/mp4; codecs="wvtt"']=function(){return new Ew};function Hw(){}Hw.prototype.parseInit=function(){};Hw.prototype.setSequenceMode=function(){};Hw.prototype.parseMedia=function(a){var b=Bc(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 Mq(c[0]),e=Iw(d),f=Oq(d,/,/g);d=Iw(d);if(null==e||null==f||null==d)throw new O(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new jb(e,d,c.slice(1).join("\n").trim()))}return a};
949
+ uw.prototype.setSequenceMode=uw.prototype.setSequenceMode;uw.prototype.parseInit=uw.prototype.parseInit;var zw=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;ed["text/vtt"]=function(){return new uw};ed['text/vtt; codecs="vtt"']=function(){return new uw};ed['text/vtt; codecs="wvtt"']=function(){return new uw};function Ew(){this.g=null}Ew.prototype.parseInit=function(a){var b=this,c=!1;(new yf).box("moov",Df).box("trak",Df).box("mdia",Df).P("mdhd",function(d){d=fi(d.reader,d.version);b.g=d.timescale}).box("minf",Df).box("stbl",Df).P("stsd",Ff).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new O(2,2,2008);if(!c)throw new O(2,2,2008);};Ew.prototype.setSequenceMode=function(){};
950
+ Ew.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new O(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new yf).box("moof",Df).box("traf",Df).P("tfdt",function(z){g=!0;c=ei(z.reader,z.version).we}).P("tfhd",function(z){l=di(z.reader,z.flags).Ce}).P("trun",function(z){h=!0;d=gi(z.reader,z.version,z.flags).Re}).box("mdat",Hf(function(z){k=!0;e=z})).parse(a,!1);if(!k&&!g&&!h)throw new O(2,2,2008);a=c;for(var m=new vf(e,0),p=t(d),n=p.next();!n.done;n=p.next()){n=n.value;
951
+ var q=n.ge||l,v=n.gd?c+n.gd:a;a=v+(q||0);var y=0;do{var w=m.K();y+=w;var x=m.K(),D=null;"vttc"==Cf(x)?8<w&&(D=m.Za(w-8)):m.skip(w-8);q&&D&&(w=Fw(D,b.periodStart+v/this.g,b.periodStart+a/this.g),f.push(w))}while(n.sampleSize&&y<n.sampleSize)}return f.filter(cc)};function Fw(a,b,c){var d,e,f;(new yf).box("payl",Hf(function(g){d=Bc(g)})).box("iden",Hf(function(g){e=Bc(g)})).box("sttg",Hf(function(g){f=Bc(g)})).parse(a);return d?Gw(d,e,f,b,c):null}
952
+ function Gw(a,b,c,d,e){d=new lb(d,e,"");xw(a,d,new Map);b&&(d.id=b);if(c)for(a=new Mq(c),b=Pq(a);b;)yw(d,b,[]),Nq(a),b=Pq(a);return d}K("shaka.text.Mp4VttParser",Ew);Ew.prototype.parseMedia=Ew.prototype.parseMedia;Ew.prototype.setSequenceMode=Ew.prototype.setSequenceMode;Ew.prototype.parseInit=Ew.prototype.parseInit;ed['application/mp4; codecs="wvtt"']=function(){return new Ew};function Hw(){}Hw.prototype.parseInit=function(){};Hw.prototype.setSequenceMode=function(){};Hw.prototype.parseMedia=function(a){var b=Bc(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 Mq(c[0]),e=Iw(d),f=Oq(d,/,/g);d=Iw(d);if(null==e||null==f||null==d)throw new O(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new lb(e,d,c.slice(1).join("\n").trim()))}return a};
951
953
  function Iw(a){a=Oq(a,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}K("shaka.text.SbvTextParser",Hw);Hw.prototype.parseMedia=Hw.prototype.parseMedia;Hw.prototype.setSequenceMode=Hw.prototype.setSequenceMode;Hw.prototype.parseInit=Hw.prototype.parseInit;ed["text/x-subviewer"]=function(){return new Hw};function Jw(){this.g=new uw}Jw.prototype.parseInit=function(){};Jw.prototype.setSequenceMode=function(){};Jw.prototype.parseMedia=function(a,b){a=Bc(a);a=Kw(a);a=L(Fc(a));return this.g.parseMedia(a,b)};function Kw(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")+"\n\n";return b}K("shaka.text.SrtTextParser",Jw);
952
954
  Jw.srt2webvtt=Kw;Jw.prototype.parseMedia=Jw.prototype.parseMedia;Jw.prototype.setSequenceMode=Jw.prototype.setSequenceMode;Jw.prototype.parseInit=Jw.prototype.parseInit;ed["text/srt"]=function(){return new Jw};function Lw(){}Lw.prototype.parseInit=function(){};Lw.prototype.setSequenceMode=function(){};
953
955
  Lw.prototype.parseMedia=function(a){var b="",c="";a=Bc(a).split(/\r?\n\s*\r?\n/);a=t(a);for(var d=a.next();!d.done;d=a.next()){var e=Mw.exec(d.value);e&&(d=e[1],e=e[2],"V4 Styles"==d||"V4+ Styles"==d?b=e:"Events"==d&&(c=e))}a=[];d=null;b=t(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=Nw.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(Ow);else if("Style"==e){e=f.split(Ow);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
954
- [];b=null;e={};c=t(c.split(/\r?\n/));for(f=c.next();!f.done;e={xd:e.xd},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=Nw.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(Ow);else if("Dialogue"==f){g=g.split(Ow);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=Pw(f.Start);var k=Pw(f.End);g=new jb(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.xd=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.xd}}(e)))&&Qw(g,f);d.push(g)}return d};
955
- function Qw(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=Rw(c))a.color=c;if(c=b.BackColour)if(c=Rw(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=700);b.Italic&&(a.fontStyle="italic");b.Underline&&a.textDecoration.push("underline");if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=sb;a.textAlign="start";break;case 2:a.displayAlign=sb;a.textAlign=nb;break;case 3:a.displayAlign=sb;a.textAlign="end";
956
- break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=nb;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=nb;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)}
956
+ [];b=null;e={};c=t(c.split(/\r?\n/));for(f=c.next();!f.done;e={yd:e.yd},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=Nw.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(Ow);else if("Dialogue"==f){g=g.split(Ow);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=Pw(f.Start);var k=Pw(f.End);g=new lb(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.yd=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.yd}}(e)))&&Qw(g,f);d.push(g)}return d};
957
+ function Qw(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=Rw(c))a.color=c;if(c=b.BackColour)if(c=Rw(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=700);b.Italic&&(a.fontStyle="italic");b.Underline&&a.textDecoration.push("underline");if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=tb;a.textAlign="start";break;case 2:a.displayAlign=tb;a.textAlign=pb;break;case 3:a.displayAlign=tb;a.textAlign="end";
958
+ break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=pb;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=pb;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)}
957
959
  function Rw(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 Pw(a){a=Sw.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}K("shaka.text.SsaTextParser",Lw);Lw.prototype.parseMedia=Lw.prototype.parseMedia;Lw.prototype.setSequenceMode=Lw.prototype.setSequenceMode;Lw.prototype.parseInit=Lw.prototype.parseInit;
958
960
  var Mw=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,Nw=/^\s*([^:]+):\s*(.*)/,Ow=/\s*,\s*/,Sw=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;ed["text/x-ssa"]=function(){return new Lw};/*
959
961
  @license