shaka-player 4.2.8 → 4.2.9

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 (56) hide show
  1. package/.github/workflows/build-and-test.yaml +4 -4
  2. package/.github/workflows/demo-version-index.yaml +6 -0
  3. package/.github/workflows/selenium-lab-tests.yaml +55 -16
  4. package/.github/workflows/update-screenshots.yaml +142 -0
  5. package/CHANGELOG.md +23 -0
  6. package/demo/common/asset.js +15 -0
  7. package/demo/common/assets.js +4 -2
  8. package/demo/common/message_ids.js +1 -0
  9. package/demo/custom.js +19 -0
  10. package/demo/locales/en.json +1 -0
  11. package/demo/locales/source.json +4 -0
  12. package/demo/main.js +14 -0
  13. package/dist/demo.compiled.debug.js +29 -27
  14. package/dist/demo.compiled.debug.map +3 -3
  15. package/dist/demo.compiled.js +29 -27
  16. package/dist/demo.compiled.map +3 -3
  17. package/dist/deps.js +1 -1
  18. package/dist/locales.js +31 -31
  19. package/dist/receiver.compiled.debug.js +21 -21
  20. package/dist/receiver.compiled.debug.map +2 -2
  21. package/dist/receiver.compiled.js +21 -21
  22. package/dist/receiver.compiled.map +2 -2
  23. package/dist/shaka-player.compiled.d.ts +7 -0
  24. package/dist/shaka-player.compiled.debug.d.ts +7 -0
  25. package/dist/shaka-player.compiled.debug.js +34 -32
  26. package/dist/shaka-player.compiled.debug.map +3 -3
  27. package/dist/shaka-player.compiled.js +167 -167
  28. package/dist/shaka-player.compiled.map +2 -2
  29. package/dist/shaka-player.ui.d.ts +7 -0
  30. package/dist/shaka-player.ui.debug.d.ts +7 -0
  31. package/dist/shaka-player.ui.debug.js +36 -34
  32. package/dist/shaka-player.ui.debug.map +3 -3
  33. package/dist/shaka-player.ui.js +264 -263
  34. package/dist/shaka-player.ui.map +3 -3
  35. package/docs/tutorials/errors.md +94 -0
  36. package/docs/tutorials/fairplay.md +2 -2
  37. package/docs/tutorials/index.json +2 -0
  38. package/docs/tutorials/widevine-service-certs.md +45 -0
  39. package/externs/ima.js +9 -0
  40. package/lib/ads/client_side_ad_manager.js +6 -3
  41. package/lib/hls/hls_parser.js +2 -0
  42. package/lib/media/drm_engine.js +4 -2
  43. package/lib/media/transmuxer.js +13 -7
  44. package/lib/media/video_wrapper.js +3 -3
  45. package/lib/offline/indexeddb/storage_mechanism.js +1 -1
  46. package/lib/player.js +3 -1
  47. package/lib/polyfill/media_capabilities.js +2 -8
  48. package/lib/polyfill/mediasource.js +24 -2
  49. package/lib/text/ui_text_displayer.js +1 -0
  50. package/lib/text/vtt_text_parser.js +4 -5
  51. package/lib/util/mime_utils.js +1 -1
  52. package/lib/util/stream_utils.js +26 -14
  53. package/package.json +1 -1
  54. package/test/polyfill/media_capabilities_unit.js +20 -22
  55. package/test/text/vtt_text_parser_unit.js +26 -2
  56. package/test/text/web_vtt_layout_integration.js +0 -3
@@ -15,7 +15,7 @@ ha("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("
15
15
  ha("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=fa[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ca(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ia(ba(this))}})}return a});function ia(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
16
16
  function r(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ba(a)}}function ja(a){if(!(a instanceof Array)){a=r(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ka="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ma;
17
17
  if("function"==typeof Object.setPrototypeOf)ma=Object.setPrototypeOf;else{var na;a:{var oa={a:!0},pa={};try{pa.__proto__=oa;na=pa.a;break a}catch(a){}na=!1}ma=na?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var qa=ma;
18
- function u(a,b){a.prototype=ka(b.prototype);a.prototype.constructor=a;if(qa)qa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.hj=b.prototype}function ra(){this.A=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.C=this.i=null}function sa(a){if(a.A)throw new TypeError("Generator is already running");a.A=!0}ra.prototype.B=function(a){this.h=a};
18
+ function u(a,b){a.prototype=ka(b.prototype);a.prototype.constructor=a;if(qa)qa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.fj=b.prototype}function ra(){this.A=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.C=this.i=null}function sa(a){if(a.A)throw new TypeError("Generator is already running");a.A=!0}ra.prototype.B=function(a){this.h=a};
19
19
  function ta(a,b){a.i={vf:b,Ff:!0};a.g=a.m||a.j}ra.prototype.return=function(a){this.i={return:a};this.g=this.j};function A(a,b,c){a.g=c;return{value:b}}ra.prototype.D=function(a){this.g=a};function B(a){a.g=0}function E(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function ua(a){a.m=0;a.j=2}function va(a,b,c){a.g=b;a.m=c||0}function J(a,b){a.m=b||0;b=a.i.vf;a.i=null;return b}function wa(a){a.C=[a.i];a.m=0;a.j=0}
20
20
  function xa(a,b){var c=a.C.splice(0)[0];(c=a.i=a.i||c)?c.Ff?a.g=a.m||a.j:void 0!=c.D&&a.j<c.D?(a.g=c.D,a.i=null):a.g=a.j:a.g=b}function ya(a){this.g=new ra;this.h=a}function za(a,b){sa(a.g);var c=a.g.l;if(c)return Aa(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Ca(a)}
21
21
  function Aa(a,b,c,d){try{var e=b.call(a.g.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.A=!1,e;var f=e.value}catch(g){return a.g.l=null,ta(a.g,g),Ca(a)}a.g.l=null;d.call(a.g,f);return Ca(a)}function Ca(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.A=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,ta(a.g,c)}a.g.A=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Ff)throw b.vf;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
@@ -54,8 +54,8 @@ function M(a,b){a=a.split(".");var c=Pa;a[0]in c||"undefined"==typeof c.execScri
54
54
  */
55
55
  function O(a,b){if(b)if(b instanceof Map)for(var c=r(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1}
56
56
  function Qa(a){var b=new O(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}O.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};O.prototype.stopImmediatePropagation=function(){this.g=!0};O.prototype.stopPropagation=function(){};M("shaka.util.FakeEvent",O);
57
- var Ra={Kh:"abrstatuschanged",Lh:"adaptation",Mh:"buffering",Qh:"downloadfailed",Rh:"downloadheadersreceived",Sh:"drmsessionupdate",Zh:"emsg",Error:"error",$h:"expirationupdated",ci:"gapjumped",ii:"loaded",ji:"loading",oi:"manifestparsed",pi:"mediaqualitychanged",Metadata:"metadata",xi:"onstatechange",zi:"onstateidle",Ii:"ratechange",Oi:"sessiondata",Pi:"stalldetected",Qi:"streaming",Ri:"textchanged",Si:"texttrackvisibility",Ti:"timelineregionadded",Ui:"timelineregionenter",Vi:"timelineregionexit",
58
- Wi:"trackschanged",aj:"unloading",cj:"variantchanged"};function Sa(){}function Ta(){}function Ua(){}function Wa(a){var b=Fa.apply(1,arguments);Xa.has(a)||(Xa.add(a),Ua.apply(Sa,ja(b)))}function Ya(){}function Za(){}function $a(){}function ab(){}var Xa=new Set;if(window.console&&window.console.log.bind){var bb={},cb=(bb[1]=console.error.bind(console),bb[2]=console.warn.bind(console),bb[3]=console.info.bind(console),bb[4]=console.log.bind(console),bb[5]=console.debug.bind(console),bb[6]=console.debug.bind(console),bb);Ua=cb[2];Ta=cb[1]};function db(){this.g={}}q=db.prototype;q.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};q.get=function(a){return(a=this.g[a])?a.slice():null};q.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};function eb(a,b){for(var c in a.g)b(c,a.g[c])}q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function fb(){this.va=new db;this.wd=this}fb.prototype.addEventListener=function(a,b){this.va&&this.va.push(a,b)};fb.prototype.removeEventListener=function(a,b){this.va&&this.va.remove(a,b)};fb.prototype.dispatchEvent=function(a){if(!this.va)return!0;var b=this.va.get(a.type)||[],c=this.va.get("All");c&&(b=b.concat(c));b=r(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.wd;a.currentTarget=this.wd;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
57
+ var Ra={Kh:"abrstatuschanged",Lh:"adaptation",Mh:"buffering",Ph:"downloadfailed",Qh:"downloadheadersreceived",Rh:"drmsessionupdate",Yh:"emsg",Error:"error",Zh:"expirationupdated",bi:"gapjumped",ei:"loaded",gi:"loading",mi:"manifestparsed",ni:"mediaqualitychanged",Metadata:"metadata",ti:"onstatechange",wi:"onstateidle",Gi:"ratechange",Mi:"sessiondata",Ni:"stalldetected",Oi:"streaming",Pi:"textchanged",Qi:"texttrackvisibility",Ri:"timelineregionadded",Si:"timelineregionenter",Ti:"timelineregionexit",
58
+ Ui:"trackschanged",Zi:"unloading",aj:"variantchanged"};function Sa(){}function Ta(){}function Ua(){}function Wa(a){var b=Fa.apply(1,arguments);Xa.has(a)||(Xa.add(a),Ua.apply(Sa,ja(b)))}function Ya(){}function Za(){}function $a(){}function ab(){}var Xa=new Set;if(window.console&&window.console.log.bind){var bb={},cb=(bb[1]=console.error.bind(console),bb[2]=console.warn.bind(console),bb[3]=console.info.bind(console),bb[4]=console.log.bind(console),bb[5]=console.debug.bind(console),bb[6]=console.debug.bind(console),bb);Ua=cb[2];Ta=cb[1]};function db(){this.g={}}q=db.prototype;q.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};q.get=function(a){return(a=this.g[a])?a.slice():null};q.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};function eb(a,b){for(var c in a.g)b(c,a.g[c])}q.size=function(){return Object.keys(this.g).length};q.keys=function(){return Object.keys(this.g)};function fb(){this.va=new db;this.wd=this}fb.prototype.addEventListener=function(a,b){this.va&&this.va.push(a,b)};fb.prototype.removeEventListener=function(a,b){this.va&&this.va.remove(a,b)};fb.prototype.dispatchEvent=function(a){if(!this.va)return!0;var b=this.va.get(a.type)||[],c=this.va.get("All");c&&(b=b.concat(c));b=r(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.wd;a.currentTarget=this.wd;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
59
59
  fb.prototype.release=function(){this.va=null};function gb(a,b){var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function hb(a,b){a=r(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0}function ib(a,b){a=r(a);for(var c=a.next();!c.done;c=a.next())if(b(c.value))return!0;return!1}function jb(a,b){var c=[];a=r(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b(d)&&c.push(d);return c};/*
60
60
  @license
61
61
  Copyright 2008 The Closure Library Authors
@@ -96,8 +96,8 @@ q.mf=function(a){var b=this;this.g.clear();a=r(a);for(var c=a.next();!c.done;c=a
96
96
  q.ia=function(a,b,c){a=Mb(a);void 0===c&&(c=Xb);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Xb||d.set(f,e)});this.h.set(a,d);Wb(this);this.dispatchEvent(new O("locale-updated"));return this};q.oh=function(a){for(var b=r(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};q.resolve=function(a){var b=this.i.get(a);if(b)return b;a=(new Map).set("locales",Array.from(this.g)).set("missing",a);this.dispatchEvent(new O("unknown-localization",a));return""};
97
97
  function Wb(a){for(var b=a.h,c=a.j,d=a.g,e=new Set,f={},g=r(d),h=g.next();!h.done;f={Yb:f.Yb},h=g.next()){f.Yb=h.value;e.add(f.Yb);e.add(Rb(f.Yb));h=jb(b.keys(),function(l){return function(m){return Qb(m,l.Yb)}}(f));h.sort();var k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=jb(b.keys(),function(l){return function(m){return Rb(m)==l.Yb}}(f));h.sort();k=r(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=r(e);for(h=e.next();!h.done;h=e.next())(h=b.get(h.value))&&c.push(h);
98
98
  c.reverse();a.i.clear();b=r(c);for(h=b.next();!h.done;h=b.next())h.value.forEach(function(l,m){a.i.set(m,l)});b=a.i.keys();e=new Set;c=r(a.g);for(h=c.next();!h.done;h=c.next())h=a.h.get(h.value)||new Map,Yb(h,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new O("missing-localizations",d)))}function Yb(a,b,c){b=r(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}M("shaka.ui.Localization",Vb);Vb.prototype.resolve=Vb.prototype.resolve;
99
- Vb.prototype.resolveDictionary=Vb.prototype.oh;Vb.prototype.insert=Vb.prototype.ia;Vb.prototype.changeLocale=Vb.prototype.mf;Vb.prototype.release=Vb.prototype.release;var Xb=1;Vb.ConflictResolution={USE_OLD:0,USE_NEW:Xb};Vb.UNKNOWN_LOCALES="unknown-locales";Vb.UNKNOWN_LOCALIZATION="unknown-localization";Vb.MISSING_LOCALIZATIONS="missing-localizations";Vb.LOCALE_CHANGED="locale-changed";Vb.LOCALE_UPDATED="locale-updated";var Zb={bi:"FULL_SCREEN",Ih:"AUTO_QUALITY",Ci:"PLAY",gi:"LOOP",Oh:"CAST",ti:"ON",Fh:"AD_TIME",Wh:"EXIT_FULL_SCREEN",ei:"LANGUAGE",mi:"MULTIPLE_LANGUAGES",Nh:"CAPTIONS",Ai:"PAUSE",Uh:"ENTER_PICTURE_IN_PICTURE",ri:"NOT_APPLICABLE",Ni:"STATISTICS",Yf:"SUBTITLE_FORCED",BACK:"BACK",Ei:"QUALITY",Yi:"UNDETERMINED_LANGUAGE",Di:"PLAYBACK_RATE",li:"MORE_SETTINGS",Ji:"SEEK",df:"LIVE",Li:"SKIP_TO_LIVE",AD_PROGRESS:"AD_PROGRESS",$i:"UNRECOGNIZED_LANGUAGE",Gh:"AIRPLAY",si:"OFF",Bi:"PICTURE_IN_PICTURE",Yh:"EXIT_PICTURE_IN_PICTURE",
100
- Th:"ENTER_LOOP_MODE",Eh:"AD_DURATION",Hi:"REWIND",bj:"VOLUME",Fi:"REPLAY",Xh:"EXIT_LOOP_MODE",ai:"FAST_FORWARD",Ki:"SKIP_AD",Gi:"RESOLUTION",ni:"MUTE",Zi:"UNMUTE"};function $b(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}$b.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 ac(a){return a.h/(1-Math.pow(a.g,a.i))};function bc(){this.h=new $b(2);this.j=new $b(5);this.g=0;this.i=128E3;this.l=16E3}bc.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)};bc.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)}};bc.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(ac(this.h),ac(this.j))};function cc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function dc(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function ec(a,b,c){c||(c=cc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=r(a);for(var e=a.next();!e.done;d={Qd:d.Qd},e=a.next()){d.Qd=e.value;e=b.findIndex(function(f){return function(g){return c(f.Qd,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
99
+ Vb.prototype.resolveDictionary=Vb.prototype.oh;Vb.prototype.insert=Vb.prototype.ia;Vb.prototype.changeLocale=Vb.prototype.mf;Vb.prototype.release=Vb.prototype.release;var Xb=1;Vb.ConflictResolution={USE_OLD:0,USE_NEW:Xb};Vb.UNKNOWN_LOCALES="unknown-locales";Vb.UNKNOWN_LOCALIZATION="unknown-localization";Vb.MISSING_LOCALIZATIONS="missing-localizations";Vb.LOCALE_CHANGED="locale-changed";Vb.LOCALE_UPDATED="locale-updated";var Zb={Hi:"SEEK",Gh:"AIRPLAY",oi:"NOT_APPLICABLE",Ji:"SKIP_TO_LIVE",Yf:"SUBTITLE_FORCED",ki:"MULTIPLE_LANGUAGES",Eh:"AD_DURATION",di:"LOOP",Ih:"AUTO_QUALITY",zi:"PICTURE_IN_PICTURE",BACK:"BACK",Sh:"ENTER_LOOP_MODE",xi:"PAUSE",Wi:"UNDETERMINED_LANGUAGE",$i:"VOLUME",Vh:"EXIT_FULL_SCREEN",Oh:"CAST",ci:"LANGUAGE",Ai:"PLAY",Fh:"AD_TIME",Ii:"SKIP_AD",Xh:"EXIT_PICTURE_IN_PICTURE",AD_PROGRESS:"AD_PROGRESS",Ei:"RESOLUTION",$h:"FAST_FORWARD",Bi:"PLAYBACK_RATE",ji:"MORE_SETTINGS",ri:"ON",pi:"OFF",ai:"FULL_SCREEN",
100
+ df:"LIVE",Wh:"EXIT_LOOP_MODE",Ci:"QUALITY",Xi:"UNMUTE",Yi:"UNRECOGNIZED_LANGUAGE",Fi:"REWIND",li:"MUTE",Th:"ENTER_PICTURE_IN_PICTURE",Nh:"CAPTIONS",Di:"REPLAY",Li:"STATISTICS"};function $b(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}$b.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 ac(a){return a.h/(1-Math.pow(a.g,a.i))};function bc(){this.h=new $b(2);this.j=new $b(5);this.g=0;this.i=128E3;this.l=16E3}bc.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)};bc.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)}};bc.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(ac(this.h),ac(this.j))};function cc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function dc(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function ec(a,b,c){c||(c=cc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=r(a);for(var e=a.next();!e.done;d={Qd:d.Qd},e=a.next()){d.Qd=e.value;e=b.findIndex(function(f){return function(g){return c(f.Qd,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
101
101
  function fc(a,b,c){c||(c=cc);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 gc(a,b,c){this.startTime=a;this.direction=hc;this.endTime=b;this.payload=c;this.region=new ic;this.position=null;this.positionAlign=jc;this.size=0;this.textAlign=kc;this.writingMode=lc;this.lineInterpretation=mc;this.line=null;this.lineHeight="";this.lineAlign=nc;this.displayAlign=oc;this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.textShadow=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=pc;this.fontStyle=qc;this.linePadding=this.letterSpacing=
102
102
  this.fontFamily="";this.opacity=1;this.textDecoration=[];this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.cellResolution={columns:32,rows:15}}gc.prototype.clone=function(){var a=new gc(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
103
103
  function rc(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(!fc(a.nestedCues,b.nestedCues,rc))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(!fc(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}M("shaka.text.Cue",gc);var jc="auto";
@@ -113,9 +113,9 @@ function ed(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new P(2,2,2004)
113
113
  function gd(a){function b(d){return c.byteLength<=d||32<=c[d]&&126>=c[d]}if(!a)return"";var c=Ec(a);if(239==c[0]&&187==c[1]&&191==c[2])return dd(c);if(254==c[0]&&255==c[1])return ed(c.subarray(2),!1);if(255==c[0]&&254==c[1])return ed(c.subarray(2),!0);if(0==c[0]&&0==c[2])return ed(a,!1);if(0==c[1]&&0==c[3])return ed(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return dd(a);throw new P(2,2,2003);}
114
114
  function hd(a){if(window.TextEncoder&&!Zc()){var b=new TextEncoder;return Fc(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 Fc(b)}function id(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}M("shaka.util.StringUtils",cd);cd.resetFromCharCode=function(){fd.g=void 0};cd.toUTF16=id;cd.toUTF8=hd;cd.fromBytesAutoDetect=gd;cd.fromUTF16=ed;
115
115
  cd.fromUTF8=dd;var fd=new Mc(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={vb:65536};0<b.vb;b={vb:b.vb},b.vb/=2)if(a(b.vb))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.vb)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.vb));return e}}(b);return null});function jd(){}function kd(a){a=Ec(a);a=fd.value()(a);return btoa(a)}function ld(a,b){b=void 0==b?!0:b;a=kd(a).replace(/\+/g,"-").replace(/\//g,"_");return b?a:a.replace(/[=]*$/,"")}function md(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 nd(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}
116
- function od(a){var b=Ec(a);a="";b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c=c.toString(16),1==c.length&&(c="0"+c),a+=c;return a}function pd(){for(var a=Fa.apply(0,arguments),b=0,c=r(a),d=c.next();!d.done;d=c.next())b+=d.value.byteLength;b=new Uint8Array(b);c=0;a=r(a);for(d=a.next();!d.done;d=a.next())d=d.value,b.set(Ec(d),c),c+=d.byteLength;return b}M("shaka.util.Uint8ArrayUtils",jd);jd.concat=pd;jd.toHex=od;jd.fromHex=nd;jd.fromBase64=md;jd.toBase64=ld;jd.toStandardBase64=kd;function qd(){var a=this;this.A=Jc.get("muxjs")();this.g=new this.A.mp4.Transmuxer({keepOriginalTimestamps:!0});this.h=null;this.m=[];this.j=[];this.i=[];this.l=!1;this.g.on("data",function(b){a.j=b.captions;a.i=b.metadata;a.m.push(pd(b.initSegment,b.data))});this.g.on("done",function(){var b={data:pd.apply(jd,ja(a.m)),captions:a.j,metadata:a.i};a.h.resolve(b);a.l=!1})}qd.prototype.destroy=function(){this.g.dispose();this.g=null;return Promise.resolve()};
116
+ function od(a){var b=Ec(a);a="";b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c=c.toString(16),1==c.length&&(c="0"+c),a+=c;return a}function pd(){for(var a=Fa.apply(0,arguments),b=0,c=r(a),d=c.next();!d.done;d=c.next())b+=d.value.byteLength;b=new Uint8Array(b);c=0;a=r(a);for(d=a.next();!d.done;d=a.next())d=d.value,b.set(Ec(d),c),c+=d.byteLength;return b}M("shaka.util.Uint8ArrayUtils",jd);jd.concat=pd;jd.toHex=od;jd.fromHex=nd;jd.fromBase64=md;jd.toBase64=ld;jd.toStandardBase64=kd;function qd(){var a=this;this.A=Jc.get("muxjs")();this.h=this.g=null;this.m=[];this.j=[];this.i=[];this.l=!1;this.A&&(this.g=new this.A.mp4.Transmuxer({keepOriginalTimestamps:!0}),this.g.on("data",function(b){a.j=b.captions;a.i=b.metadata;a.m.push(pd(b.initSegment,b.data))}),this.g.on("done",function(){var b={data:pd.apply(jd,ja(a.m)),captions:a.j,metadata:a.i};a.h.resolve(b);a.l=!1}))}qd.prototype.destroy=function(){this.g&&this.g.dispose();this.g=null;return Promise.resolve()};
117
117
  function rd(a,b){if(!Jc.get("muxjs")()||!sd(a))return!1;if(b)return MediaSource.isTypeSupported(td(b,a));b=td("audio",a);a=td("video",a);return MediaSource.isTypeSupported(b)||MediaSource.isTypeSupported(a)}function sd(a){return"mp2t"==a.toLowerCase().split(";")[0].split("/")[1]}
118
- function td(a,b){b=b.replace(/mp2t/i,"mp4");"audio"==a&&(b=b.replace("video","audio"));if(a=/avc1\.(66|77|100)\.(\d+)/.exec(b)){var c="avc1.",d=a[1],e=Number(a[2]);c=("66"==d?c+"4200":"77"==d?c+"4d00":c+"6400")+(e>>4).toString(16);c+=(e&15).toString(16);b=b.replace(a[0],c)}return b}function ud(a,b){a.l=!0;a.h=new Lc;a.m=[];a.j=[];a.i=[];b=Ec(b);a.g.push(b);a.g.flush();a.l&&a.h.reject(new P(2,3,3018));return a.h};function vd(){}function wd(a,b){b&&(a+='; codecs="'+b+'"');return a}function xd(a,b,c){a=wd(a,b);if(sd(a)){if(Jc.get("muxjs")())return td(c,a)}else if("audio"==c)return a.replace("video","audio");return a}
118
+ function td(a,b){b=b.replace(/mp2t/i,"mp4");"audio"==a&&(b=b.replace("video","audio"));if(a=/avc1\.(66|77|100)\.(\d+)/.exec(b)){var c="avc1.",d=a[1],e=Number(a[2]);c=("66"==d?c+"4200":"77"==d?c+"4d00":c+"6400")+(e>>4).toString(16);c+=(e&15).toString(16);b=b.replace(a[0],c)}return b}function ud(a,b){a.l=!0;a.h=new Lc;a.m=[];a.j=[];a.i=[];b=Ec(b);a.g.push(b);a.g.flush();a.l&&a.h.reject(new P(2,3,3018));return a.h};function vd(){}function wd(a,b){b&&(a+='; codecs="'+b+'"');return a}function xd(a,b,c){b=wd(a,b);if(sd(b)){if(Jc.get("muxjs")())return td(c,b)}else if("video/mp2t"!=a&&"audio"==c)return b.replace("video","audio");return b}
119
119
  function yd(a){var b=zd(a);a=b[0];b=b[1].toLowerCase();switch(!0){case "mp4a"===a&&"69"===b:case "mp4a"===a&&"6b"===b:return"mp3";case "mp4a"===a&&"66"===b:case "mp4a"===a&&"67"===b:case "mp4a"===a&&"68"===b:case "mp4a"===a&&"40.2"===b:case "mp4a"===a&&"40.02"===b:case "mp4a"===a&&"40.5"===b:case "mp4a"===a&&"40.05"===b:case "mp4a"===a&&"40.29"===b:case "mp4a"===a&&"40.42"===b:return"aac";case "mp4a"===a&&"a5"===b:return"ac-3";case "mp4a"===a&&"a6"===b:return"ec-3";case "mp4a"===a&&"b2"===b:return"dtsx";
120
120
  case "mp4a"===a&&"a9"===b:return"dtsc";case "avc1"===a:case "avc3"===a:return"avc";case "hvc1"===a:case "hev1"===a:return"hevc";case "dvh1"===a:case "dvhe"===a:return"dovi"}return a}function Ad(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""}function zd(a){a=a.split(".");var b=a[0];a.shift();return[b,a.join(".")]}M("shaka.util.MimeUtils",vd);vd.getFullType=wd;
121
121
  (new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");function Bd(a){this.j=null;this.i=a;this.C=!1;this.l=this.B=0;this.m=Infinity;this.h=this.g=null;this.F="";this.A=new Map}function Cd(a){return Dd[a]||"application/cea-608"==a||"application/cea-708"==a?!0:!1}Bd.prototype.destroy=function(){this.i=this.j=null;this.A.clear();return Promise.resolve()};
@@ -137,9 +137,9 @@ function ge(a,b,c){var d,e,f,g,h,k,l,m,p,n,t;return K(function(y){if(d=a.some(fu
137
137
  function ke(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=Fb("video",g);f=he(f);g=Fb("audio",g);g=xd(e.mimeType,g,"audio");c.audio={contentType:g,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1}}f=he(f);f=xd(e.mimeType,f,"video");c.video={contentType:f,width:e.width||64,height:e.height||64,bitrate:e.bandwidth||a.bandwidth||1,framerate:e.frameRate||1};if(e.hdr)switch(e.hdr){case "SDR":c.video.transferFunction="srgb";
138
138
  break;case "PQ":c.video.transferFunction="pq";break;case "HLG":c.video.transferFunction="hlg"}}d&&(f=ie(d.codecs),f=xd(d.mimeType,f,"audio"),c.audio={contentType:f,channels:d.channelsCount||2,bitrate:d.bandwidth||a.bandwidth||1,samplerate:d.audioSamplingRate||1,spatialRendering:d.spatialAudio});g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return[c];a=[];f=new Map;g=r(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;f.get(k.keySystem)||f.set(k.keySystem,[]);
139
139
  f.get(k.keySystem).push(k)}g=b?"required":"optional";b=b?["persistent-license"]:["temporary"];k=r(f.keys());for(var l=k.next();!l.done;l=k.next()){var m=l.value;l=Object.assign({},c);var p=f.get(m);m={keySystem:m,initDataType:"cenc",persistentState:g,distinctiveIdentifier:"optional",sessionTypes:b};p=r(p);for(h=p.next();!h.done;h=p.next()){h=h.value;if(h.initData&&h.initData.length){for(var n=new Set,t=r(h.initData),y=t.next();!y.done;y=t.next())n.add(y.value.initDataType);m.initDataType=h.initData[0].initDataType}h.distinctiveIdentifierRequired&&
140
- (m.distinctiveIdentifier="required");h.persistentStateRequired&&(m.persistentState="required");h.sessionType&&(m.sessionTypes=[h.sessionType]);d&&(m.audio?m.audio.robustness=m.audio.robustness||h.audioRobustness:m.audio={robustness:h.audioRobustness});e&&(m.video?m.video.robustness=m.video.robustness||h.videoRobustness:m.video={robustness:h.videoRobustness})}l.keySystemConfiguration=m;a.push(l)}return a}function ie(a){return Wc()?"ac-3"==a.toLowerCase()?"ec-3":a:a}
141
- function he(a){if(a.includes("avc1")){var b=a.split(".");if(3==b.length)return a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4)}else if("vp9"==a)return"vp09.00.41.08";return a}function de(a,b){b.variants=b.variants.filter(function(c){var d=c.audio;c=c.video;return d&&a&&a.audio&&!le(d,a.audio)||c&&a&&a.video&&!le(c,a.video)?!1:!0})}function ee(a){a.textStreams=a.textStreams.filter(function(b){return Cd(wd(b.mimeType,b.codecs))})}
142
- function fe(a){var b,c,d,e,f,g,h,k;return K(function(l){switch(l.g){case 1:b=[],c=r(a.imageStreams),d=c.next();case 2:if(d.done){l.D(4);break}e=d.value;f=e.mimeType;if(me.has(f)){l.D(5);break}g=ne.get(f);if(!g){me.set(f,!1);l.D(5);break}return A(l,oe(g),7);case 7:h=l.h,me.set(f,h);case 5:(k=me.get(f))&&b.push(e);d=c.next();l.D(2);break;case 4:a.imageStreams=b,B(l)}})}
140
+ (m.distinctiveIdentifier="required");h.persistentStateRequired&&(m.persistentState="required");h.sessionType&&(m.sessionTypes=[h.sessionType]);d&&(""!=h.audioRobustness?m.audio?m.audio.robustness=m.audio.robustness||h.audioRobustness:m.audio={robustness:h.audioRobustness}:m.audio||(m.audio={}));e&&(""!=h.videoRobustness?m.video?m.video.robustness=m.video.robustness||h.videoRobustness:m.video={robustness:h.videoRobustness}:m.video||(m.video={}))}l.keySystemConfiguration=m;a.push(l)}return a}
141
+ function ie(a){return Wc()?"ac-3"==a.toLowerCase()?"ec-3":a:a}function he(a){if(a.includes("avc1")){var b=a.split(".");if(3==b.length)return a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4)}else if("vp9"==a)return"vp09.00.41.08";return a}function de(a,b){b.variants=b.variants.filter(function(c){var d=c.audio;c=c.video;return d&&a&&a.audio&&!le(d,a.audio)||c&&a&&a.video&&!le(c,a.video)?!1:!0})}
142
+ function ee(a){a.textStreams=a.textStreams.filter(function(b){return Cd(wd(b.mimeType,b.codecs))})}function fe(a){var b,c,d,e,f,g,h,k;return K(function(l){switch(l.g){case 1:b=[],c=r(a.imageStreams),d=c.next();case 2:if(d.done){l.D(4);break}e=d.value;f=e.mimeType;if(me.has(f)){l.D(5);break}g=ne.get(f);if(!g){me.set(f,!1);l.D(5);break}return A(l,oe(g),7);case 7:h=l.h,me.set(f,h);case 5:(k=me.get(f))&&b.push(e);d=c.next();l.D(2);break;case 4:a.imageStreams=b,B(l)}})}
143
143
  function oe(a){return new Promise(function(b){var c=new Image;c.src=a;"decode"in c?c.decode().then(function(){b(!0)}).catch(function(){b(!1)}):c.onload=c.onerror=function(){b(2===c.height)}})}function le(a,b){return a.mimeType!=b.mimeType||a.codecs.split(".")[0]!=b.codecs.split(".")[0]?!1:!0}
144
144
  function pe(a){var b=a.audio,c=a.video,d=b?b.mimeType:null,e=c?c.mimeType:null,f=b?b.codecs:null,g=c?c.codecs:null,h=[];g&&h.push(g);f&&h.push(f);var k=[];c&&k.push(c.mimeType);b&&k.push(b.mimeType);k=k[0]||null;var l=[];b&&l.push(b.kind);c&&l.push(c.kind);l=l[0]||null;var m=new Set;if(b)for(var p=r(b.roles),n=p.next();!n.done;n=p.next())m.add(n.value);if(c)for(p=r(c.roles),n=p.next();!n.done;n=p.next())m.add(n.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,
145
145
  kind:l,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:k,audioMimeType:d,videoMimeType:e,codecs:h.join(", "),audioCodec:f,videoCodec:g,primary:a.primary,roles:Array.from(m),audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null};c&&(a.videoId=c.id,a.originalVideoId=c.originalId,
@@ -197,18 +197,18 @@ function dg(a){return a.nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION
197
197
  function gg(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}
198
198
  function hg(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 ig(a){a=Number(a);return 0===a%1?a:null}function jg(a){a=Number(a);return 0===a%1&&0<a?a:null}function kg(a){a=Number(a);return 0===a%1&&0<=a?a:null}function lg(a){a=Number(a);return isNaN(a)?null:a}function mg(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}
199
199
  function ng(a,b){var c=new DOMParser,d=og.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 pg(a,b){try{var c=dd(a);return ng(c,b)}catch(d){return null}}
200
- var og=new Mc(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 qg(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.I=new Set;this.l=this.C=null;this.ba=this.$=!1;this.J=0;this.g=null;this.B=new Af;this.i=new Map;this.F=[];this.A=new Lc;this.h=null;this.m=function(d){c.A.reject(d);a.onError(d)};this.ea=new Map;this.va=new Map;this.T=new Q(function(){return rg(c)});this.N=!1;this.K=[];this.P=!1;this.aa=(new Q(function(){ug(c)})).ka(b);this.A.catch(function(){});this.j=new yf(function(){return vg(c)});this.Z=!1;this.H=null}q=qg.prototype;q.destroy=function(){return this.j.destroy()};
201
- function vg(a){return K(function(b){switch(b.g){case 1:return a.B.release(),a.B=null,a.A.reject(),a.aa.stop(),a.aa=null,a.T.stop(),a.T=null,A(b,wg(a),2);case 2:if(!a.l){b.D(3);break}E(b,4);return A(b,a.l.setMediaKeys(null),6);case 6:va(b,5);break;case 4:J(b);case 5:a.l=null;case 3:a.g=null,a.I.clear(),a.C=null,a.F=[],a.h=null,a.m=function(){},a.G=null,a.Z=!1,a.H=null,B(b)}})}q.configure=function(a){this.h=a};function xg(a,b,c){a.ba=!0;a.F=[];a.N=c;return yg(a,b)}
200
+ var og=new Mc(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 qg(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.I=new Set;this.l=this.C=null;this.ba=this.$=!1;this.J=0;this.g=null;this.B=new Af;this.i=new Map;this.F=[];this.A=new Lc;this.h=null;this.m=function(d){c.A.reject(d);a.onError(d)};this.ea=new Map;this.aa=new Map;this.T=new Q(function(){return rg(c)});this.N=!1;this.K=[];this.P=!1;this.va=(new Q(function(){ug(c)})).ka(b);this.A.catch(function(){});this.j=new yf(function(){return vg(c)});this.Z=!1;this.H=null}q=qg.prototype;q.destroy=function(){return this.j.destroy()};
201
+ function vg(a){return K(function(b){switch(b.g){case 1:return a.B.release(),a.B=null,a.A.reject(),a.va.stop(),a.va=null,a.T.stop(),a.T=null,A(b,wg(a),2);case 2:if(!a.l){b.D(3);break}E(b,4);return A(b,a.l.setMediaKeys(null),6);case 6:va(b,5);break;case 4:J(b);case 5:a.l=null;case 3:a.g=null,a.I.clear(),a.C=null,a.F=[],a.h=null,a.m=function(){},a.G=null,a.Z=!1,a.H=null,B(b)}})}q.configure=function(a){this.h=a};function xg(a,b,c){a.ba=!0;a.F=[];a.N=c;return yg(a,b)}
202
202
  function zg(a,b,c){a.F=c;a.N=0<c.length;return yg(a,b)}function Ag(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 Bg(a,g,[])}
203
203
  function yg(a,b){var c,d,e,f,g,h,k,l,m,p,n,t,y,x;return K(function(v){if(1==v.g){if(c=Cg(a))for(d=r(b),e=d.next();!e.done;e=d.next())f=e.value,f.video&&(f.video.drmInfos=[c]),f.audio&&(f.audio.drmInfos=[c]);g=b.some(function(w){return w.video&&w.video.drmInfos.length||w.audio&&w.audio.drmInfos.length?!0:!1});g||(h=Ff(a.h.servers),Dg(b,h));k=r(b);for(e=k.next();!e.done;e=k.next())for(l=e.value,m=Eg(l),p=r(m),n=p.next();!n.done;n=p.next())t=n.value,Fg(t,Ff(a.h.servers),Ff(a.h.advanced||{}),a.h.keySystemsMapping);
204
204
  return A(v,ge(b,a.N,a.Z),2)}y=g||Object.keys(a.h.servers).length;if(!y)return a.$=!0,v.return(Promise.resolve());x=Bg(a,void 0,b);return v.return(g?x:x.catch(function(){}))})}function Gg(a){var b;return K(function(c){switch(c.g){case 1:if(a.l.mediaKeys)return c.return();if(!a.H){c.D(2);break}return A(c,a.H,3);case 3:return zf(a.j),c.return();case 2:return E(c,4),a.H=a.l.setMediaKeys(a.C),A(c,a.H,6);case 6:va(c,5);break;case 4:b=J(c),a.m(new P(2,6,6003,b.message));case 5:zf(a.j),B(c)}})}
205
205
  function Hg(a,b){return K(function(c){if(1==c.g)return A(c,Gg(a),2);Ig(a,b.initDataType,Ec(b.initData));B(c)})}
206
- q.Cc=function(a){var b=this,c;return K(function(d){if(1==d.g){if(!b.C)return b.B.Fa(a,"encrypted",function(){b.m(new P(2,6,6010))}),d.return();b.l=a;b.B.Fa(b.l,"play",function(){for(var e=r(b.K),f=e.next();!f.done;f=e.next())Jg(b,f.value);b.P=!0;b.K=[]});"webkitCurrentPlaybackTargetIsWireless"in b.l&&b.B.o(b.l,"webkitcurrentplaybacktargetiswirelesschanged",function(){return wg(b)});return(c=b.g.initData.find(function(e){return 0<e.initData.length}))||"com.apple.fps"!==b.g.keySystem||b.F.length?A(d,
207
- Gg(b),2):d.D(2)}Kg(b);c||b.F.length||b.h.parseInbandPsshEnabled||b.B.o(b.l,"encrypted",function(e){return Hg(b,e)});B(d)})};
206
+ q.Cc=function(a){var b=this,c;return K(function(d){if(1==d.g){if(!b.C)return b.B.Fa(a,"encrypted",function(){b.m(new P(2,6,6010))}),d.return();b.l=a;b.B.Fa(b.l,"play",function(){for(var e=r(b.K),f=e.next();!f.done;f=e.next())Jg(b,f.value);b.P=!0;b.K=[]});"webkitCurrentPlaybackTargetIsWireless"in b.l&&b.B.o(b.l,"webkitcurrentplaybacktargetiswirelesschanged",function(){return wg(b)});return(c=b.g?b.g.initData.find(function(e){return 0<e.initData.length}):null)||"com.apple.fps"!==b.g.keySystem||b.F.length?
207
+ A(d,Gg(b),2):d.D(2)}Kg(b);c||b.F.length||b.h.parseInbandPsshEnabled||b.B.o(b.l,"encrypted",function(e){return Hg(b,e)});B(d)})};
208
208
  function Lg(a){var b,c,d,e,f;return K(function(g){switch(g.g){case 1:if(!a.C||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.D(2);break}b=rf([a.g.serverCertificateUri],a.h.retryParameters);E(g,3);c=a.G.Pb.request(5,b);return A(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=Ec(d.data);va(g,4);break;case 3:throw e=J(g),new P(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();
209
209
  E(g,6);return A(g,a.C.setServerCertificate(a.g.serverCertificate),8);case 8:va(g,0);break;case 6:throw f=J(g),new P(2,6,6004,f.message);}})}function Mg(a,b){var c,d,e;return K(function(f){if(1==f.g)return A(f,Ng(a,b),2);if(3!=f.g){c=f.h;if(!c)return f.return();d=[];if(e=a.i.get(c))e.eb=new Lc,d.push(e.eb);d.push(c.remove());return A(f,Promise.all(d),3)}a.i.delete(c);B(f)})}
210
210
  function Kg(a){for(var b=(a.g?a.g.initData:[])||[],c=r(b),d=c.next();!d.done;d=c.next())d=d.value,Ig(a,d.initDataType,d.initData);c=r(a.F);for(d=c.next();!d.done;d=c.next())Ng(a,d.value);b.length||a.F.length||a.A.resolve();return a.A}function Ig(a,b,c){if(c.length){var d=a.i.values();d=r(d);for(var e=d.next();!e.done;e=d.next())if(Cc(c,e.value.initData)&&!Sc("Tizen 2"))return;0<a.i.size&&Og(a)&&(a.A.resolve(),a.A=new Lc,a.A.catch(function(){}));Pg(a,b,c,a.g.sessionType)}}
211
- function Qg(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function Rg(a){a=a.i.keys();a=gb(a,function(b){return b.sessionId});return Array.from(a)}q.Hc=function(){var a=Infinity,b=this.i.keys();b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};q.pd=function(){return Gf(this.va)};
211
+ function Qg(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function Rg(a){a=a.i.keys();a=gb(a,function(b){return b.sessionId});return Array.from(a)}q.Hc=function(){var a=Infinity,b=this.i.keys();b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};q.pd=function(){return Gf(this.aa)};
212
212
  function Bg(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,y,x;return K(function(v){switch(v.g){case 1:d=new Map;if(c.length){e=Sg(a,c,d);v.D(2);break}return A(v,Tg(a,b),3);case 3:e=v.h;case 2:f=e;if(!f)throw new P(2,6,6001);zf(a.j);E(v,4);a.I.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=r(h);for(m=l.next();!m.done;m=l.next())p=m.value,a.I.add(p.contentType.toLowerCase());n=r(k);for(m=n.next();!m.done;m=n.next())t=m.value,a.I.add(t.contentType.toLowerCase());if(c.length){var w=
213
213
  f.keySystem;var C=d.get(f.keySystem);var z=[],D=[],G=[],F=[],H=new Set;Ug(C,z,G,D,F,H);var I=a.N?"persistent-license":"temporary";w={keySystem:w,licenseServerUri:z[0],distinctiveIdentifierRequired:C[0].distinctiveIdentifierRequired,persistentStateRequired:C[0].persistentStateRequired,sessionType:C[0].sessionType||I,audioRobustness:C[0].audioRobustness||"",videoRobustness:C[0].videoRobustness||"",serverCertificate:G[0],serverCertificateUri:D[0],initData:F,keyIds:H};C=r(C);for(z=C.next();!z.done;z=
214
214
  C.next())z=z.value,z.distinctiveIdentifierRequired&&(w.distinctiveIdentifierRequired=z.distinctiveIdentifierRequired),z.persistentStateRequired&&(w.persistentStateRequired=z.persistentStateRequired);C=w}else C=f.keySystem,w=b.get(f.keySystem),z=[],D=[],G=[],F=[],H=new Set,Ug(w.drmInfos,z,G,D,F,H),C={keySystem:C,licenseServerUri:z[0],distinctiveIdentifierRequired:"required"==w.distinctiveIdentifier,persistentStateRequired:"required"==w.persistentState,sessionType:w.sessionTypes[0]||"temporary",audioRobustness:(w.audioCapabilities?
@@ -228,7 +228,7 @@ Qg(a.g.keySystem)&&Wg(g),h=Date.now(),E(v,2),l=a.G.Pb.request(2,g),A(v,l.promise
228
228
  d&&(d.eb&&d.eb.resolve(),x=new Q(function(){d.loaded=!0;Og(a)&&a.A.resolve()}),x.S(Xg));B(v)}})}
229
229
  function Wg(a){var b=ed(a.body,!0,!0);if(b.includes("PlayReadyKeyMessage")){b=ng(b,"PlayReadyKeyMessage");for(var c=r(b.getElementsByTagName("HttpHeader")),d=c.next();!d.done;d=c.next())d=d.value,a.headers[d.getElementsByTagName("name")[0].textContent]=d.getElementsByTagName("value")[0].textContent;a.body=md(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"}
230
230
  function Vg(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(Qg(a.g.keySystem)&&16==g.byteLength&&(navigator.userAgent.match(/Edge?\//)||Zc())){h=Hc(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=od(g).slice(0,32);a.ea.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.eb&&(a.i.delete(b),
231
- b.close().catch(function(){}));Og(a)&&(a.A.resolve(),a.T.S(Yg))}function rg(a){var b=a.ea,c=a.va;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 P(2,6,6014));a.G.Bd(Gf(c))}
231
+ b.close().catch(function(){}));Og(a)&&(a.A.resolve(),a.T.S(Yg))}function rg(a){var b=a.ea,c=a.aa;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 P(2,6,6014));a.G.Bd(Gf(c))}
232
232
  function Zg(){var a,b,c,d,e,f,g,h;return K(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,
233
233
  n;return K(function(t){switch(t.g){case 1:E(t,2);if("org.w3.clearkey"===l&&$c())throw Error("Unsupported keySystem");return A(t,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=t.h,n=(p=m.getConfiguration().sessionTypes)?p.includes("persistent-license"):!1,Sc("Tizen 3")&&(n=!1),f.set(l,{persistentState:n}),A(t,m.createMediaKeys(),5);case 5:va(t,0);break;case 2:J(t),f.set(l,null),B(t)}})},h=a.map(function(l){return g(l)}),A(k,Promise.all(h),2)):k.return(Gf(f))})}
234
234
  function $g(a){var b;return K(function(c){if(1==c.g)return b=new Promise(function(d,e){(new Q(e)).S(ah)}),E(c,2),A(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return va(c,0);J(c);B(c)})}
@@ -266,7 +266,7 @@ f-1),uh(b,b.g,15-b.g),c.j=a);break;case 46:uh(c.l,0,15);break;case 47:b=null,c.h
266
266
  function ni(a,b){var c=[];try{for(;b.Da();){var d=ai(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=ai(b).value&63);if(0!=e){a.j.has(e)||a.j.set(e,new bi(e));for(var g=a.j.get(e),h=b.oa();b.oa()-h<f;){e=b;var k=ai(e),l=k.value,m=k.pts;if(16===l){var p=ai(e);l=l<<16|p.value}if(0<=l&&31>=l){var n=m;if(g.g){var t=g.g;e=null;switch(l){case 8:!Uh(t)||0>=t.g&&0>=t.h||(0>=t.g?(t.g=t.F-1,t.h--):t.g--,t.i[t.h][t.g]=null);break;case 13:t.isVisible()&&(e=Vh(t,n,g.i));if(t.h+1>=t.H){n=t;for(var y=0,x=1;16>x;x++,
267
267
  y++)n.i[y]=n.i[x];for(x=0;1>x;x++,y++)n.i[y]=Sh()}else t.h++;t.g=0;break;case 14:t.isVisible()&&(e=Vh(t,n,g.i));t.i[t.h]=Sh();t.g=0;break;case 12:t.isVisible()&&(e=Vh(t,n,g.i)),Rh(t),n=t,n.h=0,n.g=0}var v=e}else v=null}else if(128<=l&&159>=l)v=ci(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?Th(g.g,"\u266a"):Th(g.g,
268
268
  String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&Th(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(ii.has(e)){var w=ii.get(e);Th(g.g,w)}else Th(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?Th(g.g,"_"):Th(g.g,"[CC]"));v=null}(e=v)&&c.push(e)}}}}catch(C){if(C instanceof P&&3E3===C.code)Wa("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw C;}return c}function oi(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function pi(a,b){var c=null,d=null,e=a.R();b&1&&a.skip(8);b&2&&a.skip(4);b&8&&(c=a.R());b&16&&(d=a.R());return{trackId:e,tf:c,kg:d}}function qi(a,b){return{gf:1==b?a.qc():a.R()}}function ri(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.R()}}
269
- function si(a,b,c){var d=a.R(),e=[];c&1&&a.skip(4);c&4&&a.skip(4);for(var f=0;f<d;f++){var g={Be:null,sampleSize:null,Hd:null};c&256&&(g.Be=a.R());c&512&&(g.sampleSize=a.R());c&1024&&a.skip(4);c&2048&&(g.Hd=0==b?a.R():a.Jf());e.push(g)}return{gj:d,Lf:e}};function ti(){this.i=new Map;this.h=this.g=0}
269
+ function si(a,b,c){var d=a.R(),e=[];c&1&&a.skip(4);c&4&&a.skip(4);for(var f=0;f<d;f++){var g={Be:null,sampleSize:null,Hd:null};c&256&&(g.Be=a.R());c&512&&(g.sampleSize=a.R());c&1024&&a.skip(4);c&2048&&(g.Hd=0==b?a.R():a.Jf());e.push(g)}return{ej:d,Lf:e}};function ti(){this.i=new Map;this.h=this.g=0}
270
270
  ti.prototype.init=function(a){var b=this,c=[],d=[];(new Lf).box("moov",Pf).box("mvex",Pf).X("trex",function(e){var f=e.reader;f.skip(4);f.skip(4);e=f.R();f=f.R();b.g=e;b.h=f}).box("trak",Pf).X("tkhd",function(e){var f=e.reader;1==e.version?(f.skip(8),f.skip(8)):(f.skip(4),f.skip(4));e=f.R();c.push(e)}).box("mdia",Pf).X("mdhd",function(e){e=ri(e.reader,e.version);d.push(e.timescale)}).parse(a,!0);if(!c.length||!d.length||c.length!=d.length)throw new P(2,2,2010);c.forEach(function(e,f){b.i.set(e,d[f])})};
271
271
  ti.prototype.parse=function(a){var b=this,c=[],d=this.g,e=this.h,f=[],g=null,h=9E4;(new Lf).box("moof",Pf).box("traf",Pf).X("trun",function(k){f=si(k.reader,k.version,k.flags).Lf}).X("tfhd",function(k){k=pi(k.reader,k.flags);d=k.tf||b.g;e=k.kg||b.h;k=k.trackId;b.i.has(k)&&(h=b.i.get(k))}).X("tfdt",function(k){g=qi(k.reader,k.version).gf}).box("mdat",function(k){if(null===g)throw new P(2,2,2010);k=k.reader;var l=g,m=h,p=d,n=e,t=f,y=0,x=n;for(t.length&&(x=t[0].sampleSize||n);k.Da();){var v=k.R();if(6==
272
272
  (k.rb()&31)){var w=0;t.length>y&&(w=t[y].Hd||0);w=(l+w)/m;for(var C=[],z,D=k.Cb(v-1),G=z=0;G<D.length;)2==z&&3==D[G]?(z=0,D=[].concat(ja(D)),D.splice(G,1),D=new Uint8Array(D)):0==D[G]?z++:z=0,G++;z=D;for(G=0;G<z.length;){for(D=0;255==z[G];)D+=255,G++;D+=z[G++];for(var F=0;255==z[G];)F+=255,G++;F+=z[G++];4==D&&C.push(z.subarray(G,G+F));G+=F}C=r(C);for(z=C.next();!z.done;z=C.next())c.push({eh:z.value,pts:w})}else try{k.skip(v-1)}catch(H){break}x-=v+4;0==x&&(l=t.length>y?l+(t[y].Be||p):l+p,y++,x=t.length>
@@ -276,7 +276,7 @@ function vi(a,b){b=a.h.parse(b);b=r(b);for(var c=b.next();!c.done;c=b.next()){va
276
276
  function yi(a,b,c,d,e,f,g,h,k,l,m,p,n,t,y){l=void 0===l?[]:l;t=void 0===t?zi:t;this.startTime=a;this.j=this.endTime=b;this.B=c;this.Va=d;this.Ca=e;this.i=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.h=l;this.tilesLayout=void 0===m?"":m;this.A=void 0===p?null:p;this.g=void 0===n?null:n;this.status=t;this.l=void 0===y?null:y;this.m=0}q=yi.prototype;q.Ra=function(){return this.B()};q.getStartTime=function(){return this.startTime};q.xg=function(){return this.endTime};
277
277
  q.Kc=function(){return this.Va};q.Gc=function(){return this.Ca};q.Pg=function(){return this.tilesLayout};q.Og=function(){return this.A};q.fc=function(){return this.status};q.Yg=function(){this.status=Ai};q.offset=function(a){this.startTime+=a;this.endTime+=a;this.j+=a;for(var b=r(this.h),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.j+=a};q.Qe=function(a){null==this.g?Ta("Sync attempted without sync time!"):(a=this.g-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};
278
278
  M("shaka.media.SegmentReference",yi);yi.prototype.syncAgainst=yi.prototype.Qe;yi.prototype.offset=yi.prototype.offset;yi.prototype.markAsUnavailable=yi.prototype.Yg;yi.prototype.getStatus=yi.prototype.fc;yi.prototype.getTileDuration=yi.prototype.Og;yi.prototype.getTilesLayout=yi.prototype.Pg;yi.prototype.getEndByte=yi.prototype.Gc;yi.prototype.getStartByte=yi.prototype.Kc;yi.prototype.getEndTime=yi.prototype.xg;yi.prototype.getStartTime=yi.prototype.getStartTime;yi.prototype.getUris=yi.prototype.Ra;
279
- var zi=0,Ai=1;yi.Status={Jh:zi,Xi:Ai,ki:2};function Bi(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:1==a.length&&0>a.start(0)?0:a.length?a.start(0):null}function Ci(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Di(a,b){return!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0)||b>a.end(a.length-1)?!1:b>=a.start(0)}
279
+ var zi=0,Ai=1;yi.Status={Jh:zi,Vi:Ai,ii:2};function Bi(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:1==a.length&&0>a.start(0)?0:a.length?a.start(0):null}function Ci(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Di(a,b){return!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0)||b>a.end(a.length-1)?!1:b>=a.start(0)}
280
280
  function Ei(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;var c=0;a=r(Fi(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;e>b&&(c+=e-Math.max(d,b))}return c}function Gi(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=Fi(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}
281
281
  function Fi(a){if(!a)return[];for(var b=[],c=0;c<a.length;c++)b.push({start:a.start(c),end:a.end(c)});return b};function Hi(a,b,c,d){var e=this;this.j=a;this.m=c;this.h={};this.N={};this.K={};this.g=null;this.H=!1;this.T=d||function(){};this.i={};this.B=new Af;this.A={};this.F=b;this.I=new Lc;this.l=Ii(this,this.I);this.G=new yf(function(){return Ji(e)});this.J="";this.C=!1;this.P=new Lc}function Ii(a,b){var c=new MediaSource;a.B.Fa(c,"sourceopen",function(){URL.revokeObjectURL(a.J);b.resolve()});a.J=Ki(c);a.j.src=a.J;return c}q=Hi.prototype;q.destroy=function(){return this.G.destroy()};
282
282
  function Ji(a){var b,c,d,e,f,g,h,k;return K(function(l){if(1==l.g){b=[];for(c in a.i)for(d=a.i[c],e=d[0],a.i[c]=d.slice(0,1),e&&b.push(e.p.catch(Ab)),f=r(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new P(2,7,7003,void 0));a.g&&b.push(a.g.destroy());a.m&&b.push(a.m.destroy());for(k in a.A)b.push(a.A[k].destroy());return A(l,Promise.all(b),2)}a.B&&(a.B.release(),a.B=null);a.j&&(a.j.removeAttribute("src"),a.j.load(),a.j=null);a.l=null;a.g=null;a.m=null;a.h={};a.A={};a.F=null;a.i={};
@@ -301,7 +301,7 @@ R.prototype.setUserSeekStart=R.prototype.Qf;R.prototype.getSegmentAvailabilitySt
301
301
  R.prototype.setSegmentAvailabilityDuration=R.prototype.Me;R.prototype.setStatic=R.prototype.Zc;R.prototype.setClockOffset=R.prototype.Nf;R.prototype.getPresentationStartTime=R.prototype.Jg;R.prototype.setDuration=R.prototype.Ua;R.prototype.getMaxSegmentDuration=R.prototype.Fg;R.prototype.getDuration=R.prototype.getDuration;function hj(a,b,c){this.l=c;this.j=a;this.B=ij(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.A=0;this.C=b;this.i=function(){}}hj.prototype.release=function(){this.l=this.j=null;this.i=function(){}};function jj(a,b){a.i=b}function kj(a){this.g=a}function ij(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=r(Fi(a.g.buffered));for(var c=a.next();!c.done;c=a.next())if(c=c.value,!(b<c.start-.1||b>c.end-.5)){b=!0;break a}b=!1}return b};function lj(a,b,c,d,e){var f=this;this.A=e;this.g=a;this.B=b;this.G=c;this.i=new Af;this.m=!1;this.F=a.readyState;this.C=0;this.h=d;this.l=!1;this.i.o(a,"waiting",function(){return mj(f)});this.j=(new Q(function(){mj(f)})).ka(.25)}lj.prototype.release=function(){this.i&&(this.i.release(),this.i=null);null!=this.j&&(this.j.stop(),this.j=null);this.h&&(this.h.release(),this.h=null);this.g=this.B=this.A=null};lj.prototype.ve=function(){this.l=!0;mj(this)};
302
302
  function mj(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.m)return}else a.m=!1;if(!a.g.paused||0==a.g.currentTime&&(a.g.autoplay||0!=a.g.currentTime)){a.g.readyState!=a.F&&(a.F=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.j,d=ij(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.B!=d)b.m=f,b.g=e,b.B=d,b.h=!1;e=f-b.m;if(d=e>=b.C&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.A++,b.l(new O("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Gi(c,b,a.G.gapDetectionThreshold),null==
303
303
  d||0==d&&!a.l||(e=c.start(d),e>=a.B.ob()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,a.C++,a.A(new O("gapjumped")))))}}};function nj(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=oj.value().get(b),c.Fa(a,b,d))}var oj=new Mc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function pj(a,b,c){var d=this;this.g=a;this.l=b;this.j=c;this.m=!1;this.h=new Af;this.i=new qj(a);nj(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){rj(d,d.j)})}pj.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 sj(a){return a.m?a.g.currentTime:a.j}function tj(a,b){0<a.g.readyState?uj(a.i,b):nj(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){rj(a,a.j)})}
304
- function rj(a,b){.001>Math.abs(a.g.currentTime-b)?vj(a):(a.h.Fa(a.g,"seeking",function(){vj(a)}),uj(a.i,0==a.g.currentTime?b:a.g.currentTime))}function vj(a){a.m=!0;a.h.o(a.g,"seeking",function(){return a.l()})}function qj(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new Q(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}qj.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};
304
+ function rj(a,b){.001>Math.abs(a.g.currentTime-b)?vj(a):(a.h.Fa(a.g,"seeking",function(){vj(a)}),uj(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function vj(a){a.m=!0;a.h.o(a.g,"seeking",function(){return a.l()})}function qj(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new Q(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}qj.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};
305
305
  function uj(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.ka(.1)};function wj(a){this.g=a;this.j=!1;this.h=null;this.i=new Af}q=wj.prototype;q.be=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.Fa(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;nj(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};q.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};q.ce=function(a){this.h=this.j?this.h:a};q.gd=function(){return(this.j?this.g.currentTime:this.h)||0};q.cf=function(){return 0};
306
306
  q.bf=function(){return 0};q.Hf=function(){};
307
307
  function xj(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.F=b.minBufferTime||0;this.l=c;this.C=e;this.B=null;this.A=yj(a,c,f);this.j=new lj(a,b.presentationTimeline,c,this.A,f);this.h=new pj(a,function(){a:{var h=g.j;h.m=!0;h.l=!1;var k=sj(g.h);h=zj(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.B||g.B<k-1)){g.B=k;tj(g.h,h);h=void 0;break a}g.C();h=void 0}return h},Aj(this,d));this.m=new Q(function(){if(0!=g.i.readyState&&!g.i.paused){var h=sj(g.h),k=g.g.ec(),l=g.g.ob();3>
@@ -349,7 +349,7 @@ f,e,g,h,k),4);case 4:zf(a.h),B(l)}})}function yk(a,b,c){var d,e,f,g;return K(fun
349
349
  function vk(a,b,c,d){var e,f,g,h,k;return K(function(l){if(1==l.g)return e=xf,f=Vj(c.Ra(),c.Va,c.Ca,a.j.retryParameters,d),g=b.stream,a.g.modifySegmentRequest(f,{type:g.type,init:c instanceof wi,duration:c.endTime-c.startTime,mimeType:g.mimeType,codecs:g.codecs,bandwidth:g.bandwidth}),h=a.g.Pb.request(e,f),b.Ma=h,A(l,h.promise,2);k=l.h;b.Ma=null;return l.return(k.data)})}
350
350
  function jk(a,b,c,d){var e,f;return K(function(g){if(1==g.g)return b.Eb=!1,b.Md=!1,b.ld=0,b.Dc=!0,b.Ia=null,b.ud=null,b.sa=null,d?(e=a.g.qd(),f=a.g.V.getDuration(),A(g,a.g.V.remove(b.type,e+d,f),3)):A(g,aj(a.g.V,b.type),4);if(3!=g.g)return zf(a.h),c?A(g,a.g.V.flush(b.type),3):g.D(3);zf(a.h);b.Dc=!1;b.endOfStream=!1;b.Ja||b.fb||dk(a,b,0);B(g)})}
351
351
  function dk(a,b,c){var d=b.type;if(d!=Ib||a.i.has(d))b.fb=(new Nc(function(){var e;return K(function(f){if(1==f.g)return E(f,2),A(f,mk(a,b),4);if(2!=f.g)return va(f,0);e=J(f);if(a.g)a.g.onError(e);B(f)})})).S(c)}function Yj(a){null!=a.fb&&(a.fb.stop(),a.fb=null)}function Zj(a){return K(function(b){return a.Ma?A(b,a.Ma.abort(),0):b.D(0)})}function ok(a,b){return K(function(c){if(1==c.g)return A(c,af(a.G),2);zf(a.h);a.g.onError(b);b.handled||a.j.failureCallback(b);B(c)})};function zk(a,b){var c=Ak(),d=this;this.j=b;this.i=a;this.l=c;this.A=null;this.m=[];this.h=this.g=null;this.C=Promise.resolve().then(function(){return Bk(d)});this.B=new yf(function(){return Ck(d)})}zk.prototype.destroy=function(){return this.B.destroy()};function Ck(a){var b,c,d;return K(function(e){if(1==e.g)return a.h&&a.h.abort(),Dk(a),A(e,a.C,2);a.g&&a.g.cb.Rb();b=r(a.m);for(c=b.next();!c.done;c=b.next())d=c.value,d.cb.Rb();a.g=null;a.m=[];a.j=null;B(e)})}
352
- function Ek(a,b){var c={nc:function(){},zd:function(){},Rb:function(){},onError:function(){},Cd:function(){},fj:function(){}};a.m.push({create:b,cb:c});a.h&&a.h.abort();Dk(a);return c}
352
+ function Ek(a,b){var c={nc:function(){},zd:function(){},Rb:function(){},onError:function(){},Cd:function(){},dj:function(){}};a.m.push({create:b,cb:c});a.h&&a.h.abort();Dk(a);return c}
353
353
  function Bk(a){return K(function(b){if(a.B.g)b=b.D(0);else{if(0==a.m.length||a.g&&!a.g.Kb)var c=!1;else{a.g&&(a.g.cb.Rb(),a.g=null);c=a.m.shift();var d=c.create(a.l);d?(c.cb.nc(),a.g={node:d.node,payload:d.payload,Kb:d.Kb,cb:c.cb}):c.cb.Cd();c=!0}c?c=Promise.resolve():a.g?c=Fk(a):(a.j.ah(a.i),a.A=new Lc,c=a.A);b=A(b,c,1)}return b})}
354
354
  function Fk(a){var b,c;return K(function(d){switch(d.g){case 1:return a.i=a.j.Hg(a.i,a.l,a.g.node,a.g.payload),E(d,2),a.h=a.j.lg(a.i,a.l,a.g.payload),A(d,a.h.promise,4);case 4:a.h=null;a.i==a.g.node&&(a.g.cb.zd(),a.g=null);va(d,0);break;case 2:b=J(d);if(7001==b.code)a.g.cb.Rb();else a.g.cb.onError(b);a.g=null;a.h=null;c=a;return A(d,a.j.handleError(a.l,b),5);case 5:c.i=d.h,B(d)}})}function Dk(a){a.A&&(a.A.resolve(),a.A=null)};function Gk(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(Gk).join(""):c+a.payload+b}
355
355
  function Hk(a,b){a=r(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.isContainer)Hk(c.nestedCues,b);else{var d=c.clone();d.nestedCues=[];d.payload=Gk(c);b.push(d)}return b};function Ik(a){this.g=null;for(var b=r(Array.from(a.textTracks)),c=b.next();!c.done;c=b.next())c=c.value,c.mode="disabled","Shaka Player TextTrack"==c.label&&(this.g=c);this.g||(this.g=a.addTextTrack("subtitles","Shaka Player TextTrack"));this.g.mode="hidden"}q=Ik.prototype;q.remove=function(a,b){if(!this.g)return!1;Jk(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
@@ -362,7 +362,8 @@ q.remove=function(a,b){if(!this.g)return!1;var c=this.i.length;this.i=this.i.fil
362
362
  function Rk(a,b,c,d,e){var f=!1,g=[],h=[];b=r(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.h.get(k),m=k.startTime<=d&&k.endTime>d,p=l?l.Vf:null;l&&(g.push(l.ee),l.Vc&&g.push(l.Vc),m||(f=!0,a.h.delete(k),l=null));m&&(h.push(k),l?Qk(a,p)||(f=!0):(Sk(a,k,e),l=a.h.get(k),p=l.Vf,f=!0));0<k.nestedCues.length&&p&&Rk(a,k.nestedCues,p,d,e);e.pop()}if(f){d=r(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(n,t){return n.startTime!=
363
363
  t.startTime?n.startTime-t.startTime:n.endTime-t.endTime});h=r(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),d.Vc?(c.appendChild(d.Vc),d.Vc.appendChild(d.ee)):c.appendChild(d.ee)}}function Pk(a,b){if(a.g){var c=a.F.currentTime;if(!a.j||(void 0===b?0:b)){b=r(a.A.values());for(var d=b.next();!d.done;d=b.next())Nk(d.value);Nk(a.g);a.h.clear();a.A.clear()}if(a.j){b=new Map;d=r(a.h.keys());for(var e=d.next();!e.done;e=d.next())e=e.value,b.set(e,a.h.get(e));Rk(a,a.i,a.g,c,[])}}}
364
364
  function Sk(a,b,c){var d=1<c.length,e=d?"span":"div";b.lineBreak&&(e="br");d=!d&&0<b.nestedCues.length;var f=S(e);"br"!=e&&Tk(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==zc?"%":"px")+"-"+c.viewportAnchorX+"x"+c.viewportAnchorY+(c.viewportAnchorUnits==zc?"%":"px"),a.A.has(e))c=a.A.get(e);else{var g=S("span"),h=c.heightUnits==zc?"%":"px",k=c.widthUnits==zc?"%":"px",l=c.viewportAnchorUnits==zc?"%":"px";g.id="shaka-text-region---"+e;g.classList.add("shaka-text-region");
365
- 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.A.set(e,g);c=g}e=f;d&&(e=S("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,f.appendChild(e));a.h.set(b,{ee:f,Vf:e,Vc:c})}
365
+ 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.A.set(e,g);c=g}e=f;d&&(e=S("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.h.set(b,
366
+ {ee:f,Vf:e,Vc:c})}
366
367
  function Tk(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=Uk(c.linePadding,c,a.m);f.paddingRight=Uk(c.linePadding,c,a.m);f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage="url('"+c.backgroundImage+"')",f.backgroundRepeat=
367
368
  "no-repeat",f.backgroundSize="contain",f.backgroundPosition="center",f.width="100%",f.height="100%";else{if(c.nestedCues.length)var l=b;else l=S("span"),b.appendChild(l);c.border&&(l.style.border=c.border);e||((b=Vk(d,function(m){return m.backgroundColor}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"));k&&(l.textContent=k)}h&&!d[d.length-1].isContainer?f.display="inline":(f.display="flex",f.flexDirection="column",f.alignItems="center",f.justifyContent="before"==c.displayAlign?
368
369
  "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=Uk(c.fontSize,c,a.m);null!=c.line&&1==c.lineInterpretation&&(f.position="absolute",c.writingMode==lc?(f.width="100%",c.lineAlign==nc?f.top=c.line+"%":"end"==c.lineAlign&&(f.bottom=100-c.line+"%")):"vertical-lr"==c.writingMode?(f.height="100%",c.lineAlign==nc?f.left=c.line+"%":"end"==c.lineAlign&&
@@ -376,7 +377,7 @@ function al(a){var b=a.type;if(a.init)return ol;if("video"==b)return a.codecs.in
376
377
  function gl(a,b){var c=a.h.Sa();if(!c.length)return NaN;a=c[0];c=r(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case bl:return a.videoBandwidth||NaN;case cl:return a.audioBandwidth||NaN;default:return a.bandwidth}}
377
378
  function ll(a){function b(p){return 100*c(p/100)}function c(p){return Math.round(p)}function d(p){return!Number.isNaN(p)&&null!=p&&""!==p&&!1!==p}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(p){return encodeURIComponent(p)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=r(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h];if(d(k)&&("v"!==h||1!==k)&&("pr"!=h||1!==k)){var l=f[h];l&&(k=l(k));l=typeof k;var m=void 0;m="string"===l&&"ot"!==h&&"sf"!==h&&"st"!==h?h+"="+JSON.stringify(k):"boolean"===
378
379
  l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function nl(a){var b=Object.keys(a),c={},d=["Object","Request","Session","Status"],e=[{},{},{},{}],f={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3};b=r(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[null!=f[g]?f[g]:1][g]=a[g];for(a=0;a<e.length;a++)(f=ll(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
379
- function ml(a,b){if(!b||a.includes("offline:"))return a;a=new lb(a);a.g.set("CMCD",b);return a.toString()}var kl="m",cl="a",bl="v",dl="av",ol="i",pl="c",el="tt",$k="v",Zk="l";M("shaka.util.CmcdManager.StreamingFormat",{Ph:"d",di:"h",Mi:"s",wi:"o"});function ql(){}
380
+ function ml(a,b){if(!b||a.includes("offline:"))return a;a=new lb(a);a.g.set("CMCD",b);return a.toString()}var kl="m",cl="a",bl="v",dl="av",ol="i",pl="c",el="tt",$k="v",Zk="l";M("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",Ki:"s",si:"o"});function ql(){}
380
381
  function rl(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]=jf(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=jf(l)),k=rl(a[h],b[h],l,d,k),g=g&&k):typeof b[h]!=typeof l||null==b[h]||"function"!=typeof b[h]&&b[h].constructor!=l.constructor?(Ta("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&Ua("Unexpected number of arguments for "+k),a[h]=b[h]):(Ta("Invalid config, unrecognized key "+
381
382
  k),g=!1)}return g}function sl(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 tl(a,b){return a&&b}M("shaka.util.ConfigUtils",ql);ql.convertToConfigObject=sl;ql.mergeConfigObjects=rl;function ul(){}function vl(a){a=gd(a);return(new lb(a)).bb}function wl(a,b,c){function d(h){Hc(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Ec(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new P(2,6,6015);var e;"string"==typeof b?e=id(b,!0):e=b;a=gd(a);a=id(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}M("shaka.util.FairPlayUtils",ul);
382
383
  ul.commonFairPlayResponse=function(a,b){if(2===a){try{var c=dd(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=Fc(md(c)))}};ul.conaxFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};ul.ezdrmFairPlayRequest=function(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")};
@@ -393,10 +394,10 @@ preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",prefe
393
394
  sessionId:"",contentId:"",useHeaders:!1}};e.trackSelectionCallback=function(g){return K(function(h){return h.return(zl(g,f.preferredAudioLanguage))})};return f}function Al(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 rl(a,b,c||yl(),d,"")}
394
395
  function zl(a,b){var c=a.filter(function(g){return"variant"==g.type}),d=[],e=Ub(b,c.map(function(g){return g.language}));e&&(d=c.filter(function(g){return Mb(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/
395
396
  2),d.sort(function(g,h){return g.bandwidth-h.bandwidth}),b.push(d[c]));a=r(a);for(d=a.next();!d.done;d=a.next())d=d.value,d.type!=Ib&&"image"!=d.type||b.push(d);return b}M("shaka.util.PlayerConfiguration",xl);xl.mergeConfigObjects=Al;xl.createDefault=yl;function Bl(){this.g=null;this.h=[]}function Cl(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 Dl(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=r(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}
396
- function El(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=r(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Fl(){this.i=this.h=null;this.g=[]}function Gl(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 Hl(){this.C=this.F=this.I=this.G=this.B=this.j=this.H=this.m=this.i=this.P=this.T=this.J=this.K=this.N=this.l=this.A=NaN;this.g=new Bl;this.h=new Fl};function T(a,b){fb.call(this);var c=this;this.l=Il;this.td=this.g=null;this.ba=!1;this.yd=new Af;this.gb=new Af;this.B=new Af;this.we=this.C=this.hb=this.i=this.Fd=this.J=this.j=this.ea=this.T=this.ma=this.N=this.vd=this.I=this.$a=this.F=this.K=this.m=this.H=null;this.Xf=1E9;this.h=Jl(this);this.Lc={width:Infinity,height:Infinity};this.A=null;this.Aa=new Re(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount);this.Oa=this.h.preferredTextLanguage;this.Fc=this.h.preferredTextRole;
397
- this.xb=this.h.preferForcedSubs;this.ib=[];this.Nc=null;b&&b(this);this.H=Kl(this);this.H.Ie(this.h.streaming.forceHTTPS);this.G=null;Ll&&(this.G=Ll());this.yd.o(window,"online",function(){c.ze()});this.P={name:"detach"};this.Z={name:"attach"};this.aa={name:"unload"};this.Ze={name:"manifest-parser"};this.Ye={name:"manifest"};this.Za={name:"media-source"};this.Ae={name:"drm-engine"};this.$={name:"load"};this.$e={name:"src-equals-drm-engine"};this.ab={name:"src-equals"};var d=new Map;d.set(this.Z,function(e,
398
- f){return ff(Ml(c,e,f))});d.set(this.P,function(e){e.O&&(c.gb.Sb(),e.O=null);c.G&&c.G.release();c.g=null;e=Promise.resolve();return ff(e)});d.set(this.aa,function(e){return ff(Nl(c,e))});d.set(this.Za,function(e){e=Ol(c,e);return ff(e)});d.set(this.Ze,function(e,f){e=Pl(c,e,f);return ff(e)});d.set(this.Ye,function(e){return Ql(c,e)});d.set(this.Ae,function(e){e=Rl(c,e);return ff(e)});d.set(this.$,function(e,f){return ff(Sl(c,e,f))});d.set(this.$e,function(e,f){e=Tl(c,e,f);return ff(e)});d.set(this.ab,
399
- function(e,f){return Ul(c,e,f)});this.ua=new zk(this.P,{Hg:function(e,f,g,h){var k=null;e==c.P&&(k=g==c.P?c.P:c.Z);e==c.Z&&(k=g==c.P||f.O!=h.O?c.P:g==c.Z?c.Z:g==c.Za||g==c.$?c.Za:g==c.ab?c.$e:null);e==c.Za&&(k=g==c.$&&f.O==h.O?c.Ze:c.aa);e==c.Ze&&(k=Vl(c.$,c.Ye,c.aa,g,f,h));e==c.Ye&&(k=Vl(c.$,c.Ae,c.aa,g,f,h));e==c.Ae&&(k=Vl(c.$,c.$,c.aa,g,f,h));e==c.$e&&(k=g==c.ab&&f.O==h.O?c.ab:c.aa);if(e==c.$||e==c.ab)k=c.aa;e==c.aa&&(k=h.O&&f.O==h.O?c.Z:c.P);return k},lg:function(e,f,g){c.dispatchEvent(Wl("onstatechange",
397
+ function El(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=r(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Fl(){this.i=this.h=null;this.g=[]}function Gl(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 Hl(){this.C=this.F=this.I=this.G=this.B=this.j=this.H=this.m=this.i=this.P=this.T=this.J=this.K=this.N=this.l=this.A=NaN;this.g=new Bl;this.h=new Fl};function T(a,b){fb.call(this);var c=this;this.l=Il;this.td=this.g=null;this.aa=!1;this.yd=new Af;this.gb=new Af;this.B=new Af;this.we=this.C=this.hb=this.i=this.Fd=this.J=this.j=this.ea=this.T=this.ma=this.N=this.vd=this.I=this.$a=this.F=this.K=this.m=this.H=null;this.Xf=1E9;this.h=Jl(this);this.Lc={width:Infinity,height:Infinity};this.A=null;this.Aa=new Re(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount);this.Oa=this.h.preferredTextLanguage;this.Fc=this.h.preferredTextRole;
398
+ this.xb=this.h.preferForcedSubs;this.ib=[];this.Nc=null;b&&b(this);this.H=Kl(this);this.H.Ie(this.h.streaming.forceHTTPS);this.G=null;Ll&&(this.G=Ll());this.yd.o(window,"online",function(){c.ze()});this.P={name:"detach"};this.Z={name:"attach"};this.ba={name:"unload"};this.Ze={name:"manifest-parser"};this.Ye={name:"manifest"};this.Za={name:"media-source"};this.Ae={name:"drm-engine"};this.$={name:"load"};this.$e={name:"src-equals-drm-engine"};this.ab={name:"src-equals"};var d=new Map;d.set(this.Z,function(e,
399
+ f){return ff(Ml(c,e,f))});d.set(this.P,function(e){e.O&&(c.gb.Sb(),e.O=null);c.G&&c.G.release();c.g=null;e=Promise.resolve();return ff(e)});d.set(this.ba,function(e){return ff(Nl(c,e))});d.set(this.Za,function(e){e=Ol(c,e);return ff(e)});d.set(this.Ze,function(e,f){e=Pl(c,e,f);return ff(e)});d.set(this.Ye,function(e){return Ql(c,e)});d.set(this.Ae,function(e){e=Rl(c,e);return ff(e)});d.set(this.$,function(e,f){return ff(Sl(c,e,f))});d.set(this.$e,function(e,f){e=Tl(c,e,f);return ff(e)});d.set(this.ab,
400
+ function(e,f){return Ul(c,e,f)});this.ua=new zk(this.P,{Hg:function(e,f,g,h){var k=null;e==c.P&&(k=g==c.P?c.P:c.Z);e==c.Z&&(k=g==c.P||f.O!=h.O?c.P:g==c.Z?c.Z:g==c.Za||g==c.$?c.Za:g==c.ab?c.$e:null);e==c.Za&&(k=g==c.$&&f.O==h.O?c.Ze:c.ba);e==c.Ze&&(k=Vl(c.$,c.Ye,c.ba,g,f,h));e==c.Ye&&(k=Vl(c.$,c.Ae,c.ba,g,f,h));e==c.Ae&&(k=Vl(c.$,c.$,c.ba,g,f,h));e==c.$e&&(k=g==c.ab&&f.O==h.O?c.ab:c.ba);if(e==c.$||e==c.ab)k=c.ba;e==c.ba&&(k=h.O&&f.O==h.O?c.Z:c.P);return k},lg:function(e,f,g){c.dispatchEvent(Wl("onstatechange",
400
401
  (new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return K(function(f){return 1==f.g?A(f,Nl(c,e),2):f.return(e.O?c.Z:c.P)})},ah:function(e){c.dispatchEvent(Wl("onstateidle",(new Map).set("state",e.name)))}});this.Wf=new Q(function(){ae(c.i.variants,c.h.restrictions,c.Lc)&&Xl(c)});a&&this.Cc(a,!0)}u(T,fb);function Wl(a,b){return new O(a,b)}q=T.prototype;
401
402
  q.destroy=function(){var a=this,b;return K(function(c){switch(c.g){case 1:if(a.l==Yl)return c.return();a.l=Yl;b=Ek(a.ua,function(){return{node:a.P,payload:Ak(),Kb:!1}});return A(c,new Promise(function(d){b.nc=function(){};b.zd=function(){d()};b.Rb=function(){d()};b.onError=function(){d()};b.Cd=function(){d()}}),2);case 2:return A(c,a.ua.destroy(),3);case 3:a.yd&&(a.yd.release(),a.yd=null);a.gb&&(a.gb.release(),a.gb=null);a.B&&(a.B.release(),a.B=null);a.we=null;a.C=null;a.h=null;a.A=null;a.td=null;
402
403
  a.T=null;if(!a.H){c.D(4);break}return A(c,a.H.destroy(),5);case 5:a.H=null;case 4:fb.prototype.release.call(a),B(c)}})};
@@ -418,15 +419,15 @@ function Rl(a,b){var c,d;return K(function(e){return 1==e.g?(c=Date.now()/1E3,d=
418
419
  function Sl(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,y;return K(function(x){switch(x.g){case 1:b.startTime=c.startTime;null!=a.Nc&&(b.startTime=a.Nc,a.Nc=null);d=b.O;e=b.uri;a.hb=e;a.I=new Hj({rd:function(){return d.playbackRate},od:function(){return d.defaultPlaybackRate},Ke:function(v){d.playbackRate=v},Gf:function(v){d.currentTime+=v}});f=function(){return qm(a)};g=function(){return rm(a)};a.B.o(d,"playing",f);a.B.o(d,"pause",f);a.B.o(d,"ended",f);a.B.o(d,"ratechange",g);h=a.h.abrFactory;a.C&&a.we==h||
419
420
  (a.we=h,a.C=h(),"function"!=typeof a.C.setMediaElement&&(He(),a.C.setMediaElement=function(){}),a.C.configure(a.h.abr));a.Aa=new Re(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount);a.Oa=a.h.preferredTextLanguage;a.Fc=a.h.preferredTextRole;a.xb=a.h.preferForcedSubs;sm(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.C.init(function(v,w,C){a.j&&v!=a.j.l&&tm(a,v,!0,void 0===w?!1:w,void 0===C?0:C)});a.C.setMediaElement(d);a.F=um(a,b.startTime);a.$a=vm(a);
420
421
  k=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);wm(a,k);Nd(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredAudioChannelCount,a.h.preferredDecodingAttributes);a.j=xm(a);a.j.configure(a.h.streaming);a.l=ym;d.textTracks&&a.B.o(d.textTracks,"addtrack",function(v){if(v.track)switch(v=v.track,v.kind){case "chapters":zm(a,v)}});a.dispatchEvent(Wl("streaming"));l=null;if(m=a.Sa().find(function(v){return v.active})){x.D(2);break}l=Xl(a);tm(a,l,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){x.D(3);
421
- break}p=a.F.gd();return A(x,Am(l,p),4);case 4:n=x.h,a.F.ce(n);case 3:Bm(a,null,pe(l));case 2:return a.F.be(),t=a.Ab().find(function(v){return v.active}),t||((y=ze(a.i.textStreams,a.Oa,a.Fc,a.xb)[0]||null)&&Gl(a.A.h,y,!0),l&&(y?(l.audio&&Cm(a,l.audio,y)&&(a.ba=!0),a.ba&&a.K.m.setTextVisibility(!0),Dm(a)):a.ba=!1),y&&(a.h.streaming.alwaysStreamText||a.Ob())&&ik(a.j,y)),A(x,a.j.start(),5);case 5:a.h.abr.enabled&&(a.C.enable(),Em(a)),de(a.j?a.j.l:null,a.i),Fm(a.i),Gm(a),Hm(a),a.i.variants.some(function(v){return v.primary}),
422
+ break}p=a.F.gd();return A(x,Am(l,p),4);case 4:n=x.h,a.F.ce(n);case 3:Bm(a,null,pe(l));case 2:return a.F.be(),t=a.Ab().find(function(v){return v.active}),t||((y=ze(a.i.textStreams,a.Oa,a.Fc,a.xb)[0]||null)&&Gl(a.A.h,y,!0),l&&(y?(l.audio&&Cm(a,l.audio,y)&&(a.aa=!0),a.aa&&a.K.m.setTextVisibility(!0),Dm(a)):a.aa=!1),y&&(a.h.streaming.alwaysStreamText||a.Ob())&&ik(a.j,y)),A(x,a.j.start(),5);case 5:a.h.abr.enabled&&(a.C.enable(),Em(a)),de(a.j?a.j.l:null,a.i),Fm(a.i),Gm(a),Hm(a),a.i.variants.some(function(v){return v.primary}),
422
423
  a.B.Fa(d,"loadedmetadata",function(){a.A.m=Date.now()/1E3-c.Pe}),B(x)}})}
423
424
  function Tl(a,b,c){var d,e,f,g,h,k,l;return K(function(m){return 1==m.g?(d=Jb,e=Date.now()/1E3,f=!0,a.m=nm(a,{Pb:a.H,onError:function(p){fm(a,p)},Bd:function(p){om(a,p)},onExpirationUpdated:function(p,n){pm(a,p,n)},onEvent:function(p){a.dispatchEvent(p);"drmsessionupdate"==p.type&&f&&(f=!1,a.A.j=Date.now()/1E3-e)}}),a.m.configure(a.h.drm),g=c.uri||"",h=gh(g),k=dm[h],"application/x-mpegurl"==k&&Yc()&&(k="application/vnd.apple.mpegurl"),k||(k="video/mp4"),l={id:0,language:"und",disabledUntilTime:0,
424
425
  primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]:k,codecs:c.mimeType?Ad(c.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.La,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},
425
426
  a.m.Z=!0,A(m,zg(a.m,[l],[]),2)):A(m,a.m.Cc(b.O),0)})}
426
427
  function Ul(a,b,c){function d(){return qm(a)}b.uri=c.uri;b.startTime=c.startTime;a.hb=b.uri;var e=b.O;a.F=new wj(e);var f=!1;a.ib.push(function(){f=!0});null!=b.startTime&&a.F.ce(b.startTime);a.I=new Hj({rd:function(){return e.playbackRate},od:function(){return e.defaultPlaybackRate},Ke:function(k){e.playbackRate=k},Gf:function(k){e.currentTime+=k}});wm(a,a.h.streaming.rebufferingGoal);a.B.o(e,"playing",d);a.B.o(e,"pause",d);a.B.o(e,"ended",d);a.B.o(e,"ratechange",function(){return rm(a)});"none"!=
427
428
  e.preload&&a.B.Fa(e,"loadedmetadata",function(){a.A.m=Date.now()/1E3-c.Pe});e.audioTracks&&(a.B.o(e.audioTracks,"addtrack",function(){return Gm(a)}),a.B.o(e.audioTracks,"removetrack",function(){return Gm(a)}),a.B.o(e.audioTracks,"change",function(){return Gm(a)}));e.textTracks&&(a.B.o(e.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case "metadata":Im(a,k);break;case "chapters":zm(a,k);break;default:Gm(a)}}),a.B.o(e.textTracks,"removetrack",function(){return Gm(a)}),a.B.o(e.textTracks,
428
- "change",function(){return Gm(a)}));var g=gh(b.uri);e.src=il(a.T,b.uri,dm[g]);(Wc()||Sc("Web0S"))&&e.load();a.l=Jm;a.dispatchEvent(Wl("streaming"));var h=new Lc;nj(e,HTMLMediaElement.HAVE_METADATA,a.B,function(){a.F.be();h.resolve()});nj(e,HTMLMediaElement.HAVE_CURRENT_DATA,a.B,function(){var k;return K(function(l){if(1==l.g)return Km(a),k=Lm(a),k.find(function(m){return"disabled"!=m.mode})?l.D(2):A(l,new Promise(function(m){a.B.Fa(e.textTracks,"change",m);(new Q(m)).S(1)}),2);if(f)return l.return();
429
- Mm(a);B(l)})});e.error?h.reject(em(a)):"none"==e.preload&&(Ua('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),h.resolve());a.B.Fa(e,"error",function(){h.reject(em(a))});return new bf(h,function(){h.reject(new P(2,7,7001));return Promise.resolve()})}
429
+ "change",function(){return Gm(a)}));var g=gh(b.uri);e.src=il(a.T,b.uri,dm[g]);(Wc()||Sc("Web0S"))&&e.load();a.l=Jm;a.dispatchEvent(Wl("streaming"));var h=new Lc;nj(e,HTMLMediaElement.HAVE_METADATA,a.B,function(){a.F.be();h.resolve()});nj(e,HTMLMediaElement.HAVE_CURRENT_DATA,a.B,function(){var k;return K(function(l){if(1==l.g)return Km(a),k=Lm(a),k.find(function(m){return"disabled"!=m.mode})?(0<k.length&&(a.aa=!0),l.D(2)):A(l,new Promise(function(m){a.B.Fa(e.textTracks,"change",m);(new Q(m)).S(1)}),
430
+ 2);if(f)return l.return();Mm(a);B(l)})});e.error?h.reject(em(a)):"none"==e.preload&&(Ua('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),h.resolve());a.B.Fa(e,"error",function(){h.reject(em(a))});return new bf(h,function(){h.reject(new P(2,7,7001));return Promise.resolve()})}
430
431
  function Km(a){var b=a.h.preferredAudioLanguage;if(""!=b){a.Id(b);var c=a.h.preferredVariantRole;""!=c&&a.Id(b,c)}}function Mm(a){var b=a.h.preferredTextLanguage,c=a.h.preferForcedSubs;if(""!=b){a.De(b,"",c);var d=a.h.preferredTextRole;""!=d&&a.De(b,d,c)}}
431
432
  function Im(a,b){if("metadata"==b.kind){b.mode="hidden";a.B.o(b,"cuechange",function(){if(b.activeCues)for(var d=r(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,im(a,e.startTime,e.endTime,e.type,e.value),a.G)a.G.onCueMetadataChange(e.value)});var c=(new Q(function(){var d=Nm(a);d=r(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).za().S(.5);a.ib.push(function(){c.stop()})}}
432
433
  function im(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(Wl("metadata",b))}function zm(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new Q(function(){b.mode="hidden"})).za().S(.5);a.ib.push(function(){c.stop()})}}function mm(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 nm(a,b){return new qg(b,a.h.drm.updateExpirationTime)}
@@ -448,16 +449,16 @@ q.Sa=function(){if(this.i){for(var a=this.j?this.j.l:null,b=[],c=0,d=r(this.i.va
448
449
  q.Ab=function(){if(this.i){for(var a=this.j?this.j.A:null,b=[],c=r(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=qe(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?Lm(this).map(function(f){return ue(f)}):[]};q.yg=function(){return this.i?this.i.imageStreams.map(function(a){return re(a)}):[]};
449
450
  q.Ng=function(a,b){var c=this,d,e,f,g,h,k,l,m,p,n,t,y,x,v,w,C,z,D;return K(function(G){if(1==G.g)return c.i?(d=c.i.imageStreams.find(function(F){return F.id==a}))?d.segmentIndex?G.D(3):A(G,d.createSegmentIndex(),3):G.return(null):G.D(2);if(2!=G.g){e=d.segmentIndex.find(b);if(null==e)return G.return(null);f=d.segmentIndex.get(e);g=f.tilesLayout||d.tilesLayout;h=/(\d+)x(\d+)/.exec(g);if(!h)return G.return(null);k=d.width||0;l=d.height||0;m=parseInt(h[1],10);p=parseInt(h[2],10);n=k/m;t=l/p;y=m*p;x=f.j-
450
451
  f.startTime;v=f.A||x/y;w=f.startTime;z=C=0;1<y&&(D=Math.floor((b-f.startTime)/v),w=f.startTime+D*v,C=D%m*n,z=Math.floor(D/m)*t);return G.return({imageHeight:l,imageWidth:k,height:t,positionX:C,positionY:z,startTime:w,duration:v,uris:f.Ra(),width:n})}return G.return(null)})};
451
- q.Ee=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.A&&(Gl(this.A.h,b,!1),ik(this.j,b),Sm(this),this.Oa=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=Lm(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,se(c)==a.id?c.mode=this.ba?"showing":"hidden":c.mode="disabled";Sm(this)}};
452
+ q.Ee=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.A&&(Gl(this.A.h,b,!1),ik(this.j,b),Sm(this),this.Oa=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=Lm(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,se(c)==a.id?c.mode=this.aa?"showing":"hidden":c.mode="disabled";Sm(this)}};
452
453
  q.Fe=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.i&&this.j){this.h.abr.enabled&&Ua("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var d=this.i.variants.find(function(e){return e.id==a.id});d&&xe(d)&&(tm(this,d,!1,b,c),this.Aa=new Qe(d),Hm(this))}else if(this.g&&this.g.audioTracks)for(b=Array.from(this.g.audioTracks),b=r(b),c=b.next();!c.done;c=b.next())if(c=c.value,
453
454
  se(c)==a.id){Tm(this,c);break}};q.ng=function(){return Um(this.Sa())};q.Mg=function(){return Um(this.Ab())};q.mg=function(){return Array.from(Vm(this.Sa()))};q.Lg=function(){return Array.from(Vm(this.Ab()))};
454
455
  q.Id=function(a,b){if(this.i&&this.F){this.Aa=new Re(a,b||"",0,"");b=function(h,k){return h.video||k.video?h.video&&k.video?Math.abs((h.video.height||0)-(k.video.height||0))+Math.abs((h.video.width||0)-(k.video.width||0)):Infinity:0};a=this.j.l;var c=this.Aa.create(this.i.variants),d=null;c=r(c.values());for(var e=c.next();!e.done;e=c.next())if(e=e.value,!d||b(d,a)>b(e,a))d=e;d?(b=pe(d),this.Fe(b,!0)):Rm(this)}else if(this.g&&this.g.audioTracks){e=Array.from(this.g.audioTracks);a=Mb(a);c=d=null;e=
455
456
  r(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;var g=we(f);Mb(g.language)==a&&(d=f,b?g.roles.includes(b)&&(c=f):0==g.roles.length&&(c=f))}c?Tm(this,c):d&&Tm(this,d)}};
456
457
  q.De=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.F){if(this.Oa=a,this.Fc=b||"",this.xb=c,(a=ze(this.i.textStreams,this.Oa,this.Fc,this.xb)[0]||null)&&a!=this.j.A&&(Gl(this.A.h,a,!1),this.h.streaming.alwaysStreamText||this.Ob()))ik(this.j,a),Sm(this)}else{var d=Mb(a);(a=this.Ab().find(function(e){return Mb(e.language)==d&&(!b||e.roles.includes(b))&&e.forced==c}))&&this.Ee(a)}};
457
- q.qh=function(a){if(this.i&&this.F){for(var b=null,c=r(this.i.variants),d=c.next();!d.done;d=c.next())if(d=d.value,d.audio.label==a){b=d;break}null!=b&&(this.Aa=new Re(b.language,"",0,a),Rm(this))}};q.Ob=function(){var a=this.ba;return this.K?this.K.m.isTextVisible():this.g&&this.g.src&&this.g.textTracks?Lm(this).some(function(b){return"showing"==b.mode}):a};q.xf=function(){return this.g&&this.g.src&&this.g.textTracks?Wm(this).map(function(a){return ue(a)}):[]};
458
+ q.qh=function(a){if(this.i&&this.F){for(var b=null,c=r(this.i.variants),d=c.next();!d.done;d=c.next())if(d=d.value,d.audio.label==a){b=d;break}null!=b&&(this.Aa=new Re(b.language,"",0,a),Rm(this))}};q.Ob=function(){var a=this.aa;return this.K?this.K.m.isTextVisible():this.g&&this.g.src&&this.g.textTracks?Lm(this).some(function(b){return"showing"==b.mode}):a};q.xf=function(){return this.g&&this.g.src&&this.g.textTracks?Wm(this).map(function(a){return ue(a)}):[]};
458
459
  q.qg=function(a){var b=Mb(a),c=Wm(this).filter(function(h){return Mb(h.language)==b});if(!c||!c.length)return[];a=[];var d=new Set;c=r(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=r(e.cues);for(var f=e.next();!f.done;f=e.next()){var g=f.value;(f=g.id)&&""!=f||(f=g.startTime+"-"+g.endTime+"-"+g.text);g={id:f,title:g.text,startTime:g.startTime,endTime:g.endTime};d.has(f)||(a.push(g),d.add(f))}}return a};
459
460
  function Lm(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function Nm(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}function Wm(a){return Array.from(a.g.textTracks).filter(function(b){return"chapters"==b.kind})}
460
- q.Ne=function(a){a=!!a;if(this.ba!=a){this.ba=a;if(this.l==ym)this.K.m.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.A||(a=ze(this.i.textStreams,this.Oa,this.Fc,this.xb),0<a.length&&(ik(this.j,a[0]),Sm(this))):ek(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=Lm(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}Dm(this)}};
461
+ q.Ne=function(a){a=!!a;if(this.aa!=a){this.aa=a;if(this.l==ym)this.K.m.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.A||(a=ze(this.i.textStreams,this.Oa,this.Fc,this.xb),0<a.length&&(ik(this.j,a[0]),Sm(this))):ek(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=Lm(this);b=r(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}Dm(this)}};
461
462
  q.Ig=function(){if(!this.U())return null;var a=this.ua.l,b=0;if(this.F)b=this.F.gd();else if(a){if(null==a.startTime)return new Date;b=a.startTime}return this.i?new Date(1E3*(this.i.presentationTimeline.l+b)):this.g&&this.g.getStartDate?(a=this.g.getStartDate(),isNaN(a.getTime())?null:new Date(a.getTime()+1E3*b)):null};
462
463
  q.Af=function(){if(!this.U())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.l);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};q.mb=function(){if(this.l==ym)return this.K.mb();var a={total:[],audio:[],video:[],text:[]};this.l==Jm&&(a.total=Fi(this.g.buffered));return a};
463
464
  q.getStats=function(){if(this.l!=ym&&this.l!=Jm)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:[]};qm(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=this.A;b=
@@ -500,7 +501,7 @@ T.prototype.getExpiration=T.prototype.Hc;T.prototype.drmInfo=T.prototype.drmInfo
500
501
  T.prototype.getLoadMode=T.prototype.zf;T.prototype.resetConfiguration=T.prototype.nh;T.prototype.getBufferFullness=T.prototype.og;T.prototype.getConfiguration=T.prototype.getConfiguration;T.prototype.configure=T.prototype.configure;T.prototype.load=T.prototype.load;T.prototype.updateStartTime=T.prototype.Dh;T.prototype.unload=T.prototype.We;T.prototype.detach=T.prototype.detach;T.prototype.attach=T.prototype.Cc;
501
502
  T.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return K(function(h){if(1==h.g)return b={},a?A(h,Zg(),3):h.D(2);2!=h.g&&(b=h.h);var k={};if(Oc()){for(var l in fh)k[l]=!0;for(var m in hh)k[m]=!0}l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};m=r(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var p=m.next();!p.done;p=m.next())p=p.value,k[p]=Oc()?!!fh[p]:Pc(p);for(var n in l)k[n]=
502
503
  Oc()?!!hh[n]:Pc(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",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(ja(gj));
503
- k={};n=r(n);for(l=n.next();!l.done;l=n.next())l=l.value,k[l]=Oc()?Cd(l)?!0:MediaSource.isTypeSupported(l)||rd(l):Pc(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=hn;for(g in f)e[g]=f[g]();return h.return(e)})};T.isBrowserSupported=Zl;T.setAdManagerFactory=function(a){Ll=a};T.registerSupportPlugin=function(a,b){hn[a]=b};T.prototype.destroy=T.prototype.destroy;var Yl=0,Il=1,ym=2,Jm=3;T.LoadMode={DESTROYED:Yl,NOT_LOADED:Il,MEDIA_SOURCE:ym,SRC_EQUALS:Jm};T.version="v4.2.8";
504
+ k={};n=r(n);for(l=n.next();!l.done;l=n.next())l=l.value,k[l]=Oc()?Cd(l)?!0:MediaSource.isTypeSupported(l)||rd(l):Pc(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=hn;for(g in f)e[g]=f[g]();return h.return(e)})};T.isBrowserSupported=Zl;T.setAdManagerFactory=function(a){Ll=a};T.registerSupportPlugin=function(a,b){hn[a]=b};T.prototype.destroy=T.prototype.destroy;var Yl=0,Il=1,ym=2,Jm=3;T.LoadMode={DESTROYED:Yl,NOT_LOADED:Il,MEDIA_SOURCE:ym,SRC_EQUALS:Jm};T.version="v4.2.9";
504
505
  var jn=["4","2"];Ie=new function(a){this.g=a;this.i=Je;this.h=Ke}(new Ge(Number(jn[0]),Number(jn[1])));
505
506
  var gn=["output-restricted","internal-error"],hn={},Ll=null,dm={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"},an={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",
506
507
  ssa:"text/x-ssa",ass:"text/x-ssa"};function kn(){this.h=[];this.j=this.i=this.g=0};function ln(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 Af;this.j.o(this.g,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.j.o(this.g,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}q=ln.prototype;q.getDuration=function(){return this.h.getDuration()};q.getMinSuggestedDuration=function(){return this.h.getMinSuggestedDuration()};q.getRemainingTime=function(){return this.g.getRemainingTime()};q.isPaused=function(){return this.i};
@@ -508,8 +509,8 @@ q.isSkippable=function(){return 0<=this.h.getSkipTimeOffset()};q.getTimeUntilSki
508
509
  q.isLinear=function(){return this.h.isLinear()};q.resize=function(a,b){var c=!1,d=this.m;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.g.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};q.setMuted=function(a){a?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)};q.getSequenceLength=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getTotalAds()};
509
510
  q.getPositionInSequence=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getAdPosition()};q.release=function(){this.g=this.h=null};M("shaka.ads.ClientSideAd",ln);ln.prototype.release=ln.prototype.release;ln.prototype.getPositionInSequence=ln.prototype.getPositionInSequence;ln.prototype.getSequenceLength=ln.prototype.getSequenceLength;ln.prototype.setMuted=ln.prototype.setMuted;ln.prototype.resize=ln.prototype.resize;ln.prototype.isLinear=ln.prototype.isLinear;ln.prototype.isMuted=ln.prototype.isMuted;
510
511
  ln.prototype.setVolume=ln.prototype.setVolume;ln.prototype.getVolume=ln.prototype.getVolume;ln.prototype.play=ln.prototype.play;ln.prototype.pause=ln.prototype.pause;ln.prototype.skip=ln.prototype.skip;ln.prototype.canSkipNow=ln.prototype.canSkipNow;ln.prototype.getTimeUntilSkippable=ln.prototype.getTimeUntilSkippable;ln.prototype.isSkippable=ln.prototype.isSkippable;ln.prototype.isPaused=ln.prototype.isPaused;ln.prototype.getRemainingTime=ln.prototype.getRemainingTime;
511
- ln.prototype.getMinSuggestedDuration=ln.prototype.getMinSuggestedDuration;ln.prototype.getDuration=ln.prototype.getDuration;function mn(a,b,c,d){var e=this;this.A=a;this.i=b;this.B=null;this.C=NaN;this.l=d;this.j=null;this.h=new Af;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.A,this.i);a.initialize();this.m=new google.ima.AdsLoader(a);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.2.8");this.g=null;this.h.Fa(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){nn(e,f)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,
512
- function(f){on(e,f)});this.i.onended=function(){e.m.contentComplete()}}mn.prototype.stop=function(){this.g&&this.g.stop();this.A&&Nk(this.A)};mn.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy()};function on(a,b){b.getError();pn(a,null);a.l(new O("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
512
+ ln.prototype.getMinSuggestedDuration=ln.prototype.getMinSuggestedDuration;ln.prototype.getDuration=ln.prototype.getDuration;function mn(a,b,c,d){var e=this;this.A=a;this.i=b;this.B=null;this.C=NaN;this.l=d;this.j=null;this.h=new Af;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.A,this.i);a.initialize();this.m=new google.ima.AdsLoader(a);this.m.getSettings().setPlayerType("shaka-player");this.m.getSettings().setPlayerVersion("v4.2.9");this.g=null;this.h.Fa(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){nn(e,f)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,
513
+ function(f){on(e,f)});this.h.o(this.i,"ended",function(){e.m.contentComplete()})}mn.prototype.stop=function(){this.g&&this.g.stop();this.A&&Nk(this.A)};mn.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy()};function on(a,b){b.getError();pn(a,null);a.l(new O("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
513
514
  function nn(a,b){a.l(new O("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.C)));a.g=b.getAdsManager(a.i);a.l(new O("ima-ad-manager-loaded",(new Map).set("imaAdManager",a.g)));var c=a.g.getCuePoints();if(c.length){b=[];c=r(c);for(var d=c.next();!d.done;d=c.next())b.push({start:d.value,end:null});a.l(new O("ad-cue-points-changed",(new Map).set("cuepoints",b)))}qn(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,rn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.o(a.i,"loadeddata",
514
515
  function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,rn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in window?(a.B=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,rn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.B.observe(a.i)):a.h.o(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,rn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.i.addEventListener("play",function(){a.g.start()},
515
516
  {once:!0})}catch(e){pn(a,null)}}function rn(a){if(document.fullscreenEnabled)return!!document.fullscreenElement;a=a.i;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1}
@@ -517,8 +518,8 @@ function qn(a){function b(c,d){c=(new Map).set("originalEvent",c);a.l(new O(d,c)
517
518
  function(c){b(c,"ad-third-quartile")});a.h.o(a.g,google.ima.AdEvent.Type.COMPLETE,function(c){b(c,"ad-complete")});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(c){pn(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){pn(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.SKIPPED,function(c){b(c,"ad-skipped")});a.h.o(a.g,google.ima.AdEvent.Type.VOLUME_CHANGED,function(c){b(c,"ad-volume-changed")});a.h.o(a.g,google.ima.AdEvent.Type.VOLUME_MUTED,function(c){b(c,"ad-muted")});
518
519
  a.h.o(a.g,google.ima.AdEvent.Type.PAUSED,function(c){a.j.i=!0;b(c,"ad-paused")});a.h.o(a.g,google.ima.AdEvent.Type.RESUMED,function(c){a.j.i=!1;b(c,"ad-resumed")});a.h.o(a.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(c){b(c,"ad-skip-state-changed")});a.h.o(a.g,google.ima.AdEvent.Type.CLICK,function(c){b(c,"ad-clicked")});a.h.o(a.g,google.ima.AdEvent.Type.AD_PROGRESS,function(c){b(c,"ad-progress")});a.h.o(a.g,google.ima.AdEvent.Type.AD_BUFFERING,function(c){b(c,"ad-buffering")});a.h.o(a.g,
519
520
  google.ima.AdEvent.Type.IMPRESSION,function(c){b(c,"ad-impression")});a.h.o(a.g,google.ima.AdEvent.Type.DURATION_CHANGE,function(c){b(c,"ad-duration-changed")});a.h.o(a.g,google.ima.AdEvent.Type.USER_CLOSE,function(c){b(c,"ad-closed")});a.h.o(a.g,google.ima.AdEvent.Type.LOADED,function(c){b(c,"ad-loaded")});a.h.o(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){b(c,"all-ads-completed")});a.h.o(a.g,google.ima.AdEvent.Type.LINEAR_CHANGED,function(c){b(c,"ad-linear-changed")});a.h.o(a.g,google.ima.AdEvent.Type.AD_METADATA,
520
- function(c){b(c,"ad-metadata")});a.h.o(a.g,google.ima.AdEvent.Type.LOG,function(c){b(c,"ad-recoverable-error")});a.h.o(a.g,google.ima.AdEvent.Type.AD_BREAK_READY,function(c){b(c,"ad-break-ready")});a.h.o(a.g,google.ima.AdEvent.Type.INTERACTION,function(c){b(c,"ad-interaction")})}function sn(a,b){var c=b.getAd();a.j=new ln(c,a.g,a.i);b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b);a.l(new O("ad-started",b));a.j.isLinear()&&(a.A.setAttribute("ad-active","true"),a.i.pause())}
521
- function pn(a,b){a.l(new O("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.A.removeAttribute("ad-active"),a.i.play())};function tn(a,b){this.i=a;this.h=null;this.g=b}q=tn.prototype;q.getDuration=function(){return this.h?this.h.duration:-1};q.getMinSuggestedDuration=function(){return this.getDuration()};q.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1};q.isPaused=function(){return this.g.paused};q.isSkippable=function(){return this.i.isSkippable()};q.getTimeUntilSkippable=function(){var a=this.i.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};
521
+ function(c){b(c,"ad-metadata")});a.h.o(a.g,google.ima.AdEvent.Type.LOG,function(c){b(c,"ad-recoverable-error")});a.h.o(a.g,google.ima.AdEvent.Type.AD_BREAK_READY,function(c){b(c,"ad-break-ready")});a.h.o(a.g,google.ima.AdEvent.Type.INTERACTION,function(c){b(c,"ad-interaction")})}
522
+ function sn(a,b){var c=b.getAd();a.j=new ln(c,a.g,a.i);b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b);a.l(new O("ad-started",b));a.j.isLinear()&&(a.A.setAttribute("ad-active","true"),a.i.pause(),a.j.setVolume(a.i.muted?0:a.i.volume))}function pn(a,b){a.l(new O("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.A.removeAttribute("ad-active"),a.i.ended||a.i.play())};function tn(a,b){this.i=a;this.h=null;this.g=b}q=tn.prototype;q.getDuration=function(){return this.h?this.h.duration:-1};q.getMinSuggestedDuration=function(){return this.getDuration()};q.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1};q.isPaused=function(){return this.g.paused};q.isSkippable=function(){return this.i.isSkippable()};q.getTimeUntilSkippable=function(){var a=this.i.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};
522
523
  q.canSkipNow=function(){return 0==this.getTimeUntilSkippable()};q.skip=function(){this.g.currentTime+=this.getRemainingTime()};q.pause=function(){return this.g.pause()};q.play=function(){return this.g.play()};q.getVolume=function(){return this.g.volume};q.setVolume=function(a){this.g.volume=a};q.isMuted=function(){return this.g.muted};q.isLinear=function(){return!0};q.resize=function(){};q.setMuted=function(a){this.g.muted=a};
523
524
  q.getSequenceLength=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getTotalAds()};q.getPositionInSequence=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getAdPosition()};q.release=function(){this.g=this.h=this.i=null};M("shaka.ads.ServerSideAd",tn);tn.prototype.release=tn.prototype.release;tn.prototype.getPositionInSequence=tn.prototype.getPositionInSequence;tn.prototype.getSequenceLength=tn.prototype.getSequenceLength;tn.prototype.setMuted=tn.prototype.setMuted;
524
525
  tn.prototype.resize=tn.prototype.resize;tn.prototype.isLinear=tn.prototype.isLinear;tn.prototype.isMuted=tn.prototype.isMuted;tn.prototype.setVolume=tn.prototype.setVolume;tn.prototype.getVolume=tn.prototype.getVolume;tn.prototype.play=tn.prototype.play;tn.prototype.pause=tn.prototype.pause;tn.prototype.skip=tn.prototype.skip;tn.prototype.canSkipNow=tn.prototype.canSkipNow;tn.prototype.getTimeUntilSkippable=tn.prototype.getTimeUntilSkippable;tn.prototype.isSkippable=tn.prototype.isSkippable;
@@ -530,8 +531,8 @@ f;e.i(new O("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}un.prototyp
530
531
  function vn(a,b){a.i(new O("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.I)));b=b.getStreamData().url;a.j.resolve(b);a.j=null;a.H||a.h.o(a.l,"seeked",function(){var c=a.l.currentTime;if(0!=c){a.g.streamTimeForContentTime(c);var d=a.g.previousCuePointForStreamTime(c);d&&!d.played&&(a.A=c,a.l.currentTime=d.start)}})};function U(){fb.call(this);this.g=this.i=null;this.h=new kn;this.j=navigator.language}u(U,fb);q=U.prototype;q.setLocale=function(a){this.j=a};q.initClientSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new P(2,10,1E4);this.i&&this.i.release();this.i=new mn(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)})};
531
532
  q.release=function(){this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);fb.prototype.release.call(this)};q.onAssetUnload=function(){this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new O("ad-stopped"));this.h=new kn};q.requestClientSideAds=function(a){if(!this.i)throw new P(1,10,10001);var b=this.i;b.C=Date.now()/1E3;b.m.requestAds(a)};
532
533
  q.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new P(2,10,10002);this.g&&this.g.release();this.g=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)})};
533
- q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new P(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.2.8";c=this.g;c.j?a=Promise.reject(new P(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
534
- (c.H=!0),c.j=new Lc,c.g.requestStream(a),c.F=b||"",c.I=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new P(1,10,10003);(a.mpt||a.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.2.8";this.g.g.replaceAdTagParameters(a)};q.getServerSideCuePoints=function(){if(!this.g)throw new P(1,10,10003);return this.g.G};
534
+ q.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new P(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.2.9";c=this.g;c.j?a=Promise.reject(new P(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
535
+ (c.H=!0),c.j=new Lc,c.g.requestStream(a),c.F=b||"",c.I=Date.now()/1E3,a=c.j);return a};q.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new P(1,10,10003);(a.mpt||a.mpv)&&Ua('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.');a.mpt="Shaka Player";a.mpv="v4.2.9";this.g.g.replaceAdTagParameters(a)};q.getServerSideCuePoints=function(){if(!this.g)throw new P(1,10,10003);return this.g.G};
535
536
  q.getStats=function(){var a=this.h;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};q.onDashTimedMetadata=function(a){if(this.g&&"urn:google:dai:2018"==a.schemeIdUri){var b=a.schemeIdUri,c=a.eventElement?a.eventElement.getAttribute("messageData"):null;this.g.g.processMetadata(b,c,a.startTime)}};q.onHlsTimedMetadata=function(a,b){this.g&&this.g.g.processMetadata("ID3",a.data,b)};q.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};M("shaka.ads.AdManager",U);
536
537
  U.prototype.onCueMetadataChange=U.prototype.onCueMetadataChange;U.prototype.onHlsTimedMetadata=U.prototype.onHlsTimedMetadata;U.prototype.onDashTimedMetadata=U.prototype.onDashTimedMetadata;U.prototype.getStats=U.prototype.getStats;U.prototype.getServerSideCuePoints=U.prototype.getServerSideCuePoints;U.prototype.replaceServerSideAdTagParameters=U.prototype.replaceServerSideAdTagParameters;U.prototype.requestServerSideStream=U.prototype.requestServerSideStream;U.prototype.initServerSide=U.prototype.initServerSide;
537
538
  U.prototype.requestClientSideAds=U.prototype.requestClientSideAds;U.prototype.onAssetUnload=U.prototype.onAssetUnload;U.prototype.release=U.prototype.release;U.prototype.initClientSide=U.prototype.initClientSide;U.prototype.setLocale=U.prototype.setLocale;U.ADS_LOADED="ads-loaded";U.AD_STARTED="ad-started";U.AD_FIRST_QUARTILE="ad-first-quartile";U.AD_MIDPOINT="ad-midpoint";U.AD_THIRD_QUARTILE="ad-third-quartile";U.AD_COMPLETE="ad-complete";U.AD_STOPPED="ad-stopped";U.AD_SKIPPED="ad-skipped";
@@ -583,7 +584,7 @@ function po(a,b){var c=xn(b.data);switch(c.type){case "PLAY":a.g.play();vo(a);br
583
584
  null!=d&&(a.g.muted=d);e==a.g.volume&&f==a.g.muted||vo(a);break;case "LOAD":a.m=0;a.F=!1;a.C=!1;b=c.media;d=c.currentTime;e=a.K(b.contentId);f=c.autoplay||!0;a.G(b.customData);f&&(a.g.autoplay=!0);a.h.load(e,d).then(function(){a.h&&yo(a)}).catch(function(g){var h="LOAD_FAILED";7==g.category&&7E3==g.code&&(h="LOAD_CANCELLED");oo(a,{requestId:Number(c.requestId),type:h},a.B)});break;default:oo(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.B)}}
584
585
  function zo(a,b,c,d){a.h&&oo(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function oo(a,b,c,d){a.H&&(a=wn(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function vo(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.A?Ao:a.h.Pc()?Bo:a.g.paused?Co:Do,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);oo(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.B)}
585
586
  M("shaka.cast.CastReceiver",ko);ko.prototype.destroy=ko.prototype.destroy;ko.prototype.setContentArtist=ko.prototype.rh;ko.prototype.setContentImage=ko.prototype.sh;ko.prototype.setContentTitle=ko.prototype.vh;ko.prototype.clearContentMetadata=ko.prototype.ig;ko.prototype.setContentMetadata=ko.prototype.uh;ko.prototype.isIdle=ko.prototype.Ug;ko.prototype.isConnected=ko.prototype.isConnected;var xo=.5,to=5,Ao="IDLE",Do="PLAYING",Bo="BUFFERING",Co="PAUSED";function Eo(a,b,c){var d=Fo(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 P(2,4,4010);b||(f=d.filter(function(h){return"urn:mpeg:dash:mp4protection:2011"==h.Ce?(e=h.init||e,!1):!0}),f.length&&(a=Go(e,f,c,g),0==a.length&&(a=[Eb("",e)])));if(d.length&&(b||!f.length))for(a=[],b=r(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Eb(c,e));if(g=Array.from(g)[0]||null)for(b=r(a),c=b.next();!c.done;c=b.next())for(c=
586
- r(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;return{rf:g,dj:e,drmInfos:a,wf:!0}}function Ho(a,b,c,d){var e=Eo(a,c,d);if(b.wf){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.wf=!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 P(2,4,4008);return e.rf||b.rf}
587
+ r(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;return{rf:g,bj:e,drmInfos:a,wf:!0}}function Ho(a,b,c,d){var e=Eo(a,c,d);if(b.wf){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.wf=!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 P(2,4,4008);return e.rf||b.rf}
587
588
  function Io(a){var b=0,c=Hc(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=Ec(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}
588
589
  function Jo(a){a=r(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next()){b=r(b.value.childNodes);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c instanceof Element&&"LA_URL"==c.tagName)return c.textContent}return""}function Ko(a){a=Yf(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=md(a.textContent);a=Io(a).filter(function(b){return b.type===Lo})[0];if(!a)return"";a=ed(a.value,!0);return(a=ng(a,"WRMHEADER"))?Jo(a):""}
589
590
  function Go(a,b,c,d){var e=[];b=r(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g=c[f.Ce];if(g){var h;if(h=Yf(f.node,"urn:microsoft:playready","pro")){h=md(h.textContent);var k=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);h=[{initData:Vf(h,k,new Set,0),initDataType:"cenc",keyId:f.keyId}]}else h=null;k=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===f.Ce)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,
@@ -602,10 +603,10 @@ function Xo(a){var b=Yo(a);if(7<b.length)throw new P(2,3,3002);var c=0;b=r(b);fo
602
603
  d)}function Yo(a){var b=a.g.oa(),c=a.g.rb();if(0==c)throw new P(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Ec(a.h,b,c)}var Zo=[[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 $o(a,b){this.id=a;this.g=b}
603
604
  function ap(a){if(8<a.g.byteLength)throw new P(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new P(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 bp(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new Wo(a.g);for(var p=null,n=null;a.Da();){var t=Xo(a);if(187==t.id){var y=cp(t);y&&(t=c*y.Ch,y=b+y.jh,null!=p&&m.push(new yi(p+g,t+g,l,n,y-1,f,g,h,k)),p=t,n=y)}}null!=p&&m.push(new yi(p+g,d+g,l,n,null,f,g,h,k));return m}
604
605
  function cp(a){var b=new Wo(a.g);a=Xo(b);if(179!=a.id)throw new P(2,3,3013);a=ap(a);b=Xo(b);if(183!=b.id)throw new P(2,3,3012);b=new Wo(b.g);for(var c=0;b.Da();){var d=Xo(b);if(241==d.id){c=ap(d);break}}return{Ch:a,jh:c}};function dp(a,b){b=Ro(a,b,"Initialization");if(!b)return null;var c=a.L.Pa,d=b.getAttribute("sourceURL");d&&(c=Cb(a.L.Pa,[d]));d=0;var e=null;if(b=eg(b,"range",hg))d=b.start,e=b.end;return new wi(function(){return c},d,e,ep(a))}
605
- function fp(a,b){var c=Number(Qo(a,gp,"presentationTimeOffset"))||0,d=Qo(a,gp,"timescale"),e=1;d&&(e=jg(d)||1);var f=c/e||0,g=dp(a,gp);hp(a,g);var h=kf(a);return{bc:function(){var k=Ro(h,gp,"RepresentationIndex"),l=h.L.Pa;k&&(k=k.getAttribute("sourceURL"))&&(l=Cb(h.L.Pa,[k]));k=kp(h);return lp(h,b,g,l,k.start,k.end,f)}}}
606
+ function fp(a,b){var c=Number(Qo(a,gp,"presentationTimeOffset"))||0,d=Qo(a,gp,"timescale"),e=1;d&&(e=jg(d)||1);var f=c/e||0,g=dp(a,gp);hp(a,g);var h=kf(a);return{bc:function(){var k=Ro(h,gp,"RepresentationIndex"),l=h.L.Pa;k&&(k=k.getAttribute("sourceURL"))&&(l=Cb(h.L.Pa,[k]));k=ip(h);return lp(h,b,g,l,k.start,k.end,f)}}}
606
607
  function lp(a,b,c,d,e,f,g){var h,k,l,m,p,n,t,y,x,v,w,C,z,D,G;return K(function(F){if(1==F.g)return h=a.presentationTimeline,k=!a.kb||!a.Y.ge,l=a.Y.start,m=a.Y.duration,p=a.L.mimeType.split("/")[1],n=b,t=null,y=[n(d,e,f),"webm"==p?n(c.Ra(),c.Va,c.Ca):null],n=null,A(F,Promise.all(y),2);x=F.h;v=x[0];w=x[1]||null;C=null;z=l-g;D=l;G=m?l+m:Infinity;if("mp4"==p)var H=Uo(v,e,d,c,z,D,G);else{H=new Wo(w);if(440786851!=Xo(H).id)throw new P(2,3,3008);var I=Xo(H);if(408125543!=I.id)throw new P(2,3,3009);H=I.g.byteOffset;
607
608
  I=new Wo(I.g);for(var L=null;I.Da();){var N=Xo(I);if(357149030==N.id){L=N;break}}if(!L)throw new P(2,3,3010);L=new Wo(L.g);N=1E6;for(I=null;L.Da();){var V=Xo(L);if(2807729==V.id)N=ap(V);else if(17545==V.id)if(4==V.g.byteLength)I=V.g.getFloat32(0);else if(8==V.g.byteLength)I=V.g.getFloat64(0);else throw new P(2,3,3003);}if(null==I)throw new P(2,3,3011);L=N/1E9;I*=L;N=Xo(new Wo(v));if(475249515!=N.id)throw new P(2,3,3007);H=bp(N,H,L,I,d,c,z,D,G)}C=H;h.mc(C);t=new Dj(C);k&&t.yb(D,G,!0);return F.return(t)})}
608
- function gp(a){return a.Xc}function kp(a){var b=Ro(a,gp,"RepresentationIndex");a=Qo(a,gp,"indexRange");a=hg(a||"");b&&(a=eg(b,"range",hg,a));return a}function hp(a,b){mp(a,b);if(!kp(a))throw new P(2,4,4002);}function mp(a,b){var c=a.L.mimeType.split("/")[1];if(a.L.contentType!=Ib&&"mp4"!=c&&"webm"!=c)throw new P(2,4,4006);if("webm"==c&&!b)throw new P(2,4,4005);}
609
+ function gp(a){return a.Xc}function ip(a){var b=Ro(a,gp,"RepresentationIndex");a=Qo(a,gp,"indexRange");a=hg(a||"");b&&(a=eg(b,"range",hg,a));return a}function hp(a,b){mp(a,b);if(!ip(a))throw new P(2,4,4002);}function mp(a,b){var c=a.L.mimeType.split("/")[1];if(a.L.contentType!=Ib&&"mp4"!=c&&"webm"!=c)throw new P(2,4,4006);if("webm"==c&&!b)throw new P(2,4,4005);}
609
610
  function ep(a){var b=a.L;return{bandwidth:a.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate||null,height:b.height||null,mimeType:b.mimeType,channelsCount:b.xd,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function np(a,b){var c=dp(a,op),d=pp(a);if(!d.ya&&!d.timeline&&1<d.kc.length)throw new P(2,4,4002);if(!d.ya&&!a.Y.duration&&!d.timeline&&1==d.kc.length)throw new P(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new P(2,4,4002);var e=null,f=null;a.ra.id&&a.L.id&&(f=b[a.ra.id+","+a.L.id])&&(e=f.segmentIndex);var g=qp(a.Y.start,a.Y.duration,a.L.Pa,d,c);b=!e;e?e.lc(g,a.presentationTimeline.pb()):e=new Dj(g);a.presentationTimeline.mc(g);a.kb&&a.Y.ge||e.yb(a.Y.start,a.Y.duration?a.Y.start+a.Y.duration:
610
611
  Infinity,b);f&&(f.segmentIndex=e);return{bc:function(){e&&0!=e.M.length||e.Sc(g);return Promise.resolve(e)}}}function op(a){return a.Db}function pp(a){var b=rp(a);a=Po(a,op);var c=a.rc;0==c&&(c=1);var d=0;a.ya?d=a.ya*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{ya:a.ya,startTime:d,rc:c,sb:a.sb,timeline:a.timeline,kc:b}}
611
612
  function qp(a,b,c,d,e){var f=d.kc.length;d.timeline&&d.timeline.length!=d.kc.length&&(f=Math.min(d.timeline.length,d.kc.length));for(var g=a-d.sb,h=b?a+b:Infinity,k=[],l=d.startTime,m={},p=0;p<f;m={Sd:m.Sd},p++){var n=d.kc[p];m.Sd=Cb(c,[n.$g]);var t=void 0;t=null!=d.ya?l+d.ya:d.timeline?d.timeline[p].end:l+b;k.push(new yi(a+l,a+t,function(y){return function(){return y.Sd}}(m),n.start,n.end,e,g,a,h));l=t}return k}
@@ -663,7 +664,7 @@ l}}var p;m=Xf(c,"EssentialProperty");f=null;l=!1;m=r(m);for(var n=m.next();!n.do
663
664
  10)));m=Xf(c,"Accessibility");var y=new Map;m=r(m);for(n=m.next();!n.done;n=m.next())if(t=n.value,n=t.getAttribute("schemeIdUri"),t=t.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==n)if(n=1,null!=t){t=t.split(";");for(var x=r(t),v=x.next();!v.done;v=x.next()){var w=v.value,C=v=void 0;w.includes("=")?(w=w.split("="),v=w[0].startsWith("CC")?w[0]:"CC"+w[0],C=w[1]||"und"):(v="CC"+n,2==t.length?n+=2:n++,C=w);y.set(v,Mb(C))}}else y.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==n)if(n=
664
665
  1,null!=t)for(t=r(t.split(";")),v=t.next();!v.done;v=t.next())v=v.value,w=x=void 0,v.includes("=")?(v=v.split("="),x="svc"+v[0],w=v[1].split(",")[0].split(":").pop()):(x="svc"+n,n++,w=v),y.set(x,Mb(w));else y.set("svc1","und");else"urn:mpeg:dash:role:2011"==n&&null!=t&&(g.push(t),"captions"==t&&(h="caption"));if(l)return null;l=Xf(c,"ContentProtection");var z=Eo(l,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),D=Mb(c.getAttribute("lang")||"und"),G=c.getAttribute("label");(l=Xf(c,"Label"))&&l.length&&
665
666
  (l=l[0],l.textContent&&(G=l.textContent));l=Xf(c,"Representation");c=l.map(function(F){if(F=qq(a,b,z,h,D,G,e,g,y,F))F.hdr=F.hdr||p;return F}).filter(function(F){return!!F});if(0==c.length){f="image"==b.wa.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||k||f)return null;throw new P(2,4,4003);}if(!b.wa.contentType||"application"==b.wa.contentType)for(b.wa.contentType=rq(c[0].mimeType,c[0].codecs),k=r(c),m=k.next();!m.done;m=k.next())m.value.type=b.wa.contentType;k=r(c);for(m=k.next();!m.done;m=k.next())for(m=
666
- m.value,n=r(z.drmInfos),t=n.next();!t.done;t=n.next())t=t.value,t.keyIds=t.keyIds&&m.keyIds?new Set([].concat(ja(t.keyIds),ja(m.keyIds))):t.keyIds||m.keyIds;k=l.map(function(F){return F.getAttribute("id")}).filter(Bb);return{id:b.wa.id||"__fake__"+a.I++,contentType:b.wa.contentType,language:D,ej:e,streams:c,drmInfos:z.drmInfos,Te:f,mh:k}}
667
+ m.value,n=r(z.drmInfos),t=n.next();!t.done;t=n.next())t=t.value,t.keyIds=t.keyIds&&m.keyIds?new Set([].concat(ja(t.keyIds),ja(m.keyIds))):t.keyIds||m.keyIds;k=l.map(function(F){return F.getAttribute("id")}).filter(Bb);return{id:b.wa.id||"__fake__"+a.I++,contentType:b.wa.contentType,language:D,cj:e,streams:c,drmInfos:z.drmInfos,Te:f,mh:k}}
667
668
  function qq(a,b,c,d,e,f,g,h,k,l){b.L=mq(l,b.wa,null);a.C=Math.min(a.C,b.L.$b);if(!sq(b.L))return null;var m=b.Y.start;b.bandwidth=eg(l,"bandwidth",jg)||0;var p=b.L.contentType,n=p==Ib||"application"==p;p="image"==p;try{var t=function(H,I,L){return tq(a,H,I,L)};if(b.L.Xc)var y=fp(b,t);else if(b.L.Db)y=np(b,a.l);else if(b.L.Yc)y=sp(b,t,a.l,!!a.i,a.g.dash.initialSegmentLimit,a.N);else{var x=b.L.Pa,v=b.Y.duration||0;y={bc:function(){return Promise.resolve(Fj(m,v,x))}}}}catch(H){if((n||p)&&4002==H.code)return null;
668
669
  throw H;}t=Xf(l,"ContentProtection");t=Ho(t,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);t=new Set(t?[t]:[]);var w=!1;Xf(l,"SupplementalProperty").some(function(H){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==H.getAttribute("schemeIdUri")&&"JOC"==H.getAttribute("value")})&&(w=!0);var C=!1;n&&(C=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var z;if(p&&((l=Xf(l,"EssentialProperty").find(function(H){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(H.getAttribute("schemeIdUri"))}))&&
669
670
  (z=l.getAttribute("value")),!z))return null;var D;l=b.L.codecs;b.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(l.includes("hvc1.2.4.L153.B0")||l.includes("hev1.2.4.L153.B0"))&&(D="PQ");var G=b.L.id?b.ra.id+","+b.L.id:"",F={id:a.I++,originalId:b.L.id,createSegmentIndex:function(){var H,I,L;return K(function(N){if(1==N.g){I=(H=G&&b.kb&&a.l[G])?a.l[G]:F;if(I.segmentIndex)return N.D(0);L=I;return A(N,y.bc(),3)}L.segmentIndex=N.h;B(N)})},closeSegmentIndex:function(){F.segmentIndex&&
@@ -685,16 +686,16 @@ function Lq(a,b,c){b=dd(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var d
685
686
  var l=d.splice(g,d.length-g);d=c;e=[];g=[];k=[];h=null;l=r(l);for(var m=l.next();!m.done;m=l.next())m=m.value,/^(#EXT)/.test(m)?(m=Mq(a,m),Nq.includes(m.name)?f.push(m):"EXT-X-MAP"==m.name?h=m:"EXT-X-PART"==m.name?k.push(m):"EXT-X-PRELOAD-HINT"==m.name?"PART"==W(m,"TYPE")?k.push(m):"MAP"==W(m,"TYPE")&&(m.name="EXT-X-MAP",h=m):g.push(m)):/^#(?!EXT)/m.test(m)||(m=Fq(d,m.trim()),h&&g.push(h),e.push(new zq(m,g,k)),g=[],k=[]);k.length&&(h&&g.push(h),e.push(new zq("",g,k)));return new wq(c,b,f,e)}f.push(h);
686
687
  "EXT-X-STREAM-INF"==h.name&&(h.g.push(new Aq("URI",k)),e=!0)}}return new wq(c,b,f)}function Mq(a,b){a=a.g++;var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new P(2,4,4016,b);b=c[1];var d=c[2];c=[];var e;if(d){d=new Gq(d);var f;(f=Iq(d,/^([^,=]+)(?:,|$)/g))&&(e=f[1]);for(var g=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;f=Iq(d,g);)c.push(new Aq(f[1],f[2]||f[3])),Hq(d)}return new xq(a,b,c,e)}
687
688
  var Nq="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP".split(" "),Oq="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Pq(){}function Qq(a){try{var b=Rq(a);return ef({uri:a,If:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return cf(c)}}function Rq(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new P(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new P(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=md(a):e=hd(a);return{data:e,contentType:c}}
688
- M("shaka.net.DataUriPlugin",Pq);Pq.parse=Qq;of("data",Qq);function Sq(){var a=this;this.g=this.i=null;this.Aa=1;this.A=new Map;this.C=new Map;this.ua=new Set;this.h=new Map;this.j=null;this.N="";this.va=new Kq;this.ma=0;this.T=!1;this.P=null;this.$=Infinity;this.F=new Q(function(){Tq(a)});this.m=Uq;this.J=null;this.ba=0;this.H=Infinity;this.Z=this.ea=0;this.G=new lf;this.I=[];this.K=new Map;this.B=new Map;this.aa=new Map;this.l=!1}q=Sq.prototype;q.configure=function(a){this.g=a};
689
+ M("shaka.net.DataUriPlugin",Pq);Pq.parse=Qq;of("data",Qq);function Sq(){var a=this;this.g=this.i=null;this.Aa=1;this.A=new Map;this.C=new Map;this.ua=new Set;this.h=new Map;this.j=null;this.N="";this.aa=new Kq;this.ma=0;this.T=!1;this.P=null;this.$=Infinity;this.F=new Q(function(){Tq(a)});this.m=Uq;this.J=null;this.ba=0;this.H=Infinity;this.Z=this.ea=0;this.G=new lf;this.I=[];this.K=new Map;this.B=new Map;this.va=new Map;this.l=!1}q=Sq.prototype;q.configure=function(a){this.g=a};
689
690
  q.start=function(a,b){var c=this,d,e;return K(function(f){if(1==f.g)return c.i=b,c.l=b.isLowLatencyMode(),A(f,Vq(c,a),2);if(3!=f.g)return d=f.h,c.N=d.uri,A(f,Wq(c,d.data,a),3);e=c.ma;0<e&&c.F.S(e);return f.return(c.J)})};q.stop=function(){this.F&&(this.F.stop(),this.F=null);var a=[];this.G&&(a.push(this.G.destroy()),this.G=null);this.g=this.i=null;this.ua.clear();this.J=null;this.h.clear();this.C.clear();this.B.clear();this.A.clear();return Promise.all(a)};
690
691
  q.update=function(){var a=this,b,c,d,e,f,g;return K(function(h){if(1==h.g){if(a.m==Uq)return h.return();b=[];c=Array.from(a.h.values());return c.length?A(h,Xq(a,c[0]),2):h.D(2)}if(4!=h.g){for(d=1;d<c.length;d++)b.push(Xq(a,c[d]));return A(h,Promise.all(b),4)}Yq(a);e=c.some(function(k){return 0==k.Bf});e||(f=Zq,$q(a,f.Zf),g=c.map(function(k){return k.Qc}),a.j.Ua(Math.min.apply(Math,ja(g))),a.i.updateDuration());B(h)})};
691
- function Xq(a,b){var c,d,e,f,g,h,k,l,m,p,n,t;return K(function(y){if(1==y.g)return c=b.$f,d=new lb(c),a.l&&b.fg&&ob(d,new qb("_HLS_skip=YES")),A(y,Vq(a,d.toString()),2);e=y.h;f=Lq(a.va,e.data,e.uri);if(1!=f.type)throw new P(2,4,4017);g=Bq(f.g,"EXT-X-DEFINE");h=ar(a,g);k=b.stream;l=br(a,f,k.type,b.Rc,h);a.I.push(l);k.segmentIndex.lc(l,a.j.pb());l.length&&(m=Eq(f.g,"EXT-X-MEDIA-SEQUENCE"),p=b.Rc.get(m),k.segmentIndex.Hb(p));n=l[l.length-1];if(t=Dq(f.g,"EXT-X-ENDLIST"))b.Bf=!0,b.Qc=n.endTime;B(y)})}
692
+ function Xq(a,b){var c,d,e,f,g,h,k,l,m,p,n,t;return K(function(y){if(1==y.g)return c=b.$f,d=new lb(c),a.l&&b.fg&&ob(d,new qb("_HLS_skip=YES")),A(y,Vq(a,d.toString()),2);e=y.h;f=Lq(a.aa,e.data,e.uri);if(1!=f.type)throw new P(2,4,4017);g=Bq(f.g,"EXT-X-DEFINE");h=ar(a,g);k=b.stream;l=br(a,f,k.type,b.Rc,h);a.I.push(l);k.segmentIndex.lc(l,a.j.pb());l.length&&(m=Eq(f.g,"EXT-X-MEDIA-SEQUENCE"),p=b.Rc.get(m),k.segmentIndex.Hb(p));n=l[l.length-1];if(t=Dq(f.g,"EXT-X-ENDLIST"))b.Bf=!0,b.Qc=n.endTime;B(y)})}
692
693
  q.onExpirationUpdated=function(){};
693
694
  function cr(a){if(!a.T){for(var b=-1,c=new Map,d=r(a.h.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex;if(f&&(f=f.M[0]||null))for(var g=r(e.Rc),h=g.next();!h.done;h=g.next()){h=r(h.value);var k=h.next().value;if(h.next().value==f.startTime){c.set(e,k);b=Math.max(b,k);break}}}if(!(0>b)){a.P=b;b=r(a.h.values());for(e=b.next();!e.done;e=b.next())if(d=e.value,e=d.stream.segmentIndex)if(f=a.P-c.get(d),e.M.splice(0,f),e=e.M[0]||null)e=-e.startTime,d.stream.segmentIndex.offset(e),
694
695
  dr(d,e);a.T=!0}}}
695
696
  function er(a){if(!a.T&&Infinity==a.$){for(var b=Infinity,c=r(a.h.values()),d=c.next();!d.done;d=c.next())if(d=d.value.stream.segmentIndex)d=d.M[0]||null,null!=d&&null!=d.g&&(b=Math.min(b,d.g));if(Infinity!=b){a.$=b;c=r(a.h.values());for(d=c.next();!d.done;d=c.next()){d=d.value;var e=d.stream.segmentIndex;if(null!=e){var f=e.M[0]||null;if(null==f.g)Ta("Missing EXT-X-PROGRAM-DATE-TIME for stream",d.Kd,"Expect AV sync issues!");else for(dr(d,f.g-b-f.startTime),d=r(e),e=d.next();!e.done;e=d.next())e.value.Qe(b)}}a.T=
696
697
  !0}}}function dr(a,b){a.Qc+=b;for(var c=r(a.Rc),d=c.next();!d.done;d=c.next()){var e=r(d.value);d=e.next().value;e=e.next().value;a.Rc.set(d,e+b)}}
697
- function Wq(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,y,x,v,w,C,z,D,G,F,H,I,L,N,V,aa,ea,la,Ba,Ia,Ja,Na,Oa,Tc,Uc,uc,Jd,Db,Le,Vc,Kd;return K(function(Va){switch(Va.g){case 1:d=Lq(a.va,b,a.N);e=Bq(d.g,"EXT-X-DEFINE");fr(a,e);f=[];g=[];h=[];if(1==d.type)return G=a.g.hls.mediaPlaylistFullMimeType,F=G.split(";")[0],H=F.split("/")[0],I=Ad(G),L=new Map,A(Va,gr(a,d,c,c,I,H,"",!0,"Media Playlist",null,L,null,!1,!1,F),8);k=Bq(d.g,"EXT-X-MEDIA");l=Bq(d.g,"EXT-X-STREAM-INF");m=Bq(d.g,"EXT-X-IMAGE-STREAM-INF");hr(a,l);
698
+ function Wq(a,b,c){var d,e,f,g,h,k,l,m,p,n,t,y,x,v,w,C,z,D,G,F,H,I,L,N,V,aa,ea,la,Ba,Ia,Ja,Na,Oa,Tc,Uc,uc,Jd,Db,Le,Vc,Kd;return K(function(Va){switch(Va.g){case 1:d=Lq(a.aa,b,a.N);e=Bq(d.g,"EXT-X-DEFINE");fr(a,e);f=[];g=[];h=[];if(1==d.type)return G=a.g.hls.mediaPlaylistFullMimeType,F=G.split(";")[0],H=F.split("/")[0],I=Ad(G),L=new Map,A(Va,gr(a,d,c,c,I,H,"",!0,"Media Playlist",null,L,null,!1,!1,F),8);k=Bq(d.g,"EXT-X-MEDIA");l=Bq(d.g,"EXT-X-STREAM-INF");m=Bq(d.g,"EXT-X-IMAGE-STREAM-INF");hr(a,l);
698
699
  p=Bq(d.g,"EXT-X-SESSION-DATA");n=r(p);for(t=n.next();!t.done;t=n.next())if(y=t.value,x=W(y,"DATA-ID"),v=W(y,"URI"),w=W(y,"LANGUAGE"),C=W(y,"VALUE"),z=(new Map).set("id",x),v&&z.set("uri",Fq(a.N,v)),w&&z.set("language",w),C&&z.set("value",C),D=new O("sessiondata",z),a.i)a.i.onEvent(D);return A(Va,ir(a,k),4);case 4:return jr(a,k),A(Va,kr(a,l),5);case 5:return f=Va.h,A(Va,lr(a,k),6);case 6:return g=Va.h,A(Va,mr(a,m),7);case 7:h=Va.h;Va.D(3);break;case 8:N=Va.h,a.h.set(c,N),f.push({id:0,language:"und",
699
700
  disabledUntilTime:0,primary:!0,audio:"audio"==H?N.stream:null,video:"video"==H?N.stream:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.i)throw new P(2,7,7001);a.g.hls.ignoreManifestProgramDateTime?cr(a):er(a);V=Infinity;aa=r(a.h.values());for(ea=aa.next();!ea.done;ea=aa.next())la=ea.value,"text"!=la.stream.type&&(V=Math.min(V,la.Qc));a.m!=Uq?(a.j=new R(0,a.g.defaultPresentationDelay?a.g.defaultPresentationDelay:a.Z?a.Z:3*a.ba),a.j.Zc(!1)):(a.j=new R(null,
700
701
  0),a.j.Zc(!0));if(a.m!=Uq)a.ma=a.H,Ba=Zq,a.m==Ba.df&&(Ia=a.j.Ed,isNaN(a.g.availabilityWindowOverride)||(Ia=a.g.availabilityWindowOverride),a.j.Me(Ia));else for(a.j.Ua(V),Ja=r(a.h.values()),ea=Ja.next();!ea.done;ea=Ja.next())Na=ea.value,Na.stream.segmentIndex.yb(0,V);a.I=[];Oa=[];Tc=r(f);for(Uc=Tc.next();!Uc.done;Uc=Tc.next())for(uc=Uc.value,Jd=r([uc.video,uc.audio]),Db=Jd.next();!Db.done;Db=Jd.next())(Le=Db.value)&&Oa.push(Le);return A(Va,Promise.all(Oa.map(function(sg){return K(function(tg){return A(tg,
@@ -714,15 +715,15 @@ function or(a,b){var c,d,e,f,g,h,k,l,m,p,n,t,y,x;return K(function(v){if(1==v.g)
714
715
  "YES"==t;return A(v,vr(a,f,d,e,g,l,h,m,null,n,y,p),2)}x=v.h;a.C.has(c)?a.C.get(c).push(x):a.C.set(c,[x]);if(a.h.has(f))return v.return(a.h.get(f));a.h.set(f,x);return v.return(x)})}
715
716
  function pr(a,b){var c,d,e,f,g,h,k,l,m,p;return K(function(n){if(1==n.g){c=ur(yq(b,"URI"),a.A);d=W(b,"CODECS","jpeg")||"";if(a.h.has(c))return n.return(a.h.get(c));e=tr(b);f=W(b,"NAME");g=W(b,"CHARACTERISTICS");return A(n,vr(a,c,d,"image",e,!1,f,null,null,g,!1,!1),2)}h=n.h;if(a.h.has(c))return n.return(a.h.get(c));if(k=W(b,"RESOLUTION"))if(l=h.stream.segmentIndex.get(0),m=l.tilesLayout)h.stream.width=Number(k.split("x")[0])*Number(m.split("x")[0]),h.stream.height=Number(k.split("x")[1])*Number(m.split("x")[1]);
716
717
  if(p=W(b,"BANDWIDTH"))h.stream.bandwidth=Number(p);a.h.set(c,h);return n.return(h)})}function rr(a,b,c,d){var e,f,g,h;return K(function(k){if(1==k.g){e=ur(yq(b,"URI"),a.A);if(a.h.has(e))return k.return(a.h.get(e));var l=W(b,"CLOSED-CAPTIONS");f="video"==d&&l&&"NONE"!=l?a.K.get(l):null;g=Fb(d,c);return A(k,vr(a,e,g,d,"und",!1,null,null,f,null,!1,!1),2)}h=k.h;if(a.h.has(e))return k.return(a.h.get(e));a.h.set(e,h);return k.return(h)})}
717
- function vr(a,b,c,d,e,f,g,h,k,l,m,p){var n,t,y;return K(function(x){if(1==x.g)return n=Fq(a.N,b),A(x,Vq(a,n),2);t=x.h;n=t.uri;y=Lq(a.va,t.data,n);return x.return(gr(a,y,b,n,c,d,e,f,g,h,k,l,m,p))})}
718
- function gr(a,b,c,d,e,f,g,h,k,l,m,p,n,t,y){var x,v,w,C,z,D,G,F,H,I,L,N,V,aa,ea,la,Ba,Ia,Ja,Na,Oa,Tc,Uc,uc,Jd,Db,Le,Vc,Kd,Va,sg,tg,ip,jp;return K(function(Md){if(1==Md.g){if(1!=b.type)throw new P(2,4,4017);x=Bq(b.g,"EXT-X-DEFINE");v=ar(a,x);wr(a,b);return y?Md.D(2):A(Md,xr(a,f,e,b,v),3)}2!=Md.g&&(y=Md.h);w=[];if(b.segments)for(C=r(b.segments),z=C.next();!z.done;z=C.next())D=z.value,G=Bq(D.g,"EXT-X-KEY"),w.push.apply(w,ja(G));H=F=!1;I=[];L=new Set;N=r(w);for(V=N.next();!V.done;V=N.next())if(aa=V.value,
719
- ea=yq(aa,"METHOD"),"NONE"!=ea)if(F=!0,"AES-128"==ea)H=!0;else if(la=yq(aa,"KEYFORMAT"),Ia=(Ba=yr[la])?Ba(aa,y):null){if(Ia.keyIds)for(Ja=r(Ia.keyIds),Na=Ja.next();!Na.done;Na=Ja.next())Oa=Na.value,L.add(Oa);I.push(Ia)}if(F&&!I.length&&!H)throw new P(2,4,4026);gj.includes(y)&&(e="");Tc=new Map;Uc=a.l;uc=br(a,b,f,Tc,v);Uc!=a.l&&wr(a,b);Jd=uc[uc.length-1].endTime;Db=new Dj(uc);Le=f==Ib?"subtitle":void 0;Vc=[];if(p)for(Kd=r(p.split(",")),Va=Kd.next();!Va.done;Va=Kd.next())sg=Va.value,Vc.push(sg);ip=(tg=
720
- Dq(b.g,"EXT-X-SERVER-CONTROL"))?null!=tg.getAttribute("CAN-SKIP-UNTIL"):!1;jp={id:a.Aa++,originalId:k,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Db,mimeType:y,codecs:e,kind:Le,encrypted:F,drmInfos:I,keyIds:L,language:g,label:k,type:f,primary:h,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:Vc,forced:n,channelsCount:l,audioSamplingRate:null,spatialAudio:t,closedCaptions:m,hdr:void 0,tilesLayout:void 0};
721
- return Md.return({stream:jp,Kd:c,$f:d,Qc:Jd,Rc:Tc,fg:ip,Bf:!1})})}
718
+ function vr(a,b,c,d,e,f,g,h,k,l,m,p){var n,t,y;return K(function(x){if(1==x.g)return n=Fq(a.N,b),A(x,Vq(a,n),2);t=x.h;n=t.uri;y=Lq(a.aa,t.data,n);return x.return(gr(a,y,b,n,c,d,e,f,g,h,k,l,m,p))})}
719
+ function gr(a,b,c,d,e,f,g,h,k,l,m,p,n,t,y){var x,v,w,C,z,D,G,F,H,I,L,N,V,aa,ea,la,Ba,Ia,Ja,Na,Oa,Tc,Uc,uc,Jd,Db,Le,Vc,Kd,Va,sg,tg,jp,kp;return K(function(Md){if(1==Md.g){if(1!=b.type)throw new P(2,4,4017);x=Bq(b.g,"EXT-X-DEFINE");v=ar(a,x);wr(a,b);return y?Md.D(2):A(Md,xr(a,f,e,b,v),3)}2!=Md.g&&(y=Md.h);w=[];if(b.segments)for(C=r(b.segments),z=C.next();!z.done;z=C.next())D=z.value,G=Bq(D.g,"EXT-X-KEY"),w.push.apply(w,ja(G));H=F=!1;I=[];L=new Set;N=r(w);for(V=N.next();!V.done;V=N.next())if(aa=V.value,
720
+ ea=yq(aa,"METHOD"),"NONE"!=ea)if(F=!0,"AES-128"==ea)H=!0;else if(la=yq(aa,"KEYFORMAT"),Ia=(Ba=yr[la])?Ba(aa,y):null){if(Ia.keyIds)for(Ja=r(Ia.keyIds),Na=Ja.next();!Na.done;Na=Ja.next())Oa=Na.value,L.add(Oa);I.push(Ia)}if(F&&!I.length&&!H)throw new P(2,4,4026);gj.includes(y)&&(e="");Tc=new Map;Uc=a.l;uc=br(a,b,f,Tc,v);Uc!=a.l&&wr(a,b);Jd=uc[uc.length-1].endTime;Db=new Dj(uc);Le=f==Ib?"subtitle":void 0;Vc=[];if(p)for(Kd=r(p.split(",")),Va=Kd.next();!Va.done;Va=Kd.next())sg=Va.value,Vc.push(sg);jp=(tg=
721
+ Dq(b.g,"EXT-X-SERVER-CONTROL"))?null!=tg.getAttribute("CAN-SKIP-UNTIL"):!1;kp={id:a.Aa++,originalId:k,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Db,mimeType:y,codecs:e,kind:Le,encrypted:F,drmInfos:I,keyIds:L,language:g,label:k,type:f,primary:h,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:Vc,forced:n,channelsCount:l,audioSamplingRate:null,spatialAudio:t,closedCaptions:m,hdr:void 0,tilesLayout:void 0};
722
+ return Md.return({stream:kp,Kd:c,$f:d,Qc:Jd,Rc:Tc,fg:jp,Bf:!1})})}
722
723
  function zr(a,b,c){if(!window.crypto||!window.crypto.subtle)throw Ua("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new P(2,4,4042);var d=0,e=W(b,"IV","");if(e){var f=nd(e.substr(2));if(16!=f.byteLength)throw new P(2,4,4043);}else d=Eq(c.g,"EXT-X-MEDIA-SEQUENCE");b=Fq(c.h,yq(b,"URI"));var g=rf([b],a.g.retryParameters),h={method:"AES-128",iv:f,firstMediaSequenceNumber:d,fetchKey:function(){var k,l,m;return K(function(p){if(1==p.g)return A(p,
723
724
  Ar(a,g,6),2);if(3!=p.g){k=p.h;if(!k.data||16!=k.data.byteLength)throw new P(2,4,4044);l={name:"AES-CBC"};m=h;return A(p,window.crypto.subtle.importKey("raw",k.data,l,!0,["decrypt"]),3)}m.cryptoKey=p.h;h.fetchKey=void 0;B(p)})}};return h}
724
725
  function wr(a,b){var c=Dq(b.g,"EXT-X-PLAYLIST-TYPE"),d=Dq(b.g,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;if(d)$q(a,Uq);else{c?$q(a,Br):$q(a,Cr);d=Dq(b.g,"EXT-X-TARGETDURATION");if(!d)throw new P(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);c=Dq(b.g,"EXT-X-PART-INF");a.l&&c?(a.ea=Number(yq(c,"PART-TARGET")),a.H=Math.min(a.ea,a.H),b=Dq(b.g,"EXT-X-SERVER-CONTROL"),a.Z=b?Number(yq(b,"PART-HOLD-BACK")):0):a.H=Math.min(d,a.H);a.ba=Math.max(d,a.ba)}}
725
- function Dr(a,b,c,d){c=Dq(c,"EXT-X-MAP");if(!c)return null;var e=yq(c,"URI");d=ur(Fq(b,e),d);b=[d,W(c,"BYTERANGE","")].join("-");a.aa.has(b)||(c=Er(d,c),a.aa.set(b,c));return a.aa.get(b)}function Er(a,b){var c=0,d=null;if(b=W(b,"BYTERANGE"))c=b.split("@"),d=Number(c[0]),c=Number(c[1]),d=c+d-1;return new wi(function(){return[a]},c,d)}
726
+ function Dr(a,b,c,d){c=Dq(c,"EXT-X-MAP");if(!c)return null;var e=yq(c,"URI");d=ur(Fq(b,e),d);b=[d,W(c,"BYTERANGE","")].join("-");a.va.has(b)||(c=Er(d,c),a.va.set(b,c));return a.va.get(b)}function Er(a,b){var c=0,d=null;if(b=W(b,"BYTERANGE"))c=b.split("@"),d=Number(c[0]),c=Number(c[1]),d=c+d-1;return new wi(function(){return[a]},c,d)}
726
727
  function Fr(a,b,c,d,e,f,g,h,k){var l=d.g,m=ur(d.i,f),p=Dq(l,"EXTINF"),n=f=0,t=null;d.h.length&&!a.l&&Ua("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");var y=null;if(!a.g.hls.ignoreManifestProgramDateTime){var x=Dq(l,"EXT-X-PROGRAM-DATE-TIME");x&&x.value&&(y=fg(x.value))}x=zi;Dq(l,"EXT-X-GAP")&&(x=2);if(!p){if(0==d.h.length)throw new P(2,4,4024,"EXTINF");
727
728
  if(!a.l)return null}var v=[];if(a.l)for(var w={},C=0;C<d.h.length;w={Td:w.Td},C++){var z=d.h[C],D=0==C?c:v[v.length-1],G=0==C?e:D.endTime,F=Number(W(z,"DURATION"))||a.ea;if(F){F=G+F;var H=0,I=null;"EXT-X-PRELOAD-HINT"==z.name?H=(H=W(z,"BYTERANGE-START"))?Number(H):0:(H=W(z,"BYTERANGE"),I=r(Gr(D,H)),H=I.next().value,I=I.next().value);if(D=W(z,"URI"))w.Td=Fq(g,D),D=zi,"YES"==W(z,"GAP")&&(D=2),v.push(new yi(G,F,function(L){return function(){return[L.Td]}}(w),H,I,b,0,0,Infinity,[],"",null,null,D))}}p?
728
729
  f=e+Number(p.value.split(",")[0]):f=v[v.length-1].endTime;(a=Dq(l,"EXT-X-BYTERANGE"))?(t=r(Gr(c,a.value)),n=t.next().value,t=t.next().value):v.length&&(n=v[0].Va,t=v[v.length-1].Ca);c="";a=null;"image"==h&&(c="1x1",h=Dq(l,"EXT-X-TILES"))&&(c=yq(h,"LAYOUT"),(h=W(h,"DURATION"))&&(a=Number(h)));return new yi(e,f,function(){return m.length?[m]:[]},n,t,b,0,0,Infinity,v,c,a,y,x,k)}function Gr(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.Ca+1,d=c+b-1);return[c,d]}
@@ -734,10 +735,10 @@ function ur(a,b){a=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}");var c=a.mat
734
735
  function xr(a,b,c,d,e){var f,g,h,k,l,m,p,n,t,y,x,v;return K(function(w){if(1==w.g){f=Jb;g=xf;h=Math.trunc((d.segments.length-1)/2);k=ur(d.segments[h].i,e);l=new lb(k);m=l.Na.split(".").pop();p=Hr[b];if((n=p[m])||(n=Ir[m]))return w.return(n);if(b==f.ha){if("vtt"==c||"wvtt"==c)return w.return("text/vtt");if(c&&""!==c)return w.return("application/mp4")}if(b==f.Bc&&(!c||"jpeg"==c))return w.return("image/jpeg");t=rf([k],a.g.retryParameters);t.method="HEAD";return A(w,Ar(a,t,g),2)}y=w.h;x=y.headers["content-type"];
735
736
  if(!x){if(b==f.ha)return w.return("text/vtt");v=p.mp4;return w.return(v)}return w.return(x.split(";")[0])})}function Vq(a,b){b=rf([b],a.g.retryParameters);a.i.modifyManifestRequest(b,{format:"h"});return Ar(a,b,0)}function Tq(a){var b,c;K(function(d){if(1==d.g){if(!a.i)return d.return();E(d,2);return A(d,a.update(),4)}if(2!=d.g)return a.m!=Uq&&(b=a.ma,a.F.S(b)),va(d,0);c=J(d);if(!a.i)return d.return();c.severity=1;a.i.onError(c);a.F.S(.1);B(d)})}
736
737
  function $q(a,b){a.m=b;a.j&&a.j.Zc(a.m==Uq);a.m!=Uq||a.F.stop()}function Ar(a,b,c){if(!a.G)throw new P(2,7,7001);b=a.i.networkingEngine.request(c,b);mf(a.G,b);return b.promise}M("shaka.hls.HlsParser",Sq);
737
- var Ir={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},Hr={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",vtt:"text/vtt",webvtt:"text/vtt",
738
- ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},yr={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new P(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new P(2,4,4041);return Eb("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0)}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=yq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;b=yq(a,
739
- "URI");b=Rq(b);b=Ec(b.data);b=Eb("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=W(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=yq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=yq(a,"URI");a=Rq(a);a=Ec(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Vf(a,b,new Set,0);return Eb("com.microsoft.playready",[{initDataType:"cenc",initData:a}])}},Uq="VOD",Cr=
740
- "EVENT",Br="LIVE",Zq={Zf:Uq,Vh:Cr,df:Br};Sc("Tizen 3")||Sc("Tizen 2")||Xc()||(hh.m3u8=function(){return new Sq},fh["application/x-mpegurl"]=function(){return new Sq},fh["application/vnd.apple.mpegurl"]=function(){return new Sq});function Jr(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,If:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=gd(b)}catch(g){}throw new P(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function Kr(){}function Lr(a,b,c,d,e){var f=new Mr;Ff(b.headers).forEach(function(l,m){f.append(m,l)});var g=new Nr,h={lf:!1,Tf:!1};a=Or(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 bf(a,function(){h.lf=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new Q(function(){h.Tf=!0;g.abort()});k.S(b/1E3);a.finally(function(){k.stop()})}return a}
738
+ var Ir={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},Hr={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",tsa:"video/mp2t"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t",tsv:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",
739
+ 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"}},yr={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new P(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new P(2,4,4041);return Eb("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0)}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=yq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;
740
+ b=yq(a,"URI");b=Rq(b);b=Ec(b.data);b=Eb("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=W(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=yq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=yq(a,"URI");a=Rq(a);a=Ec(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Vf(a,b,new Set,0);return Eb("com.microsoft.playready",[{initDataType:"cenc",initData:a}])}},Uq="VOD",
741
+ Cr="EVENT",Br="LIVE",Zq={Zf:Uq,Uh:Cr,df:Br};Sc("Tizen 3")||Sc("Tizen 2")||Xc()||(hh.m3u8=function(){return new Sq},fh["application/x-mpegurl"]=function(){return new Sq},fh["application/vnd.apple.mpegurl"]=function(){return new Sq});function Jr(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,If:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=gd(b)}catch(g){}throw new P(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function Kr(){}function Lr(a,b,c,d,e){var f=new Mr;Ff(b.headers).forEach(function(l,m){f.append(m,l)});var g=new Nr,h={lf:!1,Tf:!1};a=Or(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 bf(a,function(){h.lf=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new Q(function(){h.Tf=!0;g.abort()});k.S(b/1E3);a.finally(function(){k.stop()})}return a}
741
742
  function Or(a,b,c,d,e,f,g){var h,k,l,m,p,n,t,y,x,v,w,C,z;return K(function(D){switch(D.g){case 1:return h=Pr,k=Qr,n=p=0,t=Date.now(),E(D,2),A(D,h(a,c),4);case 4:return l=D.h,f(Rr(l.headers)),y=l.clone().body.getReader(),v=(x=l.headers.get("Content-Length"))?parseInt(x,10):0,w=function(G){function F(){var H,I;return K(function(L){switch(L.g){case 1:return E(L,2),A(L,y.read(),4);case 4:H=L.h;va(L,3);break;case 2:return J(L),L.return();case 3:if(H.done){L.D(5);break}p+=H.value.byteLength;if(!g){L.D(5);
742
743
  break}return A(L,g(H.value),5);case 5:I=Date.now();if(100<I-t||H.done)e(I-t,p-n,v-p),n=p,t=I;H.done?G.close():(G.enqueue(H.value),F());B(L)}})}F()},new k({start:w}),A(D,l.arrayBuffer(),5);case 5:m=D.h;va(D,3);break;case 2:C=J(D);if(d.lf)throw new P(1,1,7001,a,b);if(d.Tf)throw new P(1,1,1003,a,b);throw new P(1,1,1002,a,C,b);case 3:return z=Rr(l.headers),D.return(Jr(z,m,l.status,a,l.url,b))}})}function Rr(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}
743
744
  function Sr(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;return!(!window.fetch||!window.AbortController)}M("shaka.net.HttpFetchPlugin",Kr);Kr.isSupported=Sr;Kr.parse=Lr;var Pr=window.fetch,Nr=window.AbortController,Qr=window.ReadableStream,Mr=window.Headers;Sr()&&(of("http",Lr,2,!0),of("https",Lr,2,!0),of("blob",Lr,2,!0));function Tr(){}
@@ -766,7 +767,7 @@ Gs.prototype.Ec=function(a){var b,c,d,e,f,g;return K(function(h){if(1==h.g){b=[]
766
767
  Infinity:a.expiration,originalManifestUri:a.originalManifestUri,sessionIds:a.sessionIds,size:a.size,streams:g,sequenceMode:!1})})};
767
768
  function Hs(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,
768
769
  dataKey:d.dataKey,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}};function Is(){ms.apply(this,arguments)}u(Is,ms);q=Is.prototype;q.hasFixedKeySpace=function(){return!1};q.addSegments=function(a){return this.add(this.i,a)};q.addManifests=function(a){return this.add(this.g,a)};q.updateManifest=function(a,b){return qs(this,a,b)};q.Ec=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function Js(){this.m=this.j=this.i=this.h=this.g=this.l=null}q=Js.prototype;
769
- q.init=function(){var a=this,b=new Lc,c=!1,d=new Q(function(){c=!0;b.reject(new P(2,9,9017))});d.S(2);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 Bs(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new Gs(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;g=g.contains("manifest-v3")&&g.contains("segment-v3")?
770
+ q.init=function(){var a=this,b=new Lc,c=!1,d=new Q(function(){c=!0;b.reject(new P(2,9,9017))});d.S(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 Bs(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new Gs(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;g=g.contains("manifest-v3")&&g.contains("segment-v3")?
770
771
  new Gs(f,"segment-v3","manifest-v3"):null;a.i=g;g=f.objectStoreNames;g=g.contains("manifest-v5")&&g.contains("segment-v5")?new Is(f,"segment-v5","manifest-v5"):null;a.j=g;f=f.objectStoreNames.contains("session-ids")?new rs(f):null;a.m=f;d.stop();b.resolve()}};e.onupgradeneeded=function(){for(var f=e.result,g=r(["segment-v5","manifest-v5","session-ids"]),h=g.next();!h.done;h=g.next())h=h.value,f.objectStoreNames.contains(h)||f.createObjectStore(h,{autoIncrement:!0})};e.onerror=function(f){c||(b.reject(new P(2,
771
772
  9,9001,e.error)),d.stop(),f.preventDefault())};return b};q.destroy=function(){var a=this;return K(function(b){switch(b.g){case 1:if(!a.g){b.D(2);break}return A(b,a.g.destroy(),2);case 2:if(!a.h){b.D(4);break}return A(b,a.h.destroy(),4);case 4:if(!a.i){b.D(6);break}return A(b,a.i.destroy(),6);case 6:if(!a.j){b.D(8);break}return A(b,a.j.destroy(),8);case 8:if(!a.m){b.D(10);break}return A(b,a.m.destroy(),10);case 10:a.l&&a.l.close(),B(b)}})};
772
773
  q.getCells=function(){var a=new Map;this.g&&a.set("v1",this.g);this.h&&a.set("v2",this.h);this.i&&a.set("v3",this.i);this.j&&a.set("v5",this.j);return a};q.getEmeSessionCell=function(){return this.m};
@@ -826,116 +827,116 @@ function Qt(){fb.call(this);this.h=!1;this.g=void 0;this.onabort=null}u(Qt,fb);f
826
827
  function Zt(){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}}),
827
828
  Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",$t);document.addEventListener("webkitfullscreenerror",$t);document.addEventListener("mozfullscreenchange",$t);document.addEventListener("mozfullscreenerror",$t);document.addEventListener("MSFullscreenChange",$t);document.addEventListener("MSFullscreenError",$t)}}
828
829
  function $t(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)}Lt.Fullscreen=Yt;Yt.install=Zt;Ot(Zt);function au(){}function bu(){var a=!0;if(Yc()||Sc("PlayStation 5")||Zc()||Sc("Web0S")||Wc()||Sc("CrKey")||Sc("PC=EOS")||Sc("Hisense")||Sc("VIDAA"))a=!1;a&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),cu=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=du)}
829
- function du(a){var b,c,d,e,f,g,h,k,l,m,p,n,t,y,x,v,w;return K(function(C){switch(C.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return C.return(b);c=a.video;d=a.audio;if("media-source"==a.type){if(!Oc())return C.return(b);if(c){if(Sc("CrKey")){if(!window.cast)throw new P(2,8,8E3);if(cast.__platform__&&cast.__platform__.canDisplayType){var z=c.contentType;c.width&&c.height&&(z+="; width="+c.width+"; height="+c.height);c.framerate&&(z+="; framerate="+
830
- c.framerate);"pq"===c.transferFunction&&(z+="; eotf=smpte2084");z=cast.__platform__.canDisplayType(z)}else z=MediaSource.isTypeSupported(c.contentType)}else z=MediaSource.isTypeSupported(c.contentType);e=z;if(!e)return C.return(b)}if(d&&(f=d.contentType,g=MediaSource.isTypeSupported(f),!g))return C.return(b)}else if("file"==a.type){if(c&&(h=c.contentType,k=Pc(h),!k)||d&&(l=d.contentType,m=Pc(l),!m))return C.return(b)}else return C.return(b);if(!a.keySystemConfiguration)return b.supported=!0,C.return(Promise.resolve(b));
830
+ function du(a){var b,c,d,e,f,g,h,k,l,m,p,n,t,y,x,v,w;return K(function(C){switch(C.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return C.return(b);c=a.video;d=a.audio;if("media-source"==a.type){if(!Oc())return C.return(b);if(c){if(Sc("CrKey"))if(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType){var z=c.contentType;c.width&&c.height&&(z+="; width="+c.width+"; height="+c.height);c.framerate&&(z+="; framerate="+c.framerate);"pq"===
831
+ c.transferFunction&&(z+="; eotf=smpte2084");z=cast.__platform__.canDisplayType(z)}else z=MediaSource.isTypeSupported(c.contentType);else z=MediaSource.isTypeSupported(c.contentType);e=z;if(!e)return C.return(b)}if(d&&(f=d.contentType,g=MediaSource.isTypeSupported(f),!g))return C.return(b)}else if("file"==a.type){if(c&&(h=c.contentType,k=Pc(h),!k)||d&&(l=d.contentType,m=Pc(l),!m))return C.return(b)}else return C.return(b);if(!a.keySystemConfiguration)return b.supported=!0,C.return(Promise.resolve(b));
831
832
  p=a.keySystemConfiguration;n=[];t=[];p.audio&&(y={robustness:p.audio.robustness||"",contentType:a.audio.contentType},n.push(y));p.video&&(x={robustness:p.video.robustness||"",contentType:a.video.contentType},t.push(x));v={initDataTypes:[p.initDataType],distinctiveIdentifier:p.distinctiveIdentifier,persistentState:p.persistentState,sessionTypes:p.sessionTypes};n.length&&(v.audioCapabilities=n);t.length&&(v.videoCapabilities=t);E(C,3);return A(C,navigator.requestMediaKeySystemAccess(p.keySystem,[v]),
832
- 5);case 5:w=C.h;va(C,4);break;case 3:J(C);case 4:w&&(b.supported=!0,b.keySystemAccess=w);case 2:return C.return(b)}})}Lt.MediaCapabilities=au;au.install=bu;var cu=null;au.originalMcap=cu;Ot(bu,-1);function eu(){}function fu(){var a=$c();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?gu():a?12>=a?(hu(),iu()):hu():(Sc("Tizen 2")||Sc("Tizen 3")||Sc("Tizen 4"))&&ju());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&ku()}
833
- function hu(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Fa.apply(0,arguments));b.abort=function(){};return b}}function iu(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function ju(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=zd(b)[0]&&a(b)}}
834
- function gu(){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)}}
835
- function ku(){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)})}Lt.MediaSource=eu;eu.install=fu;Ot(fu);function lu(){}function mu(){screen.orientation||void 0!=window.orientation&&nu()}function nu(){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 ou;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new O("change");b.dispatchEvent(c)})}Lt.Orientation=lu;
836
- lu.install=mu;function ou(){fb.call(this);this.type="";this.angle=0}u(ou,fb);
837
- ou.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)};
838
- ou.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};Ot(mu);function pu(){}function qu(a,b){try{var c=new ru(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function su(a){var b=this.mediaKeys;b&&b!=a&&tu(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?tu(a,this):Promise.resolve()}function uu(a){a=Ec(a.initData);if(Hc(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=ed(a.subarray(4),!0);a=hd(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Fc(a);this.dispatchEvent(b)}
839
- Lt.PatchedMediaKeysApple=pu;pu.install=function(){window.HTMLVideoElement&&window.WebKitMediaKeys&&(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=su,window.MediaKeys=vu,window.MediaKeySystemAccess=ru,navigator.requestMediaKeySystemAccess=qu,window.shakaMediaKeysPolyfill=!0)};
840
- function ru(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=r(b),b=a.next();!b.done;b=a.next()){var c=b.value;if("required"==c.persistentState)b=null;else{b={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:c.initDataTypes,sessionTypes:["temporary"],label:c.label};var d=!1,e=!1;if(c.audioCapabilities)for(var f=r(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
833
+ 5);case 5:w=C.h;va(C,4);break;case 3:J(C);case 4:w&&(b.supported=!0,b.keySystemAccess=w);case 2:return C.return(b)}})}Lt.MediaCapabilities=au;au.install=bu;var cu=null;au.originalMcap=cu;Ot(bu,-1);function eu(){}function fu(){var a=$c();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?gu():a?12>=a?(hu(),iu()):15>=a&&hu():navigator.userAgent.match(/Edge?\//)?ju():(Sc("Tizen 2")||Sc("Tizen 3")||Sc("Tizen 4"))&&ku());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&lu()}
834
+ function hu(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Fa.apply(0,arguments));b.abort=function(){};return b}}function iu(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function ju(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"mp2t"!=b.split(";")[0].split("/")[1]&&a(b)}}
835
+ function ku(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=zd(b)[0]&&a(b)}}function gu(){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)}}
836
+ function lu(){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)})}Lt.MediaSource=eu;eu.install=fu;Ot(fu);function mu(){}function nu(){screen.orientation||void 0!=window.orientation&&ou()}function ou(){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 pu;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new O("change");b.dispatchEvent(c)})}Lt.Orientation=mu;
837
+ mu.install=nu;function pu(){fb.call(this);this.type="";this.angle=0}u(pu,fb);
838
+ pu.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)};
839
+ pu.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};Ot(nu);function qu(){}function ru(a,b){try{var c=new su(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function tu(a){var b=this.mediaKeys;b&&b!=a&&uu(b,null);delete this.mediaKeys;return(this.mediaKeys=a)?uu(a,this):Promise.resolve()}function vu(a){a=Ec(a.initData);if(Hc(a).getUint32(0,!0)+4!=a.byteLength)throw new RangeError("Malformed FairPlay init data");a=ed(a.subarray(4),!0);a=hd(a);var b=new Event("encrypted");b.initDataType="skd";b.initData=Fc(a);this.dispatchEvent(b)}
840
+ Lt.PatchedMediaKeysApple=qu;qu.install=function(){window.HTMLVideoElement&&window.WebKitMediaKeys&&(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=tu,window.MediaKeys=wu,window.MediaKeySystemAccess=su,navigator.requestMediaKeySystemAccess=ru,window.shakaMediaKeysPolyfill=!0)};
841
+ function su(a,b){this.keySystem=a;if(a.startsWith("com.apple.fps"))for(a=r(b),b=a.next();!b.done;b=a.next()){var c=b.value;if("required"==c.persistentState)b=null;else{b={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:c.initDataTypes,sessionTypes:["temporary"],label:c.label};var d=!1,e=!1;if(c.audioCapabilities)for(var f=r(c.audioCapabilities),g=f.next();!g.done;g=f.next())g=g.value,g.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,
841
842
  g.contentType.split(";")[0])&&(b.audioCapabilities.push(g),e=!0));if(c.videoCapabilities)for(c=r(c.videoCapabilities),g=c.next();!g.done;g=c.next())f=g.value,f.contentType&&(d=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,f.contentType.split(";")[0])&&(b.videoCapabilities.push(f),e=!0));d||(e=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4"));b=e?b:null}if(b){this.g=b;return}}a=Error("Unsupported keySystem");a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}
842
- ru.prototype.createMediaKeys=function(){var a=new vu(this.keySystem);return Promise.resolve(a)};ru.prototype.getConfiguration=function(){return this.g};function vu(a){this.h=new WebKitMediaKeys(a);this.g=new Af}vu.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new wu(this.h,a)};vu.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
843
- function tu(a,b){a.g.Sb();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",uu);try{return nj(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}function wu(a){fb.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new Af;this.sessionId="";this.expiration=NaN;this.closed=new Lc;this.keyStatuses=new xu}u(wu,fb);q=wu.prototype;
844
- q.generateRequest=function(a,b){var c=this;this.h=new Lc;try{var d=this.l.createSession("video/mp4",Ec(b));this.i=d;this.sessionId=d.sessionId||"";this.j.o(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.fc()?"license-request":"license-renewal").set("message",Fc(e.message));e=new O("message",e);c.dispatchEvent(e)});this.j.o(d,"webkitkeyadded",function(){c.g&&(yu(c,"usable"),c.g.resolve(),c.g=null)});this.j.o(d,"webkitkeyerror",
845
- 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:yu(c,"output-not-allowed");break;default:yu(c,"internal-error")}});yu(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};q.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
846
- q.update=function(a){this.g=new Lc;try{this.i.update(Ec(a))}catch(b){this.g.reject(b)}return this.g};q.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Sb()}catch(a){this.closed.reject(a)}return this.closed};q.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function yu(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new O("keystatuseschange");a.dispatchEvent(b)}
847
- function xu(){this.size=0;this.g=void 0}q=xu.prototype;q.fc=function(){return this.g};q.forEach=function(a){this.g&&a(this.g,ch.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=ch.value();return this.g&&Cc(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};function zu(){}function Au(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=Bu,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Cu,window.MediaKeys=Du,window.MediaKeySystemAccess=Eu,window.shakaMediaKeysPolyfill=!0)}function Bu(){return Promise.reject(Error("The key system specified is not supported."))}
848
- function Cu(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}Lt.PatchedMediaKeysNop=zu;zu.install=Au;function Du(){throw new TypeError("Illegal constructor.");}Du.prototype.createSession=function(){};Du.prototype.setServerCertificate=function(){};function Eu(){this.keySystem="";throw new TypeError("Illegal constructor.");}Eu.prototype.getConfiguration=function(){};Eu.prototype.createMediaKeys=function(){};Ot(Au,-10);function Fu(){}
849
- function Gu(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)Hu="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=Iu;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=Ju;window.MediaKeys=Ku;window.MediaKeySystemAccess=Lu;window.shakaMediaKeysPolyfill=!0}}
850
- function Mu(a){var b=Hu;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function Iu(a,b){try{var c=new Lu(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function Ju(a){var b=this.mediaKeys;b&&b!=a&&Nu(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&Nu(a,this);return Promise.resolve()}Lt.PatchedMediaKeysWebkit=Fu;Fu.install=Gu;
851
- function Lu(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");b=r(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:f.initDataTypes,sessionTypes:["temporary"],label:f.label},h=!1;if(f.audioCapabilities)for(var k=r(f.audioCapabilities),
843
+ su.prototype.createMediaKeys=function(){var a=new wu(this.keySystem);return Promise.resolve(a)};su.prototype.getConfiguration=function(){return this.g};function wu(a){this.h=new WebKitMediaKeys(a);this.g=new Af}wu.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");return new xu(this.h,a)};wu.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
844
+ function uu(a,b){a.g.Sb();if(!b)return Promise.resolve();a.g.o(b,"webkitneedkey",vu);try{return nj(b,HTMLMediaElement.HAVE_METADATA,a.g,function(){b.webkitSetMediaKeys(a.h)}),Promise.resolve()}catch(c){return Promise.reject(c)}}function xu(a){fb.call(this);this.i=null;this.l=a;this.g=this.h=null;this.j=new Af;this.sessionId="";this.expiration=NaN;this.closed=new Lc;this.keyStatuses=new yu}u(xu,fb);q=xu.prototype;
845
+ q.generateRequest=function(a,b){var c=this;this.h=new Lc;try{var d=this.l.createSession("video/mp4",Ec(b));this.i=d;this.sessionId=d.sessionId||"";this.j.o(this.i,"webkitkeymessage",function(e){c.h&&(c.h.resolve(),c.h=null);e=(new Map).set("messageType",void 0==c.keyStatuses.fc()?"license-request":"license-renewal").set("message",Fc(e.message));e=new O("message",e);c.dispatchEvent(e)});this.j.o(d,"webkitkeyadded",function(){c.g&&(zu(c,"usable"),c.g.resolve(),c.g=null)});this.j.o(d,"webkitkeyerror",
846
+ 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:zu(c,"output-not-allowed");break;default:zu(c,"internal-error")}});zu(this,"status-pending")}catch(e){this.h.reject(e)}return this.h};q.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))};
847
+ q.update=function(a){this.g=new Lc;try{this.i.update(Ec(a))}catch(b){this.g.reject(b)}return this.g};q.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Sb()}catch(a){this.closed.reject(a)}return this.closed};q.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function zu(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new O("keystatuseschange");a.dispatchEvent(b)}
848
+ function yu(){this.size=0;this.g=void 0}q=yu.prototype;q.fc=function(){return this.g};q.forEach=function(a){this.g&&a(this.g,ch.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=ch.value();return this.g&&Cc(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};function Au(){}function Bu(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=Cu,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Du,window.MediaKeys=Eu,window.MediaKeySystemAccess=Fu,window.shakaMediaKeysPolyfill=!0)}function Cu(){return Promise.reject(Error("The key system specified is not supported."))}
849
+ function Du(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}Lt.PatchedMediaKeysNop=Au;Au.install=Bu;function Eu(){throw new TypeError("Illegal constructor.");}Eu.prototype.createSession=function(){};Eu.prototype.setServerCertificate=function(){};function Fu(){this.keySystem="";throw new TypeError("Illegal constructor.");}Fu.prototype.getConfiguration=function(){};Fu.prototype.createMediaKeys=function(){};Ot(Bu,-10);function Gu(){}
850
+ function Hu(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)Iu="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=Ju;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=Ku;window.MediaKeys=Lu;window.MediaKeySystemAccess=Mu;window.shakaMediaKeysPolyfill=!0}}
851
+ function Nu(a){var b=Iu;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function Ju(a,b){try{var c=new Mu(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function Ku(a){var b=this.mediaKeys;b&&b!=a&&Ou(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&Ou(a,this);return Promise.resolve()}Lt.PatchedMediaKeysWebkit=Gu;Gu.install=Hu;
852
+ function Mu(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");b=r(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:f.initDataTypes,sessionTypes:["temporary"],label:f.label},h=!1;if(f.audioCapabilities)for(var k=r(f.audioCapabilities),
852
853
  l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType.split(";")[0],this.g)&&(g.audioCapabilities.push(l),d=!0));if(f.videoCapabilities)for(k=r(f.videoCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType,this.g)&&(g.videoCapabilities.push(l),d=!0));h||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==f.persistentState&&(c?(g.persistentState="required",g.sessionTypes=["persistent-license"]):
853
- 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;}Lu.prototype.createMediaKeys=function(){var a=new Ku(this.g);return Promise.resolve(a)};Lu.prototype.getConfiguration=function(){return this.h};function Ku(a){this.l=a;this.h=null;this.g=new Af;this.i=[];this.j=new Map}
854
- function Nu(a,b){a.h=b;a.g.Sb();var c=Hu;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Fc(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=Ou(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.fc()?"licenserequest":"licenserenewal").set("message",d.message),d=new O("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){if(d=Ou(a,d.sessionId))Pu(d,"usable"),
855
- d.g&&d.g.resolve(),d.g=null}),a.g.o(b,c+"keyerror",function(d){var e=Ou(a,d.sessionId);e&&e.handleError(d)}))}Ku.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 Qu(b,this.l,a);this.i.push(a);return a};Ku.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
856
- function Ou(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 Qu(a,b,c){fb.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 Lc;this.keyStatuses=new Ru}u(Qu,fb);q=Qu.prototype;
857
- q.handleError=function(a){var b=Error("EME v0.1b key error"),c=a.errorCode;c.systemCode=a.systemCode;b.errorCode=c;!a.sessionId&&this.h?(45==a.systemCode&&(b.message="Unsupported session type."),this.h.reject(b),this.h=null):a.sessionId&&this.g?(this.g.reject(b),this.g=null):(b=a.systemCode,a.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?Pu(this,"output-restricted"):1==b?Pu(this,"expired"):Pu(this,"internal-error"))};
858
- function Su(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=Ec(hd("LOAD_SESSION|"+c));else{var e=hd("PERSISTENT|");d=pd(e,b)}else d=Ec(b)}catch(g){return Promise.reject(g)}a.h=new Lc;var f=Mu("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new Q(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).S(.01)}return a.h}
859
- function Tu(a,b,c){if(a.g)a.g.then(function(){return Tu(a,b,c)}).catch(function(){return Tu(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=dd(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=md(e.keys[0].k);e=md(e.keys[0].kid)}else d=Ec(c),e=null;var f=Mu("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
860
- function Pu(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new O("keystatuseschange");a.dispatchEvent(b)}q.generateRequest=function(a,b){return Su(this,b,null)};q.load=function(a){return"persistent-license"==this.l?Su(this,null,a):Promise.reject(Error("Not a persistent session."))};q.update=function(a){var b=new Lc;Tu(this,b,a);return b};
861
- q.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=Mu("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};q.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function Ru(){this.size=0;this.g=void 0}q=Ru.prototype;q.fc=function(){return this.g};
862
- q.forEach=function(a){this.g&&a(this.g,ch.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=ch.value();return this.g&&Cc(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};var Hu="";Ot(Gu);function Uu(){}function Vu(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Wu,Object.defineProperty(a,"disablePictureInPicture",{get:Xu,set:Yu,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Zu,document.addEventListener("webkitpresentationmodechanged",$u,!0))}}
863
- function $u(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)}
864
- function Wu(){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 Zu(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
865
- function Xu(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Yu(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}Lt.PiPWebkit=Uu;Uu.install=Vu;Ot(Vu);function av(){}function bv(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=cv))}function cv(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}Lt.RandomUUID=av;av.install=bv;Ot(bv);function dv(){}function ev(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=fv)}function fv(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}Lt.StorageEstimate=dv;dv.install=ev;Ot(ev);function gv(){}function hv(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:iv})}function iv(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}Lt.Symbol=gv;gv.install=hv;Ot(hv);function jv(){}function kv(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}Lt.VideoPlayPromise=jv;jv.install=kv;Ot(kv);function lv(){}function mv(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Xc())&&(a.getVideoPlaybackQuality=nv)}}function nv(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}Lt.VideoPlaybackQuality=lv;lv.install=mv;Ot(mv);function ov(){}function pv(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=qv;else if(6==b)a=rv;else{try{var c=!!qv(1,2,"")}catch(d){c=!1}c&&(a=qv)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function qv(a,b,c){return new window.TextTrackCue(a,b,c)}function rv(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}Lt.VTTCue=ov;ov.install=pv;Ot(pv);function sv(){}sv.prototype.parseInit=function(){};sv.prototype.setSequenceMode=function(){};sv.prototype.parseMedia=function(a,b){var c=null,d=[];a=dd(a).split(/\r?\n/);a=r(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=tv.exec(e))){var f=uv.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new gc(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};M("shaka.text.LrcTextParser",sv);sv.prototype.parseMedia=sv.prototype.parseMedia;
866
- sv.prototype.setSequenceMode=sv.prototype.setSequenceMode;sv.prototype.parseInit=sv.prototype.parseInit;var tv=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,uv=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Dd["application/x-subtitle-lrc"]=function(){return new sv};function vv(){}vv.prototype.parseInit=function(){};vv.prototype.setSequenceMode=function(){};
867
- vv.prototype.parseMedia=function(a,b){var c=dd(a);a=[];if(""==c)return a;var d=ng(c,"tt");if(!d)throw new P(2,2,2005,"Failed to parse TTML.");c=d.getElementsByTagName("body")[0];if(!c)return[];var e=bg(d,wv,"frameRate"),f=bg(d,wv,"subFrameRate"),g=bg(d,wv,"frameRateMultiplier"),h=bg(d,wv,"tickRate"),k=bg(d,wv,"cellResolution"),l=d.getAttribute("xml:space")||"default",m=bg(d,xv,"extent");if("default"!=l&&"preserve"!=l)throw new P(2,2,2005,"Invalid xml:space value: "+l);l="default"==l;e=new yv(e,f,
868
- 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])?$f(f):[];g=Array.from(d.getElementsByTagName("style"));d=Array.from(d.getElementsByTagName("region"));h=[];for(var p=r(d),n=p.next();!n.done;n=p.next()){var t=n.value;n=new ic;var y=t.getAttribute("xml:id");if(y){n.id=y;var x=null;m&&(x=zv.exec(m)||Av.exec(m));y=x?Number(x[1]):null;x=x?Number(x[2]):null;var v,w;if(v=Bv(t,g,"extent"))v=(w=zv.exec(v))||Av.exec(v),
869
- null!=v&&(n.width=Number(v[1]),n.height=Number(v[2]),w||(null!=y&&(n.width=100*n.width/y),null!=x&&(n.height=100*n.height/x)),n.widthUnits=w||null!=y?zc:0,n.heightUnits=w||null!=x?zc:0);if(t=Bv(t,g,"origin"))v=(w=zv.exec(t))||Av.exec(t),null!=v&&(n.viewportAnchorX=Number(v[1]),n.viewportAnchorY=Number(v[2]),w||(null!=x&&(n.viewportAnchorY=100*n.viewportAnchorY/x),null!=y&&(n.viewportAnchorX=100*n.viewportAnchorX/y)),n.viewportAnchorUnits=w||null!=y?zc:0)}else n=null;n&&h.push(n)}if(Xf(c,"p").length)throw new P(2,
870
- 2,2001,"<p> can only be inside <div> in TTML");m=r(Xf(c,"div"));for(p=m.next();!p.done;p=m.next())if(Xf(p.value,"span").length)throw new P(2,2,2001,"<span> can only be inside <p> in TTML");if(b=Cv(c,b,e,f,g,d,h,l,k,null,!1))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a};
871
- function Cv(a,b,c,d,e,f,g,h,k,l,m){var p=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var n=document.createElement("span");n.textContent=a.textContent}else n=a;for(var t=null,y=r(Dv),x=y.next();!x.done&&!(t=Ev(n,"backgroundImage",d,"#",x.value)[0]);x=y.next());y=m;if("p"==a.nodeName||t)m=!0;h="default"==(n.getAttribute("xml:space")||(h?"default":"preserve"));x=Array.from(n.childNodes).every(function(D){return D.nodeType==Node.TEXT_NODE});
872
- a=[];if(!x)for(var v=r(n.childNodes),w=v.next();!w.done;w=v.next())(w=Cv(w.value,b,c,d,e,f,g,h,k,n,m))&&a.push(w);d=null!=l;v=/\S/.test(n.textContent);var C=n.hasAttribute("begin")||n.hasAttribute("end")||n.hasAttribute("dur");if(!(C||v||"br"==n.tagName||0!=a.length||d&&!h))return null;w=Fv(n,c);v=w.start;for(w=w.end;p&&p.nodeType==Node.ELEMENT_NODE&&"tt"!=p.tagName;)w=Gv(p,c,v,w),v=w.start,w=w.end,p=p.parentNode;null==v&&(v=0);v+=b.periodStart;w=null==w?Infinity:w+b.periodStart;v=Math.max(v,b.segmentStart);
873
- w=Math.min(w,b.segmentEnd);if(!C&&0<a.length)for(v=Infinity,w=0,b=r(a),c=b.next();!c.done;c=b.next())c=c.value,v=Math.min(v,c.startTime),w=Math.max(w,c.endTime);if("br"==n.tagName)return e=new gc(v,w,""),e.lineBreak=!0,e;b="";x&&(b=n.textContent,h&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new gc(v,w,b);b.nestedCues=a;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=Ev(n,"region",f,"")[0];if(n.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var z=k.getAttribute("xml:id");b.region=g.filter(function(D){return D.id==
874
- z})[0]}g=k;l&&d&&!n.getAttribute("region")&&!n.getAttribute("style")&&(g=Ev(l,"region",f,"")[0]);Hv(b,n,g,t,e,y,0==a.length);return b}
875
- function Hv(a,b,c,d,e,f,g){f=f||g;"rtl"==Iv(b,c,e,"direction",f)&&(a.direction="rtl");g=Iv(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=hc);(g=Iv(b,c,e,"textAlign",!0))?(a.positionAlign=Jv[g],a.lineAlign=Kv[g],a.textAlign=sc[g.toUpperCase()]):a.textAlign=kc;if(g=Iv(b,c,e,"displayAlign",!0))a.displayAlign=tc[g.toUpperCase()];if(g=Iv(b,c,e,"color",f))a.color=g;if(g=Iv(b,c,e,"backgroundColor",
876
- f))a.backgroundColor=g;if(g=Iv(b,c,e,"border",f))a.border=g;if(g=Iv(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=Iv(b,c,e,"fontWeight",f))&&
877
- "bold"==g&&(a.fontWeight=700);g=Iv(b,c,e,"wrapOption",f);a.wrapLine=g&&"noWrap"==g?!1:!0;(g=Iv(b,c,e,"lineHeight",f))&&g.match(Lv)&&(a.lineHeight=g);(g=Iv(b,c,e,"fontSize",f))&&(g.match(Lv)||g.match(Mv))&&(a.fontSize=g);if(g=Iv(b,c,e,"fontStyle",f))a.fontStyle=yc[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=Iv(b,c,e,"textOutline",
878
- f))d=d.split(" "),d[0].match(Lv)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match(Lv)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=Iv(b,c,e,"letterSpacing",f))&&d.match(Lv)&&(a.letterSpacing=d);(d=Iv(b,c,e,"linePadding",f))&&d.match(Lv)&&(a.linePadding=d);if(f=Iv(b,c,e,"opacity",f))a.opacity=parseFloat(f);(c=Bv(c,e,"textDecoration"))&&Nv(a,c);(b=Ov(b,e,"textDecoration"))&&Nv(a,b)}
879
- function Nv(a,b){b=r(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&dc(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&dc(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
880
- a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&dc(a.textDecoration,"overline")}}function Iv(a,b,c,d,e){e=void 0===e?!0:e;return(a=Ov(a,c,d))?a:e?Bv(b,c,d):null}function Bv(a,b,c){if(!a)return null;var d=bg(a,xv,c);return d?d:Pv(a,b,c)}function Ov(a,b,c){var d=bg(a,xv,c);return d?d:Pv(a,b,c)}
881
- function Pv(a,b,c){a=Ev(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=ag(a[e],"urn:ebu:tt:style",c);f||(f=bg(a[e],xv,c));f||(f=Ov(a[e],b,c));f&&(d=f)}return d}
882
- function Ev(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?ag(g,e,b):g.getAttribute(b))&&(g=g.parentNode,g instanceof Element););if(b=a)for(b=r(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=r(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.getAttribute("xml:id")==e){f.push(g);break}return f}function Gv(a,b,c,d){a=Fv(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}}
883
- function Fv(a,b){var c=Qv(a.getAttribute("begin"),b),d=Qv(a.getAttribute("end"),b);a=Qv(a.getAttribute("dur"),b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}}
884
- function Qv(a,b){var c=null;if(Rv.test(a)){a=Rv.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(Sv.test(a))c=Tv(Sv,a);else if(Uv.test(a))c=Tv(Uv,a);else if(Vv.test(a))a=Vv.exec(a),c=Number(a[1])/b.frameRate;else if(Wv.test(a))a=Wv.exec(a),c=Number(a[1])/b.g;else if(Xv.test(a))c=Tv(Xv,a);else if(a)throw new P(2,2,2001,"Could not parse cue time range in TTML");return c}
885
- function Tv(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)}M("shaka.text.TtmlTextParser",vv);vv.prototype.parseMedia=vv.prototype.parseMedia;vv.prototype.setSequenceMode=vv.prototype.setSequenceMode;vv.prototype.parseInit=vv.prototype.parseInit;
886
- function yv(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]))}
887
- var zv=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,Mv=/^(\d{1,2}(?:\.\d+)?|100)%$/,Lv=/^(\d+px|\d+em|\d*\.?\d+c)$/,Av=/^(\d+)px (\d+)px$/,Rv=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Sv=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Uv=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Vv=/^(\d*(?:\.\d*)?)f$/,Wv=/^(\d*(?:\.\d*)?)t$/,Xv=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),Kv={left:nc,center:"center",right:"end",start:nc,
888
- end:"end"},Jv={left:"line-left",center:"center",right:"line-right"},wv=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],xv=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],Dv=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Dd["application/ttml+xml"]=function(){return new vv};function Yv(){this.g=new vv}Yv.prototype.parseInit=function(a){var b=!1;(new Lf).box("moov",Pf).box("trak",Pf).box("mdia",Pf).box("minf",Pf).box("stbl",Pf).X("stsd",Rf).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new P(2,2,2007);};Yv.prototype.setSequenceMode=function(){};Yv.prototype.parseMedia=function(a,b){var c=this,d=!1,e=[];(new Lf).box("mdat",Sf(function(f){d=!0;e=e.concat(c.g.parseMedia(f,b))})).parse(a,!1);if(!d)throw new P(2,2,2007);return e};
889
- M("shaka.text.Mp4TtmlParser",Yv);Yv.prototype.parseMedia=Yv.prototype.parseMedia;Yv.prototype.setSequenceMode=Yv.prototype.setSequenceMode;Yv.prototype.parseInit=Yv.prototype.parseInit;Dd['application/mp4; codecs="stpp"']=function(){return new Yv};Dd['application/mp4; codecs="stpp.ttml"']=function(){return new Yv};Dd['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new Yv};Dd['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new Yv};function Zv(){this.g=!1}Zv.prototype.parseInit=function(){};Zv.prototype.setSequenceMode=function(a){this.g=a};
890
- Zv.prototype.parseMedia=function(a,b){a=dd(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 P(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=$v(new Gq(d[1]));if(null==a)throw new P(2,2,2E3);e=Number(e[1]);for(d=b.segmentStart-b.periodStart;95443.7176888889<=d;)d-=95443.7176888889,e+=8589934592;a=b.periodStart+
854
+ 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;}Mu.prototype.createMediaKeys=function(){var a=new Lu(this.g);return Promise.resolve(a)};Mu.prototype.getConfiguration=function(){return this.h};function Lu(a){this.l=a;this.h=null;this.g=new Af;this.i=[];this.j=new Map}
855
+ function Ou(a,b){a.h=b;a.g.Sb();var c=Iu;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Fc(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=Pu(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.fc()?"licenserequest":"licenserenewal").set("message",d.message),d=new O("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){if(d=Pu(a,d.sessionId))Qu(d,"usable"),
856
+ d.g&&d.g.resolve(),d.g=null}),a.g.o(b,c+"keyerror",function(d){var e=Pu(a,d.sessionId);e&&e.handleError(d)}))}Lu.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 Ru(b,this.l,a);this.i.push(a);return a};Lu.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
857
+ function Pu(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 Ru(a,b,c){fb.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 Lc;this.keyStatuses=new Su}u(Ru,fb);q=Ru.prototype;
858
+ q.handleError=function(a){var b=Error("EME v0.1b key error"),c=a.errorCode;c.systemCode=a.systemCode;b.errorCode=c;!a.sessionId&&this.h?(45==a.systemCode&&(b.message="Unsupported session type."),this.h.reject(b),this.h=null):a.sessionId&&this.g?(this.g.reject(b),this.g=null):(b=a.systemCode,a.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?Qu(this,"output-restricted"):1==b?Qu(this,"expired"):Qu(this,"internal-error"))};
859
+ function Tu(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=Ec(hd("LOAD_SESSION|"+c));else{var e=hd("PERSISTENT|");d=pd(e,b)}else d=Ec(b)}catch(g){return Promise.reject(g)}a.h=new Lc;var f=Nu("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new Q(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).S(.01)}return a.h}
860
+ function Uu(a,b,c){if(a.g)a.g.then(function(){return Uu(a,b,c)}).catch(function(){return Uu(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=dd(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=md(e.keys[0].k);e=md(e.keys[0].kid)}else d=Ec(c),e=null;var f=Nu("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
861
+ function Qu(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new O("keystatuseschange");a.dispatchEvent(b)}q.generateRequest=function(a,b){return Tu(this,b,null)};q.load=function(a){return"persistent-license"==this.l?Tu(this,null,a):Promise.reject(Error("Not a persistent session."))};q.update=function(a){var b=new Lc;Uu(this,b,a);return b};
862
+ q.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=Nu("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};q.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function Su(){this.size=0;this.g=void 0}q=Su.prototype;q.fc=function(){return this.g};
863
+ q.forEach=function(a){this.g&&a(this.g,ch.value())};q.get=function(a){if(this.has(a))return this.g};q.has=function(a){var b=ch.value();return this.g&&Cc(a,b)?!0:!1};q.entries=function(){};q.keys=function(){};q.values=function(){};var Iu="";Ot(Hu);function Vu(){}function Wu(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Xu,Object.defineProperty(a,"disablePictureInPicture",{get:Yu,set:Zu,enumerable:!0,configurable:!0}),document.exitPictureInPicture=$u,document.addEventListener("webkitpresentationmodechanged",av,!0))}}
864
+ function av(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)}
865
+ function Xu(){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 $u(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
866
+ function Yu(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function Zu(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}Lt.PiPWebkit=Vu;Vu.install=Wu;Ot(Wu);function bv(){}function cv(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=dv))}function dv(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}Lt.RandomUUID=bv;bv.install=cv;Ot(cv);function ev(){}function fv(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=gv)}function gv(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}Lt.StorageEstimate=ev;ev.install=fv;Ot(fv);function hv(){}function iv(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:jv})}function jv(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}Lt.Symbol=hv;hv.install=iv;Ot(iv);function kv(){}function lv(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b.catch(function(){});return b}}}Lt.VideoPlayPromise=kv;kv.install=lv;Ot(lv);function mv(){}function nv(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Xc())&&(a.getVideoPlaybackQuality=ov)}}function ov(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}Lt.VideoPlaybackQuality=mv;mv.install=nv;Ot(nv);function pv(){}function qv(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=rv;else if(6==b)a=sv;else{try{var c=!!rv(1,2,"")}catch(d){c=!1}c&&(a=rv)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function rv(a,b,c){return new window.TextTrackCue(a,b,c)}function sv(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}Lt.VTTCue=pv;pv.install=qv;Ot(qv);function tv(){}tv.prototype.parseInit=function(){};tv.prototype.setSequenceMode=function(){};tv.prototype.parseMedia=function(a,b){var c=null,d=[];a=dd(a).split(/\r?\n/);a=r(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=uv.exec(e))){var f=vv.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new gc(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d};M("shaka.text.LrcTextParser",tv);tv.prototype.parseMedia=tv.prototype.parseMedia;
867
+ tv.prototype.setSequenceMode=tv.prototype.setSequenceMode;tv.prototype.parseInit=tv.prototype.parseInit;var uv=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,vv=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Dd["application/x-subtitle-lrc"]=function(){return new tv};function wv(){}wv.prototype.parseInit=function(){};wv.prototype.setSequenceMode=function(){};
868
+ wv.prototype.parseMedia=function(a,b){var c=dd(a);a=[];if(""==c)return a;var d=ng(c,"tt");if(!d)throw new P(2,2,2005,"Failed to parse TTML.");c=d.getElementsByTagName("body")[0];if(!c)return[];var e=bg(d,xv,"frameRate"),f=bg(d,xv,"subFrameRate"),g=bg(d,xv,"frameRateMultiplier"),h=bg(d,xv,"tickRate"),k=bg(d,xv,"cellResolution"),l=d.getAttribute("xml:space")||"default",m=bg(d,yv,"extent");if("default"!=l&&"preserve"!=l)throw new P(2,2,2005,"Invalid xml:space value: "+l);l="default"==l;e=new zv(e,f,
869
+ 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])?$f(f):[];g=Array.from(d.getElementsByTagName("style"));d=Array.from(d.getElementsByTagName("region"));h=[];for(var p=r(d),n=p.next();!n.done;n=p.next()){var t=n.value;n=new ic;var y=t.getAttribute("xml:id");if(y){n.id=y;var x=null;m&&(x=Av.exec(m)||Bv.exec(m));y=x?Number(x[1]):null;x=x?Number(x[2]):null;var v,w;if(v=Cv(t,g,"extent"))v=(w=Av.exec(v))||Bv.exec(v),
870
+ null!=v&&(n.width=Number(v[1]),n.height=Number(v[2]),w||(null!=y&&(n.width=100*n.width/y),null!=x&&(n.height=100*n.height/x)),n.widthUnits=w||null!=y?zc:0,n.heightUnits=w||null!=x?zc:0);if(t=Cv(t,g,"origin"))v=(w=Av.exec(t))||Bv.exec(t),null!=v&&(n.viewportAnchorX=Number(v[1]),n.viewportAnchorY=Number(v[2]),w||(null!=x&&(n.viewportAnchorY=100*n.viewportAnchorY/x),null!=y&&(n.viewportAnchorX=100*n.viewportAnchorX/y)),n.viewportAnchorUnits=w||null!=y?zc:0)}else n=null;n&&h.push(n)}if(Xf(c,"p").length)throw new P(2,
871
+ 2,2001,"<p> can only be inside <div> in TTML");m=r(Xf(c,"div"));for(p=m.next();!p.done;p=m.next())if(Xf(p.value,"span").length)throw new P(2,2,2001,"<span> can only be inside <p> in TTML");if(b=Dv(c,b,e,f,g,d,h,l,k,null,!1))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a};
872
+ function Dv(a,b,c,d,e,f,g,h,k,l,m){var p=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var n=document.createElement("span");n.textContent=a.textContent}else n=a;for(var t=null,y=r(Ev),x=y.next();!x.done&&!(t=Fv(n,"backgroundImage",d,"#",x.value)[0]);x=y.next());y=m;if("p"==a.nodeName||t)m=!0;h="default"==(n.getAttribute("xml:space")||(h?"default":"preserve"));x=Array.from(n.childNodes).every(function(D){return D.nodeType==Node.TEXT_NODE});
873
+ a=[];if(!x)for(var v=r(n.childNodes),w=v.next();!w.done;w=v.next())(w=Dv(w.value,b,c,d,e,f,g,h,k,n,m))&&a.push(w);d=null!=l;v=/\S/.test(n.textContent);var C=n.hasAttribute("begin")||n.hasAttribute("end")||n.hasAttribute("dur");if(!(C||v||"br"==n.tagName||0!=a.length||d&&!h))return null;w=Gv(n,c);v=w.start;for(w=w.end;p&&p.nodeType==Node.ELEMENT_NODE&&"tt"!=p.tagName;)w=Hv(p,c,v,w),v=w.start,w=w.end,p=p.parentNode;null==v&&(v=0);v+=b.periodStart;w=null==w?Infinity:w+b.periodStart;v=Math.max(v,b.segmentStart);
874
+ w=Math.min(w,b.segmentEnd);if(!C&&0<a.length)for(v=Infinity,w=0,b=r(a),c=b.next();!c.done;c=b.next())c=c.value,v=Math.min(v,c.startTime),w=Math.max(w,c.endTime);if("br"==n.tagName)return e=new gc(v,w,""),e.lineBreak=!0,e;b="";x&&(b=n.textContent,h&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new gc(v,w,b);b.nestedCues=a;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=Fv(n,"region",f,"")[0];if(n.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var z=k.getAttribute("xml:id");b.region=g.filter(function(D){return D.id==
875
+ z})[0]}g=k;l&&d&&!n.getAttribute("region")&&!n.getAttribute("style")&&(g=Fv(l,"region",f,"")[0]);Iv(b,n,g,t,e,y,0==a.length);return b}
876
+ function Iv(a,b,c,d,e,f,g){f=f||g;"rtl"==Jv(b,c,e,"direction",f)&&(a.direction="rtl");g=Jv(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=hc);(g=Jv(b,c,e,"textAlign",!0))?(a.positionAlign=Kv[g],a.lineAlign=Lv[g],a.textAlign=sc[g.toUpperCase()]):a.textAlign=kc;if(g=Jv(b,c,e,"displayAlign",!0))a.displayAlign=tc[g.toUpperCase()];if(g=Jv(b,c,e,"color",f))a.color=g;if(g=Jv(b,c,e,"backgroundColor",
877
+ f))a.backgroundColor=g;if(g=Jv(b,c,e,"border",f))a.border=g;if(g=Jv(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=Jv(b,c,e,"fontWeight",f))&&
878
+ "bold"==g&&(a.fontWeight=700);g=Jv(b,c,e,"wrapOption",f);a.wrapLine=g&&"noWrap"==g?!1:!0;(g=Jv(b,c,e,"lineHeight",f))&&g.match(Mv)&&(a.lineHeight=g);(g=Jv(b,c,e,"fontSize",f))&&(g.match(Mv)||g.match(Nv))&&(a.fontSize=g);if(g=Jv(b,c,e,"fontStyle",f))a.fontStyle=yc[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=Jv(b,c,e,"textOutline",
879
+ f))d=d.split(" "),d[0].match(Mv)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match(Mv)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=Jv(b,c,e,"letterSpacing",f))&&d.match(Mv)&&(a.letterSpacing=d);(d=Jv(b,c,e,"linePadding",f))&&d.match(Mv)&&(a.linePadding=d);if(f=Jv(b,c,e,"opacity",f))a.opacity=parseFloat(f);(c=Cv(c,e,"textDecoration"))&&Ov(a,c);(b=Pv(b,e,"textDecoration"))&&Ov(a,b)}
880
+ function Ov(a,b){b=r(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&dc(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&dc(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
881
+ a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&dc(a.textDecoration,"overline")}}function Jv(a,b,c,d,e){e=void 0===e?!0:e;return(a=Pv(a,c,d))?a:e?Cv(b,c,d):null}function Cv(a,b,c){if(!a)return null;var d=bg(a,yv,c);return d?d:Qv(a,b,c)}function Pv(a,b,c){var d=bg(a,yv,c);return d?d:Qv(a,b,c)}
882
+ function Qv(a,b,c){a=Fv(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=ag(a[e],"urn:ebu:tt:style",c);f||(f=bg(a[e],yv,c));f||(f=Pv(a[e],b,c));f&&(d=f)}return d}
883
+ function Fv(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?ag(g,e,b):g.getAttribute(b))&&(g=g.parentNode,g instanceof Element););if(b=a)for(b=r(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=r(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.getAttribute("xml:id")==e){f.push(g);break}return f}function Hv(a,b,c,d){a=Gv(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}}
884
+ function Gv(a,b){var c=Rv(a.getAttribute("begin"),b),d=Rv(a.getAttribute("end"),b);a=Rv(a.getAttribute("dur"),b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}}
885
+ function Rv(a,b){var c=null;if(Sv.test(a)){a=Sv.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(Tv.test(a))c=Uv(Tv,a);else if(Vv.test(a))c=Uv(Vv,a);else if(Wv.test(a))a=Wv.exec(a),c=Number(a[1])/b.frameRate;else if(Xv.test(a))a=Xv.exec(a),c=Number(a[1])/b.g;else if(Yv.test(a))c=Uv(Yv,a);else if(a)throw new P(2,2,2001,"Could not parse cue time range in TTML");return c}
886
+ function Uv(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)}M("shaka.text.TtmlTextParser",wv);wv.prototype.parseMedia=wv.prototype.parseMedia;wv.prototype.setSequenceMode=wv.prototype.setSequenceMode;wv.prototype.parseInit=wv.prototype.parseInit;
887
+ function zv(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]))}
888
+ var Av=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,Nv=/^(\d{1,2}(?:\.\d+)?|100)%$/,Mv=/^(\d+px|\d+em|\d*\.?\d+c)$/,Bv=/^(\d+)px (\d+)px$/,Sv=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Tv=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Vv=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Wv=/^(\d*(?:\.\d*)?)f$/,Xv=/^(\d*(?:\.\d*)?)t$/,Yv=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),Lv={left:nc,center:"center",right:"end",start:nc,
889
+ end:"end"},Kv={left:"line-left",center:"center",right:"line-right"},xv=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],yv=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],Ev=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Dd["application/ttml+xml"]=function(){return new wv};function Zv(){this.g=new wv}Zv.prototype.parseInit=function(a){var b=!1;(new Lf).box("moov",Pf).box("trak",Pf).box("mdia",Pf).box("minf",Pf).box("stbl",Pf).X("stsd",Rf).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new P(2,2,2007);};Zv.prototype.setSequenceMode=function(){};Zv.prototype.parseMedia=function(a,b){var c=this,d=!1,e=[];(new Lf).box("mdat",Sf(function(f){d=!0;e=e.concat(c.g.parseMedia(f,b))})).parse(a,!1);if(!d)throw new P(2,2,2007);return e};
890
+ M("shaka.text.Mp4TtmlParser",Zv);Zv.prototype.parseMedia=Zv.prototype.parseMedia;Zv.prototype.setSequenceMode=Zv.prototype.setSequenceMode;Zv.prototype.parseInit=Zv.prototype.parseInit;Dd['application/mp4; codecs="stpp"']=function(){return new Zv};Dd['application/mp4; codecs="stpp.ttml"']=function(){return new Zv};Dd['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new Zv};Dd['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new Zv};function $v(){this.g=!1}$v.prototype.parseInit=function(){};$v.prototype.setSequenceMode=function(a){this.g=a};
891
+ $v.prototype.parseMedia=function(a,b){a=dd(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 P(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=aw(new Gq(d[1]));if(null==a)throw new P(2,2,2E3);e=Number(e[1]);for(d=b.segmentStart-b.periodStart;95443.7176888889<=d;)d-=95443.7176888889,e+=8589934592;a=b.periodStart+
891
892
  e/9E4-a}}b=[];e=r(c[0].split("\n"));for(d=e.next();!d.done;d=e.next())if(d=d.value,/^Region:/.test(d)){d=new Gq(d);var f=new ic;Jq(d);Hq(d);for(var g=Jq(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))?
892
- (h.viewportAnchorX=Number(g[1]),h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up");Hq(d);g=Jq(d)}b.push(f)}e=new Map;aw(e);d=[];c=r(c.slice(1));for(f=c.next();!f.done;f=c.next()){f=f.value.split("\n");if((1!=f.length||f[0])&&!/^NOTE($|[ \t])/.test(f[0])&&"STYLE"==f[0]){h=[];g=-1;for(k=1;k<f.length;k++)f[k].includes("::cue")&&(h.push([]),g=h.length-1),-1!=g&&(h[g].push(f[k]),f[k].includes("}")&&(g=-1));h=r(h);for(g=h.next();!g.done;g=h.next()){var l=g.value;g="global";(k=l[0].match(/\((.*)\)/))&&
893
+ (h.viewportAnchorX=Number(g[1]),h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up");Hq(d);g=Jq(d)}b.push(f)}e=new Map;bw(e);d=[];c=r(c.slice(1));for(f=c.next();!f.done;f=c.next()){f=f.value.split("\n");if((1!=f.length||f[0])&&!/^NOTE($|[ \t])/.test(f[0])&&"STYLE"==f[0]){h=[];g=-1;for(k=1;k<f.length;k++)f[k].includes("::cue")&&(h.push([]),g=h.length-1),-1!=g&&(h[g].push(f[k]),f[k].includes("}")&&(g=-1));h=r(h);for(g=h.next();!g.done;g=h.next()){var l=g.value;g="global";(k=l[0].match(/\((.*)\)/))&&
893
894
  (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 gc(0,0,""));for(var m=!1,p=0;p<k.length;p++){var n=/^\s*([^:]+):\s*(.*)/.exec(k[p]);if(n){var t=n[2].trim().replace(";","");switch(n[1].trim()){case "background-color":case "background":m=!0;l.backgroundColor=t;break;case "color":m=!0;l.color=t;break;case "font-family":m=!0;l.fontFamily=t;break;case "font-size":m=!0;l.fontSize=t;break;case "font-weight":if(700<=parseInt(t,10)||"bold"==
894
895
  t)m=!0,l.fontWeight=700;break;case "font-style":switch(t){case "normal":m=!0;l.fontStyle=qc;break;case "italic":m=!0;l.fontStyle="italic";break;case "oblique":m=!0,l.fontStyle="oblique"}break;case "opacity":m=!0;l.opacity=parseFloat(t);break;case "text-shadow":m=!0;l.textShadow=t;break;case "white-space":m=!0,l.wrapLine="noWrap"!=t}}}m&&e.set(g,l)}}m=a;if(1==f.length&&!f[0]||/^NOTE($|[ \t])/.test(f[0])||"STYLE"==f[0]||"REGION"==f[0])f=null;else{h=null;f[0].includes("--\x3e")||(h=f[0],f.splice(0,1));
895
- g=new Gq(f[0]);k=$v(g);p=Iq(g,/[ \t]+--\x3e[ \t]+/g);l=$v(g);if(null==k||null==p||null==l)throw new P(2,2,2001,"Could not parse cue time range in WebVTT");k+=m;l+=m;m=bw(f.slice(1).join("\n").trim());e.has("global")?(f=e.get("global").clone(),f.startTime=k,f.endTime=l,f.payload=""):f=new gc(k,l,"");cw(m,f,e);Hq(g);for(k=Jq(g);k;)dw(f,k,b),Hq(g),k=Jq(g);null!=h&&(f.id=h)}f&&d.push(f)}return d};
896
- function aw(a){for(var b=r(Object.entries(wc)),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;var e=new gc(0,0,"");e.color=d;a.set("."+c,e)}b=r(Object.entries(xc));for(c=b.next();!c.done;c=b.next())d=r(c.value),c=d.next().value,d=d.next().value,e=new gc(0,0,""),e.backgroundColor=d,a.set("."+c,e)}
897
- function cw(a,b,c){0===c.size&&aw(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=
896
+ g=new Gq(f[0]);k=aw(g);p=Iq(g,/[ \t]+--\x3e[ \t]+/g);l=aw(g);if(null==k||null==p||null==l)throw new P(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 gc(k,l,"");cw(m,f,e);Hq(g);for(k=Jq(g);k;)dw(f,k,b),Hq(g),k=Jq(g);null!=h&&(f.id=h)}f&&d.push(f)}return d};
897
+ function bw(a){for(var b=r(Object.entries(wc)),c=b.next();!c.done;c=b.next()){var d=r(c.value);c=d.next().value;d=d.next().value;var e=new gc(0,0,"");e.color=d;a.set("."+c,e)}b=r(Object.entries(xc));for(c=b.next();!c.done;c=b.next())d=r(c.value),c=d.next().value,d=d.next().value,e=new gc(0,0,""),e.backgroundColor=d,a.set("."+c,e)}
898
+ function cw(a,b,c){0===c.size&&bw(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=
898
899
  a.substr(f,e-f),f.match(ew)&&d.push(f),f=-1);d=r(d);for(e=d.next();!e.done;e=d.next())e=e.value,a=a.replace("<"+e+">",'<div time="'+e+'">'),a+="</div>";a:{e=a;f=[];g=-1;d="";a=!1;for(h=0;h<e.length;h++)if("/"===e[h]){k=e.indexOf(">",h);if(-1===k){a=e;break a}if((k=e.substring(h+1,k))&&"v"==k){a=!0;var l=null;f.length&&(l=f[f.length-1]);if(l){if(l===k)d+="/"+k+">";else{if(!l.startsWith("v")){d+=e[h];continue}d+="/"+l+">"}h+=k.length+1}else d+=e[h]}else d+=e[h]}else"<"===e[h]?(g=h+1,"v"!=e[g]&&(g=-1)):
899
- ">"===e[h]&&0<g&&(f.push(e.substr(g,h-g)),g=-1),d+=e[h];e=r(f);for(f=e.next();!f.done;f=e.next())f=f.value,g=f.replace(" ",".voice-"),d=d.replace("<"+f+">","<"+g+">"),d=d.replace("</"+f+">","</"+g+">"),a||(d+="</"+g+">");a=d}if(e=ng("<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=a;return}a=r(e);for(e=a.next();!e.done;e=a.next())fw(e.value,b,d,c);b.nestedCues=d}else b.payload=a}
900
- function gw(a,b){return a&&0<a.length?a:b}
901
- function fw(a,b,c,d){var e=b.clone();if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var f=r(a.nodeName.split(/(?=[ .])+/g)),g=f.next();!g.done;g=f.next()){var h=g=g.value;if(h.startsWith(".voice-")){var k=h.split("-").pop();h='v[voice="'+k+'"]';d.has(h)||(h="v[voice="+k+"]")}d.has(h)&&(h=d.get(h))&&(e.backgroundColor=gw(h.backgroundColor,e.backgroundColor),e.color=gw(h.color,e.color),e.fontFamily=gw(h.fontFamily,e.fontFamily),e.fontSize=gw(h.fontSize,e.fontSize),e.fontWeight=h.fontWeight,e.fontStyle=
902
- h.fontStyle,e.opacity=h.opacity,e.wrapLine=h.wrapLine);switch(g){case "br":g=b.clone();g.lineBreak=!0;c.push(g);break;case "b":e.fontWeight=700;break;case "i":e.fontStyle="italic";break;case "u":e.textDecoration.push("underline");break;case "div":if(g=a.getAttribute("time"))if(g=$v(new Gq(g)))e.startTime=g}}if(dg(a))for(f=!0,d=r(a.textContent.split("\n")),a=d.next();!a.done;a=d.next())a=a.value,f||(f=b.clone(),f.lineBreak=!0,c.push(f)),0<a.length&&(f=e.clone(),f.payload=a,c.push(f)),f=!1;else for(b=
903
- r(a.childNodes),a=b.next();!a.done;a=b.next())fw(a.value,e,c,d)}
900
+ ">"===e[h]&&0<g&&(f.push(e.substr(g,h-g)),g=-1),d+=e[h];e=r(f);for(f=e.next();!f.done;f=e.next())f=f.value,g=f.replace(" ",".voice-"),d=d.replace("<"+f+">","<"+g+">"),d=d.replace("</"+f+">","</"+g+">"),a||(d+="</"+g+">");a=d}if(e=ng("<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=fw(a);return}a=r(e);for(e=a.next();!e.done;e=a.next())gw(e.value,b,d,c);b.nestedCues=d}else b.payload=fw(a)}
901
+ function hw(a,b){return a&&0<a.length?a:b}
902
+ function gw(a,b,c,d){var e=b.clone();if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var f=r(a.nodeName.split(/(?=[ .])+/g)),g=f.next();!g.done;g=f.next()){var h=g=g.value;if(h.startsWith(".voice-")){var k=h.split("-").pop();h='v[voice="'+k+'"]';d.has(h)||(h="v[voice="+k+"]")}d.has(h)&&(h=d.get(h))&&(e.backgroundColor=hw(h.backgroundColor,e.backgroundColor),e.color=hw(h.color,e.color),e.fontFamily=hw(h.fontFamily,e.fontFamily),e.fontSize=hw(h.fontSize,e.fontSize),e.fontWeight=h.fontWeight,e.fontStyle=
903
+ h.fontStyle,e.opacity=h.opacity,e.wrapLine=h.wrapLine);switch(g){case "br":g=b.clone();g.lineBreak=!0;c.push(g);break;case "b":e.fontWeight=700;break;case "i":e.fontStyle="italic";break;case "u":e.textDecoration.push("underline");break;case "div":if(g=a.getAttribute("time"))if(g=aw(new Gq(g)))e.startTime=g}}if(dg(a))for(f=!0,d=r(a.textContent.split("\n")),a=d.next();!a.done;a=d.next())a=a.value,f||(f=b.clone(),f.lineBreak=!0,c.push(f)),0<a.length&&(f=e.clone(),f.payload=fw(a),c.push(f)),f=!1;else for(b=
904
+ r(a.childNodes),a=b.next();!a.done;a=b.next())gw(a.value,e,c,d)}
904
905
  function dw(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=kc:a.textAlign=sc[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|center|start|end))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"==b||"end"==
905
- b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=hw(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=vc[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=mc,a.line=Number(c[1]),c[2]&&(a.lineAlign=vc[c[2].toUpperCase()])}function hw(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}
906
- function $v(a){a=Iq(a,ew);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 bw(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||""}M("shaka.text.VttTextParser",Zv);Zv.prototype.parseMedia=Zv.prototype.parseMedia;
907
- Zv.prototype.setSequenceMode=Zv.prototype.setSequenceMode;Zv.prototype.parseInit=Zv.prototype.parseInit;var ew=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;Dd["text/vtt"]=function(){return new Zv};Dd['text/vtt; codecs="vtt"']=function(){return new Zv};Dd['text/vtt; codecs="wvtt"']=function(){return new Zv};function iw(){this.g=null}iw.prototype.parseInit=function(a){var b=this,c=!1;(new Lf).box("moov",Pf).box("trak",Pf).box("mdia",Pf).X("mdhd",function(d){d=ri(d.reader,d.version);b.g=d.timescale}).box("minf",Pf).box("stbl",Pf).X("stsd",Rf).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new P(2,2,2008);if(!c)throw new P(2,2,2008);};iw.prototype.setSequenceMode=function(){};
908
- iw.prototype.parseMedia=function(a,b){if(!this.g)throw new P(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Lf).box("moof",Pf).box("traf",Pf).X("tfdt",function(z){g=!0;c=qi(z.reader,z.version).gf}).X("tfhd",function(z){l=pi(z.reader,z.flags).tf}).X("trun",function(z){h=!0;d=si(z.reader,z.version,z.flags).Lf}).box("mdat",Sf(function(z){k=!0;e=z})).parse(a,!1);if(!k&&!g&&!h)throw new P(2,2,2008);a=c;for(var m=new If(e,0),p=r(d),n=p.next();!n.done;n=p.next()){n=n.value;var t=n.Be||l,y=n.Hd?
909
- c+n.Hd:a;a=y+(t||0);var x=0;do{var v=m.R();x+=v;var w=m.R(),C=null;"vttc"==Tf(w)?8<v&&(C=m.Cb(v-8)):m.skip(v-8);t&&C&&(v=jw(C,b.periodStart+y/this.g,b.periodStart+a/this.g),f.push(v))}while(n.sampleSize&&x<n.sampleSize)}return f.filter(Bb)};function jw(a,b,c){var d,e,f;(new Lf).box("payl",Sf(function(g){d=dd(g)})).box("iden",Sf(function(g){e=dd(g)})).box("sttg",Sf(function(g){f=dd(g)})).parse(a);return d?kw(d,e,f,b,c):null}
910
- function kw(a,b,c,d,e){d=new gc(d,e,"");cw(a,d,new Map);b&&(d.id=b);if(c)for(a=new Gq(c),b=Jq(a);b;)dw(d,b,[]),Hq(a),b=Jq(a);return d}M("shaka.text.Mp4VttParser",iw);iw.prototype.parseMedia=iw.prototype.parseMedia;iw.prototype.setSequenceMode=iw.prototype.setSequenceMode;iw.prototype.parseInit=iw.prototype.parseInit;Dd['application/mp4; codecs="wvtt"']=function(){return new iw};function lw(){}lw.prototype.parseInit=function(){};lw.prototype.setSequenceMode=function(){};lw.prototype.parseMedia=function(a){var b=dd(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=r(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new Gq(c[0]),e=mw(d),f=Iq(d,/,/g);d=mw(d);if(null==e||null==f||null==d)throw new P(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new gc(e,d,c.slice(1).join("\n").trim()))}return a};
911
- function mw(a){a=Iq(a,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}M("shaka.text.SbvTextParser",lw);lw.prototype.parseMedia=lw.prototype.parseMedia;lw.prototype.setSequenceMode=lw.prototype.setSequenceMode;lw.prototype.parseInit=lw.prototype.parseInit;Dd["text/x-subviewer"]=function(){return new lw};function nw(){this.g=new Zv}nw.prototype.parseInit=function(){};nw.prototype.setSequenceMode=function(){};nw.prototype.parseMedia=function(a,b){a=dd(a);a=ow(a);a=Ec(hd(a));return this.g.parseMedia(a,b)};function ow(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=r(a.split("\n\n"));for(var c=a.next();!c.done;c=a.next())c=c.value.split(/\n/),c[0].match(/\d+/)&&c.shift(),c[0]=c[0].replace(/,/g,"."),b+=c.join("\n")+"\n\n";return b}M("shaka.text.SrtTextParser",nw);
912
- nw.srt2webvtt=ow;nw.prototype.parseMedia=nw.prototype.parseMedia;nw.prototype.setSequenceMode=nw.prototype.setSequenceMode;nw.prototype.parseInit=nw.prototype.parseInit;Dd["text/srt"]=function(){return new nw};function pw(){}pw.prototype.parseInit=function(){};pw.prototype.setSequenceMode=function(){};
913
- pw.prototype.parseMedia=function(a){var b="",c="";a=dd(a).split(/\r?\n\s*\r?\n/);a=r(a);for(var d=a.next();!d.done;d=a.next()){var e=qw.exec(d.value);e&&(d=e[1],e=e[2],"V4 Styles"==d||"V4+ Styles"==d?b=e:"Events"==d&&(c=e))}a=[];d=null;b=r(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=rw.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(sw);else if("Style"==e){e=f.split(sw);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
914
- [];b=null;e={};c=r(c.split(/\r?\n/));for(f=c.next();!f.done;e={Zd:e.Zd},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=rw.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(sw);else if("Dialogue"==f){g=g.split(sw);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=tw(f.Start);var k=tw(f.End);g=new gc(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.Zd=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.Zd}}(e)))&&uw(g,f);d.push(g)}return d};
915
- function uw(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=vw(c))a.color=c;if(c=b.BackColour)if(c=vw(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=oc;a.textAlign="start";break;case 2:a.displayAlign=oc;a.textAlign=kc;break;case 3:a.displayAlign=oc;a.textAlign="end";
906
+ b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=iw(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=vc[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=mc,a.line=Number(c[1]),c[2]&&(a.lineAlign=vc[c[2].toUpperCase()])}function iw(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}
907
+ function aw(a){a=Iq(a,ew);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 fw(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||""}M("shaka.text.VttTextParser",$v);$v.prototype.parseMedia=$v.prototype.parseMedia;
908
+ $v.prototype.setSequenceMode=$v.prototype.setSequenceMode;$v.prototype.parseInit=$v.prototype.parseInit;var ew=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;Dd["text/vtt"]=function(){return new $v};Dd['text/vtt; codecs="vtt"']=function(){return new $v};Dd['text/vtt; codecs="wvtt"']=function(){return new $v};function jw(){this.g=null}jw.prototype.parseInit=function(a){var b=this,c=!1;(new Lf).box("moov",Pf).box("trak",Pf).box("mdia",Pf).X("mdhd",function(d){d=ri(d.reader,d.version);b.g=d.timescale}).box("minf",Pf).box("stbl",Pf).X("stsd",Rf).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new P(2,2,2008);if(!c)throw new P(2,2,2008);};jw.prototype.setSequenceMode=function(){};
909
+ jw.prototype.parseMedia=function(a,b){if(!this.g)throw new P(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new Lf).box("moof",Pf).box("traf",Pf).X("tfdt",function(z){g=!0;c=qi(z.reader,z.version).gf}).X("tfhd",function(z){l=pi(z.reader,z.flags).tf}).X("trun",function(z){h=!0;d=si(z.reader,z.version,z.flags).Lf}).box("mdat",Sf(function(z){k=!0;e=z})).parse(a,!1);if(!k&&!g&&!h)throw new P(2,2,2008);a=c;for(var m=new If(e,0),p=r(d),n=p.next();!n.done;n=p.next()){n=n.value;var t=n.Be||l,y=n.Hd?
910
+ c+n.Hd:a;a=y+(t||0);var x=0;do{var v=m.R();x+=v;var w=m.R(),C=null;"vttc"==Tf(w)?8<v&&(C=m.Cb(v-8)):m.skip(v-8);t&&C&&(v=kw(C,b.periodStart+y/this.g,b.periodStart+a/this.g),f.push(v))}while(n.sampleSize&&x<n.sampleSize)}return f.filter(Bb)};function kw(a,b,c){var d,e,f;(new Lf).box("payl",Sf(function(g){d=dd(g)})).box("iden",Sf(function(g){e=dd(g)})).box("sttg",Sf(function(g){f=dd(g)})).parse(a);return d?lw(d,e,f,b,c):null}
911
+ function lw(a,b,c,d,e){d=new gc(d,e,"");cw(a,d,new Map);b&&(d.id=b);if(c)for(a=new Gq(c),b=Jq(a);b;)dw(d,b,[]),Hq(a),b=Jq(a);return d}M("shaka.text.Mp4VttParser",jw);jw.prototype.parseMedia=jw.prototype.parseMedia;jw.prototype.setSequenceMode=jw.prototype.setSequenceMode;jw.prototype.parseInit=jw.prototype.parseInit;Dd['application/mp4; codecs="wvtt"']=function(){return new jw};function mw(){}mw.prototype.parseInit=function(){};mw.prototype.setSequenceMode=function(){};mw.prototype.parseMedia=function(a){var b=dd(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=r(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new Gq(c[0]),e=nw(d),f=Iq(d,/,/g);d=nw(d);if(null==e||null==f||null==d)throw new P(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new gc(e,d,c.slice(1).join("\n").trim()))}return a};
912
+ function nw(a){a=Iq(a,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}M("shaka.text.SbvTextParser",mw);mw.prototype.parseMedia=mw.prototype.parseMedia;mw.prototype.setSequenceMode=mw.prototype.setSequenceMode;mw.prototype.parseInit=mw.prototype.parseInit;Dd["text/x-subviewer"]=function(){return new mw};function ow(){this.g=new $v}ow.prototype.parseInit=function(){};ow.prototype.setSequenceMode=function(){};ow.prototype.parseMedia=function(a,b){a=dd(a);a=pw(a);a=Ec(hd(a));return this.g.parseMedia(a,b)};function pw(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=r(a.split("\n\n"));for(var c=a.next();!c.done;c=a.next())c=c.value.split(/\n/),c[0].match(/\d+/)&&c.shift(),c[0]=c[0].replace(/,/g,"."),b+=c.join("\n")+"\n\n";return b}M("shaka.text.SrtTextParser",ow);
913
+ ow.srt2webvtt=pw;ow.prototype.parseMedia=ow.prototype.parseMedia;ow.prototype.setSequenceMode=ow.prototype.setSequenceMode;ow.prototype.parseInit=ow.prototype.parseInit;Dd["text/srt"]=function(){return new ow};function qw(){}qw.prototype.parseInit=function(){};qw.prototype.setSequenceMode=function(){};
914
+ qw.prototype.parseMedia=function(a){var b="",c="";a=dd(a).split(/\r?\n\s*\r?\n/);a=r(a);for(var d=a.next();!d.done;d=a.next()){var e=rw.exec(d.value);e&&(d=e[1],e=e[2],"V4 Styles"==d||"V4+ Styles"==d?b=e:"Events"==d&&(c=e))}a=[];d=null;b=r(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=sw.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(tw);else if("Style"==e){e=f.split(tw);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
915
+ [];b=null;e={};c=r(c.split(/\r?\n/));for(f=c.next();!f.done;e={Zd:e.Zd},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=sw.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(tw);else if("Dialogue"==f){g=g.split(tw);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=uw(f.Start);var k=uw(f.End);g=new gc(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.Zd=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.Zd}}(e)))&&vw(g,f);d.push(g)}return d};
916
+ function vw(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=ww(c))a.color=c;if(c=b.BackColour)if(c=ww(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=oc;a.textAlign="start";break;case 2:a.displayAlign=oc;a.textAlign=kc;break;case 3:a.displayAlign=oc;a.textAlign="end";
916
917
  break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=kc;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=kc;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)}
917
- function vw(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 tw(a){a=ww.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}M("shaka.text.SsaTextParser",pw);pw.prototype.parseMedia=pw.prototype.parseMedia;pw.prototype.setSequenceMode=pw.prototype.setSequenceMode;pw.prototype.parseInit=pw.prototype.parseInit;
918
- var qw=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,rw=/^\s*([^:]+):\s*(.*)/,sw=/\s*,\s*/,ww=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;Dd["text/x-ssa"]=function(){return new pw};/*
918
+ function ww(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 uw(a){a=xw.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}M("shaka.text.SsaTextParser",qw);qw.prototype.parseMedia=qw.prototype.parseMedia;qw.prototype.setSequenceMode=qw.prototype.setSequenceMode;qw.prototype.parseInit=qw.prototype.parseInit;
919
+ var rw=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,sw=/^\s*([^:]+):\s*(.*)/,tw=/\s*,\s*/,xw=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;Dd["text/x-ssa"]=function(){return new qw};/*
919
920
  @license
920
921
  EME Encryption Scheme Polyfill
921
922
  Copyright 2019 Google LLC
922
923
  SPDX-License-Identifier: Apache-2.0
923
924
  */
924
- function xw(){}var yw;function zw(){yw?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(yw=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=Aw):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
925
- function Aw(a,b){var c=this,d;return K(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),A(e,yw.call(c,a,b),2);d=e.h;if(Bw(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=yw,e.return(d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=Cw;return e.return(Cw.call(c,
925
+ function yw(){}var zw;function Aw(){zw?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(zw=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=Bw):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
926
+ function Bw(a,b){var c=this,d;return K(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),A(e,zw.call(c,a,b),2);d=e.h;if(Cw(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=zw,e.return(d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=Dw;return e.return(Dw.call(c,
926
927
  a,b))})}
927
- function Cw(a,b){var c=this,d,e,f,g,h,k,l,m,p,n;return K(function(t){if(1==t.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=Dw(a);e=[];f=r(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=Ew(h.videoCapabilities,d),l=Ew(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw p=Error("Unsupported keySystem or supportedConfigurations."),
928
- p.name="NotSupportedError",p.code=DOMException.NOT_SUPPORTED_ERR,p;return A(t,yw.call(c,a,e),2)}n=t.h;return t.return(new Fw(n,d))})}function Ew(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}M("EmeEncryptionSchemePolyfill",xw);xw.install=zw;function Gw(){}var Hw;
929
- function Iw(){Hw?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(Hw=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=Jw):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
930
- function Jw(a){var b=this,c,d,e;return K(function(f){switch(f.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),A(f,Hw.call(b,a),2);case 2:c=f.h;if(!a.keySystemConfiguration)return f.return(c);if((d=c.keySystemAccess)&&Bw(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=Hw,f.return(c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
931
- navigator.mediaCapabilities.decodingInfo=Kw;if(d){f.D(3);break}e=c;return A(f,Lw(a),4);case 4:return e.keySystemAccess=f.h,f.return(c);case 3:return f.return(Kw.call(b,a))}})}
932
- function Kw(a){var b=this,c,d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),c=null,a.keySystemConfiguration&&(d=a.keySystemConfiguration,e=d.keySystem,f=d.audio&&d.audio.encryptionScheme,g=d.video&&d.video.encryptionScheme,c=Dw(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},f&&f!=c||g&&g!=c)?m.return(h):A(m,Hw.call(b,a),2);case 2:k=m.h;if(k.keySystemAccess){k.keySystemAccess=
933
- new Fw(k.keySystemAccess,c);m.D(3);break}if(!a.keySystemConfiguration){m.D(3);break}l=k;return A(m,Lw(a),5);case 5:l.keySystemAccess=m.h;case 3:return m.return(k)}})}
934
- function Lw(a){var b,c;return K(function(d){if(1==d.g){var e=a.keySystemConfiguration,f=[],g=[];e.audio&&f.push({robustness:e.audio.robustness||"",contentType:a.audio.contentType});e.video&&g.push({robustness:e.video.robustness||"",contentType:a.video.contentType});e={initDataTypes:e.initDataType?[e.initDataType]:[],distinctiveIdentifier:e.distinctiveIdentifier,persistentState:e.persistentState,sessionTypes:e.sessionTypes};f.length&&(e.audioCapabilities=f);g.length&&(e.videoCapabilities=g);b=e;return A(d,
935
- navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d.return(c)})}M("McEncryptionSchemePolyfill",Gw);Gw.install=Iw;function Fw(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
936
- Fw.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=r(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=r(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};Fw.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
937
- function Dw(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.chromecast")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs-1-9";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function Bw(a){a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&void 0!==a.encryptionScheme?!0:!1}
938
- function Mw(){}function Xt(){zw();Iw()}M("EncryptionSchemePolyfills",Mw);Mw.install=Xt;"undefined"!==typeof module&&module.exports&&(module.exports=Mw);/*
928
+ function Dw(a,b){var c=this,d,e,f,g,h,k,l,m,p,n;return K(function(t){if(1==t.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=Ew(a);e=[];f=r(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=Fw(h.videoCapabilities,d),l=Fw(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw p=Error("Unsupported keySystem or supportedConfigurations."),
929
+ p.name="NotSupportedError",p.code=DOMException.NOT_SUPPORTED_ERR,p;return A(t,zw.call(c,a,e),2)}n=t.h;return t.return(new Gw(n,d))})}function Fw(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}M("EmeEncryptionSchemePolyfill",yw);yw.install=Aw;function Hw(){}var Iw;
930
+ function Jw(){Iw?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(Iw=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=Kw):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
931
+ function Kw(a){var b=this,c,d,e;return K(function(f){switch(f.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),A(f,Iw.call(b,a),2);case 2:c=f.h;if(!a.keySystemConfiguration)return f.return(c);if((d=c.keySystemAccess)&&Cw(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=Iw,f.return(c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
932
+ navigator.mediaCapabilities.decodingInfo=Lw;if(d){f.D(3);break}e=c;return A(f,Mw(a),4);case 4:return e.keySystemAccess=f.h,f.return(c);case 3:return f.return(Lw.call(b,a))}})}
933
+ function Lw(a){var b=this,c,d,e,f,g,h,k,l;return K(function(m){switch(m.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),c=null,a.keySystemConfiguration&&(d=a.keySystemConfiguration,e=d.keySystem,f=d.audio&&d.audio.encryptionScheme,g=d.video&&d.video.encryptionScheme,c=Ew(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},f&&f!=c||g&&g!=c)?m.return(h):A(m,Iw.call(b,a),2);case 2:k=m.h;if(k.keySystemAccess){k.keySystemAccess=
934
+ new Gw(k.keySystemAccess,c);m.D(3);break}if(!a.keySystemConfiguration){m.D(3);break}l=k;return A(m,Mw(a),5);case 5:l.keySystemAccess=m.h;case 3:return m.return(k)}})}
935
+ function Mw(a){var b,c;return K(function(d){if(1==d.g){var e=a.keySystemConfiguration,f=[],g=[];e.audio&&f.push({robustness:e.audio.robustness||"",contentType:a.audio.contentType});e.video&&g.push({robustness:e.video.robustness||"",contentType:a.video.contentType});e={initDataTypes:e.initDataType?[e.initDataType]:[],distinctiveIdentifier:e.distinctiveIdentifier,persistentState:e.persistentState,sessionTypes:e.sessionTypes};f.length&&(e.audioCapabilities=f);g.length&&(e.videoCapabilities=g);b=e;return A(d,
936
+ navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d.return(c)})}M("McEncryptionSchemePolyfill",Hw);Hw.install=Jw;function Gw(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
937
+ Gw.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=r(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=r(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};Gw.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
938
+ function Ew(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.chromecast")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs-1-9";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function Cw(a){a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&void 0!==a.encryptionScheme?!0:!1}
939
+ function Nw(){}function Xt(){Aw();Jw()}M("EncryptionSchemePolyfills",Nw);Nw.install=Xt;"undefined"!==typeof module&&module.exports&&(module.exports=Nw);/*
939
940
  @license
940
941
  Copyright 2013 Ali Al Dallal
941
942
 
@@ -959,7 +960,7 @@ function Mw(){}function Xt(){zw();Iw()}M("EncryptionSchemePolyfills",Mw);Mw.inst
959
960
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
960
961
  SOFTWARE.
961
962
  */
962
- for(var Nw={ach:{s:"Lwo",u:"Acholi"},ady:{s:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",u:"Adyghe"},af:{s:"Afrikaans",u:"Afrikaans"},"af-NA":{s:"Afrikaans (Namibia)",u:"Afrikaans (Namibia)"},"af-ZA":{s:"Afrikaans (South Africa)",u:"Afrikaans (South Africa)"},ak:{s:"T\u0255\u0265i",u:"Akan"},ar:{s:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",u:"Arabic"},"ar-AR":{s:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",u:"Arabic"},"ar-MA":{s:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",u:"Arabic (Morocco)"},
963
+ for(var Ow={ach:{s:"Lwo",u:"Acholi"},ady:{s:"\u0410\u0434\u044b\u0433\u044d\u0431\u0437\u044d",u:"Adyghe"},af:{s:"Afrikaans",u:"Afrikaans"},"af-NA":{s:"Afrikaans (Namibia)",u:"Afrikaans (Namibia)"},"af-ZA":{s:"Afrikaans (South Africa)",u:"Afrikaans (South Africa)"},ak:{s:"T\u0255\u0265i",u:"Akan"},ar:{s:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",u:"Arabic"},"ar-AR":{s:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",u:"Arabic"},"ar-MA":{s:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",u:"Arabic (Morocco)"},
963
964
  "ar-SA":{s:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 (\u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629)",u:"Arabic (Saudi Arabia)"},"ay-BO":{s:"Aymar aru",u:"Aymara"},az:{s:"Az\u0259rbaycan dili",u:"Azerbaijani"},"az-AZ":{s:"Az\u0259rbaycan dili",u:"Azerbaijani"},"be-BY":{s:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f",u:"Belarusian"},bg:{s:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",u:"Bulgarian"},"bg-BG":{s:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438",
964
965
  u:"Bulgarian"},bn:{s:"\u09ac\u09be\u0982\u09b2\u09be",u:"Bengali"},"bn-IN":{s:"\u09ac\u09be\u0982\u09b2\u09be (\u09ad\u09be\u09b0\u09a4)",u:"Bengali (India)"},"bn-BD":{s:"\u09ac\u09be\u0982\u09b2\u09be(\u09ac\u09be\u0982\u09b2\u09be\u09a6\u09c7\u09b6)",u:"Bengali (Bangladesh)"},"bs-BA":{s:"Bosanski",u:"Bosnian"},ca:{s:"Catal\u00e0",u:"Catalan"},"ca-ES":{s:"Catal\u00e0",u:"Catalan"},cak:{s:"Maya Kaqchikel",u:"Kaqchikel"},"ck-US":{s:"\u13e3\u13b3\u13a9 (tsalagi)",u:"Cherokee"},cs:{s:"\u010ce\u0161tina",
965
966
  u:"Czech"},"cs-CZ":{s:"\u010ce\u0161tina",u:"Czech"},cy:{s:"Cymraeg",u:"Welsh"},"cy-GB":{s:"Cymraeg",u:"Welsh"},da:{s:"Dansk",u:"Danish"},"da-DK":{s:"Dansk",u:"Danish"},de:{s:"Deutsch",u:"German"},"de-AT":{s:"Deutsch (\u00d6sterreich)",u:"German (Austria)"},"de-DE":{s:"Deutsch (Deutschland)",u:"German (Germany)"},"de-CH":{s:"Deutsch (Schweiz)",u:"German (Switzerland)"},dsb:{s:"Dolnoserb\u0161\u0107ina",u:"Lower Sorbian"},el:{s:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",u:"Greek"},"el-GR":{s:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac",
@@ -980,55 +981,55 @@ u:"Slovak"},"sk-SK":{s:"Sloven\u010dina (Slovakia)",u:"Slovak (Slovakia)"},sl:{s
980
981
  sw:{s:"Kiswahili",u:"Swahili"},"sw-KE":{s:"Kiswahili",u:"Swahili (Kenya)"},ta:{s:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",u:"Tamil"},"ta-IN":{s:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",u:"Tamil"},te:{s:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",u:"Telugu"},"te-IN":{s:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41",u:"Telugu"},tg:{s:"\u0437\u0430\u0431\u043e\u0301\u043d\u0438 \u0442\u043e\u04b7\u0438\u043a\u04e3\u0301",u:"Tajik"},"tg-TJ":{s:"\u0442\u043e\u04b7\u0438\u043a\u04e3",u:"Tajik"},th:{s:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22",
981
982
  u:"Thai"},"th-TH":{s:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22 (\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22)",u:"Thai (Thailand)"},tl:{s:"Filipino",u:"Filipino"},"tl-PH":{s:"Filipino",u:"Filipino"},tlh:{s:"tlhIngan-Hol",u:"Klingon"},tr:{s:"T\u00fcrk\u00e7e",u:"Turkish"},"tr-TR":{s:"T\u00fcrk\u00e7e",u:"Turkish"},"tt-RU":{s:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430",u:"Tatar"},uk:{s:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",u:"Ukrainian"},"uk-UA":{s:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430",
982
983
  u:"Ukrainian"},ur:{s:"\u0627\u0631\u062f\u0648",u:"Urdu"},"ur-PK":{s:"\u0627\u0631\u062f\u0648",u:"Urdu"},uz:{s:"O'zbek",u:"Uzbek"},"uz-UZ":{s:"O'zbek",u:"Uzbek"},vi:{s:"Ti\u1ebfng Vi\u1ec7t",u:"Vietnamese"},"vi-VN":{s:"Ti\u1ebfng Vi\u1ec7t",u:"Vietnamese"},"xh-ZA":{s:"isiXhosa",u:"Xhosa"},yi:{s:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9",u:"Yiddish"},"yi-DE":{s:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9 (German)",u:"Yiddish (German)"},zh:{s:"\u4e2d\u6587",u:"Chinese"},"zh-HANS":{s:"\u4e2d\u6587\u7b80\u4f53",
983
- u:"Chinese Simplified"},"zh-HANT":{s:"\u4e2d\u6587\u7e41\u9ad4",u:"Chinese Traditional"},"zh-CN":{s:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",u:"Chinese Simplified (China)"},"zh-HK":{s:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",u:"Chinese Traditional (Hong Kong)"},"zh-SG":{s:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",u:"Chinese Simplified (Singapore)"},"zh-TW":{s:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",u:"Chinese Traditional (Taiwan)"},"zu-ZA":{s:"isiZulu",u:"Zulu"}},Ow=r(Object.keys(Nw)),Pw=Ow.next();!Pw.done;Pw=
984
- Ow.next()){var Qw=Pw.value;Nw[Qw.toLowerCase()]=Nw[Qw]};function X(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new Af;this.localization=this.controls.Aa;this.player=this.controls.dc();this.video=this.controls.Bb();this.adManager=this.player.nd();this.ad=b.getAd();this.eventManager.o(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null})}
985
- X.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};M("shaka.ui.Element",X);X.prototype.release=X.prototype.release;function Rw(a){return Sw(a,"shaka-back-to-overflow-button")}function Sw(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function Tw(a){a&&(a=Sw(a,"shaka-chosen-item"))&&a.parentElement.focus()}function Uw(){var a=S("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function Y(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
986
- function Vw(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%60);10>a&&(a="0"+a);a=d+":"+a;b&&(10>d&&(a="0"+a),a=c+":"+a);return a};function Ww(a,b){X.call(this,a,b);var c=this;this.i=S("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=S("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new Q(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=Vw(e-d,!1)+" / "+Vw(e,!1),1<c.ad.getSequenceLength()?c.h.textContent=d:(e=c.localization.resolve("AD_TIME"),c.h.textContent=e.replace("[AD_TIME]",d))):(c.g.stop(),c.h.textContent=
987
- ""))});this.eventManager.o(this.localization,"locale-updated",function(){});this.eventManager.o(this.localization,"locale-changed",function(){});this.eventManager.o(this.adManager,"ad-started",function(){c.g.za();c.g.ka(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.za(),this.g.ka(.5))}u(Ww,X);Ww.prototype.release=function(){this.g.stop();this.g=null;X.prototype.release.call(this)};M("shaka.ui.AdCounter",Ww);function Xw(a,b){X.call(this,a,b);var c=this;this.g=S("div");this.g.classList.add("shaka-ad-position");Y(this.g,!1);this.parent.appendChild(this.g);this.h=S("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.o(this.localization,"locale-updated",function(){c.ad&&Yw(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&Yw(c)});this.eventManager.o(this.adManager,"ad-started",function(){Yw(c)});this.eventManager.o(this.adManager,
988
- "ad-stopped",function(){c.h.textContent="";Y(c.g,!1)});this.ad&&Yw(this)}u(Xw,X);function Yw(a){var b=a.ad.getSequenceLength();if(1<b){var c=a.ad.getPositionInSequence();a.h.textContent=a.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(c)).replace("[NUM_ADS]",String(b));Y(a.g,!0)}}M("shaka.ui.AdPosition",Xw);function Zw(a,b){X.call(this,a,b);var c=this;this.button=Mk();this.parent.appendChild(this.button);this.eventManager.o(this.localization,"locale-updated",function(){c.g()});this.eventManager.o(this.localization,"locale-changed",function(){c.g()});this.eventManager.o(this.video,"play",function(){c.g();c.h()});this.eventManager.o(this.video,"pause",function(){c.g();c.h()});this.eventManager.o(this.video,"seeking",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-paused",function(){c.g();
989
- c.h()});this.eventManager.o(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.o(this.button,"click",function(){c.ad&&c.ad.isLinear()?$w(c.controls):ax(c.controls)});this.ad&&(this.g(),this.h())}u(Zw,X);Zw.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.A.paused&&!a.$;return a};Zw.prototype.g=function(){};Zw.prototype.h=function(){};
990
- M("shaka.ui.PlayButton",Zw);function bx(a,b){Zw.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}u(bx,Zw);bx.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};bx.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};M("shaka.ui.BigPlayButton",bx);function cx(a,b){X.call(this,a,b);var c=this;this.j=this.controls.i;this.h=this.controls.g;this.i=[];this.g=S("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.o(this.h,"contextmenu",function(d){if(c.g.classList.contains("shaka-hidden")){d.preventDefault();var e=c.h.getBoundingClientRect();c.g.style.left=d.clientX-e.left+"px";c.g.style.top=d.clientY-e.top+"px";Y(c.g,!0)}else Y(c.g,
991
- !1)});this.eventManager.o(window,"click",function(){Y(c.g,!1)});dx(this)}u(cx,X);cx.prototype.release=function(){this.h=null;for(var a=r(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];X.prototype.release.call(this)};function ex(a,b){fx.set(a,b)}function dx(a){for(var b=r(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=fx.get(c);d?a.i.push(d.create(a.g,a.controls)):Ua("Unrecognized context menu element:",c)}}M("shaka.ui.ContextMenu",cx);
992
- cx.registerElement=ex;var fx=new Map;function gx(a,b,c,d){X.call(this,a,b);var e=this;this.container=S("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,ja(c));this.g=!1;this.bar=document.createElement("input");this.l=new Q(function(){e.onChangeEnd();e.g=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,ja(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.container.appendChild(this.bar);
993
- this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown",function(){e.controls.Nb()&&(e.g=!0,e.onChangeStart())});this.eventManager.o(this.bar,"touchstart",function(f){e.controls.Nb()&&(e.g=!0,hx(e,f),e.onChangeStart())});this.eventManager.o(this.bar,"input",function(){e.onChange()});this.eventManager.o(this.bar,"touchmove",function(f){e.g&&(hx(e,f),e.onChange())});this.eventManager.o(this.bar,"touchend",function(f){e.g&&(e.g=!1,hx(e,f),e.onChangeEnd())});this.eventManager.o(this.bar,
994
- "mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())})}u(gx,X);q=gx.prototype;q.release=function(){this.l&&(this.l.stop(),this.l=null);X.prototype.release.call(this)};q.setRange=function(a,b){this.bar.min=a;this.bar.max=b};q.onChangeStart=function(){};q.onChange=function(){};q.onChangeEnd=function(){};q.changeTo=function(a){this.g||(this.g=!0,this.onChangeStart());var b=parseFloat(this.bar.min),c=parseFloat(this.bar.max);this.bar.value=a>c?c:a<b?b:a;this.onChange();this.l.S(.5)};q.getValue=function(){return parseFloat(this.bar.value)};
995
- q.setValue=function(a){this.g||(this.bar.value=a)};function hx(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect();b=parseFloat(a.bar.min);var e=parseFloat(a.bar.max);c=b+(e-b)/d.width*(c.clientX-d.left);c<b?c=b:c>e&&(c=e);a.bar.value=c}M("shaka.ui.RangeElement",gx);gx.prototype.setValue=gx.prototype.setValue;gx.prototype.getValue=gx.prototype.getValue;gx.prototype.changeTo=gx.prototype.changeTo;gx.prototype.onChangeEnd=gx.prototype.onChangeEnd;
996
- gx.prototype.onChange=gx.prototype.onChange;gx.prototype.onChangeStart=gx.prototype.onChangeStart;gx.prototype.setRange=gx.prototype.setRange;function ix(a,b){gx.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.j=S("div");this.j.classList.add("shaka-ad-markers");this.container.insertBefore(this.j,this.container.childNodes[0]);this.m=this.controls.i;this.h=new Q(function(){c.video.currentTime=c.getValue()});this.A=new Q(function(){jx(c)});this.B=!1;this.i=[];this.eventManager.o(this.localization,"locale-updated",function(){return kx(c)});this.eventManager.o(this.localization,
997
- "locale-changed",function(){return kx(c)});this.eventManager.o(this.adManager,"ad-started",function(){lx(c)||Y(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){lx(c)&&Y(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;mx(c)});this.eventManager.o(this.player,"unloading",function(){c.i=[];mx(c)});this.setValue(this.video.currentTime);this.update();kx(this);this.ad&&Y(this.container,!1)}u(ix,gx);q=ix.prototype;
998
- q.release=function(){this.h&&(this.h.stop(),this.h=null,this.A.stop(),this.A=null);gx.prototype.release.call(this)};q.onChangeStart=function(){this.B=!this.video.paused;this.controls.Le(!0);this.video.pause()};q.onChange=function(){this.video.duration&&(this.update(),this.h.S(.125))};q.onChangeEnd=function(){this.h.za();this.controls.Le(!1);this.B&&this.video.play()};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
999
- q.update=function(){var a=this.m.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0,f=this.player.Ka(),g=f.end-f.start;this.setRange(f.start,f.end);lx(this)?(Y(this.container,!0),0==c?this.container.style.background=a.base:(c=(Math.max(d,f.start)-f.start)/g||0,e=(Math.min(e,f.end)-f.start)/g||0,b=(Math.min(Math.max(b,f.start),f.end)-f.start)/g||0,this.container.style.background="linear-gradient("+["to right",(this.m.showUnbufferedStart?
984
+ u:"Chinese Simplified"},"zh-HANT":{s:"\u4e2d\u6587\u7e41\u9ad4",u:"Chinese Traditional"},"zh-CN":{s:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",u:"Chinese Simplified (China)"},"zh-HK":{s:"\u4e2d\u6587\uff08\u9999\u6e2f\uff09",u:"Chinese Traditional (Hong Kong)"},"zh-SG":{s:"\u4e2d\u6587\uff08\u65b0\u52a0\u5761\uff09",u:"Chinese Simplified (Singapore)"},"zh-TW":{s:"\u4e2d\u6587\uff08\u53f0\u7063\uff09",u:"Chinese Traditional (Taiwan)"},"zu-ZA":{s:"isiZulu",u:"Zulu"}},Pw=r(Object.keys(Ow)),Qw=Pw.next();!Qw.done;Qw=
985
+ Pw.next()){var Rw=Qw.value;Ow[Rw.toLowerCase()]=Ow[Rw]};function X(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new Af;this.localization=this.controls.Aa;this.player=this.controls.dc();this.video=this.controls.Bb();this.adManager=this.player.nd();this.ad=b.getAd();this.eventManager.o(this.adManager,"ad-started",function(d){c.ad=d.ad});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null})}
986
+ X.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};M("shaka.ui.Element",X);X.prototype.release=X.prototype.release;function Sw(a){return Tw(a,"shaka-back-to-overflow-button")}function Tw(a,b){a=a.getElementsByClassName(b);return a.length?a[0]:null}function Uw(a){a&&(a=Tw(a,"shaka-chosen-item"))&&a.parentElement.focus()}function Vw(){var a=S("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function Y(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
987
+ function Ww(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60);a=Math.floor(a%60);10>a&&(a="0"+a);a=d+":"+a;b&&(10>d&&(a="0"+a),a=c+":"+a);return a};function Xw(a,b){X.call(this,a,b);var c=this;this.i=S("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=S("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new Q(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=Ww(e-d,!1)+" / "+Ww(e,!1),1<c.ad.getSequenceLength()?c.h.textContent=d:(e=c.localization.resolve("AD_TIME"),c.h.textContent=e.replace("[AD_TIME]",d))):(c.g.stop(),c.h.textContent=
988
+ ""))});this.eventManager.o(this.localization,"locale-updated",function(){});this.eventManager.o(this.localization,"locale-changed",function(){});this.eventManager.o(this.adManager,"ad-started",function(){c.g.za();c.g.ka(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.za(),this.g.ka(.5))}u(Xw,X);Xw.prototype.release=function(){this.g.stop();this.g=null;X.prototype.release.call(this)};M("shaka.ui.AdCounter",Xw);function Yw(a,b){X.call(this,a,b);var c=this;this.g=S("div");this.g.classList.add("shaka-ad-position");Y(this.g,!1);this.parent.appendChild(this.g);this.h=S("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.o(this.localization,"locale-updated",function(){c.ad&&Zw(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&Zw(c)});this.eventManager.o(this.adManager,"ad-started",function(){Zw(c)});this.eventManager.o(this.adManager,
989
+ "ad-stopped",function(){c.h.textContent="";Y(c.g,!1)});this.ad&&Zw(this)}u(Yw,X);function Zw(a){var b=a.ad.getSequenceLength();if(1<b){var c=a.ad.getPositionInSequence();a.h.textContent=a.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(c)).replace("[NUM_ADS]",String(b));Y(a.g,!0)}}M("shaka.ui.AdPosition",Yw);function $w(a,b){X.call(this,a,b);var c=this;this.button=Mk();this.parent.appendChild(this.button);this.eventManager.o(this.localization,"locale-updated",function(){c.g()});this.eventManager.o(this.localization,"locale-changed",function(){c.g()});this.eventManager.o(this.video,"play",function(){c.g();c.h()});this.eventManager.o(this.video,"pause",function(){c.g();c.h()});this.eventManager.o(this.video,"seeking",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-paused",function(){c.g();
990
+ c.h()});this.eventManager.o(this.adManager,"ad-resumed",function(){c.g();c.h()});this.eventManager.o(this.adManager,"ad-started",function(){c.g();c.h()});this.eventManager.o(this.button,"click",function(){c.ad&&c.ad.isLinear()?ax(c.controls):bx(c.controls)});this.ad&&(this.g(),this.h())}u($w,X);$w.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.A.paused&&!a.$;return a};$w.prototype.g=function(){};$w.prototype.h=function(){};
991
+ M("shaka.ui.PlayButton",$w);function cx(a,b){$w.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}u(cx,$w);cx.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};cx.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};M("shaka.ui.BigPlayButton",cx);function dx(a,b){X.call(this,a,b);var c=this;this.j=this.controls.i;this.h=this.controls.g;this.i=[];this.g=S("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.o(this.h,"contextmenu",function(d){if(c.g.classList.contains("shaka-hidden")){d.preventDefault();var e=c.h.getBoundingClientRect();c.g.style.left=d.clientX-e.left+"px";c.g.style.top=d.clientY-e.top+"px";Y(c.g,!0)}else Y(c.g,
992
+ !1)});this.eventManager.o(window,"click",function(){Y(c.g,!1)});ex(this)}u(dx,X);dx.prototype.release=function(){this.h=null;for(var a=r(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];X.prototype.release.call(this)};function fx(a,b){gx.set(a,b)}function ex(a){for(var b=r(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=gx.get(c);d?a.i.push(d.create(a.g,a.controls)):Ua("Unrecognized context menu element:",c)}}M("shaka.ui.ContextMenu",dx);
993
+ dx.registerElement=fx;var gx=new Map;function hx(a,b,c,d){X.call(this,a,b);var e=this;this.container=S("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,ja(c));this.g=!1;this.bar=document.createElement("input");this.l=new Q(function(){e.onChangeEnd();e.g=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,ja(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.container.appendChild(this.bar);
994
+ this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown",function(){e.controls.Nb()&&(e.g=!0,e.onChangeStart())});this.eventManager.o(this.bar,"touchstart",function(f){e.controls.Nb()&&(e.g=!0,ix(e,f),e.onChangeStart())});this.eventManager.o(this.bar,"input",function(){e.onChange()});this.eventManager.o(this.bar,"touchmove",function(f){e.g&&(ix(e,f),e.onChange())});this.eventManager.o(this.bar,"touchend",function(f){e.g&&(e.g=!1,ix(e,f),e.onChangeEnd())});this.eventManager.o(this.bar,
995
+ "mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())})}u(hx,X);q=hx.prototype;q.release=function(){this.l&&(this.l.stop(),this.l=null);X.prototype.release.call(this)};q.setRange=function(a,b){this.bar.min=a;this.bar.max=b};q.onChangeStart=function(){};q.onChange=function(){};q.onChangeEnd=function(){};q.changeTo=function(a){this.g||(this.g=!0,this.onChangeStart());var b=parseFloat(this.bar.min),c=parseFloat(this.bar.max);this.bar.value=a>c?c:a<b?b:a;this.onChange();this.l.S(.5)};q.getValue=function(){return parseFloat(this.bar.value)};
996
+ q.setValue=function(a){this.g||(this.bar.value=a)};function ix(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect();b=parseFloat(a.bar.min);var e=parseFloat(a.bar.max);c=b+(e-b)/d.width*(c.clientX-d.left);c<b?c=b:c>e&&(c=e);a.bar.value=c}M("shaka.ui.RangeElement",hx);hx.prototype.setValue=hx.prototype.setValue;hx.prototype.getValue=hx.prototype.getValue;hx.prototype.changeTo=hx.prototype.changeTo;hx.prototype.onChangeEnd=hx.prototype.onChangeEnd;
997
+ hx.prototype.onChange=hx.prototype.onChange;hx.prototype.onChangeStart=hx.prototype.onChangeStart;hx.prototype.setRange=hx.prototype.setRange;function jx(a,b){hx.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.j=S("div");this.j.classList.add("shaka-ad-markers");this.container.insertBefore(this.j,this.container.childNodes[0]);this.m=this.controls.i;this.h=new Q(function(){c.video.currentTime=c.getValue()});this.A=new Q(function(){kx(c)});this.B=!1;this.i=[];this.eventManager.o(this.localization,"locale-updated",function(){return lx(c)});this.eventManager.o(this.localization,
998
+ "locale-changed",function(){return lx(c)});this.eventManager.o(this.adManager,"ad-started",function(){mx(c)||Y(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){mx(c)&&Y(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;nx(c)});this.eventManager.o(this.player,"unloading",function(){c.i=[];nx(c)});this.setValue(this.video.currentTime);this.update();lx(this);this.ad&&Y(this.container,!1)}u(jx,hx);q=jx.prototype;
999
+ q.release=function(){this.h&&(this.h.stop(),this.h=null,this.A.stop(),this.A=null);hx.prototype.release.call(this)};q.onChangeStart=function(){this.B=!this.video.paused;this.controls.Le(!0);this.video.pause()};q.onChange=function(){this.video.duration&&(this.update(),this.h.S(.125))};q.onChangeEnd=function(){this.h.za();this.controls.Le(!1);this.B&&this.video.play()};q.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
1000
+ q.update=function(){var a=this.m.seekBarColors,b=this.getValue(),c=this.video.buffered.length,d=c?this.video.buffered.start(0):0,e=c?this.video.buffered.end(c-1):0,f=this.player.Ka(),g=f.end-f.start;this.setRange(f.start,f.end);mx(this)?(Y(this.container,!0),0==c?this.container.style.background=a.base:(c=(Math.max(d,f.start)-f.start)/g||0,e=(Math.min(e,f.end)-f.start)/g||0,b=(Math.min(Math.max(b,f.start),f.end)-f.start)/g||0,this.container.style.background="linear-gradient("+["to right",(this.m.showUnbufferedStart?
1000
1001
  a.base:a.played)+" "+100*c+"%",a.played+" "+100*c+"%",a.played+" "+100*b+"%",a.buffered+" "+100*b+"%",a.buffered+" "+100*e+"%",a.base+" "+100*e+"%"].join()+")")):Y(this.container,!1)};
1001
- function jx(a){if(a.i.length){for(var b=a.player.Ka(),c=b.end-b.start,d=["to right"],e=[],f=a.m.seekBarColors.adBreaks,g=!1,h=r(a.i),k=h.next();!k.done;k=h.next())if(k=k.value,-1!=k.start||k.end||(g=!0),k.start>=b.start&&k.start<b.end&&!(k.end&&k.end>b.end)){var l=(k.start-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}b=r(e);for(k=b.next();!k.done;k=b.next())c=k.value,d.push("transparent "+100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+
1002
- 100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.j.style.background="linear-gradient("+d.join(",")+")"}else a.j.style.background="transparent"}function mx(a){jx(a);var b=a.player.Ka();b=b.end-b.start;a.player.U()&&5<b&&a.A.ka(1)}function lx(a){var b=a.player.Ka();b=b.end-b.start;return a.player.U()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function kx(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}M("shaka.ui.SeekBar",ix);function nx(){}
1003
- nx.prototype.create=function(a,b){return new ix(a,b)};ix.Factory=nx;function Z(a,b,c,d){fb.call(this);var e=this;this.T=!0;this.i=d;this.C=new Zn(c,a,this.i.castReceiverAppId,this.i.castAndroidReceiverCompatible);this.ab=!0;this.A=this.C.Bb();this.B=c;this.F=this.C.dc();this.ua=a;this.j=b;this.Za=this.F.nd();this.l=this.m=null;this.$=!1;this.G=[];this.xb=[];this.ib=!1;this.aa=new Q(function(){e.j.style.cursor="none";e.ib=!1;ox(e)});this.ea=new Q(function(){e.g.removeAttribute("shown");e.I.S(2)});this.I=new Q(function(){for(var f=r(e.G),g=f.next();!g.done;g=f.next())Y(g.value,
1004
- !1)});this.Oa=new Q(function(){e.Nb()&&px(e)});this.J=null;this.H=[];this.Aa=qx();this.h=new Af;this.configure(this.i);rx(this);this.ma=new Set;sx(this);this.Oa.ka(.125);this.h.o(this.Aa,"locale-changed",function(f){e.Za.setLocale(f.locales[0])})}u(Z,fb);q=Z.prototype;
1005
- q.destroy=function(){var a=this;return K(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.B){b.D(2);break}return A(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.aa&&(a.aa.stop(),a.aa=null);a.ea&&(a.ea.stop(),a.ea=null);a.I&&(a.I.stop(),a.I=null);a.Oa&&(a.Oa.stop(),a.Oa=null);tx(a);a.g&&(a.j.removeChild(a.g),a.g=null);if(!a.C){b.D(4);break}return A(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.ua){b.D(6);break}return A(b,a.ua.destroy(),7);case 7:a.ua=
1006
- null;case 6:a.F=null,a.B=null,a.A=null,a.Aa=null,a.ma.clear(),fb.prototype.release.call(a),B(b)}})};function tx(a){for(var b=r(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function ux(a,b){vx.set(a,b)}q.dg=function(a){this.ab=a;sx(this)};q.Wg=function(){ox(this)};
1007
- q.configure=function(a){this.i=a;this.C.nf(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.gb&&(this.gb=null);this.$a&&(this.$a=null);this.g?(Nk(this.g),tx(this)):(wx(this),xx(this));this.j.classList.add("shaka-video-container");this.B.classList.add("shaka-video");yx(this);this.i.addBigPlayButton&&zx(this);this.i.customContextMenu&&(this.$a=new cx(this.Z,this),this.H.push(this.$a));this.ba||Ax(this);this.hb=S("div");this.hb.classList.add("shaka-server-side-ad-container");
1008
- this.g.appendChild(this.hb);Bx(this);this.G=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.G.push.apply(this.G,ja(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));Cx(this);this.xb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));ox(this);a=r(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.h.o(b,"click",c);this.h.o(b,"dblclick",
1009
- c)}};q.He=function(a){(this.T=a)?(this.j.setAttribute("shaka-controls","true"),this.B.tabIndex=-1,this.B.controls=!1):this.j.removeAttribute("shaka-controls");ox(this)};q.Of=function(a){this.B.controls=a;this.B.tabIndex=a?0:-1;a&&this.He(!1)};q.getAd=function(){return this.m};q.pg=function(){return this.C};q.Cg=function(){return this.Aa};q.Qg=function(){return this.j};q.Bb=function(){return this.A};q.Bg=function(){return this.B};q.dc=function(){return this.F};q.Ag=function(){return this.ua};
1002
+ function kx(a){if(a.i.length){for(var b=a.player.Ka(),c=b.end-b.start,d=["to right"],e=[],f=a.m.seekBarColors.adBreaks,g=!1,h=r(a.i),k=h.next();!k.done;k=h.next())if(k=k.value,-1!=k.start||k.end||(g=!0),k.start>=b.start&&k.start<b.end&&!(k.end&&k.end>b.end)){var l=(k.start-b.start)/c||0,m=l+.01;k.end&&(m=(k.end-b.start)/c||0);e.push({start:l,end:m})}b=r(e);for(k=b.next();!k.done;k=b.next())c=k.value,d.push("transparent "+100*c.start+"%"),d.push(f+" "+100*c.start+"%"),d.push(f+" "+100*c.end+"%"),d.push("transparent "+
1003
+ 100*c.end+"%");g&&(d.push("transparent 99%"),d.push(f+" 99%"));a.j.style.background="linear-gradient("+d.join(",")+")"}else a.j.style.background="transparent"}function nx(a){kx(a);var b=a.player.Ka();b=b.end-b.start;a.player.U()&&5<b&&a.A.ka(1)}function mx(a){var b=a.player.Ka();b=b.end-b.start;return a.player.U()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function lx(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}M("shaka.ui.SeekBar",jx);function ox(){}
1004
+ ox.prototype.create=function(a,b){return new jx(a,b)};jx.Factory=ox;function Z(a,b,c,d){fb.call(this);var e=this;this.T=!0;this.i=d;this.C=new Zn(c,a,this.i.castReceiverAppId,this.i.castAndroidReceiverCompatible);this.ab=!0;this.A=this.C.Bb();this.B=c;this.F=this.C.dc();this.ua=a;this.j=b;this.Za=this.F.nd();this.l=this.m=null;this.$=!1;this.G=[];this.xb=[];this.ib=!1;this.aa=new Q(function(){e.j.style.cursor="none";e.ib=!1;px(e)});this.ea=new Q(function(){e.g.removeAttribute("shown");e.I.S(2)});this.I=new Q(function(){for(var f=r(e.G),g=f.next();!g.done;g=f.next())Y(g.value,
1005
+ !1)});this.Oa=new Q(function(){e.Nb()&&qx(e)});this.J=null;this.H=[];this.Aa=rx();this.h=new Af;this.configure(this.i);sx(this);this.ma=new Set;tx(this);this.Oa.ka(.125);this.h.o(this.Aa,"locale-changed",function(f){e.Za.setLocale(f.locales[0])})}u(Z,fb);q=Z.prototype;
1006
+ q.destroy=function(){var a=this;return K(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.B){b.D(2);break}return A(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.aa&&(a.aa.stop(),a.aa=null);a.ea&&(a.ea.stop(),a.ea=null);a.I&&(a.I.stop(),a.I=null);a.Oa&&(a.Oa.stop(),a.Oa=null);ux(a);a.g&&(a.j.removeChild(a.g),a.g=null);if(!a.C){b.D(4);break}return A(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.ua){b.D(6);break}return A(b,a.ua.destroy(),7);case 7:a.ua=
1007
+ null;case 6:a.F=null,a.B=null,a.A=null,a.Aa=null,a.ma.clear(),fb.prototype.release.call(a),B(b)}})};function ux(a){for(var b=r(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function vx(a,b){wx.set(a,b)}q.dg=function(a){this.ab=a;tx(this)};q.Wg=function(){px(this)};
1008
+ q.configure=function(a){this.i=a;this.C.nf(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.l&&(this.l=null);this.gb&&(this.gb=null);this.$a&&(this.$a=null);this.g?(Nk(this.g),ux(this)):(xx(this),yx(this));this.j.classList.add("shaka-video-container");this.B.classList.add("shaka-video");zx(this);this.i.addBigPlayButton&&Ax(this);this.i.customContextMenu&&(this.$a=new dx(this.Z,this),this.H.push(this.$a));this.ba||Bx(this);this.hb=S("div");this.hb.classList.add("shaka-server-side-ad-container");
1009
+ this.g.appendChild(this.hb);Cx(this);this.G=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.G.push.apply(this.G,ja(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));Dx(this);this.xb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));px(this);a=r(this.j.getElementsByClassName("shaka-no-propagation"));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=function(d){return d.stopPropagation()};this.h.o(b,"click",c);this.h.o(b,"dblclick",
1010
+ c)}};q.He=function(a){(this.T=a)?(this.j.setAttribute("shaka-controls","true"),this.B.tabIndex=-1,this.B.controls=!1):this.j.removeAttribute("shaka-controls");px(this)};q.Of=function(a){this.B.controls=a;this.B.tabIndex=a?0:-1;a&&this.He(!1)};q.getAd=function(){return this.m};q.pg=function(){return this.C};q.Cg=function(){return this.Aa};q.Qg=function(){return this.j};q.Bb=function(){return this.A};q.Bg=function(){return this.B};q.dc=function(){return this.F};q.Ag=function(){return this.ua};
1010
1011
  q.vg=function(){return this.g};q.Kg=function(){return this.hb};q.rg=function(){return this.P};q.sg=function(){return this.i};q.Vg=function(){return this.$};q.Le=function(a){this.$=a};q.Tg=function(){return this.ab};q.yf=function(){return this.l?this.l.getValue():this.A.currentTime};q.Pf=function(a){this.J=a};q.hd=function(){return this.G.some(function(a){return!a.classList.contains("shaka-hidden")})};q.hc=function(){this.I.za()};
1011
1012
  q.sd=function(){return document.fullscreenEnabled||this.B.webkitSupportsFullscreen?!0:!1};q.jc=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.B;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
1012
- function Dx(a){var b,c;return K(function(d){switch(d.g){case 1:E(d,2);if(!document.fullscreenEnabled){b=a.B;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();d.D(4);break}if(!document.pictureInPictureElement){d.D(5);break}return A(d,document.exitPictureInPicture(),5);case 5:return A(d,a.j.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.i.forceLandscapeOnFullscreen||!screen.orientation){d.D(4);break}E(d,9);return A(d,screen.orientation.lock("landscape"),11);case 11:va(d,4,2);break;case 9:J(d,
1013
- 2);case 4:va(d,0);break;case 2:c=J(d),a.dispatchEvent(new O("error",(new Map).set("detail",c))),B(d)}})}function Ex(a){var b;return K(function(c){if(!document.fullscreenEnabled)return b=a.B,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.D(0);screen.orientation&&screen.orientation.unlock();return A(c,document.exitFullscreen(),0)})}q.Se=function(){var a=this;return K(function(b){return a.jc()?A(b,Ex(a),0):A(b,Dx(a),0)})};
1014
- q.Rf=function(){Y(this.K,!0);Y(this.P,!0);this.g.setAttribute("ad-active","true")};q.Cf=function(){Y(this.K,!1);Y(this.P,!1);this.g.removeAttribute("ad-active")};function ax(a){a.T&&a.A.duration&&(a.F.kf(),a.A.paused&&!a.$?a.A.play():a.A.pause())}function $w(a){a.m&&a.m.isPaused()?a.m.play():a.m&&a.m.pause()}
1015
- function wx(a){a.g=S("div");a.g.classList.add("shaka-controls-container");a.j.appendChild(a.g);a.j.setAttribute("shaka-controls","true");a.h.o(a.g,"touchstart",function(b){a.A.duration&&(a.Nb()?a.J=Date.now():(Fx(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.h.o(a.g,"click",function(){Gx(a)});a.h.o(a.g,"dblclick",function(){a.i.doubleClickForFullscreen&&a.sd()&&a.Se()})}
1016
- function zx(a){var b=S("div");b.classList.add("shaka-play-button-container");a.g.appendChild(b);a.gb=new bx(b,a);a.H.push(a.gb)}function yx(a){var b=S("div");b.classList.add("shaka-scrim-container");a.g.appendChild(b)}function Hx(a){a.K=S("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.m&&a.m.isLinear();Y(a.K,b);a.N.appendChild(a.K);b=new Xw(a.K,a);a.H.push(b);b=new Ww(a.K,a);a.H.push(b)}
1017
- function Ax(a){a.ba=S("div");a.ba.classList.add("shaka-spinner-container");a.j.appendChild(a.ba);var b=S("div");b.classList.add("shaka-spinner");a.ba.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("shaka-spinner-svg");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("shaka-spinner-path");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");
1013
+ function Ex(a){var b,c;return K(function(d){switch(d.g){case 1:E(d,2);if(!document.fullscreenEnabled){b=a.B;b.webkitSupportsFullscreen&&b.webkitEnterFullscreen();d.D(4);break}if(!document.pictureInPictureElement){d.D(5);break}return A(d,document.exitPictureInPicture(),5);case 5:return A(d,a.j.requestFullscreen({navigationUI:"hide"}),7);case 7:if(!a.i.forceLandscapeOnFullscreen||!screen.orientation){d.D(4);break}E(d,9);return A(d,screen.orientation.lock("landscape"),11);case 11:va(d,4,2);break;case 9:J(d,
1014
+ 2);case 4:va(d,0);break;case 2:c=J(d),a.dispatchEvent(new O("error",(new Map).set("detail",c))),B(d)}})}function Fx(a){var b;return K(function(c){if(!document.fullscreenEnabled)return b=a.B,b.webkitSupportsFullscreen&&b.webkitExitFullscreen(),c.D(0);screen.orientation&&screen.orientation.unlock();return A(c,document.exitFullscreen(),0)})}q.Se=function(){var a=this;return K(function(b){return a.jc()?A(b,Fx(a),0):A(b,Ex(a),0)})};
1015
+ q.Rf=function(){Y(this.K,!0);Y(this.P,!0);this.g.setAttribute("ad-active","true")};q.Cf=function(){Y(this.K,!1);Y(this.P,!1);this.g.removeAttribute("ad-active")};function bx(a){a.T&&a.A.duration&&(a.F.kf(),a.A.paused&&!a.$?a.A.play():a.A.pause())}function ax(a){a.m&&a.m.isPaused()?a.m.play():a.m&&a.m.pause()}
1016
+ function xx(a){a.g=S("div");a.g.classList.add("shaka-controls-container");a.j.appendChild(a.g);a.j.setAttribute("shaka-controls","true");a.h.o(a.g,"touchstart",function(b){a.A.duration&&(a.Nb()?a.J=Date.now():(Gx(a,b),b.cancelable&&b.preventDefault()))},{passive:!1});a.h.o(a.g,"click",function(){Hx(a)});a.h.o(a.g,"dblclick",function(){a.i.doubleClickForFullscreen&&a.sd()&&a.Se()})}
1017
+ function Ax(a){var b=S("div");b.classList.add("shaka-play-button-container");a.g.appendChild(b);a.gb=new cx(b,a);a.H.push(a.gb)}function zx(a){var b=S("div");b.classList.add("shaka-scrim-container");a.g.appendChild(b)}function Ix(a){a.K=S("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.m&&a.m.isLinear();Y(a.K,b);a.N.appendChild(a.K);b=new Yw(a.K,a);a.H.push(b);b=new Xw(a.K,a);a.H.push(b)}
1018
+ function Bx(a){a.ba=S("div");a.ba.classList.add("shaka-spinner-container");a.j.appendChild(a.ba);var b=S("div");b.classList.add("shaka-spinner");a.ba.appendChild(b);a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.classList.add("shaka-spinner-svg");a.setAttribute("viewBox","0 0 30 30");b.appendChild(a);b=document.createElementNS("http://www.w3.org/2000/svg","circle");b.classList.add("shaka-spinner-path");b.setAttribute("cx","15");b.setAttribute("cy","15");b.setAttribute("r","14.5");
1018
1019
  b.setAttribute("fill","none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}
1019
- function Bx(a){a.N=S("div");a.N.classList.add("shaka-bottom-controls");a.N.classList.add("shaka-no-propagation");a.g.appendChild(a.N);a.h.o(a.N,"click",function(d){d.target.closest(".shaka-overflow-button")||a.hc()});Hx(a);a.Z=S("div");a.Z.classList.add("shaka-controls-button-panel");a.Z.classList.add("shaka-show-controls-on-mouse-over");a.i.enableTooltips&&a.Z.classList.add("shaka-tooltips-on");a.N.appendChild(a.Z);for(var b=r(a.i.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,vx.get(c)?
1020
- (c=vx.get(c).create(a.Z,a),a.H.push(c)):Ua("Unrecognized control panel element requested:",c)}function Cx(a){if(a.i.addSeekBar)a.l=Ix.create(a.N,a),a.H.push(a.l);else{a=r(a.G);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function xx(a){a.P=S("div");a.P.classList.add("shaka-client-side-ad-container");Y(a.P,!1);a.h.o(a.P,"click",function(){Gx(a)});a.j.appendChild(a.P)}
1021
- function rx(a){a.h.o(a.F,"buffering",function(){a.T&&Y(a.ba,a.F.Pc())});a.T&&Y(a.ba,a.F.Pc());a.h.o(window,"keydown",function(b){Jx(a,b)});a.h.o(window,"click",function(){return a.hc()});a.h.o(a,"submenuopen",function(){a.hc()});a.h.o(a.A,"play",function(){ox(a)});a.h.o(a.A,"pause",function(){ox(a)});a.h.o(a.j,"mousemove",function(b){Fx(a,b)});a.h.o(a.j,"touchmove",function(b){Fx(a,b)},{passive:!0});a.h.o(a.j,"touchend",function(b){Fx(a,b)},{passive:!0});a.h.o(a.j,"mouseleave",function(){a.J||a.aa.za()});
1022
- a.h.o(a.C,"caststatuschanged",function(){sx(a)});a.h.o(a.j,"keydown",function(b){var c=document.activeElement,d=c&&c.classList?c.classList.contains("shaka-volume-bar"):!1,e=c&&c.classList&&c.classList.contains("shaka-seek-bar");a.g.contains(c)&&Fx(a,b);if(a.i.enableKeyboardPlaybackControls)switch(c=a.i.keyboardSeekDistance,b.key){case "ArrowLeft":a.l&&!d&&0<c&&(b.preventDefault(),Kx(a,a.l.getValue()-c));break;case "ArrowRight":a.l&&!d&&0<c&&(b.preventDefault(),Kx(a,a.l.getValue()+c));break;case "Home":a.l&&
1023
- Kx(a,a.F.Ka().start);break;case "End":a.l&&Kx(a,a.F.Ka().end);break;case " ":e&&Lx(a)}});a.h.o(a.j,"keyup",function(b){a.ma.delete(b.key)});a.h.o(a.Za,"ad-started",function(b){a.m=b.ad;a.Rf()});a.h.o(a.Za,"ad-stopped",function(){a.m=null;a.Cf()});screen.orientation&&a.h.o(screen.orientation,"change",function(){return K(function(b){return A(b,Mx(a),0)})})}
1024
- function Mx(a){return K(function(b){return a.A&&0!=a.A.readyState&&!a.C.qa()&&a.i.enableFullscreenOnRotation&&a.sd()?screen.orientation.type.includes("landscape")&&!a.jc()?A(b,Dx(a),0):screen.orientation.type.includes("portrait")&&a.jc()?A(b,Ex(a),0):b.D(0):b.return()})}
1025
- function Fx(a,b){"mousemove"==b.type&&(a.g.classList.remove("shaka-keyboard-navigation"),ox(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.J=Date.now():a.J+1E3<Date.now()&&(a.J=null);a.J&&"mousemove"==b.type||(a.j.style.cursor="",a.ib=!0,a.I.stop(),a.Nb()||(px(a),ox(a)),a.aa.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.aa.S(3))}function Nx(a){return window.matchMedia("hover: hover").matches?a.xb.some(function(b){return b.matches(":hover")}):!1}
1026
- function ox(a){var b=a.m?a.m.isPaused():!1,c=a.A.paused&&!a.$,d=a.g.classList.contains("shaka-keyboard-navigation");b||(!a.m||!a.m.isLinear())&&c||a.ib||d||Nx(a)?(px(a),a.g.setAttribute("shown","true"),a.ea.stop()):a.ea.S(a.i.fadeDelay)}function Gx(a){a.T&&(a.hd()?a.I.za():a.i.singleClickForPlayAndPause&&Lx(a))}function Lx(a){a.m&&a.m.isLinear()?$w(a):ax(a)}
1027
- function sx(a){var b=a.C.qa();a.dispatchEvent(new O("caststatuschanged",(new Map).set("newStatus",b)));b?a.g.setAttribute("casting","true"):a.g.removeAttribute("casting")}q.Nb=function(){return this.T?null!=this.g.getAttribute("shown")||null!=this.g.getAttribute("casting"):!1};function Kx(a,b){a.l.changeTo(b);a.Nb()&&px(a)}
1028
- function px(a){if(a.l)if(a.l.setValue(a.A.currentTime),a.l.update(),a.l.isShowing())for(var b=r(a.G),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=r(a.G),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new O("timeandseekrangeupdated"))}
1029
- function Jx(a,b){a.ma.add(b.key);var c=a.hd();"Tab"==b.key&&(a.g.classList.add("shaka-keyboard-navigation"),ox(a),a.h.o(window,"mousedown",function(){a.h.sc(window,"mousedown")}));"Escape"==b.key&&a.I.za();c&&a.ma.has("Tab")&&Ox(a,b)}
1030
- function Ox(a,b){var c=a.G.filter(function(f){return!f.classList.contains("shaka-hidden")});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("shaka-hidden");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("shaka-hidden");)d=d.previousElementSibling;var e=document.activeElement;a.ma.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
1031
- function qx(){var a=new Vb("en");a.ia("ar",new Map([["AD_DURATION","\u0645\u062f\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["AD_PROGRESS","\u0627\u0644\u0625\u0639\u0644\u0627\u0646 [AD_ON] \u0645\u0646 [NUM_ADS]"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],
1020
+ function Cx(a){a.N=S("div");a.N.classList.add("shaka-bottom-controls");a.N.classList.add("shaka-no-propagation");a.g.appendChild(a.N);a.h.o(a.N,"click",function(d){d.target.closest(".shaka-overflow-button")||a.hc()});Ix(a);a.Z=S("div");a.Z.classList.add("shaka-controls-button-panel");a.Z.classList.add("shaka-show-controls-on-mouse-over");a.i.enableTooltips&&a.Z.classList.add("shaka-tooltips-on");a.N.appendChild(a.Z);for(var b=r(a.i.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,wx.get(c)?
1021
+ (c=wx.get(c).create(a.Z,a),a.H.push(c)):Ua("Unrecognized control panel element requested:",c)}function Dx(a){if(a.i.addSeekBar)a.l=Jx.create(a.N,a),a.H.push(a.l);else{a=r(a.G);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function yx(a){a.P=S("div");a.P.classList.add("shaka-client-side-ad-container");Y(a.P,!1);a.h.o(a.P,"click",function(){Hx(a)});a.j.appendChild(a.P)}
1022
+ function sx(a){a.h.o(a.F,"buffering",function(){a.T&&Y(a.ba,a.F.Pc())});a.T&&Y(a.ba,a.F.Pc());a.h.o(window,"keydown",function(b){Kx(a,b)});a.h.o(window,"click",function(){return a.hc()});a.h.o(a,"submenuopen",function(){a.hc()});a.h.o(a.A,"play",function(){px(a)});a.h.o(a.A,"pause",function(){px(a)});a.h.o(a.j,"mousemove",function(b){Gx(a,b)});a.h.o(a.j,"touchmove",function(b){Gx(a,b)},{passive:!0});a.h.o(a.j,"touchend",function(b){Gx(a,b)},{passive:!0});a.h.o(a.j,"mouseleave",function(){a.J||a.aa.za()});
1023
+ a.h.o(a.C,"caststatuschanged",function(){tx(a)});a.h.o(a.j,"keydown",function(b){var c=document.activeElement,d=c&&c.classList?c.classList.contains("shaka-volume-bar"):!1,e=c&&c.classList&&c.classList.contains("shaka-seek-bar");a.g.contains(c)&&Gx(a,b);if(a.i.enableKeyboardPlaybackControls)switch(c=a.i.keyboardSeekDistance,b.key){case "ArrowLeft":a.l&&!d&&0<c&&(b.preventDefault(),Lx(a,a.l.getValue()-c));break;case "ArrowRight":a.l&&!d&&0<c&&(b.preventDefault(),Lx(a,a.l.getValue()+c));break;case "Home":a.l&&
1024
+ Lx(a,a.F.Ka().start);break;case "End":a.l&&Lx(a,a.F.Ka().end);break;case " ":e&&Mx(a)}});a.h.o(a.j,"keyup",function(b){a.ma.delete(b.key)});a.h.o(a.Za,"ad-started",function(b){a.m=b.ad;a.Rf()});a.h.o(a.Za,"ad-stopped",function(){a.m=null;a.Cf()});screen.orientation&&a.h.o(screen.orientation,"change",function(){return K(function(b){return A(b,Nx(a),0)})})}
1025
+ function Nx(a){return K(function(b){return a.A&&0!=a.A.readyState&&!a.C.qa()&&a.i.enableFullscreenOnRotation&&a.sd()?screen.orientation.type.includes("landscape")&&!a.jc()?A(b,Ex(a),0):screen.orientation.type.includes("portrait")&&a.jc()?A(b,Fx(a),0):b.D(0):b.return()})}
1026
+ function Gx(a,b){"mousemove"==b.type&&(a.g.classList.remove("shaka-keyboard-navigation"),px(a));"touchstart"==b.type||"touchmove"==b.type||"touchend"==b.type||"keyup"==b.type?a.J=Date.now():a.J+1E3<Date.now()&&(a.J=null);a.J&&"mousemove"==b.type||(a.j.style.cursor="",a.ib=!0,a.I.stop(),a.Nb()||(qx(a),px(a)),a.aa.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.aa.S(3))}function Ox(a){return window.matchMedia("hover: hover").matches?a.xb.some(function(b){return b.matches(":hover")}):!1}
1027
+ function px(a){var b=a.m?a.m.isPaused():!1,c=a.A.paused&&!a.$,d=a.g.classList.contains("shaka-keyboard-navigation");b||(!a.m||!a.m.isLinear())&&c||a.ib||d||Ox(a)?(qx(a),a.g.setAttribute("shown","true"),a.ea.stop()):a.ea.S(a.i.fadeDelay)}function Hx(a){a.T&&(a.hd()?a.I.za():a.i.singleClickForPlayAndPause&&Mx(a))}function Mx(a){a.m&&a.m.isLinear()?ax(a):bx(a)}
1028
+ function tx(a){var b=a.C.qa();a.dispatchEvent(new O("caststatuschanged",(new Map).set("newStatus",b)));b?a.g.setAttribute("casting","true"):a.g.removeAttribute("casting")}q.Nb=function(){return this.T?null!=this.g.getAttribute("shown")||null!=this.g.getAttribute("casting"):!1};function Lx(a,b){a.l.changeTo(b);a.Nb()&&qx(a)}
1029
+ function qx(a){if(a.l)if(a.l.setValue(a.A.currentTime),a.l.update(),a.l.isShowing())for(var b=r(a.G),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=r(a.G),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new O("timeandseekrangeupdated"))}
1030
+ function Kx(a,b){a.ma.add(b.key);var c=a.hd();"Tab"==b.key&&(a.g.classList.add("shaka-keyboard-navigation"),px(a),a.h.o(window,"mousedown",function(){a.h.sc(window,"mousedown")}));"Escape"==b.key&&a.I.za();c&&a.ma.has("Tab")&&Px(a,b)}
1031
+ function Px(a,b){var c=a.G.filter(function(f){return!f.classList.contains("shaka-hidden")});if(c.length){var d=c[0];if(d.childNodes.length){for(c=d.firstElementChild;c&&c.classList.contains("shaka-hidden");)c=c.nextElementSibling;for(d=d.lastElementChild;d&&d.classList.contains("shaka-hidden");)d=d.previousElementSibling;var e=document.activeElement;a.ma.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
1032
+ function rx(){var a=new Vb("en");a.ia("ar",new Map([["AD_DURATION","\u0645\u062f\u0629 \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["AD_PROGRESS","\u0627\u0644\u0625\u0639\u0644\u0627\u0646 [AD_ON] \u0645\u0646 [NUM_ADS]"],["AD_TIME","\u0627\u0644\u0625\u0639\u0644\u0627\u0646: [AD_TIME]"],["AUTO_QUALITY","\u062a\u0644\u0642\u0627\u0626\u064a"],["BACK","\u0631\u062c\u0648\u0639"],["CAPTIONS","\u0627\u0644\u062a\u0631\u062c\u0645\u0629 \u0648\u0627\u0644\u0634\u0631\u062d"],["CAST","\u0625\u0631\u0633\u0627\u0644..."],
1032
1033
  ["ENTER_LOOP_MODE","\u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],["ENTER_PICTURE_IN_PICTURE",'\u0627\u0644\u062f\u062e\u0648\u0644 \u0641\u064a \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["EXIT_FULL_SCREEN","\u0625\u0646\u0647\u0627\u0621 \u0648\u0636\u0639 \u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["EXIT_LOOP_MODE","\u0625\u064a\u0642\u0627\u0641 \u062a\u0643\u0631\u0627\u0631 \u0627\u0644\u0641\u064a\u062f\u064a\u0648 \u0627\u0644\u062d\u0627\u0644\u064a"],
1033
1034
  ["EXIT_PICTURE_IN_PICTURE",'\u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0648\u0636\u0639 "\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0646\u0627\u0641\u0630\u0629"'],["FAST_FORWARD","\u062a\u0642\u062f\u064a\u0645 \u0633\u0631\u064a\u0639"],["FULL_SCREEN","\u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629"],["LANGUAGE","\u0627\u0644\u0644\u063a\u0629"],["LIVE","\u0645\u0628\u0627\u0634\u0631"],["LOOP","\u062a\u0643\u0631\u0627\u0631"],["MORE_SETTINGS","\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0625\u0639\u062f\u0627\u062f\u0627\u062a"],
1034
1035
  ["MULTIPLE_LANGUAGES","\u0644\u063a\u0627\u062a \u0645\u062a\u0639\u062f\u062f\u0629"],["MUTE","\u0643\u062a\u0645 \u0627\u0644\u0635\u0648\u062a"],["NOT_APPLICABLE","\u063a\u064a\u0631 \u0633\u0627\u0631\u064d"],["OFF","\u0625\u064a\u0642\u0627\u0641"],["ON","\u062a\u0634\u063a\u064a\u0644"],["PAUSE","\u0625\u064a\u0642\u0627\u0641 \u0645\u0624\u0642\u062a"],["PICTURE_IN_PICTURE","\u0646\u0627\u0641\u0630\u0629 \u0636\u0645\u0646 \u0627\u0644\u0646\u0627\u0641\u0630\u0629"],["PLAY","\u0627\u0644\u062a\u0634\u063a\u064a\u0644"],
@@ -1089,74 +1090,74 @@ a.ia("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [
1089
1090
  ["RESOLUTION","\u89e3\u6790\u5ea6"],["REWIND","\u5012\u8f49"],["SEEK","\u641c\u5c0b"],["SKIP_AD","\u7565\u904e\u5ee3\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u53d6\u6d88\u975c\u97f3"],["UNRECOGNIZED_LANGUAGE","\u7121\u6cd5\u8fa8\u8b58"],["VOLUME","\u97f3\u91cf"]]));a.mf(navigator.languages||[]);return a}M("shaka.ui.Controls",Z);Z.prototype.isOpaque=Z.prototype.Nb;Z.prototype.hideAdUI=Z.prototype.Cf;Z.prototype.showAdUI=Z.prototype.Rf;
1090
1091
  Z.prototype.toggleFullScreen=Z.prototype.Se;Z.prototype.isFullScreenEnabled=Z.prototype.jc;Z.prototype.isFullScreenSupported=Z.prototype.sd;Z.prototype.hideSettingsMenus=Z.prototype.hc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.hd;Z.prototype.setLastTouchEventTime=Z.prototype.Pf;Z.prototype.getDisplayTime=Z.prototype.yf;Z.prototype.isCastAllowed=Z.prototype.Tg;Z.prototype.setSeeking=Z.prototype.Le;Z.prototype.isSeeking=Z.prototype.Vg;Z.prototype.getConfig=Z.prototype.sg;
1091
1092
  Z.prototype.getClientSideAdContainer=Z.prototype.rg;Z.prototype.getServerSideAdContainer=Z.prototype.Kg;Z.prototype.getControlsContainer=Z.prototype.vg;Z.prototype.getLocalPlayer=Z.prototype.Ag;Z.prototype.getPlayer=Z.prototype.dc;Z.prototype.getLocalVideo=Z.prototype.Bg;Z.prototype.getVideo=Z.prototype.Bb;Z.prototype.getVideoContainer=Z.prototype.Qg;Z.prototype.getLocalization=Z.prototype.Cg;Z.prototype.getCastProxy=Z.prototype.pg;Z.prototype.getAd=Z.prototype.getAd;
1092
- Z.prototype.setEnabledNativeControls=Z.prototype.Of;Z.prototype.setEnabledShakaControls=Z.prototype.He;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.Wg;Z.prototype.allowCast=Z.prototype.dg;Z.registerSeekBar=function(a){Ix=a};Z.registerElement=ux;Z.prototype.destroy=Z.prototype.destroy;var vx=new Map,Ix=new nx;function Px(a,b){X.call(this,a,b);var c=this;this.l=this.controls.i;this.j=this.controls.g;this.i=[];this.g=Mk();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=S("div");this.h.classList.add("shaka-overflow-menu");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");
1093
- this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);Qx(this);this.eventManager.o(this.localization,"locale-updated",function(){Rx(c)});this.eventManager.o(this.localization,"locale-changed",function(){Rx(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&Y(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Y(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){Y(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.Pf(Date.now());
1094
- d.stopPropagation()});this.eventManager.o(this.g,"click",function(){Sx(c)});Rx(this);this.ad&&this.ad.isLinear()&&Y(this.g,!1)}u(Px,X);Px.prototype.release=function(){this.j=null;for(var a=r(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];X.prototype.release.call(this)};function Tx(a,b){Ux.set(a,b)}
1095
- function Qx(a){for(var b=r(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,Ux.get(c)?(c=Ux.get(c),a.i.push(c.create(a.h,a.controls))):Ua("Unrecognized overflow menu element requested:",c)}function Sx(a){if(a.controls.hd())a.controls.hc();else{Y(a.h,!0);ox(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};ib(a.h.childNodes,b)&&jb(a.h.childNodes,b)[0].focus()}}function Rx(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1096
- M("shaka.ui.OverflowMenu",Px);Px.registerElement=Tx;function Vx(){}Vx.prototype.create=function(a,b){return new Px(a,b)};ux("overflow_menu",new Vx);var Ux=new Map;function Wx(a,b){X.call(this,a,b);var c=this;this.g=Mk();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=S("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");a=S("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=S("span");a.appendChild(this.j);
1097
- this.i=S("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);Xx(this);Yx(this);this.eventManager.o(this.localization,"locale-updated",function(){Xx(c)});this.eventManager.o(this.localization,"locale-changed",function(){Xx(c)});this.eventManager.o(this.g,"click",function(){c.controls.Bb().webkitShowPlaybackTargetPicker()});a=this.controls.Bb();this.eventManager.o(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=
1098
- c.player.zf()==Jm;Y(c.g,"available"==d.availability&&e)});this.eventManager.o(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){Yx(c)})}u(Wx,X);function Yx(a){var b=a.controls.Bb();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function Xx(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}M("shaka.ui.AirPlayButton",Wx);function Zx(){}Zx.prototype.create=function(a,b){return new Wx(a,b)};Tx("airplay",new Zx);
1099
- ux("airplay",new Zx);function $x(a,b,c){this.i=a;this.h=ay(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.ie()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,this.h);this.configure({});c.controls||a.Oe(b);b.ui=this;c.ui=this}q=$x.prototype;q.destroy=function(){var a=this;return K(function(b){if(1==b.g)return a.g?A(b,a.g.destroy(),2):b.D(2);if(4!=b.g)return a.g=null,a.i?A(b,a.i.destroy(),4):b.D(4);a.i=null;B(b)})};q.ie=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Yc()&&1<navigator.maxTouchPoints};
1100
- q.getConfiguration=function(){var a=ay(this);rl(a,this.h,ay(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=sl(a,b));rl(this.h,a,ay(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new O("uiupdated"))};q.ug=function(){return this.g};q.xh=function(a){this.g.He(a)};
1101
- function ay(a){var b={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language picture_in_picture cast playback_rate".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent".split(" "),contextMenuElements:["loop",
1093
+ Z.prototype.setEnabledNativeControls=Z.prototype.Of;Z.prototype.setEnabledShakaControls=Z.prototype.He;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.Wg;Z.prototype.allowCast=Z.prototype.dg;Z.registerSeekBar=function(a){Jx=a};Z.registerElement=vx;Z.prototype.destroy=Z.prototype.destroy;var wx=new Map,Jx=new ox;function Qx(a,b){X.call(this,a,b);var c=this;this.l=this.controls.i;this.j=this.controls.g;this.i=[];this.g=Mk();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=S("div");this.h.classList.add("shaka-overflow-menu");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");
1094
+ this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);Rx(this);this.eventManager.o(this.localization,"locale-updated",function(){Sx(c)});this.eventManager.o(this.localization,"locale-changed",function(){Sx(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&Y(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Y(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){Y(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.Pf(Date.now());
1095
+ d.stopPropagation()});this.eventManager.o(this.g,"click",function(){Tx(c)});Sx(this);this.ad&&this.ad.isLinear()&&Y(this.g,!1)}u(Qx,X);Qx.prototype.release=function(){this.j=null;for(var a=r(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];X.prototype.release.call(this)};function Ux(a,b){Vx.set(a,b)}
1096
+ function Rx(a){for(var b=r(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,Vx.get(c)?(c=Vx.get(c),a.i.push(c.create(a.h,a.controls))):Ua("Unrecognized overflow menu element requested:",c)}function Tx(a){if(a.controls.hd())a.controls.hc();else{Y(a.h,!0);px(a.controls);var b=function(c){return 0==c.classList.contains("shaka-hidden")};ib(a.h.childNodes,b)&&jb(a.h.childNodes,b)[0].focus()}}function Sx(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1097
+ M("shaka.ui.OverflowMenu",Qx);Qx.registerElement=Ux;function Wx(){}Wx.prototype.create=function(a,b){return new Qx(a,b)};vx("overflow_menu",new Wx);var Vx=new Map;function Xx(a,b){X.call(this,a,b);var c=this;this.g=Mk();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=S("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");a=S("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=S("span");a.appendChild(this.j);
1098
+ this.i=S("span");this.i.classList.add("shaka-current-selection-span");a.appendChild(this.i);this.g.appendChild(a);this.parent.appendChild(this.g);Yx(this);Zx(this);this.eventManager.o(this.localization,"locale-updated",function(){Yx(c)});this.eventManager.o(this.localization,"locale-changed",function(){Yx(c)});this.eventManager.o(this.g,"click",function(){c.controls.Bb().webkitShowPlaybackTargetPicker()});a=this.controls.Bb();this.eventManager.o(a,"webkitplaybacktargetavailabilitychanged",function(d){var e=
1099
+ c.player.zf()==Jm;Y(c.g,"available"==d.availability&&e)});this.eventManager.o(a,"webkitcurrentplaybacktargetiswirelesschanged",function(){Zx(c)})}u(Xx,X);function Zx(a){var b=a.controls.Bb();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function Yx(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}M("shaka.ui.AirPlayButton",Xx);function $x(){}$x.prototype.create=function(a,b){return new Xx(a,b)};Ux("airplay",new $x);
1100
+ vx("airplay",new $x);function ay(a,b,c){this.i=a;this.h=by(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.ie()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,this.h);this.configure({});c.controls||a.Oe(b);b.ui=this;c.ui=this}q=ay.prototype;q.destroy=function(){var a=this;return K(function(b){if(1==b.g)return a.g?A(b,a.g.destroy(),2):b.D(2);if(4!=b.g)return a.g=null,a.i?A(b,a.i.destroy(),4):b.D(4);a.i=null;B(b)})};q.ie=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Yc()&&1<navigator.maxTouchPoints};
1101
+ q.getConfiguration=function(){var a=by(this);rl(a,this.h,by(this),{},"");return a};q.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=sl(a,b));rl(this.h,a,by(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new O("uiupdated"))};q.ug=function(){return this.g};q.xh=function(a){this.g.He(a)};
1102
+ function by(a){var b={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language picture_in_picture cast playback_rate".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent".split(" "),contextMenuElements:["loop",
1102
1103
  "picture_in_picture","statistics"],playbackRates:[.5,.75,1,1.25,1.5,1.75,2],fastForwardRates:[2,4,8,1],rewindRates:[-1,-2,-4,-8],addSeekBar:!0,addBigPlayButton:!1,customContextMenu:!1,castReceiverAppId:"",castAndroidReceiverCompatible:!1,clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",level:"rgb(255, 255, 255)"},
1103
- trackLabelFormat:by,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5};window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.ie()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
1104
- function cy(){var a,b,c,d,e,f,g,h,k,l,m,p,n;return K(function(t){switch(t.g){case 1:Mt();if(!Zl())return dy("shaka-ui-load-failed",ey),t.return();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");if(!b.length&&!a.length){t.D(2);break}if(b.length&&!a.length){c=r(b);for(d=c.next();!d.done;d=c.next())e=d.value,e.ui||(f=document.createElement("div"),g=e.parentElement,g.replaceChild(f,e),f.appendChild(e),fy(f,e));t.D(2);break}h=r(a);k=h.next();
1105
- case 4:if(k.done){t.D(2);break}l=k.value;if(l.ui){t.D(5);break}m=null;p=r(b);for(d=p.next();!d.done;d=p.next())if(n=d.value,n.parentElement==l){m=n;break}m||(m=document.createElement("video"),m.setAttribute("playsinline",""),l.appendChild(m));E(t,7);return A(t,fy(l,m),9);case 9:va(t,5);break;case 7:return J(t),dy("shaka-ui-load-failed",gy),t.return();case 5:k=h.next();t.D(4);break;case 2:dy("shaka-ui-loaded"),B(t)}})}
1106
- function dy(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
1107
- function fy(a,b){var c,d,e,f,g,h,k,l,m;return K(function(p){switch(p.g){case 1:c=new T(b);d=new $x(c,a,b);e="";f=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(e=a.dataset.shakaPlayerCastReceiverId,f="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(e=b.dataset.shakaPlayerCastReceiverId,f="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);e.length&&d.configure({castReceiverAppId:e,castAndroidReceiverCompatible:f});b.controls&&
1108
- d.g.Of(!0);if(g=b.getAttribute("src"))h=document.createElement("source"),h.setAttribute("src",g),b.appendChild(h),b.removeAttribute("src");k=r(b.querySelectorAll("source"));l=k.next();case 2:if(l.done){p.D(0);break}m=l.value;E(p,5);return A(p,d.g.dc().load(m.getAttribute("src")),7);case 7:p.D(0);break;case 5:J(p);case 3:l=k.next(),p.D(2)}})}M("shaka.ui.Overlay",$x);$x.prototype.setEnabled=$x.prototype.xh;$x.prototype.getControls=$x.prototype.ug;$x.prototype.configure=$x.prototype.configure;
1109
- $x.prototype.getConfiguration=$x.prototype.getConfiguration;$x.prototype.isMobile=$x.prototype.ie;$x.prototype.destroy=$x.prototype.destroy;var by=0;$x.TrackLabelFormat={LANGUAGE:by,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var ey=0,gy=1;$x.FailReasonCode={NO_BROWSER_SUPPORT:ey,PLAYER_FAILED_TO_LOAD:gy};"complete"==document.readyState?K(function(a){if(1==a.g)return A(a,Promise.resolve(),2);cy();B(a)}):window.addEventListener("load",cy);function hy(a,b,c,d,e,f,g){function h(z,D){return z+": "+D}function k(z){return"variant"==z.type?z.audioRoles?z.audioRoles.join(", "):void 0:z.roles.join(", ")}var l=a.find(function(z){return 1==z.active}),m=Rw(b);Nk(b);b.appendChild(m);m=new Map;for(var p=r(a),n=p.next();!n.done;n=p.next())n=n.value,m.has(n.language)||m.set(n.language,new Set),m.get(n.language).add(k(n));m=new Set;l=l?h(l.language,k(l)):"";p={};a=r(a);for(n=a.next();!n.done;p={Xa:p.Xa},n=a.next()){p.Xa=n.value;n=p.Xa.language;var t=
1110
- p.Xa.forced,y=f.resolve(Zb.Yf),x=k(p.Xa),v=h(n,x);if(!m.has(v)){m.add(v);var w=Mk();w.addEventListener("click",function(z){return function(){c(z.Xa)}}(p));var C=S("span");w.appendChild(C);C.textContent=iy(n,f);switch(g){case by:t&&(C.textContent+=" ("+y+")");break;case 1:x?C.textContent=x:(Ua("Track #"+p.Xa.id+" does not have a role, but the UI is configured to only show role."),C.textContent="?");t&&(C.textContent+=" ("+y+")");break;case 2:x&&(C.textContent+=": "+x);t&&(C.textContent+=" ("+y+")");
1111
- break;case 3:p.Xa.label?C.textContent=p.Xa.label:(Ua("Track #"+p.Xa.id+" does not have a label, but the UI is configured to only show labels."),C.textContent="?")}d&&v==l&&(w.appendChild(Uw()),C.classList.add("shaka-chosen-item"),w.ariaSelected="true",e.textContent=C.textContent);b.appendChild(w)}}}
1112
- function iy(a,b){if(!a&&!b)return"";switch(a){case "mul":return b.resolve("MULTIPLE_LANGUAGES");case "und":return b.resolve("UNDETERMINED_LANGUAGE");case "zxx":return b.resolve("NOT_APPLICABLE")}var c=Rb(a);return a in Nw?Nw[a].s:c in Nw?Nw[c].s+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function jy(a,b,c){X.call(this,a,b);var d=this;ky(this,c);ly(this);my(this);this.eventManager.o(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new O("submenuopen")),Y(d.menu,!0),Tw(d.menu)):Y(d.menu,!1)})}u(jy,X);
1113
- function ky(a,b){a.button=Mk();a.button.classList.add("shaka-overflow-button");a.icon=S("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);b=S("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");a.nameSpan=S("span");b.appendChild(a.nameSpan);a.currentSelection=S("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);a.button.appendChild(b);a.parent.appendChild(a.button)}
1114
- function ly(a){a.menu=S("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=Mk();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.hc()});var b=S("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1115
- S("span");a.backButton.appendChild(a.backSpan);a.controls.g.appendChild(a.menu)}function my(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.o(a.backButton,"click",function(){function b(c){return 0==c.classList.contains("shaka-hidden")}Y(a.parent,!0);ib(a.parent.childNodes,b)&&jb(a.parent.childNodes,b)[0].focus();ox(a.controls)}))}M("shaka.ui.SettingsMenu",jy);function ny(a,b){jy.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-audio-languages");this.eventManager.o(this.localization,"locale-updated",function(){oy(c)});this.eventManager.o(this.localization,"locale-changed",function(){oy(c)});this.eventManager.o(this.player,"trackschanged",function(){var d=0<c.player.Sa().length;Y(c.button,d);py(c)});this.eventManager.o(this.player,"variantchanged",
1116
- function(){py(c)});oy(this);py(this)}u(ny,jy);function py(a){var b=a.player.Sa();hy(b,a.menu,function(c){a.player.Id(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.i.trackLabelFormat);Tw(a.menu);a.controls.dispatchEvent(new O("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText)}
1117
- function oy(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("LANGUAGE");a.nameSpan.textContent=a.localization.resolve("LANGUAGE");a.backSpan.textContent=a.localization.resolve("LANGUAGE")}M("shaka.ui.AudioLanguageSelection",ny);function qy(){}qy.prototype.create=function(a,b){return new ny(a,b)};Tx("language",new qy);ux("language",new qy);function ry(a,b){X.call(this,a,b);var c=this;this.h=this.controls.C;this.g=Mk();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);a=S("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=S("span");a.appendChild(this.l);this.j=S("span");this.j.classList.add("shaka-current-selection-span");
1118
- a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);sy(this);ty(this);this.eventManager.o(this.localization,"locale-updated",function(){sy(c)});this.eventManager.o(this.localization,"locale-changed",function(){sy(c)});this.eventManager.o(this.g,"click",function(){uy(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){ty(c)})}u(ry,X);
1119
- function uy(a){var b;K(function(c){if(1==c.g){if(a.h.qa())return a.h.Sf(),c.D(0);E(c,3);a.g.disabled=!0;return A(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,va(c,0);b=J(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new O("error",(new Map).set("detail",b)));B(c)})}function ty(a){var b=a.h.jf()&&a.controls.ab,c=a.h.qa();Y(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");vy(a)}
1120
- function vy(a){a.j.textContent=a.h.qa()?a.h.Gd():a.localization.resolve("OFF")}function sy(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");vy(a)}M("shaka.ui.CastButton",ry);function wy(){}wy.prototype.create=function(a,b){return new ry(a,b)};Tx("cast",new wy);ux("cast",new wy);function xy(a,b){X.call(this,a,b);var c=this;this.g=Mk();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-fast-forward-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status","1x");this.g.textContent="fast_forward";this.parent.appendChild(this.g);yy(this);this.h=this.controls.i.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){yy(c)});this.eventManager.o(this.localization,"locale-changed",function(){yy(c)});
1121
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.zb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Ue(d);c.g.setAttribute("shaka-status",d+"x")}})}u(xy,X);function yy(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}M("shaka.ui.FastForwardButton",xy);function zy(){}zy.prototype.create=function(a,b){return new xy(a,b)};ux("fast_forward",new zy);function Ay(a,b){X.call(this,a,b);var c=this;this.h=this.controls.B;this.g=Mk();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");By(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);Cy(this);this.eventManager.o(this.localization,"locale-updated",function(){Cy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Cy(c)});this.eventManager.o(this.g,"click",function(){return K(function(d){return A(d,
1122
- c.controls.Se(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.jc()?"fullscreen_exit":"fullscreen";Cy(c)});this.eventManager.o(this.h,"loadedmetadata",function(){By(c)});this.eventManager.o(this.h,"loadeddata",function(){By(c)})}u(Ay,X);function By(a){a.controls.sd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function Cy(a){a.g.ariaLabel=a.localization.resolve(a.controls.jc()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1123
- M("shaka.ui.FullscreenButton",Ay);function Dy(){}Dy.prototype.create=function(a,b){return new Ay(a,b)};ux("fullscreen",new Dy);function Ey(a,b){X.call(this,a,b);var c=this;this.g=Mk();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);a=S("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=S("span");this.j.textContent=this.localization.resolve("LOOP");a.appendChild(this.j);this.l=S("span");this.l.classList.add("shaka-current-selection-span");
1124
- a.appendChild(this.l);this.g.appendChild(a);Fy(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){Fy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Fy(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.za();c.h.ka(1)});this.m=this.video.loop;this.h=new Q(function(){c.m!=c.video.loop&&(Fy(c),c.m=c.video.loop)});this.h.ka(1)}u(Ey,X);Ey.prototype.release=function(){this.h.stop();this.h=null;X.prototype.release.call(this)};
1125
- function Fy(a){a.j.textContent=a.localization.resolve("LOOP");a.l.textContent=a.localization.resolve(a.video.loop?"ON":"OFF");a.i.textContent=a.video.loop?"repeat_on":"repeat";a.g.ariaLabel=a.localization.resolve(a.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}M("shaka.ui.LoopButton",Ey);function Gy(){}Gy.prototype.create=function(a,b){return new Ey(a,b)};Tx("loop",new Gy);ux("loop",new Gy);ex("loop",new Gy);function Hy(a,b){X.call(this,a,b);var c=this;this.g=Mk();this.g.classList.add("shaka-mute-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.parent.appendChild(this.g);Iy(this);Jy(this);this.eventManager.o(this.localization,"locale-updated",function(){Iy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Iy(c)});this.eventManager.o(this.g,"click",function(){c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});
1126
- this.eventManager.o(this.video,"volumechange",function(){Iy(c);Jy(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){Iy(c);Jy(c)});this.eventManager.o(this.adManager,"ad-muted",function(){Iy(c);Jy(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;Iy(c);Jy(c)})}u(Hy,X);function Iy(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1127
- function Jy(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}M("shaka.ui.MuteButton",Hy);function Ky(){}Ky.prototype.create=function(a,b){return new Hy(a,b)};ux("mute",new Ky);function Ly(a,b){X.call(this,a,b);var c=this;this.l=this.controls.B;this.g=Mk();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);a=S("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=S("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.j);this.h=
1128
- S("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);My(this);this.parent.appendChild(this.g);document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||Y(this.g,!1);this.eventManager.o(this.localization,"locale-updated",function(){My(c)});this.eventManager.o(this.localization,"locale-changed",function(){My(c)});this.eventManager.o(this.g,"click",function(){Ny(c)});this.eventManager.o(this.l,"enterpictureinpicture",function(){c.i.textContent=
1104
+ trackLabelFormat:cy,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5};window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.ie()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
1105
+ function dy(){var a,b,c,d,e,f,g,h,k,l,m,p,n;return K(function(t){switch(t.g){case 1:Mt();if(!Zl())return ey("shaka-ui-load-failed",fy),t.return();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");if(!b.length&&!a.length){t.D(2);break}if(b.length&&!a.length){c=r(b);for(d=c.next();!d.done;d=c.next())e=d.value,e.ui||(f=document.createElement("div"),g=e.parentElement,g.replaceChild(f,e),f.appendChild(e),gy(f,e));t.D(2);break}h=r(a);k=h.next();
1106
+ case 4:if(k.done){t.D(2);break}l=k.value;if(l.ui){t.D(5);break}m=null;p=r(b);for(d=p.next();!d.done;d=p.next())if(n=d.value,n.parentElement==l){m=n;break}m||(m=document.createElement("video"),m.setAttribute("playsinline",""),l.appendChild(m));E(t,7);return A(t,gy(l,m),9);case 9:va(t,5);break;case 7:return J(t),ey("shaka-ui-load-failed",hy),t.return();case 5:k=h.next();t.D(4);break;case 2:ey("shaka-ui-loaded"),B(t)}})}
1107
+ function ey(a,b){var c=null;void 0!=b&&(c={reasonCode:b});a=new CustomEvent(a,{detail:c});document.dispatchEvent(a)}
1108
+ function gy(a,b){var c,d,e,f,g,h,k,l,m;return K(function(p){switch(p.g){case 1:c=new T(b);d=new ay(c,a,b);e="";f=!1;a.dataset&&a.dataset.shakaPlayerCastReceiverId?(e=a.dataset.shakaPlayerCastReceiverId,f="true"===a.dataset.shakaPlayerCastAndroidReceiverCompatible):b.dataset&&b.dataset.shakaPlayerCastReceiverId&&(e=b.dataset.shakaPlayerCastReceiverId,f="true"===b.dataset.shakaPlayerCastAndroidReceiverCompatible);e.length&&d.configure({castReceiverAppId:e,castAndroidReceiverCompatible:f});b.controls&&
1109
+ d.g.Of(!0);if(g=b.getAttribute("src"))h=document.createElement("source"),h.setAttribute("src",g),b.appendChild(h),b.removeAttribute("src");k=r(b.querySelectorAll("source"));l=k.next();case 2:if(l.done){p.D(0);break}m=l.value;E(p,5);return A(p,d.g.dc().load(m.getAttribute("src")),7);case 7:p.D(0);break;case 5:J(p);case 3:l=k.next(),p.D(2)}})}M("shaka.ui.Overlay",ay);ay.prototype.setEnabled=ay.prototype.xh;ay.prototype.getControls=ay.prototype.ug;ay.prototype.configure=ay.prototype.configure;
1110
+ ay.prototype.getConfiguration=ay.prototype.getConfiguration;ay.prototype.isMobile=ay.prototype.ie;ay.prototype.destroy=ay.prototype.destroy;var cy=0;ay.TrackLabelFormat={LANGUAGE:cy,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var fy=0,hy=1;ay.FailReasonCode={NO_BROWSER_SUPPORT:fy,PLAYER_FAILED_TO_LOAD:hy};"complete"==document.readyState?K(function(a){if(1==a.g)return A(a,Promise.resolve(),2);dy();B(a)}):window.addEventListener("load",dy);function iy(a,b,c,d,e,f,g){function h(z,D){return z+": "+D}function k(z){return"variant"==z.type?z.audioRoles?z.audioRoles.join(", "):void 0:z.roles.join(", ")}var l=a.find(function(z){return 1==z.active}),m=Sw(b);Nk(b);b.appendChild(m);m=new Map;for(var p=r(a),n=p.next();!n.done;n=p.next())n=n.value,m.has(n.language)||m.set(n.language,new Set),m.get(n.language).add(k(n));m=new Set;l=l?h(l.language,k(l)):"";p={};a=r(a);for(n=a.next();!n.done;p={Xa:p.Xa},n=a.next()){p.Xa=n.value;n=p.Xa.language;var t=
1111
+ p.Xa.forced,y=f.resolve(Zb.Yf),x=k(p.Xa),v=h(n,x);if(!m.has(v)){m.add(v);var w=Mk();w.addEventListener("click",function(z){return function(){c(z.Xa)}}(p));var C=S("span");w.appendChild(C);C.textContent=jy(n,f);switch(g){case cy:t&&(C.textContent+=" ("+y+")");break;case 1:x?C.textContent=x:(Ua("Track #"+p.Xa.id+" does not have a role, but the UI is configured to only show role."),C.textContent="?");t&&(C.textContent+=" ("+y+")");break;case 2:x&&(C.textContent+=": "+x);t&&(C.textContent+=" ("+y+")");
1112
+ break;case 3:p.Xa.label?C.textContent=p.Xa.label:(Ua("Track #"+p.Xa.id+" does not have a label, but the UI is configured to only show labels."),C.textContent="?")}d&&v==l&&(w.appendChild(Vw()),C.classList.add("shaka-chosen-item"),w.ariaSelected="true",e.textContent=C.textContent);b.appendChild(w)}}}
1113
+ function jy(a,b){if(!a&&!b)return"";switch(a){case "mul":return b.resolve("MULTIPLE_LANGUAGES");case "und":return b.resolve("UNDETERMINED_LANGUAGE");case "zxx":return b.resolve("NOT_APPLICABLE")}var c=Rb(a);return a in Ow?Ow[a].s:c in Ow?Ow[c].s+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function ky(a,b,c){X.call(this,a,b);var d=this;ly(this,c);my(this);ny(this);this.eventManager.o(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new O("submenuopen")),Y(d.menu,!0),Uw(d.menu)):Y(d.menu,!1)})}u(ky,X);
1114
+ function ly(a,b){a.button=Mk();a.button.classList.add("shaka-overflow-button");a.icon=S("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);b=S("label");b.classList.add("shaka-overflow-button-label");b.classList.add("shaka-overflow-menu-only");a.nameSpan=S("span");b.appendChild(a.nameSpan);a.currentSelection=S("span");a.currentSelection.classList.add("shaka-current-selection-span");b.appendChild(a.currentSelection);a.button.appendChild(b);a.parent.appendChild(a.button)}
1115
+ function my(a){a.menu=S("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=Mk();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.hc()});var b=S("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1116
+ S("span");a.backButton.appendChild(a.backSpan);a.controls.g.appendChild(a.menu)}function ny(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.o(a.backButton,"click",function(){function b(c){return 0==c.classList.contains("shaka-hidden")}Y(a.parent,!0);ib(a.parent.childNodes,b)&&jb(a.parent.childNodes,b)[0].focus();px(a.controls)}))}M("shaka.ui.SettingsMenu",ky);function oy(a,b){ky.call(this,a,b,"language");var c=this;this.button.classList.add("shaka-language-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-audio-languages");this.eventManager.o(this.localization,"locale-updated",function(){py(c)});this.eventManager.o(this.localization,"locale-changed",function(){py(c)});this.eventManager.o(this.player,"trackschanged",function(){var d=0<c.player.Sa().length;Y(c.button,d);qy(c)});this.eventManager.o(this.player,"variantchanged",
1117
+ function(){qy(c)});py(this);qy(this)}u(oy,ky);function qy(a){var b=a.player.Sa();iy(b,a.menu,function(c){a.player.Id(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.i.trackLabelFormat);Uw(a.menu);a.controls.dispatchEvent(new O("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText)}
1118
+ function py(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("LANGUAGE");a.nameSpan.textContent=a.localization.resolve("LANGUAGE");a.backSpan.textContent=a.localization.resolve("LANGUAGE")}M("shaka.ui.AudioLanguageSelection",oy);function ry(){}ry.prototype.create=function(a,b){return new oy(a,b)};Ux("language",new ry);vx("language",new ry);function sy(a,b){X.call(this,a,b);var c=this;this.h=this.controls.C;this.g=Mk();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);a=S("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.l=S("span");a.appendChild(this.l);this.j=S("span");this.j.classList.add("shaka-current-selection-span");
1119
+ a.appendChild(this.j);this.g.appendChild(a);this.parent.appendChild(this.g);ty(this);uy(this);this.eventManager.o(this.localization,"locale-updated",function(){ty(c)});this.eventManager.o(this.localization,"locale-changed",function(){ty(c)});this.eventManager.o(this.g,"click",function(){vy(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){uy(c)})}u(sy,X);
1120
+ function vy(a){var b;K(function(c){if(1==c.g){if(a.h.qa())return a.h.Sf(),c.D(0);E(c,3);a.g.disabled=!0;return A(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,va(c,0);b=J(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new O("error",(new Map).set("detail",b)));B(c)})}function uy(a){var b=a.h.jf()&&a.controls.ab,c=a.h.qa();Y(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");wy(a)}
1121
+ function wy(a){a.j.textContent=a.h.qa()?a.h.Gd():a.localization.resolve("OFF")}function ty(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");wy(a)}M("shaka.ui.CastButton",sy);function xy(){}xy.prototype.create=function(a,b){return new sy(a,b)};Ux("cast",new xy);vx("cast",new xy);function yy(a,b){X.call(this,a,b);var c=this;this.g=Mk();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-fast-forward-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status","1x");this.g.textContent="fast_forward";this.parent.appendChild(this.g);zy(this);this.h=this.controls.i.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){zy(c)});this.eventManager.o(this.localization,"locale-changed",function(){zy(c)});
1122
+ this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.zb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Ue(d);c.g.setAttribute("shaka-status",d+"x")}})}u(yy,X);function zy(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}M("shaka.ui.FastForwardButton",yy);function Ay(){}Ay.prototype.create=function(a,b){return new yy(a,b)};vx("fast_forward",new Ay);function By(a,b){X.call(this,a,b);var c=this;this.h=this.controls.B;this.g=Mk();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");Cy(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);Dy(this);this.eventManager.o(this.localization,"locale-updated",function(){Dy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Dy(c)});this.eventManager.o(this.g,"click",function(){return K(function(d){return A(d,
1123
+ c.controls.Se(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.jc()?"fullscreen_exit":"fullscreen";Dy(c)});this.eventManager.o(this.h,"loadedmetadata",function(){Cy(c)});this.eventManager.o(this.h,"loadeddata",function(){Cy(c)})}u(By,X);function Cy(a){a.controls.sd()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function Dy(a){a.g.ariaLabel=a.localization.resolve(a.controls.jc()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1124
+ M("shaka.ui.FullscreenButton",By);function Ey(){}Ey.prototype.create=function(a,b){return new By(a,b)};vx("fullscreen",new Ey);function Fy(a,b){X.call(this,a,b);var c=this;this.g=Mk();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);a=S("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=S("span");this.j.textContent=this.localization.resolve("LOOP");a.appendChild(this.j);this.l=S("span");this.l.classList.add("shaka-current-selection-span");
1125
+ a.appendChild(this.l);this.g.appendChild(a);Gy(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){Gy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Gy(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.za();c.h.ka(1)});this.m=this.video.loop;this.h=new Q(function(){c.m!=c.video.loop&&(Gy(c),c.m=c.video.loop)});this.h.ka(1)}u(Fy,X);Fy.prototype.release=function(){this.h.stop();this.h=null;X.prototype.release.call(this)};
1126
+ function Gy(a){a.j.textContent=a.localization.resolve("LOOP");a.l.textContent=a.localization.resolve(a.video.loop?"ON":"OFF");a.i.textContent=a.video.loop?"repeat_on":"repeat";a.g.ariaLabel=a.localization.resolve(a.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}M("shaka.ui.LoopButton",Fy);function Hy(){}Hy.prototype.create=function(a,b){return new Fy(a,b)};Ux("loop",new Hy);vx("loop",new Hy);fx("loop",new Hy);function Iy(a,b){X.call(this,a,b);var c=this;this.g=Mk();this.g.classList.add("shaka-mute-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.parent.appendChild(this.g);Jy(this);Ky(this);this.eventManager.o(this.localization,"locale-updated",function(){Jy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Jy(c)});this.eventManager.o(this.g,"click",function(){c.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});
1127
+ this.eventManager.o(this.video,"volumechange",function(){Jy(c);Ky(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){Jy(c);Ky(c)});this.eventManager.o(this.adManager,"ad-muted",function(){Jy(c);Ky(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;Jy(c);Ky(c)})}u(Iy,X);function Jy(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1128
+ function Ky(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}M("shaka.ui.MuteButton",Iy);function Ly(){}Ly.prototype.create=function(a,b){return new Iy(a,b)};vx("mute",new Ly);function My(a,b){X.call(this,a,b);var c=this;this.l=this.controls.B;this.g=Mk();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=S("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);a=S("label");a.classList.add("shaka-overflow-button-label");a.classList.add("shaka-overflow-menu-only");this.j=S("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");a.appendChild(this.j);this.h=
1129
+ S("span");this.h.classList.add("shaka-current-selection-span");a.appendChild(this.h);this.g.appendChild(a);Ny(this);this.parent.appendChild(this.g);document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||Y(this.g,!1);this.eventManager.o(this.localization,"locale-updated",function(){Ny(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ny(c)});this.eventManager.o(this.g,"click",function(){Oy(c)});this.eventManager.o(this.l,"enterpictureinpicture",function(){c.i.textContent=
1129
1130
  "branding_watermark";c.g.ariaLabel=c.localization.resolve("EXIT_PICTURE_IN_PICTURE");c.h.textContent=c.localization.resolve("ON")});this.eventManager.o(this.l,"leavepictureinpicture",function(){c.i.textContent="picture_in_picture_alt";c.g.ariaLabel=c.localization.resolve("ENTER_PICTURE_IN_PICTURE");c.h.textContent=c.localization.resolve("OFF")});this.eventManager.o(this.controls,"caststatuschanged",function(d){d.newStatus?document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&Y(c.g,!1):
1130
- document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&Y(c.g,!0)});this.eventManager.o(this.player,"trackschanged",function(){Oy(c)})}u(Ly,X);function Ny(a){var b;K(function(c){if(1==c.g)return E(c,2),document.pictureInPictureElement?A(c,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),A(c,a.video.requestPictureInPicture(),5));if(2!=c.g)return va(c,0);b=J(c);a.controls.dispatchEvent(new O("error",(new Map).set("detail",b)));B(c)})}
1131
- function My(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");a.g.ariaLabel=a.localization.resolve(document.pictureInPictureElement?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(document.pictureInPictureElement?"ON":"OFF")}
1132
- function Oy(a){K(function(b){if(!document.pictureInPictureEnabled||a.video.disablePictureInPicture)return Y(a.g,!1),b.D(0);if(!a.player||!a.player.ic())return Y(a.g,!0),b.D(0);Y(a.g,!1);return document.pictureInPictureElement?A(b,document.exitPictureInPicture(),0):b.D(0)})}M("shaka.ui.PipButton",Ly);function Py(){}Py.prototype.create=function(a,b){return new Ly(a,b)};Tx("picture_in_picture",new Py);ux("picture_in_picture",new Py);ex("picture_in_picture",new Py);function Qy(a,b){jy.call(this,a,b,"slow_motion_video");var c=this;this.button.classList.add("shaka-playbackrate-button");this.menu.classList.add("shaka-playback-rates");this.button.classList.add("shaka-tooltip-status");this.eventManager.o(this.localization,"locale-updated",function(){Ry(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ry(c)});this.eventManager.o(this.player,"ratechange",function(){Sy(c,c.player.zb())});this.g=new Map(this.controls.i.playbackRates.map(function(d){return[d+
1133
- "x",d]}));Ry(this);Ty(this);Sy(this,this.player.zb())}u(Qy,jy);function Ry(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("PLAYBACK_RATE");a.nameSpan.textContent=a.localization.resolve("PLAYBACK_RATE");a.backSpan.textContent=a.localization.resolve("PLAYBACK_RATE")}
1134
- function Sy(a,b){var c=Sw(a.menu,"material-icons-round shaka-chosen-item");if(c){var d=c.parentElement;d.removeAttribute("aria-selected");d.getElementsByTagName("span")[0].classList.remove("shaka-chosen-item");d.removeChild(c)}if(c=Array.from(a.menu.querySelectorAll("span")).find(function(e){return a.g.get(e.textContent)==b}))d=c.parentElement,d.appendChild(Uw()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1135
- "x")}function Ty(a){for(var b={},c=r(a.g.keys()),d=c.next();!d.done;b={yc:b.yc},d=c.next()){b.yc=d.value;d=Mk();var e=S("span");e.textContent=b.yc;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.yc);a.video.defaultPlaybackRate=a.g.get(f.yc)}}(b));a.menu.appendChild(d)}Tw(a.menu)}M("shaka.ui.PlaybackRateSelection",Qy);function Uy(){}Uy.prototype.create=function(a,b){return new Qy(a,b)};Tx("playback_rate",new Uy);ux("playback_rate",new Uy);function Vy(a,b){X.call(this,a,b);var c=this;this.g=Mk();this.g.classList.add("shaka-current-time");Wy(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.U()&&(c.video.currentTime=c.player.Ka().end)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.$,e=c.controls.yf(),f=c.video.duration,g=c.player.Ka(),h=g.end-g.start;c.player.U()?(e=Math.max(0,Math.floor(g.end-e)),f=3600<=h,1<=e||d?(Wy(c,"- "+Vw(e,f)),c.g.disabled=
1136
- !1):(Wy(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=f,e=Vw(e,d),f&&(e+=" / "+Vw(f,d)),Wy(c,e),c.g.disabled=!0)});this.eventManager.o(this.player,"trackschanged",function(){c.player.U()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))})}u(Vy,X);function Wy(a,b){b!=a.g.textContent&&(a.g.textContent=b)}M("shaka.ui.PresentationTimeTracker",Vy);function Xy(){}Xy.prototype.create=function(a,b){return new Vy(a,b)};ux("time_and_duration",new Xy);function Yy(a,b){jy.call(this,a,b,"settings");var c=this;this.button.classList.add("shaka-resolution-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-resolutions");this.eventManager.o(this.localization,"locale-updated",function(){Zy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Zy(c)});this.eventManager.o(this.player,"variantchanged",function(){$y(c)});this.eventManager.o(this.player,"trackschanged",function(){$y(c)});this.eventManager.o(this.player,
1137
- "abrstatuschanged",function(){$y(c)});$y(this)}u(Yy,jy);
1138
- function $y(a){var b=a.player.Sa(),c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){return k.language==c.language&&k.channelsCount==c.channelsCount}));b=b.filter(function(k,l){return(a.player.ic()?b.findIndex(function(m){return m.bandwidth==k.bandwidth}):b.findIndex(function(m){return m.height==k.height}))==l});a.player.ic()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):b.sort(function(k,l){return l.height-k.height});var d=Rw(a.menu);Nk(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;
1139
- for(var e={},f=r(b),g=f.next();!g.done;e={Zb:e.Zb},g=f.next()){e.Zb=g.value;g=Mk();g.classList.add("explicit-resolution");a.eventManager.o(g,"click",function(k){return function(){var l=k.Zb;a.player.configure({abr:{enabled:!1}});a.player.Fe(l,a.controls.i.clearBufferOnQualityChange)}}(e));var h=S("span");h.textContent=a.player.ic()?Math.round(e.Zb.bandwidth/1E3)+" kbits/s":e.Zb.height+"p";g.appendChild(h);d||e.Zb!=c||(g.ariaSelected="true",g.appendChild(Uw()),h.classList.add("shaka-chosen-item"),
1140
- a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=Mk();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});$y(a)});a.g=S("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected="true",e.appendChild(Uw()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",
1141
- a.currentSelection.textContent);a.menu.appendChild(e);Tw(a.menu);a.controls.dispatchEvent(new O("resolutionselectionupdated"));Zy(a)}
1142
- function Zy(a){var b=a.player.ic()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.localization.resolve(b);a.backButton.ariaLabel=a.localization.resolve(b);a.backSpan.textContent=a.localization.resolve(b);a.nameSpan.textContent=a.localization.resolve(b);a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}M("shaka.ui.ResolutionSelection",Yy);function az(){}
1143
- az.prototype.create=function(a,b){return new Yy(a,b)};Tx("quality",new az);ux("quality",new az);function bz(a,b){X.call(this,a,b);var c=this;this.g=Mk();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-rewind-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status",this.localization.resolve("OFF"));this.g.textContent="fast_rewind";this.parent.appendChild(this.g);cz(this);this.h=this.controls.i.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){cz(c)});this.eventManager.o(this.localization,"locale-changed",function(){cz(c)});
1144
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.zb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Ue(d);c.g.setAttribute("shaka-status",d+"x")}})}u(bz,X);function cz(a){a.g.ariaLabel=a.localization.resolve("REWIND")}M("shaka.ui.RewindButton",bz);function dz(){}dz.prototype.create=function(a,b){return new bz(a,b)};ux("rewind",new dz);function ez(a,b){X.call(this,a,b);var c=this;this.j=S("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=S("div");this.h.classList.add("shaka-skip-ad-counter");Y(this.h,!1);this.j.appendChild(this.h);this.g=Mk();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;Y(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);fz(this);this.i=new Q(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1145
- d:(c.i.stop(),Y(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){fz(c)});this.eventManager.o(this.localization,"locale-changed",function(){fz(c)});this.eventManager.o(this.adManager,"ad-started",function(){gz(c)});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),Y(c.h,!1))});this.eventManager.o(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;Y(c.g,!1);Y(c.h,!1)});this.eventManager.o(this.g,
1146
- "click",function(){c.ad.skip()});this.ad&&gz(this)}u(ez,X);ez.prototype.release=function(){this.i.stop();this.i=null;X.prototype.release.call(this)};function fz(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function gz(a){a.ad.isSkippable()&&(Y(a.g,!0),Y(a.h,!0),a.h.textContent="",a.i.za(),a.i.ka(.5))}M("shaka.ui.SkipAdButton",ez);function hz(a,b){Zw.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.button.classList.add("shaka-tooltip");this.h();this.g()}u(hz,Zw);hz.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};hz.prototype.g=function(){if(this.video.ended)this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};
1147
- M("shaka.ui.SmallPlayButton",hz);function iz(){}iz.prototype.create=function(a,b){return new hz(a,b)};ux("play_pause",new iz);function jz(a,b){X.call(this,a,b);a=S("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}u(jz,X);M("shaka.ui.Spacer",jz);function kz(){}kz.prototype.create=function(a,b){return new jz(a,b)};ux("spacer",new kz);function lz(a,b){function c(k){return Vw(h.h[k],!1)+" (m)"}function d(k){return Math.round(h.h[k]/1E3)+" (kbits/s)"}function e(k){return h.h[k].toFixed(2)+" (s)"}function f(k){return h.h[k]+" (frames)"}function g(k){return h.h[k]+" (px)"}X.call(this,a,b);var h=this;this.i=Mk();this.i.classList.add("shaka-statistics-button");this.j=S("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);a=S("label");a.classList.add("shaka-overflow-button-label");
1131
+ document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&Y(c.g,!0)});this.eventManager.o(this.player,"trackschanged",function(){Py(c)})}u(My,X);function Oy(a){var b;K(function(c){if(1==c.g)return E(c,2),document.pictureInPictureElement?A(c,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),A(c,a.video.requestPictureInPicture(),5));if(2!=c.g)return va(c,0);b=J(c);a.controls.dispatchEvent(new O("error",(new Map).set("detail",b)));B(c)})}
1132
+ function Ny(a){a.j.textContent=a.localization.resolve("PICTURE_IN_PICTURE");a.g.ariaLabel=a.localization.resolve(document.pictureInPictureElement?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE");a.h.textContent=a.localization.resolve(document.pictureInPictureElement?"ON":"OFF")}
1133
+ function Py(a){K(function(b){if(!document.pictureInPictureEnabled||a.video.disablePictureInPicture)return Y(a.g,!1),b.D(0);if(!a.player||!a.player.ic())return Y(a.g,!0),b.D(0);Y(a.g,!1);return document.pictureInPictureElement?A(b,document.exitPictureInPicture(),0):b.D(0)})}M("shaka.ui.PipButton",My);function Qy(){}Qy.prototype.create=function(a,b){return new My(a,b)};Ux("picture_in_picture",new Qy);vx("picture_in_picture",new Qy);fx("picture_in_picture",new Qy);function Ry(a,b){ky.call(this,a,b,"slow_motion_video");var c=this;this.button.classList.add("shaka-playbackrate-button");this.menu.classList.add("shaka-playback-rates");this.button.classList.add("shaka-tooltip-status");this.eventManager.o(this.localization,"locale-updated",function(){Sy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Sy(c)});this.eventManager.o(this.player,"ratechange",function(){Ty(c,c.player.zb())});this.g=new Map(this.controls.i.playbackRates.map(function(d){return[d+
1134
+ "x",d]}));Sy(this);Uy(this);Ty(this,this.player.zb())}u(Ry,ky);function Sy(a){a.backButton.ariaLabel=a.localization.resolve("BACK");a.button.ariaLabel=a.localization.resolve("PLAYBACK_RATE");a.nameSpan.textContent=a.localization.resolve("PLAYBACK_RATE");a.backSpan.textContent=a.localization.resolve("PLAYBACK_RATE")}
1135
+ function Ty(a,b){var c=Tw(a.menu,"material-icons-round shaka-chosen-item");if(c){var d=c.parentElement;d.removeAttribute("aria-selected");d.getElementsByTagName("span")[0].classList.remove("shaka-chosen-item");d.removeChild(c)}if(c=Array.from(a.menu.querySelectorAll("span")).find(function(e){return a.g.get(e.textContent)==b}))d=c.parentElement,d.appendChild(Vw()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1136
+ "x")}function Uy(a){for(var b={},c=r(a.g.keys()),d=c.next();!d.done;b={yc:b.yc},d=c.next()){b.yc=d.value;d=Mk();var e=S("span");e.textContent=b.yc;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.yc);a.video.defaultPlaybackRate=a.g.get(f.yc)}}(b));a.menu.appendChild(d)}Uw(a.menu)}M("shaka.ui.PlaybackRateSelection",Ry);function Vy(){}Vy.prototype.create=function(a,b){return new Ry(a,b)};Ux("playback_rate",new Vy);vx("playback_rate",new Vy);function Wy(a,b){X.call(this,a,b);var c=this;this.g=Mk();this.g.classList.add("shaka-current-time");Xy(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.U()&&(c.video.currentTime=c.player.Ka().end)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.$,e=c.controls.yf(),f=c.video.duration,g=c.player.Ka(),h=g.end-g.start;c.player.U()?(e=Math.max(0,Math.floor(g.end-e)),f=3600<=h,1<=e||d?(Xy(c,"- "+Ww(e,f)),c.g.disabled=
1137
+ !1):(Xy(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=f,e=Ww(e,d),f&&(e+=" / "+Ww(f,d)),Xy(c,e),c.g.disabled=!0)});this.eventManager.o(this.player,"trackschanged",function(){c.player.U()&&(c.g.ariaLabel=c.localization.resolve("SKIP_TO_LIVE"))})}u(Wy,X);function Xy(a,b){b!=a.g.textContent&&(a.g.textContent=b)}M("shaka.ui.PresentationTimeTracker",Wy);function Yy(){}Yy.prototype.create=function(a,b){return new Wy(a,b)};vx("time_and_duration",new Yy);function Zy(a,b){ky.call(this,a,b,"settings");var c=this;this.button.classList.add("shaka-resolution-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-resolutions");this.eventManager.o(this.localization,"locale-updated",function(){$y(c)});this.eventManager.o(this.localization,"locale-changed",function(){$y(c)});this.eventManager.o(this.player,"variantchanged",function(){az(c)});this.eventManager.o(this.player,"trackschanged",function(){az(c)});this.eventManager.o(this.player,
1138
+ "abrstatuschanged",function(){az(c)});az(this)}u(Zy,ky);
1139
+ function az(a){var b=a.player.Sa(),c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){return k.language==c.language&&k.channelsCount==c.channelsCount}));b=b.filter(function(k,l){return(a.player.ic()?b.findIndex(function(m){return m.bandwidth==k.bandwidth}):b.findIndex(function(m){return m.height==k.height}))==l});a.player.ic()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):b.sort(function(k,l){return l.height-k.height});var d=Sw(a.menu);Nk(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;
1140
+ for(var e={},f=r(b),g=f.next();!g.done;e={Zb:e.Zb},g=f.next()){e.Zb=g.value;g=Mk();g.classList.add("explicit-resolution");a.eventManager.o(g,"click",function(k){return function(){var l=k.Zb;a.player.configure({abr:{enabled:!1}});a.player.Fe(l,a.controls.i.clearBufferOnQualityChange)}}(e));var h=S("span");h.textContent=a.player.ic()?Math.round(e.Zb.bandwidth/1E3)+" kbits/s":e.Zb.height+"p";g.appendChild(h);d||e.Zb!=c||(g.ariaSelected="true",g.appendChild(Vw()),h.classList.add("shaka-chosen-item"),
1141
+ a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=Mk();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});az(a)});a.g=S("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected="true",e.appendChild(Vw()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",
1142
+ a.currentSelection.textContent);a.menu.appendChild(e);Uw(a.menu);a.controls.dispatchEvent(new O("resolutionselectionupdated"));$y(a)}
1143
+ function $y(a){var b=a.player.ic()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.localization.resolve(b);a.backButton.ariaLabel=a.localization.resolve(b);a.backSpan.textContent=a.localization.resolve(b);a.nameSpan.textContent=a.localization.resolve(b);a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}M("shaka.ui.ResolutionSelection",Zy);function bz(){}
1144
+ bz.prototype.create=function(a,b){return new Zy(a,b)};Ux("quality",new bz);vx("quality",new bz);function cz(a,b){X.call(this,a,b);var c=this;this.g=Mk();this.g.classList.add("material-icons-round");this.g.classList.add("shaka-rewind-button");this.g.classList.add("shaka-tooltip-status");this.g.setAttribute("shaka-status",this.localization.resolve("OFF"));this.g.textContent="fast_rewind";this.parent.appendChild(this.g);dz(this);this.h=this.controls.i.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){dz(c)});this.eventManager.o(this.localization,"locale-changed",function(){dz(c)});
1145
+ this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.zb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Ue(d);c.g.setAttribute("shaka-status",d+"x")}})}u(cz,X);function dz(a){a.g.ariaLabel=a.localization.resolve("REWIND")}M("shaka.ui.RewindButton",cz);function ez(){}ez.prototype.create=function(a,b){return new cz(a,b)};vx("rewind",new ez);function fz(a,b){X.call(this,a,b);var c=this;this.j=S("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=S("div");this.h.classList.add("shaka-skip-ad-counter");Y(this.h,!1);this.j.appendChild(this.h);this.g=Mk();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;Y(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);gz(this);this.i=new Q(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1146
+ d:(c.i.stop(),Y(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){gz(c)});this.eventManager.o(this.localization,"locale-changed",function(){gz(c)});this.eventManager.o(this.adManager,"ad-started",function(){hz(c)});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),Y(c.h,!1))});this.eventManager.o(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;Y(c.g,!1);Y(c.h,!1)});this.eventManager.o(this.g,
1147
+ "click",function(){c.ad.skip()});this.ad&&hz(this)}u(fz,X);fz.prototype.release=function(){this.i.stop();this.i=null;X.prototype.release.call(this)};function gz(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function hz(a){a.ad.isSkippable()&&(Y(a.g,!0),Y(a.h,!0),a.h.textContent="",a.i.za(),a.i.ka(.5))}M("shaka.ui.SkipAdButton",fz);function iz(a,b){$w.call(this,a,b);this.button.classList.add("shaka-small-play-button");this.button.classList.add("material-icons-round");this.button.classList.add("shaka-tooltip");this.h();this.g()}u(iz,$w);iz.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};iz.prototype.g=function(){if(this.video.ended)this.button.ariaLabel=this.localization.resolve("REPLAY");else{var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)}};
1148
+ M("shaka.ui.SmallPlayButton",iz);function jz(){}jz.prototype.create=function(a,b){return new iz(a,b)};vx("play_pause",new jz);function kz(a,b){X.call(this,a,b);a=S("div");a.classList.add("shaka-spacer");a.ariaHidden="true";this.parent.appendChild(a)}u(kz,X);M("shaka.ui.Spacer",kz);function lz(){}lz.prototype.create=function(a,b){return new kz(a,b)};vx("spacer",new lz);function mz(a,b){function c(k){return Ww(h.h[k],!1)+" (m)"}function d(k){return Math.round(h.h[k]/1E3)+" (kbits/s)"}function e(k){return h.h[k].toFixed(2)+" (s)"}function f(k){return h.h[k]+" (frames)"}function g(k){return h.h[k]+" (px)"}X.call(this,a,b);var h=this;this.i=Mk();this.i.classList.add("shaka-statistics-button");this.j=S("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);a=S("label");a.classList.add("shaka-overflow-button-label");
1148
1149
  this.A=S("span");a.appendChild(this.A);this.m=S("span");this.m.classList.add("shaka-current-selection-span");a.appendChild(this.m);this.i.appendChild(a);this.parent.appendChild(this.i);this.g=S("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-statistics-container");this.g.classList.add("shaka-hidden");this.controls.g.appendChild(this.g);this.F=[];this.G=["stateHistory","switchHistory"];this.h=this.player.getStats();
1149
1150
  this.B={};this.C={width:g,height:g,completionPercent:function(k){return h.h[k]+" (%)"},bufferingTime:e,drmTimeSeconds:e,licenseTime:e,liveLatency:e,loadLatency:e,manifestTimeSeconds:e,estimatedBandwidth:d,streamBandwidth:d,maxSegmentDuration:c,pauseTime:c,playTime:c,corruptedFrames:f,decodedFrames:f,droppedFrames:f,stallsDetected:function(k){return h.h[k]+" (stalls)"},gapsJumped:function(k){return h.h[k]+" (gaps)"}};this.l=new Q(function(){h.h=h.player.getStats();for(var k=r(h.F),l=k.next();!l.done;l=
1150
- k.next())l=l.value,h.B[l].textContent=h.C[l](l)});mz(this);nz(this);this.eventManager.o(this.localization,"locale-updated",function(){mz(h)});this.eventManager.o(this.localization,"locale-changed",function(){mz(h)});this.eventManager.o(this.i,"click",function(){Y(h.parent,!1);h.g.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.ka(.1),Y(h.g,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),Y(h.g,!1));mz(h)})}u(lz,X);
1151
- function mz(a){a.A.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.g.classList.contains("shaka-hidden")?"OFF":"ON")}
1152
- function nz(a){for(var b=r(a.controls.i.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.h&&!a.G.includes(c)){var d=a.g,e=d.appendChild,f=a,g=S("div"),h=S("label");h.textContent=c+":";g.appendChild(h);h=S("span");h.textContent=f.C[c](c);g.appendChild(h);f.B[c]=h;e.call(d,g);a.F.push(c)}else Ua("Unrecognized statistic element:",c)}lz.prototype.release=function(){this.l.stop();this.l=null;X.prototype.release.call(this)};M("shaka.ui.StatisticsButton",lz);function oz(){}
1153
- oz.prototype.create=function(a,b){return new lz(a,b)};Tx("statistics",new oz);ex("statistics",new oz);function pz(a,b){jy.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-text-languages");this.player&&this.player.Ob()?this.button.ariaPressed="true":this.button.ariaPressed="false";qz(this);this.eventManager.o(this.localization,"locale-updated",function(){rz(c);sz(c)});this.eventManager.o(this.localization,"locale-changed",function(){rz(c);sz(c)});this.eventManager.o(this.player,
1154
- "texttrackvisibility",function(){tz(c);sz(c)});this.eventManager.o(this.player,"textchanged",function(){sz(c)});this.eventManager.o(this.player,"trackschanged",function(){uz(c)});tz(this);rz(this);sz(this);uz(this)}u(pz,jy);function qz(a){var b=Mk();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(Uw());a.g=S("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1155
- function tz(a){a.player.Ob()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new O("captionselectionupdated"))}
1156
- function sz(a){var b=a.player.Ab();hy(b,a.menu,function(c){return vz(a,c)},a.player.Ob(),a.currentSelection,a.localization,a.controls.i.trackLabelFormat);b=Mk();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.Ne(!1);sz(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Ob()||(b.ariaSelected="true",b.appendChild(Uw()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));a.button.setAttribute("shaka-status",
1157
- a.currentSelection.textContent);Tw(a.menu);a.controls.dispatchEvent(new O("captionselectionupdated"))}function vz(a,b){return K(function(c){a.player.Ee(b);return A(c,a.player.Ne(!0),0)})}function rz(a){a.button.ariaLabel=a.localization.resolve("CAPTIONS");a.backButton.ariaLabel=a.localization.resolve("BACK");a.nameSpan.textContent=a.localization.resolve("CAPTIONS");a.backSpan.textContent=a.localization.resolve("CAPTIONS");a.g.textContent=a.localization.resolve("OFF")}
1158
- function uz(a){var b=0<a.player.Ab().length;Y(a.button,b);sz(a)}M("shaka.ui.TextSelection",pz);function wz(){}wz.prototype.create=function(a,b){return new pz(a,b)};Tx("captions",new wz);ux("captions",new wz);function xz(a,b){gx.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.h=this.controls.i;this.eventManager.o(this.video,"volumechange",function(){return yz(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return zz(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return zz(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return yz(c)});this.eventManager.o(this.localization,"locale-updated",function(){return Az(c)});
1159
- this.eventManager.o(this.localization,"locale-changed",function(){return Az(c)});yz(this);Az(this);if(this.ad)this.onChange()}u(xz,gx);xz.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()):(this.video.volume=this.getValue(),this.video.muted=0==this.video.volume?!0:!1)};function yz(a){a.video.muted?a.setValue(0):a.setValue(a.video.volume);Bz(a)}function zz(a){var b=a.ad.getVolume();a.setValue(b);Bz(a)}
1160
- function Bz(a){var b=a.h.volumeBarColors,c=["to right"];c.push(b.level+100*a.getValue()+"%");c.push(b.base+100*a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function Az(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}M("shaka.ui.VolumeBar",xz);function Cz(){}Cz.prototype.create=function(a,b){return new xz(a,b)};ux("volume",new Cz);}).call(exportTo,innerGlobal,innerGlobal,undefined);if(typeof exports!="undefined")for(var k in exportTo.shaka)exports[k]=exportTo.shaka[k];else if(typeof define=="function"&&define.amd)define(function(){return exportTo.shaka});else innerGlobal.shaka=exportTo.shaka})();
1151
+ k.next())l=l.value,h.B[l].textContent=h.C[l](l)});nz(this);oz(this);this.eventManager.o(this.localization,"locale-updated",function(){nz(h)});this.eventManager.o(this.localization,"locale-changed",function(){nz(h)});this.eventManager.o(this.i,"click",function(){Y(h.parent,!1);h.g.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.ka(.1),Y(h.g,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),Y(h.g,!1));nz(h)})}u(mz,X);
1152
+ function nz(a){a.A.textContent=a.localization.resolve("STATISTICS");a.i.ariaLabel=a.localization.resolve("STATISTICS");a.m.textContent=a.localization.resolve(a.g.classList.contains("shaka-hidden")?"OFF":"ON")}
1153
+ function oz(a){for(var b=r(a.controls.i.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.h&&!a.G.includes(c)){var d=a.g,e=d.appendChild,f=a,g=S("div"),h=S("label");h.textContent=c+":";g.appendChild(h);h=S("span");h.textContent=f.C[c](c);g.appendChild(h);f.B[c]=h;e.call(d,g);a.F.push(c)}else Ua("Unrecognized statistic element:",c)}mz.prototype.release=function(){this.l.stop();this.l=null;X.prototype.release.call(this)};M("shaka.ui.StatisticsButton",mz);function pz(){}
1154
+ pz.prototype.create=function(a,b){return new mz(a,b)};Ux("statistics",new pz);fx("statistics",new pz);function qz(a,b){ky.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-text-languages");this.player&&this.player.Ob()?this.button.ariaPressed="true":this.button.ariaPressed="false";rz(this);this.eventManager.o(this.localization,"locale-updated",function(){sz(c);tz(c)});this.eventManager.o(this.localization,"locale-changed",function(){sz(c);tz(c)});this.eventManager.o(this.player,
1155
+ "texttrackvisibility",function(){uz(c);tz(c)});this.eventManager.o(this.player,"textchanged",function(){tz(c)});this.eventManager.o(this.player,"trackschanged",function(){vz(c)});uz(this);sz(this);tz(this);vz(this)}u(qz,ky);function rz(a){var b=Mk();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(Vw());a.g=S("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1156
+ function uz(a){a.player.Ob()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new O("captionselectionupdated"))}
1157
+ function tz(a){var b=a.player.Ab();iy(b,a.menu,function(c){return wz(a,c)},a.player.Ob(),a.currentSelection,a.localization,a.controls.i.trackLabelFormat);b=Mk();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.Ne(!1);tz(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Ob()||(b.ariaSelected="true",b.appendChild(Vw()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));a.button.setAttribute("shaka-status",
1158
+ a.currentSelection.textContent);Uw(a.menu);a.controls.dispatchEvent(new O("captionselectionupdated"))}function wz(a,b){return K(function(c){a.player.Ee(b);return A(c,a.player.Ne(!0),0)})}function sz(a){a.button.ariaLabel=a.localization.resolve("CAPTIONS");a.backButton.ariaLabel=a.localization.resolve("BACK");a.nameSpan.textContent=a.localization.resolve("CAPTIONS");a.backSpan.textContent=a.localization.resolve("CAPTIONS");a.g.textContent=a.localization.resolve("OFF")}
1159
+ function vz(a){var b=0<a.player.Ab().length;Y(a.button,b);tz(a)}M("shaka.ui.TextSelection",qz);function xz(){}xz.prototype.create=function(a,b){return new qz(a,b)};Ux("captions",new xz);vx("captions",new xz);function yz(a,b){hx.call(this,a,b,["shaka-volume-bar-container"],["shaka-volume-bar"]);var c=this;this.h=this.controls.i;this.eventManager.o(this.video,"volumechange",function(){return zz(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return Az(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return Az(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return zz(c)});this.eventManager.o(this.localization,"locale-updated",function(){return Bz(c)});
1160
+ this.eventManager.o(this.localization,"locale-changed",function(){return Bz(c)});zz(this);Bz(this);if(this.ad)this.onChange()}u(yz,hx);yz.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()):(this.video.volume=this.getValue(),this.video.muted=0==this.video.volume?!0:!1)};function zz(a){a.video.muted?a.setValue(0):a.setValue(a.video.volume);Cz(a)}function Az(a){var b=a.ad.getVolume();a.setValue(b);Cz(a)}
1161
+ function Cz(a){var b=a.h.volumeBarColors,c=["to right"];c.push(b.level+100*a.getValue()+"%");c.push(b.base+100*a.getValue()+"%");c.push(b.base+"100%");a.container.style.background="linear-gradient("+c.join(",")+")"}function Bz(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}M("shaka.ui.VolumeBar",yz);function Dz(){}Dz.prototype.create=function(a,b){return new yz(a,b)};vx("volume",new Dz);}).call(exportTo,innerGlobal,innerGlobal,undefined);if(typeof exports!="undefined")for(var k in exportTo.shaka)exports[k]=exportTo.shaka[k];else if(typeof define=="function"&&define.amd)define(function(){return exportTo.shaka});else innerGlobal.shaka=exportTo.shaka})();
1161
1162
 
1162
1163
  //# sourceMappingURL=shaka-player.ui.map