shaka-player 4.1.0 → 4.1.3

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 (162) hide show
  1. package/.github/workflows/build-and-test.yaml +67 -15
  2. package/.github/workflows/compute-incremental-coverage.py +251 -0
  3. package/.github/workflows/report-incremental-coverage.yaml +39 -0
  4. package/.github/workflows/selenium-lab-tests.yaml +44 -1
  5. package/AUTHORS +2 -0
  6. package/CHANGELOG.md +42 -0
  7. package/CONTRIBUTORS +4 -0
  8. package/README.md +20 -6
  9. package/demo/common/assets.js +1 -1
  10. package/demo/index.html +1 -3
  11. package/demo/main.js +3 -3
  12. package/dist/controls.css +1 -1
  13. package/dist/demo.compiled.debug.js +3 -3
  14. package/dist/demo.compiled.debug.map +2 -2
  15. package/dist/demo.compiled.js +3 -3
  16. package/dist/demo.compiled.map +2 -2
  17. package/dist/deps.js +3 -3
  18. package/dist/locales.js +29 -29
  19. package/dist/receiver.compiled.debug.js +1 -1
  20. package/dist/receiver.compiled.debug.map +1 -1
  21. package/dist/receiver.compiled.js +1 -1
  22. package/dist/receiver.compiled.map +1 -1
  23. package/dist/shaka-player.compiled.d.ts +12 -1
  24. package/dist/shaka-player.compiled.debug.d.ts +12 -1
  25. package/dist/shaka-player.compiled.debug.externs.js +52 -40
  26. package/dist/shaka-player.compiled.debug.js +270 -257
  27. package/dist/shaka-player.compiled.debug.map +4 -4
  28. package/dist/shaka-player.compiled.externs.js +52 -40
  29. package/dist/shaka-player.compiled.js +754 -746
  30. package/dist/shaka-player.compiled.map +4 -4
  31. package/dist/shaka-player.ui.d.ts +12 -1
  32. package/dist/shaka-player.ui.debug.d.ts +12 -1
  33. package/dist/shaka-player.ui.debug.externs.js +52 -40
  34. package/dist/shaka-player.ui.debug.js +296 -283
  35. package/dist/shaka-player.ui.debug.map +4 -4
  36. package/dist/shaka-player.ui.externs.js +52 -40
  37. package/dist/shaka-player.ui.js +874 -867
  38. package/dist/shaka-player.ui.map +4 -4
  39. package/docs/tutorials/ui.md +6 -6
  40. package/docs/tutorials/upgrade.md +1 -0
  41. package/docs/tutorials/welcome.md +6 -3
  42. package/externs/shaka/player.js +4 -2
  43. package/karma.conf.js +3 -11
  44. package/lib/ads/client_side_ad_manager.js +1 -1
  45. package/lib/dash/dash_parser.js +5 -0
  46. package/lib/hls/hls_parser.js +183 -70
  47. package/lib/media/drm_engine.js +1 -1
  48. package/lib/media/media_source_engine.js +57 -24
  49. package/lib/media/presentation_timeline.js +24 -1
  50. package/lib/media/segment_index.js +26 -1
  51. package/lib/media/segment_reference.js +10 -3
  52. package/lib/media/streaming_engine.js +4 -4
  53. package/lib/media/time_ranges_utils.js +46 -0
  54. package/lib/player.js +1 -6
  55. package/lib/polyfill/media_capabilities.js +9 -0
  56. package/lib/polyfill/videoplaybackquality.js +3 -1
  57. package/lib/text/cue.js +0 -5
  58. package/lib/text/simple_text_displayer.js +21 -9
  59. package/lib/text/ui_text_displayer.js +83 -19
  60. package/lib/util/buffer_utils.js +3 -0
  61. package/lib/util/object_utils.js +1 -0
  62. package/lib/util/platform.js +19 -1
  63. package/lib/util/stream_utils.js +24 -3
  64. package/lib/util/string_utils.js +102 -13
  65. package/maintained-branches.md +15 -0
  66. package/package.json +3 -5
  67. package/test/hls/hls_parser_unit.js +102 -8
  68. package/test/media/drm_engine_integration.js +24 -8
  69. package/test/media/media_source_engine_integration.js +24 -10
  70. package/test/media/media_source_engine_unit.js +53 -38
  71. package/test/media/streaming_engine_unit.js +28 -27
  72. package/test/test/util/fake_media_source_engine.js +10 -9
  73. package/test/text/simple_text_displayer_unit.js +27 -0
  74. package/test/text/ui_text_displayer_unit.js +65 -0
  75. package/test/util/string_utils_unit.js +46 -8
  76. package/ui/text_selection.js +2 -2
  77. package/app-engine/README.md +0 -9
  78. package/app-engine/demo-version-index/README.md +0 -14
  79. package/app-engine/demo-version-index/app.yaml +0 -28
  80. package/app-engine/demo-version-index/generate.py +0 -164
  81. package/app-engine/demo-version-index/main.py +0 -11
  82. package/app-engine/demo-version-index/requirements.txt +0 -5
  83. package/app-engine/demo-version-index/templates/index.html +0 -114
  84. package/app-engine/shaka-player-demo/README.md +0 -18
  85. package/app-engine/shaka-player-demo/app.yaml +0 -61
  86. package/app-engine/shaka-player-demo/main.py +0 -95
  87. package/app-engine/shaka-player-demo/posters/10yo.png +0 -0
  88. package/app-engine/shaka-player-demo/posters/10yo.xcf +0 -0
  89. package/app-engine/shaka-player-demo/posters/1yo.jpg +0 -0
  90. package/app-engine/shaka-player-demo/posters/2yo.png +0 -0
  91. package/app-engine/shaka-player-demo/posters/2yo.xcf +0 -0
  92. package/app-engine/shaka-player-demo/posters/3yo.png +0 -0
  93. package/app-engine/shaka-player-demo/posters/3yo.xcf +0 -0
  94. package/app-engine/shaka-player-demo/posters/4yo.png +0 -0
  95. package/app-engine/shaka-player-demo/posters/4yo.xcf +0 -0
  96. package/app-engine/shaka-player-demo/posters/5yo.png +0 -0
  97. package/app-engine/shaka-player-demo/posters/5yo.xcf +0 -0
  98. package/app-engine/shaka-player-demo/posters/6yo.png +0 -0
  99. package/app-engine/shaka-player-demo/posters/6yo.xcf +0 -0
  100. package/app-engine/shaka-player-demo/posters/7yo.png +0 -0
  101. package/app-engine/shaka-player-demo/posters/7yo.xcf +0 -0
  102. package/app-engine/shaka-player-demo/posters/8yo.png +0 -0
  103. package/app-engine/shaka-player-demo/posters/8yo.xcf +0 -0
  104. package/app-engine/shaka-player-demo/posters/9yo.png +0 -0
  105. package/app-engine/shaka-player-demo/posters/9yo.xcf +0 -0
  106. package/app-engine/shaka-player-demo/posters/audioOnly.gif +0 -0
  107. package/app-engine/shaka-player-demo/posters/audioRickRoll.gif +0 -0
  108. package/app-engine/shaka-player-demo/posters/colorbars.gif +0 -0
  109. package/app-engine/shaka-player-demo/posters/fireworks.jpg +0 -0
  110. package/app-engine/shaka-player-demo/posters/party-hat.png +0 -0
  111. package/app-engine/shaka-player-demo/posters/sources.txt +0 -46
  112. package/app-engine/shaka-player-demo/posters/standard.png +0 -0
  113. package/app-engine/shaka-player-demo/posters/trek.jpg +0 -0
  114. package/app-engine/shaka-player-demo/posters/valentines.png +0 -0
  115. package/app-engine/shaka-player-demo/posters/zombie.jpg +0 -0
  116. package/app-engine/shaka-player-demo/posters.py +0 -110
  117. package/app-engine/shaka-player-demo/requirements.txt +0 -5
  118. package/app-engine/shaka-player-demo/time.txt +0 -1
  119. package/build/README.md +0 -127
  120. package/build/__init__.py +0 -0
  121. package/build/all.py +0 -150
  122. package/build/apps.py +0 -186
  123. package/build/build.py +0 -392
  124. package/build/check.py +0 -354
  125. package/build/checkversion.py +0 -84
  126. package/build/compiler.py +0 -513
  127. package/build/conformance.textproto +0 -335
  128. package/build/docker/Dockerfile +0 -20
  129. package/build/docker/docker-compose.yml +0 -10
  130. package/build/docs.py +0 -54
  131. package/build/eslint-plugin-shaka-rules/arg-comment-spacing.js +0 -72
  132. package/build/eslint-plugin-shaka-rules/index.js +0 -24
  133. package/build/eslint-plugin-shaka-rules/package.json +0 -7
  134. package/build/eslint-plugin-shaka-rules/private.js +0 -109
  135. package/build/gendeps.py +0 -71
  136. package/build/generateExterns.js +0 -867
  137. package/build/generateLocalizations.py +0 -262
  138. package/build/generateTsDefs.py +0 -137
  139. package/build/install-linux-prereqs.sh +0 -136
  140. package/build/license-header +0 -5
  141. package/build/misspellings.txt +0 -39
  142. package/build/pixelsChanged.js +0 -35
  143. package/build/shaka-lab.yaml +0 -161
  144. package/build/shakaBuildHelpers.py +0 -356
  145. package/build/stats.py +0 -816
  146. package/build/subprocessWindowsPatch.py +0 -103
  147. package/build/test.py +0 -541
  148. package/build/types/ads +0 -8
  149. package/build/types/cast +0 -6
  150. package/build/types/cea +0 -13
  151. package/build/types/complete +0 -9
  152. package/build/types/core +0 -108
  153. package/build/types/dash +0 -8
  154. package/build/types/hls +0 -9
  155. package/build/types/manifests +0 -5
  156. package/build/types/networking +0 -6
  157. package/build/types/offline +0 -22
  158. package/build/types/polyfill +0 -18
  159. package/build/types/text +0 -11
  160. package/build/types/ui +0 -39
  161. package/build/updateScreenshots.py +0 -85
  162. package/build/wrapper.template.js +0 -52
@@ -14,49 +14,50 @@ function ca(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof win
14
14
  ea("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}function c(f,g){this.g=f;ba(this,"description",{configurable:!0,writable:!0,value:g})}if(a)return a;c.prototype.toString=function(){return this.g};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
15
15
  ea("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=da[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(aa(this))}})}return a});function fa(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
16
16
  function t(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function ia(a){if(!(a instanceof Array)){a=t(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ka="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},la;
17
- if("function"==typeof Object.setPrototypeOf)la=Object.setPrototypeOf;else{var ma;a:{var na={a:!0},oa={};try{oa.__proto__=na;ma=oa.a;break a}catch(a){}ma=!1}la=ma?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var qa=la;
18
- function ra(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.bj=b.prototype}function sa(){this.A=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.C=this.i=null}function ta(a){if(a.A)throw new TypeError("Generator is already running");a.A=!0}sa.prototype.B=function(a){this.h=a};
19
- function ua(a,b){a.i={lf:b,wf:!0};a.g=a.m||a.j}sa.prototype["return"]=function(a){this.i={"return":a};this.g=this.j};function u(a,b,c){a.g=c;return{value:b}}sa.prototype.D=function(a){this.g=a};function z(a){a.g=0}function A(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function va(a){a.m=0;a.j=2}function wa(a,b,c){a.g=b;a.m=c||0}function F(a,b){a.m=b||0;var c=a.i.lf;a.i=null;return c}function xa(a){a.C=[a.i];a.m=0;a.j=0}
20
- function ya(a,b){var c=a.C.splice(0)[0];(c=a.i=a.i||c)?c.wf?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 za(a){this.g=new sa;this.h=a}function Aa(a,b){ta(a.g);var c=a.g.l;if(c)return Ba(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g["return"]);a.g["return"](b);return Ca(a)}
21
- function Ba(a,b,c,d){try{var e=b.call(a.g.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.A=!1,e;var f=e.value}catch(g){return a.g.l=null,ua(a.g,g),Ca(a)}a.g.l=null;d.call(a.g,f);return Ca(a)}
22
- 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,ua(a.g,c)}a.g.A=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.wf)throw b.lf;return{value:b["return"],done:!0}}return{value:void 0,done:!0}}
23
- function Da(a){this.next=function(b){ta(a.g);a.g.l?b=Ba(a,a.g.l.next,b,a.g.B):(a.g.B(b),b=Ca(a));return b};this["throw"]=function(b){ta(a.g);a.g.l?b=Ba(a,a.g.l["throw"],b,a.g.B):(ua(a.g,b),b=Ca(a));return b};this["return"]=function(b){return Aa(a,b)};this[Symbol.iterator]=function(){return this}}
24
- function Ea(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})}function I(a){return Ea(new Da(new za(a)))}function Ga(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
17
+ if("function"==typeof Object.setPrototypeOf)la=Object.setPrototypeOf;else{var ma;a:{var na={a:!0},oa={};try{oa.__proto__=na;ma=oa.a;break a}catch(a){}ma=!1}la=ma?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var pa=la;
18
+ function qa(a,b){a.prototype=ka(b.prototype);a.prototype.constructor=a;if(pa)pa(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.aj=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
+ function ta(a,b){a.i={nf:b,yf:!0};a.g=a.m||a.j}ra.prototype["return"]=function(a){this.i={"return":a};this.g=this.j};function u(a,b,c){a.g=c;return{value:b}}ra.prototype.D=function(a){this.g=a};function z(a){a.g=0}function A(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 F(a,b){a.m=b||0;var c=a.i.nf;a.i=null;return c}function xa(a){a.C=[a.i];a.m=0;a.j=0}
20
+ function ya(a,b){var c=a.C.splice(0)[0];(c=a.i=a.i||c)?c.yf?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 za(a){this.g=new ra;this.h=a}function Aa(a,b){sa(a.g);var c=a.g.l;if(c)return Ba(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g["return"]);a.g["return"](b);return Ca(a)}
21
+ function Ba(a,b,c,d){try{var e=b.call(a.g.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.A=!1,e;var f=e.value}catch(g){return a.g.l=null,ta(a.g,g),Ca(a)}a.g.l=null;d.call(a.g,f);return Ca(a)}
22
+ 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.yf)throw b.nf;return{value:b["return"],done:!0}}return{value:void 0,done:!0}}
23
+ function Da(a){this.next=function(b){sa(a.g);a.g.l?b=Ba(a,a.g.l.next,b,a.g.B):(a.g.B(b),b=Ca(a));return b};this["throw"]=function(b){sa(a.g);a.g.l?b=Ba(a,a.g.l["throw"],b,a.g.B):(ta(a.g,b),b=Ca(a));return b};this["return"]=function(b){return Aa(a,b)};this[Symbol.iterator]=function(){return this}}
24
+ function Ea(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})}function I(a){return Ea(new Da(new za(a)))}function Ha(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}
25
25
  ea("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.A=!1;var h=this.j();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.g=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.h=function(g){if(null==this.g){this.g=[];var h=this;this.i(function(){h.l()})}this.g.push(g)};var e=da.setTimeout;c.prototype.i=function(g){e(g,0)};c.prototype.l=function(){for(;this.g&&this.g.length;){var g=this.g;this.g=[];for(var h=0;h<g.length;++h){var k=
26
26
  g[h];g[h]=null;try{k()}catch(l){this.j(l)}}}this.g=null};c.prototype.j=function(g){this.i(function(){throw g;})};b.prototype.j=function(){function g(l){return function(m){k||(k=!0,l.call(h,m))}}var h=this,k=!1;return{resolve:g(this.H),reject:g(this.l)}};b.prototype.H=function(g){if(g===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.J(g);else{a:switch(typeof g){case "object":var h=null!=g;break a;case "function":h=!0;break a;default:h=!1}h?this.G(g):this.m(g)}};
27
27
  b.prototype.G=function(g){var h=void 0;try{h=g.then}catch(k){this.l(k);return}"function"==typeof h?this.K(h,g):this.m(g)};b.prototype.l=function(g){this.B(2,g)};b.prototype.m=function(g){this.B(1,g)};b.prototype.B=function(g,h){if(0!=this.h)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.h);this.h=g;this.i=h;2===this.h&&this.I();this.C()};b.prototype.I=function(){var g=this;e(function(){if(g.F()){var h=da.console;"undefined"!==typeof h&&h.error(g.i)}},1)};b.prototype.F=
28
28
  function(){if(this.A)return!1;var g=da.CustomEvent,h=da.Event,k=da.dispatchEvent;if("undefined"===typeof k)return!0;"function"===typeof g?g=new g("unhandledrejection",{cancelable:!0}):"function"===typeof h?g=new h("unhandledrejection",{cancelable:!0}):(g=da.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.i;return k(g)};b.prototype.C=function(){if(null!=this.g){for(var g=0;g<this.g.length;++g)f.h(this.g[g]);this.g=null}};var f=new c;
29
- b.prototype.J=function(g){var h=this.j();g.fd(h.resolve,h.reject)};b.prototype.K=function(g,h){var k=this.j();try{g.call(h,k.resolve,k.reject)}catch(l){k.reject(l)}};b.prototype.then=function(g,h){function k(p,q){return"function"==typeof p?function(x){try{l(p(x))}catch(w){m(w)}}:q}var l,m,n=new b(function(p,q){l=p;m=q});this.fd(k(g,l),k(h,m));return n};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.fd=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
30
- break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.A=!0};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=t(g),m=l.next();!m.done;m=l.next())d(m.value).fd(h,k)})};b.all=function(g){var h=t(g),k=h.next();return k.done?d([]):new b(function(l,m){function n(x){return function(w){p[x]=w;q--;0==q&&l(p)}}var p=[],q=0;do p.push(void 0),q++,d(k.value).fd(n(p.length-1),m),k=h.next();
31
- while(!k.done)})};return b});function Ha(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
32
- ea("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=t(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(k){var l=typeof k;return"object"===l&&null!==k||"function"===l}function e(k){if(!Ha(k,g)){var l=new c;ba(k,g,{value:l})}}function f(k){var l=Object[k];l&&(Object[k]=function(m){if(m instanceof c)return m;Object.isExtensible(m)&&e(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}),
33
- m=new a([[k,2],[l,3]]);if(2!=m.get(k)||3!=m.get(l))return!1;m["delete"](k);m.set(l,4);return!m.has(k)&&4==m.get(l)}catch(n){return!1}}())return a;var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var h=0;b.prototype.set=function(k,l){if(!d(k))throw Error("Invalid WeakMap key");e(k);if(!Ha(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&Ha(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&
34
- Ha(k,g)&&Ha(k[g],this.g)};b.prototype["delete"]=function(k){return d(k)&&Ha(k,g)&&Ha(k[g],this.g)?delete k[g][this.g]:!1};return b});
35
- ea("Map",function(a){function b(){var h={};return h.rb=h.next=h.head=h}function c(h,k){var l=h.g;return fa(function(){if(l){for(;l.head!=h.g;)l=l.rb;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})}function d(h,k){var l=k&&typeof k;"object"==l||"function"==l?f.has(k)?l=f.get(k):(l=""+ ++g,f.set(k,l)):l="p_"+k;var m=h.h[l];if(m&&Ha(h.h,l))for(var n=0;n<m.length;n++){var p=m[n];if(k!==k&&p.key!==p.key||k===p.key)return{id:l,list:m,index:n,wa:p}}return{id:l,
36
- list:m,index:-1,wa:void 0}}function e(h){this.h={};this.g=b();this.size=0;if(h){h=t(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a(t([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var l=k.entries(),m=l.next();if(m.done||m.value[0]!=h||"s"!=m.value[1])return!1;m=l.next();return m.done||4!=m.value[0].x||
37
- "t"!=m.value[1]||!l.next().done?!1:!0}catch(n){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(h,k){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.h[l.id]=[]);l.wa?l.wa.value=k:(l.wa={next:this.g,rb:this.g.rb,head:this.g,key:h,value:k},l.list.push(l.wa),this.g.rb.next=l.wa,this.g.rb=l.wa,this.size++);return this};e.prototype["delete"]=function(h){h=d(this,h);return h.wa&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.wa.rb.next=h.wa.next,h.wa.next.rb=h.wa.rb,
38
- h.wa.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.rb=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).wa};e.prototype.get=function(h){return(h=d(this,h).wa)&&h.value};e.prototype.entries=function(){return c(this,function(h){return[h.key,h.value]})};e.prototype.keys=function(){return c(this,function(h){return h.key})};e.prototype.values=function(){return c(this,function(h){return h.value})};e.prototype.forEach=function(h,k){for(var l=this.entries(),
39
- m;!(m=l.next()).done;)m=m.value,h.call(k,m[1],m[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var g=0;return e});function Ia(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}ea("Array.prototype.keys",function(a){return a?a:function(){return Ia(this,function(b){return b})}});
29
+ b.prototype.J=function(g){var h=this.j();g.fd(h.resolve,h.reject)};b.prototype.K=function(g,h){var k=this.j();try{g.call(h,k.resolve,k.reject)}catch(l){k.reject(l)}};b.prototype.then=function(g,h){function k(p,q){return"function"==typeof p?function(w){try{l(p(w))}catch(y){m(y)}}:q}var l,m,n=new b(function(p,q){l=p;m=q});this.fd(k(g,l),k(h,m));return n};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.fd=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i);
30
+ break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.A=!0};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=t(g),m=l.next();!m.done;m=l.next())d(m.value).fd(h,k)})};b.all=function(g){var h=t(g),k=h.next();return k.done?d([]):new b(function(l,m){function n(w){return function(y){p[w]=y;q--;0==q&&l(p)}}var p=[],q=0;do p.push(void 0),q++,d(k.value).fd(n(p.length-1),m),k=h.next();
31
+ while(!k.done)})};return b});function Ia(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
32
+ ea("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=t(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(k){var l=typeof k;return"object"===l&&null!==k||"function"===l}function e(k){if(!Ia(k,g)){var l=new c;ba(k,g,{value:l})}}function f(k){var l=Object[k];l&&(Object[k]=function(m){if(m instanceof c)return m;Object.isExtensible(m)&&e(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;try{var k=Object.seal({}),l=Object.seal({}),
33
+ m=new a([[k,2],[l,3]]);if(2!=m.get(k)||3!=m.get(l))return!1;m["delete"](k);m.set(l,4);return!m.has(k)&&4==m.get(l)}catch(n){return!1}}())return a;var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var h=0;b.prototype.set=function(k,l){if(!d(k))throw Error("Invalid WeakMap key");e(k);if(!Ia(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&Ia(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&
34
+ Ia(k,g)&&Ia(k[g],this.g)};b.prototype["delete"]=function(k){return d(k)&&Ia(k,g)&&Ia(k[g],this.g)?delete k[g][this.g]:!1};return b});
35
+ ea("Map",function(a){function b(){var h={};return h.pb=h.next=h.head=h}function c(h,k){var l=h.g;return fa(function(){if(l){for(;l.head!=h.g;)l=l.pb;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})}function d(h,k){var l=k&&typeof k;"object"==l||"function"==l?f.has(k)?l=f.get(k):(l=""+ ++g,f.set(k,l)):l="p_"+k;var m=h.h[l];if(m&&Ia(h.h,l))for(var n=0;n<m.length;n++){var p=m[n];if(k!==k&&p.key!==p.key||k===p.key)return{id:l,list:m,index:n,va:p}}return{id:l,
36
+ list:m,index:-1,va:void 0}}function e(h){this.h={};this.g=b();this.size=0;if(h){h=t(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a(t([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var l=k.entries(),m=l.next();if(m.done||m.value[0]!=h||"s"!=m.value[1])return!1;m=l.next();return m.done||4!=m.value[0].x||
37
+ "t"!=m.value[1]||!l.next().done?!1:!0}catch(n){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(h,k){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.h[l.id]=[]);l.va?l.va.value=k:(l.va={next:this.g,pb:this.g.pb,head:this.g,key:h,value:k},l.list.push(l.va),this.g.pb.next=l.va,this.g.pb=l.va,this.size++);return this};e.prototype["delete"]=function(h){h=d(this,h);return h.va&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.va.pb.next=h.va.next,h.va.next.pb=h.va.pb,
38
+ h.va.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.pb=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).va};e.prototype.get=function(h){return(h=d(this,h).va)&&h.value};e.prototype.entries=function(){return c(this,function(h){return[h.key,h.value]})};e.prototype.keys=function(){return c(this,function(h){return h.key})};e.prototype.values=function(){return c(this,function(h){return h.value})};e.prototype.forEach=function(h,k){for(var l=this.entries(),
39
+ m;!(m=l.next()).done;)m=m.value,h.call(k,m[1],m[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var g=0;return e});function Ja(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}ea("Array.prototype.keys",function(a){return a?a:function(){return Ja(this,function(b){return b})}});
40
40
  ea("Set",function(a){function b(c){this.g=new Map;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(t([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||
41
41
  f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype["delete"]=function(c){c=this.g["delete"](c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;
42
42
  b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});ea("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});
43
- function Ja(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{uf:e,v:f}}return{uf:-1,v:void 0}}ea("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ja(this,b,c).uf}});ea("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
43
+ function Ka(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{wf:e,v:f}}return{wf:-1,v:void 0}}ea("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ka(this,b,c).wf}});ea("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});
44
44
  ea("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length,f=c||0;for(0>f&&(f=Math.max(f+e,0));f<e;f++){var g=d[f];if(g===b||Object.is(g,b))return!0}return!1}});function La(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""}
45
- ea("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==La(this,b,"includes").indexOf(b,c||0)}});ea("Array.prototype.find",function(a){return a?a:function(b,c){return Ja(this,b,c).v}});ea("String.prototype.startsWith",function(a){return a?a:function(b,c){for(var d=La(this,b,"startsWith"),e=d.length,f=b.length,g=Math.max(0,Math.min(c|0,d.length)),h=0;h<f&&g<e;)if(d[g++]!=b[h++])return!1;return h>=f}});
46
- var Ma="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Ha(d,e)&&(a[e]=d[e])}return a};ea("Object.assign",function(a){return a||Ma});ea("Array.prototype.values",function(a){return a?a:function(){return Ia(this,function(b,c){return c})}});
47
- ea("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});ea("Array.prototype.entries",function(a){return a?a:function(){return Ia(this,function(b,c){return[b,c]})}});
48
- ea("String.prototype.repeat",function(a){return a?a:function(b){var c=La(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});ea("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});ea("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ha(b,d)&&c.push(b[d]);return c}});ea("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
49
- ea("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ha(b,d)&&c.push([d,b[d]]);return c}});var Na=this||self;function J(a,b){var c=a.split("."),d=Na;c[0]in d||"undefined"==typeof d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}:d[e]=b};/*
45
+ ea("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==La(this,b,"includes").indexOf(b,c||0)}});ea("Array.prototype.find",function(a){return a?a:function(b,c){return Ka(this,b,c).v}});ea("String.prototype.startsWith",function(a){return a?a:function(b,c){for(var d=La(this,b,"startsWith"),e=d.length,f=b.length,g=Math.max(0,Math.min(c|0,d.length)),h=0;h<f&&g<e;)if(d[g++]!=b[h++])return!1;return h>=f}});
46
+ var Na="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Ia(d,e)&&(a[e]=d[e])}return a};ea("Object.assign",function(a){return a||Na});ea("Array.prototype.values",function(a){return a?a:function(){return Ja(this,function(b,c){return c})}});
47
+ ea("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});ea("Array.prototype.entries",function(a){return a?a:function(){return Ja(this,function(b,c){return[b,c]})}});
48
+ ea("String.prototype.repeat",function(a){return a?a:function(b){var c=La(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});ea("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});ea("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ia(b,d)&&c.push(b[d]);return c}});ea("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
49
+ ea("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}});ea("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ia(b,d)&&c.push([d,b[d]]);return c}});var Oa=this||self;
50
+ function J(a,b){var c=a.split("."),d=Oa;c[0]in d||"undefined"==typeof d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}:d[e]=b};/*
50
51
  @license
51
52
  Shaka Player
52
53
  Copyright 2016 Google LLC
53
54
  SPDX-License-Identifier: Apache-2.0
54
55
  */
55
- function M(a,b){if(b)if(b instanceof Map)for(var c=t(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1}
56
- function Qa(a){var b=new M(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}M.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};M.prototype.stopImmediatePropagation=function(){this.g=!0};M.prototype.stopPropagation=function(){};J("shaka.util.FakeEvent",M);
57
- var Ra={Eh:"abrstatuschanged",Fh:"adaptation",Gh:"buffering",Kh:"downloadfailed",Lh:"downloadheadersreceived",Mh:"drmsessionupdate",Th:"emsg",Error:"error",Uh:"expirationupdated",Xh:"gapjumped",ai:"loaded",bi:"loading",ii:"manifestparsed",ji:"mediaqualitychanged",Metadata:"metadata",oi:"onstatechange",pi:"onstateidle",Ci:"ratechange",Ii:"sessiondata",Ji:"stalldetected",Ki:"streaming",Li:"textchanged",Mi:"texttrackvisibility",Ni:"timelineregionadded",Oi:"timelineregionenter",Pi:"timelineregionexit",
58
- Qi:"trackschanged",Vi:"unloading",Xi:"variantchanged"};function Sa(){}function Ta(){}function Ua(){}function Va(a){var b=Ga.apply(1,arguments);Wa.has(a)||(Wa.add(a),Ua.apply(Sa,ia(b)))}function Xa(){}function Ya(){}function Za(){}function $a(){}var Wa=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={}}r=db.prototype;r.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};r.get=function(a){return(a=this.g[a])?a.slice():null};r.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};function eb(a,b){for(var c in a.g)b(c,a.g[c])}r.size=function(){return Object.keys(this.g).length};r.keys=function(){return Object.keys(this.g)};function fb(){this.va=new db;this.sd=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=t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.sd;a.currentTarget=this.sd;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
59
- fb.prototype.release=function(){this.va=null};function gb(a,b){for(var c=[],d=t(a),e=d.next();!e.done;e=d.next())c.push(b(e.value));return c}function hb(a,b){for(var c=t(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0}function ib(a,b){for(var c=t(a),d=c.next();!d.done;d=c.next())if(b(d.value))return!0;return!1}function jb(a,b){for(var c=[],d=t(a),e=d.next();!e.done;e=d.next())e=e.value,b(e)&&c.push(e);return c};/*
56
+ function L(a,b){if(b)if(b instanceof Map)for(var c=t(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1}
57
+ function Pa(a){var b=new L(a.type),c;for(c in a)Object.defineProperty(b,c,{value:a[c],writable:!0,enumerable:!0});return b}L.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};L.prototype.stopImmediatePropagation=function(){this.g=!0};L.prototype.stopPropagation=function(){};J("shaka.util.FakeEvent",L);
58
+ var Qa={Dh:"abrstatuschanged",Eh:"adaptation",Fh:"buffering",Jh:"downloadfailed",Kh:"downloadheadersreceived",Lh:"drmsessionupdate",Sh:"emsg",Error:"error",Th:"expirationupdated",Wh:"gapjumped",$h:"loaded",ai:"loading",gi:"manifestparsed",ii:"mediaqualitychanged",Metadata:"metadata",ni:"onstatechange",oi:"onstateidle",Bi:"ratechange",Hi:"sessiondata",Ii:"stalldetected",Ji:"streaming",Ki:"textchanged",Li:"texttrackvisibility",Mi:"timelineregionadded",Ni:"timelineregionenter",Oi:"timelineregionexit",
59
+ Pi:"trackschanged",Ui:"unloading",Wi:"variantchanged"};function Ra(){}function Ta(){}function Ua(){}function Va(a){var b=Ha.apply(1,arguments);Wa.has(a)||(Wa.add(a),Ua.apply(Ra,ia(b)))}function Xa(){}function Ya(){}function Za(){}function $a(){}var Wa=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={}}r=db.prototype;r.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};r.get=function(a){return(a=this.g[a])?a.slice():null};r.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};function eb(a,b){for(var c in a.g)b(c,a.g[c])}r.size=function(){return Object.keys(this.g).length};r.keys=function(){return Object.keys(this.g)};function fb(){this.ua=new db;this.sd=this}fb.prototype.addEventListener=function(a,b){this.ua&&this.ua.push(a,b)};fb.prototype.removeEventListener=function(a,b){this.ua&&this.ua.remove(a,b)};fb.prototype.dispatchEvent=function(a){if(!this.ua)return!0;var b=this.ua.get(a.type)||[],c=this.ua.get("All");c&&(b=b.concat(c));b=t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.sd;a.currentTarget=this.sd;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};
60
+ fb.prototype.release=function(){this.ua=null};function gb(a,b){for(var c=[],d=t(a),e=d.next();!e.done;e=d.next())c.push(b(e.value));return c}function hb(a,b){for(var c=t(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0}function ib(a,b){for(var c=t(a),d=c.next();!d.done;d=c.next())if(b(d.value))return!0;return!1}function jb(a,b){for(var c=[],d=t(a),e=d.next();!e.done;e=d.next())e=e.value,b(e)&&c.push(e);return c};/*
60
61
  @license
61
62
  Copyright 2008 The Closure Library Authors
62
63
  SPDX-License-Identifier: Apache-2.0
@@ -66,13 +67,13 @@ var kb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=
66
67
  Copyright 2006 The Closure Library Authors
67
68
  SPDX-License-Identifier: Apache-2.0
68
69
  */
69
- function lb(a){var b;a instanceof lb?(mb(this,a.Ya),this.Tb=a.Tb,this.ab=a.ab,nb(this,a.mc),this.La=a.La,ob(this,a.g.clone()),this.Jb=a.Jb):a&&(b=String(a).match(kb))?(mb(this,b[1]||"",!0),this.Tb=pb(b[2]||""),this.ab=pb(b[3]||"",!0),nb(this,b[4]),this.La=pb(b[5]||"",!0),ob(this,b[6]||"",!0),this.Jb=pb(b[7]||"")):this.g=new rb(null)}r=lb.prototype;r.Ya="";r.Tb="";r.ab="";r.mc=null;r.La="";r.Jb="";
70
- r.toString=function(){var a=[],b=this.Ya;b&&a.push(sb(b,tb,!0),":");if(b=this.ab){a.push("//");var c=this.Tb;c&&a.push(sb(c,tb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.mc;null!=b&&a.push(":",String(b))}if(b=this.La)this.ab&&"/"!=b.charAt(0)&&a.push("/"),a.push(sb(b,"/"==b.charAt(0)?ub:vb,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Jb)&&a.push("#",sb(b,wb));return a.join("")};
71
- r.resolve=function(a){var b=this.clone();"data"===b.Ya&&(b=new lb);var c=!!a.Ya;c?mb(b,a.Ya):c=!!a.Tb;c?b.Tb=a.Tb:c=!!a.ab;c?b.ab=a.ab:c=null!=a.mc;var d=a.La;if(c)nb(b,a.mc);else if(c=!!a.La){if("/"!=d.charAt(0))if(this.ab&&!this.La)d="/"+d;else{var e=b.La.lastIndexOf("/");-1!=e&&(d=b.La.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):".."==
72
- h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.La=d:c=""!==a.g.toString();c?ob(b,a.g.clone()):c=!!a.Jb;c&&(b.Jb=a.Jb);return b};r.clone=function(){return new lb(this)};function mb(a,b,c){a.Ya=c?pb(b,!0):b;a.Ya&&(a.Ya=a.Ya.replace(/:$/,""))}function nb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.mc=b}else a.mc=null}function ob(a,b,c){b instanceof rb?a.g=b:(c||(b=sb(b,xb)),a.g=new rb(b))}
70
+ function lb(a){var b;a instanceof lb?(mb(this,a.Wa),this.Rb=a.Rb,this.Za=a.Za,nb(this,a.kc),this.Ka=a.Ka,ob(this,a.g.clone()),this.Hb=a.Hb):a&&(b=String(a).match(kb))?(mb(this,b[1]||"",!0),this.Rb=pb(b[2]||""),this.Za=pb(b[3]||"",!0),nb(this,b[4]),this.Ka=pb(b[5]||"",!0),ob(this,b[6]||"",!0),this.Hb=pb(b[7]||"")):this.g=new rb(null)}r=lb.prototype;r.Wa="";r.Rb="";r.Za="";r.kc=null;r.Ka="";r.Hb="";
71
+ r.toString=function(){var a=[],b=this.Wa;b&&a.push(sb(b,tb,!0),":");if(b=this.Za){a.push("//");var c=this.Rb;c&&a.push(sb(c,tb,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.kc;null!=b&&a.push(":",String(b))}if(b=this.Ka)this.Za&&"/"!=b.charAt(0)&&a.push("/"),a.push(sb(b,"/"==b.charAt(0)?ub:vb,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Hb)&&a.push("#",sb(b,wb));return a.join("")};
72
+ r.resolve=function(a){var b=this.clone();"data"===b.Wa&&(b=new lb);var c=!!a.Wa;c?mb(b,a.Wa):c=!!a.Rb;c?b.Rb=a.Rb:c=!!a.Za;c?b.Za=a.Za:c=null!=a.kc;var d=a.Ka;if(c)nb(b,a.kc);else if(c=!!a.Ka){if("/"!=d.charAt(0))if(this.Za&&!this.Ka)d="/"+d;else{var e=b.Ka.lastIndexOf("/");-1!=e&&(d=b.Ka.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):".."==
73
+ h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Ka=d:c=""!==a.g.toString();c?ob(b,a.g.clone()):c=!!a.Hb;c&&(b.Hb=a.Hb);return b};r.clone=function(){return new lb(this)};function mb(a,b,c){a.Wa=c?pb(b,!0):b;a.Wa&&(a.Wa=a.Wa.replace(/:$/,""))}function nb(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.kc=b}else a.kc=null}function ob(a,b,c){b instanceof rb?a.g=b:(c||(b=sb(b,xb)),a.g=new rb(b))}
73
74
  function pb(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function sb(a,b,c){return null!=a?(a=encodeURI(a).replace(b,yb),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function yb(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var tb=/[#\/\?@]/g,vb=/[#\?:]/g,ub=/[#\?]/g,xb=/[#\?@]/g,wb=/#/g;function rb(a){this.g=a||null}
74
75
  function zb(a){if(!a.Ea&&(a.Ea={},a.hd=0,a.g))for(var b=a.g.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}}r=rb.prototype;r.Ea=null;r.hd=null;r.add=function(a,b){zb(this);this.g=null;var c=this.Ea.hasOwnProperty(a)&&this.Ea[a];c||(this.Ea[a]=c=[]);c.push(b);this.hd++;return this};
75
- r.set=function(a,b){zb(this);this.g=null;this.Ea.hasOwnProperty(a)?this.Ea[a]=[b]:this.add(a,b);return this};r.toString=function(){if(this.g)return this.g;if(!this.Ea)return"";var a=[],b;for(b in this.Ea)for(var c=encodeURIComponent(b),d=this.Ea[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};r.clone=function(){var a=new rb;a.g=this.g;if(this.Ea){var b={},c;for(c in this.Ea)b[c]=this.Ea[c].concat();a.Ea=b;a.hd=this.hd}return a};function O(a,b,c){var d=Ga.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1}O.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};J("shaka.util.Error",O);O.Severity={RECOVERABLE:1,CRITICAL:2};O.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
76
+ r.set=function(a,b){zb(this);this.g=null;this.Ea.hasOwnProperty(a)?this.Ea[a]=[b]:this.add(a,b);return this};r.toString=function(){if(this.g)return this.g;if(!this.Ea)return"";var a=[],b;for(b in this.Ea)for(var c=encodeURIComponent(b),d=this.Ea[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")};r.clone=function(){var a=new rb;a.g=this.g;if(this.Ea){var b={},c;for(c in this.Ea)b[c]=this.Ea[c].concat();a.Ea=b;a.hd=this.hd}return a};function O(a,b,c){var d=Ha.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1}O.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};J("shaka.util.Error",O);O.Severity={RECOVERABLE:1,CRITICAL:2};O.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10};
76
77
  O.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,SEGMENT_MISSING:1011,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,
77
78
  CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,CHAPTERS_TRACK_FAILED:2015,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,
78
79
  WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,
@@ -81,823 +82,829 @@ HLS_AES_128_ENCRYPTION_NOT_SUPPORTED:4034,HLS_INTERNAL_SKIP_STREAM:4035,NO_VARIA
81
82
  LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,CAST_API_UNAVAILABLE:8E3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,
82
83
  CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9E3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,CS_IMA_SDK_MISSING:1E4,
83
84
  CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004};function Ab(a,b){return a.concat(b)}function Bb(){}function Cb(a){return null!=a};function Db(a,b){if(0==b.length)return a;var c=b.map(function(d){return new lb(d)});return a.map(function(d){return new lb(d)}).map(function(d){return c.map(function(e){return d.resolve(e)})}).reduce(Ab,[]).map(function(d){return d.toString()})}function Eb(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:b||[],keyIds:new Set}}
84
- function Fb(a,b){if(1==b.length)return b[0];var c=Gb(a,b);if(null!=c)return c;throw new O(2,4,4025,b);}function Gb(a,b){for(var c=t(Hb[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==Ib?"":null}var Ib="text",Jb={Oa:"video",Hb:"audio",ia:Ib,zc:"image",Bh:"application"},Hb={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Kb(){}function Mb(a,b){a=Nb(a);b=Nb(b);return a.split("-")[0]==b.split("-")[0]}function Ob(a,b){a=Nb(a);b=Nb(b);var c=a.split("-"),d=b.split("-");return c[0]==d[0]&&1==c.length&&2==d.length}function Pb(a,b){a=Nb(a);b=Nb(b);var c=a.split("-"),d=b.split("-");return 2==c.length&&2==d.length&&c[0]==d[0]}function Nb(a){var b=a.split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Qb.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a}function Rb(a,b){var c=Sb(a),d=Sb(b);return a!=c&&b!=d&&c==d}
85
- function Tb(a,b){a=Nb(a);b=Nb(b);return b==a?4:Ob(b,a)?3:Pb(b,a)?2:Ob(a,b)?1:0}function Sb(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=Qb.get(a)||a}function Ub(a){return a.language?Nb(a.language):a.audio&&a.audio.language?Nb(a.audio.language):a.video&&a.video.language?Nb(a.video.language):"und"}
86
- function Vb(a,b){for(var c=Nb(a),d=new Set,e=t(b),f=e.next();!f.done;f=e.next())d.add(Nb(f.value));e=t(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,f==c)return f;e=t(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Ob(f,c))return f;e=t(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Pb(f,c))return f;d=t(d);for(f=d.next();!f.done;f=d.next())if(f=f.value,Ob(c,f))return f;return null}J("shaka.util.LanguageUtils",Kb);Kb.findClosestLocale=Vb;Kb.getLocaleForVariant=Ub;
87
- Kb.getLocaleForText=function(a){return Nb(a.language||"und")};Kb.getBase=Sb;Kb.relatedness=Tb;Kb.areSiblings=Rb;Kb.normalize=Nb;Kb.isSiblingOf=Pb;Kb.isParentOf=Ob;Kb.areLanguageCompatible=Mb;Kb.areLocaleCompatible=function(a,b){a=Nb(a);b=Nb(b);return a==b};
88
- var Qb=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze",
85
+ function Fb(a,b){if(1==b.length)return b[0];var c=Gb(a,b);if(null!=c)return c;throw new O(2,4,4025,b);}function Gb(a,b){for(var c=t(Hb[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==Ib?"":null}var Ib="text",Jb={Ma:"video",Fb:"audio",ha:Ib,xc:"image",Ah:"application"},Hb={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av01/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Kb(){}function Lb(a,b){a=Mb(a);b=Mb(b);return a.split("-")[0]==b.split("-")[0]}function Nb(a,b){a=Mb(a);b=Mb(b);var c=a.split("-"),d=b.split("-");return c[0]==d[0]&&1==c.length&&2==d.length}function Ob(a,b){a=Mb(a);b=Mb(b);var c=a.split("-"),d=b.split("-");return 2==c.length&&2==d.length&&c[0]==d[0]}function Mb(a){var b=a.split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Pb.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a}function Qb(a,b){var c=Rb(a),d=Rb(b);return a!=c&&b!=d&&c==d}
86
+ function Sb(a,b){a=Mb(a);b=Mb(b);return b==a?4:Nb(b,a)?3:Ob(b,a)?2:Nb(a,b)?1:0}function Rb(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=Pb.get(a)||a}function Tb(a){return a.language?Mb(a.language):a.audio&&a.audio.language?Mb(a.audio.language):a.video&&a.video.language?Mb(a.video.language):"und"}
87
+ function Ub(a,b){for(var c=Mb(a),d=new Set,e=t(b),f=e.next();!f.done;f=e.next())d.add(Mb(f.value));e=t(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,f==c)return f;e=t(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Nb(f,c))return f;e=t(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Ob(f,c))return f;d=t(d);for(f=d.next();!f.done;f=d.next())if(f=f.value,Nb(c,f))return f;return null}J("shaka.util.LanguageUtils",Kb);Kb.findClosestLocale=Ub;Kb.getLocaleForVariant=Tb;
88
+ Kb.getLocaleForText=function(a){return Mb(a.language||"und")};Kb.getBase=Rb;Kb.relatedness=Sb;Kb.areSiblings=Qb;Kb.normalize=Mb;Kb.isSiblingOf=Ob;Kb.isParentOf=Nb;Kb.areLanguageCompatible=Lb;Kb.areLocaleCompatible=function(a,b){a=Mb(a);b=Mb(b);return a==b};
89
+ var Pb=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze",
89
90
  "cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice",
90
91
  "is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao",
91
92
  "mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san",
92
93
  "sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie",
93
- "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Wb(a){fb.call(this);this.j=Nb(a);this.i=new Map;this.g=new Set;this.h=new Map}ra(Wb,fb);r=Wb.prototype;r.release=function(){fb.prototype.release.call(this)};
94
- r.bf=function(a){var b=this;this.g.clear();a=t(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Nb(c.value));Xb(this);a=jb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new M("unknown-locales",(new Map).set("locales",a)));a=jb(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new M("locale-changed",a))};
95
- r.ka=function(a,b,c){a=Nb(a);void 0===c&&(c=Yb);var d=this.h.get(a)||new Map;b.forEach(function(e,f){d.has(f)&&c!=Yb||d.set(f,e)});this.h.set(a,d);Xb(this);this.dispatchEvent(new M("locale-updated"));return this};r.ih=function(a){for(var b=t(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};r.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 M("unknown-localization",a));return""};
96
- function Xb(a){for(var b=a.h,c=a.j,d=a.g,e=new Set,f={},g=t(d),h=g.next();!h.done;f={Yb:f.Yb},h=g.next()){f.Yb=h.value;e.add(f.Yb);e.add(Sb(f.Yb));h=jb(b.keys(),function(l){return function(m){return Rb(m,l.Yb)}}(f));h.sort();var k=t(h);for(h=k.next();!h.done;h=k.next())e.add(h.value);h=jb(b.keys(),function(l){return function(m){return Sb(m)==l.Yb}}(f));h.sort();k=t(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=t(e);for(h=e.next();!h.done;h=e.next())(h=b.get(h.value))&&c.push(h);
97
- c.reverse();a.i.clear();b=t(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=t(a.g);for(h=c.next();!h.done;h=c.next())h=a.h.get(h.value)||new Map,Zb(h,b,e);0<e.size&&(d=(new Map).set("locales",Array.from(d)).set("missing",Array.from(e)),a.dispatchEvent(new M("missing-localizations",d)))}function Zb(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}J("shaka.ui.Localization",Wb);Wb.prototype.resolve=Wb.prototype.resolve;
98
- Wb.prototype.resolveDictionary=Wb.prototype.ih;Wb.prototype.insert=Wb.prototype.ka;Wb.prototype.changeLocale=Wb.prototype.bf;Wb.prototype.release=Wb.prototype.release;var Yb=1;Wb.ConflictResolution={USE_OLD:0,USE_NEW:Yb};Wb.UNKNOWN_LOCALES="unknown-locales";Wb.UNKNOWN_LOCALIZATION="unknown-localization";Wb.MISSING_LOCALIZATIONS="missing-localizations";Wb.LOCALE_CHANGED="locale-changed";Wb.LOCALE_UPDATED="locale-updated";var $b={xi:"QUALITY",Fi:"SKIP_TO_LIVE",We:"LIVE",Sf:"SUBTITLE_FORCED",Ei:"SKIP_AD",Zh:"LANGUAGE",Vh:"FAST_FORWARD",yh:"AD_TIME",Ai:"RESOLUTION",ki:"NOT_APPLICABLE",zi:"REPLAY",mi:"ON",gi:"MUTE",Hh:"CAPTIONS",si:"PICTURE_IN_PICTURE",xh:"AD_DURATION",Wh:"FULL_SCREEN",$h:"LOOP",Oh:"ENTER_PICTURE_IN_PICTURE",li:"OFF",BACK:"BACK",Wi:"VOLUME",Rh:"EXIT_LOOP_MODE",Qh:"EXIT_FULL_SCREEN",Nh:"ENTER_LOOP_MODE",Hi:"STATISTICS",Bi:"REWIND",di:"MORE_SETTINGS",wi:"PLAYBACK_RATE",ti:"PLAY",Ch:"AUTO_QUALITY",Ui:"UNRECOGNIZED_LANGUAGE",
99
- Ah:"AIRPLAY",Ih:"CAST",Si:"UNDETERMINED_LANGUAGE",AD_PROGRESS:"AD_PROGRESS",Di:"SEEK",ri:"PAUSE",Sh:"EXIT_PICTURE_IN_PICTURE",ei:"MULTIPLE_LANGUAGES",Ti:"UNMUTE"};function ac(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}ac.prototype.sample=function(a,b){var c=Math.pow(this.g,a);c=b*(1-c)+c*this.h;isNaN(c)||(this.h=c,this.i+=a)};function bc(a){return a.h/(1-Math.pow(a.g,a.i))};function cc(){this.h=new ac(2);this.j=new ac(5);this.g=0;this.i=128E3;this.l=16E3}cc.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)};cc.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a,d=a/1E3;this.g+=b;this.h.sample(d,c);this.j.sample(d,c)}};cc.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(bc(this.h),bc(this.j))};function dc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function ec(a,b){var c=a.indexOf(b);-1<c&&a.splice(c,1)}function fc(a,b,c){c||(c=dc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={Md:d.Md},e=a.next()){d.Md=e.value;e=b.findIndex(function(f){return function(g){return c(f.Md,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
100
- function gc(a,b,c){c||(c=dc);if(a.length!=b.length)return!1;for(var d=0;d<a.length;d++)if(!c(a[d],b[d]))return!1;return!0};function hc(a,b,c){this.startTime=a;this.direction=ic;this.endTime=b;this.payload=c;this.region=new jc;this.position=null;this.positionAlign=kc;this.size=0;this.textAlign=lc;this.writingMode=mc;this.lineInterpretation=nc;this.line=null;this.lineHeight="";this.lineAlign=oc;this.displayAlign=pc;this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.textShadow=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=qc;this.fontStyle=tc;this.linePadding=this.letterSpacing=
101
- this.fontFamily="";this.opacity=1;this.textDecoration=[];this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.cellResolution={columns:32,rows:15}}hc.prototype.clone=function(){var a=new hc(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a};
102
- function uc(a,b){if(a.startTime!=b.startTime||a.endTime!=b.endTime||a.payload!=b.payload)return!1;for(var c in a)if("startTime"!=c&&"endTime"!=c&&"payload"!=c)if("nestedCues"==c){if(!gc(a.nestedCues,b.nestedCues,uc))return!1}else if("region"==c||"cellResolution"==c)for(var d in a[c]){if(a[c][d]!=b[c][d])return!1}else if(Array.isArray(a[c])){if(!gc(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}J("shaka.text.Cue",hc);var kc="auto";
103
- hc.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:kc};var lc="center",vc={LEFT:"left",RIGHT:"right",CENTER:lc,START:"start",END:"end"};hc.textAlign=vc;var pc="after",wc={BEFORE:"before",CENTER:"center",AFTER:pc};hc.displayAlign=wc;var ic="ltr";hc.direction={HORIZONTAL_LEFT_TO_RIGHT:ic,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var mc="horizontal-tb";hc.writingMode={HORIZONTAL_TOP_TO_BOTTOM:mc,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var nc=0;
104
- hc.lineInterpretation={LINE_NUMBER:nc,PERCENTAGE:1};var oc="start",xc={CENTER:"center",START:oc,END:"end"};hc.lineAlign=xc;var yc={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};hc.defaultTextColor=yc;var zc={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};hc.defaultTextBackgroundColor=zc;var qc=400;hc.fontWeight={NORMAL:qc,BOLD:700};
105
- var tc="normal",Ac={NORMAL:tc,ITALIC:"italic",OBLIQUE:"oblique"};hc.fontStyle=Ac;hc.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function jc(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Bc;this.scroll=Cc}J("shaka.text.CueRegion",jc);var Bc=1;jc.units={PX:0,PERCENTAGE:Bc,LINES:2};var Cc="";jc.scrollMode={NONE:Cc,UP:"up"};function Dc(){}function Ec(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Fc(a)==Fc(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=Gc(a),d=Gc(b),e=0;e<a.byteLength;e++)if(c[e]!=d[e])return!1;return!0}function Fc(a){return a instanceof ArrayBuffer?a:a.buffer}function Hc(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
106
- function Gc(a,b,c){c=void 0===c?Infinity:c;return Ic(a,void 0===b?0:b,c,Uint8Array)}function Jc(a,b,c){c=void 0===c?Infinity:c;return Ic(a,void 0===b?0:b,c,DataView)}function Ic(a,b,c,d){var e=(a.byteOffset||0)+a.byteLength;b=Math.max(0,Math.min((a.byteOffset||0)+b,e));return new d(Fc(a),b,Math.min(b+Math.max(c,0),e)-b)}J("shaka.util.BufferUtils",Dc);Dc.toDataView=Jc;Dc.toUint8=Gc;Dc.toArrayBuffer=Hc;Dc.equal=Ec;function Kc(){}J("shaka.dependencies",Kc);Kc.has=function(a){return Lc.has(a)};Kc.add=function(a,b){if(!Mc[a])throw Error(a+" is not supported");Lc.set(a,function(){return b})};var Mc={muxjs:"muxjs"};Kc.Allowed=Mc;var Lc=new Map([["muxjs",function(){return window.muxjs}]]);function Nc(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}Nc.prototype.resolve=function(){};Nc.prototype.reject=function(){};function Oc(a){this.h=a;this.g=void 0}Oc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Pc(){}function Rc(a){if(!a)return"";a=Gc(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));a=(new TextDecoder).decode(a);a.includes("\ufffd")&&Ta('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!');return a}function Sc(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new O(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=Jc(a);for(var e=0;e<c;e++)d[e]=a.getUint16(2*e,b);return Tc.value()(d)}
107
- function Uc(a){function b(d){return c.byteLength<=d||32<=c[d]&&126>=c[d]}if(!a)return"";var c=Gc(a);if(239==c[0]&&187==c[1]&&191==c[2])return Rc(c);if(254==c[0]&&255==c[1])return Sc(c.subarray(2),!1);if(255==c[0]&&254==c[1])return Sc(c.subarray(2),!0);if(0==c[0]&&0==c[2])return Sc(a,!1);if(0==c[1]&&0==c[3])return Sc(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return Rc(a);throw new O(2,2,2003);}function Vc(a){var b=new TextEncoder;return Hc(b.encode(a))}
108
- function Wc(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}J("shaka.util.StringUtils",Pc);Pc.resetFromCharCode=function(){Tc.g=void 0};Pc.toUTF16=Wc;Pc.toUTF8=Vc;Pc.fromBytesAutoDetect=Uc;Pc.fromUTF16=Sc;Pc.fromUTF8=Rc;
109
- var Tc=new Oc(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={wb:65536};0<b.wb;b={wb:b.wb},b.wb/=2)if(a(b.wb))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.wb)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.wb));return e}}(b);return null});function Xc(){}function Yc(a){a=Gc(a);a=Tc.value()(a);return btoa(a)}function Zc(a,b){b=void 0==b?!0:b;var c=Yc(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")}function $c(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 ad(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}
110
- function bd(a){var b=Gc(a);a="";b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c=c.toString(16),1==c.length&&(c="0"+c),a+=c;return a}function cd(){for(var a=Ga.apply(0,arguments),b=0,c=t(a),d=c.next();!d.done;d=c.next())b+=d.value.byteLength;b=new Uint8Array(b);c=0;a=t(a);for(d=a.next();!d.done;d=a.next())d=d.value,b.set(Gc(d),c),c+=d.byteLength;return b}J("shaka.util.Uint8ArrayUtils",Xc);Xc.concat=cd;Xc.toHex=bd;Xc.fromHex=ad;Xc.fromBase64=$c;Xc.toBase64=Zc;Xc.toStandardBase64=Yc;function dd(){var a=this;this.A=Lc.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(cd(b.initSegment,b.data))});this.g.on("done",function(){var b={data:cd.apply(Xc,ia(a.m)),captions:a.j,metadata:a.i};a.h.resolve(b);a.l=!1})}dd.prototype.destroy=function(){this.g.dispose();this.g=null;return Promise.resolve()};
111
- function ed(a,b){if(!Lc.get("muxjs")()||!fd(a))return!1;if(b)return MediaSource.isTypeSupported(gd(b,a));var c=gd("audio",a),d=gd("video",a);return MediaSource.isTypeSupported(c)||MediaSource.isTypeSupported(d)}function fd(a){return"mp2t"==a.toLowerCase().split(";")[0].split("/")[1]}
112
- function gd(a,b){var c=b.replace(/mp2t/i,"mp4");"audio"==a&&(c=c.replace("video","audio"));var d=/avc1\.(66|77|100)\.(\d+)/.exec(c);if(d){var e="avc1.",f=d[1],g=Number(d[2]);e=("66"==f?e+"4200":"77"==f?e+"4d00":e+"6400")+(g>>4).toString(16);e+=(g&15).toString(16);c=c.replace(d[0],e)}return c}function hd(a,b){a.l=!0;a.h=new Nc;a.m=[];a.j=[];a.i=[];var c=Gc(b);a.g.push(c);a.g.flush();a.l&&a.h.reject(new O(2,3,3018));return a.h};function id(){}function jd(a,b){var c=a;b&&(c+='; codecs="'+b+'"');return c}function kd(a,b,c){a=jd(a,b);if(fd(a)){if(Lc.get("muxjs")())return gd(c,a)}else if("audio"==c)return a.replace("video","audio");return a}
113
- function ld(a){var b=md(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";
114
- 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 nd(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""}function md(a){a=a.split(".");var b=a[0];a.shift();return[b,a.join(".")]}J("shaka.util.MimeUtils",id);id.getFullType=jd;
115
- (new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");function od(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 pd(a){return qd[a]||"application/cea-608"==a||"application/cea-708"==a?!0:!1}od.prototype.destroy=function(){this.i=this.j=null;this.A.clear();return Promise.resolve()};
116
- function rd(a,b,c,d){var e,f,g,h;return I(function(k){if(1==k.g)return u(k,Promise.resolve(),2);if(!a.j||!a.i)return k["return"]();if(null==c||null==d)return a.j.parseInit(Gc(b)),k["return"]();e=a.C?c:a.B;f={periodStart:a.B,segmentStart:c,segmentEnd:d,vttOffset:e};g=a.j.parseMedia(Gc(b),f);h=g.filter(function(l){return l.startTime>=a.l&&l.startTime<a.m});a.i.append(h);null==a.g&&(a.g=Math.max(c,a.l));a.h=Math.min(d,a.m);z(k)})}
117
- od.prototype.remove=function(a,b){var c=this;return I(function(d){if(1==d.g)return u(d,Promise.resolve(),2);!c.i||!c.i.remove(a,b)||null==c.g||b<=c.g||a>=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&b<c.h?c.g=b:a>c.g&&b>=c.h&&(c.h=a));z(d)})};function sd(a,b,c){a.l=b;a.m=c}function td(a,b,c){a.F=b;if(b=a.A.get(b))for(var d=t(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.i.append(e)}
118
- function ud(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.push({stream:c.stream,cue:new hc(c.startTime,c.endTime,c.text)});return b}function vd(a,b,c){b.startTime+=c;b.endTime+=c;b=t(b.nestedCues);for(var d=b.next();!d.done;d=b.next())vd(a,d.value,c)}
119
- function wd(a,b,c,d,e){var f=c+" "+d,g=new Map;b=t(b);for(var h=b.next();!h.done;h=b.next()){var k=h.value;h=k.stream;k=k.cue;g.has(h)||g.set(h,new Map);g.get(h).has(f)||g.get(h).set(f,[]);vd(a,k,e);k.startTime>=a.l&&k.startTime<a.m&&(g.get(h).get(f).push(k),h==a.F&&a.i.append([k]))}e=t(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.A.has(f)||a.A.set(f,new Map),b=t(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),a.A.get(f).set(h,k);a.g=null==a.g?Math.max(c,
120
- a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m))}J("shaka.text.TextEngine",od);od.prototype.destroy=od.prototype.destroy;od.findParser=function(a){return qd[a]};od.unregisterParser=function(a){delete qd[a]};od.registerParser=function(a,b){qd[a]=b};var qd={};function xd(a){this.h=a;this.g=null}xd.prototype.T=function(a){var b=this;this.stop();var c=!0,d=null;this.g=function(){window.clearTimeout(d);c=!1};d=window.setTimeout(function(){c&&b.h()},1E3*a);return this};xd.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function P(a){this.h=a;this.g=null}P.prototype.ya=function(){this.stop();this.h();return this};P.prototype.T=function(a){var b=this;this.stop();this.g=(new xd(function(){b.h()})).T(a);return this};P.prototype.ma=function(a){var b=this;this.stop();this.g=(new xd(function(){b.g.T(a);b.h()})).T(a);return this};P.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};J("shaka.util.Timer",P);P.prototype.stop=P.prototype.stop;P.prototype.tickEvery=P.prototype.ma;P.prototype.tickAfter=P.prototype.T;
121
- P.prototype.tickNow=P.prototype.ya;function yd(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function zd(a){return""!=Ad().canPlayType(a)}function Bd(){return Gd("Xbox One")}function Hd(){return Gd("Tizen")}function Id(){return Gd("CrKey")}function Jd(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Hd()}function Kd(){if(!Jd())return null;var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null}
122
- function Gd(a){return(navigator.userAgent||"").includes(a)}function Ad(){if(Ld)return Ld;Md||(Md=new P(function(){Ld=null}));(Ld=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Ld=document.createElement("video"));Md.T(1);return Ld}var Md=null,Ld=null;function Nd(a,b,c,d,e){var f=a.variants;if(b.length||c.length)f=Od(f,b,c);f=Pd(f,d);b=Qd(f);b=Rd(b);var g=Sd(b,e);a.variants=a.variants.filter(function(h){return Td(h)==g?!0:!1})}function Qd(a){var b=new db;a=t(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Td(c);b.push(d,c)}return b}
123
- function Rd(a){var b=0,c=new Map,d=a.size();eb(a,function(e,f){for(var g=t(f),h=g.next();!h.done;h=g.next()){h=h.value;var k=h.video;if(k&&k.width&&k.height){k=k.width*k.height*(k.frameRate||1);c.has(k)||c.set(k,new db);var l=c.get(k);l.push(e,h);l.size()===d&&(b=Math.max(b,k))}}});return b?c.get(b):a}
124
- function Od(a,b,c){var d={};b=t(b);for(var e=b.next();!e.done;d={Xd:d.Xd},e=b.next())if(d.Xd=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.Xd)}}(d)),e.length){a=e;break}d={};c=t(c);for(b=c.next();!b.done;d={Jd:d.Jd},b=c.next())if(d.Jd=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.Jd)}}(d)),b.length){a=b;break}return a}
125
- function Sd(a,b){for(var c=t(b),d=c.next();!d.done;d=c.next())if(d=d.value,d==Ud||d==Vd){if(a=Wd(a,d),1==a.size())return a.keys()[0]}else if(d==Xd)break;return Yd(a)}function Wd(a,b){var c=0,d=new db;eb(a,function(e,f){for(var g=0,h=0,k=t(f),l=k.next();!l.done;l=k.next())l=l.value,l.decodingInfos.length&&(g+=l.decodingInfos[0][b]?1:0,h++);g/=h;g>c?(d.g={},d.push(e,f),c=g):g==c&&d.push(e,f)});return d}
126
- function Yd(a){var b="",c=Infinity;eb(a,function(d,e){for(var f=0,g=0,h=t(e),k=h.next();!k.done;k=h.next())f+=k.value.bandwidth||0,++g;f/=g;f<c&&(b=d,c=f)});return b}function Td(a){var b="";a.video&&(b=ld(a.video.codecs));var c="";a.audio&&(c=ld(a.audio.codecs));return b+"-"+c}function Zd(a,b,c){a.variants=a.variants.filter(function(d){return $d(d,b,c)})}
127
- function $d(a,b,c){function d(f,g,h){return f>=g&&f<=h}var e=a.video;if(0!=a.disabledUntilTime){if(a.disabledUntilTime>Date.now()/1E3)return!1;a.disabledUntilTime=0}return e&&e.width&&e.height&&(!d(e.width,b.minWidth,Math.min(b.maxWidth,c.width))||!d(e.height,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))||a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}
128
- function ae(a,b,c){var d=!1;a=t(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.allowedByApplication;e.allowedByApplication=$d(e,b,c);f!=e.allowedByApplication&&(d=!0)}return d}function be(a,b){return I(function(c){if(1==c.g)return u(c,ce(b,0<b.offlineSessionIds.length),2);de(a,b);ee(b);return u(c,fe(b),0)})}
129
- function ce(a,b){return I(function(c){if(1==c.g)return u(c,ge(a.variants,b,!1),2);a.variants=a.variants.filter(function(d){var e=d.video;if(e){var f=he(e.codecs);if(e.codecs.includes(",")){var g=e.codecs.split(",");f=Fb("video",g);g=Fb("audio",g);g=kd(e.mimeType,g,"audio");if(!MediaSource.isTypeSupported(g))return!1}f=kd(e.mimeType,f,"video");if(!MediaSource.isTypeSupported(f))return!1}if(f=d.audio)if(g=ie(f.codecs),f=kd(f.mimeType,g,"audio"),!MediaSource.isTypeSupported(f))return!1;if(Bd()&&e&&(e.width&&
130
- 1920<e.width||e.height&&1080<e.height)&&e.codecs.includes("avc1."))return Ya(je(d)),!1;(e=d.decodingInfos.some(function(h){return h.supported}))||Ya(je(d));return e});z(c)})}
131
- function ge(a,b,c){var d,e,f,g,h,k,l,m,n,p,q;return I(function(x){if(d=a.some(function(w){return w.decodingInfos.length}))return x["return"]();e=navigator.mediaCapabilities;f=[];g=function(w,v){var y;return I(function(D){if(1==D.g)return A(D,2),u(D,e.decodingInfo(v),4);if(2!=D.g)return y=D.h,w.decodingInfos.push(y),wa(D,0);F(D);JSON.stringify(v);z(D)})};h=t(a);for(k=h.next();!k.done;k=h.next())for(l=k.value,m=ke(l,b,c),n=t(m),p=n.next();!p.done;p=n.next())q=p.value,f.push(g(l,q));return u(x,Promise.all(f),
94
+ "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Vb(a){fb.call(this);this.j=Mb(a);this.i=new Map;this.g=new Set;this.h=new Map}qa(Vb,fb);r=Vb.prototype;r.release=function(){fb.prototype.release.call(this)};
95
+ r.ef=function(a){var b=this;this.g.clear();a=t(a);for(var c=a.next();!c.done;c=a.next())this.g.add(Mb(c.value));Wb(this);a=jb(this.g,function(d){return!b.h.has(d)});a.length&&this.dispatchEvent(new L("unknown-locales",(new Map).set("locales",a)));a=jb(this.g,function(d){return b.h.has(d)});a=(new Map).set("locales",a.length?a:[this.j]);this.dispatchEvent(new L("locale-changed",a))};
96
+ r.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 L("locale-updated"));return this};r.hh=function(a){for(var b=t(a.keys()),c=b.next();!c.done;c=b.next())c=c.value,a.set(c,this.resolve(c))};r.resolve=function(a){var b=this.i.get(a);if(b)return b;a=(new Map).set("locales",Array.from(this.g)).set("missing",a);this.dispatchEvent(new L("unknown-localization",a));return""};
97
+ function Wb(a){for(var b=a.h,c=a.j,d=a.g,e=new Set,f={},g=t(d),h=g.next();!h.done;f={Wb:f.Wb},h=g.next()){f.Wb=h.value;e.add(f.Wb);e.add(Rb(f.Wb));h=jb(b.keys(),function(l){return function(m){return Qb(m,l.Wb)}}(f));h.sort();var k=t(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.Wb}}(f));h.sort();k=t(h);for(h=k.next();!h.done;h=k.next())e.add(h.value)}e.add(c);c=[];e=t(e);for(h=e.next();!h.done;h=e.next())(h=b.get(h.value))&&c.push(h);
98
+ c.reverse();a.i.clear();b=t(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=t(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 L("missing-localizations",d)))}function Yb(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,a.get(d)||c.add(d)}J("shaka.ui.Localization",Vb);Vb.prototype.resolve=Vb.prototype.resolve;
99
+ Vb.prototype.resolveDictionary=Vb.prototype.hh;Vb.prototype.insert=Vb.prototype.ia;Vb.prototype.changeLocale=Vb.prototype.ef;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={li:"ON",wi:"QUALITY",yh:"AIRPLAY",zi:"RESOLUTION",Mh:"ENTER_LOOP_MODE",ji:"NOT_APPLICABLE",Nh:"ENTER_PICTURE_IN_PICTURE",ti:"PLAYBACK_RATE",Bh:"AUTO_QUALITY",Yh:"LANGUAGE",Rh:"EXIT_PICTURE_IN_PICTURE",xi:"REPLAY",Ei:"SKIP_TO_LIVE",pi:"PAUSE",Ri:"UNDETERMINED_LANGUAGE",ki:"OFF",wh:"AD_DURATION",ei:"MUTE",Ci:"SEEK",Qh:"EXIT_LOOP_MODE",Gi:"STATISTICS",ci:"MORE_SETTINGS",AD_PROGRESS:"AD_PROGRESS",Di:"SKIP_AD",Ph:"EXIT_FULL_SCREEN",Hh:"CAST",Gh:"CAPTIONS",ri:"PICTURE_IN_PICTURE",Vi:"VOLUME",Ai:"REWIND",
100
+ Ti:"UNRECOGNIZED_LANGUAGE",Uh:"FAST_FORWARD",xh:"AD_TIME",di:"MULTIPLE_LANGUAGES",si:"PLAY",Si:"UNMUTE",Sf:"SUBTITLE_FORCED",BACK:"BACK",Zh:"LOOP",Vh:"FULL_SCREEN",Ze:"LIVE"};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);c=b*(1-c)+c*this.h;isNaN(c)||(this.h=c,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,d=a/1E3;this.g+=b;this.h.sample(d,c);this.j.sample(d,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){var c=a.indexOf(b);-1<c&&a.splice(c,1)}function ec(a,b,c){c||(c=cc);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={Nd:d.Nd},e=a.next()){d.Nd=e.value;e=b.findIndex(function(f){return function(g){return c(f.Nd,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length}
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
+ 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
+ function uc(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,uc))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}J("shaka.text.Cue",gc);var jc="auto";
104
+ gc.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:jc};var kc="center",vc={LEFT:"left",RIGHT:"right",CENTER:kc,START:"start",END:"end"};gc.textAlign=vc;var oc="after",wc={BEFORE:"before",CENTER:"center",AFTER:oc};gc.displayAlign=wc;var hc="ltr";gc.direction={HORIZONTAL_LEFT_TO_RIGHT:hc,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var lc="horizontal-tb";gc.writingMode={HORIZONTAL_TOP_TO_BOTTOM:lc,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var mc=0;
105
+ gc.lineInterpretation={LINE_NUMBER:mc,PERCENTAGE:1};var nc="start",xc={CENTER:"center",START:nc,END:"end"};gc.lineAlign=xc;var yc={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};gc.defaultTextColor=yc;var zc={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};gc.defaultTextBackgroundColor=zc;var pc=400;gc.fontWeight={NORMAL:pc,BOLD:700};
106
+ var qc="normal",Ac={NORMAL:qc,ITALIC:"italic",OBLIQUE:"oblique"};gc.fontStyle=Ac;gc.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function ic(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Bc;this.scroll=Cc}J("shaka.text.CueRegion",ic);var Bc=1;ic.units={PX:0,PERCENTAGE:Bc,LINES:2};var Cc="";ic.scrollMode={NONE:Cc,UP:"up"};function Dc(){}function Ec(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Fc(a)==Fc(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=Gc(a),d=Gc(b),e=0;e<a.byteLength;e++)if(c[e]!=d[e])return!1;return!0}function Fc(a){return a instanceof ArrayBuffer?a:a.buffer}function Hc(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer}
107
+ function Gc(a,b,c){c=void 0===c?Infinity:c;return Ic(a,void 0===b?0:b,c,Uint8Array)}function Jc(a,b,c){c=void 0===c?Infinity:c;return Ic(a,void 0===b?0:b,c,DataView)}function Ic(a,b,c,d){var e=(a.byteOffset||0)+a.byteLength;b=Math.max(0,Math.min((a.byteOffset||0)+b,e));return new d(Fc(a),b,Math.min(b+Math.max(c,0),e)-b)}J("shaka.util.BufferUtils",Dc);Dc.toDataView=Jc;Dc.toUint8=Gc;Dc.toArrayBuffer=Hc;Dc.equal=Ec;function Kc(){}J("shaka.dependencies",Kc);Kc.has=function(a){return Lc.has(a)};Kc.add=function(a,b){if(!Mc[a])throw Error(a+" is not supported");Lc.set(a,function(){return b})};var Mc={muxjs:"muxjs"};Kc.Allowed=Mc;var Lc=new Map([["muxjs",function(){return window.muxjs}]]);function Nc(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}Nc.prototype.resolve=function(){};Nc.prototype.reject=function(){};function Oc(a){this.h=a;this.g=void 0}Oc.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Pc(a){this.h=a;this.g=null}Pc.prototype.T=function(a){var b=this;this.stop();var c=!0,d=null;this.g=function(){window.clearTimeout(d);c=!1};d=window.setTimeout(function(){c&&b.h()},1E3*a);return this};Pc.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function P(a){this.h=a;this.g=null}P.prototype.xa=function(){this.stop();this.h();return this};P.prototype.T=function(a){var b=this;this.stop();this.g=(new Pc(function(){b.h()})).T(a);return this};P.prototype.ka=function(a){var b=this;this.stop();this.g=(new Pc(function(){b.g.T(a);b.h()})).T(a);return this};P.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};J("shaka.util.Timer",P);P.prototype.stop=P.prototype.stop;P.prototype.tickEvery=P.prototype.ka;P.prototype.tickAfter=P.prototype.T;
108
+ P.prototype.tickNow=P.prototype.xa;function Qc(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function Rc(a){return""!=Tc().canPlayType(a)}function Uc(){return Vc("Xbox One")}function Wc(){return Vc("Tizen")}function Xc(){return Vc("Web0S")&&Vc("Chrome/38.0.2125.122 Safari/537.36")}function Yc(){return Vc("CrKey")}function Zc(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Wc()&&!Vc("PC=EOS")&&!$c()}function $c(){return Vc("PlayStation 4")}
109
+ function ad(){if(!Zc())return null;var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null}function Vc(a){return(navigator.userAgent||"").includes(a)}function Tc(){if(bd)return bd;cd||(cd=new P(function(){bd=null}));(bd=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(bd=document.createElement("video"));cd.T(1);return bd}var cd=null,bd=null;function dd(){}
110
+ function ed(a){if(!a)return"";a=Gc(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!$c())return a=(new TextDecoder).decode(a),a.includes("\ufffd")&&Ta('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),a;for(var b="",c=0;c<a.length;++c){var d=65533;0==(a[c]&128)?d=a[c]:a.length>=c+2&&192==(a[c]&224)&&128==(a[c+1]&192)?(d=(a[c]&31)<<6|a[c+1]&63,c+=1):a.length>=c+3&&224==(a[c]&240)&&128==(a[c+1]&192)&&128==
111
+ (a[c+2]&192)?(d=(a[c]&15)<<12|(a[c+1]&63)<<6|a[c+2]&63,c+=2):a.length>=c+4&&240==(a[c]&241)&&128==(a[c+1]&192)&&128==(a[c+2]&192)&&128==(a[c+3]&192)&&(d=(a[c]&7)<<18|(a[c+1]&63)<<12|(a[c+2]&63)<<6|a[c+3]&63,c+=3);if(65535>=d)b+=String.fromCharCode(d);else{d-=65536;var e=d&1023;b+=String.fromCharCode(55296+(d>>10));b+=String.fromCharCode(56320+e)}}return b}
112
+ function fd(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new O(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=Jc(a);for(var e=0;e<c;e++)d[e]=a.getUint16(2*e,b);return gd.value()(d)}
113
+ function hd(a){function b(d){return c.byteLength<=d||32<=c[d]&&126>=c[d]}if(!a)return"";var c=Gc(a);if(239==c[0]&&187==c[1]&&191==c[2])return ed(c);if(254==c[0]&&255==c[1])return fd(c.subarray(2),!1);if(255==c[0]&&254==c[1])return fd(c.subarray(2),!0);if(0==c[0]&&0==c[2])return fd(a,!1);if(0==c[1]&&0==c[3])return fd(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return ed(a);throw new O(2,2,2003);}
114
+ function id(a){if(window.TextEncoder&&!$c()){var b=new TextEncoder;return Hc(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 Hc(b)}function jd(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}J("shaka.util.StringUtils",dd);dd.resetFromCharCode=function(){gd.g=void 0};dd.toUTF16=jd;dd.toUTF8=id;dd.fromBytesAutoDetect=hd;dd.fromUTF16=fd;
115
+ dd.fromUTF8=ed;var gd=new Oc(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={ub:65536};0<b.ub;b={ub:b.ub},b.ub/=2)if(a(b.ub))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.ub)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.ub));return e}}(b);return null});function kd(){}function ld(a){a=Gc(a);a=gd.value()(a);return btoa(a)}function md(a,b){b=void 0==b?!0:b;var c=ld(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")}function nd(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 od(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 pd(a){var b=Gc(a);a="";b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c=c.toString(16),1==c.length&&(c="0"+c),a+=c;return a}function qd(){for(var a=Ha.apply(0,arguments),b=0,c=t(a),d=c.next();!d.done;d=c.next())b+=d.value.byteLength;b=new Uint8Array(b);c=0;a=t(a);for(d=a.next();!d.done;d=a.next())d=d.value,b.set(Gc(d),c),c+=d.byteLength;return b}J("shaka.util.Uint8ArrayUtils",kd);kd.concat=qd;kd.toHex=pd;kd.fromHex=od;kd.fromBase64=nd;kd.toBase64=md;kd.toStandardBase64=ld;function rd(){var a=this;this.A=Lc.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(qd(b.initSegment,b.data))});this.g.on("done",function(){var b={data:qd.apply(kd,ia(a.m)),captions:a.j,metadata:a.i};a.h.resolve(b);a.l=!1})}rd.prototype.destroy=function(){this.g.dispose();this.g=null;return Promise.resolve()};
117
+ function sd(a,b){if(!Lc.get("muxjs")()||!td(a))return!1;if(b)return MediaSource.isTypeSupported(ud(b,a));var c=ud("audio",a),d=ud("video",a);return MediaSource.isTypeSupported(c)||MediaSource.isTypeSupported(d)}function td(a){return"mp2t"==a.toLowerCase().split(";")[0].split("/")[1]}
118
+ function ud(a,b){var c=b.replace(/mp2t/i,"mp4");"audio"==a&&(c=c.replace("video","audio"));var d=/avc1\.(66|77|100)\.(\d+)/.exec(c);if(d){var e="avc1.",f=d[1],g=Number(d[2]);e=("66"==f?e+"4200":"77"==f?e+"4d00":e+"6400")+(g>>4).toString(16);e+=(g&15).toString(16);c=c.replace(d[0],e)}return c}function vd(a,b){a.l=!0;a.h=new Nc;a.m=[];a.j=[];a.i=[];var c=Gc(b);a.g.push(c);a.g.flush();a.l&&a.h.reject(new O(2,3,3018));return a.h};function wd(){}function xd(a,b){var c=a;b&&(c+='; codecs="'+b+'"');return c}function yd(a,b,c){a=xd(a,b);if(td(a)){if(Lc.get("muxjs")())return ud(c,a)}else if("audio"==c)return a.replace("video","audio");return a}
119
+ function zd(a){var b=Ad(a);a=b[0];b=b[1].toLowerCase();switch(!0){case "mp4a"===a&&"69"===b:case "mp4a"===a&&"6b"===b:return"mp3";case "mp4a"===a&&"66"===b:case "mp4a"===a&&"67"===b:case "mp4a"===a&&"68"===b:case "mp4a"===a&&"40.2"===b:case "mp4a"===a&&"40.02"===b:case "mp4a"===a&&"40.5"===b:case "mp4a"===a&&"40.05"===b:case "mp4a"===a&&"40.29"===b:case "mp4a"===a&&"40.42"===b:return"aac";case "mp4a"===a&&"a5"===b:return"ac-3";case "mp4a"===a&&"a6"===b:return"ec-3";case "mp4a"===a&&"b2"===b:return"dtsx";
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 Bd(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""}function Ad(a){a=a.split(".");var b=a[0];a.shift();return[b,a.join(".")]}J("shaka.util.MimeUtils",wd);wd.getFullType=xd;
121
+ (new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");function Fd(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 Gd(a){return Hd[a]||"application/cea-608"==a||"application/cea-708"==a?!0:!1}Fd.prototype.destroy=function(){this.i=this.j=null;this.A.clear();return Promise.resolve()};
122
+ function Id(a,b,c,d){var e,f,g,h;return I(function(k){if(1==k.g)return u(k,Promise.resolve(),2);if(!a.j||!a.i)return k["return"]();if(null==c||null==d)return a.j.parseInit(Gc(b)),k["return"]();e=a.C?c:a.B;f={periodStart:a.B,segmentStart:c,segmentEnd:d,vttOffset:e};g=a.j.parseMedia(Gc(b),f);h=g.filter(function(l){return l.startTime>=a.l&&l.startTime<a.m});a.i.append(h);null==a.g&&(a.g=Math.max(c,a.l));a.h=Math.min(d,a.m);z(k)})}
123
+ Fd.prototype.remove=function(a,b){var c=this;return I(function(d){if(1==d.g)return u(d,Promise.resolve(),2);!c.i||!c.i.remove(a,b)||null==c.g||b<=c.g||a>=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&b<c.h?c.g=b:a>c.g&&b>=c.h&&(c.h=a));z(d)})};function Jd(a,b,c){a.l=b;a.m=c}function Kd(a,b,c){a.F=b;if(b=a.A.get(b))for(var d=t(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.i.append(e)}
124
+ function Ld(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.push({stream:c.stream,cue:new gc(c.startTime,c.endTime,c.text)});return b}function Md(a,b,c){b.startTime+=c;b.endTime+=c;b=t(b.nestedCues);for(var d=b.next();!d.done;d=b.next())Md(a,d.value,c)}
125
+ function Nd(a,b,c,d,e){var f=c+" "+d,g=new Map;b=t(b);for(var h=b.next();!h.done;h=b.next()){var k=h.value;h=k.stream;k=k.cue;g.has(h)||g.set(h,new Map);g.get(h).has(f)||g.get(h).set(f,[]);Md(a,k,e);k.startTime>=a.l&&k.startTime<a.m&&(g.get(h).get(f).push(k),h==a.F&&a.i.append([k]))}e=t(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.A.has(f)||a.A.set(f,new Map),b=t(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),a.A.get(f).set(h,k);a.g=null==a.g?Math.max(c,
126
+ a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m))}J("shaka.text.TextEngine",Fd);Fd.prototype.destroy=Fd.prototype.destroy;Fd.findParser=function(a){return Hd[a]};Fd.unregisterParser=function(a){delete Hd[a]};Fd.registerParser=function(a,b){Hd[a]=b};var Hd={};function Od(a,b,c,d,e){var f=a.variants;if(b.length||c.length)f=Pd(f,b,c);f=Qd(f,d);b=Rd(f);b=Sd(b);var g=Td(b,e);a.variants=a.variants.filter(function(h){return Ud(h)==g?!0:!1})}function Rd(a){var b=new db;a=t(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=Ud(c);b.push(d,c)}return b}
127
+ function Sd(a){var b=0,c=new Map,d=a.size();eb(a,function(e,f){for(var g=t(f),h=g.next();!h.done;h=g.next()){h=h.value;var k=h.video;if(k&&k.width&&k.height){k=k.width*k.height*(k.frameRate||1);c.has(k)||c.set(k,new db);var l=c.get(k);l.push(e,h);l.size()===d&&(b=Math.max(b,k))}}});return b?c.get(b):a}
128
+ function Pd(a,b,c){var d={};b=t(b);for(var e=b.next();!e.done;d={Yd:d.Yd},e=b.next())if(d.Yd=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.Yd)}}(d)),e.length){a=e;break}d={};c=t(c);for(b=c.next();!b.done;d={Kd:d.Kd},b=c.next())if(d.Kd=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.Kd)}}(d)),b.length){a=b;break}return a}
129
+ function Td(a,b){for(var c=t(b),d=c.next();!d.done;d=c.next())if(d=d.value,d==Vd||d==Wd){if(a=Xd(a,d),1==a.size())return a.keys()[0]}else if(d==Yd)break;return Zd(a)}function Xd(a,b){var c=0,d=new db;eb(a,function(e,f){for(var g=0,h=0,k=t(f),l=k.next();!l.done;l=k.next())l=l.value,l.decodingInfos.length&&(g+=l.decodingInfos[0][b]?1:0,h++);g/=h;g>c?(d.g={},d.push(e,f),c=g):g==c&&d.push(e,f)});return d}
130
+ function Zd(a){var b="",c=Infinity;eb(a,function(d,e){for(var f=0,g=0,h=t(e),k=h.next();!k.done;k=h.next())f+=k.value.bandwidth||0,++g;f/=g;f<c&&(b=d,c=f)});return b}function Ud(a){var b="";a.video&&(b=zd(a.video.codecs));var c="";a.audio&&(c=zd(a.audio.codecs));return b+"-"+c}function $d(a,b,c){a.variants=a.variants.filter(function(d){return ae(d,b,c)})}
131
+ function ae(a,b,c){function d(f,g,h){return f>=g&&f<=h}var e=a.video;if(0!=a.disabledUntilTime){if(a.disabledUntilTime>Date.now()/1E3)return!1;a.disabledUntilTime=0}return e&&e.width&&e.height&&(!d(e.width,b.minWidth,Math.min(b.maxWidth,c.width))||!d(e.height,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))||a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0}
132
+ function be(a,b,c){var d=!1;a=t(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.allowedByApplication;e.allowedByApplication=ae(e,b,c);f!=e.allowedByApplication&&(d=!0)}return d}function ce(a,b){return I(function(c){if(1==c.g)return u(c,de(b,0<b.offlineSessionIds.length),2);ee(a,b);fe(b);return u(c,ge(b),0)})}
133
+ function de(a,b){return I(function(c){if(1==c.g)return u(c,he(a.variants,b,!1),2);a.variants=a.variants.filter(function(d){var e=d.video;if(e){var f=ie(e.codecs);if(e.codecs.includes(",")){var g=e.codecs.split(",");f=Fb("video",g);g=Fb("audio",g);g=yd(e.mimeType,g,"audio");if(!MediaSource.isTypeSupported(g))return!1}f=yd(e.mimeType,f,"video");if(!MediaSource.isTypeSupported(f))return!1}if(f=d.audio)if(g=je(f.codecs),f=yd(f.mimeType,g,"audio"),!MediaSource.isTypeSupported(f))return!1;if(Uc()&&e&&(e.width&&
134
+ 1920<e.width||e.height&&1080<e.height)&&e.codecs.includes("avc1."))return Ya(ke(d)),!1;(e=d.decodingInfos.some(function(h){return h.supported}))||Ya(ke(d));return e});z(c)})}
135
+ function he(a,b,c){var d,e,f,g,h,k,l,m,n,p,q;return I(function(w){if(d=a.some(function(y){return y.decodingInfos.length}))return w["return"]();e=navigator.mediaCapabilities;f=[];g=function(y,x){var v;return I(function(D){if(1==D.g)return A(D,2),u(D,e.decodingInfo(x),4);if(2!=D.g)return v=D.h,y.decodingInfos.push(v),va(D,0);F(D);JSON.stringify(x);z(D)})};h=t(a);for(k=h.next();!k.done;k=h.next())for(l=k.value,m=le(l,b,c),n=t(m),p=n.next();!p.done;p=n.next())q=p.value,f.push(g(l,q));return u(w,Promise.all(f),
132
136
  0)})}
133
- 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=kd(e.mimeType,g,"audio");c.audio={contentType:g,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1}}f=he(f);f=kd(e.mimeType,f,"video");c.video={contentType:f,width:e.width||1,height:e.height||1,bitrate:e.bandwidth||a.bandwidth||1,framerate:e.frameRate||1};if(e.hdr)switch(e.hdr){case "SDR":c.video.transferFunction="srgb";
134
- break;case "PQ":c.video.transferFunction="pq";break;case "HLG":c.video.transferFunction="hlg"}}d&&(f=ie(d.codecs),f=kd(d.mimeType,f,"audio"),c.audio={contentType:f,channels:d.channelsCount||2,bitrate:d.bandwidth||a.bandwidth||1,samplerate:d.audioSamplingRate||1,spatialRendering:d.spatialAudio});g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return[c];a=[];f=new Map;g=t(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;f.get(k.keySystem)||f.set(k.keySystem,[]);
135
- f.get(k.keySystem).push(k)}g=b?"required":"optional";b=b?["persistent-license"]:["temporary"];k=t(f.keys());for(var l=k.next();!l.done;l=k.next()){var m=l.value;l=Object.assign({},c);var n=f.get(m);m={keySystem:m,initDataType:"cenc",persistentState:g,distinctiveIdentifier:"optional",sessionTypes:b};n=t(n);for(h=n.next();!h.done;h=n.next()){h=h.value;if(h.initData&&h.initData.length){for(var p=new Set,q=t(h.initData),x=q.next();!x.done;x=q.next())p.add(x.value.initDataType);m.initDataType=h.initData[0].initDataType}h.distinctiveIdentifierRequired&&
136
- (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 Hd()?"ac-3"==a.toLowerCase()?"ec-3":a:a}
137
- function he(a){return"vp9"==a?"vp09.00.10.08":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 pd(jd(b.mimeType,b.codecs))})}
138
- function fe(a){var b,c,d,e,f,g,h,k;return I(function(l){switch(l.g){case 1:b=[],c=t(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 u(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,z(l)}})}
139
- 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}
140
- 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 n=t(b.roles),p=n.next();!p.done;p=n.next())m.add(p.value);if(c)for(n=t(c.roles),p=n.next();!p.done;p=n.next())m.add(p.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,
137
+ function le(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=ie(f);g=Fb("audio",g);g=yd(e.mimeType,g,"audio");c.audio={contentType:g,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1}}f=ie(f);f=yd(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
+ break;case "PQ":c.video.transferFunction="pq";break;case "HLG":c.video.transferFunction="hlg"}}d&&(f=je(d.codecs),f=yd(d.mimeType,f,"audio"),c.audio={contentType:f,channels:d.channelsCount||2,bitrate:d.bandwidth||a.bandwidth||1,samplerate:d.audioSamplingRate||1,spatialRendering:d.spatialAudio});g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return[c];a=[];f=new Map;g=t(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;f.get(k.keySystem)||f.set(k.keySystem,[]);
139
+ f.get(k.keySystem).push(k)}g=b?"required":"optional";b=b?["persistent-license"]:["temporary"];k=t(f.keys());for(var l=k.next();!l.done;l=k.next()){var m=l.value;l=Object.assign({},c);var n=f.get(m);m={keySystem:m,initDataType:"cenc",persistentState:g,distinctiveIdentifier:"optional",sessionTypes:b};n=t(n);for(h=n.next();!h.done;h=n.next()){h=h.value;if(h.initData&&h.initData.length){for(var p=new Set,q=t(h.initData),w=q.next();!w.done;w=q.next())p.add(w.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 je(a){return Wc()?"ac-3"==a.toLowerCase()?"ec-3":a:a}
141
+ function ie(a){return"vp9"==a?"vp09.00.41.08":a}function ee(a,b){b.variants=b.variants.filter(function(c){var d=c.audio;c=c.video;return d&&a&&a.audio&&!me(d,a.audio)||c&&a&&a.video&&!me(c,a.video)?!1:!0})}function fe(a){a.textStreams=a.textStreams.filter(function(b){return Gd(xd(b.mimeType,b.codecs))})}
142
+ function ge(a){var b,c,d,e,f,g,h,k;return I(function(l){switch(l.g){case 1:b=[],c=t(a.imageStreams),d=c.next();case 2:if(d.done){l.D(4);break}e=d.value;f=e.mimeType;if(ne.has(f)){l.D(5);break}g=oe.get(f);if(!g){ne.set(f,!1);l.D(5);break}return u(l,pe(g),7);case 7:h=l.h,ne.set(f,h);case 5:(k=ne.get(f))&&b.push(e);d=c.next();l.D(2);break;case 4:a.imageStreams=b,z(l)}})}
143
+ function pe(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 me(a,b){return a.mimeType!=b.mimeType||a.codecs.split(".")[0]!=b.codecs.split(".")[0]?!1:!0}
144
+ function qe(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 n=t(b.roles),p=n.next();!p.done;p=n.next())m.add(p.value);if(c)for(n=t(c.roles),p=n.next();!p.done;p=n.next())m.add(p.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,
141
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,
142
- a.width=c.width||null,a.height=c.height||null,a.frameRate=c.frameRate||null,a.pixelAspectRatio=c.pixelAspectRatio||null,a.videoBandwidth=c.bandwidth||null);b&&(a.audioId=b.id,a.originalAudioId=b.originalId,a.channelsCount=b.channelsCount,a.audioSamplingRate=b.audioSamplingRate,a.audioBandwidth=b.bandwidth||null,a.label=b.label,a.audioRoles=b.roles);return a}
143
- function qe(a){return{id:a.id,active:!1,type:Ib,bandwidth:0,language:a.language,label:a.label,kind:a.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:a.codecs||null,audioCodec:null,videoCodec:null,primary:a.primary,roles:a.roles,audioRoles:null,forced:a.forced,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,
146
+ a.width=c.width||null,a.height=c.height||null,a.frameRate=c.frameRate||null,a.pixelAspectRatio=c.pixelAspectRatio||null,a.videoBandwidth=c.bandwidth||null);b&&(a.audioId=b.id,a.originalAudioId=b.originalId,a.channelsCount=b.channelsCount,a.audioSamplingRate=b.audioSamplingRate,a.audioBandwidth=b.bandwidth||null,a.spatialAudio=b.spatialAudio,a.label=b.label,a.audioRoles=b.roles);return a}
147
+ function re(a){return{id:a.id,active:!1,type:Ib,bandwidth:0,language:a.language,label:a.label,kind:a.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:a.codecs||null,audioCodec:null,videoCodec:null,primary:a.primary,roles:a.roles,audioRoles:null,forced:a.forced,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,
144
148
  originalAudioId:null,originalTextId:a.originalId,originalImageId:null}}
145
- function re(a){var b=a.width||null,c=a.height||null,d=null;a.segmentIndex&&(d=a.segmentIndex.get(0));var e=a.tilesLayout;d&&(e=d.tilesLayout||e);e&&null!=b&&(b/=Number(e.split("x")[0]));e&&null!=c&&(c/=Number(e.split("x")[1]));return{id:a.id,active:!1,type:"image",bandwidth:a.bandwidth||0,language:"",label:null,kind:null,width:b,height:c,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],
146
- audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:e||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:a.originalId}}function se(a){a.__shaka_id||(a.__shaka_id=te++);return a.__shaka_id}
147
- function ue(a){var b=ve(a);b.active="disabled"!=a.mode;b.type="text";b.originalTextId=a.id;"captions"==a.kind&&(b.mimeType="application/cea-608");a.kind&&(b.roles=[a.kind]);"forced"==a.kind&&(b.forced=!0);return b}function we(a){var b=ve(a);b.active=a.enabled;b.type="variant";b.originalAudioId=a.id;"main"==a.kind&&(b.primary=!0);a.kind&&(b.roles=[a.kind],b.audioRoles=[a.kind],b.label=a.label);return b}
148
- function ve(a){return{id:se(a),active:!1,type:"",bandwidth:0,language:Nb(a.language),label:a.label,kind:a.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,
149
- originalTextId:null,originalImageId:null}}function xe(a){return a.allowedByApplication&&a.allowedByKeySystem}function ye(a){return a.filter(function(b){return xe(b)})}
150
- function Pd(a,b){var c=a.filter(function(g){return g.audio&&g.audio.channelsCount}),d=new Map;c=t(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=e.audio.channelsCount;d.has(f)||d.set(f,[]);d.get(f).push(e)}c=Array.from(d.keys());if(0==c.length)return a;e=c.filter(function(g){return g<=b});return e.length?d.get(Math.max.apply(Math,ia(e))):d.get(Math.min.apply(Math,ia(c)))}
151
- function ze(a,b,c,d){var e=a,f=a.filter(function(k){return k.primary});f.length&&(e=f);var g=e.length?e[0].language:"";e=e.filter(function(k){return k.language==g});if(b){var h=Vb(Nb(b),a.map(function(k){return k.language}));h&&(e=a.filter(function(k){return Nb(k.language)==h}))}e=e.filter(function(k){return k.forced==d});if(c){if(a=Ae(e,c),a.length)return a}else if(a=e.filter(function(k){return 0==k.roles.length}),a.length)return a;a=e.map(function(k){return k.roles}).reduce(Ab,[]);return a.length?
152
- Ae(e,a[0]):e}function Ae(a,b){return a.filter(function(c){return c.roles.includes(b)})}function je(a){var b=[];a.audio&&b.push(Be(a.audio));a.video&&b.push(Be(a.video));return b.join(", ")}
153
- function Be(a){return"audio"==a.type?"type=audio codecs="+a.codecs+" bandwidth="+a.bandwidth+" channelsCount="+a.channelsCount+" audioSamplingRate="+a.audioSamplingRate:"video"==a.type?"type=video codecs="+a.codecs+" bandwidth="+a.bandwidth+" frameRate="+a.frameRate+" width="+a.width+" height="+a.height:"unexpected stream type"}
154
- var te=0,Ud="smooth",Vd="powerEfficient",Xd="bandwidth",me=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),ne=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function Ce(){var a=this;this.l=null;this.i=!1;this.h=new cc;navigator.connection&&navigator.connection.addEventListener("change",function(){if(a.g.useNetworkInformation&&a.i){a.h=new cc;a.g&&a.h.configure(a.g.advanced);var b=a.chooseVariant();b&&a.l(b)}});this.j=[];this.A=1;this.B=!1;this.g=this.m=null}r=Ce.prototype;r.stop=function(){this.l=null;this.i=!1;this.j=[];this.A=1;this.m=null};r.init=function(a){this.l=a};
155
- r.chooseVariant=function(){var a=Ee(this.g.restrictions,this.j),b=this.h.getBandwidthEstimate(Fe(this));this.j.length&&!a.length&&(a=Ee(null,this.j),a=[a[0]]);for(var c=a[0]||null,d=0;d<a.length;d++){for(var e=a[d],f=isNaN(this.A)?1:Math.abs(this.A),g=f*e.bandwidth/this.g.bandwidthDowngradeTarget,h={bandwidth:Infinity},k=d+1;k<a.length;k++)if(e.bandwidth!=a[k].bandwidth){h=a[k];break}f=f*h.bandwidth/this.g.bandwidthUpgradeTarget;b>=g&&b<=f&&c.bandwidth!=e.bandwidth&&(c=e)}this.m=Date.now();return c};
156
- r.enable=function(){this.i=!0};r.disable=function(){this.i=!1};r.segmentDownloaded=function(a,b){this.h.sample(a,b);if(null!=this.m&&this.i)a:{if(!this.B){var c=this.h;if(!(c.g>=c.i))break a;this.B=!0}else if(Date.now()-this.m<1E3*this.g.switchInterval)break a;c=this.chooseVariant();this.h.getBandwidthEstimate(Fe(this));c&&this.l(c)}};r.getBandwidthEstimate=function(){return this.h.getBandwidthEstimate(Fe(this))};r.setVariants=function(a){this.j=a};r.playbackRateChanged=function(a){this.A=a};
157
- r.configure=function(a){this.g=a;this.h&&this.g&&this.h.configure(this.g.advanced)};function Fe(a){var b=a.g.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&a.g.useNetworkInformation&&(b=1E6*navigator.connection.downlink);return b}function Ee(a,b){a&&(b=b.filter(function(c){return $d(c,a,{width:Infinity,height:Infinity})}));return b.sort(function(c,d){return c.bandwidth-d.bandwidth})}J("shaka.abr.SimpleAbrManager",Ce);Ce.prototype.configure=Ce.prototype.configure;
158
- Ce.prototype.playbackRateChanged=Ce.prototype.playbackRateChanged;Ce.prototype.setVariants=Ce.prototype.setVariants;Ce.prototype.getBandwidthEstimate=Ce.prototype.getBandwidthEstimate;Ce.prototype.segmentDownloaded=Ce.prototype.segmentDownloaded;Ce.prototype.disable=Ce.prototype.disable;Ce.prototype.enable=Ce.prototype.enable;Ce.prototype.chooseVariant=Ce.prototype.chooseVariant;Ce.prototype.init=Ce.prototype.init;Ce.prototype.stop=Ce.prototype.stop;function Ge(a,b){this.h=a;this.g=new Set([a]);b=b||[];for(var c=t(b),d=c.next();!d.done;d=c.next())this.add(d.value)}Ge.prototype.add=function(a){return He(this.h,a)?(this.g.add(a),!0):!1};
159
- function He(a,b){var c;if(!(c=!!a.audio!=!!b.audio||!!a.video!=!!b.video||a.language!=b.language)&&(c=a.audio&&b.audio)){c=a.audio;var d=b.audio;c=!((!(!c.channelsCount||!d.channelsCount||2<c.channelsCount||2<d.channelsCount)||c.channelsCount==d.channelsCount)&&Ie(c,d)&&Je(c.roles,d.roles))}!c&&(c=a.video&&b.video)&&(c=a.video,d=b.video,c=!(Ie(c,d)&&Je(c.roles,d.roles)));return c?!1:!0}Ge.prototype.values=function(){return this.g.values()};
160
- function Ie(a,b){if(a.mimeType!=b.mimeType)return!1;var c=a.codecs.split(",").map(function(f){return md(f)[0]}),d=b.codecs.split(",").map(function(f){return md(f)[0]});if(c.length!=d.length)return!1;c.sort();d.sort();for(var e=0;e<c.length;e++)if(c[e]!=d[e])return!1;return!0}function Je(a,b){var c=new Set(a),d=new Set(b);c["delete"]("main");d["delete"]("main");if(c.size!=d.size)return!1;c=t(c);for(var e=c.next();!e.done;e=c.next())if(!d.has(e.value))return!1;return!0};function Ke(a){this.g=a;this.h=new Le(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"")}Ke.prototype.create=function(a){var b=this,c=a.filter(function(d){return He(b.g,d)});return c.length?new Ge(c[0],c):this.h.create(a)};function Le(a,b,c,d){this.i=a;this.j=b;this.g=c;this.h=void 0===d?"":d}
161
- Le.prototype.create=function(a){var b=[];b=Me(a,this.i);var c=a.filter(function(d){return d.primary});b=b.length?b:c.length?c:a;a=Ne(b,this.j);a.length&&(b=a);this.g&&(a=Pd(b,this.g),a.length&&(b=a));this.h&&(a=Oe(b,this.h),a.length&&(b=a));a=new Ge(b[0]);b=t(b);for(c=b.next();!c.done;c=b.next())c=c.value,He(a.h,c)&&a.add(c);return a};function Me(a,b){var c=Nb(b),d=Vb(c,a.map(function(e){return Ub(e)}));return d?a.filter(function(e){return d==Ub(e)}):[]}
162
- function Ne(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):0==c.audio.roles.length:!1})}function Oe(a,b){return a.filter(function(c){return c.audio?c.audio.label.toLowerCase()==b.toLowerCase():!1})};function Pe(){this.g=Qe;this.h=(new Map).set(Qe,2).set(Re,1)}function Se(a,b,c){a.h.set(Qe,c).set(Re,b)}var Re=0,Qe=1;function Te(a,b){var c=Ue();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.A=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.m=null==a.backoffFactor?c.backoffFactor:a.backoffFactor;this.g=0;this.h=this.j;if(this.i=void 0===b?!1:b)this.g=1}
163
- function Ve(a){var b,c;return I(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new O(2,7,1010);b=a.g;a.g++;if(0==b)return d["return"]();c=a.h*(1+(2*Math.random()-1)*a.A);return u(d,new Promise(function(e){(new P(e)).T(c/1E3)}),2)}a.h*=a.m;z(d)})}function Ue(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function We(a,b){this.promise=a;this.i=b;this.g=!1}function Xe(a){return new We(Promise.reject(a),function(){return Promise.resolve()})}function Ye(){var a=Promise.reject(new O(2,7,7001));a["catch"](function(){});return new We(a,function(){return Promise.resolve()})}function Ze(a){return new We(Promise.resolve(a),function(){return Promise.resolve()})}function $e(a){return new We(a,function(){return a["catch"](function(){})})}We.prototype.abort=function(){this.g=!0;return this.i()};
164
- function af(a){return new We(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}We.prototype["finally"]=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
165
- We.prototype.na=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=bf(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Nc,g=new O(2,7,7001);this.promise.then(c(!0),c(!1));return new We(f,function(){return d()})};
166
- function bf(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}J("shaka.util.AbortableOperation",We);We.prototype.chain=We.prototype.na;We.prototype["finally"]=We.prototype["finally"];We.all=af;We.prototype.abort=We.prototype.abort;We.notAbortable=$e;We.completed=Ze;We.aborted=Ye;We.failed=Xe;function cf(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||d.buffer&&d.buffer.constructor==ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new Set;return b(a)}function df(a){var b={},c;for(c in a)b[c]=a[c];return b};function ef(){this.g=[]}function ff(a,b){a.g.push(b["finally"](function(){ec(a.g,b)}))}ef.prototype.destroy=function(){for(var a=[],b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise["catch"](function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function gf(a,b,c){fb.call(this);this.i=!1;this.m=new ef;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.B=c||null;this.A=!1}ra(gf,fb);r=gf.prototype;r.Be=function(a){this.A=a};function hf(a,b,c,d){c=c||jf;var e=kf[a];if(!e||c>=e.priority)kf[a]={priority:c,Zg:b,$g:void 0===d?!1:d}}r.ah=function(a){this.g.add(a)};r.rh=function(a){this.g["delete"](a)};r.$f=function(){this.g.clear()};r.bh=function(a){this.h.add(a)};r.sh=function(a){this.h["delete"](a)};r.ag=function(){this.h.clear()};
167
- function lf(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}r.destroy=function(){this.i=!0;this.g.clear();this.h.clear();fb.prototype.release.call(this);return this.m.destroy()};
168
- r.request=function(a,b){var c=this,d=new mf;if(this.i){var e=Promise.reject(new O(2,7,7001));e["catch"](function(){});return new nf(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?cf(b.retryParameters):Ue();b.uris=cf(b.uris);e=of(this,a,b);var f=e.na(function(){return pf(c,a,b,new Te(b.retryParameters,!1),0,null,d)}),g=f.na(function(n){return qf(c,a,n)}),h=Date.now(),k=0;e.promise.then(function(){k=Date.now()-h},function(){});
169
- var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.na(function(n){var p=Date.now()-l,q=n.response;q.timeMs+=k;q.timeMs+=p;n.Lg||!c.l||q.fromCache||a!=rf||c.l(q.timeMs,q.data.byteLength);return q},function(n){n&&(n.severity=2);throw n;});e=new nf(m.promise,function(){return m.abort()},d);ff(this.m,e);return e};
170
- function of(a,b,c){var d=Ze(void 0),e={};a=t(a.g);for(var f=a.next();!f.done;e={Sd:e.Sd},f=a.next())e.Sd=f.value,d=d.na(function(g){return function(){c.body&&(c.body=Hc(c.body));return g.Sd(b,c)}}(e));return d.na(void 0,function(g){if(g instanceof O&&7001==g.code)throw g;throw new O(2,1,1006,g);})}
171
- function pf(a,b,c,d,e,f,g){a.A&&(c.uris[e]=c.uris[e].replace("http://","https://"));var h=new lb(c.uris[e]),k=h.Ya,l=!1;k||(k=location.protocol,k=k.slice(0,-1),mb(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=kf[k])?k.Zg:null;if(!m)return Xe(new O(2,1,1E3,h));var n=k.$g,p=null,q=null,x=!1,w=!1,v;return $e(Ve(d)).na(function(){if(a.i)return Ye();v=Date.now();var y=m(c.uris[e],c,b,function(B,G,E){p&&p.stop();q&&q.T(C/1E3);a.l&&b==rf&&(a.l(B,G),l=!0,g.g=E)},function(B){a.j&&a.j(B,c,b);w=!0});
172
- if(!n)return y;var D=c.retryParameters.connectionTimeout;D&&(p=new P(function(){x=!0;y.abort()}),p.T(D/1E3));var C=c.retryParameters.stallTimeout;C&&(q=new P(function(){x=!0;y.abort()}));return y}).na(function(y){p&&p.stop();q&&q.stop();void 0==y.timeMs&&(y.timeMs=Date.now()-v);var D={response:y,Lg:l};!w&&a.j&&a.j(y.headers,c,b);return D},function(y){p&&p.stop();q&&q.stop();if(a.B){var D=null,C=0;y instanceof O&&(D=y,1001==y.code&&(C=y.data[1]));a.B(c,D,C,x)}if(a.i)return Ye();x&&(y=new O(1,1,1003,
173
- c.uris[e],b));if(y instanceof O){if(7001==y.code)throw y;if(1010==y.code)throw f;if(1==y.severity)return D=(new Map).set("error",y),D=new M("retry",D),a.dispatchEvent(D),e=(e+1)%c.uris.length,pf(a,b,c,d,e,y,g)}throw y;})}
174
- function qf(a,b,c){var d=Ze(void 0),e={};a=t(a.h);for(var f=a.next();!f.done;e={Td:e.Td},f=a.next())e.Td=f.value,d=d.na(function(g){return function(){var h=c.response;h.data&&(h.data=Hc(h.data));return g.Td(b,h)}}(e));return d.na(function(){return c},function(g){var h=2;if(g instanceof O){if(7001==g.code)throw g;h=g.severity}throw new O(h,1,1007,g);})}J("shaka.net.NetworkingEngine",gf);gf.prototype.request=gf.prototype.request;gf.prototype.destroy=gf.prototype.destroy;gf.makeRequest=lf;
175
- gf.defaultRetryParameters=function(){return Ue()};gf.prototype.clearAllResponseFilters=gf.prototype.ag;gf.prototype.unregisterResponseFilter=gf.prototype.sh;gf.prototype.registerResponseFilter=gf.prototype.bh;gf.prototype.clearAllRequestFilters=gf.prototype.$f;gf.prototype.unregisterRequestFilter=gf.prototype.rh;gf.prototype.registerRequestFilter=gf.prototype.ah;gf.unregisterScheme=function(a){delete kf[a]};gf.registerScheme=hf;gf.prototype.setForceHTTPS=gf.prototype.Be;function mf(){this.g=0}
176
- gf.NumBytesRemainingClass=mf;function nf(a,b,c){We.call(this,a,b);this.h=c}ra(nf,We);gf.PendingRequest=nf;var rf=1;gf.RequestType={MANIFEST:0,SEGMENT:rf,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5};var jf=3;gf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:jf};var kf={};function sf(a){this.g=!1;this.h=new Nc;this.i=a}sf.prototype.destroy=function(){var a=this;if(this.g)return this.h;this.g=!0;return this.i().then(function(){a.h.resolve()},function(){a.h.resolve()})};function tf(a,b){if(a.g){if(b instanceof O&&7003==b.code)throw b;throw new O(2,7,7003,b);}};function uf(){this.g=new db}r=uf.prototype;r.release=function(){this.Rc();this.g=null};r.o=function(a,b,c,d){this.g&&(a=new vf(a,b,c,d),this.g.push(b,a))};r.Fa=function(a,b,c,d){function e(g){f.qc(a,b,e);c(g)}var f=this;this.o(a,b,e,d)};r.qc=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.qc(),this.g.remove(b,e))}};
177
- r.Rc=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,ia(a.g[c]));a=t(b);for(b=a.next();!b.done;b=a.next())b.value.qc();this.g.g={}}};J("shaka.util.EventManager",uf);uf.prototype.removeAll=uf.prototype.Rc;uf.prototype.unlisten=uf.prototype.qc;uf.prototype.listenOnce=uf.prototype.Fa;uf.prototype.listen=uf.prototype.o;uf.prototype.release=uf.prototype.release;function vf(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=wf(a,d);this.target.addEventListener(b,c,this.g)}
178
- vf.prototype.qc=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function wf(a,b){if(void 0==b)return!1;if("boolean"==typeof b)return b;var c=new Set(["passive","capture"]);Object.keys(b).filter(function(d){return!c.has(d)});return xf(a)?b:b.capture||!1}
179
- function xf(a){var b=yf;if(void 0==b){b=!1;try{var c={},d={get:function(){b=!0;return!1}};Object.defineProperty(c,"passive",d);Object.defineProperty(c,"capture",d);d=function(){};a.addEventListener("test",d,c);a.removeEventListener("test",d,c)}catch(e){b=!1}yf=b}return b||!1}var yf=void 0;function zf(a){for(var b=new Map,c=t(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function Af(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function Bf(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;for(var c=t(a),d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;if(!b.has(d))return!1;d=b.get(d);if(d!=e||void 0==d)return!1}return!0};function Cf(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.I=new Set;this.l=this.B=null;this.ba=this.$=!1;this.J=0;this.g=null;this.A=new uf;this.i=new Map;this.F=[];this.C=new Nc;this.h=null;this.m=function(d){c.C.reject(d);a.onError(d)};this.ha=new Map;this.va=new Map;this.S=new P(function(){return Df(c)});this.M=!1;this.K=[];this.P=!1;this.aa=(new P(function(){Ef(c)})).ma(b);this.C["catch"](function(){});this.j=new sf(function(){return Ff(c)});this.X=!1;this.H=null}r=Cf.prototype;r.destroy=function(){return this.j.destroy()};
180
- function Ff(a){return I(function(b){switch(b.g){case 1:return a.A.release(),a.A=null,a.C.reject(),a.aa.stop(),a.aa=null,a.S.stop(),a.S=null,u(b,Gf(a),2);case 2:if(!a.l){b.D(3);break}A(b,4);return u(b,a.l.setMediaKeys(null),6);case 6:wa(b,5);break;case 4:F(b);case 5:a.l=null;case 3:a.g=null,a.I.clear(),a.B=null,a.F=[],a.h=null,a.m=function(){},a.G=null,a.X=!1,a.H=null,z(b)}})}r.configure=function(a){this.h=a};function Hf(a,b,c){a.ba=!0;a.F=[];a.M=c;return If(a,b)}
181
- function Jf(a,b,c){a.F=c;a.M=0<c.length;return If(a,b)}function Kf(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 Lf(a,g,[])}
182
- function If(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,x,w;return I(function(v){if(1==v.g){if(c=Mf(a))for(d=t(b),e=d.next();!e.done;e=d.next())f=e.value,f.video&&(f.video.drmInfos=[c]),f.audio&&(f.audio.drmInfos=[c]);g=b.some(function(y){return y.video&&y.video.drmInfos.length||y.audio&&y.audio.drmInfos.length?!0:!1});g||(h=zf(a.h.servers),Nf(b,h));k=t(b);for(e=k.next();!e.done;e=k.next())for(l=e.value,m=Of(l),n=t(m),p=n.next();!p.done;p=n.next())q=p.value,Pf(q,zf(a.h.servers),zf(a.h.advanced||{}),a.h.keySystemsMapping);
183
- return u(v,ge(b,a.M,a.X),2)}x=g||Object.keys(a.h.servers).length;if(!x)return a.$=!0,v["return"](Promise.resolve());w=Lf(a,void 0,b);return v["return"](g?w:w["catch"](function(){}))})}function Qf(a){var b;return I(function(c){switch(c.g){case 1:if(a.l.mediaKeys)return c["return"]();if(!a.H){c.D(2);break}return u(c,a.H,3);case 3:return c["return"]();case 2:return A(c,4),a.H=a.l.setMediaKeys(a.B),u(c,a.H,6);case 6:wa(c,5);break;case 4:b=F(c),a.m(new O(2,6,6003,b.message));case 5:tf(a.j),z(c)}})}
184
- function Rf(a,b){return I(function(c){if(1==c.g)return u(c,Qf(a),2);Sf(a,b.initDataType,Gc(b.initData));z(c)})}
185
- r.Ac=function(a){var b=this,c;return I(function(d){if(1==d.g){if(!b.B)return b.A.Fa(a,"encrypted",function(){b.m(new O(2,6,6010))}),d["return"]();b.l=a;b.A.Fa(b.l,"play",function(){for(var e=t(b.K),f=e.next();!f.done;f=e.next())Tf(b,f.value);b.P=!0;b.K=[]});"webkitCurrentPlaybackTargetIsWireless"in b.l&&b.A.o(b.l,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Gf(b)});return(c=b.g.initData.find(function(e){return 0<e.initData.length}))||window.shakaMediaKeysPolyfill||b.F.length?u(d,
186
- Qf(b),2):d.D(2)}Uf(b);c||b.F.length||b.A.o(b.l,"encrypted",function(e){return Rf(b,e)});z(d)})};
187
- function Vf(a){var b,c,d,e,f;return I(function(g){switch(g.g){case 1:if(!a.B||!a.g)return g["return"]();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.D(2);break}b=lf([a.g.serverCertificateUri],a.h.retryParameters);A(g,3);c=a.G.Qb.request(5,b);return u(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=Gc(d.data);wa(g,4);break;case 3:throw e=F(g),new O(2,6,6017,e);case 4:if(a.j.g)return g["return"]();case 2:if(!a.g.serverCertificate||!a.g.serverCertificate.length)return g["return"]();
188
- A(g,6);return u(g,a.B.setServerCertificate(a.g.serverCertificate),8);case 8:wa(g,0);break;case 6:throw f=F(g),new O(2,6,6004,f.message);}})}function Wf(a,b){var c,d,e;return I(function(f){if(1==f.g)return u(f,Xf(a,b),2);if(3!=f.g){c=f.h;if(!c)return f["return"]();d=[];if(e=a.i.get(c))e.fb=new Nc,d.push(e.fb);d.push(c.remove());return u(f,Promise.all(d),3)}a.i["delete"](c);z(f)})}
189
- function Uf(a){for(var b=(a.g?a.g.initData:[])||[],c=t(b),d=c.next();!d.done;d=c.next())d=d.value,Sf(a,d.initDataType,d.initData);c=t(a.F);for(d=c.next();!d.done;d=c.next())Xf(a,d.value);b.length||a.F.length||a.C.resolve();return a.C}function Sf(a,b,c){if(c.length){var d=a.i.values();d=t(d);for(var e=d.next();!e.done;e=d.next())if(Ec(c,e.value.initData)&&!Gd("Tizen 2"))return;Yf(a,b,c,a.g.sessionType)}}function Zf(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}
190
- function $f(a){a=a.i.keys();a=gb(a,function(b){return b.sessionId});return Array.from(a)}r.Fc=function(){var a=Infinity,b=this.i.keys();b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};r.ld=function(){return Af(this.va)};
191
- function Lf(a,b,c){var d,e,f,g,h,k,l,m,n,p,q,x,w;return I(function(v){switch(v.g){case 1:d=new Map;if(c.length){e=ag(a,c,d);v.D(2);break}return u(v,bg(a,b),3);case 3:e=v.h;case 2:f=e;if(!f)throw new O(2,6,6001);tf(a.j);A(v,4);a.I.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=t(h);for(m=l.next();!m.done;m=l.next())n=m.value,a.I.add(n.contentType.toLowerCase());p=t(k);for(m=p.next();!m.done;m=p.next())q=m.value,a.I.add(q.contentType.toLowerCase());if(c.length){var y=
192
- f.keySystem;var D=d.get(f.keySystem);var C=[],B=[],G=[],E=[],H=new Set;cg(D,C,G,B,E,H);var L=a.M?"persistent-license":"temporary";y={keySystem:y,licenseServerUri:C[0],distinctiveIdentifierRequired:D[0].distinctiveIdentifierRequired,persistentStateRequired:D[0].persistentStateRequired,sessionType:D[0].sessionType||L,audioRobustness:D[0].audioRobustness||"",videoRobustness:D[0].videoRobustness||"",serverCertificate:G[0],serverCertificateUri:B[0],initData:E,keyIds:H};D=t(D);for(C=D.next();!C.done;C=
193
- D.next())C=C.value,C.distinctiveIdentifierRequired&&(y.distinctiveIdentifierRequired=C.distinctiveIdentifierRequired),C.persistentStateRequired&&(y.persistentStateRequired=C.persistentStateRequired);D=y}else D=f.keySystem,y=b.get(f.keySystem),C=[],B=[],G=[],E=[],H=new Set,cg(y.drmInfos,C,G,B,E,H),D={keySystem:D,licenseServerUri:C[0],distinctiveIdentifierRequired:"required"==y.distinctiveIdentifier,persistentStateRequired:"required"==y.persistentState,sessionType:y.sessionTypes[0]||"temporary",audioRobustness:(y.audioCapabilities?
194
- y.audioCapabilities[0].robustness:"")||"",videoRobustness:(y.videoCapabilities?y.videoCapabilities[0].robustness:"")||"",serverCertificate:G[0],serverCertificateUri:B[0],initData:E,keyIds:H};a.g=D;if(!a.g.licenseServerUri)throw new O(2,6,6012,a.g.keySystem);return u(v,f.createMediaKeys(),6);case 6:return x=v.h,tf(a.j),a.B=x,a.$=!0,u(v,Vf(a),7);case 7:tf(a.j);wa(v,0);break;case 4:w=F(v);tf(a.j,w);a.g=null;a.I.clear();if(w instanceof O)throw w;throw new O(2,6,6002,w.message);}})}
195
- function ag(a,b,c){for(var d=t(b),e=d.next();!e.done;e=d.next()){var f=t(Of(e.value));for(e=f.next();!e.done;e=f.next())e=e.value,c.has(e.keySystem)||c.set(e.keySystem,[]),c.get(e.keySystem).push(e)}if(1==c.size&&c.has(""))throw new O(2,6,6E3);d={};a=t(a.h.preferredKeySystems);for(e=a.next();!e.done;d={Qd:d.Qd},e=a.next())for(d.Qd=e.value,f=t(b),e=f.next();!e.done;e=f.next())if(e=e.value.decodingInfos.find(function(l){return function(m){return m.supported&&null!=m.keySystemAccess&&m.keySystemAccess.keySystem==
196
- l.Qd}}(d)))return e.keySystemAccess;a=t([!0,!1]);for(e=a.next();!e.done;e=a.next())for(d=e.value,f=t(b),e=f.next();!e.done;e=f.next()){var g=t(e.value.decodingInfos);for(e=g.next();!e.done;e=g.next()){var h=e.value;if(h.supported&&h.keySystemAccess){e=c.get(h.keySystemAccess.keySystem);var k=t(e);for(e=k.next();!e.done;e=k.next())if(!!e.value.licenseServerUri==d)return h.keySystemAccess}}}return null}
197
- function bg(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,x,w,v;return I(function(y){switch(y.g){case 1:if(1==b.size&&b.has(""))throw new O(2,6,6E3);d=t(b.values());for(e=d.next();!e.done;e=d.next())f=e.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;g=t(a.h.preferredKeySystems);h=g.next();case 2:if(h.done){y.D(4);break}k=h.value;if(!b.has(k)){y.D(3);break}l=b.get(k);A(y,6);return u(y,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
198
- y.h,y["return"](c);case 6:F(y);case 7:tf(a.j);case 3:h=g.next();y.D(2);break;case 4:m=t([!0,!1]),n=m.next();case 9:if(n.done){y.D(11);break}p=n.value;q=t(b.keys());h=q.next();case 12:if(h.done){n=m.next();y.D(9);break}x=h.value;w=b.get(x);v=w.drmInfos.some(function(D){return!!D.licenseServerUri});if(v!=p){y.D(13);break}A(y,15);return u(y,navigator.requestMediaKeySystemAccess(x,[w]),17);case 17:return c=y.h,y["return"](c);case 15:F(y);case 16:tf(a.j);case 13:h=q.next();y.D(12);break;case 11:return y["return"](c)}})}
199
- function Mf(a){a=zf(a.h.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=ad(f),h=ad(e);g={kty:"oct",kid:Zc(g,!1),k:Zc(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:Gc(Vc(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
149
+ function se(a){var b=a.width||null,c=a.height||null,d=null;a.segmentIndex&&(d=a.segmentIndex.get(0));var e=a.tilesLayout;d&&(e=d.tilesLayout||e);e&&null!=b&&(b/=Number(e.split("x")[0]));e&&null!=c&&(c/=Number(e.split("x")[1]));return{id:a.id,active:!1,type:"image",bandwidth:a.bandwidth||0,language:"",label:null,kind:null,width:b,height:c,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],
150
+ audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:e||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:a.originalId}}function te(a){a.__shaka_id||(a.__shaka_id=ue++);return a.__shaka_id}
151
+ function ve(a){var b=we(a);b.active="disabled"!=a.mode;b.type="text";b.originalTextId=a.id;"captions"==a.kind&&(b.mimeType="application/cea-608");a.kind&&(b.roles=[a.kind]);"forced"==a.kind&&(b.forced=!0);return b}function xe(a){var b=we(a);b.active=a.enabled;b.type="variant";b.originalAudioId=a.id;"main"==a.kind&&(b.primary=!0);a.kind&&(b.roles=[a.kind],b.audioRoles=[a.kind],b.label=a.label);return b}
152
+ function we(a){return{id:te(a),active:!1,type:"",bandwidth:0,language:Mb(a.language),label:a.label,kind:a.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,
153
+ originalTextId:null,originalImageId:null}}function ye(a){return a.allowedByApplication&&a.allowedByKeySystem}function ze(a){return a.filter(function(b){return ye(b)})}
154
+ function Qd(a,b){var c=a.filter(function(g){return g.audio&&g.audio.channelsCount}),d=new Map;c=t(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=e.audio.channelsCount;d.has(f)||d.set(f,[]);d.get(f).push(e)}c=Array.from(d.keys());if(0==c.length)return a;e=c.filter(function(g){return g<=b});return e.length?d.get(Math.max.apply(Math,ia(e))):d.get(Math.min.apply(Math,ia(c)))}
155
+ function Ae(a,b,c,d){var e=a,f=a.filter(function(k){return k.primary});f.length&&(e=f);var g=e.length?e[0].language:"";e=e.filter(function(k){return k.language==g});if(b){var h=Ub(Mb(b),a.map(function(k){return k.language}));h&&(e=a.filter(function(k){return Mb(k.language)==h}))}e=e.filter(function(k){return k.forced==d});if(c){if(a=Be(e,c),a.length)return a}else if(a=e.filter(function(k){return 0==k.roles.length}),a.length)return a;a=e.map(function(k){return k.roles}).reduce(Ab,[]);return a.length?
156
+ Be(e,a[0]):e}function Be(a,b){return a.filter(function(c){return c.roles.includes(b)})}function ke(a){var b=[];a.audio&&b.push(Ce(a.audio));a.video&&b.push(Ce(a.video));return b.join(", ")}
157
+ function Ce(a){return"audio"==a.type?"type=audio codecs="+a.codecs+" bandwidth="+a.bandwidth+" channelsCount="+a.channelsCount+" audioSamplingRate="+a.audioSamplingRate:"video"==a.type?"type=video codecs="+a.codecs+" bandwidth="+a.bandwidth+" frameRate="+a.frameRate+" width="+a.width+" height="+a.height:"unexpected stream type"}
158
+ var ue=0,Vd="smooth",Wd="powerEfficient",Yd="bandwidth",ne=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),oe=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function De(){var a=this;this.l=null;this.i=!1;this.h=new bc;navigator.connection&&navigator.connection.addEventListener("change",function(){if(a.g.useNetworkInformation&&a.i){a.h=new bc;a.g&&a.h.configure(a.g.advanced);var b=a.chooseVariant();b&&a.l(b)}});this.j=[];this.A=1;this.B=!1;this.g=this.m=null}r=De.prototype;r.stop=function(){this.l=null;this.i=!1;this.j=[];this.A=1;this.m=null};r.init=function(a){this.l=a};
159
+ r.chooseVariant=function(){var a=Fe(this.g.restrictions,this.j),b=this.h.getBandwidthEstimate(Ge(this));this.j.length&&!a.length&&(a=Fe(null,this.j),a=[a[0]]);for(var c=a[0]||null,d=0;d<a.length;d++){for(var e=a[d],f=isNaN(this.A)?1:Math.abs(this.A),g=f*e.bandwidth/this.g.bandwidthDowngradeTarget,h={bandwidth:Infinity},k=d+1;k<a.length;k++)if(e.bandwidth!=a[k].bandwidth){h=a[k];break}f=f*h.bandwidth/this.g.bandwidthUpgradeTarget;b>=g&&b<=f&&c.bandwidth!=e.bandwidth&&(c=e)}this.m=Date.now();return c};
160
+ r.enable=function(){this.i=!0};r.disable=function(){this.i=!1};r.segmentDownloaded=function(a,b){this.h.sample(a,b);if(null!=this.m&&this.i)a:{if(!this.B){var c=this.h;if(!(c.g>=c.i))break a;this.B=!0}else if(Date.now()-this.m<1E3*this.g.switchInterval)break a;c=this.chooseVariant();this.h.getBandwidthEstimate(Ge(this));c&&this.l(c)}};r.getBandwidthEstimate=function(){return this.h.getBandwidthEstimate(Ge(this))};r.setVariants=function(a){this.j=a};r.playbackRateChanged=function(a){this.A=a};
161
+ r.configure=function(a){this.g=a;this.h&&this.g&&this.h.configure(this.g.advanced)};function Ge(a){var b=a.g.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&a.g.useNetworkInformation&&(b=1E6*navigator.connection.downlink);return b}function Fe(a,b){a&&(b=b.filter(function(c){return ae(c,a,{width:Infinity,height:Infinity})}));return b.sort(function(c,d){return c.bandwidth-d.bandwidth})}J("shaka.abr.SimpleAbrManager",De);De.prototype.configure=De.prototype.configure;
162
+ De.prototype.playbackRateChanged=De.prototype.playbackRateChanged;De.prototype.setVariants=De.prototype.setVariants;De.prototype.getBandwidthEstimate=De.prototype.getBandwidthEstimate;De.prototype.segmentDownloaded=De.prototype.segmentDownloaded;De.prototype.disable=De.prototype.disable;De.prototype.enable=De.prototype.enable;De.prototype.chooseVariant=De.prototype.chooseVariant;De.prototype.init=De.prototype.init;De.prototype.stop=De.prototype.stop;function He(a,b){this.h=a;this.g=new Set([a]);b=b||[];for(var c=t(b),d=c.next();!d.done;d=c.next())this.add(d.value)}He.prototype.add=function(a){return Ie(this.h,a)?(this.g.add(a),!0):!1};
163
+ function Ie(a,b){var c;if(!(c=!!a.audio!=!!b.audio||!!a.video!=!!b.video||a.language!=b.language)&&(c=a.audio&&b.audio)){c=a.audio;var d=b.audio;c=!((!(!c.channelsCount||!d.channelsCount||2<c.channelsCount||2<d.channelsCount)||c.channelsCount==d.channelsCount)&&Je(c,d)&&Ke(c.roles,d.roles))}!c&&(c=a.video&&b.video)&&(c=a.video,d=b.video,c=!(Je(c,d)&&Ke(c.roles,d.roles)));return c?!1:!0}He.prototype.values=function(){return this.g.values()};
164
+ function Je(a,b){if(a.mimeType!=b.mimeType)return!1;var c=a.codecs.split(",").map(function(f){return Ad(f)[0]}),d=b.codecs.split(",").map(function(f){return Ad(f)[0]});if(c.length!=d.length)return!1;c.sort();d.sort();for(var e=0;e<c.length;e++)if(c[e]!=d[e])return!1;return!0}function Ke(a,b){var c=new Set(a),d=new Set(b);c["delete"]("main");d["delete"]("main");if(c.size!=d.size)return!1;c=t(c);for(var e=c.next();!e.done;e=c.next())if(!d.has(e.value))return!1;return!0};function Le(a){this.g=a;this.h=new Me(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"")}Le.prototype.create=function(a){var b=this,c=a.filter(function(d){return Ie(b.g,d)});return c.length?new He(c[0],c):this.h.create(a)};function Me(a,b,c,d){this.i=a;this.j=b;this.g=c;this.h=void 0===d?"":d}
165
+ Me.prototype.create=function(a){var b=[];b=Ne(a,this.i);var c=a.filter(function(d){return d.primary});b=b.length?b:c.length?c:a;a=Oe(b,this.j);a.length&&(b=a);this.g&&(a=Qd(b,this.g),a.length&&(b=a));this.h&&(a=Pe(b,this.h),a.length&&(b=a));a=new He(b[0]);b=t(b);for(c=b.next();!c.done;c=b.next())c=c.value,Ie(a.h,c)&&a.add(c);return a};function Ne(a,b){var c=Mb(b),d=Ub(c,a.map(function(e){return Tb(e)}));return d?a.filter(function(e){return d==Tb(e)}):[]}
166
+ function Oe(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):0==c.audio.roles.length:!1})}function Pe(a,b){return a.filter(function(c){return c.audio?c.audio.label.toLowerCase()==b.toLowerCase():!1})};function Qe(){this.g=Re;this.h=(new Map).set(Re,2).set(Se,1)}function Te(a,b,c){a.h.set(Re,c).set(Se,b)}var Se=0,Re=1;function Ue(a,b){var c=Ve();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.A=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.m=null==a.backoffFactor?c.backoffFactor:a.backoffFactor;this.g=0;this.h=this.j;if(this.i=void 0===b?!1:b)this.g=1}
167
+ function We(a){var b,c;return I(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new O(2,7,1010);b=a.g;a.g++;if(0==b)return d["return"]();c=a.h*(1+(2*Math.random()-1)*a.A);return u(d,new Promise(function(e){(new P(e)).T(c/1E3)}),2)}a.h*=a.m;z(d)})}function Ve(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function Xe(a,b){this.promise=a;this.i=b;this.g=!1}function Ye(a){return new Xe(Promise.reject(a),function(){return Promise.resolve()})}function Ze(){var a=Promise.reject(new O(2,7,7001));a["catch"](function(){});return new Xe(a,function(){return Promise.resolve()})}function $e(a){return new Xe(Promise.resolve(a),function(){return Promise.resolve()})}function af(a){return new Xe(a,function(){return a["catch"](function(){})})}Xe.prototype.abort=function(){this.g=!0;return this.i()};
168
+ function bf(a){return new Xe(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}Xe.prototype["finally"]=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this};
169
+ Xe.prototype.na=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=cf(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Nc,g=new O(2,7,7001);this.promise.then(c(!0),c(!1));return new Xe(f,function(){return d()})};
170
+ function cf(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}J("shaka.util.AbortableOperation",Xe);Xe.prototype.chain=Xe.prototype.na;Xe.prototype["finally"]=Xe.prototype["finally"];Xe.all=bf;Xe.prototype.abort=Xe.prototype.abort;Xe.notAbortable=af;Xe.completed=$e;Xe.aborted=Ze;Xe.failed=Ye;function df(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||d.buffer&&d.buffer.constructor==ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new Set;return b(a)}function ef(a){var b={},c;for(c in a)b[c]=a[c];return b};function ff(){this.g=[]}function gf(a,b){a.g.push(b["finally"](function(){dc(a.g,b)}))}ff.prototype.destroy=function(){for(var a=[],b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise["catch"](function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function hf(a,b,c){fb.call(this);this.i=!1;this.m=new ff;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.B=c||null;this.A=!1}qa(hf,fb);r=hf.prototype;r.Fe=function(a){this.A=a};function jf(a,b,c,d){c=c||kf;var e=lf[a];if(!e||c>=e.priority)lf[a]={priority:c,Yg:b,Zg:void 0===d?!1:d}}r.$g=function(a){this.g.add(a)};r.qh=function(a){this.g["delete"](a)};r.$f=function(){this.g.clear()};r.ah=function(a){this.h.add(a)};r.rh=function(a){this.h["delete"](a)};r.ag=function(){this.h.clear()};
171
+ function mf(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}r.destroy=function(){this.i=!0;this.g.clear();this.h.clear();fb.prototype.release.call(this);return this.m.destroy()};
172
+ r.request=function(a,b){var c=this,d=new nf;if(this.i){var e=Promise.reject(new O(2,7,7001));e["catch"](function(){});return new of(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?df(b.retryParameters):Ve();b.uris=df(b.uris);e=pf(this,a,b);var f=e.na(function(){return qf(c,a,b,new Ue(b.retryParameters,!1),0,null,d)}),g=f.na(function(n){return rf(c,a,n)}),h=Date.now(),k=0;e.promise.then(function(){k=Date.now()-h},function(){});
173
+ var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.na(function(n){var p=Date.now()-l,q=n.response;q.timeMs+=k;q.timeMs+=p;n.Lg||!c.l||q.fromCache||a!=sf||c.l(q.timeMs,q.data.byteLength);return q},function(n){n&&(n.severity=2);throw n;});e=new of(m.promise,function(){return m.abort()},d);gf(this.m,e);return e};
174
+ function pf(a,b,c){var d=$e(void 0),e={};a=t(a.g);for(var f=a.next();!f.done;e={Td:e.Td},f=a.next())e.Td=f.value,d=d.na(function(g){return function(){c.body&&(c.body=Hc(c.body));return g.Td(b,c)}}(e));return d.na(void 0,function(g){if(g instanceof O&&7001==g.code)throw g;throw new O(2,1,1006,g);})}
175
+ function qf(a,b,c,d,e,f,g){a.A&&(c.uris[e]=c.uris[e].replace("http://","https://"));var h=new lb(c.uris[e]),k=h.Wa,l=!1;k||(k=location.protocol,k=k.slice(0,-1),mb(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=lf[k])?k.Yg:null;if(!m)return Ye(new O(2,1,1E3,h));var n=k.Zg,p=null,q=null,w=!1,y=!1,x;return af(We(d)).na(function(){if(a.i)return Ze();x=Date.now();var v=m(c.uris[e],c,b,function(B,G,E){p&&p.stop();q&&q.T(C/1E3);a.l&&b==sf&&(a.l(B,G),l=!0,g.g=E)},function(B){a.j&&a.j(B,c,b);y=!0});
176
+ if(!n)return v;var D=c.retryParameters.connectionTimeout;D&&(p=new P(function(){w=!0;v.abort()}),p.T(D/1E3));var C=c.retryParameters.stallTimeout;C&&(q=new P(function(){w=!0;v.abort()}));return v}).na(function(v){p&&p.stop();q&&q.stop();void 0==v.timeMs&&(v.timeMs=Date.now()-x);var D={response:v,Lg:l};!y&&a.j&&a.j(v.headers,c,b);return D},function(v){p&&p.stop();q&&q.stop();if(a.B){var D=null,C=0;v instanceof O&&(D=v,1001==v.code&&(C=v.data[1]));a.B(c,D,C,w)}if(a.i)return Ze();w&&(v=new O(1,1,1003,
177
+ c.uris[e],b));if(v instanceof O){if(7001==v.code)throw v;if(1010==v.code)throw f;if(1==v.severity)return D=(new Map).set("error",v),D=new L("retry",D),a.dispatchEvent(D),e=(e+1)%c.uris.length,qf(a,b,c,d,e,v,g)}throw v;})}
178
+ function rf(a,b,c){var d=$e(void 0),e={};a=t(a.h);for(var f=a.next();!f.done;e={Ud:e.Ud},f=a.next())e.Ud=f.value,d=d.na(function(g){return function(){var h=c.response;h.data&&(h.data=Hc(h.data));return g.Ud(b,h)}}(e));return d.na(function(){return c},function(g){var h=2;if(g instanceof O){if(7001==g.code)throw g;h=g.severity}throw new O(h,1,1007,g);})}J("shaka.net.NetworkingEngine",hf);hf.prototype.request=hf.prototype.request;hf.prototype.destroy=hf.prototype.destroy;hf.makeRequest=mf;
179
+ hf.defaultRetryParameters=function(){return Ve()};hf.prototype.clearAllResponseFilters=hf.prototype.ag;hf.prototype.unregisterResponseFilter=hf.prototype.rh;hf.prototype.registerResponseFilter=hf.prototype.ah;hf.prototype.clearAllRequestFilters=hf.prototype.$f;hf.prototype.unregisterRequestFilter=hf.prototype.qh;hf.prototype.registerRequestFilter=hf.prototype.$g;hf.unregisterScheme=function(a){delete lf[a]};hf.registerScheme=jf;hf.prototype.setForceHTTPS=hf.prototype.Fe;function nf(){this.g=0}
180
+ hf.NumBytesRemainingClass=nf;function of(a,b,c){Xe.call(this,a,b);this.h=c}qa(of,Xe);hf.PendingRequest=of;var sf=1;hf.RequestType={MANIFEST:0,SEGMENT:sf,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5};var kf=3;hf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:kf};var lf={};function tf(a){this.g=!1;this.h=new Nc;this.i=a}tf.prototype.destroy=function(){var a=this;if(this.g)return this.h;this.g=!0;return this.i().then(function(){a.h.resolve()},function(){a.h.resolve()})};function uf(a,b){if(a.g){if(b instanceof O&&7003==b.code)throw b;throw new O(2,7,7003,b);}};function vf(){this.g=new db}r=vf.prototype;r.release=function(){this.Rc();this.g=null};r.o=function(a,b,c,d){this.g&&(a=new wf(a,b,c,d),this.g.push(b,a))};r.Fa=function(a,b,c,d){function e(g){f.nc(a,b,e);c(g)}var f=this;this.o(a,b,e,d)};r.nc=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.nc(),this.g.remove(b,e))}};
181
+ r.Rc=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,ia(a.g[c]));a=t(b);for(b=a.next();!b.done;b=a.next())b.value.nc();this.g.g={}}};J("shaka.util.EventManager",vf);vf.prototype.removeAll=vf.prototype.Rc;vf.prototype.unlisten=vf.prototype.nc;vf.prototype.listenOnce=vf.prototype.Fa;vf.prototype.listen=vf.prototype.o;vf.prototype.release=vf.prototype.release;function wf(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=xf(a,d);this.target.addEventListener(b,c,this.g)}
182
+ wf.prototype.nc=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function xf(a,b){if(void 0==b)return!1;if("boolean"==typeof b)return b;var c=new Set(["passive","capture"]);Object.keys(b).filter(function(d){return!c.has(d)});return yf(a)?b:b.capture||!1}
183
+ function yf(a){var b=zf;if(void 0==b){b=!1;try{var c={},d={get:function(){b=!0;return!1}};Object.defineProperty(c,"passive",d);Object.defineProperty(c,"capture",d);d=function(){};a.addEventListener("test",d,c);a.removeEventListener("test",d,c)}catch(e){b=!1}zf=b}return b||!1}var zf=void 0;function Af(a){for(var b=new Map,c=t(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function Bf(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function Cf(a,b){if(a||b){if(a&&!b||b&&!a)return!1}else return!0;if(a.size!=b.size)return!1;for(var c=t(a),d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;if(!b.has(d))return!1;d=b.get(d);if(d!=e||void 0==d)return!1}return!0};function Df(a,b){var c=this;b=void 0===b?1:b;this.G=a;this.I=new Set;this.l=this.B=null;this.ba=this.$=!1;this.J=0;this.g=null;this.A=new vf;this.i=new Map;this.F=[];this.C=new Nc;this.h=null;this.m=function(d){c.C.reject(d);a.onError(d)};this.ea=new Map;this.ua=new Map;this.S=new P(function(){return Ef(c)});this.N=!1;this.K=[];this.P=!1;this.aa=(new P(function(){Ff(c)})).ka(b);this.C["catch"](function(){});this.j=new tf(function(){return Gf(c)});this.X=!1;this.H=null}r=Df.prototype;r.destroy=function(){return this.j.destroy()};
184
+ function Gf(a){return I(function(b){switch(b.g){case 1:return a.A.release(),a.A=null,a.C.reject(),a.aa.stop(),a.aa=null,a.S.stop(),a.S=null,u(b,Hf(a),2);case 2:if(!a.l){b.D(3);break}A(b,4);return u(b,a.l.setMediaKeys(null),6);case 6:va(b,5);break;case 4:F(b);case 5:a.l=null;case 3:a.g=null,a.I.clear(),a.B=null,a.F=[],a.h=null,a.m=function(){},a.G=null,a.X=!1,a.H=null,z(b)}})}r.configure=function(a){this.h=a};function If(a,b,c){a.ba=!0;a.F=[];a.N=c;return Jf(a,b)}
185
+ function Kf(a,b,c){a.F=c;a.N=0<c.length;return Jf(a,b)}function Lf(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 Mf(a,g,[])}
186
+ function Jf(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,w,y;return I(function(x){if(1==x.g){if(c=Nf(a))for(d=t(b),e=d.next();!e.done;e=d.next())f=e.value,f.video&&(f.video.drmInfos=[c]),f.audio&&(f.audio.drmInfos=[c]);g=b.some(function(v){return v.video&&v.video.drmInfos.length||v.audio&&v.audio.drmInfos.length?!0:!1});g||(h=Af(a.h.servers),Of(b,h));k=t(b);for(e=k.next();!e.done;e=k.next())for(l=e.value,m=Pf(l),n=t(m),p=n.next();!p.done;p=n.next())q=p.value,Qf(q,Af(a.h.servers),Af(a.h.advanced||{}),a.h.keySystemsMapping);
187
+ return u(x,he(b,a.N,a.X),2)}w=g||Object.keys(a.h.servers).length;if(!w)return a.$=!0,x["return"](Promise.resolve());y=Mf(a,void 0,b);return x["return"](g?y:y["catch"](function(){}))})}function Rf(a){var b;return I(function(c){switch(c.g){case 1:if(a.l.mediaKeys)return c["return"]();if(!a.H){c.D(2);break}return u(c,a.H,3);case 3:return c["return"]();case 2:return A(c,4),a.H=a.l.setMediaKeys(a.B),u(c,a.H,6);case 6:va(c,5);break;case 4:b=F(c),a.m(new O(2,6,6003,b.message));case 5:uf(a.j),z(c)}})}
188
+ function Sf(a,b){return I(function(c){if(1==c.g)return u(c,Rf(a),2);Tf(a,b.initDataType,Gc(b.initData));z(c)})}
189
+ r.yc=function(a){var b=this,c;return I(function(d){if(1==d.g){if(!b.B)return b.A.Fa(a,"encrypted",function(){b.m(new O(2,6,6010))}),d["return"]();b.l=a;b.A.Fa(b.l,"play",function(){for(var e=t(b.K),f=e.next();!f.done;f=e.next())Uf(b,f.value);b.P=!0;b.K=[]});"webkitCurrentPlaybackTargetIsWireless"in b.l&&b.A.o(b.l,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Hf(b)});return(c=b.g.initData.find(function(e){return 0<e.initData.length}))||window.shakaMediaKeysPolyfill||b.F.length?u(d,
190
+ Rf(b),2):d.D(2)}Vf(b);c||b.F.length||b.A.o(b.l,"encrypted",function(e){return Sf(b,e)});z(d)})};
191
+ function Wf(a){var b,c,d,e,f;return I(function(g){switch(g.g){case 1:if(!a.B||!a.g)return g["return"]();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.D(2);break}b=mf([a.g.serverCertificateUri],a.h.retryParameters);A(g,3);c=a.G.Ob.request(5,b);return u(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=Gc(d.data);va(g,4);break;case 3:throw e=F(g),new O(2,6,6017,e);case 4:if(a.j.g)return g["return"]();case 2:if(!a.g.serverCertificate||!a.g.serverCertificate.length)return g["return"]();
192
+ A(g,6);return u(g,a.B.setServerCertificate(a.g.serverCertificate),8);case 8:va(g,0);break;case 6:throw f=F(g),new O(2,6,6004,f.message);}})}function Xf(a,b){var c,d,e;return I(function(f){if(1==f.g)return u(f,Yf(a,b),2);if(3!=f.g){c=f.h;if(!c)return f["return"]();d=[];if(e=a.i.get(c))e.cb=new Nc,d.push(e.cb);d.push(c.remove());return u(f,Promise.all(d),3)}a.i["delete"](c);z(f)})}
193
+ function Vf(a){for(var b=(a.g?a.g.initData:[])||[],c=t(b),d=c.next();!d.done;d=c.next())d=d.value,Tf(a,d.initDataType,d.initData);c=t(a.F);for(d=c.next();!d.done;d=c.next())Yf(a,d.value);b.length||a.F.length||a.C.resolve();return a.C}function Tf(a,b,c){if(c.length){var d=a.i.values();d=t(d);for(var e=d.next();!e.done;e=d.next())if(Ec(c,e.value.initData)&&!Vc("Tizen 2"))return;Zf(a,b,c,a.g.sessionType)}}function $f(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}
194
+ function ag(a){a=a.i.keys();a=gb(a,function(b){return b.sessionId});return Array.from(a)}r.Dc=function(){var a=Infinity,b=this.i.keys();b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};r.ld=function(){return Bf(this.ua)};
195
+ function Mf(a,b,c){var d,e,f,g,h,k,l,m,n,p,q,w,y;return I(function(x){switch(x.g){case 1:d=new Map;if(c.length){e=bg(a,c,d);x.D(2);break}return u(x,cg(a,b),3);case 3:e=x.h;case 2:f=e;if(!f)throw new O(2,6,6001);uf(a.j);A(x,4);a.I.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=t(h);for(m=l.next();!m.done;m=l.next())n=m.value,a.I.add(n.contentType.toLowerCase());p=t(k);for(m=p.next();!m.done;m=p.next())q=m.value,a.I.add(q.contentType.toLowerCase());if(c.length){var v=
196
+ f.keySystem;var D=d.get(f.keySystem);var C=[],B=[],G=[],E=[],H=new Set;dg(D,C,G,B,E,H);var N=a.N?"persistent-license":"temporary";v={keySystem:v,licenseServerUri:C[0],distinctiveIdentifierRequired:D[0].distinctiveIdentifierRequired,persistentStateRequired:D[0].persistentStateRequired,sessionType:D[0].sessionType||N,audioRobustness:D[0].audioRobustness||"",videoRobustness:D[0].videoRobustness||"",serverCertificate:G[0],serverCertificateUri:B[0],initData:E,keyIds:H};D=t(D);for(C=D.next();!C.done;C=
197
+ D.next())C=C.value,C.distinctiveIdentifierRequired&&(v.distinctiveIdentifierRequired=C.distinctiveIdentifierRequired),C.persistentStateRequired&&(v.persistentStateRequired=C.persistentStateRequired);D=v}else D=f.keySystem,v=b.get(f.keySystem),C=[],B=[],G=[],E=[],H=new Set,dg(v.drmInfos,C,G,B,E,H),D={keySystem:D,licenseServerUri:C[0],distinctiveIdentifierRequired:"required"==v.distinctiveIdentifier,persistentStateRequired:"required"==v.persistentState,sessionType:v.sessionTypes[0]||"temporary",audioRobustness:(v.audioCapabilities?
198
+ v.audioCapabilities[0].robustness:"")||"",videoRobustness:(v.videoCapabilities?v.videoCapabilities[0].robustness:"")||"",serverCertificate:G[0],serverCertificateUri:B[0],initData:E,keyIds:H};a.g=D;if(!a.g.licenseServerUri)throw new O(2,6,6012,a.g.keySystem);return u(x,f.createMediaKeys(),6);case 6:return w=x.h,uf(a.j),a.B=w,a.$=!0,u(x,Wf(a),7);case 7:uf(a.j);va(x,0);break;case 4:y=F(x);uf(a.j,y);a.g=null;a.I.clear();if(y instanceof O)throw y;throw new O(2,6,6002,y.message);}})}
199
+ function bg(a,b,c){for(var d=t(b),e=d.next();!e.done;e=d.next()){var f=t(Pf(e.value));for(e=f.next();!e.done;e=f.next())e=e.value,c.has(e.keySystem)||c.set(e.keySystem,[]),c.get(e.keySystem).push(e)}if(1==c.size&&c.has(""))throw new O(2,6,6E3);d={};a=t(a.h.preferredKeySystems);for(e=a.next();!e.done;d={Rd:d.Rd},e=a.next())for(d.Rd=e.value,f=t(b),e=f.next();!e.done;e=f.next())if(e=e.value.decodingInfos.find(function(l){return function(m){return m.supported&&null!=m.keySystemAccess&&m.keySystemAccess.keySystem==
200
+ l.Rd}}(d)))return e.keySystemAccess;a=t([!0,!1]);for(e=a.next();!e.done;e=a.next())for(d=e.value,f=t(b),e=f.next();!e.done;e=f.next()){var g=t(e.value.decodingInfos);for(e=g.next();!e.done;e=g.next()){var h=e.value;if(h.supported&&h.keySystemAccess){e=c.get(h.keySystemAccess.keySystem);var k=t(e);for(e=k.next();!e.done;e=k.next())if(!!e.value.licenseServerUri==d)return h.keySystemAccess}}}return null}
201
+ function cg(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,w,y,x;return I(function(v){switch(v.g){case 1:if(1==b.size&&b.has(""))throw new O(2,6,6E3);d=t(b.values());for(e=d.next();!e.done;e=d.next())f=e.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;g=t(a.h.preferredKeySystems);h=g.next();case 2:if(h.done){v.D(4);break}k=h.value;if(!b.has(k)){v.D(3);break}l=b.get(k);A(v,6);return u(v,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c=
202
+ v.h,v["return"](c);case 6:F(v);case 7:uf(a.j);case 3:h=g.next();v.D(2);break;case 4:m=t([!0,!1]),n=m.next();case 9:if(n.done){v.D(11);break}p=n.value;q=t(b.keys());h=q.next();case 12:if(h.done){n=m.next();v.D(9);break}w=h.value;y=b.get(w);x=y.drmInfos.some(function(D){return!!D.licenseServerUri});if(x!=p){v.D(13);break}A(v,15);return u(v,navigator.requestMediaKeySystemAccess(w,[y]),17);case 17:return c=v.h,v["return"](c);case 15:F(v);case 16:uf(a.j);case 13:h=q.next();v.D(12);break;case 11:return v["return"](c)}})}
203
+ function Nf(a){a=Af(a.h.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=od(f),h=od(e);g={kty:"oct",kid:md(g,!1),k:md(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:Gc(id(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
200
204
  serverCertificateUri:"",sessionType:"",initData:d,keyIds:new Set(c)}}
201
- function Xf(a,b){var c,d,e,f,g;return I(function(h){switch(h.g){case 1:try{c=a.B.createSession("persistent-license")}catch(k){return d=new O(2,6,6005,k.message),a.m(d),h["return"](Promise.reject(d))}a.A.o(c,"message",function(k){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.P?a.K.push(k):Tf(a,k)});a.A.o(c,"keystatuseschange",function(k){return dg(a,k)});e={initData:null,initDataType:null,loaded:!1,le:Infinity,fb:null,type:"persistent-license"};a.i.set(c,e);A(h,2);return u(h,c.load(b),4);
202
- case 4:f=h.h;tf(a.j);if(!f)return a.i["delete"](c),a.m(new O(2,6,6013)),h["return"](Promise.resolve());e.loaded=!0;eg(a)&&a.C.resolve();return h["return"](c);case 2:g=F(h),tf(a.j,g),a.i["delete"](c),a.m(new O(2,6,6005,g.message));case 3:return h["return"](Promise.resolve())}})}
203
- function Yf(a,b,c,d){try{var e=a.B.createSession(d)}catch(f){a.m(new O(2,6,6005,f.message));return}a.A.o(e,"message",function(f){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.P?a.K.push(f):Tf(a,f)});a.A.o(e,"keystatuseschange",function(f){return dg(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,le:Infinity,fb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof O||(b=new O(2,6,6016,f));a.m(b);return}a.h.logLicenseExchange&&Zc(c);e.generateRequest(b,c)["catch"](function(f){if(!a.j.g){a.i["delete"](e);
205
+ function Yf(a,b){var c,d,e,f,g;return I(function(h){switch(h.g){case 1:try{c=a.B.createSession("persistent-license")}catch(k){return d=new O(2,6,6005,k.message),a.m(d),h["return"](Promise.reject(d))}a.A.o(c,"message",function(k){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.P?a.K.push(k):Uf(a,k)});a.A.o(c,"keystatuseschange",function(k){return eg(a,k)});e={initData:null,initDataType:null,loaded:!1,qe:Infinity,cb:null,type:"persistent-license"};a.i.set(c,e);A(h,2);return u(h,c.load(b),4);
206
+ case 4:f=h.h;uf(a.j);if(!f)return a.i["delete"](c),a.m(new O(2,6,6013)),h["return"](Promise.resolve());e.loaded=!0;fg(a)&&a.C.resolve();return h["return"](c);case 2:g=F(h),uf(a.j,g),a.i["delete"](c),a.m(new O(2,6,6005,g.message));case 3:return h["return"](Promise.resolve())}})}
207
+ function Zf(a,b,c,d){try{var e=a.B.createSession(d)}catch(f){a.m(new O(2,6,6005,f.message));return}a.A.o(e,"message",function(f){a.l&&a.h.delayLicenseRequestUntilPlayed&&a.l.paused&&!a.P?a.K.push(f):Uf(a,f)});a.A.o(e,"keystatuseschange",function(f){return eg(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,qe:Infinity,cb:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof O||(b=new O(2,6,6016,f));a.m(b);return}a.h.logLicenseExchange&&md(c);e.generateRequest(b,c)["catch"](function(f){if(!a.j.g){a.i["delete"](e);
204
208
  var g=f.errorCode;if(g&&g.systemCode){var h=g.systemCode;0>h&&(h+=Math.pow(2,32));h="0x"+h.toString(16)}a.m(new O(2,6,6006,f.message,f,h))}})}
205
- function Tf(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,x,w;I(function(v){switch(v.g){case 1:return c=b.target,a.h.logLicenseExchange&&Zc(b.message),d=a.i.get(c),e=a.g.licenseServerUri,f=a.h.advanced[a.g.keySystem],"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer),g=lf([e],a.h.retryParameters),g.body=b.message,g.method="POST",g.licenseRequestType=b.messageType,g.sessionId=c.sessionId,g.drmInfo=a.g,d&&(g.initData=d.initData,g.initDataType=d.initDataType),
206
- Zf(a.g.keySystem)&&fg(g),h=Date.now(),A(v,2),l=a.G.Qb.request(2,g),u(v,l.promise,4);case 4:k=v.h;wa(v,3);break;case 2:return m=F(v),n=new O(2,6,6007,m),a.m(n),d&&d.fb&&d.fb.reject(n),v["return"]();case 3:if(a.j.g)return v["return"]();a.J+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&Zc(k.data);A(v,5);return u(v,c.update(k.data),7);case 7:wa(v,6);break;case 5:return p=F(v),q=new O(2,6,6008,p.message),a.m(q),d&&d.fb&&d.fb.reject(q),v["return"]();case 6:if(a.j.g)return v["return"]();x=new M("drmsessionupdate");
207
- a.G.onEvent(x);d&&(d.fb&&d.fb.resolve(),w=new P(function(){d.loaded=!0;eg(a)&&a.C.resolve()}),w.T(gg));z(v)}})}
208
- function fg(a){var b=Sc(a.body,!0,!0);if(b.includes("PlayReadyKeyMessage")){b=(new DOMParser).parseFromString(b,"application/xml");for(var c=t(b.getElementsByTagName("HttpHeader")),d=c.next();!d.done;d=c.next())d=d.value,a.headers[d.getElementsByTagName("name")[0].textContent]=d.getElementsByTagName("value")[0].textContent;a.body=$c(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"}
209
- function dg(a,b){var c=b.target,d=a.i.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if("string"==typeof h){var k=h;h=g;g=k}if(Zf(a.g.keySystem)&&16==h.byteLength&&navigator.userAgent.match(/Edge?\//)){k=Jc(h);var l=k.getUint32(0,!0),m=k.getUint16(4,!0),n=k.getUint16(6,!0);k.setUint32(0,l,!1);k.setUint16(4,m,!1);k.setUint16(6,n,!1)}"status-pending"!=g&&(d.loaded=!0);"expired"==g&&(e=!0);k=bd(h);a.ha.set(k,g)});var f=c.expiration-Date.now();(0>f||e&&1E3>f)&&d&&!d.fb&&(a.i["delete"](c),c.close()["catch"](function(){}));
210
- eg(a)&&(a.C.resolve(),a.S.T(hg))}function Df(a){var b=a.ha,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 O(2,6,6014));a.G.xd(Af(c))}
211
- function ig(){var a,b,c,d,e,f,g,h;return I(function(k){return 1==k.g?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.3_0 com.apple.fps.2_0 com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),b=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],c={initDataTypes:["cenc"],videoCapabilities:b},d={videoCapabilities:b,persistentState:"required",sessionTypes:["persistent-license"]},e=[d,
212
- c],f=new Map,g=function(l){var m,n,p;return I(function(q){switch(q.g){case 1:A(q,2);if("org.w3.clearkey"===l&&Kd())throw Error("Unsupported keySystem");return u(q,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=q.h,p=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,Gd("Tizen 3")&&(p=!1),f.set(l,{persistentState:p}),u(q,m.createMediaKeys(),5);case 5:wa(q,0);break;case 2:F(q),f.set(l,null),z(q)}})},h=a.map(function(l){return g(l)}),u(k,Promise.all(h),2)):k["return"](Af(f))})}
213
- function lg(a){var b;return I(function(c){if(1==c.g)return b=new Promise(function(d,e){(new P(e)).T(mg)}),A(c,2),u(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return wa(c,0);F(c);z(c)})}
214
- function Gf(a){var b;return I(function(c){b=Array.from(a.i.entries());a.i.clear();return u(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return I(function(g){if(1==g.g)return A(g,2),a.ba||a.F.includes(e.sessionId)||"persistent-license"!==f.type?u(g,lg(e),5):u(g,e.remove(),5);if(2!=g.g)return wa(g,0);F(g);z(g)})})),0)})}
215
- function ng(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=t(a),e=d.next();!e.done;e=d.next()){e=e.value;for(var f={},g=t(b),h=g.next();!h.done;f={Wa:f.Wa},h=g.next())if(h=h.value,e.keySystem==h.keySystem){f.Wa=[];f.Wa=f.Wa.concat(e.initData||[]);f.Wa=f.Wa.concat(h.initData||[]);f.Wa=f.Wa.filter(function(k){return function(l,m){return void 0===l.keyId||m===k.Wa.findIndex(function(n){return n.keyId===l.keyId})}}(f));g=e.keyIds&&h.keyIds?new Set([].concat(ia(e.keyIds),ia(h.keyIds))):
209
+ function Uf(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,w,y;I(function(x){switch(x.g){case 1:return c=b.target,a.h.logLicenseExchange&&md(b.message),d=a.i.get(c),e=a.g.licenseServerUri,f=a.h.advanced[a.g.keySystem],"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer),g=mf([e],a.h.retryParameters),g.body=b.message,g.method="POST",g.licenseRequestType=b.messageType,g.sessionId=c.sessionId,g.drmInfo=a.g,d&&(g.initData=d.initData,g.initDataType=d.initDataType),
210
+ $f(a.g.keySystem)&&gg(g),h=Date.now(),A(x,2),l=a.G.Ob.request(2,g),u(x,l.promise,4);case 4:k=x.h;va(x,3);break;case 2:return m=F(x),n=new O(2,6,6007,m),a.m(n),d&&d.cb&&d.cb.reject(n),x["return"]();case 3:if(a.j.g)return x["return"]();a.J+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&md(k.data);A(x,5);return u(x,c.update(k.data),7);case 7:va(x,6);break;case 5:return p=F(x),q=new O(2,6,6008,p.message),a.m(q),d&&d.cb&&d.cb.reject(q),x["return"]();case 6:if(a.j.g)return x["return"]();w=new L("drmsessionupdate");
211
+ a.G.onEvent(w);d&&(d.cb&&d.cb.resolve(),y=new P(function(){d.loaded=!0;fg(a)&&a.C.resolve()}),y.T(hg));z(x)}})}
212
+ function gg(a){var b=fd(a.body,!0,!0);if(b.includes("PlayReadyKeyMessage")){b=(new DOMParser).parseFromString(b,"application/xml");for(var c=t(b.getElementsByTagName("HttpHeader")),d=c.next();!d.done;d=c.next())d=d.value,a.headers[d.getElementsByTagName("name")[0].textContent]=d.getElementsByTagName("value")[0].textContent;a.body=nd(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"}
213
+ function eg(a,b){var c=b.target,d=a.i.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if("string"==typeof h){var k=h;h=g;g=k}if($f(a.g.keySystem)&&16==h.byteLength&&(navigator.userAgent.match(/Edge?\//)||$c())){k=Jc(h);var l=k.getUint32(0,!0),m=k.getUint16(4,!0),n=k.getUint16(6,!0);k.setUint32(0,l,!1);k.setUint16(4,m,!1);k.setUint16(6,n,!1)}"status-pending"!=g&&(d.loaded=!0);"expired"==g&&(e=!0);k=pd(h);a.ea.set(k,g)});var f=c.expiration-Date.now();(0>f||e&&1E3>f)&&d&&!d.cb&&(a.i["delete"](c),c.close()["catch"](function(){}));
214
+ fg(a)&&(a.C.resolve(),a.S.T(ig))}function Ef(a){var b=a.ea,c=a.ua;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.m(new O(2,6,6014));a.G.xd(Bf(c))}
215
+ function lg(){var a,b,c,d,e,f,g,h;return I(function(k){return 1==k.g?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.3_0 com.apple.fps.2_0 com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),b=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],c={initDataTypes:["cenc"],videoCapabilities:b},d={videoCapabilities:b,persistentState:"required",sessionTypes:["persistent-license"]},e=[d,
216
+ c],f=new Map,g=function(l){var m,n,p;return I(function(q){switch(q.g){case 1:A(q,2);if("org.w3.clearkey"===l&&ad())throw Error("Unsupported keySystem");return u(q,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=q.h,p=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,Vc("Tizen 3")&&(p=!1),f.set(l,{persistentState:p}),u(q,m.createMediaKeys(),5);case 5:va(q,0);break;case 2:F(q),f.set(l,null),z(q)}})},h=a.map(function(l){return g(l)}),u(k,Promise.all(h),2)):k["return"](Bf(f))})}
217
+ function mg(a){var b;return I(function(c){if(1==c.g)return b=new Promise(function(d,e){(new P(e)).T(ng)}),A(c,2),u(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return va(c,0);F(c);z(c)})}
218
+ function Hf(a){var b;return I(function(c){b=Array.from(a.i.entries());a.i.clear();return u(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return I(function(g){if(1==g.g)return A(g,2),a.ba||a.F.includes(e.sessionId)||"persistent-license"!==f.type?u(g,mg(e),5):u(g,e.remove(),5);if(2!=g.g)return va(g,0);F(g);z(g)})})),0)})}
219
+ function og(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=t(a),e=d.next();!e.done;e=d.next()){e=e.value;for(var f={},g=t(b),h=g.next();!h.done;f={Ua:f.Ua},h=g.next())if(h=h.value,e.keySystem==h.keySystem){f.Ua=[];f.Ua=f.Ua.concat(e.initData||[]);f.Ua=f.Ua.concat(h.initData||[]);f.Ua=f.Ua.filter(function(k){return function(l,m){return void 0===l.keyId||m===k.Ua.findIndex(function(n){return n.keyId===l.keyId})}}(f));g=e.keyIds&&h.keyIds?new Set([].concat(ia(e.keyIds),ia(h.keyIds))):
216
220
  e.keyIds||h.keyIds;c.push({keySystem:e.keySystem,licenseServerUri:e.licenseServerUri||h.licenseServerUri,distinctiveIdentifierRequired:e.distinctiveIdentifierRequired||h.distinctiveIdentifierRequired,persistentStateRequired:e.persistentStateRequired||h.persistentStateRequired,videoRobustness:e.videoRobustness||h.videoRobustness,audioRobustness:e.audioRobustness||h.audioRobustness,serverCertificate:e.serverCertificate||h.serverCertificate,serverCertificateUri:e.serverCertificateUri||h.serverCertificateUri,
217
- initData:f.Wa,keyIds:g});break}}return c}function Of(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function Ef(a){a.i.forEach(function(b,c){var d=b.le,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.le=e)})}function eg(a){a=a.i.values();return hb(a,function(b){return b.loaded})}
218
- function Nf(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});for(var d=t(a),e=d.next();!e.done;e=d.next())e=e.value,e.video&&(e.video.drmInfos=c),e.audio&&(e.audio.drmInfos=c)}
219
- function cg(a,b,c,d,e,f){var g={};a=t(a);for(var h=a.next();!h.done;g={Ha:g.Ha},h=a.next()){g.Ha=h.value;b.includes(g.Ha.licenseServerUri)||b.push(g.Ha.licenseServerUri);d.includes(g.Ha.serverCertificateUri)||d.push(g.Ha.serverCertificateUri);g.Ha.serverCertificate&&(c.some(function(m){return function(n){return Ec(n,m.Ha.serverCertificate)}}(g))||c.push(g.Ha.serverCertificate));if(g.Ha.initData){h={};for(var k=t(g.Ha.initData),l=k.next();!l.done;h={Yc:h.Yc},l=k.next())h.Yc=l.value,e.some(function(m){return function(n){var p=
221
+ initData:f.Ua,keyIds:g});break}}return c}function Pf(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function Ff(a){a.i.forEach(function(b,c){var d=b.qe,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.G.onExpirationUpdated(c.sessionId,e),b.qe=e)})}function fg(a){a=a.i.values();return hb(a,function(b){return b.loaded})}
222
+ function Of(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});for(var d=t(a),e=d.next();!e.done;e=d.next())e=e.value,e.video&&(e.video.drmInfos=c),e.audio&&(e.audio.drmInfos=c)}
223
+ function dg(a,b,c,d,e,f){var g={};a=t(a);for(var h=a.next();!h.done;g={Ha:g.Ha},h=a.next()){g.Ha=h.value;b.includes(g.Ha.licenseServerUri)||b.push(g.Ha.licenseServerUri);d.includes(g.Ha.serverCertificateUri)||d.push(g.Ha.serverCertificateUri);g.Ha.serverCertificate&&(c.some(function(m){return function(n){return Ec(n,m.Ha.serverCertificate)}}(g))||c.push(g.Ha.serverCertificate));if(g.Ha.initData){h={};for(var k=t(g.Ha.initData),l=k.next();!l.done;h={Yc:h.Yc},l=k.next())h.Yc=l.value,e.some(function(m){return function(n){var p=
220
224
  m.Yc;return n.keyId&&n.keyId==p.keyId?!0:n.initDataType==p.initDataType&&Ec(n.initData,p.initData)}}(h))||e.push(h.Yc)}if(g.Ha.keyIds)for(h=t(g.Ha.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}}
221
- function Pf(a,b,c,d){var e=a.keySystem;if(e&&("org.w3.clearkey"!=e||!a.licenseServerUri)){b.size&&(b=b.get(e)||"",a.licenseServerUri=b);a.keyIds||(a.keyIds=new Set);if(c=c.get(e))a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness),a.audioRobustness||(a.audioRobustness=c.audioRobustness),a.serverCertificate||(a.serverCertificate=
222
- c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);d[e]&&(a.keySystem=d[e]);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==e&&(a.keySystem="com.chromecast.playready")}}var mg=1,gg=5,hg=.5,og=new Oc(function(){return Hc(new Uint8Array([0]))});function pg(){}function qg(a,b,c,d){var e,f,g,h;return I(function(k){if(1==k.g){if(d&&(e=rg[d.toLowerCase()]))return k["return"](e);if(f=sg(a))if(g=tg[f])return k["return"](g);return d?k.D(2):u(k,ug(a,b,c),3)}if(2!=k.g&&(d=k.h)&&(h=rg[d]))return k["return"](h);throw new O(2,4,4E3,a);})}
223
- function ug(a,b,c){var d,e,f;return I(function(g){if(1==g.g)return d=lf([a],c),d.method="HEAD",u(g,b.request(0,d).promise,2);e=g.h;f=e.headers["content-type"];return g["return"](f?f.toLowerCase().split(";").shift():"")})}function sg(a){a=(new lb(a)).La.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()}J("shaka.media.ManifestParser",pg);pg.unregisterParserByMime=function(a){delete rg[a]};pg.registerParserByMime=function(a,b){rg[a]=b};
224
- pg.registerParserByExtension=function(a,b){tg[a]=b};var rg={},tg={};function vg(a,b){this.W=Jc(a);this.h=b==wg;this.g=0}r=vg.prototype;r.Da=function(){return this.g<this.W.byteLength};r.oa=function(){return this.g};r.rg=function(){return this.W.byteLength};r.sb=function(){try{var a=this.W.getUint8(this.g);this.g+=1;return a}catch(b){throw xg();}};r.pe=function(){try{var a=this.W.getUint16(this.g,this.h);this.g+=2;return a}catch(b){throw xg();}};r.R=function(){try{var a=this.W.getUint32(this.g,this.h);this.g+=4;return a}catch(b){throw xg();}};
225
- r.Df=function(){try{var a=this.W.getInt32(this.g,this.h);this.g+=4;return a}catch(b){throw xg();}};r.nc=function(){try{if(this.h){var a=this.W.getUint32(this.g,!0);var b=this.W.getUint32(this.g+4,!0)}else b=this.W.getUint32(this.g,!1),a=this.W.getUint32(this.g+4,!1)}catch(c){throw xg();}if(2097151<b)throw new O(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};r.Eb=function(a){if(this.g+a>this.W.byteLength)throw xg();var b=Gc(this.W,this.g,a);this.g+=a;return b};
226
- r.skip=function(a){if(this.g+a>this.W.byteLength)throw xg();this.g+=a};r.jh=function(a){if(this.g<a)throw xg();this.g-=a};r.seek=function(a){if(0>a||a>this.W.byteLength)throw xg();this.g=a};r.Qc=function(){for(var a=this.g;this.Da()&&0!=this.W.getUint8(this.g);)this.g+=1;a=Gc(this.W,a,this.g-a);this.g+=1;return Rc(a)};function xg(){return new O(2,3,3E3)}J("shaka.util.DataViewReader",vg);vg.prototype.readTerminatedString=vg.prototype.Qc;vg.prototype.seek=vg.prototype.seek;vg.prototype.rewind=vg.prototype.jh;
227
- vg.prototype.skip=vg.prototype.skip;vg.prototype.readBytes=vg.prototype.Eb;vg.prototype.readUint64=vg.prototype.nc;vg.prototype.readInt32=vg.prototype.Df;vg.prototype.readUint32=vg.prototype.R;vg.prototype.readUint16=vg.prototype.pe;vg.prototype.readUint8=vg.prototype.sb;vg.prototype.getLength=vg.prototype.rg;vg.prototype.getPosition=vg.prototype.oa;vg.prototype.hasMoreData=vg.prototype.Da;var wg=1;vg.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:wg};function yg(){this.i=[];this.h=[];this.g=!1}r=yg.prototype;r.box=function(a,b){var c=zg(a);this.i[c]=Ag;this.h[c]=b;return this};r.Y=function(a,b){var c=zg(a);this.i[c]=Bg;this.h[c]=b;return this};r.stop=function(){this.g=!0};r.parse=function(a,b,c){a=new vg(a,0);for(this.g=!1;a.Da()&&!this.g;)this.zd(0,a,b,c)};
228
- r.zd=function(a,b,c,d){var e=b.oa();if(d&&e+8>b.W.byteLength)this.g=!0;else{var f=b.R(),g=b.R(),h=!1;switch(f){case 0:f=b.W.byteLength-e;break;case 1:if(d&&b.oa()+8>b.W.byteLength){this.g=!0;return}f=b.nc();h=!0}var k=this.h[g];if(k){var l=null,m=null;if(this.i[g]==Bg){if(d&&b.oa()+4>b.W.byteLength){this.g=!0;return}m=b.R();l=m>>>24;m&=16777215}g=e+f;c&&g>b.W.byteLength&&(g=b.W.byteLength);d&&g>b.W.byteLength?this.g=!0:(d=g-b.oa(),b=0<d?b.Eb(d):new Uint8Array(0),b=new vg(b,0),k({parser:this,partialOkay:c||
229
- !1,version:l,flags:m,reader:b,size:f,start:e+a,has64BitSize:h}))}else b.skip(Math.min(e+f-b.oa(),b.W.byteLength-b.oa()))}};function Cg(a){for(var b=Dg(a);a.reader.Da()&&!a.parser.g;)a.parser.zd(a.start+b,a.reader,a.partialOkay)}function Eg(a){for(var b=Dg(a),c=a.reader.R(),d=0;d<c&&(a.parser.zd(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Fg(a){return function(b){a(b.reader.Eb(b.reader.W.byteLength-b.reader.oa()))}}
230
- function zg(a){var b=0;a=t(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function Gg(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function Dg(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}J("shaka.util.Mp4Parser",yg);yg.headerSize=Dg;yg.typeToString=Gg;yg.allData=Fg;yg.sampleDescription=Eg;yg.children=Cg;yg.prototype.parseNext=yg.prototype.zd;yg.prototype.parse=yg.prototype.parse;yg.prototype.stop=yg.prototype.stop;
231
- yg.prototype.fullBox=yg.prototype.Y;yg.prototype.box=yg.prototype.box;var Ag=0,Bg=1;function Hg(a){function b(){d=!0}function c(l){f.push(l);Cg(l)}a=Gc(a);var d=!1,e,f=[],g=[];(new yg).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).Y("stsd",function(l){e=l;f.push(l);Eg(l)}).Y("encv",b).Y("enca",b).Y("avc1",function(l){g.push({box:l,Oc:1701733238})}).Y("avc3",function(l){g.push({box:l,Oc:1701733238})}).Y("ac-3",function(l){g.push({box:l,Oc:1701733217})}).Y("ec-3",function(l){g.push({box:l,Oc:1701733217})}).Y("mp4a",function(l){g.push({box:l,Oc:1701733217})}).parse(a);
232
- if(d)return a;if(0==g.length||!e)throw $a(bd(a)),new O(2,3,3019);g.reverse();for(var h=t(g),k=h.next();!k.done;k=h.next())k=k.value,a=Ig(a,e,k.box,f,k.Oc);return a}
233
- function Ig(a,b,c,d,e){var f=Jg.value(),g=a.subarray(c.start,c.start+c.size),h=Jc(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Jc(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);Kg(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=Bd()?c.start:c.start+c.size;f=a.subarray(c);e.set(a.subarray(0,c));e.set(k,c);e.set(f,c+k.byteLength);a=t(d);for(d=a.next();!d.done;d=a.next())d=d.value,Kg(e,d.start,d.size+k.byteLength);k=Jc(e,b.start);b=Dg(b);a=k.getUint32(b);
234
- k.setUint32(b,a+1);return e}function Kg(a,b,c){a=Jc(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var Jg=new Oc(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function Lg(a,b,c,d,e){if(d>=e)return null;for(var f=-1,g=-1,h=0;h<c.length;h++)if(c[h].some(function(B){return null!=B&&""!=B.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(B){return null!=B&&""!=B.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=Mg(d,e,h,k,l,m);f<=g;f++){for(var p=c[f],q=-1,x=-1,w=0;w<p.length;w++)if(null!=p[w]&&""!==p[w].g.trim()){q=w;break}for(w=p.length-1;0<=w;w--)if(null!=p[w]&&""!==p[w].g.trim()){x=w;break}if(-1===
235
- q||-1===x)p=Ng(d,e),a.nestedCues.push(p);else{for(;q<=x;q++)if(w=p[q]){var v=w.l,y=w.i,D=w.j,C=w.h;if(v!=h||y!=k||D!=l||C!=m)n.payload&&a.nestedCues.push(n),n=Mg(d,e,v,y,D,C),h=v,k=y,l=D,m=C;n.payload+=w.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=Ng(d,e),a.nestedCues.push(n));n=Mg(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
236
- function Mg(a,b,c,d,e,f){a=new hc(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function Ng(a,b){var c=new hc(a,b,"");c.lineBreak=!0;return c}function Og(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function Pg(a,b){this.i=[];this.g=1;this.h=0;this.C=a;this.B=b;this.j=this.m=!1;this.l="white";this.A="black";Qg(this)}function Rg(a,b,c){return Lg(new hc(b,c,""),"CC"+(a.C<<1|a.B+1),a.i,b,c)}function Qg(a){Sg(a,0,15);a.g=1}function Tg(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case Ug:d=Vg.has(c)?Vg.get(c):String.fromCharCode(c);break;case Wg:d=Xg.get(c);break;case Yg:a.i[a.g].pop();d=Zg.get(c);break;case $g:a.i[a.g].pop(),d=ah.get(c)}d&&a.i[a.g].push(new Og(d,a.m,a.j,a.A,a.l))}}
237
- function bh(a,b,c,d){if(b>=c)for(--d;0<=d;d--)a.i[b+d]=a.i[c+d].map(function(f){return f});else for(var e=0;e<d;e++)a.i[b+e]=a.i[c+e].map(function(f){return f})}function Sg(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
238
- var Ug=0,Wg=1,Yg=2,$g=3,Vg=new Map([[39,"\u2019"],[42,"\u00e1"],[92,"\u00e9"],[92,"\u00e9"],[94,"\u00ed"],[95,"\u00f3"],[96,"\u00fa"],[123,"\u00e7"],[124,"\u00f7"],[125,"\u00d1"],[126,"\u00f1"],[127,"\u2588"]]),Xg=new Map([[48,"\u00ae"],[49,"\u00b0"],[50,"\u00bd"],[51,"\u00bf"],[52,"\u2122"],[53,"\u00a2"],[54,"\u00a3"],[55,"\u266a"],[56,"\u00e0"],[57,"\u2800"],[58,"\u00e8"],[59,"\u00e2"],[60,"\u00ea"],[61,"\u00ee"],[62,"\u00f4"],[63,"\u00fb"]]),Zg=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],
239
- [35,"\u00da"],[36,"\u00dc"],[37,"\u00fc"],[38,"\u2018"],[39,"\u00a1"],[40,"*"],[41,"'"],[42,"\u2500"],[43,"\u00a9"],[44,"\u2120"],[45,"\u00b7"],[46,"\u201c"],[47,"\u201d"],[48,"\u00c0"],[49,"\u00c2"],[50,"\u00c7"],[51,"\u00c8"],[52,"\u00ca"],[53,"\u00cb"],[54,"\u00eb"],[55,"\u00ce"],[56,"\u00cf"],[57,"\u00ef"],[58,"\u00d4"],[59,"\u00d9"],[60,"\u00f9"],[61,"\u00db"],[62,"\u00ab"],[63,"\u00bb"]]),ah=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"],
240
- [39,"\u00d5"],[40,"\u00f5"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"\u00c4"],[49,"\u00e4"],[50,"\u00d6"],[51,"\u00f6"],[52,"\u00df"],[53,"\u00a5"],[54,"\u00a4"],[55,"\u2502"],[56,"\u00c5"],[57,"\u00e5"],[58,"\u00d8"],[59,"\u00f8"],[60,"\u250c"],[61,"\u2510"],[62,"\u2514"],[63,"\u2518"]]);function ch(a,b){this.h=dh;this.A=new Pg(a,b);this.i=new Pg(a,b);this.l=new Pg(a,b);this.g=this.i;this.j=0;this.m=null}function eh(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==fh&&a.h!==gh&&(e=Rg(d,a.j,c),c=a.i,c.g=0<c.h?c.h:0,Sg(c,0,15),c=a.l,c.g=0<c.h?c.h:0,Sg(c,0,15),d.g=15);a.h=fh;d.h=b;return e}function hh(a){a.h=ih;a.g=a.l;a.g.h=0}function jh(a){Va("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.A;a.h=gh}
241
- var dh=0,ih=1,fh=3,gh=4,kh="black green blue cyan red yellow magenta black".split(" "),lh="white green blue cyan red yellow magenta white_italics".split(" ");function mh(){this.l=!1;this.F=this.H=0;this.G=nh;this.i=[];this.g=this.h=this.j=0;this.C=this.A=!1;this.B="white";this.m="black";oh(this)}function oh(a){a.i=[];for(var b=0;15>b;b++)a.i.push(ph())}function ph(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function qh(a,b){rh(a)&&(a.i[a.h][a.g]=new Og(b,a.C,a.A,a.m,a.B),a.g++)}function rh(a){var b=a.g<a.F&&0<=a.g;return a.h<a.H&&0<=a.h&&b}mh.prototype.isVisible=function(){return this.l};
242
- function sh(a,b,c){var d=new hc(a.j,b,"");d.textAlign=a.G===th?"left":a.G===uh?"right":lc;if(c=Lg(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var th=0,uh=1,nh=2;function vh(){this.i=[];this.h=null;this.g=0}function wh(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0<a.g&&(a.h.push(b),a.g--),0===a.g&&(a.i.push(new xh(a.h)),a.h=null,a.g=0))}function xh(a){this.g=0;this.h=a}xh.prototype.Da=function(){return this.g<this.h.length};xh.prototype.oa=function(){return this.g};function yh(a){if(!a.Da())throw new O(2,2,3E3);return a.h[a.g++]}xh.prototype.skip=function(a){if(this.g+a>this.h.length)throw new O(2,2,3E3);this.g+=a};function zh(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
243
- function Ah(a,b,c,d){if(128<=c&&135>=c)d=c&7,a.h[d]&&(a.g=a.h[d]);else{if(136===c){c=yh(b).value;b=null;c=t(Bh(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=sh(e,d,a.i)),oh(e);return b}if(137===c)for(b=yh(b).value,b=t(Bh(a,b)),c=b.next();!c.done;c=b.next())c=a.h[c.value],c.isVisible()||(c.j=d),c.l=!0;else{if(138===c){c=yh(b).value;b=null;c=t(Bh(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=sh(e,d,a.i)),e.l=!1;return b}if(139===c){c=yh(b).value;
244
- b=null;c=t(Bh(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=sh(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=yh(b).value,Ch(a,b,d);if(143===c)return d=Ch(a,255,d),Dh(a),d;if(144===c)b.skip(1),d=yh(b).value,a.g&&(a.g.A=0<(d&128),a.g.C=0<(d&64));else if(145===c)d=yh(b).value,c=yh(b).value,b.skip(1),a.g&&(b=Eh((c&48)>>4,(c&12)>>2,c&3),a.g.B=Eh((d&48)>>4,(d&12)>>2,d&3),a.g.m=b);else if(146===c)d=yh(b).value,b=yh(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),
245
- b.skip(1),d=yh(b).value,b.skip(1),a.g&&(a.g.G=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];if(!e){var f=new mh;f.j=d;a.h[c]=f}d=yh(b).value;yh(b);yh(b);f=yh(b).value;var g=yh(b).value;b=yh(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.C=!1,b.A=!1,b.B="white",b.m="black");b=a.h[c];b.l=0<(d&32);b.H=(f&15)+1;b.F=(g&63)+1;a.g=a.h[c]}}}return null}function Bh(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}
246
- function Ch(a,b,c){var d=null;b=t(Bh(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(d=sh(f,c,a.i));a.h[e]=null}return d}function Dh(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function Eh(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return Fh[a<<2|b<<1|c]}
247
- var Gh=new Map([[32," "],[33,"\u00a0"],[37,"\u2026"],[42,"\u0160"],[44,"\u0152"],[48,"\u2588"],[49,"\u2018"],[50,"\u2019"],[51,"\u201c"],[52,"\u201d"],[53,"\u2022"],[57,"\u2122"],[58,"\u0161"],[60,"\u0153"],[61,"\u2120"],[63,"\u0178"],[118,"\u215b"],[119,"\u215c"],[120,"\u215d"],[121,"\u215e"],[122,"\u2502"],[123,"\u2510"],[124,"\u2514"],[125,"\u2500"],[126,"\u2518"],[127,"\u250c"]]),Fh="black blue green cyan red magenta yellow white".split(" ");function Hh(){this.h=[];this.g=[];this.i=new vh;this.l=0;this.B=new Map([["CC1",new ch(0,0)],["CC2",new ch(0,1)],["CC3",new ch(1,0)],["CC4",new ch(1,1)]]);this.A=this.m=0;this.j=new Map;Ih(this)}function Ih(a){a.m=0;a.A=0;a=t(a.B.values());for(var b=a.next();!b.done;b=a.next())b=b.value,b.h=2,b.g=b.i,b.m=null,Qg(b.i),Qg(b.l),Qg(b.A)}
248
- function Jh(a){function b(f,g){return f.pts-g.pts||f.order-g.order}var c=[];a.h.sort(b);a.g.sort(b);for(var d=t(a.h),e=d.next();!e.done;e=d.next())(e=Kh(a,e.value))&&c.push(e);d=t(a.g);for(e=d.next();!e.done;e=d.next())wh(a.i,e.value);d=t(a.i.i);for(e=d.next();!e.done;e=d.next())e=Lh(a,e.value),c.push.apply(c,ia(e));a.i.i=[];a.h=[];a.g=[];return c}
249
- function Kh(a,b){var c=b.type;if(16===(b.Qa&112)){var d=b.Qa>>3&1;0===c?a.m=d:a.A=d}c=a.B.get("CC"+(c<<1|(c?a.A:a.m)+1));if(255===b.Qa&&255===b.mb||!b.Qa&&!b.mb||!Mh(b.Qa)||!Mh(b.mb))return 45<=++a.l&&Ih(a),null;a.l=0;b.Qa&=127;b.mb&=127;if(!b.Qa&&!b.mb)return null;d=null;if(16===(b.Qa&112))a:{var e=b.Qa;d=b.mb;if(c.m===(e<<8|d))c.m=null;else if(c.m=e<<8|d,16===(e&240)&&64===(d&192)){e=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(e&7)<<1|d>>5&1];var f=(d&30)>>1,g="white",h=!1;7>f?g=lh[f]:7===f&&(h=!0);
250
- d=1===(d&1);if(c.h!==gh){f=c.g;if(c.h===fh&&e!==f.g){var k=1+e-f.h;bh(f,k,1+f.g-f.h,f.h);Sg(f,0,k-1);Sg(f,e+1,15-e)}f.g=e;c.g.m=d;c.g.j=h;c.g.l=g;c.g.A="black"}}else if(17===(e&247)&&32===(d&240))c.g.m=!1,c.g.j=!1,c.g.l="white",Tg(c.g,Ug,32),g=!1,e=lh[(d&14)>>1],"white_italics"===e&&(e="white",g=!0),c.g.m=1===(d&1),c.g.j=g,c.g.l=e;else if(16===(e&247)&&32===(d&240)||23===(e&247)&&45===(d&255))g="black",0===(e&7)&&(g=kh[(d&14)>>1]),c.g.A=g;else if(17===(e&247)&&48===(d&240))Tg(c.g,Wg,d);else if(18===
251
- (e&246)&&32===(d&224))Tg(c.g,e&1?$g:Yg,d);else if(20===(e&246)&&32===(d&240)){d=b.pts;e=null;switch(b.mb){case 32:hh(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:e=eh(c,2,d);break;case 38:e=eh(c,3,d);break;case 39:e=eh(c,4,d);break;case 40:Tg(c.g,Ug,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.j=d;break;case 42:Qg(c.A);jh(c);break;case 43:jh(c);break;case 44:e=c.i;g=null;c.h!==gh&&(g=Rg(e,c.j,d));Sg(e,0,15);e=g;break;case 45:e=c.g;c.h!==fh?e=null:(g=Rg(e,c.j,d),h=e.g-e.h+1,bh(e,h-1,h,e.h),Sg(e,
252
- 0,h-1),Sg(e,e.g,15-e.g),c.j=d,e=g);break;case 46:Sg(c.l,0,15);break;case 47:e=null,c.h!==gh&&(e=Rg(c.i,c.j,d)),g=c.l,c.l=c.i,c.i=g,hh(c),c.j=d}d=e;break a}d=null}else e=b.mb,Tg(c.g,Ug,b.Qa),Tg(c.g,Ug,e);return d}
253
- function Lh(a,b){var c=[];try{for(;b.Da();){var d=yh(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=yh(b).value&63);if(0!=e){a.j.has(e)||a.j.set(e,new zh(e));for(var g=a.j.get(e),h=b.oa();b.oa()-h<f;){e=b;var k=yh(e),l=k.value,m=k.pts;if(16===l){var n=yh(e);l=l<<16|n.value}if(0<=l&&31>=l){var p=m;if(g.g){var q=g.g;e=null;switch(l){case 8:!rh(q)||0>=q.g&&0>=q.h||(0>=q.g?(q.g=q.F-1,q.h--):q.g--,q.i[q.h][q.g]=null);break;case 13:q.isVisible()&&(e=sh(q,p,g.i));if(q.h+1>=q.H){p=q;for(var x=0,w=1;15>w;w++,
254
- x++)p.i[x]=p.i[w];for(w=0;1>w;w++,x++)p.i[x]=ph()}else q.h++;q.g=0;break;case 14:q.isVisible()&&(e=sh(q,p,g.i));q.i[q.h]=ph();q.g=0;break;case 12:q.isVisible()&&(e=sh(q,p,g.i)),oh(q),p=q,p.h=0,p.g=0}var v=e}else v=null}else if(128<=l&&159>=l)v=Ah(g,e,l,m);else{if(4096<=l&&4127>=l)p=l&255,8<=p&&15>=p?e.skip(1):16<=p&&23>=p?e.skip(2):24<=p&&31>=p&&e.skip(3);else if(4224<=l&&4255>=l)p=l&255,128<=p&&135>=p?e.skip(4):136<=p&&143>=p&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?qh(g.g,"\u266a"):qh(g.g,
255
- String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&qh(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(Gh.has(e)){var y=Gh.get(e);qh(g.g,y)}else qh(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?qh(g.g,"_"):qh(g.g,"[CC]"));v=null}(e=v)&&c.push(e)}}}}catch(D){if(D instanceof O&&3E3===D.code)Va("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw D;}return c}function Mh(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function Nh(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,jf:c,dg:d}}function Oh(a,b){return{Xe:1==b?a.nc():a.R()}}function Ph(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.R()}}
256
- function Qh(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={ue:null,sampleSize:null,Ed:null};c&256&&(g.ue=a.R());c&512&&(g.sampleSize=a.R());c&1024&&a.skip(4);c&2048&&(g.Ed=0==b?a.R():a.Df());e.push(g)}return{aj:d,Ff:e}};function Rh(){this.i=new Map;this.h=this.g=0}
257
- Rh.prototype.init=function(a){var b=this,c=[],d=[];(new yg).box("moov",Cg).box("mvex",Cg).Y("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",Cg).Y("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",Cg).Y("mdhd",function(e){e=Ph(e.reader,e.version);d.push(e.timescale)}).parse(a,!0);if(!c.length||!d.length||c.length!=d.length)throw new O(2,2,2010);c.forEach(function(e,f){b.i.set(e,d[f])})};
258
- Rh.prototype.parse=function(a){var b=this,c=[],d=this.g,e=this.h,f=[],g=null,h=9E4;(new yg).box("moof",Cg).box("traf",Cg).Y("trun",function(k){f=Qh(k.reader,k.version,k.flags).Ff}).Y("tfhd",function(k){k=Nh(k.reader,k.flags);d=k.jf||b.g;e=k.dg||b.h;k=k.trackId;b.i.has(k)&&(h=b.i.get(k))}).Y("tfdt",function(k){g=Oh(k.reader,k.version).Xe}).box("mdat",function(k){if(null===g)throw new O(2,2,2010);k=k.reader;var l=g,m=h,n=d,p=e,q=f,x=0,w=p;for(q.length&&(w=q[0].sampleSize||p);k.Da();){var v=k.R();if(6==
259
- (k.sb()&31)){var y=0;q.length>x&&(y=q[x].Ed||0);y=(l+y)/m;for(var D=[],C,B=k.Eb(v-1),G=C=0;G<B.length;)2==C&&3==B[G]?(C=0,B=[].concat(ia(B)),B.splice(G,1),B=new Uint8Array(B)):0==B[G]?C++:C=0,G++;C=B;for(G=0;G<C.length;){for(B=0;255==C[G];)B+=255,G++;B+=C[G++];for(var E=0;255==C[G];)E+=255,G++;E+=C[G++];4==B&&D.push(C.subarray(G,G+E));G+=E}D=t(D);for(C=D.next();!C.done;C=D.next())c.push({Yg:C.value,pts:y})}else try{k.skip(v-1)}catch(H){break}w-=v+4;0==w&&(l=q.length>x?l+(q[x].ue||n):l+n,x++,w=q.length>
260
- x?q[x].sampleSize||p:p)}}).parse(a,!1);return c};function Sh(){this.h=new Rh;this.g=new Hh}Sh.prototype.init=function(a){this.h.init(a)};
261
- function Th(a,b){var c=a.h.parse(b);c=t(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=Gc(e.Yg);if(0<f.length&&(d=a.g,e=e.pts,f=new vg(f,0),181===f.sb()&&49===f.pe()&&1195456820===f.R()&&3===f.sb())){var g=f.sb();if(0!==(g&64)){g&=31;f.skip(1);for(var h=0;h<g;h++){var k=f.sb(),l=(k&4)>>2,m=f.sb(),n=f.sb();l&&(k&=3,0===k||1===k?d.h.push({pts:e,type:k,Qa:m,mb:n,order:d.h.length}):(d.g.push({pts:e,type:k,value:m,order:d.g.length}),d.g.push({pts:e,type:2,value:n,order:d.g.length})))}}}}return Jh(a.g)}
262
- ;function Uh(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 Vh(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Wh(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)}
263
- function Xh(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;for(var c=0,d=t(Yh(a)),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.start;f=f.end;f>b&&(c+=f-Math.max(e,b))}return c}function Zh(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=Yh(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function Yh(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 $h(a,b,c,d){var e=this;this.j=a;this.m=c;this.h={};this.M={};this.K={};this.g=null;this.H=!1;this.S=d||function(){};this.i={};this.A=new uf;this.C={};this.F=b;this.I=new Nc;this.l=ai(this,this.I);this.G=new sf(function(){return bi(e)});this.J="";this.B=!1;this.P=new Nc}function ai(a,b){var c=new MediaSource;a.A.Fa(c,"sourceopen",function(){URL.revokeObjectURL(a.J);b.resolve()});a.J=ci(c);a.j.src=a.J;return c}r=$h.prototype;r.destroy=function(){return this.G.destroy()};
264
- function bi(a){var b,c,d,e,f,g,h,k;return I(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"](Bb)),f=t(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new O(2,7,7003,void 0));a.g&&b.push(a.g.destroy());a.m&&b.push(a.m.destroy());for(k in a.C)b.push(a.C[k].destroy());return u(l,Promise.all(b),2)}a.A&&(a.A.release(),a.A=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.C={};a.F=null;a.i=
225
+ function Qf(a,b,c,d){var e=a.keySystem;if(e&&("org.w3.clearkey"!=e||!a.licenseServerUri)){b.size&&(b=b.get(e)||"",a.licenseServerUri=b);a.keyIds||(a.keyIds=new Set);if(c=c.get(e))a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness),a.audioRobustness||(a.audioRobustness=c.audioRobustness),a.serverCertificate||(a.serverCertificate=
226
+ c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);d[e]&&(a.keySystem=d[e]);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==e&&(a.keySystem="com.chromecast.playready")}}var ng=1,hg=5,ig=.5,pg=new Oc(function(){return Hc(new Uint8Array([0]))});function qg(){}function rg(a,b,c,d){var e,f,g,h;return I(function(k){if(1==k.g){if(d&&(e=sg[d.toLowerCase()]))return k["return"](e);if(f=tg(a))if(g=ug[f])return k["return"](g);return d?k.D(2):u(k,vg(a,b,c),3)}if(2!=k.g&&(d=k.h)&&(h=sg[d]))return k["return"](h);throw new O(2,4,4E3,a);})}
227
+ function vg(a,b,c){var d,e,f;return I(function(g){if(1==g.g)return d=mf([a],c),d.method="HEAD",u(g,b.request(0,d).promise,2);e=g.h;f=e.headers["content-type"];return g["return"](f?f.toLowerCase().split(";").shift():"")})}function tg(a){a=(new lb(a)).Ka.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()}J("shaka.media.ManifestParser",qg);qg.unregisterParserByMime=function(a){delete sg[a]};qg.registerParserByMime=function(a,b){sg[a]=b};
228
+ qg.registerParserByExtension=function(a,b){ug[a]=b};var sg={},ug={};function wg(a,b){this.W=Jc(a);this.h=b==xg;this.g=0}r=wg.prototype;r.Da=function(){return this.g<this.W.byteLength};r.oa=function(){return this.g};r.rg=function(){return this.W.byteLength};r.qb=function(){try{var a=this.W.getUint8(this.g);this.g+=1;return a}catch(b){throw yg();}};r.ue=function(){try{var a=this.W.getUint16(this.g,this.h);this.g+=2;return a}catch(b){throw yg();}};r.R=function(){try{var a=this.W.getUint32(this.g,this.h);this.g+=4;return a}catch(b){throw yg();}};
229
+ r.Df=function(){try{var a=this.W.getInt32(this.g,this.h);this.g+=4;return a}catch(b){throw yg();}};r.lc=function(){try{if(this.h){var a=this.W.getUint32(this.g,!0);var b=this.W.getUint32(this.g+4,!0)}else b=this.W.getUint32(this.g,!1),a=this.W.getUint32(this.g+4,!1)}catch(c){throw yg();}if(2097151<b)throw new O(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};r.Cb=function(a){if(this.g+a>this.W.byteLength)throw yg();var b=Gc(this.W,this.g,a);this.g+=a;return b};
230
+ r.skip=function(a){if(this.g+a>this.W.byteLength)throw yg();this.g+=a};r.ih=function(a){if(this.g<a)throw yg();this.g-=a};r.seek=function(a){if(0>a||a>this.W.byteLength)throw yg();this.g=a};r.Pc=function(){for(var a=this.g;this.Da()&&0!=this.W.getUint8(this.g);)this.g+=1;a=Gc(this.W,a,this.g-a);this.g+=1;return ed(a)};function yg(){return new O(2,3,3E3)}J("shaka.util.DataViewReader",wg);wg.prototype.readTerminatedString=wg.prototype.Pc;wg.prototype.seek=wg.prototype.seek;wg.prototype.rewind=wg.prototype.ih;
231
+ wg.prototype.skip=wg.prototype.skip;wg.prototype.readBytes=wg.prototype.Cb;wg.prototype.readUint64=wg.prototype.lc;wg.prototype.readInt32=wg.prototype.Df;wg.prototype.readUint32=wg.prototype.R;wg.prototype.readUint16=wg.prototype.ue;wg.prototype.readUint8=wg.prototype.qb;wg.prototype.getLength=wg.prototype.rg;wg.prototype.getPosition=wg.prototype.oa;wg.prototype.hasMoreData=wg.prototype.Da;var xg=1;wg.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:xg};function zg(){this.i=[];this.h=[];this.g=!1}r=zg.prototype;r.box=function(a,b){var c=Ag(a);this.i[c]=Bg;this.h[c]=b;return this};r.Y=function(a,b){var c=Ag(a);this.i[c]=Cg;this.h[c]=b;return this};r.stop=function(){this.g=!0};r.parse=function(a,b,c){a=new wg(a,0);for(this.g=!1;a.Da()&&!this.g;)this.zd(0,a,b,c)};
232
+ r.zd=function(a,b,c,d){var e=b.oa();if(d&&e+8>b.W.byteLength)this.g=!0;else{var f=b.R(),g=b.R(),h=!1;switch(f){case 0:f=b.W.byteLength-e;break;case 1:if(d&&b.oa()+8>b.W.byteLength){this.g=!0;return}f=b.lc();h=!0}var k=this.h[g];if(k){var l=null,m=null;if(this.i[g]==Cg){if(d&&b.oa()+4>b.W.byteLength){this.g=!0;return}m=b.R();l=m>>>24;m&=16777215}g=e+f;c&&g>b.W.byteLength&&(g=b.W.byteLength);d&&g>b.W.byteLength?this.g=!0:(d=g-b.oa(),b=0<d?b.Cb(d):new Uint8Array(0),b=new wg(b,0),k({parser:this,partialOkay:c||
233
+ !1,version:l,flags:m,reader:b,size:f,start:e+a,has64BitSize:h}))}else b.skip(Math.min(e+f-b.oa(),b.W.byteLength-b.oa()))}};function Dg(a){for(var b=Eg(a);a.reader.Da()&&!a.parser.g;)a.parser.zd(a.start+b,a.reader,a.partialOkay)}function Fg(a){for(var b=Eg(a),c=a.reader.R(),d=0;d<c&&(a.parser.zd(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function Gg(a){return function(b){a(b.reader.Cb(b.reader.W.byteLength-b.reader.oa()))}}
234
+ function Ag(a){var b=0;a=t(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function Hg(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)}function Eg(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}J("shaka.util.Mp4Parser",zg);zg.headerSize=Eg;zg.typeToString=Hg;zg.allData=Gg;zg.sampleDescription=Fg;zg.children=Dg;zg.prototype.parseNext=zg.prototype.zd;zg.prototype.parse=zg.prototype.parse;zg.prototype.stop=zg.prototype.stop;
235
+ zg.prototype.fullBox=zg.prototype.Y;zg.prototype.box=zg.prototype.box;var Bg=0,Cg=1;function Ig(a){function b(){d=!0}function c(l){f.push(l);Dg(l)}a=Gc(a);var d=!1,e,f=[],g=[];(new zg).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).Y("stsd",function(l){e=l;f.push(l);Fg(l)}).Y("encv",b).Y("enca",b).Y("avc1",function(l){g.push({box:l,Nc:1701733238})}).Y("avc3",function(l){g.push({box:l,Nc:1701733238})}).Y("ac-3",function(l){g.push({box:l,Nc:1701733217})}).Y("ec-3",function(l){g.push({box:l,Nc:1701733217})}).Y("mp4a",function(l){g.push({box:l,Nc:1701733217})}).parse(a);
236
+ if(d)return a;if(0==g.length||!e)throw $a(pd(a)),new O(2,3,3019);g.reverse();for(var h=t(g),k=h.next();!k.done;k=h.next())k=k.value,a=Jg(a,e,k.box,f,k.Nc);return a}
237
+ function Jg(a,b,c,d,e){var f=Kg.value(),g=a.subarray(c.start,c.start+c.size),h=Jc(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=Jc(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);Lg(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=Uc()?c.start:c.start+c.size;f=a.subarray(c);e.set(a.subarray(0,c));e.set(k,c);e.set(f,c+k.byteLength);a=t(d);for(d=a.next();!d.done;d=a.next())d=d.value,Lg(e,d.start,d.size+k.byteLength);k=Jc(e,b.start);b=Eg(b);a=k.getUint32(b);
238
+ k.setUint32(b,a+1);return e}function Lg(a,b,c){a=Jc(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var Kg=new Oc(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function Mg(a,b,c,d,e){if(d>=e)return null;for(var f=-1,g=-1,h=0;h<c.length;h++)if(c[h].some(function(B){return null!=B&&""!=B.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(B){return null!=B&&""!=B.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=Ng(d,e,h,k,l,m);f<=g;f++){for(var p=c[f],q=-1,w=-1,y=0;y<p.length;y++)if(null!=p[y]&&""!==p[y].g.trim()){q=y;break}for(y=p.length-1;0<=y;y--)if(null!=p[y]&&""!==p[y].g.trim()){w=y;break}if(-1===
239
+ q||-1===w)p=Og(d,e),a.nestedCues.push(p);else{for(;q<=w;q++)if(y=p[q]){var x=y.l,v=y.i,D=y.j,C=y.h;if(x!=h||v!=k||D!=l||C!=m)n.payload&&a.nestedCues.push(n),n=Ng(d,e,x,v,D,C),h=x,k=v,l=D,m=C;n.payload+=y.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=Og(d,e),a.nestedCues.push(n));n=Ng(d,e,h,k,l,m)}}return a.nestedCues.length?{cue:a,stream:b}:null}
240
+ function Ng(a,b,c,d,e,f){a=new gc(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function Og(a,b){var c=new gc(a,b,"");c.lineBreak=!0;return c}function Pg(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function Qg(a,b){this.i=[];this.g=1;this.h=0;this.C=a;this.B=b;this.j=this.m=!1;this.l="white";this.A="black";Rg(this)}function Sg(a,b,c){return Mg(new gc(b,c,""),"CC"+(a.C<<1|a.B+1),a.i,b,c)}function Rg(a){Tg(a,0,15);a.g=1}function Ug(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case Vg:d=Wg.has(c)?Wg.get(c):String.fromCharCode(c);break;case Xg:d=Yg.get(c);break;case Zg:a.i[a.g].pop();d=$g.get(c);break;case ah:a.i[a.g].pop(),d=bh.get(c)}d&&a.i[a.g].push(new Pg(d,a.m,a.j,a.A,a.l))}}
241
+ function ch(a,b,c,d){if(b>=c)for(--d;0<=d;d--)a.i[b+d]=a.i[c+d].map(function(f){return f});else for(var e=0;e<d;e++)a.i[b+e]=a.i[c+e].map(function(f){return f})}function Tg(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]}
242
+ var Vg=0,Xg=1,Zg=2,ah=3,Wg=new Map([[39,"\u2019"],[42,"\u00e1"],[92,"\u00e9"],[92,"\u00e9"],[94,"\u00ed"],[95,"\u00f3"],[96,"\u00fa"],[123,"\u00e7"],[124,"\u00f7"],[125,"\u00d1"],[126,"\u00f1"],[127,"\u2588"]]),Yg=new Map([[48,"\u00ae"],[49,"\u00b0"],[50,"\u00bd"],[51,"\u00bf"],[52,"\u2122"],[53,"\u00a2"],[54,"\u00a3"],[55,"\u266a"],[56,"\u00e0"],[57,"\u2800"],[58,"\u00e8"],[59,"\u00e2"],[60,"\u00ea"],[61,"\u00ee"],[62,"\u00f4"],[63,"\u00fb"]]),$g=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],
243
+ [35,"\u00da"],[36,"\u00dc"],[37,"\u00fc"],[38,"\u2018"],[39,"\u00a1"],[40,"*"],[41,"'"],[42,"\u2500"],[43,"\u00a9"],[44,"\u2120"],[45,"\u00b7"],[46,"\u201c"],[47,"\u201d"],[48,"\u00c0"],[49,"\u00c2"],[50,"\u00c7"],[51,"\u00c8"],[52,"\u00ca"],[53,"\u00cb"],[54,"\u00eb"],[55,"\u00ce"],[56,"\u00cf"],[57,"\u00ef"],[58,"\u00d4"],[59,"\u00d9"],[60,"\u00f9"],[61,"\u00db"],[62,"\u00ab"],[63,"\u00bb"]]),bh=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"],
244
+ [39,"\u00d5"],[40,"\u00f5"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"\u00c4"],[49,"\u00e4"],[50,"\u00d6"],[51,"\u00f6"],[52,"\u00df"],[53,"\u00a5"],[54,"\u00a4"],[55,"\u2502"],[56,"\u00c5"],[57,"\u00e5"],[58,"\u00d8"],[59,"\u00f8"],[60,"\u250c"],[61,"\u2510"],[62,"\u2514"],[63,"\u2518"]]);function dh(a,b){this.h=eh;this.A=new Qg(a,b);this.i=new Qg(a,b);this.l=new Qg(a,b);this.g=this.i;this.j=0;this.m=null}function fh(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==gh&&a.h!==hh&&(e=Sg(d,a.j,c),c=a.i,c.g=0<c.h?c.h:0,Tg(c,0,15),c=a.l,c.g=0<c.h?c.h:0,Tg(c,0,15),d.g=15);a.h=gh;d.h=b;return e}function ih(a){a.h=jh;a.g=a.l;a.g.h=0}function kh(a){Va("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.A;a.h=hh}
245
+ var eh=0,jh=1,gh=3,hh=4,lh="black green blue cyan red yellow magenta black".split(" "),mh="white green blue cyan red yellow magenta white_italics".split(" ");function nh(){this.l=!1;this.F=this.H=0;this.G=oh;this.i=[];this.g=this.h=this.j=0;this.C=this.A=!1;this.B="white";this.m="black";ph(this)}function ph(a){a.i=[];for(var b=0;15>b;b++)a.i.push(qh())}function qh(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function rh(a,b){sh(a)&&(a.i[a.h][a.g]=new Pg(b,a.C,a.A,a.m,a.B),a.g++)}function sh(a){var b=a.g<a.F&&0<=a.g;return a.h<a.H&&0<=a.h&&b}nh.prototype.isVisible=function(){return this.l};
246
+ function th(a,b,c){var d=new gc(a.j,b,"");d.textAlign=a.G===uh?"left":a.G===vh?"right":kc;if(c=Mg(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var uh=0,vh=1,oh=2;function wh(){this.i=[];this.h=null;this.g=0}function xh(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0<a.g&&(a.h.push(b),a.g--),0===a.g&&(a.i.push(new yh(a.h)),a.h=null,a.g=0))}function yh(a){this.g=0;this.h=a}yh.prototype.Da=function(){return this.g<this.h.length};yh.prototype.oa=function(){return this.g};function zh(a){if(!a.Da())throw new O(2,2,3E3);return a.h[a.g++]}yh.prototype.skip=function(a){if(this.g+a>this.h.length)throw new O(2,2,3E3);this.g+=a};function Ah(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null}
247
+ function Bh(a,b,c,d){if(128<=c&&135>=c)d=c&7,a.h[d]&&(a.g=a.h[d]);else{if(136===c){c=zh(b).value;b=null;c=t(Ch(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=th(e,d,a.i)),ph(e);return b}if(137===c)for(b=zh(b).value,b=t(Ch(a,b)),c=b.next();!c.done;c=b.next())c=a.h[c.value],c.isVisible()||(c.j=d),c.l=!0;else{if(138===c){c=zh(b).value;b=null;c=t(Ch(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=th(e,d,a.i)),e.l=!1;return b}if(139===c){c=zh(b).value;
248
+ b=null;c=t(Ch(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=th(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=zh(b).value,Dh(a,b,d);if(143===c)return d=Dh(a,255,d),Eh(a),d;if(144===c)b.skip(1),d=zh(b).value,a.g&&(a.g.A=0<(d&128),a.g.C=0<(d&64));else if(145===c)d=zh(b).value,c=zh(b).value,b.skip(1),a.g&&(b=Fh((c&48)>>4,(c&12)>>2,c&3),a.g.B=Fh((d&48)>>4,(d&12)>>2,d&3),a.g.m=b);else if(146===c)d=zh(b).value,b=zh(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1),
249
+ b.skip(1),d=zh(b).value,b.skip(1),a.g&&(a.g.G=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];if(!e){var f=new nh;f.j=d;a.h[c]=f}d=zh(b).value;zh(b);zh(b);f=zh(b).value;var g=zh(b).value;b=zh(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.C=!1,b.A=!1,b.B="white",b.m="black");b=a.h[c];b.l=0<(d&32);b.H=(f&15)+1;b.F=(g&63)+1;a.g=a.h[c]}}}return null}function Ch(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}
250
+ function Dh(a,b,c){var d=null;b=t(Ch(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(d=th(f,c,a.i));a.h[e]=null}return d}function Eh(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function Fh(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return Gh[a<<2|b<<1|c]}
251
+ var Hh=new Map([[32," "],[33,"\u00a0"],[37,"\u2026"],[42,"\u0160"],[44,"\u0152"],[48,"\u2588"],[49,"\u2018"],[50,"\u2019"],[51,"\u201c"],[52,"\u201d"],[53,"\u2022"],[57,"\u2122"],[58,"\u0161"],[60,"\u0153"],[61,"\u2120"],[63,"\u0178"],[118,"\u215b"],[119,"\u215c"],[120,"\u215d"],[121,"\u215e"],[122,"\u2502"],[123,"\u2510"],[124,"\u2514"],[125,"\u2500"],[126,"\u2518"],[127,"\u250c"]]),Gh="black blue green cyan red magenta yellow white".split(" ");function Ih(){this.h=[];this.g=[];this.i=new wh;this.l=0;this.B=new Map([["CC1",new dh(0,0)],["CC2",new dh(0,1)],["CC3",new dh(1,0)],["CC4",new dh(1,1)]]);this.A=this.m=0;this.j=new Map;Jh(this)}function Jh(a){a.m=0;a.A=0;a=t(a.B.values());for(var b=a.next();!b.done;b=a.next())b=b.value,b.h=2,b.g=b.i,b.m=null,Rg(b.i),Rg(b.l),Rg(b.A)}
252
+ function Kh(a){function b(f,g){return f.pts-g.pts||f.order-g.order}var c=[];a.h.sort(b);a.g.sort(b);for(var d=t(a.h),e=d.next();!e.done;e=d.next())(e=Lh(a,e.value))&&c.push(e);d=t(a.g);for(e=d.next();!e.done;e=d.next())xh(a.i,e.value);d=t(a.i.i);for(e=d.next();!e.done;e=d.next())e=Mh(a,e.value),c.push.apply(c,ia(e));a.i.i=[];a.h=[];a.g=[];return c}
253
+ function Lh(a,b){var c=b.type;if(16===(b.Oa&112)){var d=b.Oa>>3&1;0===c?a.m=d:a.A=d}c=a.B.get("CC"+(c<<1|(c?a.A:a.m)+1));if(255===b.Oa&&255===b.jb||!b.Oa&&!b.jb||!Nh(b.Oa)||!Nh(b.jb))return 45<=++a.l&&Jh(a),null;a.l=0;b.Oa&=127;b.jb&=127;if(!b.Oa&&!b.jb)return null;d=null;if(16===(b.Oa&112))a:{var e=b.Oa;d=b.jb;if(c.m===(e<<8|d))c.m=null;else if(c.m=e<<8|d,16===(e&240)&&64===(d&192)){e=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(e&7)<<1|d>>5&1];var f=(d&30)>>1,g="white",h=!1;7>f?g=mh[f]:7===f&&(h=!0);
254
+ d=1===(d&1);if(c.h!==hh){f=c.g;if(c.h===gh&&e!==f.g){var k=1+e-f.h;ch(f,k,1+f.g-f.h,f.h);Tg(f,0,k-1);Tg(f,e+1,15-e)}f.g=e;c.g.m=d;c.g.j=h;c.g.l=g;c.g.A="black"}}else if(17===(e&247)&&32===(d&240))c.g.m=!1,c.g.j=!1,c.g.l="white",Ug(c.g,Vg,32),g=!1,e=mh[(d&14)>>1],"white_italics"===e&&(e="white",g=!0),c.g.m=1===(d&1),c.g.j=g,c.g.l=e;else if(16===(e&247)&&32===(d&240)||23===(e&247)&&45===(d&255))g="black",0===(e&7)&&(g=lh[(d&14)>>1]),c.g.A=g;else if(17===(e&247)&&48===(d&240))Ug(c.g,Xg,d);else if(18===
255
+ (e&246)&&32===(d&224))Ug(c.g,e&1?ah:Zg,d);else if(20===(e&246)&&32===(d&240)){d=b.pts;e=null;switch(b.jb){case 32:ih(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:e=fh(c,2,d);break;case 38:e=fh(c,3,d);break;case 39:e=fh(c,4,d);break;case 40:Ug(c.g,Vg,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.j=d;break;case 42:Rg(c.A);kh(c);break;case 43:kh(c);break;case 44:e=c.i;g=null;c.h!==hh&&(g=Sg(e,c.j,d));Tg(e,0,15);e=g;break;case 45:e=c.g;c.h!==gh?e=null:(g=Sg(e,c.j,d),h=e.g-e.h+1,ch(e,h-1,h,e.h),Tg(e,
256
+ 0,h-1),Tg(e,e.g,15-e.g),c.j=d,e=g);break;case 46:Tg(c.l,0,15);break;case 47:e=null,c.h!==hh&&(e=Sg(c.i,c.j,d)),g=c.l,c.l=c.i,c.i=g,ih(c),c.j=d}d=e;break a}d=null}else e=b.jb,Ug(c.g,Vg,b.Oa),Ug(c.g,Vg,e);return d}
257
+ function Mh(a,b){var c=[];try{for(;b.Da();){var d=zh(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=zh(b).value&63);if(0!=e){a.j.has(e)||a.j.set(e,new Ah(e));for(var g=a.j.get(e),h=b.oa();b.oa()-h<f;){e=b;var k=zh(e),l=k.value,m=k.pts;if(16===l){var n=zh(e);l=l<<16|n.value}if(0<=l&&31>=l){var p=m;if(g.g){var q=g.g;e=null;switch(l){case 8:!sh(q)||0>=q.g&&0>=q.h||(0>=q.g?(q.g=q.F-1,q.h--):q.g--,q.i[q.h][q.g]=null);break;case 13:q.isVisible()&&(e=th(q,p,g.i));if(q.h+1>=q.H){p=q;for(var w=0,y=1;15>y;y++,
258
+ w++)p.i[w]=p.i[y];for(y=0;1>y;y++,w++)p.i[w]=qh()}else q.h++;q.g=0;break;case 14:q.isVisible()&&(e=th(q,p,g.i));q.i[q.h]=qh();q.g=0;break;case 12:q.isVisible()&&(e=th(q,p,g.i)),ph(q),p=q,p.h=0,p.g=0}var x=e}else x=null}else if(128<=l&&159>=l)x=Bh(g,e,l,m);else{if(4096<=l&&4127>=l)p=l&255,8<=p&&15>=p?e.skip(1):16<=p&&23>=p?e.skip(2):24<=p&&31>=p&&e.skip(3);else if(4224<=l&&4255>=l)p=l&255,128<=p&&135>=p?e.skip(4):136<=p&&143>=p&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?rh(g.g,"\u266a"):rh(g.g,
259
+ String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&rh(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(Hh.has(e)){var v=Hh.get(e);rh(g.g,v)}else rh(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?rh(g.g,"_"):rh(g.g,"[CC]"));x=null}(e=x)&&c.push(e)}}}}catch(D){if(D instanceof O&&3E3===D.code)Va("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw D;}return c}function Nh(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function Oh(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,lf:c,dg:d}}function Ph(a,b){return{$e:1==b?a.lc():a.R()}}function Qh(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));return{timescale:a.R()}}
260
+ function Rh(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={ye:null,sampleSize:null,Ed:null};c&256&&(g.ye=a.R());c&512&&(g.sampleSize=a.R());c&1024&&a.skip(4);c&2048&&(g.Ed=0==b?a.R():a.Df());e.push(g)}return{$i:d,Ff:e}};function Sh(){this.i=new Map;this.h=this.g=0}
261
+ Sh.prototype.init=function(a){var b=this,c=[],d=[];(new zg).box("moov",Dg).box("mvex",Dg).Y("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",Dg).Y("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",Dg).Y("mdhd",function(e){e=Qh(e.reader,e.version);d.push(e.timescale)}).parse(a,!0);if(!c.length||!d.length||c.length!=d.length)throw new O(2,2,2010);c.forEach(function(e,f){b.i.set(e,d[f])})};
262
+ Sh.prototype.parse=function(a){var b=this,c=[],d=this.g,e=this.h,f=[],g=null,h=9E4;(new zg).box("moof",Dg).box("traf",Dg).Y("trun",function(k){f=Rh(k.reader,k.version,k.flags).Ff}).Y("tfhd",function(k){k=Oh(k.reader,k.flags);d=k.lf||b.g;e=k.dg||b.h;k=k.trackId;b.i.has(k)&&(h=b.i.get(k))}).Y("tfdt",function(k){g=Ph(k.reader,k.version).$e}).box("mdat",function(k){if(null===g)throw new O(2,2,2010);k=k.reader;var l=g,m=h,n=d,p=e,q=f,w=0,y=p;for(q.length&&(y=q[0].sampleSize||p);k.Da();){var x=k.R();if(6==
263
+ (k.qb()&31)){var v=0;q.length>w&&(v=q[w].Ed||0);v=(l+v)/m;for(var D=[],C,B=k.Cb(x-1),G=C=0;G<B.length;)2==C&&3==B[G]?(C=0,B=[].concat(ia(B)),B.splice(G,1),B=new Uint8Array(B)):0==B[G]?C++:C=0,G++;C=B;for(G=0;G<C.length;){for(B=0;255==C[G];)B+=255,G++;B+=C[G++];for(var E=0;255==C[G];)E+=255,G++;E+=C[G++];4==B&&D.push(C.subarray(G,G+E));G+=E}D=t(D);for(C=D.next();!C.done;C=D.next())c.push({Xg:C.value,pts:v})}else try{k.skip(x-1)}catch(H){break}y-=x+4;0==y&&(l=q.length>w?l+(q[w].ye||n):l+n,w++,y=q.length>
264
+ w?q[w].sampleSize||p:p)}}).parse(a,!1);return c};function Th(){this.h=new Sh;this.g=new Ih}Th.prototype.init=function(a){this.h.init(a)};
265
+ function Uh(a,b){var c=a.h.parse(b);c=t(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=Gc(e.Xg);if(0<f.length&&(d=a.g,e=e.pts,f=new wg(f,0),181===f.qb()&&49===f.ue()&&1195456820===f.R()&&3===f.qb())){var g=f.qb();if(0!==(g&64)){g&=31;f.skip(1);for(var h=0;h<g;h++){var k=f.qb(),l=(k&4)>>2,m=f.qb(),n=f.qb();l&&(k&=3,0===k||1===k?d.h.push({pts:e,type:k,Oa:m,jb:n,order:d.h.length}):(d.g.push({pts:e,type:k,value:m,order:d.g.length}),d.g.push({pts:e,type:2,value:n,order:d.g.length})))}}}}return Kh(a.g)}
266
+ ;function Vh(a,b,c,d){this.Pa=a;this.Ta=b;this.Ca=c;this.le=void 0===d?null:d}Vh.prototype.Gc=function(){return this.Ta};Vh.prototype.Cc=function(){return this.Ca};function Wh(a,b){return a&&b?a.Gc()==b.Gc()&&a.Cc()==b.Cc()&&fc(a.Pa(),b.Pa()):a==b}J("shaka.media.InitSegmentReference",Vh);Vh.prototype.getEndByte=Vh.prototype.Cc;Vh.prototype.getStartByte=Vh.prototype.Gc;
267
+ function Xh(a,b,c,d,e,f,g,h,k,l,m,n,p,q){l=void 0===l?[]:l;q=void 0===q?Yh:q;this.startTime=a;this.j=this.endTime=b;this.m=c;this.Ta=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.l=void 0===n?null:n;this.g=void 0===p?null:p;this.status=q}r=Xh.prototype;r.Pa=function(){return this.m()};r.getStartTime=function(){return this.startTime};r.pg=function(){return this.endTime};r.Gc=function(){return this.Ta};
268
+ r.Cc=function(){return this.Ca};r.Ig=function(){return this.tilesLayout};r.Hg=function(){return this.l};r.od=function(){return this.status};r.Rg=function(){this.status=Zh};J("shaka.media.SegmentReference",Xh);Xh.prototype.markAsUnavailable=Xh.prototype.Rg;Xh.prototype.getStatus=Xh.prototype.od;Xh.prototype.getTileDuration=Xh.prototype.Hg;Xh.prototype.getTilesLayout=Xh.prototype.Ig;Xh.prototype.getEndByte=Xh.prototype.Cc;Xh.prototype.getStartByte=Xh.prototype.Gc;Xh.prototype.getEndTime=Xh.prototype.pg;
269
+ Xh.prototype.getStartTime=Xh.prototype.getStartTime;Xh.prototype.getUris=Xh.prototype.Pa;var Yh=0,Zh=1;Xh.Status={Ch:Yh,Qi:Zh,bi:2};function $h(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 ai(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function bi(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)}
270
+ function ci(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;for(var c=0,d=t(di(a)),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.start;f=f.end;f>b&&(c+=f-Math.max(e,b))}return c}function ei(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=di(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function di(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 fi(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.S=d||function(){};this.i={};this.A=new vf;this.C={};this.F=b;this.I=new Nc;this.l=gi(this,this.I);this.G=new tf(function(){return hi(e)});this.J="";this.B=!1;this.P=new Nc}function gi(a,b){var c=new MediaSource;a.A.Fa(c,"sourceopen",function(){URL.revokeObjectURL(a.J);b.resolve()});a.J=ii(c);a.j.src=a.J;return c}r=fi.prototype;r.destroy=function(){return this.G.destroy()};
271
+ function hi(a){var b,c,d,e,f,g,h,k;return I(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"](Bb)),f=t(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new O(2,7,7003,void 0));a.g&&b.push(a.g.destroy());a.m&&b.push(a.m.destroy());for(k in a.C)b.push(a.C[k].destroy());return u(l,Promise.all(b),2)}a.A&&(a.A.release(),a.A=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.C={};a.F=null;a.i=
265
272
  {};z(l)})}
266
- r.init=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m;return I(function(n){if(1==n.g)return e=Jb,u(n,d.I,2);d.B=c;f={};g=t(a.keys());for(h=g.next();!h.done;f={Ga:f.Ga},h=g.next())f.Ga=h.value,k=a.get(f.Ga),l=jd(k.mimeType,k.codecs),f.Ga==e.ia?di(d,l,c):(!b&&MediaSource.isTypeSupported(l)||!ed(l,f.Ga)||(d.C[f.Ga]=new dd,l=gd(f.Ga,l)),m=d.l.addSourceBuffer(l),d.A.o(m,"error",function(p){return function(){d.i[p.Ga][0].p.reject(new O(2,3,3014,d.j.error?d.j.error.code:0))}}(f)),d.A.o(m,"updateend",
267
- function(p){return function(){return ei(d,p.Ga)}}(f)),d.h[f.Ga]=m,d.M[f.Ga]=l,d.i[f.Ga]=[],d.K[f.Ga]=!!k.drmInfos.length);z(n)})};function di(a,b,c){a.g||(a.g=new od(a.m));var d=a.g;a=a.H;"application/cea-608"!=b&&"application/cea-708"!=b&&(d.j=(0,qd[b])(),d.j.setSequenceMode?d.j.setSequenceMode(c):Ua('Text parsers should have a "setSequenceMode" method!'),d.C=a)}function fi(a){return a.l?"ended"==a.l.readyState:!0}function gi(a,b){return b==Ib?a.g.g:Uh(hi(a,b))}
268
- function ii(a,b){return b==Ib?a.g.h:Vh(hi(a,b))}function ji(a,b,c){if(b==Ib)return a=a.g,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=hi(a,b);return Xh(a,c)}r.ob=function(){var a={total:Yh(this.j.buffered),audio:Yh(hi(this,"audio")),video:Yh(hi(this,"video")),text:[]};if(this.g){var b=this.g.g,c=this.g.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function hi(a,b){try{return a.h[b].buffered}catch(c){return null}}
269
- function ki(a,b,c,d,e,f,g){var h,k,l,m,n,p,q,x,w,v,y,D,C,B,G,E;return I(function(H){switch(H.g){case 1:h=Jb;if(b!=h.ia){H.D(2);break}if(!a.B){H.D(3);break}return u(H,a.P,4);case 4:k=H.h,a.g.B=k;case 3:return u(H,rd(a.g,c,d,e),5);case 5:return H["return"]();case 2:if(!a.C[b]){f&&(a.g||di(a,"text/vtt",a.B),null==d&&null==e?a.F.init(c):(l=Th(a.F,c),l.length&&(m=a.h[h.Oa].timestampOffset,wd(a.g,l,d,e,m))));H.D(6);break}return u(H,hd(a.C[b],c),7);case 7:n=H.h,a.g||di(a,"text/vtt",a.B),n.metadata&&(p=a.h[b].timestampOffset,
270
- a.S(n.metadata,p,e)),n.captions&&n.captions.length&&(q=a.h[h.Oa].timestampOffset,x=ud(n.captions),wd(a.g,x,d,e,q)),c=n.data;case 6:c=li(a,c,d,b);w=a.h[b];v=mi;if(!a.B||w.mode==v||null==d){H.D(8);break}y=b==h.Oa||!(h.Oa in a.h);if(!y){H.D(9);break}D=[w.appendWindowStart,w.appendWindowEnd];w.appendWindowStart=0;w.appendWindowEnd=Infinity;C=w.timestampOffset;w.timestampOffset=0;return u(H,ni(a,b,function(){a.h[b].appendBuffer(c)}),10);case 10:return w.timestampOffset=C,w.appendWindowStart=D[0],w.appendWindowEnd=
271
- D[1],B=Uh(hi(a,b)),G=(d||0)-(B||0),a.P.resolve(G),u(H,ni(a,b,function(){return oi(a,b,0,a.l.duration)}),9);case 9:w.mode=v;case 8:return null!=d&&a.B&&b!=h.ia&&g&&(E=d,ni(a,b,function(){var L=E;0>L&&(L+=.001);a.h[b].timestampOffset=L;ei(a,b)})),u(H,ni(a,b,function(){a.h[b].appendBuffer(c)}),0)}})}function pi(a,b){var c=ii(a,"video")||0;td(a.g,b,c)}function qi(a){a.g&&td(a.g,"",0)}
272
- r.remove=function(a,b,c){var d=this,e;return I(function(f){e=Jb;return a==e.ia?u(f,d.g.remove(b,c),0):u(f,ni(d,a,function(){return oi(d,a,b,c)}),0)})};function ri(a,b){var c;return I(function(d){c=Jb;return b==c.ia?a.g?u(d,a.g.remove(0,Infinity),0):d["return"]():u(d,ni(a,b,function(){return oi(a,b,0,a.l.duration)}),0)})}r.flush=function(a){var b=this,c;return I(function(d){c=Jb;return a==c.ia?d["return"]():u(d,ni(b,a,function(){b.j.currentTime-=.001;ei(b,a)}),0)})};
273
- function si(a,b,c,d,e,f){var g;return I(function(h){g=Jb;return b==g.ia?(f||(a.g.B=c),sd(a.g,d,e),h["return"]()):u(h,Promise.all([ni(a,b,function(){var k=a.h[b].appendWindowStart,l=a.h[b].appendWindowEnd;a.h[b].abort();a.h[b].appendWindowStart=k;a.h[b].appendWindowEnd=l;ei(a,b)}),f?Promise.resolve():ni(a,b,function(){var k=c;0>k&&(k+=.001);a.h[b].timestampOffset=k;ei(a,b)}),ni(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=d;ei(a,b)})]),0)})}
274
- r.endOfStream=function(a){var b=this;return I(function(c){return u(c,ti(b,function(){fi(b)||(a?b.l.endOfStream(a):b.l.endOfStream())}),0)})};r.eb=function(a){var b=this;return I(function(c){return u(c,ti(b,function(){b.l.duration=a}),0)})};r.getDuration=function(){return this.l.duration};function oi(a,b,c,d){d<=c?ei(a,b):a.h[b].remove(c,d)}function ei(a,b){var c=a.i[b][0];c&&(c.p.resolve(),ui(a,b))}
275
- function ni(a,b,c){tf(a.G);c={start:c,p:new Nc};a.i[b].push(c);1==a.i[b].length&&vi(a,b);return c.p}
276
- function ti(a,b){var c,d,e,f,g,h;return I(function(k){switch(k.g){case 1:tf(a.G);c=[];d={};for(e in a.h)d.xc=new Nc,f={start:function(l){return function(){return l.xc.resolve()}}(d),p:d.xc},a.i[e].push(f),c.push(d.xc),1==a.i[e].length&&f.start(),d={xc:d.xc};A(k,2);return u(k,Promise.all(c),4);case 4:wa(k,3);break;case 2:throw g=F(k),g;case 3:try{b()}catch(l){throw new O(2,3,3015,l);}finally{for(h in a.h)ui(a,h)}z(k)}})}function ui(a,b){a.i[b].shift();vi(a,b)}
277
- function vi(a,b){var c=a.i[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new O(2,3,3017,b)):c.p.reject(new O(2,3,3015,d)),ui(a,b)}}function li(a,b,c,d){var e=a.K[d];null==c&&e&&(Hd()||Bd())&&"mp4"==a.M[d].split(";")[0].split("/")[1]&&(b=Hg(b));return b}var ci=window.URL.createObjectURL,mi="sequence",wi=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function xi(a,b,c,d){this.Ra=a;this.Va=b;this.Ca=c;this.ge=void 0===d?null:d}xi.prototype.Ic=function(){return this.Va};xi.prototype.Ec=function(){return this.Ca};function yi(a,b){return a&&b?a.Ic()==b.Ic()&&a.Ec()==b.Ec()&&gc(a.Ra(),b.Ra()):a==b}J("shaka.media.InitSegmentReference",xi);xi.prototype.getEndByte=xi.prototype.Ec;xi.prototype.getStartByte=xi.prototype.Ic;
278
- function zi(a,b,c,d,e,f,g,h,k,l,m,n,p,q){l=void 0===l?[]:l;q=void 0===q?Ai:q;this.startTime=a;this.j=this.endTime=b;this.i=c;this.Va=d;this.Ca=e;this.g=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.Ka=l;this.tilesLayout=void 0===m?"":m;this.h=void 0===n?null:n;this.ea=void 0===p?null:p;this.status=q}r=zi.prototype;r.Ra=function(){return this.i()};r.getStartTime=function(){return this.startTime};r.pg=function(){return this.endTime};r.Ic=function(){return this.Va};
279
- r.Ec=function(){return this.Ca};r.Ig=function(){return this.tilesLayout};r.Hg=function(){return this.h};r.od=function(){return this.status};r.Rg=function(){this.status=Bi};J("shaka.media.SegmentReference",zi);zi.prototype.markAsUnavailable=zi.prototype.Rg;zi.prototype.getStatus=zi.prototype.od;zi.prototype.getTileDuration=zi.prototype.Hg;zi.prototype.getTilesLayout=zi.prototype.Ig;zi.prototype.getEndByte=zi.prototype.Ec;zi.prototype.getStartByte=zi.prototype.Ic;zi.prototype.getEndTime=zi.prototype.pg;
280
- zi.prototype.getStartTime=zi.prototype.getStartTime;zi.prototype.getUris=zi.prototype.Ra;var Ai=0,Bi=1;zi.Status={Dh:Ai,Ri:Bi,ci:2};function Q(a,b,c){this.l=a;this.Bd=b;this.m=this.i=Infinity;this.g=1;this.h=this.j=null;this.A=0;this.B=!0;this.C=0;this.F=void 0===c?!0:c;this.G=0}r=Q.prototype;r.getDuration=function(){return this.i};r.yg=function(){return this.g};r.eb=function(a){this.i=a};r.Cg=function(){return this.l};r.Hf=function(a){this.A=a};r.Vc=function(a){this.B=a};r.Fe=function(a){this.m=a};r.ph=function(a){this.Bd=a};r.og=function(){return this.Bd};
281
- r.kc=function(a){if(0!=a.length){var b=a[a.length-1].endTime;this.ke(a[0].startTime);this.g=a.reduce(function(c,d){return Math.max(c,d.endTime-d.startTime)},this.g);this.h=Math.max(this.h,b);null!=this.l&&this.F&&(this.l=(Date.now()+this.A)/1E3-this.h-this.g)}};r.ke=function(a){this.j=null==this.j?a:Math.min(this.j,a)};r.je=function(a){this.g=Math.max(this.g,a)};r.offset=function(a){null!=this.j&&(this.j+=a);null!=this.h&&(this.h+=a)};r.U=function(){return Infinity==this.i&&!this.B};
282
- r.Nb=function(){return Infinity!=this.i&&!this.B};r.qb=function(){return Math.max(this.C,this.Kb()-this.m)};r.Kf=function(a){this.C=a};r.Kb=function(){return this.U()||this.Nb()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.g-this.l)+this.G,this.i):this.h?Math.min(this.h,this.i):this.i};r.Hc=function(a){var b=Math.max(this.j,this.C);return Infinity==this.m?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Kb()-this.m+a,this.pb()))};r.ec=function(){return this.Hc(0)};
283
- r.pb=function(){return Math.max(0,this.Kb()-(this.U()||this.Nb()?this.Bd:0))};r.Of=function(){return null==this.l||null!=this.h&&this.F?!1:!0};r.Gf=function(a){this.G=a};J("shaka.media.PresentationTimeline",Q);Q.prototype.setAvailabilityTimeOffset=Q.prototype.Gf;Q.prototype.usingPresentationStartTime=Q.prototype.Of;Q.prototype.getSeekRangeEnd=Q.prototype.pb;Q.prototype.getSeekRangeStart=Q.prototype.ec;Q.prototype.getSafeSeekRangeStart=Q.prototype.Hc;Q.prototype.getSegmentAvailabilityEnd=Q.prototype.Kb;
284
- Q.prototype.setUserSeekStart=Q.prototype.Kf;Q.prototype.getSegmentAvailabilityStart=Q.prototype.qb;Q.prototype.isInProgress=Q.prototype.Nb;Q.prototype.isLive=Q.prototype.U;Q.prototype.offset=Q.prototype.offset;Q.prototype.notifyMaxSegmentDuration=Q.prototype.je;Q.prototype.notifyMinSegmentStartTime=Q.prototype.ke;Q.prototype.notifySegments=Q.prototype.kc;Q.prototype.getDelay=Q.prototype.og;Q.prototype.setDelay=Q.prototype.ph;Q.prototype.setSegmentAvailabilityDuration=Q.prototype.Fe;
285
- Q.prototype.setStatic=Q.prototype.Vc;Q.prototype.setClockOffset=Q.prototype.Hf;Q.prototype.getPresentationStartTime=Q.prototype.Cg;Q.prototype.setDuration=Q.prototype.eb;Q.prototype.getMaxSegmentDuration=Q.prototype.yg;Q.prototype.getDuration=Q.prototype.getDuration;function Ci(a,b,c){this.l=c;this.j=a;this.B=Di(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.A=0;this.C=b;this.i=function(){}}Ci.prototype.release=function(){this.l=this.j=null;this.i=function(){}};function Ei(a,b){a.i=b}function Fi(a){this.g=a}function Di(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(Yh(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 Gi(a,b,c,d,e){var f=this;this.A=e;this.g=a;this.B=b;this.G=c;this.i=new uf;this.m=!1;this.F=a.readyState;this.C=0;this.h=d;this.l=!1;this.i.o(a,"waiting",function(){return Hi(f)});this.j=(new P(function(){Hi(f)})).ma(.25)}Gi.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};Gi.prototype.me=function(){this.l=!0;Hi(this)};
286
- function Hi(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=Di(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 M("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=Zh(c,b,a.G.gapDetectionThreshold),null==
287
- d||0==d&&!a.l||(e=c.start(d),e>=a.B.pb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,a.C++,a.A(new M("gapjumped")))))}}};function Ii(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Ji.value().get(b),c.Fa(a,b,d))}var Ji=new Oc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Ki(a,b,c){var d=this;this.g=a;this.l=b;this.j=c;this.m=!1;this.h=new uf;this.i=new Li(a);Ii(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Mi(d,d.j)})}Ki.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 Ni(a){return a.m?a.g.currentTime:a.j}function Oi(a,b){0<a.g.readyState?Pi(a.i,b):Ii(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Mi(a,a.j)})}
288
- function Mi(a,b){.001>Math.abs(a.g.currentTime-b)?Qi(a):(a.h.Fa(a.g,"seeking",function(){Qi(a)}),Pi(a.i,0==a.g.currentTime?b:a.g.currentTime))}function Qi(a){a.m=!0;a.h.o(a.g,"seeking",function(){return a.l()})}function Li(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new P(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Li.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};
289
- function Pi(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.ma(.1)};function Ri(a){function b(){null==c.h||0==c.h?c.j=!0:(c.i.Fa(c.g,"seeking",function(){c.j=!0}),c.g.currentTime=Math.max(0,c.g.currentTime+c.h))}var c=this;this.g=a;this.j=!1;this.h=null;this.i=new uf;Ii(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){b()})}r=Ri.prototype;r.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};r.Yd=function(a){this.h=this.j?this.h:a};r.cd=function(){return(this.j?this.g.currentTime:this.h)||0};r.Ve=function(){return 0};r.Ue=function(){return 0};
273
+ r.init=function(a,b,c){c=void 0===c?!1:c;var d=this,e,f,g,h,k,l,m;return I(function(n){if(1==n.g)return e=Jb,u(n,d.I,2);d.B=c;f={};g=t(a.keys());for(h=g.next();!h.done;f={Ga:f.Ga},h=g.next())f.Ga=h.value,k=a.get(f.Ga),l=xd(k.mimeType,k.codecs),f.Ga==e.ha?ji(d,l,c):(!b&&MediaSource.isTypeSupported(l)||!sd(l,f.Ga)||(d.C[f.Ga]=new rd,l=ud(f.Ga,l)),m=d.l.addSourceBuffer(l),d.A.o(m,"error",function(p){return function(){d.i[p.Ga][0].p.reject(new O(2,3,3014,d.j.error?d.j.error.code:0))}}(f)),d.A.o(m,"updateend",
274
+ function(p){return function(){return ki(d,p.Ga)}}(f)),d.h[f.Ga]=m,d.N[f.Ga]=l,d.i[f.Ga]=[],d.K[f.Ga]=!!k.drmInfos.length);z(n)})};function ji(a,b,c){a.g||(a.g=new Fd(a.m));var d=a.g;a=a.H;"application/cea-608"!=b&&"application/cea-708"!=b&&(d.j=(0,Hd[b])(),d.j.setSequenceMode?d.j.setSequenceMode(c):Ua('Text parsers should have a "setSequenceMode" method!'),d.C=a)}function li(a){return a.l?"ended"==a.l.readyState:!0}function mi(a,b){return b==Ib?a.g.g:$h(ni(a,b))}
275
+ function oi(a,b){return b==Ib?a.g.h:ai(ni(a,b))}function pi(a,b,c){if(b==Ib)return a=a.g,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=ni(a,b);return ci(a,c)}r.kb=function(){var a={total:di(this.j.buffered),audio:di(ni(this,"audio")),video:di(ni(this,"video")),text:[]};if(this.g){var b=this.g.g,c=this.g.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function ni(a,b){try{return a.h[b].buffered}catch(c){return null}}
276
+ function qi(a,b,c,d,e,f){var g,h,k,l,m,n,p,q,w,y,x,v,D,C,B,G;return I(function(E){switch(E.g){case 1:g=Jb;if(b!=g.ha){E.D(2);break}if(!a.B){E.D(3);break}return u(E,a.P,4);case 4:h=E.h,a.g.B=h;case 3:return u(E,Id(a.g,c,d?d.startTime:null,d?d.endTime:null),5);case 5:return E["return"]();case 2:if(!a.C[b]){e&&(a.g||ji(a,"text/vtt",a.B),d?(k=Uh(a.F,c),k.length&&(l=a.h[g.Ma].timestampOffset,Nd(a.g,k,d.startTime,d.endTime,l))):a.F.init(c));E.D(6);break}return u(E,vd(a.C[b],c),7);case 7:m=E.h,a.g||ji(a,
277
+ "text/vtt",a.B),m.metadata&&(n=a.h[b].timestampOffset,a.S(m.metadata,n,d?d.endTime:null)),m.captions&&m.captions.length&&(p=a.h[g.Ma].timestampOffset,q=Ld(m.captions),Nd(a.g,q,d?d.startTime:null,d?d.endTime:null,p)),c=m.data;case 6:c=ri(a,c,d?d.startTime:null,b);w=a.h[b];y=si;if(!a.B||w.mode==y||!d){E.D(8);break}x=b==g.Ma||!(g.Ma in a.h);if(!x){E.D(9);break}v=[w.appendWindowStart,w.appendWindowEnd];w.appendWindowStart=0;w.appendWindowEnd=Infinity;D=w.timestampOffset;w.timestampOffset=0;return u(E,
278
+ ti(a,b,function(){a.h[b].appendBuffer(c)}),10);case 10:return w.timestampOffset=D,w.appendWindowStart=v[0],w.appendWindowEnd=v[1],C=$h(ni(a,b)),B=(d.startTime||0)-(C||0),a.P.resolve(B),u(E,ti(a,b,function(){return ui(a,b,0,a.l.duration)}),9);case 9:w.mode=y;case 8:return d&&a.B&&b!=g.ha&&f&&(G=d.startTime,ti(a,b,function(){var H=G;0>H&&(H+=.001);a.h[b].timestampOffset=H;ki(a,b)})),u(E,ti(a,b,function(){a.h[b].appendBuffer(c)}),12);case 12:z(E)}})}
279
+ function vi(a,b){var c=oi(a,"video")||0;Kd(a.g,b,c)}function wi(a){a.g&&Kd(a.g,"",0)}r.remove=function(a,b,c){var d=this,e;return I(function(f){e=Jb;return a==e.ha?u(f,d.g.remove(b,c),0):u(f,ti(d,a,function(){return ui(d,a,b,c)}),0)})};function xi(a,b){var c;return I(function(d){c=Jb;return b==c.ha?a.g?u(d,a.g.remove(0,Infinity),0):d["return"]():u(d,ti(a,b,function(){return ui(a,b,0,a.l.duration)}),0)})}
280
+ r.flush=function(a){var b=this,c;return I(function(d){c=Jb;return a==c.ha?d["return"]():u(d,ti(b,a,function(){b.j.currentTime-=.001;ki(b,a)}),0)})};
281
+ function yi(a,b,c,d,e,f){var g;return I(function(h){g=Jb;return b==g.ha?(f||(a.g.B=c),Jd(a.g,d,e),h["return"]()):u(h,Promise.all([ti(a,b,function(){var k=a.h[b].appendWindowStart,l=a.h[b].appendWindowEnd;a.h[b].abort();a.h[b].appendWindowStart=k;a.h[b].appendWindowEnd=l;ki(a,b)}),f?Promise.resolve():ti(a,b,function(){var k=c;0>k&&(k+=.001);a.h[b].timestampOffset=k;ki(a,b)}),ti(a,b,function(){a.h[b].appendWindowStart=0;a.h[b].appendWindowEnd=e;a.h[b].appendWindowStart=d;ki(a,b)})]),0)})}
282
+ r.endOfStream=function(a){var b=this;return I(function(c){return u(c,zi(b,function(){li(b)||(a?b.l.endOfStream(a):b.l.endOfStream())}),0)})};r.bb=function(a){var b=this;return I(function(c){return u(c,zi(b,function(){b.l.duration=a}),0)})};r.getDuration=function(){return this.l.duration};function ui(a,b,c,d){d<=c?ki(a,b):a.h[b].remove(c,d)}function ki(a,b){var c=a.i[b][0];c&&(c.p.resolve(),Ai(a,b))}
283
+ function ti(a,b,c){uf(a.G);c={start:c,p:new Nc};a.i[b].push(c);1==a.i[b].length&&Bi(a,b);return c.p}
284
+ function zi(a,b){var c,d,e,f,g,h;return I(function(k){switch(k.g){case 1:uf(a.G);c=[];d={};for(e in a.h)d.vc=new Nc,f={start:function(l){return function(){return l.vc.resolve()}}(d),p:d.vc},a.i[e].push(f),c.push(d.vc),1==a.i[e].length&&f.start(),d={vc:d.vc};A(k,2);return u(k,Promise.all(c),4);case 4:va(k,3);break;case 2:throw g=F(k),g;case 3:try{b()}catch(l){throw new O(2,3,3015,l);}finally{for(h in a.h)Ai(a,h)}z(k)}})}function Ai(a,b){a.i[b].shift();Bi(a,b)}
285
+ function Bi(a,b){var c=a.i[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new O(2,3,3017,b)):c.p.reject(new O(2,3,3015,d)),Ai(a,b)}}function ri(a,b,c,d){var e=a.K[d];null==c&&e&&(Wc()||Uc())&&"mp4"==a.N[d].split(";")[0].split("/")[1]&&(b=Ig(b));return b}var ii=window.URL.createObjectURL,si="sequence",Ci=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function Q(a,b,c){this.l=a;this.Bd=b;this.m=this.i=Infinity;this.g=1;this.h=this.j=null;this.A=0;this.B=!0;this.C=0;this.F=void 0===c?!0:c;this.G=0;this.H=!1}r=Q.prototype;r.getDuration=function(){return this.i};r.yg=function(){return this.g};r.bb=function(a){this.i=a};r.Cg=function(){return this.l};r.Hf=function(a){this.A=a};r.Vc=function(a){this.B=a};r.Je=function(a){this.m=a};r.oh=function(a){this.Bd=a};r.og=function(){return this.Bd};
286
+ r.ic=function(a){if(0!=a.length){var b=a[a.length-1].endTime;this.pe(a[0].startTime);this.g=a.reduce(function(c,d){return Math.max(c,d.endTime-d.startTime)},this.g);this.h=Math.max(this.h,b);null!=this.l&&this.F&&!this.H&&(this.l=(Date.now()+this.A)/1E3-this.h-this.g)}};r.je=function(){this.H=!0};r.pe=function(a){this.j=null==this.j?a:Math.min(this.j,a)};r.oe=function(a){this.g=Math.max(this.g,a)};r.offset=function(a){null!=this.j&&(this.j+=a);null!=this.h&&(this.h+=a)};
287
+ r.U=function(){return Infinity==this.i&&!this.B};r.Lb=function(){return Infinity!=this.i&&!this.B};r.ob=function(){return Math.max(this.C,this.Ib()-this.m)};r.Kf=function(a){this.C=a};r.Ib=function(){return this.U()||this.Lb()?Math.min(Math.max(0,(Date.now()+this.A)/1E3-this.g-this.l)+this.G,this.i):this.h?Math.min(this.h,this.i):this.i};r.Fc=function(a){var b=Math.max(this.j,this.C);return Infinity==this.m?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.Ib()-this.m+a,this.mb()))};r.cc=function(){return this.Fc(0)};
288
+ r.mb=function(){return Math.max(0,this.Ib()-(this.U()||this.Lb()?this.Bd:0))};r.Of=function(){return null==this.l||null!=this.h&&this.F?!1:!0};r.Gf=function(a){this.G=a};J("shaka.media.PresentationTimeline",Q);Q.prototype.setAvailabilityTimeOffset=Q.prototype.Gf;Q.prototype.usingPresentationStartTime=Q.prototype.Of;Q.prototype.getSeekRangeEnd=Q.prototype.mb;Q.prototype.getSeekRangeStart=Q.prototype.cc;Q.prototype.getSafeSeekRangeStart=Q.prototype.Fc;Q.prototype.getSegmentAvailabilityEnd=Q.prototype.Ib;
289
+ Q.prototype.setUserSeekStart=Q.prototype.Kf;Q.prototype.getSegmentAvailabilityStart=Q.prototype.ob;Q.prototype.isInProgress=Q.prototype.Lb;Q.prototype.isLive=Q.prototype.U;Q.prototype.offset=Q.prototype.offset;Q.prototype.notifyMaxSegmentDuration=Q.prototype.oe;Q.prototype.notifyMinSegmentStartTime=Q.prototype.pe;Q.prototype.lockStartTime=Q.prototype.je;Q.prototype.notifySegments=Q.prototype.ic;Q.prototype.getDelay=Q.prototype.og;Q.prototype.setDelay=Q.prototype.oh;
290
+ Q.prototype.setSegmentAvailabilityDuration=Q.prototype.Je;Q.prototype.setStatic=Q.prototype.Vc;Q.prototype.setClockOffset=Q.prototype.Hf;Q.prototype.getPresentationStartTime=Q.prototype.Cg;Q.prototype.setDuration=Q.prototype.bb;Q.prototype.getMaxSegmentDuration=Q.prototype.yg;Q.prototype.getDuration=Q.prototype.getDuration;function Di(a,b,c){this.l=c;this.j=a;this.B=Ei(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.A=0;this.C=b;this.i=function(){}}Di.prototype.release=function(){this.l=this.j=null;this.i=function(){}};function Fi(a,b){a.i=b}function Gi(a){this.g=a}function Ei(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(di(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 Hi(a,b,c,d,e){var f=this;this.A=e;this.g=a;this.B=b;this.G=c;this.i=new vf;this.m=!1;this.F=a.readyState;this.C=0;this.h=d;this.l=!1;this.i.o(a,"waiting",function(){return Ii(f)});this.j=(new P(function(){Ii(f)})).ka(.25)}Hi.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};Hi.prototype.re=function(){this.l=!0;Ii(this)};
291
+ function Ii(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=Ei(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 L("stalldetected"));b=!d}b&&(b=a.g.currentTime,c=a.g.buffered,d=ei(c,b,a.G.gapDetectionThreshold),null==
292
+ d||0==d&&!a.l||(e=c.start(d),e>=a.B.mb()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,a.C++,a.A(new L("gapjumped")))))}}};function Ji(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Ki.value().get(b),c.Fa(a,b,d))}var Ki=new Oc(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Li(a,b,c){var d=this;this.g=a;this.l=b;this.j=c;this.m=!1;this.h=new vf;this.i=new Mi(a);Ji(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Ni(d,d.j)})}Li.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 Oi(a){return a.m?a.g.currentTime:a.j}function Pi(a,b){0<a.g.readyState?Qi(a.i,b):Ji(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Ni(a,a.j)})}
293
+ function Ni(a,b){.001>Math.abs(a.g.currentTime-b)?Ri(a):(a.h.Fa(a.g,"seeking",function(){Ri(a)}),Qi(a.i,0==a.g.currentTime?b:a.g.currentTime))}function Ri(a){a.m=!0;a.h.o(a.g,"seeking",function(){return a.l()})}function Mi(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new P(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Mi.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};
294
+ function Qi(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.ka(.1)};function Si(a){function b(){null==c.h||0==c.h?c.j=!0:(c.i.Fa(c.g,"seeking",function(){c.j=!0}),c.g.currentTime=Math.max(0,c.g.currentTime+c.h))}var c=this;this.g=a;this.j=!1;this.h=null;this.i=new vf;Ji(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){b()})}r=Si.prototype;r.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};r.Zd=function(a){this.h=this.j?this.h:a};r.cd=function(){return(this.j?this.g.currentTime:this.h)||0};r.Ye=function(){return 0};r.Xe=function(){return 0};
290
295
  r.Bf=function(){};
291
- function Si(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.B=e;this.A=null;this.C=Ti(a,c,f);this.j=new Gi(a,b.presentationTimeline,c,this.C,f);this.h=new Ki(a,function(){a:{var h=g.j;h.m=!0;h.l=!1;var k=Ni(g.h);h=Ui(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.A||g.A<k-1)){g.A=k;Oi(g.h,h);h=void 0;break a}g.B();h=void 0}return h},Vi(this,d));this.m=(new P(function(){if(0!=g.i.readyState&&!g.i.paused){var h=Ni(g.h),k=g.g.ec(),l=g.g.pb();3>
292
- l-k&&(k=l-3);h<k&&(h=Ui(g,h),g.i.currentTime=h)}})).ma(.25)}r=Si.prototype;r.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.B=function(){}};r.Yd=function(a){Oi(this.h,a)};r.cd=function(){var a=Ni(this.h);return 0<this.i.readyState&&!this.i.paused?Wi(this,a):a};r.Ve=function(){return this.C.A};r.Ue=function(){return this.j.C};
293
- function Vi(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.ec():a.g.pb():0>b&&(b=a.g.pb()+b);return Xi(a,Wi(a,b))}r.Bf=function(){this.j.me()};function Xi(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}function Ui(a,b){var c=Math.max(a.F,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.ec(),f=a.g.pb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Hc(c),k=a.g.Hc(d);c=a.g.Hc(c+d);return b>=g?Xi(a,b):b>f?f:b<e?Wh(a.i.buffered,k)?k:c:b>=h||Wh(a.i.buffered,b)?b:c}
294
- function Wi(a,b){var c=a.g.ec();if(b<c)return c;c=a.g.pb();return b>c?c:b}function Ti(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new Ci(new Fi(a),b.stallThreshold,c);Ei(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Yi(a){this.O=a;this.g=null;this.h=0;this.i=!1}r=Yi.prototype;r.release=function(){this.i||(this.O=[],this.g&&this.g.stop(),this.g=null)};r.Sg=function(){this.i=!0};function Zi(a,b){for(var c=t(a.O),d=c.next();!d.done;d=c.next())b(d.value)}r.find=function(a){for(var b=this.O.length-1,c=b;0<=c;--c){var d=this.O[c],e=c<b?this.O[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.h}return this.O.length&&a<this.O[0].startTime?this.h:null};
295
- r.get=function(a){if(0==this.O.length)return null;a-=this.h;return 0>a||a>=this.O.length?null:this.O[a]};r.offset=function(a){if(!this.i)for(var b=t(this.O),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.timestampOffset+=a};r.Nc=function(a){!this.i&&a.length&&(this.O=this.O.filter(function(b){return b.startTime<a[0].startTime}),this.O.push.apply(this.O,ia(a)))};
296
- r.jc=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.O.length||d.endTime>c.O[0].startTime)});this.Nc(a);this.Ib(b)};r.Ib=function(a){if(!this.i){var b=this.O.length;this.O=this.O.filter(function(c){return c.endTime>a});this.h+=b-this.O.length}};
297
- r.Ab=function(a,b,c){c=void 0===c?!1:c;if(!this.i){for(;this.O.length;)if(this.O[this.O.length-1].startTime>=b)this.O.pop();else break;for(;this.O.length;)if(this.O[0].endTime<=a)this.O.shift(),c||this.h++;else break;0!=this.O.length&&(a=this.O[this.O.length-1],this.O[this.O.length-1]=new zi(a.startTime,b,a.i,a.Va,a.Ca,a.g,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.Ka,a.tilesLayout,a.h,a.ea))}};
298
- r.Gd=function(a,b){var c=this;this.i||(this.g&&this.g.stop(),this.g=new P(function(){var d=b();d?c.O.push.apply(c.O,ia(d)):(c.g.stop(),c.g=null)}),this.g.ma(a))};Yi.prototype[Symbol.iterator]=function(){return this.cc(0)};Yi.prototype.cc=function(a){var b=this.find(a);if(null==b)return null;b--;var c=this.get(b+1),d=-1;if(c&&0<c.Ka.length)for(var e=c.Ka.length-1;0<=e;--e){var f=c.Ka[e];if(a>=f.startTime&&a<f.endTime){b++;d=e-1;break}}return new $i(this,b,d)};
299
- function aj(a,b,c){return new Yi([new zi(a,a+b,function(){return c},0,null,null,a,a,a+b)])}J("shaka.media.SegmentIndex",Yi);Yi.forSingleSegment=aj;Yi.prototype.getIteratorForTime=Yi.prototype.cc;Yi.prototype.updateEvery=Yi.prototype.Gd;Yi.prototype.fit=Yi.prototype.Ab;Yi.prototype.evict=Yi.prototype.Ib;Yi.prototype.mergeAndEvict=Yi.prototype.jc;Yi.prototype.offset=Yi.prototype.offset;Yi.prototype.get=Yi.prototype.get;Yi.prototype.find=Yi.prototype.find;Yi.prototype.markImmutable=Yi.prototype.Sg;
300
- Yi.prototype.release=Yi.prototype.release;function $i(a,b,c){this.i=a;this.h=b;this.g=c}$i.prototype.current=function(){var a=this.i.get(this.h);a&&0<a.Ka.length&&a.Ra().length&&this.g>=a.Ka.length&&(this.h++,this.g=0,a=this.i.get(this.h));return a&&0<a.Ka.length?a.Ka[this.g]:a};$i.prototype.next=function(){var a=this.i.get(this.h);a&&0<a.Ka.length?(this.g++,a.Ra().length&&this.g==a.Ka.length&&(this.h++,this.g=0)):(this.h++,this.g=0);a=this.current();return{value:a,done:!a}};
301
- J("shaka.media.SegmentIterator",$i);$i.prototype.next=$i.prototype.next;$i.prototype.current=$i.prototype.current;function bj(){Yi.call(this,[]);this.j=[]}ra(bj,Yi);r=bj.prototype;r.clone=function(){var a=new bj;a.j=this.j.slice();return a};r.release=function(){for(var a=t(this.j),b=a.next();!b.done;b=a.next())b.value.release();this.j=[]};r.find=function(a){for(var b=0,c=t(this.j),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.h+d.O.length}return null};
302
- r.get=function(a){for(var b=0,c=t(this.j),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.h+d.O.length}return null};r.offset=function(){};r.Nc=function(){};r.Ib=function(){};r.jc=function(){};r.Ab=function(){};r.Gd=function(){};J("shaka.media.MetaSegmentIndex",bj);bj.prototype.updateEvery=bj.prototype.Gd;bj.prototype.fit=bj.prototype.Ab;bj.prototype.mergeAndEvict=bj.prototype.jc;bj.prototype.evict=bj.prototype.Ib;bj.prototype.merge=bj.prototype.Nc;
303
- bj.prototype.offset=bj.prototype.offset;bj.prototype.get=bj.prototype.get;bj.prototype.find=bj.prototype.find;bj.prototype.release=bj.prototype.release;function cj(a){var b=this;this.g=a;this.j=!1;this.i=this.g.nd();this.h=new P(function(){b.g.Af(.25*b.i)})}cj.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};cj.prototype.set=function(a){this.i=a;dj(this)};cj.prototype.kd=function(){return this.g.kd()};function dj(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.nd()!=b&&a.g.De(b);return}catch(c){}a.h.ma(.25);0!=a.g.nd()&&a.g.De(0)};function ej(a){var b=this;this.h=a;this.g=new Set;this.i=(new P(function(){fj(b,!1)})).ma(.25)}ej.prototype.release=function(){this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function fj(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function gj(a){fb.call(this);this.g=new Map;this.h=a}ra(gj,fb);gj.prototype.release=function(){this.g.clear();fb.prototype.release.call(this)};function hj(a,b){var c=a.g.get(b);c||(c={Pc:[],gf:null,contentType:b},a.g.set(b,c));return c}function ij(a,b,c){var d=hj(a,b.contentType);jj(a,d);a={ge:b,position:c};d=d.Pc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
304
- gj.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.Pc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.ge;break a}}d=null}if(e=d)e=c.gf,e=!(e===d||e&&d&&e.bandwidth==d.bandwidth&&e.audioSamplingRate==d.audioSamplingRate&&e.codecs==d.codecs&&e.contentType==d.contentType&&e.frameRate==d.frameRate&&e.height==d.height&&e.mimeType==d.mimeType&&e.channelsCount==d.channelsCount&&e.pixelAspectRatio==d.pixelAspectRatio&&e.width==d.width);
305
- if(e)a:{e=a;f=d.contentType;if((f=this.h()[f])&&0<f.length){var g=f[f.length-1].end;if(e>=f[0].start&&e<g){e=!0;break a}}e=!1}e&&(c.gf=d,JSON.stringify(d),c=new M("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function jj(a,b){var c=a.h()[b.contentType];if(c&&0<c.length){var d=c[0].start,e=c[c.length-1].end,f=b.Pc;b.Pc=f.filter(function(g,h){return g.position<=d&&h+1<f.length&&f[h+1].position<=d||g.position>=e?!1:!0})}else b.Pc=[]};function kj(a){fb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new P(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g["delete"](e),e=new M("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).ma(2)}ra(kj,fb);kj.prototype.release=function(){this.g.clear();this.h.stop();fb.prototype.release.call(this)};function lj(a){fb.call(this);var b=this;this.i=a;this.g=new Map;this.l=[{Wb:null,Vb:mj,Mb:function(c,d){return nj(b,"enter",c,d)}},{Wb:oj,Vb:mj,Mb:function(c,d){return nj(b,"enter",c,d)}},{Wb:pj,Vb:mj,Mb:function(c,d){return nj(b,"enter",c,d)}},{Wb:mj,Vb:oj,Mb:function(c,d){return nj(b,"exit",c,d)}},{Wb:mj,Vb:pj,Mb:function(c,d){return nj(b,"exit",c,d)}},{Wb:oj,Vb:pj,Mb:function(c,d){return nj(b,"skip",c,d)}},{Wb:pj,Vb:oj,Mb:function(c,d){return nj(b,"skip",c,d)}}];this.h=new uf;this.h.o(this.i,"regionremove",
306
- function(c){b.g["delete"](c.region)})}ra(lj,fb);lj.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;fb.prototype.release.call(this)};lj.prototype.j=function(a,b){for(var c=t(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?oj:a>d.endTime?pj:mj;this.g.set(d,f);for(var g=t(this.l),h=g.next();!h.done;h=g.next())h=h.value,h.Wb==e&&h.Vb==f&&h.Mb(d,b)}};
307
- function nj(a,b,c,d){b=new M(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var oj=1,mj=2,pj=3;function qj(a,b,c,d,e){a=lf(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function rj(a,b){var c=this;this.g=b;this.m=a;this.i=null;this.C=1;this.A=this.l=null;this.h=new Map;this.F=!1;this.G=null;this.B=!1;this.j=new sf(function(){return sj(c)})}rj.prototype.destroy=function(){return this.j.destroy()};function sj(a){var b,c,d,e;return I(function(f){if(1==f.g){b=[];c=t(a.h.values());for(d=c.next();!d.done;d=c.next())e=d.value,tj(e),b.push(uj(e));return u(f,Promise.all(b),2)}a.h.clear();a.g=null;a.m=null;a.i=null;z(f)})}
308
- rj.prototype.configure=function(a){this.i=a;this.G=new Te({maxAttempts:Math.max(a.retryParameters.maxAttempts,2),baseDelay:a.retryParameters.baseDelay,backoffFactor:a.retryParameters.backoffFactor,fuzzFactor:a.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0)};rj.prototype.start=function(){var a=this;return I(function(b){if(1==b.g)return u(b,vj(a),2);tf(a.j);a.F=!0;z(b)})};
309
- function wj(a,b){var c,d,e,f,g,h;I(function(k){switch(k.g){case 1:return c=Jb,A(k,2),u(k,ri(a.g.V,c.ia),4);case 4:wa(k,3);break;case 2:if(d=F(k),a.g)a.g.onError(d);case 3:e=jd(b.mimeType,b.codecs);di(a.g.V,e,a.m.sequenceMode);f=a.g.V.m;if(g=f.isTextVisible()||a.i.alwaysStreamText)h=xj(b),a.h.set(c.ia,h),yj(a,h,0);z(k)}})}function zj(a){var b=a.h.get(Ib);b&&(tj(b),uj(b)["catch"](function(){}),a.h["delete"](Ib));a.A=null}
310
- function Aj(a,b){var c=a.h.get("video");if(c){var d=c.stream;if(d)if(b){var e=d.trickModeVideo;e&&!c.Sb&&(Bj(a,e,!1,0,!1),c.Sb=d)}else if(d=c.Sb)c.Sb=null,Bj(a,d,!0,0,!1)}}function Cj(a,b,c,d,e){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;a.l=b;a.F&&(b.video&&Bj(a,b.video,c,d,e),b.audio&&Bj(a,b.audio,c,d,e))}function Dj(a,b){a.A=b;a.F&&Bj(a,b,!0,0,!1)}
311
- function Bj(a,b,c,d,e){var f=a.h.get(b.type);f||b.type!=Ib?f&&(f.Sb&&(b.trickModeVideo?(f.Sb=b,b=b.trickModeVideo):f.Sb=null),f.stream!=b||e)&&(b.type==Ib&&di(a.g.V,jd(b.mimeType,b.codecs),a.m.sequenceMode),f.stream.closeSegmentIndex&&f.stream.closeSegmentIndex(),f.stream=b,f.sa=null,c&&(f.Bc?f.Id=!0:f.cb?(f.Ub=!0,f.gd=d,f.Id=!0):(tj(f),Ej(a,f,!0,d)["catch"](function(g){if(a.g)a.g.onError(g)}))),Fj(a,f)["catch"](function(g){if(a.g)a.g.onError(g)})):wj(a,b)}
312
- function Fj(a,b){var c,d;return I(function(e){if(1==e.g){if(!b.Ja)return e["return"]();c=b.stream;d=b.Ja;return c.segmentIndex?e.D(2):u(e,c.createSegmentIndex(),2)}if(b.Ja!=d||b.stream!=c)return e["return"]();var f=a.g.md();var g=ii(a.g.V,b.type),h=b.stream.segmentIndex.find(b.Ta?b.Ta.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.Ca?k.Ca-k.Va:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.g)&&(h+=(k.Ca?k.Ca-k.Va:null)||0),k=a.g.getBandwidthEstimate(),
296
+ function Ti(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.B=e;this.A=null;this.C=Ui(a,c,f);this.j=new Hi(a,b.presentationTimeline,c,this.C,f);this.h=new Li(a,function(){a:{var h=g.j;h.m=!0;h.l=!1;var k=Oi(g.h);h=Vi(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.A||g.A<k-1)){g.A=k;Pi(g.h,h);h=void 0;break a}g.B();h=void 0}return h},Wi(this,d));this.m=(new P(function(){if(0!=g.i.readyState&&!g.i.paused){var h=Oi(g.h),k=g.g.cc(),l=g.g.mb();3>
297
+ l-k&&(k=l-3);h<k&&(h=Vi(g,h),g.i.currentTime=h)}})).ka(.25)}r=Ti.prototype;r.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.B=function(){}};r.Zd=function(a){Pi(this.h,a)};r.cd=function(){var a=Oi(this.h);return 0<this.i.readyState&&!this.i.paused?Xi(this,a):a};r.Ye=function(){return this.C.A};r.Xe=function(){return this.j.C};
298
+ function Wi(a,b){null==b?b=Infinity>a.g.getDuration()?a.g.cc():a.g.mb():0>b&&(b=a.g.mb()+b);return Yi(a,Xi(a,b))}r.Bf=function(){this.j.re()};function Yi(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b}function Vi(a,b){var c=Math.max(a.F,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.cc(),f=a.g.mb(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Fc(c),k=a.g.Fc(d);c=a.g.Fc(c+d);return b>=g?Yi(a,b):b>f?f:b<e?bi(a.i.buffered,k)?k:c:b>=h||bi(a.i.buffered,b)?b:c}
299
+ function Xi(a,b){var c=a.g.cc();if(b<c)return c;c=a.g.mb();return b>c?c:b}function Ui(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new Di(new Gi(a),b.stallThreshold,c);Fi(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Zi(a){this.M=a;this.g=null;this.h=0;this.i=!1}r=Zi.prototype;r.release=function(){this.i||(this.M=[],this.g&&this.g.stop(),this.g=null)};r.Sg=function(){this.i=!0};r.find=function(a){for(var b=this.M.length-1,c=b;0<=c;--c){var d=this.M[c],e=c<b?this.M[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.h}return this.M.length&&a<this.M[0].startTime?this.h:null};r.get=function(a){if(0==this.M.length)return null;a-=this.h;return 0>a||a>=this.M.length?null:this.M[a]};
300
+ r.offset=function(a){if(!this.i)for(var b=t(this.M),c=b.next();!c.done;c=b.next()){c=c.value;c.startTime+=a;c.endTime+=a;c.j+=a;c=t(c.h);for(var d=c.next();!d.done;d=c.next())d=d.value,d.startTime+=a,d.endTime+=a,d.j+=a}};r.Mc=function(a){!this.i&&a.length&&(this.M=this.M.filter(function(b){return b.startTime<a[0].startTime}),this.M.push.apply(this.M,ia(a)))};r.hc=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.M.length||d.endTime>c.M[0].startTime)});this.Mc(a);this.Gb(b)};
301
+ r.Gb=function(a){if(!this.i){var b=this.M.length;this.M=this.M.filter(function(c){return c.endTime>a});this.h+=b-this.M.length}};
302
+ r.yb=function(a,b,c){c=void 0===c?!1:c;if(!this.i){for(;this.M.length;)if(this.M[this.M.length-1].startTime>=b)this.M.pop();else break;for(;this.M.length;)if(this.M[0].endTime<=a)this.M.shift(),c||this.h++;else break;0!=this.M.length&&(a=this.M[this.M.length-1],this.M[this.M.length-1]=new Xh(a.startTime,b,a.m,a.Ta,a.Ca,a.i,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.h,a.tilesLayout,a.l,a.g))}};
303
+ r.Gd=function(a,b){var c=this;this.i||(this.g&&this.g.stop(),this.g=new P(function(){var d=b();d?c.M.push.apply(c.M,ia(d)):(c.g.stop(),c.g=null)}),this.g.ka(a))};Zi.prototype[Symbol.iterator]=function(){return this.ac(0)};Zi.prototype.ac=function(a){var b=this.find(a);if(null==b)return null;b--;var c=this.get(b+1),d=-1;if(c&&0<c.h.length)for(var e=c.h.length-1;0<=e;--e){var f=c.h[e];if(a>=f.startTime&&a<f.endTime){b++;d=e-1;break}}return new $i(this,b,d)};
304
+ function aj(a,b,c){return new Zi([new Xh(a,a+b,function(){return c},0,null,null,a,a,a+b)])}J("shaka.media.SegmentIndex",Zi);Zi.forSingleSegment=aj;Zi.prototype.getIteratorForTime=Zi.prototype.ac;Zi.prototype.updateEvery=Zi.prototype.Gd;Zi.prototype.fit=Zi.prototype.yb;Zi.prototype.evict=Zi.prototype.Gb;Zi.prototype.mergeAndEvict=Zi.prototype.hc;Zi.prototype.offset=Zi.prototype.offset;Zi.prototype.get=Zi.prototype.get;Zi.prototype.find=Zi.prototype.find;Zi.prototype.markImmutable=Zi.prototype.Sg;
305
+ Zi.prototype.release=Zi.prototype.release;function $i(a,b,c){this.i=a;this.h=b;this.g=c}$i.prototype.current=function(){var a=this.i.get(this.h);a&&0<a.h.length&&a.Pa().length&&this.g>=a.h.length&&(this.h++,this.g=0,a=this.i.get(this.h));return a&&0<a.h.length?a.h[this.g]:a};$i.prototype.next=function(){var a=this.i.get(this.h);a&&0<a.h.length?(this.g++,a.Pa().length&&this.g==a.h.length&&(this.h++,this.g=0)):(this.h++,this.g=0);a=this.current();return{value:a,done:!a}};
306
+ J("shaka.media.SegmentIterator",$i);$i.prototype.next=$i.prototype.next;$i.prototype.current=$i.prototype.current;function bj(){Zi.call(this,[]);this.j=[]}qa(bj,Zi);r=bj.prototype;r.clone=function(){var a=new bj;a.j=this.j.slice();return a};r.release=function(){for(var a=t(this.j),b=a.next();!b.done;b=a.next())b.value.release();this.j=[]};r.find=function(a){for(var b=0,c=t(this.j),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.h+d.M.length}return null};
307
+ r.get=function(a){for(var b=0,c=t(this.j),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.h+d.M.length}return null};r.offset=function(){};r.Mc=function(){};r.Gb=function(){};r.hc=function(){};r.yb=function(){};r.Gd=function(){};J("shaka.media.MetaSegmentIndex",bj);bj.prototype.updateEvery=bj.prototype.Gd;bj.prototype.fit=bj.prototype.yb;bj.prototype.mergeAndEvict=bj.prototype.hc;bj.prototype.evict=bj.prototype.Gb;bj.prototype.merge=bj.prototype.Mc;
308
+ bj.prototype.offset=bj.prototype.offset;bj.prototype.get=bj.prototype.get;bj.prototype.find=bj.prototype.find;bj.prototype.release=bj.prototype.release;function cj(a){var b=this;this.g=a;this.j=!1;this.i=this.g.nd();this.h=new P(function(){b.g.Af(.25*b.i)})}cj.prototype.release=function(){this.h&&(this.h.stop(),this.h=null);this.g=null};cj.prototype.set=function(a){this.i=a;dj(this)};cj.prototype.kd=function(){return this.g.kd()};function dj(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.nd()!=b&&a.g.He(b);return}catch(c){}a.h.ka(.25);0!=a.g.nd()&&a.g.He(0)};function ej(a){var b=this;this.h=a;this.g=new Set;this.i=(new P(function(){fj(b,!1)})).ka(.25)}ej.prototype.release=function(){this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function fj(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function gj(a){fb.call(this);this.g=new Map;this.h=a}qa(gj,fb);gj.prototype.release=function(){this.g.clear();fb.prototype.release.call(this)};function hj(a,b){var c=a.g.get(b);c||(c={Oc:[],jf:null,contentType:b},a.g.set(b,c));return c}function ij(a,b,c){var d=hj(a,b.contentType);jj(a,d);a={le:b,position:c};d=d.Oc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)}
309
+ gj.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.Oc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.le;break a}}d=null}if(e=d)e=c.jf,e=!(e===d||e&&d&&e.bandwidth==d.bandwidth&&e.audioSamplingRate==d.audioSamplingRate&&e.codecs==d.codecs&&e.contentType==d.contentType&&e.frameRate==d.frameRate&&e.height==d.height&&e.mimeType==d.mimeType&&e.channelsCount==d.channelsCount&&e.pixelAspectRatio==d.pixelAspectRatio&&e.width==d.width);
310
+ if(e)a:{e=a;f=d.contentType;if((f=this.h()[f])&&0<f.length){var g=f[f.length-1].end;if(e>=f[0].start&&e<g){e=!0;break a}}e=!1}e&&(c.jf=d,JSON.stringify(d),c=new L("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function jj(a,b){var c=a.h()[b.contentType];if(c&&0<c.length){var d=c[0].start,e=c[c.length-1].end,f=b.Oc;b.Oc=f.filter(function(g,h){return g.position<=d&&h+1<f.length&&f[h+1].position<=d||g.position>=e?!1:!0})}else b.Oc=[]};function kj(a){fb.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new P(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g["delete"](e),e=new L("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).ka(2)}qa(kj,fb);kj.prototype.release=function(){this.g.clear();this.h.stop();fb.prototype.release.call(this)};function lj(a){fb.call(this);var b=this;this.i=a;this.g=new Map;this.l=[{Ub:null,Tb:mj,Kb:function(c,d){return nj(b,"enter",c,d)}},{Ub:oj,Tb:mj,Kb:function(c,d){return nj(b,"enter",c,d)}},{Ub:pj,Tb:mj,Kb:function(c,d){return nj(b,"enter",c,d)}},{Ub:mj,Tb:oj,Kb:function(c,d){return nj(b,"exit",c,d)}},{Ub:mj,Tb:pj,Kb:function(c,d){return nj(b,"exit",c,d)}},{Ub:oj,Tb:pj,Kb:function(c,d){return nj(b,"skip",c,d)}},{Ub:pj,Tb:oj,Kb:function(c,d){return nj(b,"skip",c,d)}}];this.h=new vf;this.h.o(this.i,"regionremove",
311
+ function(c){b.g["delete"](c.region)})}qa(lj,fb);lj.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;fb.prototype.release.call(this)};lj.prototype.j=function(a,b){for(var c=t(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?oj:a>d.endTime?pj:mj;this.g.set(d,f);for(var g=t(this.l),h=g.next();!h.done;h=g.next())h=h.value,h.Ub==e&&h.Tb==f&&h.Kb(d,b)}};
312
+ function nj(a,b,c,d){b=new L(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var oj=1,mj=2,pj=3;function qj(a,b,c,d,e){a=mf(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function rj(a,b){var c=this;this.g=b;this.m=a;this.i=null;this.C=1;this.A=this.l=null;this.h=new Map;this.F=!1;this.G=null;this.B=!1;this.j=new tf(function(){return sj(c)})}rj.prototype.destroy=function(){return this.j.destroy()};function sj(a){var b,c,d,e;return I(function(f){if(1==f.g){b=[];c=t(a.h.values());for(d=c.next();!d.done;d=c.next())e=d.value,tj(e),b.push(uj(e));return u(f,Promise.all(b),2)}a.h.clear();a.g=null;a.m=null;a.i=null;z(f)})}
313
+ rj.prototype.configure=function(a){this.i=a;this.G=new Ue({maxAttempts:Math.max(a.retryParameters.maxAttempts,2),baseDelay:a.retryParameters.baseDelay,backoffFactor:a.retryParameters.backoffFactor,fuzzFactor:a.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0)};rj.prototype.start=function(){var a=this;return I(function(b){if(1==b.g)return u(b,vj(a),2);uf(a.j);a.F=!0;z(b)})};
314
+ function wj(a,b){var c,d,e,f,g,h;I(function(k){switch(k.g){case 1:return c=Jb,A(k,2),u(k,xi(a.g.V,c.ha),4);case 4:va(k,3);break;case 2:if(d=F(k),a.g)a.g.onError(d);case 3:e=xd(b.mimeType,b.codecs);ji(a.g.V,e,a.m.sequenceMode);f=a.g.V.m;if(g=f.isTextVisible()||a.i.alwaysStreamText)h=xj(b),a.h.set(c.ha,h),yj(a,h,0);z(k)}})}function zj(a){var b=a.h.get(Ib);b&&(tj(b),uj(b)["catch"](function(){}),a.h["delete"](Ib));a.A=null}
315
+ function Aj(a,b){var c=a.h.get("video");if(c){var d=c.stream;if(d)if(b){var e=d.trickModeVideo;e&&!c.Qb&&(Bj(a,e,!1,0,!1),c.Qb=d)}else if(d=c.Qb)c.Qb=null,Bj(a,d,!0,0,!1)}}function Cj(a,b,c,d,e){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;a.l=b;a.F&&(b.video&&Bj(a,b.video,c,d,e),b.audio&&Bj(a,b.audio,c,d,e))}function Dj(a,b){a.A=b;a.F&&Bj(a,b,!0,0,!1)}
316
+ function Bj(a,b,c,d,e){var f=a.h.get(b.type);f||b.type!=Ib?f&&(f.Qb&&(b.trickModeVideo?(f.Qb=b,b=b.trickModeVideo):f.Qb=null),f.stream!=b||e)&&(b.type==Ib&&ji(a.g.V,xd(b.mimeType,b.codecs),a.m.sequenceMode),f.stream.closeSegmentIndex&&f.stream.closeSegmentIndex(),f.stream=b,f.sa=null,c&&(f.zc?f.Jd=!0:f.ab?(f.Sb=!0,f.gd=d,f.Jd=!0):(tj(f),Ej(a,f,!0,d)["catch"](function(g){if(a.g)a.g.onError(g)}))),Fj(a,f)["catch"](function(g){if(a.g)a.g.onError(g)})):wj(a,b)}
317
+ function Fj(a,b){var c,d;return I(function(e){if(1==e.g){if(!b.Ja)return e["return"]();c=b.stream;d=b.Ja;return c.segmentIndex?e.D(2):u(e,c.createSegmentIndex(),2)}if(b.Ja!=d||b.stream!=c)return e["return"]();var f=a.g.md();var g=oi(a.g.V,b.type),h=b.stream.segmentIndex.find(b.Ra?b.Ra.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.Ca?k.Ca-k.Ta:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.i)&&(h+=(k.Ca?k.Ca-k.Ta:null)||0),k=a.g.getBandwidthEstimate(),
313
318
  f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.i.rebufferingGoal)||b.Ja.h.g>h?!0:!1):f=!1;f&&b.Ja.abort();z(e)})}
314
- rj.prototype.Sc=function(){for(var a=this.g.md(),b=t(this.h.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.h.get(d);c.sa=null;var e=this.g.V;d==Ib?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=hi(e,d),e=Wh(e,a));if(!e){(null!=ii(this.g.V,d)||c.cb)&&Gj(this,c);c.Ja&&(c.Ja.abort(),c.Ja=null);if(d===Ib)for(d=this.g.V.F.g,d.l=0,d.h=[],d.g=[],e=d.i,e.i=[],e.h=[],e.g=0,Ih(d),d=t(d.j.values()),e=d.next();!e.done;e=d.next())Dh(e.value);c.Sc=!0}}};
315
- function Gj(a,b){b.Bc||b.Ub||(b.cb?(b.Ub=!0,b.gd=0):null==gi(a.g.V,b.type)?null==b.gb&&yj(a,b,0):(tj(b),Ej(a,b,!1,0)["catch"](function(c){if(a.g)a.g.onError(c)})))}
316
- function vj(a){var b,c,d,e,f,g,h,k,l,m;return I(function(n){if(1==n.g){b=Jb;if(!a.l)throw new O(2,5,5006);c=new Map;d=new Set;a.l.audio&&(c.set(b.Hb,a.l.audio),d.add(a.l.audio));a.l.video&&(c.set(b.Oa,a.l.video),d.add(a.l.video));a.A&&(c.set(b.ia,a.A),d.add(a.A));e=a.g.V;f=a.i.forceTransmuxTS;return u(n,e.init(c,f,a.m.sequenceMode),2)}tf(a.j);var p=a.m.presentationTimeline.getDuration();Infinity>p?a.g.V.eb(p):a.g.V.eb(Math.pow(2,32));g=t(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),
317
- a.h.has(k)||(m=xj(l),a.h.set(k,m),yj(a,m,0));z(n)})}function xj(a){return{stream:a,type:a.type,sa:null,Ta:null,rd:null,fe:null,ee:null,ce:null,Sb:null,endOfStream:!1,cb:!1,gb:null,Ub:!1,gd:0,Id:!1,Bc:!1,Sc:!0,qe:!1,Kc:!1,Ja:null}}
318
- function Hj(a,b){var c,d,e,f,g;return I(function(h){switch(h.g){case 1:tf(a.j);if(b.cb||null==b.gb||b.Bc)return h["return"]();b.gb=null;if(!b.Ub){h.D(2);break}return u(h,Ej(a,b,b.Id,b.gd),3);case 3:return h["return"]();case 2:if(b.stream.segmentIndex){h.D(4);break}c=b.stream;return u(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),null==b.gb&&yj(a,b,0),h["return"]();case 4:A(h,6);d=Ij(a,b);null!=d&&(yj(a,b,d),b.Kc=!1);wa(h,7);break;case 6:return e=
319
- F(h),u(h,Jj(a,e),8);case 8:return h["return"]();case 7:f=Array.from(a.h.values());if(!a.F||!f.every(function(k){return k.endOfStream})){h.D(0);break}return u(h,a.g.V.endOfStream(),10);case 10:tf(a.j),g=a.g.V.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.eb(g),z(h)}})}
320
- function Ij(a,b){if(Kj(b))return pi(a.g.V,b.stream.originalId||""),null;b.type==Ib&&qi(a.g.V);var c=a.g.md(),d=b.Ta?b.Ta.endTime:c,e=ji(a.g.V,b.type,c),f=Math.max(a.m.minBufferTime||0,a.i.rebufferingGoal,a.i.bufferingGoal)*a.C;if(1E-6>a.m.presentationTimeline.getDuration()-d)return b.endOfStream=!0,"video"==b.type&&(c=a.h.get(Ib))&&Kj(c)&&(c.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.i.updateIntervalSeconds/2;e=ii(a.g.V,b.type);e=Lj(a,b,c,e);if(!e)return a.i.updateIntervalSeconds;f=Infinity;
321
- var g=Array.from(a.h.values());g=t(g);for(var h=g.next();!h.done;h=g.next())h=h.value,Kj(h)||h.sa&&!h.sa.current()||(f=Math.min(f,h.Ta?h.Ta.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.i.updateIntervalSeconds;Mj(a,b,c,e)["catch"](function(){});return null}
322
- function Lj(a,b,c,d){if(b.sa)return b.sa.current();if(b.Ta||d)return b.sa=b.stream.segmentIndex.cc(b.Ta?b.Ta.endTime:d),b.sa&&b.sa.next().value;a=a.i.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.sa=b.stream.segmentIndex.cc(d),e=b.sa&&b.sa.next().value);e||(b.sa=b.stream.segmentIndex.cc(c),e=b.sa&&b.sa.next().value);return e}
323
- function Mj(a,b,c,d){var e,f,g,h,k,l,m,n,p,q,x,w;return I(function(v){switch(v.g){case 1:e=Jb;f=b.stream;g=b.sa;b.cb=!0;A(v,2);if(2==d.od())throw new O(1,1,1011);return u(v,Nj(a,b,d),4);case 4:tf(a.j);if(a.B)return v["return"]();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.i.lowLatencyMode&&k&&h)return n=new Uint8Array(0),p=function(y){var D,C,B;return I(function(G){tf(a.j);if(a.B)return G["return"]();n=Oj(n,y);D=!1;C=0;(new yg).box("mdat",function(E){C=E.size+E.start;
324
- D=!0}).parse(n,!1,!0);if(!D)return G.D(0);B=n.subarray(0,C);n=n.subarray(C);return u(G,Pj(a,b,c,f,d,B),0)})},u(v,Qj(a,b,d,p),6);l=Qj(a,b,d);return u(v,l,7);case 7:return m=v.h,tf(a.j),a.B?v["return"]():b.Ub?(b.cb=!1,yj(a,b,0),v["return"]()):u(v,Pj(a,b,c,f,d,m),6);case 6:tf(a.j);if(a.B)return v["return"]();b.Ta=d;g.next();b.cb=!1;b.qe=!1;q=a.g.V.ob();x=q[b.type];Za(JSON.stringify(x));b.Ub||a.g.me();yj(a,b,0);wa(v,0);break;case 2:w=F(v);tf(a.j,w);if(a.B)return v["return"]();b.cb=!1;if(7001==w.code)b.cb=
325
- !1,b.gb=null,yj(a,b,0),v.D(0);else if(b.type==e.ia&&a.i.ignoreTextStreamFailures)a.h["delete"](e.ia),v.D(0);else if(3017==w.code)Rj(a,b,w),v.D(0);else if(1001==w.code&&w.data&&404==w.data[1])b.cb=!1,b.gb=null,yj(a,b,1),v.D(0);else return b.Kc=!0,w.severity=2,u(v,Jj(a,w),0)}})}function Oj(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
326
- function Rj(a,b,c){if(!Array.from(a.h.values()).some(function(e){return e!=b&&e.qe})){var d=Math.round(100*a.C);if(20<d)a.C-=.2;else if(4<d)a.C-=.04;else{b.Kc=!0;a.B=!0;a.g.onError(c);return}b.qe=!0}yj(a,b,4)}
327
- function Nj(a,b,c){var d,e,f,g,h,k,l;return I(function(m){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.fe||e!=b.ee||f!=b.ce)h=function(){var n;return I(function(p){if(1==p.g)return A(p,2),b.ee=e,b.ce=f,b.fe=g,u(p,si(a.g.V,b.type,g,e,f,a.m.sequenceMode),4);if(2!=p.g)return wa(p,0);n=F(p);b.ee=null;b.ce=null;b.fe=null;throw n;})},d.push(h());!yi(c.g,b.rd)&&(b.rd=c.g)&&(k=Qj(a,b,c.g),l=function(){var n,p,q;return I(function(x){switch(x.g){case 1:return A(x,
328
- 2),u(x,k,4);case 4:return n=x.h,tf(a.j),p=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,u(x,ki(a.g.V,b.type,n,null,null,p),5);case 5:wa(x,0);break;case 2:throw q=F(x),b.rd=null,q;}})},a.g.Wg(c.startTime,c.g),d.push(l()));return u(m,Promise.all(d),0)})}
329
- function Pj(a,b,c,d,e,f){var g,h;return I(function(k){if(1==k.g)return g=d.closedCaptions&&0<d.closedCaptions.size,(null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.i.dispatchAllEmsgBoxes)&&(new yg).Y("emsg",function(l){var m=d.emsgSchemeIdUris;if(0===l.version){var n=l.reader.Qc();var p=l.reader.Qc();var q=l.reader.R();var x=l.reader.R();var w=l.reader.R();var v=l.reader.R();var y=e.startTime+x/q}else q=l.reader.R(),y=l.reader.nc()/q+e.timestampOffset,x=y-e.startTime,w=l.reader.R(),v=l.reader.R(),
330
- n=l.reader.Qc(),p=l.reader.Qc();l=l.reader.Eb(l.reader.W.byteLength-l.reader.oa());if(m&&m.includes(n)||a.i.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==n?a.g.Xg():(m=(new Map).set("detail",{startTime:y,endTime:y+w/q,schemeIdUri:n,value:p,timescale:q,presentationTimeDelta:x,eventDuration:w,id:v,messageData:l}),m=new M("emsg",m),a.g.onEvent(m))}).parse(f),u(k,Sj(a,b,c),2);if(3!=k.g)return tf(a.j),h=b.Sc,b.Sc=!1,u(k,ki(a.g.V,b.type,f,null==e.ea?e.startTime:e.ea,e.endTime,g,h),3);tf(a.j);z(k)})}
331
- function Sj(a,b,c){var d,e,f,g;return I(function(h){if(1==h.g){d=Math.max(a.i.bufferBehind,a.m.presentationTimeline.g);e=gi(a.g.V,b.type);if(null==e)return h["return"]();f=c-e;g=f-d;return.01>=g?h["return"]():u(h,a.g.V.remove(b.type,e,e+g),2)}tf(a.j);z(h)})}function Kj(a){return a&&a.type==Ib&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
332
- function Qj(a,b,c,d){var e,f,g,h,k;return I(function(l){if(1==l.g)return e=rf,f=qj(c.Ra(),c.Va,c.Ca,a.i.retryParameters,d),g=b.stream,a.g.modifySegmentRequest(f,{type:g.type,init:c instanceof xi,duration:c.endTime-c.startTime,mimeType:g.mimeType,codecs:g.codecs,bandwidth:g.bandwidth}),h=a.g.Qb.request(e,f),b.Ja=h,u(l,h.promise,2);k=l.h;b.Ja=null;return l["return"](k.data)})}
333
- function Ej(a,b,c,d){var e,f;return I(function(g){if(1==g.g)return b.Ub=!1,b.Id=!1,b.gd=0,b.Bc=!0,b.Ta=null,b.rd=null,b.sa=null,d?(e=a.g.md(),f=a.g.V.getDuration(),u(g,a.g.V.remove(b.type,e+d,f),3)):u(g,ri(a.g.V,b.type),4);if(3!=g.g)return tf(a.j),c?u(g,a.g.V.flush(b.type),3):g.D(3);tf(a.j);b.Bc=!1;b.endOfStream=!1;yj(a,b,0);z(g)})}
334
- function yj(a,b,c){var d=b.type;if(d!=Ib||a.h.has(d))b.gb=(new xd(function(){var e;return I(function(f){if(1==f.g)return A(f,2),u(f,Hj(a,b),4);if(2!=f.g)return wa(f,0);e=F(f);if(a.g)a.g.onError(e);z(f)})})).T(c)}function tj(a){null!=a.gb&&(a.gb.stop(),a.gb=null)}function uj(a){return I(function(b){return a.Ja?u(b,a.Ja.abort(),0):b.D(0)})}function Jj(a,b){return I(function(c){if(1==c.g)return u(c,Ve(a.G),2);tf(a.j);a.g.onError(b);b.handled||a.i.failureCallback(b);z(c)})};function Tj(a,b){var c=Uj(),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 Vj(d)});this.B=new sf(function(){return Wj(d)})}Tj.prototype.destroy=function(){return this.B.destroy()};function Wj(a){var b,c,d;return I(function(e){if(1==e.g)return a.h&&a.h.abort(),Xj(a),u(e,a.C,2);a.g&&a.g.bb.Rb();b=t(a.m);for(c=b.next();!c.done;c=b.next())d=c.value,d.bb.Rb();a.g=null;a.m=[];a.j=null;z(e)})}
335
- function Yj(a,b){var c={lc:function(){},wd:function(){},Rb:function(){},onError:function(){},yd:function(){},$i:function(){}};a.m.push({create:b,bb:c});a.h&&a.h.abort();Xj(a);return c}
336
- function Vj(a){return I(function(b){if(a.B.g)b=b.D(0);else{if(0==a.m.length||a.g&&!a.g.Lb)var c=!1;else{a.g&&(a.g.bb.Rb(),a.g=null);c=a.m.shift();var d=c.create(a.l);d?(c.bb.lc(),a.g={node:d.node,payload:d.payload,Lb:d.Lb,bb:c.bb}):c.bb.yd();c=!0}c?c=Promise.resolve():a.g?c=Zj(a):(a.j.Vg(a.i),a.A=new Nc,c=a.A);b=u(b,c,1)}return b})}
337
- function Zj(a){var b,c;return I(function(d){switch(d.g){case 1:return a.i=a.j.Ag(a.i,a.l,a.g.node,a.g.payload),A(d,2),a.h=a.j.eg(a.i,a.l,a.g.payload),u(d,a.h.promise,4);case 4:a.h=null;a.i==a.g.node&&(a.g.bb.wd(),a.g=null);wa(d,0);break;case 2:b=F(d);if(7001==b.code)a.g.bb.Rb();else a.g.bb.onError(b);a.g=null;a.h=null;c=a;return u(d,a.j.handleError(a.l,b),5);case 5:c.i=d.h,z(d)}})}function Xj(a){a.A&&(a.A.resolve(),a.A=null)};function ak(a){this.g=null;for(var b=t(Array.from(a.textTracks)),c=b.next();!c.done;c=b.next())c=c.value,c.mode="disabled","Shaka Player TextTrack"==c.label&&(this.g=c);this.g||(this.g=a.addTextTrack("subtitles","Shaka Player TextTrack"));this.g.mode="hidden"}r=ak.prototype;r.remove=function(a,b){if(!this.g)return!1;bk(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
338
- r.append=function(a){function b(g){var h=[],k=700<=g.fontWeight,l="italic"==g.fontStyle,m=g.textDecoration.includes("underline");k&&h.push("b");l&&h.push("i");m&&h.push("u");k=h.reduce(function(n,p){return n+"<"+p+">"},"");h=h.reduceRight(function(n,p){return n+"</"+p+">"},"");return g.lineBreak?"\n":g.nestedCues.length?g.nestedCues.map(b).join(""):k+g.payload+h}var c=a.map(function(g){if(g.nestedCues.length){var h=g.clone();h.nestedCues=[];h.payload=b(g);return h}return g}),d=[];a=this.g.cues?Array.from(this.g.cues):
339
- [];var e={};c=t(c);for(var f=c.next();!f.done;e={Xb:e.Xb},f=c.next())e.Xb=f.value,a.some(function(g){return function(h){return h.startTime==g.Xb.startTime&&h.endTime==g.Xb.endTime&&h.text==g.Xb.payload?!0:!1}}(e))||(f=ck(e.Xb))&&d.push(f);a=d.slice().sort(function(g,h){return g.startTime!=h.startTime?g.startTime-h.startTime:g.endTime!=h.endTime?g.endTime-h.startTime:"line"in VTTCue.prototype?d.indexOf(h)-d.indexOf(g):d.indexOf(g)-d.indexOf(h)});a=t(a);for(e=a.next();!e.done;e=a.next())this.g.addCue(e.value)};
340
- r.destroy=function(){this.g&&(bk(this.g,function(){return!0}),this.g.mode="disabled");this.g=null;return Promise.resolve()};r.isTextVisible=function(){return"showing"==this.g.mode};r.setTextVisibility=function(a){this.g.mode=a?"showing":"hidden"};
319
+ rj.prototype.Sc=function(){for(var a=this.g.md(),b=t(this.h.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.h.get(d);c.sa=null;var e=this.g.V;d==Ib?(e=e.g,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=ni(e,d),e=bi(e,a));if(!e){(null!=oi(this.g.V,d)||c.ab)&&Gj(this,c);c.Ja&&(c.Ja.abort(),c.Ja=null);if(d===Ib)for(d=this.g.V.F.g,d.l=0,d.h=[],d.g=[],e=d.i,e.i=[],e.h=[],e.g=0,Jh(d),d=t(d.j.values()),e=d.next();!e.done;e=d.next())Eh(e.value);c.Sc=!0}}};
320
+ function Gj(a,b){b.zc||b.Sb||(b.ab?(b.Sb=!0,b.gd=0):null==mi(a.g.V,b.type)?null==b.eb&&yj(a,b,0):(tj(b),Ej(a,b,!1,0)["catch"](function(c){if(a.g)a.g.onError(c)})))}
321
+ function vj(a){var b,c,d,e,f,g,h,k,l,m;return I(function(n){if(1==n.g){b=Jb;if(!a.l)throw new O(2,5,5006);c=new Map;d=new Set;a.l.audio&&(c.set(b.Fb,a.l.audio),d.add(a.l.audio));a.l.video&&(c.set(b.Ma,a.l.video),d.add(a.l.video));a.A&&(c.set(b.ha,a.A),d.add(a.A));e=a.g.V;f=a.i.forceTransmuxTS;return u(n,e.init(c,f,a.m.sequenceMode),2)}uf(a.j);var p=a.m.presentationTimeline.getDuration();Infinity>p?a.g.V.bb(p):a.g.V.bb(Math.pow(2,32));g=t(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),
322
+ a.h.has(k)||(m=xj(l),a.h.set(k,m),yj(a,m,0));z(n)})}function xj(a){return{stream:a,type:a.type,sa:null,Ra:null,rd:null,ie:null,ge:null,fe:null,Qb:null,endOfStream:!1,ab:!1,eb:null,Sb:!1,gd:0,Jd:!1,zc:!1,Sc:!0,ve:!1,Ic:!1,Ja:null}}
323
+ function Hj(a,b){var c,d,e,f,g;return I(function(h){switch(h.g){case 1:uf(a.j);if(b.ab||null==b.eb||b.zc)return h["return"]();b.eb=null;if(!b.Sb){h.D(2);break}return u(h,Ej(a,b,b.Jd,b.gd),3);case 3:return h["return"]();case 2:if(b.stream.segmentIndex){h.D(4);break}c=b.stream;return u(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),null==b.eb&&yj(a,b,0),h["return"]();case 4:A(h,6);d=Ij(a,b);null!=d&&(yj(a,b,d),b.Ic=!1);va(h,7);break;case 6:return e=
324
+ F(h),u(h,Jj(a,e),8);case 8:return h["return"]();case 7:f=Array.from(a.h.values());if(!a.F||!f.every(function(k){return k.endOfStream})){h.D(0);break}return u(h,a.g.V.endOfStream(),10);case 10:uf(a.j),g=a.g.V.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.bb(g),z(h)}})}
325
+ function Ij(a,b){if(Kj(b))return vi(a.g.V,b.stream.originalId||""),null;b.type==Ib&&wi(a.g.V);var c=a.g.md(),d=b.Ra?b.Ra.endTime:c,e=pi(a.g.V,b.type,c),f=Math.max(a.m.minBufferTime||0,a.i.rebufferingGoal,a.i.bufferingGoal)*a.C;if(1E-6>a.m.presentationTimeline.getDuration()-d)return b.endOfStream=!0,"video"==b.type&&(c=a.h.get(Ib))&&Kj(c)&&(c.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.i.updateIntervalSeconds/2;e=oi(a.g.V,b.type);e=Lj(a,b,c,e);if(!e)return a.i.updateIntervalSeconds;f=Infinity;
326
+ var g=Array.from(a.h.values());g=t(g);for(var h=g.next();!h.done;h=g.next())h=h.value,Kj(h)||h.sa&&!h.sa.current()||(f=Math.min(f,h.Ra?h.Ra.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.i.updateIntervalSeconds;Mj(a,b,c,e)["catch"](function(){});return null}
327
+ function Lj(a,b,c,d){if(b.sa)return b.sa.current();if(b.Ra||d)return b.sa=b.stream.segmentIndex.ac(b.Ra?b.Ra.endTime:d),b.sa&&b.sa.next().value;a=a.i.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.sa=b.stream.segmentIndex.ac(d),e=b.sa&&b.sa.next().value);e||(b.sa=b.stream.segmentIndex.ac(c),e=b.sa&&b.sa.next().value);return e}
328
+ function Mj(a,b,c,d){var e,f,g,h,k,l,m,n,p,q,w,y;return I(function(x){switch(x.g){case 1:e=Jb;f=b.stream;g=b.sa;b.ab=!0;A(x,2);if(2==d.od())throw new O(1,1,1011);return u(x,Nj(a,b,d),4);case 4:uf(a.j);if(a.B)return x["return"]();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.i.lowLatencyMode&&k&&h)return n=new Uint8Array(0),p=function(v){var D,C,B;return I(function(G){uf(a.j);if(a.B)return G["return"]();n=Oj(n,v);D=!1;C=0;(new zg).box("mdat",function(E){C=E.size+E.start;
329
+ D=!0}).parse(n,!1,!0);if(!D)return G.D(0);B=n.subarray(0,C);n=n.subarray(C);return u(G,Pj(a,b,c,f,d,B),0)})},u(x,Qj(a,b,d,p),6);l=Qj(a,b,d);return u(x,l,7);case 7:return m=x.h,uf(a.j),a.B?x["return"]():b.Sb?(b.ab=!1,yj(a,b,0),x["return"]()):u(x,Pj(a,b,c,f,d,m),6);case 6:uf(a.j);if(a.B)return x["return"]();b.Ra=d;g.next();b.ab=!1;b.ve=!1;q=a.g.V.kb();w=q[b.type];Za(JSON.stringify(w));b.Sb||a.g.re();yj(a,b,0);va(x,0);break;case 2:y=F(x);uf(a.j,y);if(a.B)return x["return"]();b.ab=!1;if(7001==y.code)b.ab=
330
+ !1,b.eb=null,yj(a,b,0),x.D(0);else if(b.type==e.ha&&a.i.ignoreTextStreamFailures)a.h["delete"](e.ha),x.D(0);else if(3017==y.code)Rj(a,b,y),x.D(0);else if(1001==y.code&&y.data&&404==y.data[1])b.ab=!1,b.eb=null,yj(a,b,1),x.D(0);else return b.Ic=!0,y.severity=2,u(x,Jj(a,y),0)}})}function Oj(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c}
331
+ function Rj(a,b,c){if(!Array.from(a.h.values()).some(function(e){return e!=b&&e.ve})){var d=Math.round(100*a.C);if(20<d)a.C-=.2;else if(4<d)a.C-=.04;else{b.Ic=!0;a.B=!0;a.g.onError(c);return}b.ve=!0}yj(a,b,4)}
332
+ function Nj(a,b,c){var d,e,f,g,h,k,l;return I(function(m){d=[];e=Math.max(0,c.appendWindowStart-.1);f=c.appendWindowEnd+.01;g=c.timestampOffset;if(g!=b.ie||e!=b.ge||f!=b.fe)h=function(){var n;return I(function(p){if(1==p.g)return A(p,2),b.ge=e,b.fe=f,b.ie=g,u(p,yi(a.g.V,b.type,g,e,f,a.m.sequenceMode),4);if(2!=p.g)return va(p,0);n=F(p);b.ge=null;b.fe=null;b.ie=null;throw n;})},d.push(h());!Wh(c.i,b.rd)&&(b.rd=c.i)&&(k=Qj(a,b,c.i),l=function(){var n,p,q;return I(function(w){switch(w.g){case 1:return A(w,
333
+ 2),u(w,k,4);case 4:return n=w.h,uf(a.j),p=b.stream.closedCaptions&&0<b.stream.closedCaptions.size,u(w,qi(a.g.V,b.type,n,null,p),5);case 5:va(w,0);break;case 2:throw q=F(w),b.rd=null,q;}})},a.g.Vg(c.startTime,c.i),d.push(l()));return u(m,Promise.all(d),0)})}
334
+ function Pj(a,b,c,d,e,f){var g,h;return I(function(k){if(1==k.g)return g=d.closedCaptions&&0<d.closedCaptions.size,(null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.i.dispatchAllEmsgBoxes)&&(new zg).Y("emsg",function(l){var m=d.emsgSchemeIdUris;if(0===l.version){var n=l.reader.Pc();var p=l.reader.Pc();var q=l.reader.R();var w=l.reader.R();var y=l.reader.R();var x=l.reader.R();var v=e.startTime+w/q}else q=l.reader.R(),v=l.reader.lc()/q+e.timestampOffset,w=v-e.startTime,y=l.reader.R(),x=l.reader.R(),
335
+ n=l.reader.Pc(),p=l.reader.Pc();l=l.reader.Cb(l.reader.W.byteLength-l.reader.oa());if(m&&m.includes(n)||a.i.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==n?a.g.Wg():(m=(new Map).set("detail",{startTime:v,endTime:v+y/q,schemeIdUri:n,value:p,timescale:q,presentationTimeDelta:w,eventDuration:y,id:x,messageData:l}),m=new L("emsg",m),a.g.onEvent(m))}).parse(f),u(k,Sj(a,b,c),2);if(3!=k.g)return uf(a.j),h=b.Sc,b.Sc=!1,u(k,qi(a.g.V,b.type,f,e,g,h),3);uf(a.j);z(k)})}
336
+ function Sj(a,b,c){var d,e,f,g;return I(function(h){if(1==h.g){d=Math.max(a.i.bufferBehind,a.m.presentationTimeline.g);e=mi(a.g.V,b.type);if(null==e)return h["return"]();f=c-e;g=f-d;return.01>=g?h["return"]():u(h,a.g.V.remove(b.type,e,e+g),2)}uf(a.j);z(h)})}function Kj(a){return a&&a.type==Ib&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)}
337
+ function Qj(a,b,c,d){var e,f,g,h,k;return I(function(l){if(1==l.g)return e=sf,f=qj(c.Pa(),c.Ta,c.Ca,a.i.retryParameters,d),g=b.stream,a.g.modifySegmentRequest(f,{type:g.type,init:c instanceof Vh,duration:c.endTime-c.startTime,mimeType:g.mimeType,codecs:g.codecs,bandwidth:g.bandwidth}),h=a.g.Ob.request(e,f),b.Ja=h,u(l,h.promise,2);k=l.h;b.Ja=null;return l["return"](k.data)})}
338
+ function Ej(a,b,c,d){var e,f;return I(function(g){if(1==g.g)return b.Sb=!1,b.Jd=!1,b.gd=0,b.zc=!0,b.Ra=null,b.rd=null,b.sa=null,d?(e=a.g.md(),f=a.g.V.getDuration(),u(g,a.g.V.remove(b.type,e+d,f),3)):u(g,xi(a.g.V,b.type),4);if(3!=g.g)return uf(a.j),c?u(g,a.g.V.flush(b.type),3):g.D(3);uf(a.j);b.zc=!1;b.endOfStream=!1;yj(a,b,0);z(g)})}
339
+ function yj(a,b,c){var d=b.type;if(d!=Ib||a.h.has(d))b.eb=(new Pc(function(){var e;return I(function(f){if(1==f.g)return A(f,2),u(f,Hj(a,b),4);if(2!=f.g)return va(f,0);e=F(f);if(a.g)a.g.onError(e);z(f)})})).T(c)}function tj(a){null!=a.eb&&(a.eb.stop(),a.eb=null)}function uj(a){return I(function(b){return a.Ja?u(b,a.Ja.abort(),0):b.D(0)})}function Jj(a,b){return I(function(c){if(1==c.g)return u(c,We(a.G),2);uf(a.j);a.g.onError(b);b.handled||a.i.failureCallback(b);z(c)})};function Tj(a,b){var c=Uj(),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 Vj(d)});this.B=new tf(function(){return Wj(d)})}Tj.prototype.destroy=function(){return this.B.destroy()};function Wj(a){var b,c,d;return I(function(e){if(1==e.g)return a.h&&a.h.abort(),Xj(a),u(e,a.C,2);a.g&&a.g.$a.Pb();b=t(a.m);for(c=b.next();!c.done;c=b.next())d=c.value,d.$a.Pb();a.g=null;a.m=[];a.j=null;z(e)})}
340
+ function Yj(a,b){var c={jc:function(){},wd:function(){},Pb:function(){},onError:function(){},yd:function(){},Zi:function(){}};a.m.push({create:b,$a:c});a.h&&a.h.abort();Xj(a);return c}
341
+ function Vj(a){return I(function(b){if(a.B.g)b=b.D(0);else{if(0==a.m.length||a.g&&!a.g.Jb)var c=!1;else{a.g&&(a.g.$a.Pb(),a.g=null);c=a.m.shift();var d=c.create(a.l);d?(c.$a.jc(),a.g={node:d.node,payload:d.payload,Jb:d.Jb,$a:c.$a}):c.$a.yd();c=!0}c?c=Promise.resolve():a.g?c=Zj(a):(a.j.Ug(a.i),a.A=new Nc,c=a.A);b=u(b,c,1)}return b})}
342
+ function Zj(a){var b,c;return I(function(d){switch(d.g){case 1:return a.i=a.j.Ag(a.i,a.l,a.g.node,a.g.payload),A(d,2),a.h=a.j.eg(a.i,a.l,a.g.payload),u(d,a.h.promise,4);case 4:a.h=null;a.i==a.g.node&&(a.g.$a.wd(),a.g=null);va(d,0);break;case 2:b=F(d);if(7001==b.code)a.g.$a.Pb();else a.g.$a.onError(b);a.g=null;a.h=null;c=a;return u(d,a.j.handleError(a.l,b),5);case 5:c.i=d.h,z(d)}})}function Xj(a){a.A&&(a.A.resolve(),a.A=null)};function ak(a){this.g=null;for(var b=t(Array.from(a.textTracks)),c=b.next();!c.done;c=b.next())c=c.value,c.mode="disabled","Shaka Player TextTrack"==c.label&&(this.g=c);this.g||(this.g=a.addTextTrack("subtitles","Shaka Player TextTrack"));this.g.mode="hidden"}r=ak.prototype;r.remove=function(a,b){if(!this.g)return!1;bk(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0};
343
+ r.append=function(a){function b(h,k){for(var l=t(h),m=l.next();!m.done;m=l.next())if(m=m.value,m.isContainer)b(m.nestedCues,k);else{var n=m.clone();n.nestedCues=[];n.payload=c(m);k.push(n)}return k}function c(h){var k=[],l=700<=h.fontWeight,m="italic"==h.fontStyle,n=h.textDecoration.includes("underline");l&&k.push("b");m&&k.push("i");n&&k.push("u");l=k.reduce(function(p,q){return p+"<"+q+">"},"");k=k.reduceRight(function(p,q){return p+"</"+q+">"},"");return h.lineBreak?"\n":h.nestedCues.length?h.nestedCues.map(c).join(""):
344
+ l+h.payload+k}var d=b(a,[]),e=[];a=this.g.cues?Array.from(this.g.cues):[];var f={};d=t(d);for(var g=d.next();!g.done;f={Vb:f.Vb},g=d.next())f.Vb=g.value,a.some(function(h){return function(k){return k.startTime==h.Vb.startTime&&k.endTime==h.Vb.endTime&&k.text==h.Vb.payload?!0:!1}}(f))||(g=ck(f.Vb))&&e.push(g);a=e.slice().sort(function(h,k){return h.startTime!=k.startTime?h.startTime-k.startTime:h.endTime!=k.endTime?h.endTime-k.startTime:"line"in VTTCue.prototype?e.indexOf(k)-e.indexOf(h):e.indexOf(h)-
345
+ e.indexOf(k)});a=t(a);for(f=a.next();!f.done;f=a.next())this.g.addCue(f.value)};r.destroy=function(){this.g&&(bk(this.g,function(){return!0}),this.g.mode="disabled");this.g=null;return Promise.resolve()};r.isTextVisible=function(){return"showing"==this.g.mode};r.setTextVisibility=function(a){this.g.mode=a?"showing":"hidden"};
341
346
  function ck(a){if(a.startTime>=a.endTime)return null;var b=new VTTCue(a.startTime,a.endTime,a.payload);b.lineAlign=a.lineAlign;b.positionAlign=a.positionAlign;a.size&&(b.size=a.size);try{b.align=a.textAlign}catch(c){}"center"==a.textAlign&&"center"!=b.align&&(b.align="middle");"vertical-lr"==a.writingMode?b.vertical="lr":"vertical-rl"==a.writingMode&&(b.vertical="rl");1==a.lineInterpretation&&(b.snapToLines=!1);null!=a.line&&(b.line=a.line);null!=a.position&&(b.position=a.position);return b}
342
- function bk(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=t(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}J("shaka.text.SimpleTextDisplayer",ak);ak.prototype.setTextVisibility=ak.prototype.setTextVisibility;ak.prototype.isTextVisible=ak.prototype.isTextVisible;ak.prototype.destroy=ak.prototype.destroy;ak.prototype.append=ak.prototype.append;ak.prototype.remove=ak.prototype.remove;function dk(){}function R(a){return document.createElement(a)}function ek(){return document.createElement("button")}function fk(a){for(;a.firstChild;)a.removeChild(a.firstChild)}J("shaka.util.Dom",dk);dk.removeAllChildren=fk;function gk(a,b){var c=this;this.j=!1;this.i=[];this.C=a;this.m=b;this.g=R("div");this.g.classList.add("shaka-text-container");this.g.style.textAlign="center";this.g.style.display="flex";this.g.style.flexDirection="column";this.g.style.alignItems="center";this.g.style.justifyContent="flex-end";this.m.appendChild(this.g);this.B=(new P(function(){hk(c)})).ma(.25);this.h=new Map;this.A=new uf;this.A.o(document,"fullscreenchange",function(){hk(c,!0)});this.l=null;"ResizeObserver"in window&&(this.l=new ResizeObserver(function(){hk(c,
343
- !0)}),this.l.observe(this.g))}r=gk.prototype;r.append=function(a){var b=[].concat(ia(this.i)),c={};a=t(a);for(var d=a.next();!d.done;c={Xc:c.Xc},d=a.next())c.Xc=d.value,b.some(function(e){return function(f){return uc(f,e.Xc)}}(c))||this.i.push(c.Xc);hk(this)};r.destroy=function(){this.m.removeChild(this.g);this.g=null;this.j=!1;this.i=[];this.B&&this.B.stop();this.h.clear();this.A&&(this.A.release(),this.A=null);this.l&&(this.l.disconnect(),this.l=null)};
347
+ function bk(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=t(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}J("shaka.text.SimpleTextDisplayer",ak);ak.prototype.setTextVisibility=ak.prototype.setTextVisibility;ak.prototype.isTextVisible=ak.prototype.isTextVisible;ak.prototype.destroy=ak.prototype.destroy;ak.prototype.append=ak.prototype.append;ak.prototype.remove=ak.prototype.remove;function dk(){}function R(a){return document.createElement(a)}function ek(){return document.createElement("button")}function fk(a){for(;a.firstChild;)a.removeChild(a.firstChild)}J("shaka.util.Dom",dk);dk.removeAllChildren=fk;function gk(a,b){var c=this;this.j=!1;this.i=[];this.F=a;this.m=b;this.g=R("div");this.g.classList.add("shaka-text-container");this.g.style.textAlign="center";this.g.style.display="flex";this.g.style.flexDirection="column";this.g.style.alignItems="center";this.g.style.justifyContent="flex-end";this.m.appendChild(this.g);this.C=(new P(function(){hk(c)})).ka(.25);this.h=new Map;this.B=new vf;this.B.o(document,"fullscreenchange",function(){hk(c,!0)});this.l=null;"ResizeObserver"in window&&(this.l=new ResizeObserver(function(){hk(c,
348
+ !0)}),this.l.observe(this.g));this.A=new Map}r=gk.prototype;r.append=function(a){var b=[].concat(ia(this.i)),c={};a=t(a);for(var d=a.next();!d.done;c={Xc:c.Xc},d=a.next())c.Xc=d.value,b.some(function(e){return function(f){return uc(f,e.Xc)}}(c))||this.i.push(c.Xc);hk(this)};r.destroy=function(){this.m.removeChild(this.g);this.g=null;this.j=!1;this.i=[];this.C&&this.C.stop();this.h.clear();this.B&&(this.B.release(),this.B=null);this.l&&(this.l.disconnect(),this.l=null)};
344
349
  r.remove=function(a,b){if(!this.g)return!1;var c=this.i.length;this.i=this.i.filter(function(d){return d.startTime<a||d.endTime>=b});hk(this,c>this.i.length);return!0};r.isTextVisible=function(){return this.j};r.setTextVisibility=function(a){this.j=a};
345
- function ik(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.h.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.Pf:null;l&&(g.push(l.ef),m||(f=!0,a.h["delete"](k),l=null));m&&(h.push(k),l||(jk(a,k,e),l=a.h.get(k),n=l.Pf,f=!0));0<k.nestedCues.length&&n&&ik(a,k.nestedCues,n,d,e);e.pop()}if(f){d=t(g);for(e=d.next();!e.done;e=d.next())c.removeChild(e.value);h.sort(function(p,q){return p.startTime!=q.startTime?p.startTime-q.startTime:p.endTime-q.endTime});
346
- h=t(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),c.appendChild(d.ef)}}function hk(a,b){if(a.g){var c=a.C.currentTime;(!a.j||(void 0===b?0:b))&&0<a.h.size&&(fk(a.g),a.h.clear());if(a.j){for(var d=new Map,e=t(a.h.keys()),f=e.next();!f.done;f=e.next())f=f.value,d.set(f,a.h.get(f));ik(a,a.i,a.g,c,[])}}}
347
- function jk(a,b,c){var d=1<c.length,e=d?"span":"div";b.lineBreak&&(e="br");d=!d&&0<b.nestedCues.length;var f=R(e);"br"!=e&&kk(a,f,b,c,d);c=f;d&&(c=R("span"),c.classList.add("shaka-text-wrapper"),c.style.backgroundColor=b.backgroundColor,f.appendChild(c));a.h.set(b,{ef:f,Pf:c})}
350
+ function ik(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.h.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.Pf:null;l&&(g.push(l.$d),l.Qc&&g.push(l.Qc),m||(f=!0,a.h["delete"](k),l=null));m&&(h.push(k),l||(jk(a,k,e),l=a.h.get(k),n=l.Pf,f=!0));0<k.nestedCues.length&&n&&ik(a,k.nestedCues,n,d,e);e.pop()}if(f){d=t(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(p,q){return p.startTime!=q.startTime?
351
+ p.startTime-q.startTime:p.endTime-q.endTime});h=t(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),d.Qc?(c.appendChild(d.Qc),d.Qc.appendChild(d.$d)):c.appendChild(d.$d)}}function hk(a,b){if(a.g){var c=a.F.currentTime;if(!a.j||(void 0===b?0:b)){for(var d=t(a.A.values()),e=d.next();!e.done;e=d.next())fk(e.value);fk(a.g);a.h.clear();a.A.clear()}if(a.j){d=new Map;e=t(a.h.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,d.set(f,a.h.get(f));ik(a,a.i,a.g,c,[])}}}
352
+ function jk(a,b,c){var d=1<c.length,e=d?"span":"div";b.lineBreak&&(e="br");d=!d&&0<b.nestedCues.length;var f=R(e);"br"!=e&&kk(a,f,b,c,d);c=null;if(b.region&&b.region.id)if(c=b.region,a.A.has(c.id))c=a.A.get(c.id);else{e=R("span");var g=c.heightUnits==Bc?"%":"px",h=c.widthUnits==Bc?"%":"px",k=c.viewportAnchorUnits==Bc?"%":"px";e.id="shaka-text-region---"+c.id;e.classList.add("shaka-text-region");e.style.height=c.height+g;e.style.width=c.width+h;e.style.position="absolute";e.style.top=c.viewportAnchorY+
353
+ k;e.style.left=c.viewportAnchorX+k;e.style.display="flex";e.style.flexDirection="column";e.style.alignItems="center";e.style.justifyContent="before"==b.displayAlign?"flex-start":"center"==b.displayAlign?"center":"flex-end";a.A.set(c.id,e);c=e}e=f;d&&(e=R("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,f.appendChild(e));a.h.set(b,{$d:f,Pf:e,Qc:c})}
348
354
  function kk(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=lk(c.linePadding,c,a.m);f.paddingRight=lk(c.linePadding,c,a.m);f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage="url('"+c.backgroundImage+"')",f.backgroundRepeat=
349
355
  "no-repeat",f.backgroundSize="contain",f.backgroundPosition="center";else{if(c.nestedCues.length)var l=b;else l=R("span"),b.appendChild(l);c.border&&(l.style.border=c.border);e||((b=mk(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?"flex-start":"center"==
350
- 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=lk(c.fontSize,c,a.m);c.line?1==c.lineInterpretation&&(f.position="absolute",f.left="0",f.top="0",c.writingMode==mc?(f.width="100%",c.lineAlign==oc?f.top=c.line+"%":"end"==c.lineAlign&&(f.bottom=c.line+"%")):"vertical-lr"==c.writingMode?(f.height="100%",c.lineAlign==oc?f.left=c.line+"%":"end"==c.lineAlign&&(f.right=c.line+
351
- "%")):(f.height="100%",c.lineAlign==oc?f.right=c.line+"%":"end"==c.lineAlign&&(f.left=c.line+"%"))):c.region&&c.region.id&&(a=c.region.widthUnits==Bc?"%":"px",d=c.region.viewportAnchorUnits==Bc?"%":"px",f.height=c.region.height+(c.region.heightUnits==Bc?"%":"px"),f.width=c.region.width+a,f.position="absolute",f.top=c.region.viewportAnchorY+d,f.left=c.region.viewportAnchorX+d);f.lineHeight=c.lineHeight;c.position&&(c.writingMode==mc?f.paddingLeft=c.position:f.paddingTop=c.position);"line-left"==c.positionAlign?
352
- f.cssFloat="left":"line-right"==c.positionAlign&&(f.cssFloat="right");f.textAlign=c.textAlign;f.textDecoration=c.textDecoration.join(" ");f.writingMode=c.writingMode;"writingMode"in document.documentElement.style&&f.writingMode==c.writingMode||(f.webkitWritingMode=c.writingMode);c.size&&(c.writingMode==mc?f.width=c.size+"%":f.height=c.size+"%")}
353
- function lk(a,b,c){var d=(d=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(d[1]),unit:d[2]}:null;if(!d)return a;var e=d.value;switch(d.unit){case "%":return e/100*c.clientHeight/b.cellResolution.rows+"px";case "c":return c.clientHeight*e/b.cellResolution.rows+"px";default:return a}}function mk(a,b){for(var c=a.length-1;0<=c;c--){var d=b(a[c]);if(d||0===d)return d}return null}J("shaka.text.UITextDisplayer",gk);gk.prototype.setTextVisibility=gk.prototype.setTextVisibility;
354
- gk.prototype.isTextVisible=gk.prototype.isTextVisible;gk.prototype.remove=gk.prototype.remove;gk.prototype.destroy=gk.prototype.destroy;gk.prototype.append=gk.prototype.append;function nk(a,b){function c(h){for(var k=h,l=t(b),m=l.next();!m.done;m=l.next())m=m.value,m.end&&m.start<h&&(k+=m.end-m.start);h=Math.floor(k/3600);l=Math.floor(k/60%60);m=Math.floor(k%60);k=Math.floor(1E3*k%1E3);return(10>h?"0":"")+h+":"+(10>l?"0":"")+l+":"+(10>m?"0":"")+m+"."+(100>k?10>k?"00":"0":"")+k}function d(h){var k=[],l=700<=h.fontWeight,m="italic"==h.fontStyle,n=h.textDecoration.includes("underline");l&&k.push("b");m&&k.push("i");n&&k.push("u");l=k.reduce(function(p,q){return p+"<"+q+">"},
355
- "");k=k.reduceRight(function(p,q){return p+"</"+q+">"},"");return h.lineBreak?"\n":h.nestedCues.length?h.nestedCues.map(d).join(""):l+h.payload+k}var e=a.map(function(h){if(h.nestedCues.length){var k=h.clone();k.nestedCues=[];k.payload=d(h);return k}return h}),f="WEBVTT\n\n";e=t(e);for(var g=e.next();!g.done;g=e.next())g=g.value,f+=c(g.startTime)+" --\x3e "+c(g.endTime)+function(h){var k=[];switch(h.textAlign){case "left":k.push("align:left");break;case "right":k.push("align:right");break;case lc:k.push("align:middle");
356
+ 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=lk(c.fontSize,c,a.m);c.line&&1==c.lineInterpretation&&(f.position="absolute",f.left="0",f.top="0",c.writingMode==lc?(f.width="100%",c.lineAlign==nc?f.top=c.line+"%":"end"==c.lineAlign&&(f.bottom=c.line+"%")):"vertical-lr"==c.writingMode?(f.height="100%",c.lineAlign==nc?f.left=c.line+"%":"end"==c.lineAlign&&(f.right=
357
+ c.line+"%")):(f.height="100%",c.lineAlign==nc?f.right=c.line+"%":"end"==c.lineAlign&&(f.left=c.line+"%")));f.lineHeight=c.lineHeight;c.position&&(c.writingMode==lc?f.paddingLeft=c.position:f.paddingTop=c.position);"line-left"==c.positionAlign?f.cssFloat="left":"line-right"==c.positionAlign&&(f.cssFloat="right");f.textAlign=c.textAlign;f.textDecoration=c.textDecoration.join(" ");f.writingMode=c.writingMode;"writingMode"in document.documentElement.style&&f.writingMode==c.writingMode||(f.webkitWritingMode=
358
+ c.writingMode);c.size&&(c.writingMode==lc?f.width=c.size+"%":f.height=c.size+"%")}function lk(a,b,c){var d=(d=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(d[1]),unit:d[2]}:null;if(!d)return a;var e=d.value;switch(d.unit){case "%":return e/100*c.clientHeight/b.cellResolution.rows+"px";case "c":return c.clientHeight*e/b.cellResolution.rows+"px";default:return a}}function mk(a,b){for(var c=a.length-1;0<=c;c--){var d=b(a[c]);if(d||0===d)return d}return null}
359
+ J("shaka.text.UITextDisplayer",gk);gk.prototype.setTextVisibility=gk.prototype.setTextVisibility;gk.prototype.isTextVisible=gk.prototype.isTextVisible;gk.prototype.remove=gk.prototype.remove;gk.prototype.destroy=gk.prototype.destroy;gk.prototype.append=gk.prototype.append;function nk(a,b){function c(h){for(var k=h,l=t(b),m=l.next();!m.done;m=l.next())m=m.value,m.end&&m.start<h&&(k+=m.end-m.start);h=Math.floor(k/3600);l=Math.floor(k/60%60);m=Math.floor(k%60);k=Math.floor(1E3*k%1E3);return(10>h?"0":"")+h+":"+(10>l?"0":"")+l+":"+(10>m?"0":"")+m+"."+(100>k?10>k?"00":"0":"")+k}function d(h){var k=[],l=700<=h.fontWeight,m="italic"==h.fontStyle,n=h.textDecoration.includes("underline");l&&k.push("b");m&&k.push("i");n&&k.push("u");l=k.reduce(function(p,q){return p+"<"+q+">"},
360
+ "");k=k.reduceRight(function(p,q){return p+"</"+q+">"},"");return h.lineBreak?"\n":h.nestedCues.length?h.nestedCues.map(d).join(""):l+h.payload+k}var e=a.map(function(h){if(h.nestedCues.length){var k=h.clone();k.nestedCues=[];k.payload=d(h);return k}return h}),f="WEBVTT\n\n";e=t(e);for(var g=e.next();!g.done;g=e.next())g=g.value,f+=c(g.startTime)+" --\x3e "+c(g.endTime)+function(h){var k=[];switch(h.textAlign){case "left":k.push("align:left");break;case "right":k.push("align:right");break;case kc:k.push("align:middle");
356
361
  break;case "start":k.push("align:start");break;case "end":k.push("align:end")}switch(h.writingMode){case "vertical-lr":k.push("vertical:lr");break;case "vertical-rl":k.push("vertical:rl")}return k.length?" "+k.join(" "):""}(g)+"\n",f+=g.payload+"\n\n";return f}J("shaka.text.WebVttGenerator",function(){});function ok(a,b){this.h=a;this.g=b;this.j="";this.A=void 0;this.i=!1;this.m=!0;this.l=!1}function pk(a,b,c){try{if(a.g.enabled){var d={d:1E3*c.duration,st:a.h.U()?qk:rk};d.ot=sk(c);var e=d.ot===tk||d.ot===uk||d.ot===vk||d.ot===wk;e&&(d.bl=xk(a,c.type));c.bandwidth&&(d.br=c.bandwidth/1E3);e&&d.ot!==wk&&(d.tb=yk(a,d.ot)/1E3);zk(a,b,d)}}catch(f){Va("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",f)}}
357
362
  function Ak(a,b,c){try{if(!a.g.enabled)return b;var d=Bk(a);a:{switch(c){case "video/webm":case "video/mp4":var e=vk;break a;case "application/x-mpegurl":e=Ck;break a}e=void 0}d.ot=e;d.su=!0;var f=Dk(d);return Ek(b,f)}catch(g){return Va("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}function Bk(a){a.j||(a.j=a.g.sessionId||window.crypto.randomUUID());return{v:1,sf:a.A,sid:a.j,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}}
358
- function zk(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled){Object.assign(c,Bk(a));c.pr=a.h.Bb();var e=c.ot===tk||c.ot===vk;a.l&&e&&(c.bs=!0,c.su=!0,a.l=!1);null==c.su&&(c.su=a.m);if(d)a=Fk(c),Object.keys(a).length&&Object.assign(b.headers,a);else{var f=Dk(c);f&&(b.uris=b.uris.map(function(g){return Ek(g,f)}))}}}
359
- function sk(a){var b=a.type;if(a.init)return Gk;if("video"==b)return a.codecs.includes(",")?vk:tk;if("audio"==b)return uk;if("text"==b)return"application/mp4"===a.mimeType?wk:Hk}function xk(a,b){var c=a.h.ob()[b];if(!c.length)return NaN;var d=a.h.getCurrentTime();return(c=c.find(function(e){return e.start<=d&&e.end>=d}))?1E3*(c.end-d):NaN}
360
- function yk(a,b){var c=a.h.Sa();if(!c.length)return NaN;var d=c[0];c=t(c);for(var e=c.next();!e.done;e=c.next())e=e.value,"variant"===e.type&&e.bandwidth>d.bandwidth&&(d=e);switch(b){case tk:return d.videoBandwidth||NaN;case uk:return d.audioBandwidth||NaN;default:return d.bandwidth}}
363
+ function zk(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled){Object.assign(c,Bk(a));c.pr=a.h.zb();var e=c.ot===tk||c.ot===vk;a.l&&e&&(c.bs=!0,c.su=!0,a.l=!1);null==c.su&&(c.su=a.m);if(d)a=Fk(c),Object.keys(a).length&&Object.assign(b.headers,a);else{var f=Dk(c);f&&(b.uris=b.uris.map(function(g){return Ek(g,f)}))}}}
364
+ function sk(a){var b=a.type;if(a.init)return Gk;if("video"==b)return a.codecs.includes(",")?vk:tk;if("audio"==b)return uk;if("text"==b)return"application/mp4"===a.mimeType?wk:Hk}function xk(a,b){var c=a.h.kb()[b];if(!c.length)return NaN;var d=a.h.getCurrentTime();return(c=c.find(function(e){return e.start<=d&&e.end>=d}))?1E3*(c.end-d):NaN}
365
+ function yk(a,b){var c=a.h.Qa();if(!c.length)return NaN;var d=c[0];c=t(c);for(var e=c.next();!e.done;e=c.next())e=e.value,"variant"===e.type&&e.bandwidth>d.bandwidth&&(d=e);switch(b){case tk:return d.videoBandwidth||NaN;case uk:return d.audioBandwidth||NaN;default:return d.bandwidth}}
361
366
  function Dk(a){function b(n){return 100*c(n/100)}function c(n){return Math.round(n)}function d(n){return!Number.isNaN(n)&&null!=n&&""!==n&&!1!==n}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(n){return encodeURIComponent(n)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=t(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h];if(d(k)&&("v"!==h||1!==k)&&("pr"!=h||1!==k)){var l=f[h];l&&(k=l(k));l=typeof k;var m=void 0;m="string"===l&&"ot"!==h&&"sf"!==h&&"st"!==h?h+"="+JSON.stringify(k):"boolean"===
362
367
  l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function Fk(a){var b=Object.keys(a),c={},d=["Object","Request","Session","Status"],e=[{},{},{},{}],f={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3};b=t(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[null!=f[g]?f[g]:1][g]=a[g];for(a=0;a<e.length;a++)(f=Dk(e[a]))&&(c["CMCD-"+d[a]]=f);return c}
363
- function Ek(a,b){if(!b||a.includes("offline:"))return a;var c=new lb(a);c.g.set("CMCD",b);return c.toString()}var Ck="m",uk="a",tk="v",vk="av",Gk="i",Hk="c",wk="tt",rk="v",qk="l";J("shaka.util.CmcdManager.StreamingFormat",{Jh:"d",Yh:"h",Gi:"s",ni:"o"});function Ik(){}
364
- function Jk(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]=cf(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=cf(l)),k=Jk(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 "+
368
+ function Ek(a,b){if(!b||a.includes("offline:"))return a;var c=new lb(a);c.g.set("CMCD",b);return c.toString()}var Ck="m",uk="a",tk="v",vk="av",Gk="i",Hk="c",wk="tt",rk="v",qk="l";J("shaka.util.CmcdManager.StreamingFormat",{Ih:"d",Xh:"h",Fi:"s",mi:"o"});function Ik(){}
369
+ function Jk(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]=df(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=df(l)),k=Jk(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 "+
365
370
  k),g=!1)}return g}function Kk(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 Lk(a,b){return a&&b}J("shaka.util.ConfigUtils",Ik);Ik.convertToConfigObject=Kk;Ik.mergeConfigObjects=Jk;function Mk(){}
366
- function Nk(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&(a=360);var b={retryParameters:Ue(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:function(g,h,k){return Lk([g,h,k],g)},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{}},c={retryParameters:Ue(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,dash:{clockSyncUri:"",
371
+ function Nk(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&(a=360);var b={retryParameters:Ve(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:function(g,h,k){return Lk([g,h,k],g)},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{}},c={retryParameters:Ve(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,dash:{clockSyncUri:"",
367
372
  ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready",
368
- "urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},manifestPreprocessor:function(g){return Lk([g],g)}},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"'}},d={retryParameters:Ue(),failureCallback:function(g){return Lk([g],void 0)},
373
+ "urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},manifestPreprocessor:function(g){return Lk([g],g)}},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"'}},d={retryParameters:Ve(),failureCallback:function(g){return Lk([g],void 0)},
369
374
  rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,durationBackoff:1,forceTransmuxTS:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1,maxDisabledTime:30};if(navigator.userAgent.match(/Edge\//)||
370
- Hd()||Id())d.gapDetectionThreshold=.5;if(Gd("Web0S")||Hd()||Id())d.stallSkip=0;var e={trackSelectionCallback:function(g){return I(function(h){return h["return"](g)})},downloadSizeCallback:function(g){var h;return I(function(k){if(1==k.g)return navigator.storage&&navigator.storage.estimate?u(k,navigator.storage.estimate(),3):k["return"](!0);h=k.h;return k["return"](h.usage+g<.95*h.quota)})},progressCallback:function(g,h){return Lk([g,h],void 0)},usePersistentLicense:!0,numberOfParallelDownloads:5},
371
- f={drm:b,manifest:c,streaming:d,offline:e,abrFactory:function(){return new Ce},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1E6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},advanced:{minTotalBytes:128E3,minBytes:16E3,fastHalfLife:2,slowHalfLife:5}},preferredAudioLanguage:"",preferredTextLanguage:"",
375
+ Wc()||Yc())d.gapDetectionThreshold=.5;if(Vc("Web0S")||Wc()||Yc())d.stallSkip=0;var e={trackSelectionCallback:function(g){return I(function(h){return h["return"](g)})},downloadSizeCallback:function(g){var h;return I(function(k){if(1==k.g)return navigator.storage&&navigator.storage.estimate?u(k,navigator.storage.estimate(),3):k["return"](!0);h=k.h;return k["return"](h.usage+g<.95*h.quota)})},progressCallback:function(g,h){return Lk([g,h],void 0)},usePersistentLicense:!0,numberOfParallelDownloads:5},
376
+ f={drm:b,manifest:c,streaming:d,offline:e,abrFactory:function(){return new De},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1E6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},advanced:{minTotalBytes:128E3,minBytes:16E3,fastHalfLife:2,slowHalfLife:5}},preferredAudioLanguage:"",preferredTextLanguage:"",
372
377
  preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:Infinity,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},playRangeStart:0,playRangeEnd:Infinity,textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",useHeaders:!1}};e.trackSelectionCallback=
373
378
  function(g){return I(function(h){return h["return"](Ok(g,f.preferredAudioLanguage))})};return f}function Pk(a,b,c){var d={".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return Jk(a,b,c||Nk(),d,"")}
374
- function Ok(a,b){var c=a.filter(function(h){return"variant"==h.type}),d=[],e=Vb(b,c.map(function(h){return h.language}));e&&(d=c.filter(function(h){return Nb(h.language)==e}));0==d.length&&(d=c.filter(function(h){return h.primary}));0==d.length&&(c.map(function(h){return h.language}),d=c);var f=d.filter(function(h){return h.height&&480>=h.height});f.length&&(f.sort(function(h,k){return k.height-h.height}),d=f.filter(function(h){return h.height==f[0].height}));c=[];if(d.length){var g=Math.floor(d.length/
379
+ function Ok(a,b){var c=a.filter(function(h){return"variant"==h.type}),d=[],e=Ub(b,c.map(function(h){return h.language}));e&&(d=c.filter(function(h){return Mb(h.language)==e}));0==d.length&&(d=c.filter(function(h){return h.primary}));0==d.length&&(c.map(function(h){return h.language}),d=c);var f=d.filter(function(h){return h.height&&480>=h.height});f.length&&(f.sort(function(h,k){return k.height-h.height}),d=f.filter(function(h){return h.height==f[0].height}));c=[];if(d.length){var g=Math.floor(d.length/
375
380
  2);d.sort(function(h,k){return h.bandwidth-k.bandwidth});c.push(d[g])}d=t(a);for(g=d.next();!g.done;g=d.next())g=g.value,g.type!=Ib&&"image"!=g.type||c.push(g);return c}J("shaka.util.PlayerConfiguration",Mk);Mk.mergeConfigObjects=Pk;Mk.createDefault=Nk;function Qk(){this.g=null;this.h=[]}function Rk(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 Sk(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);for(var d=t(a.h),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c}
376
- function Tk(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Uk(){this.i=this.h=null;this.g=[]}function Vk(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 Wk(){this.A=this.B=this.H=this.F=this.m=this.j=this.G=this.l=this.i=this.M=this.P=this.I=this.J=this.K=this.C=this.S=NaN;this.g=new Qk;this.h=new Uk};function S(a,b){fb.call(this);var c=this;this.l=Xk;this.pd=this.g=null;this.ba=!1;this.td=new uf;this.jb=new uf;this.A=new uf;this.oe=this.C=this.ib=this.i=this.vd=this.J=this.j=this.ha=this.S=this.Cd=this.M=this.qd=this.I=this.Za=this.F=this.K=this.m=this.H=null;this.Rf=1E9;this.h=Yk(this);this.Dc={width:Infinity,height:Infinity};this.B=null;this.za=new Le(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount);this.Ma=this.h.preferredTextLanguage;this.yb=this.h.preferredTextRole;
377
- this.kb=this.h.preferForcedSubs;this.hb=[];this.Jc=null;b&&b(this);this.H=Zk(this);this.H.Be(this.h.streaming.forceHTTPS);this.G=null;$k&&(this.G=$k());this.td.o(window,"online",function(){c.re()});this.P={name:"detach"};this.X={name:"attach"};this.aa={name:"unload"};this.Se={name:"manifest-parser"};this.Qe={name:"manifest"};this.Na={name:"media-source"};this.se={name:"drm-engine"};this.$={name:"load"};this.Te={name:"src-equals-drm-engine"};this.$a={name:"src-equals"};var d=new Map;d.set(this.X,function(e,
378
- f){return $e(al(c,e,f))});d.set(this.P,function(e){e.N&&(c.jb.Rc(),e.N=null);c.G&&c.G.release();c.g=null;e=Promise.resolve();return $e(e)});d.set(this.aa,function(e){return $e(bl(c,e))});d.set(this.Na,function(e){e=cl(c,e);return $e(e)});d.set(this.Se,function(e,f){var g=dl(c,e,f);return $e(g)});d.set(this.Qe,function(e){return el(c,e)});d.set(this.se,function(e){e=fl(c,e);return $e(e)});d.set(this.$,function(e,f){return $e(gl(c,e,f))});d.set(this.Te,function(e,f){var g=hl(c,e,f);return $e(g)});d.set(this.$a,
379
- function(e,f){return il(c,e,f)});this.ua=new Tj(this.P,{Ag:function(e,f,g,h){var k=null;e==c.P&&(k=g==c.P?c.P:c.X);e==c.X&&(k=g==c.P||f.N!=h.N?c.P:g==c.X?c.X:g==c.Na||g==c.$?c.Na:g==c.$a?c.Te:null);e==c.Na&&(k=g==c.$&&f.N==h.N?c.Se:c.aa);e==c.Se&&(k=jl(c.$,c.Qe,c.aa,g,f,h));e==c.Qe&&(k=jl(c.$,c.se,c.aa,g,f,h));e==c.se&&(k=jl(c.$,c.$,c.aa,g,f,h));e==c.Te&&(k=g==c.$a&&f.N==h.N?c.$a:c.aa);if(e==c.$||e==c.$a)k=c.aa;e==c.aa&&(k=h.N&&f.N==h.N?c.X:c.P);return k},eg:function(e,f,g){c.dispatchEvent(kl("onstatechange",
380
- (new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return I(function(f){return 1==f.g?u(f,bl(c,e),2):f["return"](e.N?c.X:c.P)})},Vg:function(e){c.dispatchEvent(kl("onstateidle",(new Map).set("state",e.name)))}});this.Qf=new P(function(){ae(c.i.variants,c.h.restrictions,c.Dc)&&ll(c)});a&&this.Ac(a,!0)}ra(S,fb);function kl(a,b){return new M(a,b)}r=S.prototype;
381
- r.destroy=function(){var a=this,b;return I(function(c){switch(c.g){case 1:if(a.l==ml)return c["return"]();a.l=ml;b=Yj(a.ua,function(){return{node:a.P,payload:Uj(),Lb:!1}});return u(c,new Promise(function(d){b.lc=function(){};b.wd=function(){d()};b.Rb=function(){d()};b.onError=function(){d()};b.yd=function(){d()}}),2);case 2:return u(c,a.ua.destroy(),3);case 3:a.td&&(a.td.release(),a.td=null);a.jb&&(a.jb.release(),a.jb=null);a.A&&(a.A.release(),a.A=null);a.oe=null;a.C=null;a.h=null;a.B=null;a.pd=null;
381
+ function Tk(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function Uk(){this.i=this.h=null;this.g=[]}function Vk(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 Wk(){this.A=this.B=this.H=this.F=this.m=this.j=this.G=this.l=this.i=this.N=this.P=this.I=this.J=this.K=this.C=this.S=NaN;this.g=new Qk;this.h=new Uk};function S(a,b){fb.call(this);var c=this;this.l=Xk;this.pd=this.g=null;this.ba=!1;this.td=new vf;this.hb=new vf;this.A=new vf;this.se=this.C=this.gb=this.i=this.vd=this.J=this.j=this.ea=this.S=this.Cd=this.N=this.qd=this.I=this.Xa=this.F=this.K=this.m=this.H=null;this.Rf=1E9;this.h=Yk(this);this.Bc={width:Infinity,height:Infinity};this.B=null;this.ya=new Me(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount);this.za=this.h.preferredTextLanguage;this.wb=this.h.preferredTextRole;
382
+ this.ib=this.h.preferForcedSubs;this.fb=[];this.Hc=null;b&&b(this);this.H=Zk(this);this.H.Fe(this.h.streaming.forceHTTPS);this.G=null;$k&&(this.G=$k());this.td.o(window,"online",function(){c.we()});this.P={name:"detach"};this.X={name:"attach"};this.aa={name:"unload"};this.Ve={name:"manifest-parser"};this.Ue={name:"manifest"};this.La={name:"media-source"};this.xe={name:"drm-engine"};this.$={name:"load"};this.We={name:"src-equals-drm-engine"};this.Ya={name:"src-equals"};var d=new Map;d.set(this.X,function(e,
383
+ f){return af(al(c,e,f))});d.set(this.P,function(e){e.O&&(c.hb.Rc(),e.O=null);c.G&&c.G.release();c.g=null;e=Promise.resolve();return af(e)});d.set(this.aa,function(e){return af(bl(c,e))});d.set(this.La,function(e){e=cl(c,e);return af(e)});d.set(this.Ve,function(e,f){var g=dl(c,e,f);return af(g)});d.set(this.Ue,function(e){return el(c,e)});d.set(this.xe,function(e){e=fl(c,e);return af(e)});d.set(this.$,function(e,f){return af(gl(c,e,f))});d.set(this.We,function(e,f){var g=hl(c,e,f);return af(g)});d.set(this.Ya,
384
+ function(e,f){return il(c,e,f)});this.ma=new Tj(this.P,{Ag:function(e,f,g,h){var k=null;e==c.P&&(k=g==c.P?c.P:c.X);e==c.X&&(k=g==c.P||f.O!=h.O?c.P:g==c.X?c.X:g==c.La||g==c.$?c.La:g==c.Ya?c.We:null);e==c.La&&(k=g==c.$&&f.O==h.O?c.Ve:c.aa);e==c.Ve&&(k=jl(c.$,c.Ue,c.aa,g,f,h));e==c.Ue&&(k=jl(c.$,c.xe,c.aa,g,f,h));e==c.xe&&(k=jl(c.$,c.$,c.aa,g,f,h));e==c.We&&(k=g==c.Ya&&f.O==h.O?c.Ya:c.aa);if(e==c.$||e==c.Ya)k=c.aa;e==c.aa&&(k=h.O&&f.O==h.O?c.X:c.P);return k},eg:function(e,f,g){c.dispatchEvent(kl("onstatechange",
385
+ (new Map).set("state",e.name)));return d.get(e)(f,g)},handleError:function(e){return I(function(f){return 1==f.g?u(f,bl(c,e),2):f["return"](e.O?c.X:c.P)})},Ug:function(e){c.dispatchEvent(kl("onstateidle",(new Map).set("state",e.name)))}});this.Qf=new P(function(){be(c.i.variants,c.h.restrictions,c.Bc)&&ll(c)});a&&this.yc(a,!0)}qa(S,fb);function kl(a,b){return new L(a,b)}r=S.prototype;
386
+ r.destroy=function(){var a=this,b;return I(function(c){switch(c.g){case 1:if(a.l==ml)return c["return"]();a.l=ml;b=Yj(a.ma,function(){return{node:a.P,payload:Uj(),Jb:!1}});return u(c,new Promise(function(d){b.jc=function(){};b.wd=function(){d()};b.Pb=function(){d()};b.onError=function(){d()};b.yd=function(){d()}}),2);case 2:return u(c,a.ma.destroy(),3);case 3:a.td&&(a.td.release(),a.td=null);a.hb&&(a.hb.release(),a.hb=null);a.A&&(a.A.release(),a.A=null);a.se=null;a.C=null;a.h=null;a.B=null;a.pd=null;
382
387
  a.S=null;if(!a.H){c.D(4);break}return u(c,a.H.destroy(),5);case 5:a.H=null;case 4:fb.prototype.release.call(a),z(c)}})};
383
- function nl(){window.Promise||Ua("A Promise implementation or polyfill is required");window.TextDecoder&&window.TextEncoder||Ua("A TextDecoder/TextEncoder implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&window.TextDecoder&&window.TextEncoder&&Array.prototype.forEach)||Gd("Trident/"))return!1;var a=Kd();return a&&13>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?
384
- !1:yd()?!0:zd("application/x-mpegurl")}r.Ac=function(a,b){b=void 0===b?!0:b;if(this.l==ml)return Promise.reject(ol());var c=Uj();c.N=a;yd()||(b=!1);var d=b?this.Na:this.X,e=Yj(this.ua,function(){return{node:d,payload:c,Lb:!1}});e.lc=function(){};return pl(e)};r.detach=function(){var a=this;if(this.l==ml)return Promise.reject(ol());var b=Yj(this.ua,function(){return{node:a.P,payload:Uj(),Lb:!1}});b.lc=function(){};return pl(b)};
385
- r.Oe=function(a){var b=this;a=void 0===a?!0:a;if(this.l==ml)return Promise.reject(ol());yd()||(a=!1);var c=Uj(),d=Yj(this.ua,function(e){var f=e.N&&a?b.Na:e.N?b.X:b.P;c.N=e.N;return{node:f,payload:c,Lb:!1}});d.lc=function(){};return pl(d)};r.wh=function(a){this.Jc=a};
386
- r.load=function(a,b,c){var d=this;this.Jc=null;if(this.l==ml)return Promise.reject(ol());this.dispatchEvent(kl("loading"));var e=Uj();e.uri=a;e.Ie=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=ql(this,e)?this.$a:this.$,g=Yj(this.ua,function(h){if(null==h.N)return null;e.N=h.N;return{node:f,payload:e,Lb:!0}});this.B=new Wk;this.S=rl(this);g.lc=function(){};return new Promise(function(h,k){g.yd=function(){return k(new O(2,7,7002))};g.wd=function(){h();d.dispatchEvent(kl("loaded"))};
387
- g.Rb=function(){return k(ol())};g.onError=function(l){return k(l)}})};function ql(a,b){if(!yd())return!0;var c=b.mimeType,d=b.uri||"";c||(c=sg(d),c=sl[c]);if(c){if(""==(b.N||Ad()).canPlayType(c))return!1;if(!yd()||!(c in rg||sg(d)in tg)||a.h.streaming.preferNativeHls)return!0;if(Jd())return a.h.streaming.useNativeHlsOnSafari}return!1}function al(a,b,c){null==b.N&&(b.N=c.N,a.jb.o(b.N,"error",function(){var d=tl(a);d&&ul(a,d)}));a.g=b.N;return Promise.resolve()}
388
- function bl(a,b){var c,d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:return a.l!=ml&&(a.l=Xk),c=a.hb.map(function(p){return p()}),a.hb=[],u(n,Promise.all(c),2);case 2:a.dispatchEvent(kl("unloading"));b.mimeType=null;b.startTime=null;b.uri=null;b.N&&a.A.Rc();a.Qf.stop();a.Za&&(a.Za.release(),a.Za=null);a.qd&&(a.qd.stop(),a.qd=null);if(!a.J){n.D(3);break}return u(n,a.J.stop(),4);case 4:a.J=null,a.vd=null;case 3:if(!a.C){n.D(5);break}return u(n,a.C.stop(),5);case 5:if(!a.j){n.D(7);break}return u(n,
389
- a.j.destroy(),8);case 8:a.j=null;case 7:a.I&&(a.I.release(),a.I=null);a.F&&(a.F.release(),a.F=null);if(!a.K){n.D(9);break}return u(n,a.K.destroy(),10);case 10:a.K=null;case 9:if(a.G)a.G.onAssetUnload();if(!b.N||!b.N.src){n.D(11);break}return u(n,new Promise(function(p){return(new P(p)).T(.1)}),12);case 12:for(b.N.removeAttribute("src"),b.N.load();b.N.lastChild;)b.N.removeChild(b.N.firstChild);case 11:if(!a.m){n.D(13);break}return u(n,a.m.destroy(),14);case 14:a.m=null;case 13:a.ib=null;a.M=null;if(a.i){d=
390
- t(a.i.variants);for(e=d.next();!e.done;e=d.next())for(f=e.value,g=t([f.audio,f.video]),h=g.next();!h.done;h=g.next())(k=h.value)&&k.segmentIndex&&k.segmentIndex.release();l=t(a.i.textStreams);for(h=l.next();!h.done;h=l.next())m=h.value,m.segmentIndex&&m.segmentIndex.release()}a.i=null;a.B=new Wk;a.Ne=null;vl(a);z(n)}})}
391
- function cl(a,b){var c,d,e,f,g,h;return I(function(k){if(1==k.g)return c=new Sh,d=a.h.textDisplayFactory,e=d(),a.Ne=d,f=wl(b.N,c,e,function(l,m,n){l=t(l);for(var p=l.next();!p.done;p=l.next())if(p=p.value,p.data&&p.cueTime&&p.frames){for(var q=p.cueTime+m,x=n,w=t(p.frames),v=w.next();!v.done;v=w.next())xl(a,q,x,"ID3",v.value);if(a.G)a.G.onHlsTimedMetadata(p,q)}}),g=a.h.manifest,h=g.segmentRelativeVttTiming,f.H=h,u(k,f.I,2);a.K=f;z(k)})}
392
- function dl(a,b,c){var d,e,f,g;return I(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.H,a.ib=d,f=a,u(h,qg(d,e,a.h.manifest.retryParameters,b.mimeType),2);f.vd=h.h;a.J=a.vd();g=cf(a.h.manifest);c.N&&"AUDIO"===c.N.nodeName&&(g.disableVideo=!0);a.J.configure(g);z(h)})}
393
- function el(a,b){var c=b.uri,d=a.H;a.Cd=new kj(function(){return a.Ia()});a.Cd.addEventListener("regionadd",function(g){g=g.region;yl(a,"timelineregionadded",g);if(a.G)a.G.onDashTimedMetadata(g)});a.ha=null;a.h.streaming.observeQualityChanges&&(a.ha=new gj(function(){return a.ob()}),a.ha.addEventListener("qualitychange",function(g){var h=g.quality;g=g.position;h=(new Map).set("mediaQuality",{bandwidth:h.bandwidth,audioSamplingRate:h.audioSamplingRate,codecs:h.codecs,contentType:h.contentType,frameRate:h.frameRate,
388
+ function nl(){window.Promise||Ua("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||Vc("Trident/"))return!1;var a=ad();return a&&13>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Qc()?!0:Rc("application/x-mpegurl")}
389
+ r.yc=function(a,b){b=void 0===b?!0:b;if(this.l==ml)return Promise.reject(ol());var c=Uj();c.O=a;Qc()||(b=!1);var d=b?this.La:this.X,e=Yj(this.ma,function(){return{node:d,payload:c,Jb:!1}});e.jc=function(){};return pl(e)};r.detach=function(){var a=this;if(this.l==ml)return Promise.reject(ol());var b=Yj(this.ma,function(){return{node:a.P,payload:Uj(),Jb:!1}});b.jc=function(){};return pl(b)};
390
+ r.Se=function(a){var b=this;a=void 0===a?!0:a;if(this.l==ml)return Promise.reject(ol());Qc()||(a=!1);var c=Uj(),d=Yj(this.ma,function(e){var f=e.O&&a?b.La:e.O?b.X:b.P;c.O=e.O;return{node:f,payload:c,Jb:!1}});d.jc=function(){};return pl(d)};r.vh=function(a){this.Hc=a};
391
+ r.load=function(a,b,c){var d=this;this.Hc=null;if(this.l==ml)return Promise.reject(ol());this.dispatchEvent(kl("loading"));var e=Uj();e.uri=a;e.Me=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=ql(this,e)?this.Ya:this.$,g=Yj(this.ma,function(h){if(null==h.O)return null;e.O=h.O;return{node:f,payload:e,Jb:!0}});this.B=new Wk;this.S=rl(this);g.jc=function(){};return new Promise(function(h,k){g.yd=function(){return k(new O(2,7,7002))};g.wd=function(){h();d.dispatchEvent(kl("loaded"))};
392
+ g.Pb=function(){return k(ol())};g.onError=function(l){return k(l)}})};function ql(a,b){if(!Qc())return!0;var c=b.mimeType,d=b.uri||"";c||(c=tg(d),c=sl[c]);if(c){if(""==(b.O||Tc()).canPlayType(c))return!1;if(!Qc()||!(c in sg||tg(d)in ug)||a.h.streaming.preferNativeHls)return!0;if(Zc())return a.h.streaming.useNativeHlsOnSafari}return!1}function al(a,b,c){null==b.O&&(b.O=c.O,a.hb.o(b.O,"error",function(){var d=tl(a);d&&ul(a,d)}));a.g=b.O;return Promise.resolve()}
393
+ function bl(a,b){var c,d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:return a.l!=ml&&(a.l=Xk),c=a.fb.map(function(p){return p()}),a.fb=[],u(n,Promise.all(c),2);case 2:a.dispatchEvent(kl("unloading"));b.mimeType=null;b.startTime=null;b.uri=null;b.O&&a.A.Rc();a.Qf.stop();a.Xa&&(a.Xa.release(),a.Xa=null);a.qd&&(a.qd.stop(),a.qd=null);if(!a.J){n.D(3);break}return u(n,a.J.stop(),4);case 4:a.J=null,a.vd=null;case 3:if(!a.C){n.D(5);break}return u(n,a.C.stop(),5);case 5:if(!a.j){n.D(7);break}return u(n,
394
+ a.j.destroy(),8);case 8:a.j=null;case 7:a.I&&(a.I.release(),a.I=null);a.F&&(a.F.release(),a.F=null);if(!a.K){n.D(9);break}return u(n,a.K.destroy(),10);case 10:a.K=null;case 9:if(a.G)a.G.onAssetUnload();if(!b.O||!b.O.src){n.D(11);break}return u(n,new Promise(function(p){return(new P(p)).T(.1)}),12);case 12:for(b.O.removeAttribute("src"),b.O.load();b.O.lastChild;)b.O.removeChild(b.O.firstChild);case 11:if(!a.m){n.D(13);break}return u(n,a.m.destroy(),14);case 14:a.m=null;case 13:a.gb=null;a.N=null;if(a.i){d=
395
+ t(a.i.variants);for(e=d.next();!e.done;e=d.next())for(f=e.value,g=t([f.audio,f.video]),h=g.next();!h.done;h=g.next())(k=h.value)&&k.segmentIndex&&k.segmentIndex.release();l=t(a.i.textStreams);for(h=l.next();!h.done;h=l.next())m=h.value,m.segmentIndex&&m.segmentIndex.release()}a.i=null;a.B=new Wk;a.Re=null;vl(a);z(n)}})}
396
+ function cl(a,b){var c,d,e,f,g,h;return I(function(k){if(1==k.g)return c=new Th,d=a.h.textDisplayFactory,e=d(),a.Re=d,f=wl(b.O,c,e,function(l,m,n){l=t(l);for(var p=l.next();!p.done;p=l.next())if(p=p.value,p.data&&p.cueTime&&p.frames){for(var q=p.cueTime+m,w=n,y=t(p.frames),x=y.next();!x.done;x=y.next())xl(a,q,w,"ID3",x.value);if(a.G)a.G.onHlsTimedMetadata(p,q)}}),g=a.h.manifest,h=g.segmentRelativeVttTiming,f.H=h,u(k,f.I,2);a.K=f;z(k)})}
397
+ function dl(a,b,c){var d,e,f,g;return I(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.H,a.gb=d,f=a,u(h,rg(d,e,a.h.manifest.retryParameters,b.mimeType),2);f.vd=h.h;a.J=a.vd();g=df(a.h.manifest);c.O&&"AUDIO"===c.O.nodeName&&(g.disableVideo=!0);a.J.configure(g);z(h)})}
398
+ function el(a,b){var c=b.uri,d=a.H;a.Cd=new kj(function(){return a.Ia()});a.Cd.addEventListener("regionadd",function(g){g=g.region;yl(a,"timelineregionadded",g);if(a.G)a.G.onDashTimedMetadata(g)});a.ea=null;a.h.streaming.observeQualityChanges&&(a.ea=new gj(function(){return a.kb()}),a.ea.addEventListener("qualitychange",function(g){var h=g.quality;g=g.position;h=(new Map).set("mediaQuality",{bandwidth:h.bandwidth,audioSamplingRate:h.audioSamplingRate,codecs:h.codecs,contentType:h.contentType,frameRate:h.frameRate,
394
399
  height:h.height,mimeType:h.mimeType,channelsCount:h.channelsCount,pixelAspectRatio:h.pixelAspectRatio,width:h.width}).set("position",g);a.dispatchEvent(kl("mediaqualitychanged",h))}));var e={networkingEngine:d,modifyManifestRequest:function(g,h){var k=a.S;try{k.g.enabled&&(k.A=h.format,zk(k,g,{ot:Ck,su:!k.i}))}catch(l){Va("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",l)}},modifySegmentRequest:function(g,h){pk(a.S,g,h)},filter:function(g){return zl(a,g)},makeTextStreamsForClosedCaptions:function(g){return Al(a,
395
- g)},onTimelineRegionAdded:function(g){var h=a.Cd;a:{var k=t(h.g);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.schemeIdUri==g.schemeIdUri&&l.id==g.id&&l.startTime==g.startTime&&l.endTime==g.endTime){k=l;break a}k=null}null==k&&(h.g.add(g),g=new M("regionadd",new Map([["region",g]])),h.dispatchEvent(g))},onEvent:function(g){return a.dispatchEvent(g)},onError:function(g){return ul(a,g)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},
396
- enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",!0)}},f=Date.now()/1E3;return new We(function(){var g,h,k,l;return I(function(m){if(1==m.g)return g=a,u(m,a.J.start(c,e),2);g.i=m.h;h=kl("manifestparsed");a.dispatchEvent(h);if(0==a.i.variants.length)throw new O(2,4,4036);Bl(a.i);k=Date.now()/1E3;l=k-f;a.B.G=l;z(m)})}(),function(){return a.J.stop()})}
397
- function fl(a,b){var c,d;return I(function(e){return 1==e.g?(c=Date.now()/1E3,d=!0,a.m=Cl(a,{Qb:a.H,onError:function(f){ul(a,f)},xd:function(f){Dl(a,f)},onExpirationUpdated:function(f,g){El(a,f,g)},onEvent:function(f){a.dispatchEvent(f);"drmsessionupdate"==f.type&&d&&(d=!1,a.B.j=Date.now()/1E3-c)}}),a.m.configure(a.h.drm),u(e,Jf(a.m,a.i.variants,a.i.offlineSessionIds),2)):3!=e.g?u(e,a.m.Ac(b.N),3):u(e,zl(a,a.i),0)})}
398
- function gl(a,b,c){var d,e,f,g,h,k,l,m,n,p,q,x;return I(function(w){switch(w.g){case 1:b.startTime=c.startTime;null!=a.Jc&&(b.startTime=a.Jc,a.Jc=null);d=b.N;e=b.uri;a.ib=e;a.I=new cj({nd:function(){return d.playbackRate},kd:function(){return d.defaultPlaybackRate},De:function(v){d.playbackRate=v},Af:function(v){d.currentTime+=v}});f=function(){return Fl(a)};g=function(){return Gl(a)};a.A.o(d,"playing",f);a.A.o(d,"pause",f);a.A.o(d,"ended",f);a.A.o(d,"ratechange",g);h=a.h.abrFactory;a.C&&a.oe==h||
399
- (a.oe=h,a.C=h(),a.C.configure(a.h.abr));a.za=new Le(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount);a.Ma=a.h.preferredTextLanguage;a.yb=a.h.preferredTextRole;a.kb=a.h.preferForcedSubs;Hl(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.C.init(function(v,y,D){a.j&&v!=a.j.l&&Il(a,v,!0,void 0===y?!1:y,void 0===D?0:D)});a.F=Jl(a,b.startTime);a.Za=Kl(a);k=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);Ll(a,k);Nd(a.i,a.h.preferredVideoCodecs,
400
- a.h.preferredAudioCodecs,a.h.preferredAudioChannelCount,a.h.preferredDecodingAttributes);a.j=Ml(a);a.j.configure(a.h.streaming);a.l=Nl;d.textTracks&&a.A.o(d.textTracks,"addtrack",function(v){if(v.track)switch(v=v.track,v.kind){case "chapters":Ol(a,v)}});a.dispatchEvent(kl("streaming"));l=null;if(m=a.Sa().find(function(v){return v.active})){w.D(2);break}l=ll(a);Il(a,l,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){w.D(3);break}n=a.F.cd();return u(w,Pl(l,n),4);case 4:p=w.h,a.F.Yd(p);case 3:Ql(a,
401
- null,pe(l));case 2:return q=a.Cb().find(function(v){return v.active}),q||((x=ze(a.i.textStreams,a.Ma,a.yb,a.kb)[0]||null)&&Vk(a.B.h,x,!0),l&&(x?(l.audio&&Rl(a,l.audio,x)&&(a.ba=!0),a.ba&&a.K.m.setTextVisibility(!0),Sl(a)):a.ba=!1),x&&(a.h.streaming.alwaysStreamText||a.Pb())&&Dj(a.j,x)),u(w,a.j.start(),5);case 5:a.h.abr.enabled&&(a.C.enable(),Tl(a)),de(a.j?a.j.l:null,a.i),Ul(a.i),Vl(a),Wl(a),a.i.variants.some(function(v){return v.primary}),a.A.Fa(d,"loadedmetadata",function(){a.B.l=Date.now()/1E3-
402
- c.Ie}),z(w)}})}
403
- function hl(a,b,c){var d,e,f,g,h,k,l;return I(function(m){return 1==m.g?(d=Jb,e=Date.now()/1E3,f=!0,a.m=Cl(a,{Qb:a.H,onError:function(n){ul(a,n)},xd:function(n){Dl(a,n)},onExpirationUpdated:function(n,p){El(a,n,p)},onEvent:function(n){a.dispatchEvent(n);"drmsessionupdate"==n.type&&f&&(f=!1,a.B.j=Date.now()/1E3-e)}}),a.m.configure(a.h.drm),g=c.uri||"",h=sg(g),k=sl[h],"application/x-mpegurl"==k&&Jd()&&(k="application/vnd.apple.mpegurl"),k||(k="video/mp4"),l={id:0,language:"und",disabledUntilTime:0,primary:!1,
404
- 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?nd(c.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.Oa,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},
405
- a.m.X=!0,u(m,Jf(a.m,[l],[]),2)):u(m,a.m.Ac(b.N),0)})}
406
- function il(a,b,c){function d(){return Fl(a)}b.uri=c.uri;b.startTime=c.startTime;a.ib=b.uri;var e=b.N;a.F=new Ri(e);var f=!1;a.hb.push(function(){f=!0});null!=b.startTime&&a.F.Yd(b.startTime);a.I=new cj({nd:function(){return e.playbackRate},kd:function(){return e.defaultPlaybackRate},De:function(k){e.playbackRate=k},Af:function(k){e.currentTime+=k}});Ll(a,a.h.streaming.rebufferingGoal);a.A.o(e,"playing",d);a.A.o(e,"pause",d);a.A.o(e,"ended",d);a.A.o(e,"ratechange",function(){return Gl(a)});"none"!=
407
- e.preload&&a.A.Fa(e,"loadedmetadata",function(){a.B.l=Date.now()/1E3-c.Ie});e.audioTracks&&(a.A.o(e.audioTracks,"addtrack",function(){return Vl(a)}),a.A.o(e.audioTracks,"removetrack",function(){return Vl(a)}),a.A.o(e.audioTracks,"change",function(){return Vl(a)}));e.textTracks&&(a.A.o(e.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case "metadata":Xl(a,k);break;case "chapters":Ol(a,k);break;default:Vl(a)}}),a.A.o(e.textTracks,"removetrack",function(){return Vl(a)}),a.A.o(e.textTracks,
408
- "change",function(){return Vl(a)}));var g=sg(b.uri);e.src=Ak(a.S,b.uri,sl[g]);(Hd()||Gd("Web0S"))&&e.load();a.l=Yl;a.dispatchEvent(kl("streaming"));var h=new Nc;Ii(e,HTMLMediaElement.HAVE_METADATA,a.A,function(){h.resolve()});Ii(e,HTMLMediaElement.HAVE_CURRENT_DATA,a.A,function(){var k;return I(function(l){if(1==l.g)return Zl(a),k=$l(a),k.find(function(m){return"disabled"!=m.mode})?l.D(2):u(l,new Promise(function(m){a.A.Fa(e.textTracks,"change",m);(new P(m)).T(1)}),2);if(f)return l["return"]();am(a);
409
- z(l)})});e.error?h.reject(tl(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.A.Fa(e,"error",function(){h.reject(tl(a))});return new We(h,function(){h.reject(new O(2,7,7001));return Promise.resolve()})}
410
- function Zl(a){var b=a.h.preferredAudioLanguage;if(""!=b){a.Fd(b);var c=a.h.preferredVariantRole;""!=c&&a.Fd(b,c)}}function am(a){var b=a.h.preferredTextLanguage,c=a.h.preferForcedSubs;if(""!=b){a.we(b,"",c);var d=a.h.preferredTextRole;""!=d&&a.we(b,d,c)}}
411
- function Xl(a,b){if("metadata"==b.kind){b.mode="hidden";a.A.o(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,xl(a,e.startTime,e.endTime,e.type,e.value),a.G)a.G.onCueMetadataChange(e.value)});var c=(new P(function(){var d=bm(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).ya().T(.5);a.hb.push(function(){c.stop()})}}
412
- function xl(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(kl("metadata",b))}function Ol(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new P(function(){b.mode="hidden"})).ya().T(.5);a.hb.push(function(){c.stop()})}}function Bl(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 Cl(a,b){return new Cf(b,a.h.drm.updateExpirationTime)}
413
- function Zk(a){return new gf(function(b,c){a.C&&a.C.segmentDownloaded(b,c)},function(b,c,d){b=(new Map).set("headers",b).set("request",c).set("requestType",d);a.dispatchEvent(kl("downloadheadersreceived",b))},function(b,c,d,e){b=(new Map).set("request",b).set("error",c).set("httpResponseCode",d).set("aborted",e);a.dispatchEvent(kl("downloadfailed",b))})}
414
- function Jl(a,b){return new Si(a.g,a.i,a.h.streaming,b,function(){a.Za&&fj(a.Za,!0);a.j&&a.j.Sc();a.M&&cm(a)},function(c){return a.dispatchEvent(c)})}
415
- function Kl(a){var b=new lj(a.Cd);b.addEventListener("enter",function(d){yl(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){yl(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(yl(a,"timelineregionenter",e),yl(a,"timelineregionexit",e))});var c=new ej(a.g);c.g.add(b);a.ha&&c.g.add(a.ha);return c}function Ll(a,b){a.M=new Pe;a.M.g=Re;Se(a.M,b,Math.min(.5,b/2));vl(a);a.qd=(new P(function(){cm(a)})).ma(.25)}
416
- function cm(a){switch(a.l){case Yl:if(a.g.ended)var b=!0;else{var c=Vh(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case Nl:a:if(a.g.ended||fi(a.K))b=!0;else{if(a.i.presentationTimeline.U()){c=a.i.presentationTimeline.Kb();var d=Vh(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Xh(a.g.buffered,a.g.currentTime);c=a.M;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?Qe:Re;c.g=d;b!=d&&vl(a)}function wl(a,b,c,d){return new $h(a,b,c,d)}
417
- function rl(a){return new ok({getBandwidthEstimate:function(){return a.C?a.C.getBandwidthEstimate():NaN},ob:function(){return a.ob()},getCurrentTime:function(){return a.g?a.g.currentTime:0},Sa:function(){return a.Sa()},Bb:function(){return a.Bb()},U:function(){return a.U()}},a.h.cmcd)}
418
- function Ml(a){return new rj(a.i,{md:function(){return a.F.cd()},getBandwidthEstimate:function(){return a.C.getBandwidthEstimate()},modifySegmentRequest:function(b,c){pk(a.S,b,c)},V:a.K,Qb:a.H,onError:function(b){return ul(a,b)},onEvent:function(b){return a.dispatchEvent(b)},Xg:function(){a.J&&a.J.update&&a.J.update()},me:function(){a.F&&a.F.Bf();cm(a)},Wg:function(b,c){var d=c.ge;d&&a.ha&&ij(a.ha,d,b)}})}
400
+ g)},onTimelineRegionAdded:function(g){var h=a.Cd;a:{var k=t(h.g);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.schemeIdUri==g.schemeIdUri&&l.id==g.id&&l.startTime==g.startTime&&l.endTime==g.endTime){k=l;break a}k=null}null==k&&(h.g.add(g),g=new L("regionadd",new Map([["region",g]])),h.dispatchEvent(g))},onEvent:function(g){return a.dispatchEvent(g)},onError:function(g){return ul(a,g)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},
401
+ enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",!0)}},f=Date.now()/1E3;return new Xe(function(){var g,h,k,l;return I(function(m){if(1==m.g)return g=a,u(m,a.J.start(c,e),2);g.i=m.h;h=kl("manifestparsed");a.dispatchEvent(h);if(0==a.i.variants.length)throw new O(2,4,4036);Bl(a.i);k=Date.now()/1E3;l=k-f;a.B.G=l;z(m)})}(),function(){return a.J.stop()})}
402
+ function fl(a,b){var c,d;return I(function(e){return 1==e.g?(c=Date.now()/1E3,d=!0,a.m=Cl(a,{Ob:a.H,onError:function(f){ul(a,f)},xd:function(f){Dl(a,f)},onExpirationUpdated:function(f,g){El(a,f,g)},onEvent:function(f){a.dispatchEvent(f);"drmsessionupdate"==f.type&&d&&(d=!1,a.B.j=Date.now()/1E3-c)}}),a.m.configure(a.h.drm),u(e,Kf(a.m,a.i.variants,a.i.offlineSessionIds),2)):3!=e.g?u(e,a.m.yc(b.O),3):u(e,zl(a,a.i),0)})}
403
+ function gl(a,b,c){var d,e,f,g,h,k,l,m,n,p,q,w;return I(function(y){switch(y.g){case 1:b.startTime=c.startTime;null!=a.Hc&&(b.startTime=a.Hc,a.Hc=null);d=b.O;e=b.uri;a.gb=e;a.I=new cj({nd:function(){return d.playbackRate},kd:function(){return d.defaultPlaybackRate},He:function(x){d.playbackRate=x},Af:function(x){d.currentTime+=x}});f=function(){return Fl(a)};g=function(){return Gl(a)};a.A.o(d,"playing",f);a.A.o(d,"pause",f);a.A.o(d,"ended",f);a.A.o(d,"ratechange",g);h=a.h.abrFactory;a.C&&a.se==h||
404
+ (a.se=h,a.C=h(),a.C.configure(a.h.abr));a.ya=new Me(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount);a.za=a.h.preferredTextLanguage;a.wb=a.h.preferredTextRole;a.ib=a.h.preferForcedSubs;Hl(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.C.init(function(x,v,D){a.j&&x!=a.j.l&&Il(a,x,!0,void 0===v?!1:v,void 0===D?0:D)});a.F=Jl(a,b.startTime);a.Xa=Kl(a);k=Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal);Ll(a,k);Od(a.i,a.h.preferredVideoCodecs,
405
+ a.h.preferredAudioCodecs,a.h.preferredAudioChannelCount,a.h.preferredDecodingAttributes);a.j=Ml(a);a.j.configure(a.h.streaming);a.l=Nl;d.textTracks&&a.A.o(d.textTracks,"addtrack",function(x){if(x.track)switch(x=x.track,x.kind){case "chapters":Ol(a,x)}});a.dispatchEvent(kl("streaming"));l=null;if(m=a.Qa().find(function(x){return x.active})){y.D(2);break}l=ll(a);Il(a,l,!0,!1,0);if(!a.h.streaming.startAtSegmentBoundary){y.D(3);break}n=a.F.cd();return u(y,Pl(l,n),4);case 4:p=y.h,a.F.Zd(p);case 3:Ql(a,
406
+ null,qe(l));case 2:return q=a.Ab().find(function(x){return x.active}),q||((w=Ae(a.i.textStreams,a.za,a.wb,a.ib)[0]||null)&&Vk(a.B.h,w,!0),l&&(w?(l.audio&&Rl(a,l.audio,w)&&(a.ba=!0),a.ba&&a.K.m.setTextVisibility(!0),Sl(a)):a.ba=!1),w&&(a.h.streaming.alwaysStreamText||a.Nb())&&Dj(a.j,w)),u(y,a.j.start(),5);case 5:a.h.abr.enabled&&(a.C.enable(),Tl(a)),ee(a.j?a.j.l:null,a.i),Ul(a.i),Vl(a),Wl(a),a.i.variants.some(function(x){return x.primary}),a.A.Fa(d,"loadedmetadata",function(){a.B.l=Date.now()/1E3-
407
+ c.Me}),z(y)}})}
408
+ function hl(a,b,c){var d,e,f,g,h,k,l;return I(function(m){return 1==m.g?(d=Jb,e=Date.now()/1E3,f=!0,a.m=Cl(a,{Ob:a.H,onError:function(n){ul(a,n)},xd:function(n){Dl(a,n)},onExpirationUpdated:function(n,p){El(a,n,p)},onEvent:function(n){a.dispatchEvent(n);"drmsessionupdate"==n.type&&f&&(f=!1,a.B.j=Date.now()/1E3-e)}}),a.m.configure(a.h.drm),g=c.uri||"",h=tg(g),k=sl[h],"application/x-mpegurl"==k&&Zc()&&(k="application/vnd.apple.mpegurl"),k||(k="video/mp4"),l={id:0,language:"und",disabledUntilTime:0,primary:!1,
409
+ audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]:k,codecs:c.mimeType?Bd(c.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.Ma,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},
410
+ a.m.X=!0,u(m,Kf(a.m,[l],[]),2)):u(m,a.m.yc(b.O),0)})}
411
+ function il(a,b,c){function d(){return Fl(a)}b.uri=c.uri;b.startTime=c.startTime;a.gb=b.uri;var e=b.O;a.F=new Si(e);var f=!1;a.fb.push(function(){f=!0});null!=b.startTime&&a.F.Zd(b.startTime);a.I=new cj({nd:function(){return e.playbackRate},kd:function(){return e.defaultPlaybackRate},He:function(k){e.playbackRate=k},Af:function(k){e.currentTime+=k}});Ll(a,a.h.streaming.rebufferingGoal);a.A.o(e,"playing",d);a.A.o(e,"pause",d);a.A.o(e,"ended",d);a.A.o(e,"ratechange",function(){return Gl(a)});"none"!=
412
+ e.preload&&a.A.Fa(e,"loadedmetadata",function(){a.B.l=Date.now()/1E3-c.Me});e.audioTracks&&(a.A.o(e.audioTracks,"addtrack",function(){return Vl(a)}),a.A.o(e.audioTracks,"removetrack",function(){return Vl(a)}),a.A.o(e.audioTracks,"change",function(){return Vl(a)}));e.textTracks&&(a.A.o(e.textTracks,"addtrack",function(k){if(k.track)switch(k=k.track,k.kind){case "metadata":Xl(a,k);break;case "chapters":Ol(a,k);break;default:Vl(a)}}),a.A.o(e.textTracks,"removetrack",function(){return Vl(a)}),a.A.o(e.textTracks,
413
+ "change",function(){return Vl(a)}));var g=tg(b.uri);e.src=Ak(a.S,b.uri,sl[g]);(Wc()||Vc("Web0S"))&&e.load();a.l=Yl;a.dispatchEvent(kl("streaming"));var h=new Nc;Ji(e,HTMLMediaElement.HAVE_METADATA,a.A,function(){h.resolve()});Ji(e,HTMLMediaElement.HAVE_CURRENT_DATA,a.A,function(){var k;return I(function(l){if(1==l.g)return Zl(a),k=$l(a),k.find(function(m){return"disabled"!=m.mode})?l.D(2):u(l,new Promise(function(m){a.A.Fa(e.textTracks,"change",m);(new P(m)).T(1)}),2);if(f)return l["return"]();am(a);
414
+ z(l)})});e.error?h.reject(tl(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.A.Fa(e,"error",function(){h.reject(tl(a))});return new Xe(h,function(){h.reject(new O(2,7,7001));return Promise.resolve()})}
415
+ function Zl(a){var b=a.h.preferredAudioLanguage;if(""!=b){a.Fd(b);var c=a.h.preferredVariantRole;""!=c&&a.Fd(b,c)}}function am(a){var b=a.h.preferredTextLanguage,c=a.h.preferForcedSubs;if(""!=b){a.Ae(b,"",c);var d=a.h.preferredTextRole;""!=d&&a.Ae(b,d,c)}}
416
+ function Xl(a,b){if("metadata"==b.kind){b.mode="hidden";a.A.o(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,xl(a,e.startTime,e.endTime,e.type,e.value),a.G)a.G.onCueMetadataChange(e.value)});var c=(new P(function(){var d=bm(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).xa().T(.5);a.fb.push(function(){c.stop()})}}
417
+ function xl(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(kl("metadata",b))}function Ol(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new P(function(){b.mode="hidden"})).xa().T(.5);a.fb.push(function(){c.stop()})}}function Bl(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 Cl(a,b){return new Df(b,a.h.drm.updateExpirationTime)}
418
+ function Zk(a){return new hf(function(b,c){a.C&&a.C.segmentDownloaded(b,c)},function(b,c,d){b=(new Map).set("headers",b).set("request",c).set("requestType",d);a.dispatchEvent(kl("downloadheadersreceived",b))},function(b,c,d,e){b=(new Map).set("request",b).set("error",c).set("httpResponseCode",d).set("aborted",e);a.dispatchEvent(kl("downloadfailed",b))})}
419
+ function Jl(a,b){return new Ti(a.g,a.i,a.h.streaming,b,function(){a.Xa&&fj(a.Xa,!0);a.j&&a.j.Sc();a.N&&cm(a)},function(c){return a.dispatchEvent(c)})}
420
+ function Kl(a){var b=new lj(a.Cd);b.addEventListener("enter",function(d){yl(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){yl(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(yl(a,"timelineregionenter",e),yl(a,"timelineregionexit",e))});var c=new ej(a.g);c.g.add(b);a.ea&&c.g.add(a.ea);return c}function Ll(a,b){a.N=new Qe;a.N.g=Se;Te(a.N,b,Math.min(.5,b/2));vl(a);a.qd=(new P(function(){cm(a)})).ka(.25)}
421
+ function cm(a){switch(a.l){case Yl:if(a.g.ended)var b=!0;else{var c=ai(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case Nl:a:if(a.g.ended||li(a.K))b=!0;else{if(a.i.presentationTimeline.U()){c=a.i.presentationTimeline.Ib();var d=ai(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=ci(a.g.buffered,a.g.currentTime);c=a.N;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?Re:Se;c.g=d;b!=d&&vl(a)}function wl(a,b,c,d){return new fi(a,b,c,d)}
422
+ function rl(a){return new ok({getBandwidthEstimate:function(){return a.C?a.C.getBandwidthEstimate():NaN},kb:function(){return a.kb()},getCurrentTime:function(){return a.g?a.g.currentTime:0},Qa:function(){return a.Qa()},zb:function(){return a.zb()},U:function(){return a.U()}},a.h.cmcd)}
423
+ function Ml(a){return new rj(a.i,{md:function(){return a.F.cd()},getBandwidthEstimate:function(){return a.C.getBandwidthEstimate()},modifySegmentRequest:function(b,c){pk(a.S,b,c)},V:a.K,Ob:a.H,onError:function(b){return ul(a,b)},onEvent:function(b){return a.dispatchEvent(b)},Wg:function(){a.J&&a.J.update&&a.J.update()},re:function(){a.F&&a.F.Bf();cm(a)},Vg:function(b,c){var d=c.le;d&&a.ea&&ij(a.ea,d,b)}})}
419
424
  r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Kk(a,b));a.streaming&&a.streaming.lowLatencyMode&&(void 0==a.streaming.inaccurateManifestTolerance&&(a.streaming.inaccurateManifestTolerance=0),void 0==a.streaming.rebufferingGoal&&(a.streaming.rebufferingGoal=.01));var c=Pk(this.h,a,Yk(this));dm(this);return c};
420
- function dm(a){if(a.J){var b=cf(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.J.configure(b)}a.m&&a.m.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{em(a,a.i)}catch(f){ul(a,f)}a.C&&Wl(a);b=a.j.l;!b||b.allowedByApplication&&b.allowedByKeySystem||fm(a)}a.H&&a.H.Be(a.h.streaming.forceHTTPS);if(a.K&&(a.K.H=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.Ne!=b)){var c=b(),d=a.K,e=d.m;d.m=c;e&&(c.setTextVisibility(e.isTextVisible()),e.destroy());d.g&&(d.g.i=
421
- c);a.Ne=b;a.j&&(b=a.j,(c=b.h.get(Ib))&&Bj(b,c.stream,!0,0,!0))}a.C&&(a.C.configure(a.h.abr),a.h.abr.enabled?a.C.enable():a.C.disable(),Tl(a));a.M&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),Se(a.M,b,Math.min(.5,b/2)));a.i&&Hl(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd)}r.getConfiguration=function(){var a=Yk(this);Pk(a,this.h,Yk(this));return a};
422
- r.hg=function(){if(this.g){var a=this.g.buffered.length;a=a?this.g.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.g.currentTime+b,this.Ia().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};r.hh=function(){for(var a in this.h)delete this.h[a];Pk(this.h,Yk(this),Yk(this));dm(this)};r.qf=function(){return this.l};r.zg=function(){return this.g};r.Gc=function(){return this.H};r.Zd=function(){return this.ib};
423
- r.jd=function(){return this.G?this.G:null};r.U=function(){return this.i?this.i.presentationTimeline.U():this.g&&this.g.src?Infinity==this.g.duration:!1};r.Nb=function(){return this.i?this.i.presentationTimeline.Nb():!1};r.hc=function(){if(this.i){var a=this.i.variants;return a.length?!a[0].video:!1}return this.g&&this.g.src?this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight:!1};
424
- r.Ia=function(){if(this.i){var a=this.i.presentationTimeline;return{start:a.ec(),end:a.pb()}}return this.g&&this.g.src&&(a=this.g.seekable,a.length)?{start:a.start(0),end:a.end(a.length-1)}:{start:0,end:0}};r.Kg=function(){this.U()&&(this.g.currentTime=this.Ia().end)};r.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};r.drmInfo=function(){return this.m?this.m.g:null};r.Fc=function(){return this.m?this.m.Fc():Infinity};r.ld=function(){return this.m?this.m.ld():{}};
425
- r.Mc=function(){return this.M?this.M.g==Re:!1};r.Bb=function(){return this.g?this.I?this.I.i:1:0};r.Me=function(a){0==a?Ua("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.I.set(a),this.l==Nl&&(this.C.playbackRateChanged(a),Aj(this.j,1<Math.abs(a))))};r.Ze=function(){var a=this.I.kd();this.l==Yl&&this.I.set(a);this.l==Nl&&(this.I.set(a),this.C.playbackRateChanged(a),Aj(this.j,!1))};
426
- r.Sa=function(){if(this.i){for(var a=this.j?this.j.l:null,b=[],c=0,d=t(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,xe(e)){var f=pe(e);f.active=e==a;f.active||1==c||null==a||e.video!=a.video||e.audio!=a.audio||(f.active=!0);f.active&&c++;b.push(f)}return b}return this.g&&this.g.audioTracks?Array.from(this.g.audioTracks).map(function(g){return we(g)}):[]};
427
- r.Cb=function(){if(this.i){for(var a=this.j?this.j.A:null,b=[],c=t(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?$l(this).map(function(f){return ue(f)}):[]};r.qg=function(){return this.i?this.i.imageStreams.map(function(a){return re(a)}):[]};
428
- r.Gg=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,q,x,w,v,y,D,C,B;return I(function(G){if(1==G.g)return c.i?(d=c.i.imageStreams.find(function(E){return E.id==a}))?d.segmentIndex?G.D(3):u(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);n=parseInt(h[2],10);p=k/m;q=l/n;
429
- x=m*n;w=f.j-f.startTime;v=f.h||w/x;y=f.startTime;C=D=0;1<x&&(B=Math.floor((b-f.startTime)/v),y=f.startTime+B*v,D=B%m*p,C=Math.floor(B/m)*q);return G["return"]({imageHeight:l,imageWidth:k,height:q,positionX:D,positionY:C,startTime:y,duration:v,uris:f.Ra(),width:p})}return G["return"](null)})};
430
- r.xe=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&&(Vk(this.B.h,b,!1),Dj(this.j,b),gm(this),this.Ma=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=$l(this);b=t(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";gm(this)}};
431
- r.ye=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)&&(Il(this,d,!1,b,c),this.za=new Ke(d),Wl(this))}else if(this.g&&this.g.audioTracks)for(b=Array.from(this.g.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,
432
- se(c)==a.id){hm(this,c);break}};r.gg=function(){return im(this.Sa())};r.Fg=function(){return im(this.Cb())};r.fg=function(){return Array.from(jm(this.Sa()))};r.Eg=function(){return Array.from(jm(this.Cb()))};
433
- r.Fd=function(a,b){if(this.i&&this.F){this.za=new Le(a,b||"",0,"");var c=function(k,l){return k.video||l.video?k.video&&l.video?Math.abs((k.video.height||0)-(l.video.height||0))+Math.abs((k.video.width||0)-(l.video.width||0)):Infinity:0},d=this.j.l,e=this.za.create(this.i.variants),f=null;e=t(e.values());for(var g=e.next();!g.done;g=e.next())if(g=g.value,!f||c(f,d)>c(g,d))f=g;f?(c=pe(f),this.ye(c,!0)):fm(this)}else if(this.g&&this.g.audioTracks){e=Array.from(this.g.audioTracks);c=Nb(a);f=d=null;e=
434
- t(e);for(g=e.next();!g.done;g=e.next()){g=g.value;var h=we(g);Nb(h.language)==c&&(d=g,b?h.roles.includes(b)&&(f=g):0==h.roles.length&&(f=g))}f?hm(this,f):d&&hm(this,d)}};
435
- r.we=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.F){if(this.Ma=a,this.yb=b||"",this.kb=c,(a=ze(this.i.textStreams,this.Ma,this.yb,this.kb)[0]||null)&&a!=this.j.A&&(Vk(this.B.h,a,!1),this.h.streaming.alwaysStreamText||this.Pb()))Dj(this.j,a),gm(this)}else{var d=Nb(a);(a=this.Cb().find(function(e){return Nb(e.language)==d&&(!b||e.roles.includes(b))&&e.forced==c}))&&this.xe(a)}};
436
- r.kh=function(a){if(this.i&&this.F){for(var b=null,c=t(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.za=new Le(b.language,"",0,a),fm(this))}};r.Pb=function(){var a=this.ba;return this.K?this.K.m.isTextVisible():this.g&&this.g.src&&this.g.textTracks?$l(this).some(function(b){return"showing"==b.mode}):a};r.nf=function(){return this.g&&this.g.src&&this.g.textTracks?km(this).map(function(a){return ue(a)}):[]};
437
- r.jg=function(a){var b=Nb(a),c=km(this).filter(function(g){return Nb(g.language)==b});if(!c||!c.length)return[];a=[];c=t(c);for(var d=c.next();!d.done;d=c.next())if((d=d.value)&&d.cues){d=t(d.cues);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.id;f&&""!=f||(f=e.startTime+"-"+e.endTime+"-"+e.text);a.push({id:f,title:e.text,startTime:e.startTime,endTime:e.endTime})}}return a};
425
+ function dm(a){if(a.J){var b=df(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.J.configure(b)}a.m&&a.m.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{em(a,a.i)}catch(f){ul(a,f)}a.C&&Wl(a);b=a.j.l;!b||b.allowedByApplication&&b.allowedByKeySystem||fm(a)}a.H&&a.H.Fe(a.h.streaming.forceHTTPS);if(a.K&&(a.K.H=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.Re!=b)){var c=b(),d=a.K,e=d.m;d.m=c;e&&(c.setTextVisibility(e.isTextVisible()),e.destroy());d.g&&(d.g.i=
426
+ c);a.Re=b;a.j&&(b=a.j,(c=b.h.get(Ib))&&Bj(b,c.stream,!0,0,!0))}a.C&&(a.C.configure(a.h.abr),a.h.abr.enabled?a.C.enable():a.C.disable(),Tl(a));a.N&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),Te(a.N,b,Math.min(.5,b/2)));a.i&&Hl(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd)}r.getConfiguration=function(){var a=Yk(this);Pk(a,this.h,Yk(this));return a};
427
+ r.hg=function(){if(this.g){var a=this.g.buffered.length;a=a?this.g.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.g.currentTime+b,this.Ia().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};r.gh=function(){for(var a in this.h)delete this.h[a];Pk(this.h,Yk(this),Yk(this));dm(this)};r.tf=function(){return this.l};r.zg=function(){return this.g};r.Ec=function(){return this.H};r.ae=function(){return this.gb};
428
+ r.jd=function(){return this.G?this.G:null};r.U=function(){return this.i?this.i.presentationTimeline.U():this.g&&this.g.src?Infinity==this.g.duration:!1};r.Lb=function(){return this.i?this.i.presentationTimeline.Lb():!1};r.ec=function(){if(this.i){var a=this.i.variants;return a.length?!a[0].video:!1}return this.g&&this.g.src?this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight:!1};
429
+ r.Ia=function(){if(this.i){var a=this.i.presentationTimeline;return{start:a.cc(),end:a.mb()}}return this.g&&this.g.src&&(a=this.g.seekable,a.length)?{start:a.start(0),end:a.end(a.length-1)}:{start:0,end:0}};r.Kg=function(){this.U()&&(this.g.currentTime=this.Ia().end)};r.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};r.drmInfo=function(){return this.m?this.m.g:null};r.Dc=function(){return this.m?this.m.Dc():Infinity};r.ld=function(){return this.m?this.m.ld():{}};
430
+ r.Kc=function(){return this.N?this.N.g==Se:!1};r.zb=function(){return this.g?this.I?this.I.i:1:0};r.Qe=function(a){0==a?Ua("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.I.set(a),this.l==Nl&&(this.C.playbackRateChanged(a),Aj(this.j,1<Math.abs(a))))};r.cf=function(){var a=this.I.kd();this.l==Yl&&this.I.set(a);this.l==Nl&&(this.I.set(a),this.C.playbackRateChanged(a),Aj(this.j,!1))};
431
+ r.Qa=function(){if(this.i){for(var a=this.j?this.j.l:null,b=[],c=0,d=t(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,ye(e)){var f=qe(e);f.active=e==a;f.active||1==c||null==a||e.video!=a.video||e.audio!=a.audio||(f.active=!0);f.active&&c++;b.push(f)}return b}return this.g&&this.g.audioTracks?Array.from(this.g.audioTracks).map(function(g){return xe(g)}):[]};
432
+ r.Ab=function(){if(this.i){for(var a=this.j?this.j.A:null,b=[],c=t(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=re(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?$l(this).map(function(f){return ve(f)}):[]};r.qg=function(){return this.i?this.i.imageStreams.map(function(a){return se(a)}):[]};
433
+ r.Gg=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,p,q,w,y,x,v,D,C,B;return I(function(G){if(1==G.g)return c.i?(d=c.i.imageStreams.find(function(E){return E.id==a}))?d.segmentIndex?G.D(3):u(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);n=parseInt(h[2],10);p=k/m;q=l/n;
434
+ w=m*n;y=f.j-f.startTime;x=f.l||y/w;v=f.startTime;C=D=0;1<w&&(B=Math.floor((b-f.startTime)/x),v=f.startTime+B*x,D=B%m*p,C=Math.floor(B/m)*q);return G["return"]({imageHeight:l,imageWidth:k,height:q,positionX:D,positionY:C,startTime:v,duration:x,uris:f.Pa(),width:p})}return G["return"](null)})};
435
+ r.Be=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&&(Vk(this.B.h,b,!1),Dj(this.j,b),gm(this),this.za=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=$l(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,te(c)==a.id?c.mode=this.ba?"showing":"hidden":c.mode="disabled";gm(this)}};
436
+ r.Ce=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&&ye(d)&&(Il(this,d,!1,b,c),this.ya=new Le(d),Wl(this))}else if(this.g&&this.g.audioTracks)for(b=Array.from(this.g.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,
437
+ te(c)==a.id){hm(this,c);break}};r.gg=function(){return im(this.Qa())};r.Fg=function(){return im(this.Ab())};r.fg=function(){return Array.from(jm(this.Qa()))};r.Eg=function(){return Array.from(jm(this.Ab()))};
438
+ r.Fd=function(a,b){if(this.i&&this.F){this.ya=new Me(a,b||"",0,"");var c=function(k,l){return k.video||l.video?k.video&&l.video?Math.abs((k.video.height||0)-(l.video.height||0))+Math.abs((k.video.width||0)-(l.video.width||0)):Infinity:0},d=this.j.l,e=this.ya.create(this.i.variants),f=null;e=t(e.values());for(var g=e.next();!g.done;g=e.next())if(g=g.value,!f||c(f,d)>c(g,d))f=g;f?(c=qe(f),this.Ce(c,!0)):fm(this)}else if(this.g&&this.g.audioTracks){e=Array.from(this.g.audioTracks);c=Mb(a);f=d=null;e=
439
+ t(e);for(g=e.next();!g.done;g=e.next()){g=g.value;var h=xe(g);Mb(h.language)==c&&(d=g,b?h.roles.includes(b)&&(f=g):0==h.roles.length&&(f=g))}f?hm(this,f):d&&hm(this,d)}};
440
+ r.Ae=function(a,b,c){c=void 0===c?!1:c;if(this.i&&this.F){if(this.za=a,this.wb=b||"",this.ib=c,(a=Ae(this.i.textStreams,this.za,this.wb,this.ib)[0]||null)&&a!=this.j.A&&(Vk(this.B.h,a,!1),this.h.streaming.alwaysStreamText||this.Nb()))Dj(this.j,a),gm(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.Be(a)}};
441
+ r.jh=function(a){if(this.i&&this.F){for(var b=null,c=t(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.ya=new Me(b.language,"",0,a),fm(this))}};r.Nb=function(){var a=this.ba;return this.K?this.K.m.isTextVisible():this.g&&this.g.src&&this.g.textTracks?$l(this).some(function(b){return"showing"==b.mode}):a};r.qf=function(){return this.g&&this.g.src&&this.g.textTracks?km(this).map(function(a){return ve(a)}):[]};
442
+ r.jg=function(a){var b=Mb(a),c=km(this).filter(function(g){return Mb(g.language)==b});if(!c||!c.length)return[];a=[];c=t(c);for(var d=c.next();!d.done;d=c.next())if((d=d.value)&&d.cues){d=t(d.cues);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.id;f&&""!=f||(f=e.startTime+"-"+e.endTime+"-"+e.text);a.push({id:f,title:e.text,startTime:e.startTime,endTime:e.endTime})}}return a};
438
443
  function $l(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function bm(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}function km(a){return Array.from(a.g.textTracks).filter(function(b){return"chapters"==b.kind})}
439
- r.Ge=function(a){a=!!a;if(this.ba!=a){this.ba=a;if(this.l==Nl)this.K.m.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.A||(a=ze(this.i.textStreams,this.Ma,this.yb,this.kb),0<a.length&&(Dj(this.j,a[0]),gm(this))):zj(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=$l(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}Sl(this)}};
440
- r.Bg=function(){if(!this.U())return null;var a=this.ua.l,b=0;if(this.F)b=this.F.cd();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};
441
- r.rf=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};r.ob=function(){if(this.l==Nl)return this.K.ob();var a={total:[],audio:[],video:[],text:[]};this.l==Yl&&(a.total=Yh(this.g.buffered));return a};
444
+ r.Ke=function(a){a=!!a;if(this.ba!=a){this.ba=a;if(this.l==Nl)this.K.m.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.A||(a=Ae(this.i.textStreams,this.za,this.wb,this.ib),0<a.length&&(Dj(this.j,a[0]),gm(this))):zj(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=$l(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}Sl(this)}};
445
+ r.Bg=function(){if(!this.U())return null;var a=this.ma.l,b=0;if(this.F)b=this.F.cd();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};
446
+ r.uf=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};r.kb=function(){if(this.l==Nl)return this.K.kb();var a={total:[],audio:[],video:[],text:[]};this.l==Yl&&(a.total=di(this.g.buffered));return a};
442
447
  r.getStats=function(){if(this.l!=Nl&&this.l!=Yl)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:[]};Fl(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=this.B;b=
443
- Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.F&&(this.B.M=this.F.Ue(),this.B.P=this.F.Ve());a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),c=this.B,b=Number(a.totalVideoFrames),c.K=Number(a.droppedVideoFrames),c.J=b,this.B.I=Number(a.corruptedVideoFrames));this.m?(a=this.m,a=a.J?a.J:NaN):a=NaN;this.B.m=a;if(this.l==Nl){if(a=this.j.l)this.B.B=(this.I?this.I.i:1)*a.bandwidth;a&&a.video&&(c=this.B,b=a.video.height||NaN,c.S=a.video.width||NaN,c.C=b);this.U()&&(a=this.rf().valueOf()+
444
- 1E3*this.Ia().end,this.B.F=(Date.now()-a)/1E3);this.i&&this.i.presentationTimeline&&(this.B.H=this.i.presentationTimeline.g);a=this.C.getBandwidthEstimate();this.B.A=a}var d=this.B;a=d.S;c=d.C;b=d.B;var e=d.J,f=d.K,g=d.I,h=d.P,k=d.M,l=d.A,m=d.i,n=d.l,p=d.G,q=d.j,x=Sk(d.g,"playing"),w=Sk(d.g,"paused"),v=Sk(d.g,"buffering"),y=d.m,D=d.F,C=d.H,B=Tk(d.g),G=[];d=t(d.h.g);for(var E=d.next();!E.done;E=d.next())E=E.value,G.push({timestamp:E.timestamp,id:E.id,type:E.type,fromAdaptation:E.fromAdaptation,bandwidth:E.bandwidth});
445
- return{width:a,height:c,streamBandwidth:b,decodedFrames:e,droppedFrames:f,corruptedFrames:g,stallsDetected:h,gapsJumped:k,estimatedBandwidth:l,completionPercent:m,loadLatency:n,manifestTimeSeconds:p,drmTimeSeconds:q,playTime:x,pauseTime:w,bufferingTime:v,licenseTime:y,liveLatency:D,maxSegmentDuration:C,stateHistory:B,switchHistory:G}};
446
- r.Wf=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,p,q,x,w,v,y,D;return I(function(C){switch(C.g){case 1:if(h.l!=Nl&&h.l!=Yl)throw new O(1,7,7004);if(d){C.D(2);break}return u(C,lm(h,a),3);case 3:d=C.h;case 2:k=[];if(h.G)try{k=h.G.getServerSideCuePoints()}catch(B){}if(h.l!=Yl){C.D(4);break}g&&(c="forced");return u(C,mm(h,a,b,c,d,f||"",k),5);case 5:l=h.Cb();if(m=l.find(function(B){return B.language==b&&B.label==(f||"")&&B.kind==c}))return Vl(h),C["return"](m);throw new O(1,2,2012);case 4:n=
447
- Jb;p=h.i.presentationTimeline.getDuration();if(Infinity==p)throw new O(1,4,4033);if(!k.length){C.D(6);break}return u(C,nm(h,a,h.H,h.h.streaming.retryParameters),7);case 7:q=C.h,x=om(h,q,d,k),w=new Blob([x],{type:"text/vtt"}),a=ci(w),d="text/vtt";case 6:v={id:h.Rf++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:aj(0,p,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:n.ia,primary:!1,trickModeVideo:null,
448
- emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};y=jd(v.mimeType,v.codecs);D=pd(y);if(!D)throw new O(2,2,2014,d);h.i.textStreams.push(v);Vl(h);return C["return"](qe(v))}})};
449
- r.Vf=function(a,b,c){var d=this,e,f,g,h;return I(function(k){switch(k.g){case 1:if(d.l!=Nl&&d.l!=Yl)throw new O(1,7,7004);if(c){k.D(2);break}return u(k,lm(d,a),3);case 3:c=k.h;case 2:e=[];if(d.G)try{e=d.G.getServerSideCuePoints()}catch(l){}return u(k,mm(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.nf();h=g.find(function(l){return l.language==b});if(!h){k.D(5);break}return u(k,new Promise(function(l,m){d.A.Fa(f,"load",l);d.A.Fa(f,"error",function(){m(new O(1,2,2015))})}),6);case 6:return k["return"](h);
450
- case 5:throw new O(1,2,2012);}})};function lm(a,b){var c,d;return I(function(e){switch(e.g){case 1:c=sg(b);if(d=pm[c])return e["return"](d);A(e,2);return u(e,ug(b,a.H,a.h.streaming.retryParameters),4);case 4:d=e.h;wa(e,3);break;case 2:F(e);case 3:if(d)return e["return"](d);throw new O(1,2,2011,c);}})}
451
- function mm(a,b,c,d,e,f,g){var h,k,l,m;return I(function(n){if(1==n.g)return"text/vtt"!=e||g.length?u(n,nm(a,b,a.H,a.h.streaming.retryParameters),3):n.D(2);2!=n.g&&(h=n.h,k=om(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=ci(l),e="text/vtt");m=document.createElement("track");var p=a.S,q=b;try{if(p.g.enabled){var x=Bk(p);x.ot=Hk;x.su=!0;var w=Dk(x);var v=Ek(q,w)}else v=q}catch(y){Va("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",y),v=q}m.src=v;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
452
- a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return n["return"](m)})}function nm(a,b,c,d){var e,f,g;return I(function(h){if(1==h.g){e=rf;f=lf([b],d);f.method="GET";var k=a.S;try{k.g.enabled&&zk(k,f,{ot:Hk,su:!0})}catch(l){Va("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return u(h,c.request(e,f).promise,2)}g=h.h;return h["return"](g.data)})}
453
- function om(a,b,c,d){var e=qd[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=Gc(b),b=c.parseMedia(b,a),nk(b,d);throw new O(2,2,2014,c);}r.Ce=function(a,b){this.Dc.width=a;this.Dc.height=b};r.re=function(){if(this.l==Nl){var a=this.j;if(a.j.g)a=!1;else if(a.B)a=!1;else{for(var b=t(a.h.values()),c=b.next();!c.done;c=b.next())c=c.value,c.Kc&&(c.Kc=!1,yj(a,c,.1));a=!0}}else a=!1;return a};
448
+ Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.F&&(this.B.N=this.F.Xe(),this.B.P=this.F.Ye());a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),c=this.B,b=Number(a.totalVideoFrames),c.K=Number(a.droppedVideoFrames),c.J=b,this.B.I=Number(a.corruptedVideoFrames));this.m?(a=this.m,a=a.J?a.J:NaN):a=NaN;this.B.m=a;if(this.l==Nl){if(a=this.j.l)this.B.B=(this.I?this.I.i:1)*a.bandwidth;a&&a.video&&(c=this.B,b=a.video.height||NaN,c.S=a.video.width||NaN,c.C=b);this.U()&&(a=this.uf().valueOf()+
449
+ 1E3*this.Ia().end,this.B.F=(Date.now()-a)/1E3);this.i&&this.i.presentationTimeline&&(this.B.H=this.i.presentationTimeline.g);a=this.C.getBandwidthEstimate();this.B.A=a}var d=this.B;a=d.S;c=d.C;b=d.B;var e=d.J,f=d.K,g=d.I,h=d.P,k=d.N,l=d.A,m=d.i,n=d.l,p=d.G,q=d.j,w=Sk(d.g,"playing"),y=Sk(d.g,"paused"),x=Sk(d.g,"buffering"),v=d.m,D=d.F,C=d.H,B=Tk(d.g),G=[];d=t(d.h.g);for(var E=d.next();!E.done;E=d.next())E=E.value,G.push({timestamp:E.timestamp,id:E.id,type:E.type,fromAdaptation:E.fromAdaptation,bandwidth:E.bandwidth});
450
+ return{width:a,height:c,streamBandwidth:b,decodedFrames:e,droppedFrames:f,corruptedFrames:g,stallsDetected:h,gapsJumped:k,estimatedBandwidth:l,completionPercent:m,loadLatency:n,manifestTimeSeconds:p,drmTimeSeconds:q,playTime:w,pauseTime:y,bufferingTime:x,licenseTime:v,liveLatency:D,maxSegmentDuration:C,stateHistory:B,switchHistory:G}};
451
+ r.Wf=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,p,q,w,y,x,v,D;return I(function(C){switch(C.g){case 1:if(h.l!=Nl&&h.l!=Yl)throw new O(1,7,7004);if(d){C.D(2);break}return u(C,lm(h,a),3);case 3:d=C.h;case 2:k=[];if(h.G)try{k=h.G.getServerSideCuePoints()}catch(B){}if(h.l!=Yl){C.D(4);break}g&&(c="forced");return u(C,mm(h,a,b,c,d,f||"",k),5);case 5:l=h.Ab();if(m=l.find(function(B){return B.language==b&&B.label==(f||"")&&B.kind==c}))return Vl(h),C["return"](m);throw new O(1,2,2012);case 4:n=
452
+ Jb;p=h.i.presentationTimeline.getDuration();if(Infinity==p)throw new O(1,4,4033);if(!k.length){C.D(6);break}return u(C,nm(h,a,h.H,h.h.streaming.retryParameters),7);case 7:q=C.h,w=om(h,q,d,k),y=new Blob([w],{type:"text/vtt"}),a=ii(y),d="text/vtt";case 6:x={id:h.Rf++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:aj(0,p,[a]),mimeType:d||"",codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,label:f||null,type:n.ha,primary:!1,trickModeVideo:null,
453
+ emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};v=xd(x.mimeType,x.codecs);D=Gd(v);if(!D)throw new O(2,2,2014,d);h.i.textStreams.push(x);Vl(h);return C["return"](re(x))}})};
454
+ r.Vf=function(a,b,c){var d=this,e,f,g,h;return I(function(k){switch(k.g){case 1:if(d.l!=Nl&&d.l!=Yl)throw new O(1,7,7004);if(c){k.D(2);break}return u(k,lm(d,a),3);case 3:c=k.h;case 2:e=[];if(d.G)try{e=d.G.getServerSideCuePoints()}catch(l){}return u(k,mm(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.qf();h=g.find(function(l){return l.language==b});if(!h){k.D(5);break}return u(k,new Promise(function(l,m){d.A.Fa(f,"load",l);d.A.Fa(f,"error",function(){m(new O(1,2,2015))})}),6);case 6:return k["return"](h);
455
+ case 5:throw new O(1,2,2012);}})};function lm(a,b){var c,d;return I(function(e){switch(e.g){case 1:c=tg(b);if(d=pm[c])return e["return"](d);A(e,2);return u(e,vg(b,a.H,a.h.streaming.retryParameters),4);case 4:d=e.h;va(e,3);break;case 2:F(e);case 3:if(d)return e["return"](d);throw new O(1,2,2011,c);}})}
456
+ function mm(a,b,c,d,e,f,g){var h,k,l,m;return I(function(n){if(1==n.g)return"text/vtt"!=e||g.length?u(n,nm(a,b,a.H,a.h.streaming.retryParameters),3):n.D(2);2!=n.g&&(h=n.h,k=om(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=ii(l),e="text/vtt");m=document.createElement("track");var p=a.S,q=b;try{if(p.g.enabled){var w=Bk(p);w.ot=Hk;w.su=!0;var y=Dk(w);var x=Ek(q,y)}else x=q}catch(v){Va("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",v),x=q}m.src=x;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")||
457
+ a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return n["return"](m)})}function nm(a,b,c,d){var e,f,g;return I(function(h){if(1==h.g){e=sf;f=mf([b],d);f.method="GET";var k=a.S;try{k.g.enabled&&zk(k,f,{ot:Hk,su:!0})}catch(l){Va("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return u(h,c.request(e,f).promise,2)}g=h.h;return h["return"](g.data)})}
458
+ function om(a,b,c,d){var e=Hd[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=Gc(b),b=c.parseMedia(b,a),nk(b,d);throw new O(2,2,2014,c);}r.Ge=function(a,b){this.Bc.width=a;this.Bc.height=b};r.we=function(){if(this.l==Nl){var a=this.j;if(a.j.g)a=!1;else if(a.B)a=!1;else{for(var b=t(a.h.values()),c=b.next();!c.done;c=b.next())c=c.value,c.Ic&&(c.Ic=!1,yj(a,c,.1));a=!0}}else a=!1;return a};
454
459
  r.wg=function(){Ua("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for.");return this.i};r.xg=function(){return this.vd};
455
- function Yk(a){var b=Nk();b.streaming.failureCallback=function(c){var d=[1001,1002,1003];a.U()&&d.includes(c.code)&&(c.severity=1,a.re())};b.textDisplayFactory=function(){return a.pd?new gk(a.g,a.pd):new ak(a.g)};return b}r.He=function(a){this.pd=a};
460
+ function Yk(a){var b=Nk();b.streaming.failureCallback=function(c){var d=[1001,1002,1003];a.U()&&d.includes(c.code)&&(c.severity=1,a.we())};b.textDisplayFactory=function(){return a.pd?new gk(a.g,a.pd):new ak(a.g)};return b}r.Le=function(a){this.pd=a};
456
461
  function Al(a,b){for(var c=new Set,d=t(b.textStreams),e=d.next();!e.done;e=d.next())e=e.value,"application/cea-608"!=e.mimeType&&"application/cea-708"!=e.mimeType||c.add(e.originalId);d=t(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=t(e.closedCaptions.keys()),g=f.next();!g.done;g=f.next())if(g=g.value,!c.has(g)){var h=g.startsWith("CC")?"application/cea-608":"application/cea-708",k=new bj;h={id:a.Rf++,originalId:g,createSegmentIndex:function(){return Promise.resolve()},
457
462
  segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:e.closedCaptions.get(g),label:null,type:Ib,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:e.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null};b.textStreams.push(h);c.add(g)}}function zl(a,b){return I(function(c){if(1==c.g)return u(c,qm(a,b),2);em(a,b);z(c)})}
458
- function qm(a,b){var c;return I(function(d){if(1==d.g)return c=a.j?a.j.l:null,u(d,be(c,b),2);Ul(b);z(d)})}
459
- function em(a,b){if(a.l!=ml){ae(b.variants,a.h.restrictions,a.Dc)&&a.j&&Vl(a);var c=a.m?a.m.g:null;if(c&&a.m.B)for(var d=t(b.variants),e=d.next();!e.done;e=d.next()){e=e.value;e=t((e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]));for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.keySystem==c.keySystem){f=t(f.initData||[]);for(var g=f.next();!g.done;g=f.next())g=g.value,Sf(a.m,g.initDataType,g.initData)}}rm(a,b)}}
460
- function Pl(a,b){var c,d,e,f,g;return I(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n,p;return I(function(q){if(1==q.g)return k?u(q,k.createSegmentIndex(),2):q["return"](null);n=(m=k.segmentIndex.cc(l))?m.next().value:null;if(!n)return q["return"](null);p=n.startTime;return q["return"](p)})},u(h,e(c,b),2);if(3!=h.g)return f=h.h,u(h,e(d,b),3);g=h.h;return null!=g&&null!=f?h["return"](Math.max(g,f)):null!=g?h["return"](g):null!=f?h["return"](f):h["return"](b)})}
461
- function vl(a){var b=a.Mc();if(a.B&&a.M&&a.F){var c=a.I;c.j=b;dj(c);a.S&&(c=a.S,b||c.i||(c.i=!0),c.i&&b&&(c.l=!0),c.m=b);Fl(a)}b=(new Map).set("buffering",b);a.dispatchEvent(kl("buffering",b))}function Gl(a){var b=a.g.playbackRate;0!=b&&(a.I&&a.I.set(b),b=kl("ratechange"),a.dispatchEvent(b))}function Fl(a){if(a.B&&a.M){var b=a.B.g;a.M.g==Re?Rk(b,"buffering"):a.g.paused?Rk(b,"paused"):a.g.ended?Rk(b,"ended"):Rk(b,"playing")}}
462
- function Wl(a){try{rm(a,a.i)}catch(c){return ul(a,c),!1}var b=a.i.variants.filter(function(c){return xe(c)});b=a.za.create(b);a.C.setVariants(Array.from(b.values()));return!0}function ll(a){return Wl(a)?a.C.chooseVariant():null}function fm(a){var b=ll(a);b&&Il(a,b,!0,!0,0)}
463
- function Il(a,b,c,d,e){var f=a.j.l;if(b==f)d&&Cj(a.j,b,d,e,!0);else{var g=a.B.h;g.h!=b&&(g.h=b,g.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));Cj(a.j,b,d,e);d=null;f&&(d=pe(f));b=pe(b);c?Ql(a,d,b):sm(a,d,b)}}function hm(a,b){var c=Array.from(a.g.audioTracks).find(function(e){return e.enabled});b.enabled=!0;b.id!==c.id&&(c.enabled=!1);c=we(c);var d=we(b);sm(a,c,d)}
464
- function Rl(a,b,c){a=Nb(a.h.preferredTextLanguage);b=Nb(b.language);c=Nb(c.language);return Mb(c,a)&&!Mb(b,c)}function Ql(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);b=kl("adaptation",b);tm(a,b)}function Vl(a){var b=kl("trackschanged");tm(a,b)}function sm(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);b=kl("variantchanged",b);tm(a,b)}function gm(a){var b=kl("textchanged");tm(a,b)}function Sl(a){var b=kl("texttrackvisibility");tm(a,b)}
463
+ function qm(a,b){var c;return I(function(d){if(1==d.g)return c=a.j?a.j.l:null,u(d,ce(c,b),2);Ul(b);z(d)})}
464
+ function em(a,b){if(a.l!=ml){be(b.variants,a.h.restrictions,a.Bc)&&a.j&&Vl(a);var c=a.m?a.m.g:null;if(c&&a.m.B)for(var d=t(b.variants),e=d.next();!e.done;e=d.next()){e=e.value;e=t((e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]));for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.keySystem==c.keySystem){f=t(f.initData||[]);for(var g=f.next();!g.done;g=f.next())g=g.value,Tf(a.m,g.initDataType,g.initData)}}rm(a,b)}}
465
+ function Pl(a,b){var c,d,e,f,g;return I(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n,p;return I(function(q){if(1==q.g)return k?u(q,k.createSegmentIndex(),2):q["return"](null);n=(m=k.segmentIndex.ac(l))?m.next().value:null;if(!n)return q["return"](null);p=n.startTime;return q["return"](p)})},u(h,e(c,b),2);if(3!=h.g)return f=h.h,u(h,e(d,b),3);g=h.h;return null!=g&&null!=f?h["return"](Math.max(g,f)):null!=g?h["return"](g):null!=f?h["return"](f):h["return"](b)})}
466
+ function vl(a){var b=a.Kc();if(a.B&&a.N&&a.F){var c=a.I;c.j=b;dj(c);a.S&&(c=a.S,b||c.i||(c.i=!0),c.i&&b&&(c.l=!0),c.m=b);Fl(a)}b=(new Map).set("buffering",b);a.dispatchEvent(kl("buffering",b))}function Gl(a){var b=a.g.playbackRate;0!=b&&(a.I&&a.I.set(b),b=kl("ratechange"),a.dispatchEvent(b))}function Fl(a){if(a.B&&a.N){var b=a.B.g;a.N.g==Se?Rk(b,"buffering"):a.g.paused?Rk(b,"paused"):a.g.ended?Rk(b,"ended"):Rk(b,"playing")}}
467
+ function Wl(a){try{rm(a,a.i)}catch(c){return ul(a,c),!1}var b=a.i.variants.filter(function(c){return ye(c)});b=a.ya.create(b);a.C.setVariants(Array.from(b.values()));return!0}function ll(a){return Wl(a)?a.C.chooseVariant():null}function fm(a){var b=ll(a);b&&Il(a,b,!0,!0,0)}
468
+ function Il(a,b,c,d,e){var f=a.j.l;if(b==f)d&&Cj(a.j,b,d,e,!0);else{var g=a.B.h;g.h!=b&&(g.h=b,g.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));Cj(a.j,b,d,e);d=null;f&&(d=qe(f));b=qe(b);c?Ql(a,d,b):sm(a,d,b)}}function hm(a,b){var c=Array.from(a.g.audioTracks).find(function(e){return e.enabled});b.enabled=!0;b.id!==c.id&&(c.enabled=!1);c=xe(c);var d=xe(b);sm(a,c,d)}
469
+ function Rl(a,b,c){a=Mb(a.h.preferredTextLanguage);b=Mb(b.language);c=Mb(c.language);return Lb(c,a)&&!Lb(b,c)}function Ql(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);b=kl("adaptation",b);tm(a,b)}function Vl(a){var b=kl("trackschanged");tm(a,b)}function sm(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);b=kl("variantchanged",b);tm(a,b)}function gm(a){var b=kl("textchanged");tm(a,b)}function Sl(a){var b=kl("texttrackvisibility");tm(a,b)}
465
470
  function Tl(a){var b=(new Map).set("newStatus",a.h.abr.enabled);tm(a,kl("abrstatuschanged",b))}
466
- function um(a,b){if(1002!=b.code&&1011!=b.code||1!=b.category)return!1;var c=a.h.streaming.maxDisabledTime;if(0==c)if(1011==b.code)c=1;else return!1;for(var d=a.Sa().find(function(h){return h.active}),e=a.i,f=t(e.variants),g=f.next();!g.done;g=f.next())g=g.value,g.id===d.id&&(g.disabledUntilTime=Date.now()/1E3+c);ae(e.variants,a.h.restrictions,a.Dc);d=ll(a);if(!d)return!1;e=a.ob().video.reduce(function(h,k){return h+k.end-k.start},0);Il(a,d,!1,!0,e);a.Qf.T(c);return!0}
471
+ function um(a,b){if(1002!=b.code&&1011!=b.code||1!=b.category)return!1;var c=a.h.streaming.maxDisabledTime;if(0==c)if(1011==b.code)c=1;else return!1;for(var d=a.Qa().find(function(h){return h.active}),e=a.i,f=t(e.variants),g=f.next();!g.done;g=f.next())g=g.value,g.id===d.id&&(g.disabledUntilTime=Date.now()/1E3+c);be(e.variants,a.h.restrictions,a.Bc);d=ll(a);if(!d)return!1;e=a.kb().video.reduce(function(h,k){return h+k.end-k.start},0);Il(a,d,!1,!0,e);a.Qf.T(c);return!0}
467
472
  function ul(a,b){if(a.l!=ml)if(um(a,b))b.handled=!0;else{var c=kl("error",(new Map).set("detail",b));a.dispatchEvent(c);c.defaultPrevented&&(b.handled=!0)}}function yl(a,b,c){c=(new Map).set("detail",{schemeIdUri:c.schemeIdUri,value:c.value,startTime:c.startTime,endTime:c.endTime,id:c.id,eventElement:c.eventElement});a.dispatchEvent(kl(b,c))}
468
473
  function tl(a){if(!a.g.error)return null;var b=a.g.error.code;if(1==b)return null;var c=a.g.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new O(2,3,3016,b,c,a.g.error.message)}
469
474
  function Dl(a,b){if(a.j){var c=Object.keys(b),d=1==c.length&&"00"==c[0],e=!1;if(c.length){c=t(a.i.variants);for(var f=c.next();!f.done;f=c.next()){f=f.value;var g=[];f.audio&&g.push(f.audio);f.video&&g.push(f.video);g=t(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;h=f.allowedByKeySystem;if(k.keyIds.size){f.allowedByKeySystem=!0;k=t(k.keyIds);for(var l=k.next();!l.done;l=k.next())l=l.value,l=b[d?"00":l],f.allowedByKeySystem=f.allowedByKeySystem&&!!l&&!vm.includes(l)}h!=f.allowedByKeySystem&&
470
- (e=!0)}}}if(!e||Wl(a))(d=a.j.l)&&!d.allowedByKeySystem&&fm(a),e&&Vl(a)}}function El(a,b,c){if(a.J&&a.J.onExpirationUpdated)a.J.onExpirationUpdated(b,c);b=kl("expirationupdated");a.dispatchEvent(b)}function Hl(a,b,c){0<b&&(a.U()||a.Kf(b));b=a.getDuration();c<b&&(a.U()||a.eb(c))}
475
+ (e=!0)}}}if(!e||Wl(a))(d=a.j.l)&&!d.allowedByKeySystem&&fm(a),e&&Vl(a)}}function El(a,b,c){if(a.J&&a.J.onExpirationUpdated)a.J.onExpirationUpdated(b,c);b=kl("expirationupdated");a.dispatchEvent(b)}function Hl(a,b,c){0<b&&(a.U()||a.Kf(b));b=a.getDuration();c<b&&(a.U()||a.bb(c))}
471
476
  function rm(a,b){var c=a.m?a.m.ld():{},d=Object.keys(c);d=d.length&&"00"==d[0];for(var e=!1,f=!1,g=new Set,h=new Set,k=t(b.variants),l=k.next();!l.done;l=k.next()){l=l.value;var m=[];l.audio&&m.push(l.audio);l.video&&m.push(l.video);m=t(m);for(var n=m.next();!n.done;n=m.next())if(n=n.value,n.keyIds.size){n=t(n.keyIds);for(var p=n.next();!p.done;p=n.next()){p=p.value;var q=c[d?"00":p];q?vm.includes(q)&&h.add(q):g.add(p)}}l.allowedByApplication?l.allowedByKeySystem&&(e=!0):f=!0}if(!e)throw c={hasAppRestrictions:f,
472
- missingKeys:Array.from(g),restrictedKeyStatuses:Array.from(h)},new O(2,4,4012,c);}function Ul(a){if(!a.variants.some(xe))throw new O(2,4,4032);}function tm(a,b){I(function(c){if(1==c.g)return u(c,Promise.resolve(),2);a.l!=ml&&a.dispatchEvent(b);z(c)})}function jm(a){var b=new Set;a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(Nb(c.language)):b.add("und");return b}
473
- function im(a){var b=new Map,c=new Map;a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="und",f=[];d.language&&(e=Nb(d.language));"variant"==d.type?f=d.audioRoles:f=d.roles;f&&f.length||(f=[""]);b.has(e)||b.set(e,new Set);f=t(f);for(var g=f.next();!g.done;g=f.next())g=g.value,b.get(e).add(g),d.label&&(c.has(e)||c.set(e,new Map),c.get(e).set(g,d.label))}var h=[];b.forEach(function(k,l){for(var m=t(k),n=m.next();!n.done;n=m.next()){n=n.value;var p=null;c.has(l)&&c.get(l).has(n)&&(p=c.get(l).get(n));
474
- h.push({language:l,role:n,label:p})}});return h}function ol(){return new O(2,7,7E3)}function jl(a,b,c,d,e,f){return d==a&&e.N==f.N&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function Uj(){return{N:null,mimeType:null,startTime:null,Ie:NaN,uri:null}}function pl(a){return new Promise(function(b,c){a.Rb=function(){return c(ol())};a.wd=function(){return b()};a.onError=function(d){return c(d)};a.yd=function(){return c(ol())}})}J("shaka.Player",S);S.prototype.setVideoContainer=S.prototype.He;
475
- S.prototype.getManifestParserFactory=S.prototype.xg;S.prototype.getManifest=S.prototype.wg;S.prototype.retryStreaming=S.prototype.re;S.prototype.setMaxHardwareResolution=S.prototype.Ce;S.prototype.addChaptersTrack=S.prototype.Vf;S.prototype.addTextTrackAsync=S.prototype.Wf;S.prototype.getStats=S.prototype.getStats;S.prototype.getBufferedInfo=S.prototype.ob;S.prototype.getPresentationStartTimeAsDate=S.prototype.rf;S.prototype.getPlayheadTimeAsDate=S.prototype.Bg;
476
- S.prototype.setTextTrackVisibility=S.prototype.Ge;S.prototype.getChapters=S.prototype.jg;S.prototype.getChaptersTracks=S.prototype.nf;S.prototype.isTextTrackVisible=S.prototype.Pb;S.prototype.selectVariantsByLabel=S.prototype.kh;S.prototype.selectTextLanguage=S.prototype.we;S.prototype.selectAudioLanguage=S.prototype.Fd;S.prototype.getTextLanguages=S.prototype.Eg;S.prototype.getAudioLanguages=S.prototype.fg;S.prototype.getTextLanguagesAndRoles=S.prototype.Fg;
477
- S.prototype.getAudioLanguagesAndRoles=S.prototype.gg;S.prototype.selectVariantTrack=S.prototype.ye;S.prototype.selectTextTrack=S.prototype.xe;S.prototype.getThumbnails=S.prototype.Gg;S.prototype.getImageTracks=S.prototype.qg;S.prototype.getTextTracks=S.prototype.Cb;S.prototype.getVariantTracks=S.prototype.Sa;S.prototype.cancelTrickPlay=S.prototype.Ze;S.prototype.trickPlay=S.prototype.Me;S.prototype.getPlaybackRate=S.prototype.Bb;S.prototype.isBuffering=S.prototype.Mc;S.prototype.getKeyStatuses=S.prototype.ld;
478
- S.prototype.getExpiration=S.prototype.Fc;S.prototype.drmInfo=S.prototype.drmInfo;S.prototype.keySystem=S.prototype.keySystem;S.prototype.goToLive=S.prototype.Kg;S.prototype.seekRange=S.prototype.Ia;S.prototype.isAudioOnly=S.prototype.hc;S.prototype.isInProgress=S.prototype.Nb;S.prototype.isLive=S.prototype.U;S.prototype.getAdManager=S.prototype.jd;S.prototype.getAssetUri=S.prototype.Zd;S.prototype.getNetworkingEngine=S.prototype.Gc;S.prototype.getMediaElement=S.prototype.zg;
479
- S.prototype.getLoadMode=S.prototype.qf;S.prototype.resetConfiguration=S.prototype.hh;S.prototype.getBufferFullness=S.prototype.hg;S.prototype.getConfiguration=S.prototype.getConfiguration;S.prototype.configure=S.prototype.configure;S.prototype.load=S.prototype.load;S.prototype.updateStartTime=S.prototype.wh;S.prototype.unload=S.prototype.Oe;S.prototype.detach=S.prototype.detach;S.prototype.attach=S.prototype.Ac;
480
- S.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return I(function(h){if(1==h.g)return b={},a?u(h,ig(),3):h.D(2);2!=h.g&&(b=h.h);var k={};if(yd()){for(var l in rg)k[l]=!0;for(var m in tg)k[m]=!0}l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};m=t(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var n=m.next();!n.done;n=m.next())n=n.value,k[n]=yd()?!!rg[n]:zd(n);for(var p in l)k[p]=
481
- yd()?!!tg[p]:zd(l[p]);c=k;p='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(ia(wi));
482
- k={};p=t(p);for(l=p.next();!l.done;l=p.next())l=l.value,k[l]=yd()?pd(l)?!0:MediaSource.isTypeSupported(l)||ed(l):zd(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=wm;for(g in f)e[g]=f[g]();return h["return"](e)})};S.isBrowserSupported=nl;S.setAdManagerFactory=function(a){$k=a};S.registerSupportPlugin=function(a,b){wm[a]=b};S.prototype.destroy=S.prototype.destroy;var ml=0,Xk=1,Nl=2,Yl=3;S.LoadMode={DESTROYED:ml,NOT_LOADED:Xk,MEDIA_SOURCE:Nl,SRC_EQUALS:Yl};S.version="v4.1.0";
477
+ missingKeys:Array.from(g),restrictedKeyStatuses:Array.from(h)},new O(2,4,4012,c);}function Ul(a){if(!a.variants.some(ye))throw new O(2,4,4032);}function tm(a,b){I(function(c){if(1==c.g)return u(c,Promise.resolve(),2);a.l!=ml&&a.dispatchEvent(b);z(c)})}function jm(a){var b=new Set;a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(Mb(c.language)):b.add("und");return b}
478
+ function im(a){var b=new Map,c=new Map;a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="und",f=[];d.language&&(e=Mb(d.language));"variant"==d.type?f=d.audioRoles:f=d.roles;f&&f.length||(f=[""]);b.has(e)||b.set(e,new Set);f=t(f);for(var g=f.next();!g.done;g=f.next())g=g.value,b.get(e).add(g),d.label&&(c.has(e)||c.set(e,new Map),c.get(e).set(g,d.label))}var h=[];b.forEach(function(k,l){for(var m=t(k),n=m.next();!n.done;n=m.next()){n=n.value;var p=null;c.has(l)&&c.get(l).has(n)&&(p=c.get(l).get(n));
479
+ h.push({language:l,role:n,label:p})}});return h}function ol(){return new O(2,7,7E3)}function jl(a,b,c,d,e,f){return d==a&&e.O==f.O&&e.uri==f.uri&&e.mimeType==f.mimeType?b:c}function Uj(){return{O:null,mimeType:null,startTime:null,Me:NaN,uri:null}}function pl(a){return new Promise(function(b,c){a.Pb=function(){return c(ol())};a.wd=function(){return b()};a.onError=function(d){return c(d)};a.yd=function(){return c(ol())}})}J("shaka.Player",S);S.prototype.setVideoContainer=S.prototype.Le;
480
+ S.prototype.getManifestParserFactory=S.prototype.xg;S.prototype.getManifest=S.prototype.wg;S.prototype.retryStreaming=S.prototype.we;S.prototype.setMaxHardwareResolution=S.prototype.Ge;S.prototype.addChaptersTrack=S.prototype.Vf;S.prototype.addTextTrackAsync=S.prototype.Wf;S.prototype.getStats=S.prototype.getStats;S.prototype.getBufferedInfo=S.prototype.kb;S.prototype.getPresentationStartTimeAsDate=S.prototype.uf;S.prototype.getPlayheadTimeAsDate=S.prototype.Bg;
481
+ S.prototype.setTextTrackVisibility=S.prototype.Ke;S.prototype.getChapters=S.prototype.jg;S.prototype.getChaptersTracks=S.prototype.qf;S.prototype.isTextTrackVisible=S.prototype.Nb;S.prototype.selectVariantsByLabel=S.prototype.jh;S.prototype.selectTextLanguage=S.prototype.Ae;S.prototype.selectAudioLanguage=S.prototype.Fd;S.prototype.getTextLanguages=S.prototype.Eg;S.prototype.getAudioLanguages=S.prototype.fg;S.prototype.getTextLanguagesAndRoles=S.prototype.Fg;
482
+ S.prototype.getAudioLanguagesAndRoles=S.prototype.gg;S.prototype.selectVariantTrack=S.prototype.Ce;S.prototype.selectTextTrack=S.prototype.Be;S.prototype.getThumbnails=S.prototype.Gg;S.prototype.getImageTracks=S.prototype.qg;S.prototype.getTextTracks=S.prototype.Ab;S.prototype.getVariantTracks=S.prototype.Qa;S.prototype.cancelTrickPlay=S.prototype.cf;S.prototype.trickPlay=S.prototype.Qe;S.prototype.getPlaybackRate=S.prototype.zb;S.prototype.isBuffering=S.prototype.Kc;S.prototype.getKeyStatuses=S.prototype.ld;
483
+ S.prototype.getExpiration=S.prototype.Dc;S.prototype.drmInfo=S.prototype.drmInfo;S.prototype.keySystem=S.prototype.keySystem;S.prototype.goToLive=S.prototype.Kg;S.prototype.seekRange=S.prototype.Ia;S.prototype.isAudioOnly=S.prototype.ec;S.prototype.isInProgress=S.prototype.Lb;S.prototype.isLive=S.prototype.U;S.prototype.getAdManager=S.prototype.jd;S.prototype.getAssetUri=S.prototype.ae;S.prototype.getNetworkingEngine=S.prototype.Ec;S.prototype.getMediaElement=S.prototype.zg;
484
+ S.prototype.getLoadMode=S.prototype.tf;S.prototype.resetConfiguration=S.prototype.gh;S.prototype.getBufferFullness=S.prototype.hg;S.prototype.getConfiguration=S.prototype.getConfiguration;S.prototype.configure=S.prototype.configure;S.prototype.load=S.prototype.load;S.prototype.updateStartTime=S.prototype.vh;S.prototype.unload=S.prototype.Se;S.prototype.detach=S.prototype.detach;S.prototype.attach=S.prototype.yc;
485
+ S.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return I(function(h){if(1==h.g)return b={},a?u(h,lg(),3):h.D(2);2!=h.g&&(b=h.h);var k={};if(Qc()){for(var l in sg)k[l]=!0;for(var m in ug)k[m]=!0}l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};m=t(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var n=m.next();!n.done;n=m.next())n=n.value,k[n]=Qc()?!!sg[n]:Rc(n);for(var p in l)k[p]=
486
+ Qc()?!!ug[p]:Rc(l[p]);c=k;p='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(ia(Ci));
487
+ k={};p=t(p);for(l=p.next();!l.done;l=p.next())l=l.value,k[l]=Qc()?Gd(l)?!0:MediaSource.isTypeSupported(l)||sd(l):Rc(l),m=l.split(";")[0],k[m]=k[m]||k[l];d=k;e={manifest:c,media:d,drm:b};f=wm;for(g in f)e[g]=f[g]();return h["return"](e)})};S.isBrowserSupported=nl;S.setAdManagerFactory=function(a){$k=a};S.registerSupportPlugin=function(a,b){wm[a]=b};S.prototype.destroy=S.prototype.destroy;var ml=0,Xk=1,Nl=2,Yl=3;S.LoadMode={DESTROYED:ml,NOT_LOADED:Xk,MEDIA_SOURCE:Nl,SRC_EQUALS:Yl};S.version="v4.1.3";
483
488
  var vm=["output-restricted","internal-error"],wm={},$k=null,sl={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"},pm={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",
484
- ssa:"text/x-ssa",ass:"text/x-ssa"};function xm(){this.h=[];this.j=this.i=this.g=0};function ym(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 uf;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})}r=ym.prototype;r.getDuration=function(){return this.h.getDuration()};r.getMinSuggestedDuration=function(){return this.h.getMinSuggestedDuration()};r.getRemainingTime=function(){return this.g.getRemainingTime()};r.isPaused=function(){return this.i};
489
+ ssa:"text/x-ssa",ass:"text/x-ssa"};function xm(){this.h=[];this.j=this.i=this.g=0};function ym(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 vf;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})}r=ym.prototype;r.getDuration=function(){return this.h.getDuration()};r.getMinSuggestedDuration=function(){return this.h.getMinSuggestedDuration()};r.getRemainingTime=function(){return this.g.getRemainingTime()};r.isPaused=function(){return this.i};
485
490
  r.isSkippable=function(){return 0<=this.h.getSkipTimeOffset()};r.getTimeUntilSkippable=function(){var a=this.h.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};r.canSkipNow=function(){return this.g.getAdSkippableState()};r.skip=function(){return this.g.skip()};r.pause=function(){return this.g.pause()};r.play=function(){return this.g.resume()};r.getVolume=function(){return this.g.getVolume()};r.setVolume=function(a){return this.g.setVolume(a)};r.isMuted=function(){return 0==this.g.getVolume()};
486
491
  r.isLinear=function(){return this.h.isLinear()};r.resize=function(a,b){var c=!1,d=this.m;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.g.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};r.setMuted=function(a){a?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)};r.getSequenceLength=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getTotalAds()};
487
492
  r.getPositionInSequence=function(){var a=this.h.getAdPodInfo();return null==a?1:a.getAdPosition()};r.release=function(){this.g=this.h=null};J("shaka.ads.ClientSideAd",ym);ym.prototype.release=ym.prototype.release;ym.prototype.getPositionInSequence=ym.prototype.getPositionInSequence;ym.prototype.getSequenceLength=ym.prototype.getSequenceLength;ym.prototype.setMuted=ym.prototype.setMuted;ym.prototype.resize=ym.prototype.resize;ym.prototype.isLinear=ym.prototype.isLinear;ym.prototype.isMuted=ym.prototype.isMuted;
488
493
  ym.prototype.setVolume=ym.prototype.setVolume;ym.prototype.getVolume=ym.prototype.getVolume;ym.prototype.play=ym.prototype.play;ym.prototype.pause=ym.prototype.pause;ym.prototype.skip=ym.prototype.skip;ym.prototype.canSkipNow=ym.prototype.canSkipNow;ym.prototype.getTimeUntilSkippable=ym.prototype.getTimeUntilSkippable;ym.prototype.isSkippable=ym.prototype.isSkippable;ym.prototype.isPaused=ym.prototype.isPaused;ym.prototype.getRemainingTime=ym.prototype.getRemainingTime;
489
- ym.prototype.getMinSuggestedDuration=ym.prototype.getMinSuggestedDuration;ym.prototype.getDuration=ym.prototype.getDuration;function zm(a,b,c,d){var e=this;this.A=a;this.i=b;this.B=null;this.C=NaN;this.j=d;this.m=null;this.h=new uf;google.ima.settings.setLocale(c);a=new google.ima.AdDisplayContainer(this.A,this.i);a.initialize();this.l=new google.ima.AdsLoader(a);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.1.0");this.g=null;this.h.Fa(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){Am(e,f)});this.h.o(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,
490
- function(f){Bm(e,f)});this.i.onended=function(){e.l.contentComplete()}}zm.prototype.stop=function(){this.g&&this.g.stop();this.A&&fk(this.A)};zm.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.l.destroy()};function Bm(a,b){b.getError();Cm(a,null);a.j(new M("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
491
- function Am(a,b){a.j(new M("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.C)));a.g=b.getAdsManager(a.i);a.j(new M("ima-ad-manager-loaded",(new Map).set("imaAdManager",a.g)));var c=a.g.getCuePoints();if(c.length){var d=[];c=t(c);for(var e=c.next();!e.done;e=c.next())d.push({start:e.value,end:null});a.j(new M("ad-cue-points-changed",(new Map).set("cuepoints",d)))}Dm(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,Em(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.o(a.i,"loadeddata",
494
+ ym.prototype.getMinSuggestedDuration=ym.prototype.getMinSuggestedDuration;ym.prototype.getDuration=ym.prototype.getDuration;function zm(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 vf;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.1.3");this.g=null;this.h.Fa(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(f){Am(e,f)});this.h.o(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,
495
+ function(f){Bm(e,f)});this.i.onended=function(){e.m.contentComplete()}}zm.prototype.stop=function(){this.g&&this.g.stop();this.A&&fk(this.A)};zm.prototype.release=function(){this.stop();this.B&&this.B.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.m.destroy()};function Bm(a,b){b.getError();Cm(a,null);a.l(new L("ad-cue-points-changed",(new Map).set("cuepoints",[])))}
496
+ function Am(a,b){a.l(new L("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.C)));a.g=b.getAdsManager(a.i);a.l(new L("ima-ad-manager-loaded",(new Map).set("imaAdManager",a.g)));var c=a.g.getCuePoints();if(c.length){var d=[];c=t(c);for(var e=c.next();!e.done;e=c.next())d.push({start:e.value,end:null});a.l(new L("ad-cue-points-changed",(new Map).set("cuepoints",d)))}Dm(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,Em(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.o(a.i,"loadeddata",
492
497
  function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Em(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,Em(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.B.observe(a.i)),a.g.start()}catch(f){Cm(a,null)}}function Em(a){if(document.fullscreenEnabled)return!!document.fullscreenElement;a=a.i;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1}
493
- function Dm(a){function b(c,d){var e=(new Map).set("originalEvent",c);a.j(new M(d,e))}a.h.o(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){Bm(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){Fm(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.STARTED,function(c){Fm(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.o(a.g,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.o(a.g,google.ima.AdEvent.Type.THIRD_QUARTILE,
498
+ function Dm(a){function b(c,d){var e=(new Map).set("originalEvent",c);a.l(new L(d,e))}a.h.o(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){Bm(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){Fm(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.STARTED,function(c){Fm(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.o(a.g,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.o(a.g,google.ima.AdEvent.Type.THIRD_QUARTILE,
494
499
  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){Cm(a,c)});a.h.o(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){Cm(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")});
495
- a.h.o(a.g,google.ima.AdEvent.Type.PAUSED,function(c){a.m.i=!0;b(c,"ad-paused")});a.h.o(a.g,google.ima.AdEvent.Type.RESUMED,function(c){a.m.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,
500
+ 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,
496
501
  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,
497
- 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 Fm(a,b){var c=b.getAd();a.m=new ym(c,a.g,a.i);c=(new Map).set("ad",a.m).set("sdkAdObject",c).set("originalEvent",b);a.j(new M("ad-started",c));a.m.isLinear()&&(a.A.setAttribute("ad-active","true"),a.i.pause())}
498
- function Cm(a,b){a.j(new M("ad-stopped",(new Map).set("originalEvent",b)));a.m.isLinear()&&(a.A.removeAttribute("ad-active"),a.i.play())};function Gm(a,b){this.i=a;this.h=null;this.g=b}r=Gm.prototype;r.getDuration=function(){return this.h?this.h.duration:-1};r.getMinSuggestedDuration=function(){return this.getDuration()};r.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1};r.isPaused=function(){return this.g.paused};r.isSkippable=function(){return this.i.isSkippable()};r.getTimeUntilSkippable=function(){var a=this.i.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};
502
+ 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 Fm(a,b){var c=b.getAd();a.j=new ym(c,a.g,a.i);c=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b);a.l(new L("ad-started",c));a.j.isLinear()&&(a.A.setAttribute("ad-active","true"),a.i.pause())}
503
+ function Cm(a,b){a.l(new L("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.A.removeAttribute("ad-active"),a.i.play())};function Gm(a,b){this.i=a;this.h=null;this.g=b}r=Gm.prototype;r.getDuration=function(){return this.h?this.h.duration:-1};r.getMinSuggestedDuration=function(){return this.getDuration()};r.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1};r.isPaused=function(){return this.g.paused};r.isSkippable=function(){return this.i.isSkippable()};r.getTimeUntilSkippable=function(){var a=this.i.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};
499
504
  r.canSkipNow=function(){return 0==this.getTimeUntilSkippable()};r.skip=function(){this.g.currentTime+=this.getRemainingTime()};r.pause=function(){return this.g.pause()};r.play=function(){return this.g.play()};r.getVolume=function(){return this.g.volume};r.setVolume=function(a){this.g.volume=a};r.isMuted=function(){return this.g.muted};r.isLinear=function(){return!0};r.resize=function(){};r.setMuted=function(a){this.g.muted=a};
500
505
  r.getSequenceLength=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getTotalAds()};r.getPositionInSequence=function(){var a=this.i.getAdPodInfo();return null==a?1:a.getAdPosition()};r.release=function(){this.g=this.h=this.i=null};J("shaka.ads.ServerSideAd",Gm);Gm.prototype.release=Gm.prototype.release;Gm.prototype.getPositionInSequence=Gm.prototype.getPositionInSequence;Gm.prototype.getSequenceLength=Gm.prototype.getSequenceLength;Gm.prototype.setMuted=Gm.prototype.setMuted;
501
506
  Gm.prototype.resize=Gm.prototype.resize;Gm.prototype.isLinear=Gm.prototype.isLinear;Gm.prototype.isMuted=Gm.prototype.isMuted;Gm.prototype.setVolume=Gm.prototype.setVolume;Gm.prototype.getVolume=Gm.prototype.getVolume;Gm.prototype.play=Gm.prototype.play;Gm.prototype.pause=Gm.prototype.pause;Gm.prototype.skip=Gm.prototype.skip;Gm.prototype.canSkipNow=Gm.prototype.canSkipNow;Gm.prototype.getTimeUntilSkippable=Gm.prototype.getTimeUntilSkippable;Gm.prototype.isSkippable=Gm.prototype.isSkippable;
502
- Gm.prototype.isPaused=Gm.prototype.isPaused;Gm.prototype.getRemainingTime=Gm.prototype.getRemainingTime;Gm.prototype.getMinSuggestedDuration=Gm.prototype.getMinSuggestedDuration;Gm.prototype.getDuration=Gm.prototype.getDuration;function Hm(a,b,c,d){var e=this;this.B=a;this.l=b;this.j=null;this.I=NaN;this.i=d;this.H=!1;this.C=this.m=this.A=null;this.F="";this.G=[];this.h=new uf;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.g=new google.ima.dai.api.StreamManager(this.l,this.B,a);this.i(new M("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g)));this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){Im(e,f)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.F.length?
503
- e.j.resolve(e.F):e.j.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.j=null});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.m=new Gm(f,e.l);e.C&&(e.m.h=e.C);e.i(new M("ad-started",(new Map).set("ad",e.m)));e.B.setAttribute("ad-active","true")});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.B.removeAttribute("ad-active");
504
- var f=e.l.currentTime;e.A&&e.A>f&&(e.l.currentTime=e.A,e.A=null)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.C=f.getStreamData().adProgressData;e.m&&(e.m.h=e.C)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.i(new M("ad-first-quartile"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.i(new M("ad-midpoint"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.i(new M("ad-third-quartile"))});
505
- this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.i(new M("ad-complete"));e.i(new M("ad-stopped"));e.B.removeAttribute("ad-active");e.m=null});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.i(new M("ad-skipped"));e.i(new M("ad-stopped"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(f){var g=f.getStreamData();f=[];g=t(g.cuepoints);for(var h=g.next();!h.done;h=g.next())h=h.value,f.push({start:h.start,end:h.end});e.G=
506
- f;e.i(new M("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}Hm.prototype.stop=function(){this.F="";this.A=null;this.G=[]};Hm.prototype.release=function(){this.stop();this.h&&this.h.release()};Hm.prototype.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.g.onTimedMetadata(b)}};
507
- function Im(a,b){a.i(new M("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.I)));var c=b.getStreamData().url;a.j.resolve(c);a.j=null;a.H||a.h.o(a.l,"seeked",function(){var d=a.l.currentTime;if(0!=d){a.g.streamTimeForContentTime(d);var e=a.g.previousCuePointForStreamTime(d);e&&!e.played&&(a.A=d,a.l.currentTime=e.start)}})};function T(){fb.call(this);this.g=this.i=null;this.h=new xm;this.j=navigator.language}ra(T,fb);r=T.prototype;r.setLocale=function(a){this.j=a};r.initClientSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new O(2,10,1E4);this.i&&this.i.release();this.i=new zm(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)})};
508
- r.release=function(){this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);fb.prototype.release.call(this)};r.onAssetUnload=function(){this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new M("ad-stopped"));this.h=new xm};r.requestClientSideAds=function(a){if(!this.i)throw new O(1,10,10001);var b=this.i;b.C=Date.now()/1E3;b.l.requestAds(a)};
507
+ Gm.prototype.isPaused=Gm.prototype.isPaused;Gm.prototype.getRemainingTime=Gm.prototype.getRemainingTime;Gm.prototype.getMinSuggestedDuration=Gm.prototype.getMinSuggestedDuration;Gm.prototype.getDuration=Gm.prototype.getDuration;function Hm(a,b,c,d){var e=this;this.B=a;this.l=b;this.j=null;this.I=NaN;this.i=d;this.H=!1;this.C=this.m=this.A=null;this.F="";this.G=[];this.h=new vf;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.g=new google.ima.dai.api.StreamManager(this.l,this.B,a);this.i(new L("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g)));this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){Im(e,f)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.F.length?
508
+ e.j.resolve(e.F):e.j.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.j=null});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(f){f=f.getAd();e.m=new Gm(f,e.l);e.C&&(e.m.h=e.C);e.i(new L("ad-started",(new Map).set("ad",e.m)));e.B.setAttribute("ad-active","true")});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.B.removeAttribute("ad-active");
509
+ var f=e.l.currentTime;e.A&&e.A>f&&(e.l.currentTime=e.A,e.A=null)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.C=f.getStreamData().adProgressData;e.m&&(e.m.h=e.C)});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.i(new L("ad-first-quartile"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.i(new L("ad-midpoint"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.i(new L("ad-third-quartile"))});
510
+ this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.i(new L("ad-complete"));e.i(new L("ad-stopped"));e.B.removeAttribute("ad-active");e.m=null});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.i(new L("ad-skipped"));e.i(new L("ad-stopped"))});this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(f){var g=f.getStreamData();f=[];g=t(g.cuepoints);for(var h=g.next();!h.done;h=g.next())h=h.value,f.push({start:h.start,end:h.end});e.G=
511
+ f;e.i(new L("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}Hm.prototype.stop=function(){this.F="";this.A=null;this.G=[]};Hm.prototype.release=function(){this.stop();this.h&&this.h.release()};Hm.prototype.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.g.onTimedMetadata(b)}};
512
+ function Im(a,b){a.i(new L("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.I)));var c=b.getStreamData().url;a.j.resolve(c);a.j=null;a.H||a.h.o(a.l,"seeked",function(){var d=a.l.currentTime;if(0!=d){a.g.streamTimeForContentTime(d);var e=a.g.previousCuePointForStreamTime(d);e&&!e.played&&(a.A=d,a.l.currentTime=e.start)}})};function T(){fb.call(this);this.g=this.i=null;this.h=new xm;this.j=navigator.language}qa(T,fb);r=T.prototype;r.setLocale=function(a){this.j=a};r.initClientSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new O(2,10,1E4);this.i&&this.i.release();this.i=new zm(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)})};
513
+ r.release=function(){this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);fb.prototype.release.call(this)};r.onAssetUnload=function(){this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new L("ad-stopped"));this.h=new xm};r.requestClientSideAds=function(a){if(!this.i)throw new O(1,10,10001);var b=this.i;b.C=Date.now()/1E3;b.m.requestAds(a)};
509
514
  r.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new O(2,10,10002);this.g&&this.g.release();this.g=new Hm(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)})};
510
- r.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new O(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&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.1.0";c=this.g;var d=b;c.j?c=Promise.reject(new O(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
511
- (c.H=!0),c.j=new Nc,c.g.requestStream(a),c.F=d||"",c.I=Date.now()/1E3,c=c.j);return c};r.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new O(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.1.0";this.g.g.replaceAdTagParameters(a)};r.getServerSideCuePoints=function(){if(!this.g)throw new O(1,10,10003);return this.g.G};
515
+ r.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new O(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&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.1.3";c=this.g;var d=b;c.j?c=Promise.reject(new O(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&&
516
+ (c.H=!0),c.j=new Nc,c.g.requestStream(a),c.F=d||"",c.I=Date.now()/1E3,c=c.j);return c};r.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new O(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.1.3";this.g.g.replaceAdTagParameters(a)};r.getServerSideCuePoints=function(){if(!this.g)throw new O(1,10,10003);return this.g.G};
512
517
  r.getStats=function(){var a=this.h;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};r.onDashTimedMetadata=function(a){if(this.g&&"urn:google:dai:2018"==a.schemeIdUri){var b=a.schemeIdUri,c=a.eventElement?a.eventElement.getAttribute("messageData"):null;this.g.g.processMetadata(b,c,a.startTime)}};r.onHlsTimedMetadata=function(a,b){this.g&&this.g.g.processMetadata("ID3",a.data,b)};r.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)};J("shaka.ads.AdManager",T);
513
518
  T.prototype.onCueMetadataChange=T.prototype.onCueMetadataChange;T.prototype.onHlsTimedMetadata=T.prototype.onHlsTimedMetadata;T.prototype.onDashTimedMetadata=T.prototype.onDashTimedMetadata;T.prototype.getStats=T.prototype.getStats;T.prototype.getServerSideCuePoints=T.prototype.getServerSideCuePoints;T.prototype.replaceServerSideAdTagParameters=T.prototype.replaceServerSideAdTagParameters;T.prototype.requestServerSideStream=T.prototype.requestServerSideStream;T.prototype.initServerSide=T.prototype.initServerSide;
514
519
  T.prototype.requestClientSideAds=T.prototype.requestClientSideAds;T.prototype.onAssetUnload=T.prototype.onAssetUnload;T.prototype.release=T.prototype.release;T.prototype.initClientSide=T.prototype.initClientSide;T.prototype.setLocale=T.prototype.setLocale;T.ADS_LOADED="ads-loaded";T.AD_STARTED="ad-started";T.AD_FIRST_QUARTILE="ad-first-quartile";T.AD_MIDPOINT="ad-midpoint";T.AD_THIRD_QUARTILE="ad-third-quartile";T.AD_COMPLETE="ad-complete";T.AD_STOPPED="ad-stopped";T.AD_SKIPPED="ad-skipped";
515
520
  T.AD_VOLUME_CHANGED="ad-volume-changed";T.AD_MUTED="ad-muted";T.AD_PAUSED="ad-paused";T.AD_RESUMED="ad-resumed";T.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";T.CUEPOINTS_CHANGED="ad-cue-points-changed";T.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";T.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";T.AD_CLICKED="ad-clicked";T.AD_PROGRESS="ad-progress";T.AD_BUFFERING="ad-buffering";T.AD_IMPRESSION="ad-impression";T.AD_DURATION_CHANGED="ad-duration-changed";T.AD_CLOSED="ad-closed";
516
- T.AD_LOADED="ad-loaded";T.ALL_ADS_COMPLETED="all-ads-completed";T.AD_LINEAR_CHANGED="ad-linear-changed";T.AD_METADATA="ad-metadata";T.AD_RECOVERABLE_ERROR="ad-recoverable-error";T.AD_BREAK_READY="ad-break-ready";T.AD_INTERACTION="ad-interaction";$k=function(){return new T};function Jm(a){return JSON.stringify(a,function(b,c){if("function"!=typeof c){if(c instanceof Event||c instanceof M){var d={};for(f in c){var e=c[f];e&&"object"==typeof e?"detail"==f&&(d[f]=e):f in Event||(d[f]=e)}return d}if(c instanceof Error){var f=new Set(["name","message","stack"]);for(d in c)f.add(d);e=t(Object.getOwnPropertyNames(c));for(d=e.next();!d.done;d=e.next())f.add(d.value);e={};f=t(f);for(d=f.next();!d.done;d=f.next())d=d.value,e[d]=c[d];f={__type__:"Error",contents:e}}else if(c instanceof
517
- TimeRanges)for(f={__type__:"TimeRanges",length:c.length,start:[],end:[]},d=t(Yh(c)),e=d.next();!e.done;e=d.next()){e=e.value;var g=e.end;f.start.push(e.start);f.end.push(g)}else f=c instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(c)}:"number"==typeof c?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c;return f}})}
521
+ T.AD_LOADED="ad-loaded";T.ALL_ADS_COMPLETED="all-ads-completed";T.AD_LINEAR_CHANGED="ad-linear-changed";T.AD_METADATA="ad-metadata";T.AD_RECOVERABLE_ERROR="ad-recoverable-error";T.AD_BREAK_READY="ad-break-ready";T.AD_INTERACTION="ad-interaction";$k=function(){return new T};function Jm(a){return JSON.stringify(a,function(b,c){if("function"!=typeof c){if(c instanceof Event||c instanceof L){var d={};for(f in c){var e=c[f];e&&"object"==typeof e?"detail"==f&&(d[f]=e):f in Event||(d[f]=e)}return d}if(c instanceof Error){var f=new Set(["name","message","stack"]);for(d in c)f.add(d);e=t(Object.getOwnPropertyNames(c));for(d=e.next();!d.done;d=e.next())f.add(d.value);e={};f=t(f);for(d=f.next();!d.done;d=f.next())d=d.value,e[d]=c[d];f={__type__:"Error",contents:e}}else if(c instanceof
522
+ TimeRanges)for(f={__type__:"TimeRanges",length:c.length,start:[],end:[]},d=t(di(c)),e=d.next();!e.done;e=d.next()){e=e.value;var g=e.end;f.start.push(e.start);f.end.push(g)}else f=c instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(c)}:"number"==typeof c?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c;return f}})}
518
523
  function Km(a){return JSON.parse(a,function(b,c){if("NaN"==c)var d=NaN;else if("-Infinity"==c)d=-Infinity;else if("Infinity"==c)d=Infinity;else if(c&&"object"==typeof c&&"TimeRanges"==c.__type__)d=Lm(c);else if(c&&"object"==typeof c&&"Uint8Array"==c.__type__)d=new Uint8Array(c.entries);else if(c&&"object"==typeof c&&"Error"==c.__type__){d=c.contents;var e=Error(d.message),f;for(f in d)e[f]=d[f];d=e}else d=c;return d})}
519
524
  function Lm(a){return{length:a.length,start:function(b){return a.start[b]},end:function(b){return a.end[b]}}}
520
525
  var Mm="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),Nm="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),Om=["loop","playbackRate"],Pm=["pause","play"],Qm={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getConfiguration:4,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getTextTracks:2,
521
526
  getStats:5,getVariantTracks:2,getImageTracks:2,getThumbnails:2,isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},Rm={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},Sm=[["getConfiguration","configure"]],Tm=[["isTextTrackVisible","setTextTrackVisibility"]],Um="addChaptersTrack addTextTrackAsync cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),
522
- Vm=["attach","detach","load","unload"];function Wm(a,b,c,d,e,f,g){var h=this;this.I=a;this.P=g;this.j=new P(b);this.S=c;this.C=!1;this.B=d;this.H=e;this.K=f;this.h=this.m=!1;this.M="";this.A=null;this.F=function(){return Xm(h)};this.G=function(k,l){var m=Km(l);switch(m.type){case "event":var n=m.targetName;m=Qa(m.event);h.B(n,m);break;case "update":n=m.update;for(var p in n){m=h.g[p]||{};for(var q in n[p])m[q]=n[p][q]}h.C&&(h.S(),h.C=!1);break;case "asyncComplete":if(p=m.id,m=m.error,q=h.i[p],delete h.i[p],q)if(m){p=new O(m.severity,m.category,
523
- m.code);for(n in m)p[n]=m[n];q.reject(p)}else q.resolve()}};this.g={video:{},player:{}};this.J=0;this.i={};this.l=null;Ym.add(this)}r=Wm.prototype;r.destroy=function(){Ym["delete"](this);Zm(this);$m&&an(this);this.j&&(this.j.stop(),this.j=null);this.H=this.B=null;this.h=this.m=!1;this.G=this.F=this.l=this.i=this.g=this.A=null;return Promise.resolve()};r.qa=function(){return this.h};r.Dd=function(){return this.M};
524
- r.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.j.ya();var a=new chrome.cast.SessionRequest(this.I,[],null,this.P,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(Ym),d=c.next();!d.done;d=c.next())bn(d.value,b)},function(b){for(var c=t(Ym),d=c.next();!d.done;d=c.next())d=d.value,cn="available"==b,d.j.ya()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});cn&&this.j.T(dn);(a=$m)&&a.status!=chrome.cast.SessionStatus.STOPPED?
525
- bn(this,a):$m=null}else window.__onGCastApiAvailable||(window.__onGCastApiAvailable=en),window.__onGCastApiAvailable!=en&&Ua("A global Cast SDK hook is already installed! Shaka Player will be unable to receive a notification when the Cast SDK is ready.")};r.ze=function(a){this.A=a;this.h&&fn(this,{type:"appData",appData:this.A})};
526
- r.cast=function(a){var b=this;return I(function(c){if(!b.m)throw new O(1,8,8E3);if(!cn)throw new O(1,8,8001);if(b.h)throw new O(1,8,8002);b.l=new Nc;chrome.cast.requestSession(function(d){return gn(b,a,d)},function(d){return hn(b,d)});return u(c,b.l,0)})};function jn(a){if(a.h){var b=a.K();chrome.cast.requestSession(function(c){return gn(a,b,c)},function(c){return hn(a,c)})}}r.ac=function(){if(this.h){Zm(this);if($m){an(this);try{$m.stop(function(){},function(){})}catch(a){}$m=null}Xm(this)}};
527
- r.get=function(a,b){var c=this;if("video"==a){if(Pm.includes(b))return function(){return c.Ef.apply(c,[a,b].concat(ia(Ga.apply(0,arguments))))}}else if("player"==a){if(Rm[b]&&!this.get("player","isLive")())return function(){};if(Um.includes(b))return function(){return c.Ef.apply(c,[a,b].concat(ia(Ga.apply(0,arguments))))};if(Vm.includes(b))return function(){return c.eh.apply(c,[a,b].concat(ia(Ga.apply(0,arguments))))};if(Qm[b])return function(){return c.g[a][b]}}return this.g[a][b]};
527
+ Vm=["attach","detach","load","unload"];function Wm(a,b,c,d,e,f,g){var h=this;this.I=a;this.P=g;this.j=new P(b);this.S=c;this.C=!1;this.B=d;this.H=e;this.K=f;this.h=this.m=!1;this.N="";this.A=null;this.F=function(){return Xm(h)};this.G=function(k,l){var m=Km(l);switch(m.type){case "event":var n=m.targetName;m=Pa(m.event);h.B(n,m);break;case "update":n=m.update;for(var p in n){m=h.g[p]||{};for(var q in n[p])m[q]=n[p][q]}h.C&&(h.S(),h.C=!1);break;case "asyncComplete":if(p=m.id,m=m.error,q=h.i[p],delete h.i[p],q)if(m){p=new O(m.severity,m.category,
528
+ m.code);for(n in m)p[n]=m[n];q.reject(p)}else q.resolve()}};this.g={video:{},player:{}};this.J=0;this.i={};this.l=null;Ym.add(this)}r=Wm.prototype;r.destroy=function(){Ym["delete"](this);Zm(this);$m&&an(this);this.j&&(this.j.stop(),this.j=null);this.H=this.B=null;this.h=this.m=!1;this.G=this.F=this.l=this.i=this.g=this.A=null;return Promise.resolve()};r.qa=function(){return this.h};r.Dd=function(){return this.N};
529
+ r.init=function(){if(this.I.length)if(window.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0;this.j.xa();var a=new chrome.cast.SessionRequest(this.I,[],null,this.P,null);a=new chrome.cast.ApiConfig(a,function(b){for(var c=t(Ym),d=c.next();!d.done;d=c.next())bn(d.value,b)},function(b){for(var c=t(Ym),d=c.next();!d.done;d=c.next())d=d.value,cn="available"==b,d.j.xa()},"origin_scoped");chrome.cast.initialize(a,function(){},function(){});cn&&this.j.T(dn);(a=$m)&&a.status!=chrome.cast.SessionStatus.STOPPED?
530
+ bn(this,a):$m=null}else window.__onGCastApiAvailable||(window.__onGCastApiAvailable=en),window.__onGCastApiAvailable!=en&&Ua("A global Cast SDK hook is already installed! Shaka Player will be unable to receive a notification when the Cast SDK is ready.")};r.De=function(a){this.A=a;this.h&&fn(this,{type:"appData",appData:this.A})};
531
+ r.cast=function(a){var b=this;return I(function(c){if(!b.m)throw new O(1,8,8E3);if(!cn)throw new O(1,8,8001);if(b.h)throw new O(1,8,8002);b.l=new Nc;chrome.cast.requestSession(function(d){return gn(b,a,d)},function(d){return hn(b,d)});return u(c,b.l,0)})};function jn(a){if(a.h){var b=a.K();chrome.cast.requestSession(function(c){return gn(a,b,c)},function(c){return hn(a,c)})}}r.Zb=function(){if(this.h){Zm(this);if($m){an(this);try{$m.stop(function(){},function(){})}catch(a){}$m=null}Xm(this)}};
532
+ r.get=function(a,b){var c=this;if("video"==a){if(Pm.includes(b))return function(){return c.Ef.apply(c,[a,b].concat(ia(Ha.apply(0,arguments))))}}else if("player"==a){if(Rm[b]&&!this.get("player","isLive")())return function(){};if(Um.includes(b))return function(){return c.Ef.apply(c,[a,b].concat(ia(Ha.apply(0,arguments))))};if(Vm.includes(b))return function(){return c.dh.apply(c,[a,b].concat(ia(Ha.apply(0,arguments))))};if(Qm[b])return function(){return c.g[a][b]}}return this.g[a][b]};
528
533
  r.set=function(a,b,c){this.g[a][b]=c;fn(this,{type:"set",targetName:a,property:b,value:c})};function gn(a,b,c){$m=c;c.addUpdateListener(a.F);c.addMessageListener("urn:x-cast:com.google.shaka.v2",a.G);Xm(a);fn(a,{type:"init",initState:b,appData:a.A});a.l.resolve()}function hn(a,b){var c=8003;switch(b.code){case "cancel":c=8004;break;case "timeout":c=8005;break;case "receiver_unavailable":c=8006}a.l.reject(new O(2,8,c,b))}
529
- r.Ef=function(a,b){fn(this,{type:"call",targetName:a,methodName:b,args:Ga.apply(2,arguments)})};r.eh=function(a,b){var c=Ga.apply(2,arguments),d=new Nc,e=this.J.toString();this.J++;this.i[e]=d;try{fn(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function bn(a,b){var c=a.K();a.l=new Nc;a.C=!0;gn(a,c,b)}function an(a){var b=$m;b.removeUpdateListener(a.F);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
530
- function Xm(a){var b=$m?"connected"==$m.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};Zm(a)}a.h=b;a.M=b?$m.receiver.friendlyName:"";a.j.ya()}function Zm(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new O(1,7,7E3))}}function fn(a,b){var c=Jm(b),d=$m;try{d.sendMessage("urn:x-cast:com.google.shaka.v2",c,function(){},Xa)}catch(e){throw c=new O(2,8,8005,e),d=new M("error",(new Map).set("detail",c)),a.B("player",d),a.ac(),c;}}var dn=.02,cn=!1,$m=null,Ym=new Set;
531
- function en(a){if(a){a=t(Ym);for(var b=a.next();!b.done;b=a.next())b.value.init()}};function kn(a,b,c,d){d=void 0===d?!1:d;fb.call(this);var e=this;this.i=a;this.h=b;this.m=this.A=this.j=this.B=this.l=null;this.G=c;this.F=d;this.C=new Map;this.g=new Wm(c,function(){return ln(e)},function(){return mn(e)},function(f,g){return nn(e,f,g)},function(){return on(e)},function(){return pn(e)},d);qn(this)}ra(kn,fb);r=kn.prototype;
532
- r.destroy=function(a){a&&this.g.ac();this.m&&(this.m.release(),this.m=null);a=[];this.h&&(a.push(this.h.destroy()),this.h=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.B=this.l=this.i=null;fb.prototype.release.call(this);return Promise.all(a)};r.Db=function(){return this.l};r.dc=function(){return this.B};r.Ye=function(){return this.g.m&&cn};r.qa=function(){return this.g.qa()};r.Dd=function(){return this.g.Dd()};
533
- r.cast=function(){var a=this,b;return I(function(c){return 1==c.g?(b=pn(a),u(c,a.g.cast(b),2)):a.h?u(c,a.h.Oe(),0):c["return"]()})};r.ze=function(a){this.g.ze(a)};r.Mf=function(){jn(this.g)};r.ac=function(){this.g.ac()};
534
- r.cf=function(a,b){b=void 0===b?!1:b;var c=this;return I(function(d){if(1==d.g){if(a==c.G&&b==c.F)return d["return"]();c.G=a;c.F=b;c.g.ac();return u(d,c.g.destroy(),2)}c.g=null;c.g=new Wm(a,function(){return ln(c)},function(){return mn(c)},function(e,f){return nn(c,e,f)},function(){return on(c)},function(){return pn(c)},b);c.g.init();z(d)})};
535
- function qn(a){a.g.init();a.m=new uf;for(var b=t(Mm),c=b.next();!c.done;c=b.next())a.m.o(a.i,c.value,function(f){a.g.qa()||(f=Qa(f),a.j.dispatchEvent(f))});for(var d in Ra)a.m.o(a.h,Ra[d],function(f){a.g.qa()||a.A.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.uc=e,Object.defineProperty(a.l,b.uc,{configurable:!1,enumerable:!0,get:function(f){return function(){return rn(a,f.uc)}}(b),set:function(f){return function(g){var h=f.uc;a.g.qa()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={uc:b.uc};a.B={};sn(a,
534
+ r.Ef=function(a,b){fn(this,{type:"call",targetName:a,methodName:b,args:Ha.apply(2,arguments)})};r.dh=function(a,b){var c=Ha.apply(2,arguments),d=new Nc,e=this.J.toString();this.J++;this.i[e]=d;try{fn(this,{type:"asyncCall",targetName:a,methodName:b,args:c,id:e})}catch(f){d.reject(f)}return d};function bn(a,b){var c=a.K();a.l=new Nc;a.C=!0;gn(a,c,b)}function an(a){var b=$m;b.removeUpdateListener(a.F);b.removeMessageListener("urn:x-cast:com.google.shaka.v2",a.G)}
535
+ function Xm(a){var b=$m?"connected"==$m.status:!1;if(a.h&&!b){a.H();for(var c in a.g)a.g[c]={};Zm(a)}a.h=b;a.N=b?$m.receiver.friendlyName:"";a.j.xa()}function Zm(a){for(var b in a.i){var c=a.i[b];delete a.i[b];c.reject(new O(1,7,7E3))}}function fn(a,b){var c=Jm(b),d=$m;try{d.sendMessage("urn:x-cast:com.google.shaka.v2",c,function(){},Xa)}catch(e){throw c=new O(2,8,8005,e),d=new L("error",(new Map).set("detail",c)),a.B("player",d),a.Zb(),c;}}var dn=.02,cn=!1,$m=null,Ym=new Set;
536
+ function en(a){if(a){a=t(Ym);for(var b=a.next();!b.done;b=a.next())b.value.init()}};function kn(a,b,c,d){d=void 0===d?!1:d;fb.call(this);var e=this;this.i=a;this.h=b;this.m=this.A=this.j=this.B=this.l=null;this.G=c;this.F=d;this.C=new Map;this.g=new Wm(c,function(){return ln(e)},function(){return mn(e)},function(f,g){return nn(e,f,g)},function(){return on(e)},function(){return pn(e)},d);qn(this)}qa(kn,fb);r=kn.prototype;
537
+ r.destroy=function(a){a&&this.g.Zb();this.m&&(this.m.release(),this.m=null);a=[];this.h&&(a.push(this.h.destroy()),this.h=null);this.g&&(a.push(this.g.destroy()),this.g=null);this.B=this.l=this.i=null;fb.prototype.release.call(this);return Promise.all(a)};r.Bb=function(){return this.l};r.bc=function(){return this.B};r.bf=function(){return this.g.m&&cn};r.qa=function(){return this.g.qa()};r.Dd=function(){return this.g.Dd()};
538
+ r.cast=function(){var a=this,b;return I(function(c){return 1==c.g?(b=pn(a),u(c,a.g.cast(b),2)):a.h?u(c,a.h.Se(),0):c["return"]()})};r.De=function(a){this.g.De(a)};r.Mf=function(){jn(this.g)};r.Zb=function(){this.g.Zb()};
539
+ r.gf=function(a,b){b=void 0===b?!1:b;var c=this;return I(function(d){if(1==d.g){if(a==c.G&&b==c.F)return d["return"]();c.G=a;c.F=b;c.g.Zb();return u(d,c.g.destroy(),2)}c.g=null;c.g=new Wm(a,function(){return ln(c)},function(){return mn(c)},function(e,f){return nn(c,e,f)},function(){return on(c)},function(){return pn(c)},b);c.g.init();z(d)})};
540
+ function qn(a){a.g.init();a.m=new vf;for(var b=t(Mm),c=b.next();!c.done;c=b.next())a.m.o(a.i,c.value,function(f){a.g.qa()||(f=Pa(f),a.j.dispatchEvent(f))});for(var d in Qa)a.m.o(a.h,Qa[d],function(f){a.g.qa()||a.A.dispatchEvent(f)});a.l={};b={};for(var e in a.i)b.sc=e,Object.defineProperty(a.l,b.sc,{configurable:!1,enumerable:!0,get:function(f){return function(){return rn(a,f.sc)}}(b),set:function(f){return function(g){var h=f.sc;a.g.qa()?a.g.set("video",h,g):a.i[h]=g}}(b)}),b={sc:b.sc};a.B={};sn(a,
536
541
  function(f){Object.defineProperty(a.B,f,{configurable:!1,enumerable:!0,get:function(){return tn(a,f)}})});un(a);a.j=new fb;a.j.sd=a.l;a.A=new fb;a.A.sd=a.B}function un(a){var b=new Map;sn(a,function(c,d){if(b.has(d)){var e=b.get(d);c.length<e.length?a.C.set(c,e):a.C.set(e,c)}else b.set(d,c)})}
537
542
  function sn(a,b){function c(l){return"constructor"==l||"function"!=typeof d[l]?!1:!e.has(l)}var d=a.h,e=new Set;for(f in d)c(f)&&(e.add(f),b(f,d[f]));var f=Object.getPrototypeOf(d);for(var g=Object.getPrototypeOf({});f&&f!=g;){for(var h=t(Object.getOwnPropertyNames(f)),k=h.next();!k.done;k=h.next())k=k.value,c(k)&&(e.add(k),b(k,d[k]));f=Object.getPrototypeOf(f)}}
538
- function pn(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.Zd(),startTime:null};a.i.pause();for(var c=t(Om),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.i[d];a.i.ended||(b.startTime=a.i.currentTime);c=t(Sm);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.h[e[0]]();b.player[d]=e}c=t(Tm);for(d=c.next();!d.done;d=c.next())e=d.value,d=e[1],e=a.h[e[0]](),b.playerAfterLoad[d]=e;return b}function ln(a){var b=new M("caststatuschanged");a.dispatchEvent(b)}
539
- function mn(a){var b=new M(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
543
+ function pn(a){var b={video:{},player:{},playerAfterLoad:{},manifest:a.h.ae(),startTime:null};a.i.pause();for(var c=t(Om),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.i[d];a.i.ended||(b.startTime=a.i.currentTime);c=t(Sm);for(d=c.next();!d.done;d=c.next()){var e=d.value;d=e[1];e=a.h[e[0]]();b.player[d]=e}c=t(Tm);for(d=c.next();!d.done;d=c.next())e=d.value,d=e[1],e=a.h[e[0]](),b.playerAfterLoad[d]=e;return b}function ln(a){var b=new L("caststatuschanged");a.dispatchEvent(b)}
544
+ function mn(a){var b=new L(a.l.paused?"pause":"play");a.j.dispatchEvent(b)}
540
545
  function on(a){for(var b=t(Sm),c=b.next();!c.done;c=b.next()){var d=c.value;c=d[1];d=a.g.get("player",d[0])();a.h[c](d)}var e=a.g.get("player","getAssetUri")();c=a.g.get("video","ended");b=Promise.resolve();var f=a.i.autoplay;d=null;c||(d=a.g.get("video","currentTime"));e&&(a.i.autoplay=!1,b=a.h.load(e,d));var g={};c=t(Om);for(d=c.next();!d.done;d=c.next())d=d.value,g[d]=a.g.get("video",d);b.then(function(){if(a.i){for(var h=t(Om),k=h.next();!k.done;k=h.next())k=k.value,a.i[k]=g[k];h=t(Tm);for(k=
541
- h.next();!k.done;k=h.next()){var l=k.value;k=l[1];l=a.g.get("player",l[0])();a.h[k](l)}a.i.autoplay=f;e&&a.i.play()}},function(h){h=(new Map).set("detail",h);h=new M("error",h);a.h.dispatchEvent(h)})}
546
+ h.next();!k.done;k=h.next()){var l=k.value;k=l[1];l=a.g.get("player",l[0])();a.h[k](l)}a.i.autoplay=f;e&&a.i.play()}},function(h){h=(new Map).set("detail",h);h=new L("error",h);a.h.dispatchEvent(h)})}
542
547
  function rn(a,b){if("addEventListener"==b)return function(d,e,f){return a.j.addEventListener(d,e,f)};if("removeEventListener"==b)return function(d,e,f){return a.j.removeEventListener(d,e,f)};if(a.g.qa()&&0==Object.keys(a.g.g.video).length){var c=a.i[b];if("function"!=typeof c)return c}return a.g.qa()?a.g.get("video",b):(c=a.i[b],"function"==typeof c&&(c=c.bind(a.i)),c)}
543
- function tn(a,b){a.C.has(b)&&(b=a.C.get(b));if("addEventListener"==b)return function(c,d,e){return a.A.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.A.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.l};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.Gc()};if("getDrmEngine"==b)return function(){return a.h.m};if("getAdManager"==b)return function(){return a.h.jd()};
544
- if("setVideoContainer"==b)return function(c){return a.h.He(c)};if(a.g.qa()){if("getManifest"==b||"drmInfo"==b)return function(){Ua(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Ua(b+"() does not work while casting!");return Promise.resolve()}}return a.g.qa()&&0==Object.keys(a.g.g.video).length&&Qm[b]||!a.g.qa()?a.h[b].bind(a.h):a.g.get("player",b)}function nn(a,b,c){a.g.qa()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.A.dispatchEvent(c))}
545
- J("shaka.cast.CastProxy",kn);kn.prototype.changeReceiverId=kn.prototype.cf;kn.prototype.forceDisconnect=kn.prototype.ac;kn.prototype.suggestDisconnect=kn.prototype.Mf;kn.prototype.setAppData=kn.prototype.ze;kn.prototype.cast=kn.prototype.cast;kn.prototype.receiverName=kn.prototype.Dd;kn.prototype.isCasting=kn.prototype.qa;kn.prototype.canCast=kn.prototype.Ye;kn.prototype.getPlayer=kn.prototype.dc;kn.prototype.getVideo=kn.prototype.Db;kn.prototype.destroy=kn.prototype.destroy;function vn(a,b,c,d){fb.call(this);var e=this;this.g=a;this.h=b;this.j=new uf;this.J={video:a,player:b};this.G=c||function(){};this.K=d||function(f){return f};this.i=null;this.H=!1;this.A=!0;this.m=0;this.F=!1;this.C=!0;this.B=this.l=null;this.I=new P(function(){wn(e)});xn(this)}ra(vn,fb);r=vn.prototype;r.isConnected=function(){return this.H};r.Ng=function(){return this.A};r.nh=function(a){this.i=a};r.cg=function(){this.i=null};
546
- r.oh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};r.mh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};r.lh=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
548
+ function tn(a,b){a.C.has(b)&&(b=a.C.get(b));if("addEventListener"==b)return function(c,d,e){return a.A.addEventListener(c,d,e)};if("removeEventListener"==b)return function(c,d,e){return a.A.removeEventListener(c,d,e)};if("getMediaElement"==b)return function(){return a.l};if("getSharedConfiguration"==b)return a.g.get("player","getConfiguration");if("getNetworkingEngine"==b)return function(){return a.h.Ec()};if("getDrmEngine"==b)return function(){return a.h.m};if("getAdManager"==b)return function(){return a.h.jd()};
549
+ if("setVideoContainer"==b)return function(c){return a.h.Le(c)};if(a.g.qa()){if("getManifest"==b||"drmInfo"==b)return function(){Ua(b+"() does not work while casting!");return null};if("attach"==b||"detach"==b)return function(){Ua(b+"() does not work while casting!");return Promise.resolve()}}return a.g.qa()&&0==Object.keys(a.g.g.video).length&&Qm[b]||!a.g.qa()?a.h[b].bind(a.h):a.g.get("player",b)}function nn(a,b,c){a.g.qa()&&("video"==b?a.j.dispatchEvent(c):"player"==b&&a.A.dispatchEvent(c))}
550
+ J("shaka.cast.CastProxy",kn);kn.prototype.changeReceiverId=kn.prototype.gf;kn.prototype.forceDisconnect=kn.prototype.Zb;kn.prototype.suggestDisconnect=kn.prototype.Mf;kn.prototype.setAppData=kn.prototype.De;kn.prototype.cast=kn.prototype.cast;kn.prototype.receiverName=kn.prototype.Dd;kn.prototype.isCasting=kn.prototype.qa;kn.prototype.canCast=kn.prototype.bf;kn.prototype.getPlayer=kn.prototype.bc;kn.prototype.getVideo=kn.prototype.Bb;kn.prototype.destroy=kn.prototype.destroy;function vn(a,b,c,d){fb.call(this);var e=this;this.g=a;this.h=b;this.j=new vf;this.J={video:a,player:b};this.G=c||function(){};this.K=d||function(f){return f};this.i=null;this.H=!1;this.A=!0;this.m=0;this.F=!1;this.C=!0;this.B=this.l=null;this.I=new P(function(){wn(e)});xn(this)}qa(vn,fb);r=vn.prototype;r.isConnected=function(){return this.H};r.Ng=function(){return this.A};r.mh=function(a){this.i=a};r.cg=function(){this.i=null};
551
+ r.nh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.title=a};r.lh=function(a){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC});this.i.images=[{url:a}]};r.kh=function(a){this.i||(this.i={});this.i.artist=a;this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK};
547
552
  r.destroy=function(){var a=this,b,c;return I(function(d){if(1==d.g)return a.j&&(a.j.release(),a.j=null),b=[],a.h&&(b.push(a.h.destroy()),a.h=null),a.I&&(a.I.stop(),a.I=null),a.g=null,a.J=null,a.G=null,a.H=!1,a.A=!0,a.l=null,a.B=null,fb.prototype.release.call(a),u(d,Promise.all(b),2);c=cast.receiver.CastReceiverManager.getInstance();c.stop();z(d)})};
548
553
  function xn(a){var b=cast.receiver.CastReceiverManager.getInstance();b.onSenderConnected=function(){return yn(a)};b.onSenderDisconnected=function(){return yn(a)};b.onSystemVolumeChanged=function(){var e=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();e&&zn(a,{type:"update",update:{video:{volume:e.level,muted:e.muted}}},a.l);zn(a,{type:"event",targetName:"video",event:{type:"volumechange"}},a.l)};a.B=b.getCastMessageBus("urn:x-cast:com.google.cast.media");a.B.onMessage=function(e){return An(a,
549
- e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return Bn(a,e)};b.start();b=t(Mm);for(var c=b.next();!c.done;c=b.next())a.j.o(a.g,c.value,function(e){return Cn(a,"video",e)});for(var d in Ra)a.j.o(a.h,Ra[d],function(e){return Cn(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.Ce(3840,2160):a.h.Ce(1920,1080);a.j.o(a.g,"loadeddata",function(){a.F=!0});a.j.o(a.h,"loading",function(){a.A=
554
+ e)};a.l=b.getCastMessageBus("urn:x-cast:com.google.shaka.v2");a.l.onMessage=function(e){return Bn(a,e)};b.start();b=t(Mm);for(var c=b.next();!c.done;c=b.next())a.j.o(a.g,c.value,function(e){return Cn(a,"video",e)});for(var d in Qa)a.j.o(a.h,Qa[d],function(e){return Cn(a,"player",e)});cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?a.h.Ge(3840,2160):a.h.Ge(1920,1080);a.j.o(a.g,"loadeddata",function(){a.F=!0});a.j.o(a.h,"loading",function(){a.A=
550
555
  !1;Dn(a)});a.j.o(a.g,"playing",function(){a.A=!1;Dn(a)});a.j.o(a.g,"pause",function(){Dn(a)});a.j.o(a.h,"unloading",function(){a.A=!0;Dn(a)});a.j.o(a.g,"ended",function(){(new P(function(){a.g&&a.g.ended&&(a.A=!0,Dn(a))})).T(En)})}function yn(a){a.m=0;a.C=!0;a.H=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length;Dn(a)}
551
- function Dn(a){var b;I(function(c){if(1==c.g)return u(c,Promise.resolve(),2);if(!a.h)return c["return"]();b=new M("caststatuschanged");a.dispatchEvent(b);Fn(a)||Gn(a);z(c)})}
552
- function Hn(a,b,c){var d,e,f,g,h,k,l,m,n,p;I(function(q){switch(q.g){case 1:for(d in b.player)e=b.player[d],a.h[d](e);a.G(c);f=a.g.autoplay;return b.manifest?(a.g.autoplay=!1,A(q,5),u(q,a.h.load(b.manifest,b.startTime),7)):u(q,Promise.resolve(),3);case 7:wa(q,3);break;case 5:return g=F(q),h=(new Map).set("detail",g),k=new M("error",h),a.h&&a.h.dispatchEvent(k),q["return"]();case 3:if(!a.h)return q["return"]();for(l in b.video)m=b.video[l],a.g[l]=m;for(n in b.playerAfterLoad)p=b.playerAfterLoad[n],
556
+ function Dn(a){var b;I(function(c){if(1==c.g)return u(c,Promise.resolve(),2);if(!a.h)return c["return"]();b=new L("caststatuschanged");a.dispatchEvent(b);Fn(a)||Gn(a);z(c)})}
557
+ function Hn(a,b,c){var d,e,f,g,h,k,l,m,n,p;I(function(q){switch(q.g){case 1:for(d in b.player)e=b.player[d],a.h[d](e);a.G(c);f=a.g.autoplay;return b.manifest?(a.g.autoplay=!1,A(q,5),u(q,a.h.load(b.manifest,b.startTime),7)):u(q,Promise.resolve(),3);case 7:va(q,3);break;case 5:return g=F(q),h=(new Map).set("detail",g),k=new L("error",h),a.h&&a.h.dispatchEvent(k),q["return"]();case 3:if(!a.h)return q["return"]();for(l in b.video)m=b.video[l],a.g[l]=m;for(n in b.playerAfterLoad)p=b.playerAfterLoad[n],
553
558
  a.h[n](p);a.g.autoplay=f;b.manifest&&(a.g.play(),Gn(a));z(q)}})}function Cn(a,b,c){a.h&&(wn(a),zn(a,{type:"event",targetName:b,event:c},a.l))}
554
559
  function wn(a){a.I.T(In);for(var b={video:{},player:{}},c=t(Nm),d=c.next();!d.done;d=c.next())d=d.value,b.video[d]=a.g[d];if(a.h.U())for(var e in Rm)0==a.m%Rm[e]&&(b.player[e]=a.h[e]());for(var f in Qm)0==a.m%Qm[f]&&(b.player[f]=a.h[f]());if(c=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())b.video.volume=c.level,b.video.muted=c.muted;a.F&&(a.m+=1);zn(a,{type:"update",update:b},a.l);Fn(a)}function Fn(a){return a.C&&(a.g.duration||a.h.U())?(Jn(a),a.C=!1,!0):!1}
555
- function Jn(a,b){var c={contentId:a.h.Zd(),streamType:a.h.U()?"LIVE":"BUFFERED",contentType:""};a.h.U()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);Gn(a,void 0===b?0:b,c)}
560
+ function Jn(a,b){var c={contentId:a.h.ae(),streamType:a.h.U()?"LIVE":"BUFFERED",contentType:""};a.h.U()||(c.duration=a.g.duration);a.i&&(c.metadata=a.i);Gn(a,void 0===b?0:b,c)}
556
561
  function Bn(a,b){var c=Km(b.data);switch(c.type){case "init":a.m=0;a.F=!1;a.C=!0;Hn(a,c.initState,c.appData);wn(a);break;case "appData":a.G(c.appData);break;case "set":var d=c.targetName,e=c.property;c=c.value;if("video"==d){var f=cast.receiver.CastReceiverManager.getInstance();if("volume"==e){f.setSystemVolumeLevel(c);break}else if("muted"==e){f.setSystemVolumeMuted(c);break}}a.J[d][e]=c;break;case "call":d=a.J[c.targetName];d[c.methodName].apply(d,c.args);break;case "asyncCall":d=c.targetName;e=
557
562
  c.methodName;"player"==d&&"load"==e&&(a.m=0,a.F=!1);var g=c.id,h=b.senderId;f=a.J[d];c=f[e].apply(f,c.args);"player"==d&&"load"==e&&(c=c.then(function(){a.C=!0}));c.then(function(){return Kn(a,h,g,null)},function(k){return Kn(a,h,g,k)})}}
558
- function An(a,b){var c=Km(b.data);switch(c.type){case "PLAY":a.g.play();Gn(a);break;case "PAUSE":a.g.pause();Gn(a);break;case "SEEK":var d=c.currentTime,e=c.resumeState;null!=d&&(a.g.currentTime=Number(d));e&&"PLAYBACK_START"==e?(a.g.play(),Gn(a)):e&&"PLAYBACK_PAUSE"==e&&(a.g.pause(),Gn(a));break;case "STOP":a.h.Oe().then(function(){a.h&&Gn(a)});break;case "GET_STATUS":Jn(a,Number(c.requestId));break;case "VOLUME":e=c.volume;d=e.level;e=e.muted;var f=a.g.volume,g=a.g.muted;null!=d&&(a.g.volume=Number(d));
563
+ function An(a,b){var c=Km(b.data);switch(c.type){case "PLAY":a.g.play();Gn(a);break;case "PAUSE":a.g.pause();Gn(a);break;case "SEEK":var d=c.currentTime,e=c.resumeState;null!=d&&(a.g.currentTime=Number(d));e&&"PLAYBACK_START"==e?(a.g.play(),Gn(a)):e&&"PLAYBACK_PAUSE"==e&&(a.g.pause(),Gn(a));break;case "STOP":a.h.Se().then(function(){a.h&&Gn(a)});break;case "GET_STATUS":Jn(a,Number(c.requestId));break;case "VOLUME":e=c.volume;d=e.level;e=e.muted;var f=a.g.volume,g=a.g.muted;null!=d&&(a.g.volume=Number(d));
559
564
  null!=e&&(a.g.muted=e);f==a.g.volume&&g==a.g.muted||Gn(a);break;case "LOAD":a.m=0;a.F=!1;a.C=!1;d=c.media;e=c.currentTime;f=a.K(d.contentId);g=c.autoplay||!0;a.G(d.customData);g&&(a.g.autoplay=!0);a.h.load(f,e).then(function(){a.h&&Jn(a)})["catch"](function(h){var k="LOAD_FAILED";7==h.category&&7E3==h.code&&(k="LOAD_CANCELLED");zn(a,{requestId:Number(c.requestId),type:k},a.B)});break;default:zn(a,{requestId:Number(c.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},a.B)}}
560
- function Kn(a,b,c,d){a.h&&zn(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function zn(a,b,c,d){a.H&&(a=Jm(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function Gn(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.A?Ln:a.h.Mc()?Mn:a.g.paused?Nn:On,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);zn(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.B)}
561
- J("shaka.cast.CastReceiver",vn);vn.prototype.destroy=vn.prototype.destroy;vn.prototype.setContentArtist=vn.prototype.lh;vn.prototype.setContentImage=vn.prototype.mh;vn.prototype.setContentTitle=vn.prototype.oh;vn.prototype.clearContentMetadata=vn.prototype.cg;vn.prototype.setContentMetadata=vn.prototype.nh;vn.prototype.isIdle=vn.prototype.Ng;vn.prototype.isConnected=vn.prototype.isConnected;var In=.5,En=5,Ln="IDLE",On="PLAYING",Mn="BUFFERING",Nn="PAUSED";function Pn(a){var b=this;this.g=[];this.h=[];this.data=[];(new yg).box("moov",Cg).Y("pssh",function(c){if(!(1<c.version)){var d=Gc(c.reader.W,-12,c.size);b.data.push(d);b.g.push(bd(c.reader.Eb(16)));if(0<c.version){d=c.reader.R();for(var e=0;e<d;e++){var f=bd(c.reader.Eb(16));b.h.push(f)}}}}).parse(a)}
562
- function Qn(a,b,c,d){var e=a.length,f=b.length+16+e;0<d&&(f+=4+16*c.size);var g=new Uint8Array(f),h=Jc(g),k=0;h.setUint32(k,f);k+=4;h.setUint32(k,1886614376);k+=4;1>d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0<d)for(h.setUint32(k,c.size),k+=4,b=t(c),c=b.next();!c.done;c=b.next())c=ad(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function Rn(a,b){var c=Sn(a,b);return 1!=c.length?null:c[0]}function Tn(a,b,c){a=Un(a,b,c);return 1!=a.length?null:a[0]}function Sn(a,b){for(var c=[],d=t(a.childNodes),e=d.next();!e.done;e=d.next())e=e.value,e instanceof Element&&e.tagName==b&&c.push(e);return c}function Vn(a){return Array.from(a.childNodes).filter(function(b){return b instanceof Element})}
565
+ function Kn(a,b,c,d){a.h&&zn(a,{type:"asyncComplete",id:c,error:d},a.l,b)}function zn(a,b,c,d){a.H&&(a=Jm(b),d?c.getCastChannel(d).send(a):c.broadcast(a))}function Gn(a,b,c){c=void 0===c?null:c;var d={mediaSessionId:0,playbackRate:a.g.playbackRate,playerState:a.A?Ln:a.h.Kc()?Mn:a.g.paused?Nn:On,currentTime:a.g.currentTime,supportedMediaCommands:63,volume:{level:a.g.volume,muted:a.g.muted}};c&&(d.media=c);zn(a,{requestId:void 0===b?0:b,type:"MEDIA_STATUS",status:[d]},a.B)}
566
+ J("shaka.cast.CastReceiver",vn);vn.prototype.destroy=vn.prototype.destroy;vn.prototype.setContentArtist=vn.prototype.kh;vn.prototype.setContentImage=vn.prototype.lh;vn.prototype.setContentTitle=vn.prototype.nh;vn.prototype.clearContentMetadata=vn.prototype.cg;vn.prototype.setContentMetadata=vn.prototype.mh;vn.prototype.isIdle=vn.prototype.Ng;vn.prototype.isConnected=vn.prototype.isConnected;var In=.5,En=5,Ln="IDLE",On="PLAYING",Mn="BUFFERING",Nn="PAUSED";function Pn(a){var b=this;this.g=[];this.h=[];this.data=[];(new zg).box("moov",Dg).Y("pssh",function(c){if(!(1<c.version)){var d=Gc(c.reader.W,-12,c.size);b.data.push(d);b.g.push(pd(c.reader.Cb(16)));if(0<c.version){d=c.reader.R();for(var e=0;e<d;e++){var f=pd(c.reader.Cb(16));b.h.push(f)}}}}).parse(a)}
567
+ function Qn(a,b,c,d){var e=a.length,f=b.length+16+e;0<d&&(f+=4+16*c.size);var g=new Uint8Array(f),h=Jc(g),k=0;h.setUint32(k,f);k+=4;h.setUint32(k,1886614376);k+=4;1>d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0<d)for(h.setUint32(k,c.size),k+=4,b=t(c),c=b.next();!c.done;c=b.next())c=od(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function Rn(a,b){var c=Sn(a,b);return 1!=c.length?null:c[0]}function Tn(a,b,c){a=Un(a,b,c);return 1!=a.length?null:a[0]}function Sn(a,b){for(var c=[],d=t(a.childNodes),e=d.next();!e.done;e=d.next())e=e.value,e instanceof Element&&e.tagName==b&&c.push(e);return c}function Vn(a){return Array.from(a.childNodes).filter(function(b){return b instanceof Element})}
563
568
  function Un(a,b,c){var d=[];a=t(a.childNodes);for(var e=a.next();!e.done;e=a.next())e=e.value,e instanceof Element&&e.localName==c&&e.namespaceURI==b&&d.push(e);return d}function Wn(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null}function Xn(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,a.hasAttributeNS(d,c))return a.getAttributeNS(d,c);return null}function Yn(a){return Array.from(a.childNodes).every(Zn)?a.textContent.trim():null}
564
569
  function Zn(a){return a.nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION_NODE}function $n(a,b,c,d){d=void 0===d?null:d;var e=null;a=a.getAttribute(b);null!=a&&(e=c(a));return null==e?d:e}function ao(a){if(!a)return null;/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(a)&&(a+="Z");a=Date.parse(a);return isNaN(a)?null:a/1E3}
565
570
  function bo(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}
566
571
  function co(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 eo(a){a=Number(a);return 0===a%1?a:null}function fo(a){a=Number(a);return 0===a%1&&0<a?a:null}function go(a){a=Number(a);return 0===a%1&&0<=a?a:null}function ho(a){a=Number(a);return isNaN(a)?null:a}function io(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c}
567
- function jo(a,b){var c=new DOMParser,d=null;try{d=c.parseFromString(a,"text/xml")}catch(e){return null}c=d.documentElement;return!c||c.getElementsByTagName("parsererror").length||d.documentElement.tagName!=b?null:c}function ko(a,b){try{var c=Rc(a);return jo(c,b)}catch(d){return null}};function lo(a,b,c){var d=mo(a),e=null;a=[];var f=[],g=new Set(d.map(function(h){return h.keyId}));g["delete"](null);if(1<g.size)throw new O(2,4,4010);b||(f=d.filter(function(h){return"urn:mpeg:dash:mp4protection:2011"==h.ve?(e=h.init||e,!1):!0}),f.length&&(a=no(e,f,c,g),0==a.length&&(a=[Eb("",e)])));if(d.length&&(b||!f.length))for(a=[],b=t(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Eb(c,e));if(g=Array.from(g)[0]||null)for(b=t(a),c=b.next();!c.done;c=b.next())for(c=
568
- t(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;return{hf:g,Yi:e,drmInfos:a,mf:!0}}function oo(a,b,c,d){var e=lo(a,c,d);if(b.mf){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.mf=!1}else if(0<e.drmInfos.length&&(b.drmInfos=b.drmInfos.filter(function(f){return e.drmInfos.some(function(g){return g.keySystem==f.keySystem})}),0==b.drmInfos.length))throw new O(2,4,4008);return e.hf||b.hf}
572
+ function jo(a,b){var c=new DOMParser,d=null;try{d=c.parseFromString(a,"text/xml")}catch(e){return null}c=d.documentElement;return!c||c.getElementsByTagName("parsererror").length||d.documentElement.tagName!=b?null:c}function ko(a,b){try{var c=ed(a);return jo(c,b)}catch(d){return null}};function lo(a,b,c){var d=mo(a),e=null;a=[];var f=[],g=new Set(d.map(function(h){return h.keyId}));g["delete"](null);if(1<g.size)throw new O(2,4,4010);b||(f=d.filter(function(h){return"urn:mpeg:dash:mp4protection:2011"==h.ze?(e=h.init||e,!1):!0}),f.length&&(a=no(e,f,c,g),0==a.length&&(a=[Eb("",e)])));if(d.length&&(b||!f.length))for(a=[],b=t(Object.values(c)),c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Eb(c,e));if(g=Array.from(g)[0]||null)for(b=t(a),c=b.next();!c.done;c=b.next())for(c=
573
+ t(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=g;return{kf:g,Xi:e,drmInfos:a,pf:!0}}function oo(a,b,c,d){var e=lo(a,c,d);if(b.pf){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.pf=!1}else if(0<e.drmInfos.length&&(b.drmInfos=b.drmInfos.filter(function(f){return e.drmInfos.some(function(g){return g.keySystem==f.keySystem})}),0==b.drmInfos.length))throw new O(2,4,4008);return e.kf||b.kf}
569
574
  function po(a){var b=0,c=Jc(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=Gc(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c}
570
- function qo(a){a=t(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next()){b=t(b.value.childNodes);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c instanceof Element&&"LA_URL"==c.tagName)return c.textContent}return""}function ro(a){a=Tn(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=$c(a.textContent);a=po(a).filter(function(b){return b.type===so})[0];if(!a)return"";a=Sc(a.value,!0);return(a=jo(a,"WRMHEADER"))?qo(a):""}
571
- function no(a,b,c,d){var e=[];b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g=c[f.ve];if(g){var h;if(h=Tn(f.node,"urn:microsoft:playready","pro")){h=$c(h.textContent);var k=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);h=[{initData:Qn(h,k,new Set,0),initDataType:"cenc",keyId:f.keyId}]}else h=null;k=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===f.ve)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,
575
+ function qo(a){a=t(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next()){b=t(b.value.childNodes);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c instanceof Element&&"LA_URL"==c.tagName)return c.textContent}return""}function ro(a){a=Tn(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=nd(a.textContent);a=po(a).filter(function(b){return b.type===so})[0];if(!a)return"";a=fd(a.value,!0);return(a=jo(a,"WRMHEADER"))?qo(a):""}
576
+ function no(a,b,c,d){var e=[];b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g=c[f.ze];if(g){var h;if(h=Tn(f.node,"urn:microsoft:playready","pro")){h=nd(h.textContent);var k=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);h=[{initData:Qn(h,k,new Set,0),initDataType:"cenc",keyId:f.keyId}]}else h=null;k=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===f.ze)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,
572
577
  226,251,75]),m=new Uint8Array([]);k=[{initData:Qn(m,l,k,1),initDataType:"cenc",keyId:f.keyId}]}h=Eb(g,f.init||a||h||k);if(g=to.get(g))h.licenseServerUri=g(f);e.push(h)}}return e}function mo(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=uo(c.value))&&b.push(c);return b}
573
- function uo(a){var b=a.getAttribute("schemeIdUri"),c=Wn(a,"urn:mpeg:cenc:2013","default_KID"),d=Un(a,"urn:mpeg:cenc:2013","pssh").map(Yn);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new O(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:$c(f),keyId:null}})}catch(f){throw new O(2,4,4007);}return{node:a,ve:b,keyId:c,init:0<e.length?e:null}}
578
+ function uo(a){var b=a.getAttribute("schemeIdUri"),c=Wn(a,"urn:mpeg:cenc:2013","default_KID"),d=Un(a,"urn:mpeg:cenc:2013","pssh").map(Yn);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new O(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:nd(f),keyId:null}})}catch(f){throw new O(2,4,4007);}return{node:a,ze:b,keyId:c,init:0<e.length?e:null}}
574
579
  var so=1,to=(new Map).set("com.widevine.alpha",function(a){return(a=Tn(a.node,"urn:microsoft","laurl"))?a.getAttribute("licenseUrl")||"":""}).set("com.microsoft.playready",ro).set("com.microsoft.playready.recommendation",ro).set("com.microsoft.playready.software",ro).set("com.microsoft.playready.hardware",ro).set("org.w3.clearkey",function(a){return(a=Tn(a.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===a.getAttribute("Lic_type")&&a.textContent?a.textContent:""});function vo(a,b,c,d,e){var f={RepresentationID:b,Number:c,Bandwidth:d,Time:e};return a.replace(/\$(RepresentationID|Number|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(g,h,k,l){if("$$"==g)return"$";var m=f[h];if(null==m)return g;"RepresentationID"==h&&k&&(k=void 0);"Time"==h&&(m=Math.round(m));switch(l){case void 0:case "d":case "i":case "u":g=m.toString();break;case "o":g=m.toString(8);break;case "x":g=m.toString(16);break;case "X":g=m.toString(16).toUpperCase();break;default:g=m.toString()}k=
575
580
  window.parseInt(k,10)||1;return Array(Math.max(0,k-g.length)+1).join("0")+g})}
576
- function wo(a,b){var c=xo(a,b,"timescale"),d=1;c&&(d=fo(c)||1);var e=xo(a,b,"duration");c=fo(e||"");"image"==a.L.contentType&&(c=ho(e||""));c&&(c/=d);var f=xo(a,b,"startNumber");e=Number(xo(a,b,"presentationTimeOffset"))||0;var g=go(f||"");if(null==f||null==g)g=1;var h=yo(a,b,"SegmentTimeline");f=null;if(h){f=d;var k=a.Z.duration||Infinity;h=Sn(h,"S");for(var l=[],m=-e,n=0;n<h.length;++n){var p=h[n],q=h[n+1],x=$n(p,"t",go),w=$n(p,"d",go);p=$n(p,"r",eo);null!=x&&(x-=e);if(!w)break;x=null!=x?x:m;p=
577
- p||0;if(0>p)if(q){q=$n(q,"t",go);if(null==q)break;else if(x>=q)break;p=Math.ceil((q-x)/w)-1}else{if(Infinity==k)break;else if(x/f>=k)break;p=Math.ceil((k*f-x)/w)-1}0<l.length&&x!=m&&(l[l.length-1].end=x/f);for(q=0;q<=p;++q)m=x+w,l.push({start:x/f,end:m/f,uh:x}),x=m}f=l}return{timescale:d,xa:c,pc:g,ub:e/d||0,Pe:e,timeline:f}}function xo(a,b,c){return[b(a.L),b(a.Aa),b(a.ra)].filter(Cb).map(function(d){return d.getAttribute(c)}).reduce(function(d,e){return d||e})}
581
+ function wo(a,b){var c=xo(a,b,"timescale"),d=1;c&&(d=fo(c)||1);var e=xo(a,b,"duration");c=fo(e||"");"image"==a.L.contentType&&(c=ho(e||""));c&&(c/=d);var f=xo(a,b,"startNumber");e=Number(xo(a,b,"presentationTimeOffset"))||0;var g=go(f||"");if(null==f||null==g)g=1;var h=yo(a,b,"SegmentTimeline");f=null;if(h){f=d;var k=a.Z.duration||Infinity;h=Sn(h,"S");for(var l=[],m=-e,n=0;n<h.length;++n){var p=h[n],q=h[n+1],w=$n(p,"t",go),y=$n(p,"d",go);p=$n(p,"r",eo);null!=w&&(w-=e);if(!y)break;w=null!=w?w:m;p=
582
+ p||0;if(0>p)if(q){q=$n(q,"t",go);if(null==q)break;else if(w>=q)break;p=Math.ceil((q-w)/y)-1}else{if(Infinity==k)break;else if(w/f>=k)break;p=Math.ceil((k*f-w)/y)-1}0<l.length&&w!=m&&(l[l.length-1].end=w/f);for(q=0;q<=p;++q)m=w+y,l.push({start:w/f,end:m/f,sh:w}),w=m}f=l}return{timescale:d,wa:c,mc:g,rb:e/d||0,Te:e,timeline:f}}function xo(a,b,c){return[b(a.L),b(a.Aa),b(a.ra)].filter(Cb).map(function(d){return d.getAttribute(c)}).reduce(function(d,e){return d||e})}
578
583
  function yo(a,b,c){return[b(a.L),b(a.Aa),b(a.ra)].filter(Cb).map(function(d){return Rn(d,c)}).reduce(function(d,e){return d||e})}
579
- function zo(a,b,c,d,e,f){for(var g=Wn(a,"http://www.w3.org/1999/xlink","href"),h=Wn(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Array.from(a.attributes)),l=k.next();!l.done;l=k.next())l=l.value,"http://www.w3.org/1999/xlink"==l.namespaceURI&&a.removeAttributeNS(l.namespaceURI,l.localName);if(5<=f)return Xe(new O(2,4,4028));if("onLoad"!=h)return Xe(new O(2,4,4027));var m=Db([d],[g]);return e.request(0,lf(m,b)).na(function(n){n=ko(n.data,a.tagName);if(!n)return Xe(new O(2,4,4001,g));
584
+ function zo(a,b,c,d,e,f){for(var g=Wn(a,"http://www.w3.org/1999/xlink","href"),h=Wn(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Array.from(a.attributes)),l=k.next();!l.done;l=k.next())l=l.value,"http://www.w3.org/1999/xlink"==l.namespaceURI&&a.removeAttributeNS(l.namespaceURI,l.localName);if(5<=f)return Ye(new O(2,4,4028));if("onLoad"!=h)return Ye(new O(2,4,4027));var m=Db([d],[g]);return e.request(0,mf(m,b)).na(function(n){n=ko(n.data,a.tagName);if(!n)return Ye(new O(2,4,4001,g));
580
585
  for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;n.childNodes.length;){var p=n.childNodes[0];n.removeChild(p);a.appendChild(p)}n=t(Array.from(n.attributes));for(p=n.next();!p.done;p=n.next())a.setAttributeNode(p.value.cloneNode(!1));return Ao(a,b,c,m[0],e,f+1)})}
581
- function Ao(a,b,c,d,e,f){f=void 0===f?0:f;if(Wn(a,"http://www.w3.org/1999/xlink","href")){var g=zo(a,b,c,d,e,f);c&&(g=g.na(void 0,function(){return Ao(a,b,c,d,e,f)}));return g}g=[];for(var h=t(Array.from(a.childNodes)),k=h.next();!k.done;k=h.next())k=k.value,k instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==Wn(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(Ao(k,b,c,d,e,f)));return af(g).na(function(){return a})};function Bo(a,b,c,d,e,f,g){var h,k=(new yg).Y("sidx",function(l){h=Co(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new O(2,3,3004);}
582
- function Co(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.R();if(0==k)throw new O(2,3,3005);if(0==g.version){var l=g.reader.R();var m=g.reader.R()}else l=g.reader.nc(),m=g.reader.nc();g.reader.skip(2);var n=g.reader.pe();a=a+g.size+m;for(m=0;m<n;m++){var p=g.reader.R(),q=(p&2147483648)>>>31;p&=2147483647;var x=g.reader.R();g.reader.skip(4);if(1==q)throw new O(2,3,3006);h.push(new zi(l/k+c,(l+x)/k+c,function(){return f},a,a+p-1,b,c,d,e));l+=x;a+=p}g.parser.stop();return h};function Do(a){this.h=Jc(a);this.g=new vg(this.h,0)}Do.prototype.Da=function(){return this.g.Da()};
586
+ function Ao(a,b,c,d,e,f){f=void 0===f?0:f;if(Wn(a,"http://www.w3.org/1999/xlink","href")){var g=zo(a,b,c,d,e,f);c&&(g=g.na(void 0,function(){return Ao(a,b,c,d,e,f)}));return g}g=[];for(var h=t(Array.from(a.childNodes)),k=h.next();!k.done;k=h.next())k=k.value,k instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==Wn(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.push(Ao(k,b,c,d,e,f)));return bf(g).na(function(){return a})};function Bo(a,b,c,d,e,f,g){var h,k=(new zg).Y("sidx",function(l){h=Co(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new O(2,3,3004);}
587
+ function Co(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.R();if(0==k)throw new O(2,3,3005);if(0==g.version){var l=g.reader.R();var m=g.reader.R()}else l=g.reader.lc(),m=g.reader.lc();g.reader.skip(2);var n=g.reader.ue();a=a+g.size+m;for(m=0;m<n;m++){var p=g.reader.R(),q=(p&2147483648)>>>31;p&=2147483647;var w=g.reader.R();g.reader.skip(4);if(1==q)throw new O(2,3,3006);h.push(new Xh(l/k+c,(l+w)/k+c,function(){return f},a,a+p-1,b,c,d,e));l+=w;a+=p}g.parser.stop();return h};function Do(a){this.h=Jc(a);this.g=new wg(this.h,0)}Do.prototype.Da=function(){return this.g.Da()};
583
588
  function Eo(a){var b=Fo(a);if(7<b.length)throw new O(2,3,3002);var c=0;b=t(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=Fo(a);a:{d=t(Go);for(var e=d.next();!e.done;e=d.next())if(Ec(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.oa();else{if(8==b.length&&b[1]&224)throw new O(2,3,3001);for(e=d=0;e<b.length;e++){var f=b[e];d=0==e?f&(1<<8-b.length)-1:256*d+f}b=d}b=a.g.oa()+b<=a.h.byteLength?b:a.h.byteLength-a.g.oa();d=Jc(a.h,a.g.oa(),b);a.g.skip(b);return new Ho(c,
584
- d)}function Fo(a){var b=a.g.oa(),c=a.g.sb();if(0==c)throw new O(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Gc(a.h,b,c)}var Go=[[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 Ho(a,b){this.id=a;this.g=b}
585
- function Io(a){if(8<a.g.byteLength)throw new O(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new O(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function Jo(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new Do(a.g);for(var n=null,p=null;a.Da();){var q=Eo(a);if(187==q.id){var x=Ko(q);x&&(q=c*x.vh,x=b+x.dh,null!=n&&m.push(new zi(n+g,q+g,l,p,x-1,f,g,h,k)),n=q,p=x)}}null!=n&&m.push(new zi(n+g,d+g,l,p,null,f,g,h,k));return m}
586
- function Ko(a){var b=new Do(a.g);a=Eo(b);if(179!=a.id)throw new O(2,3,3013);a=Io(a);b=Eo(b);if(183!=b.id)throw new O(2,3,3012);b=new Do(b.g);for(var c=0;b.Da();){var d=Eo(b);if(241==d.id){c=Io(d);break}}return{vh:a,dh:c}};function Lo(a,b){var c=yo(a,b,"Initialization");if(!c)return null;var d=a.L.Pa,e=c.getAttribute("sourceURL");e&&(d=Db(a.L.Pa,[e]));e=0;var f=null;if(c=$n(c,"range",co))e=c.start,f=c.end;return new xi(function(){return d},e,f,Mo(a))}
587
- function Oo(a,b){var c=Number(xo(a,Po,"presentationTimeOffset"))||0,d=xo(a,Po,"timescale"),e=1;d&&(e=fo(d)||1);var f=c/e||0,g=Lo(a,Po);Qo(a,g);var h=df(a);return{bc:function(){var k=yo(h,Po,"RepresentationIndex"),l=h.L.Pa;k&&(k=k.getAttribute("sourceURL"))&&(l=Db(h.L.Pa,[k]));k=Ro(h);return So(h,b,g,l,k.start,k.end,f)}}}
588
- function So(a,b,c,d,e,f,g){var h,k,l,m,n,p,q,x,w,v,y,D,C,B,G;return I(function(E){if(1==E.g)return h=a.presentationTimeline,k=!a.zb||!a.Z.xf,l=a.Z.start,m=a.Z.duration,n=a.L.mimeType.split("/")[1],p=b,q=null,x=[p(d,e,f),"webm"==n?p(c.Ra(),c.Va,c.Ca):null],p=null,u(E,Promise.all(x),2);w=E.h;v=w[0];y=w[1]||null;D=null;C=l-g;B=l;G=m?l+m:Infinity;if("mp4"==n)var H=Bo(v,e,d,c,C,B,G);else{H=new Do(y);if(440786851!=Eo(H).id)throw new O(2,3,3008);var L=Eo(H);if(408125543!=L.id)throw new O(2,3,3009);H=L.g.byteOffset;
589
- L=new Do(L.g);for(var K=null;L.Da();){var N=Eo(L);if(357149030==N.id){K=N;break}}if(!K)throw new O(2,3,3010);K=new Do(K.g);N=1E6;for(L=null;K.Da();){var V=Eo(K);if(2807729==V.id)N=Io(V);else if(17545==V.id)if(4==V.g.byteLength)L=V.g.getFloat32(0);else if(8==V.g.byteLength)L=V.g.getFloat64(0);else throw new O(2,3,3003);}if(null==L)throw new O(2,3,3011);K=N/1E9;L*=K;N=Eo(new Do(v));if(475249515!=N.id)throw new O(2,3,3007);H=Jo(N,H,K,L,d,c,C,B,G)}D=H;h.kc(D);q=new Yi(D);k&&q.Ab(B,G,!0);return E["return"](q)})}
589
+ d)}function Fo(a){var b=a.g.oa(),c=a.g.qb();if(0==c)throw new O(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return Gc(a.h,b,c)}var Go=[[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 Ho(a,b){this.id=a;this.g=b}
590
+ function Io(a){if(8<a.g.byteLength)throw new O(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new O(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function Jo(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new Do(a.g);for(var n=null,p=null;a.Da();){var q=Eo(a);if(187==q.id){var w=Ko(q);w&&(q=c*w.uh,w=b+w.bh,null!=n&&m.push(new Xh(n+g,q+g,l,p,w-1,f,g,h,k)),n=q,p=w)}}null!=n&&m.push(new Xh(n+g,d+g,l,p,null,f,g,h,k));return m}
591
+ function Ko(a){var b=new Do(a.g);a=Eo(b);if(179!=a.id)throw new O(2,3,3013);a=Io(a);b=Eo(b);if(183!=b.id)throw new O(2,3,3012);b=new Do(b.g);for(var c=0;b.Da();){var d=Eo(b);if(241==d.id){c=Io(d);break}}return{uh:a,bh:c}};function Lo(a,b){var c=yo(a,b,"Initialization");if(!c)return null;var d=a.L.Na,e=c.getAttribute("sourceURL");e&&(d=Db(a.L.Na,[e]));e=0;var f=null;if(c=$n(c,"range",co))e=c.start,f=c.end;return new Vh(function(){return d},e,f,Mo(a))}
592
+ function No(a,b){var c=Number(xo(a,Po,"presentationTimeOffset"))||0,d=xo(a,Po,"timescale"),e=1;d&&(e=fo(d)||1);var f=c/e||0,g=Lo(a,Po);Qo(a,g);var h=ef(a);return{$b:function(){var k=yo(h,Po,"RepresentationIndex"),l=h.L.Na;k&&(k=k.getAttribute("sourceURL"))&&(l=Db(h.L.Na,[k]));k=Ro(h);return So(h,b,g,l,k.start,k.end,f)}}}
593
+ function So(a,b,c,d,e,f,g){var h,k,l,m,n,p,q,w,y,x,v,D,C,B,G;return I(function(E){if(1==E.g)return h=a.presentationTimeline,k=!a.xb||!a.Z.zf,l=a.Z.start,m=a.Z.duration,n=a.L.mimeType.split("/")[1],p=b,q=null,w=[p(d,e,f),"webm"==n?p(c.Pa(),c.Ta,c.Ca):null],p=null,u(E,Promise.all(w),2);y=E.h;x=y[0];v=y[1]||null;D=null;C=l-g;B=l;G=m?l+m:Infinity;if("mp4"==n)var H=Bo(x,e,d,c,C,B,G);else{H=new Do(v);if(440786851!=Eo(H).id)throw new O(2,3,3008);var N=Eo(H);if(408125543!=N.id)throw new O(2,3,3009);H=N.g.byteOffset;
594
+ N=new Do(N.g);for(var K=null;N.Da();){var M=Eo(N);if(357149030==M.id){K=M;break}}if(!K)throw new O(2,3,3010);K=new Do(K.g);M=1E6;for(N=null;K.Da();){var V=Eo(K);if(2807729==V.id)M=Io(V);else if(17545==V.id)if(4==V.g.byteLength)N=V.g.getFloat32(0);else if(8==V.g.byteLength)N=V.g.getFloat64(0);else throw new O(2,3,3003);}if(null==N)throw new O(2,3,3011);K=M/1E9;N*=K;M=Eo(new Do(x));if(475249515!=M.id)throw new O(2,3,3007);H=Jo(M,H,K,N,d,c,C,B,G)}D=H;h.ic(D);q=new Zi(D);k&&q.yb(B,G,!0);return E["return"](q)})}
590
595
  function Po(a){return a.Tc}function Ro(a){var b=yo(a,Po,"RepresentationIndex");a=xo(a,Po,"indexRange");a=co(a||"");b&&(a=$n(b,"range",co,a));return a}function Qo(a,b){To(a,b);if(!Ro(a))throw new O(2,4,4002);}function To(a,b){var c=a.L.mimeType.split("/")[1];if(a.L.contentType!=Ib&&"mp4"!=c&&"webm"!=c)throw new O(2,4,4006);if("webm"==c&&!b)throw new O(2,4,4005);}
591
- function Mo(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.ud,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function Uo(a,b){var c=Lo(a,Vo),d=Wo(a);if(!d.xa&&!d.timeline&&1<d.ic.length)throw new O(2,4,4002);if(!d.xa&&!a.Z.duration&&!d.timeline&&1==d.ic.length)throw new O(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new O(2,4,4002);var e=null,f=null;a.ra.id&&a.L.id&&(f=b[a.ra.id+","+a.L.id])&&(e=f.segmentIndex);var g=Xo(a.Z.start,a.Z.duration,a.L.Pa,d,c);c=!e;e?e.jc(g,a.presentationTimeline.qb()):e=new Yi(g);a.presentationTimeline.kc(g);a.zb&&a.Z.xf||e.Ab(a.Z.start,a.Z.duration?a.Z.start+a.Z.duration:
592
- Infinity,c);f&&(f.segmentIndex=e);return{bc:function(){e&&0!=e.O.length||e.Nc(g);return Promise.resolve(e)}}}function Vo(a){return a.Fb}function Wo(a){var b=Yo(a);a=wo(a,Vo);var c=a.pc;0==c&&(c=1);var d=0;a.xa?d=a.xa*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{xa:a.xa,startTime:d,pc:c,ub:a.ub,timeline:a.timeline,ic:b}}
593
- function Xo(a,b,c,d,e){var f=d.ic.length;d.timeline&&d.timeline.length!=d.ic.length&&(f=Math.min(d.timeline.length,d.ic.length));for(var g=a-d.ub,h=b?a+b:Infinity,k=[],l=d.startTime,m={},n=0;n<f;m={Od:m.Od},n++){var p=d.ic[n];m.Od=Db(c,[p.Ug]);var q=void 0;q=null!=d.xa?l+d.xa:d.timeline?d.timeline[n].end:l+b;k.push(new zi(a+l,a+q,function(x){return function(){return x.Od}}(m),p.start,p.end,e,g,a,h));l=q}return k}
594
- function Yo(a){return[a.L.Fb,a.Aa.Fb,a.ra.Fb].filter(Cb).map(function(b){return Sn(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.vf&&(a.vf=!0);var c=b.getAttribute("media");b=$n(b,"mediaRange",co,{start:0,end:null});return{Ug:c,start:b.start,end:b.end}})};function Zo(a,b,c,d,e,f){var g=$o(a),h=ap(a);bp(h);var k=df(a);if(h.Lc)return To(a,g),{bc:function(){var q=vo(h.Lc,k.L.id,null,k.bandwidth||null,null);q=Db(k.L.Pa,[q]);return So(k,b,g,q,0,null,h.ub)}};if(h.xa)return d||(a.presentationTimeline.je(h.xa),a.presentationTimeline.ke(a.Z.start)),{bc:function(){return cp(k,h,e,g,f)}};var l=null;d=d=null;a.ra.id&&a.L.id&&(d=a.ra.id+","+a.L.id,d=c[d])&&(l=d.segmentIndex);var m=dp(k,h,g);c=a.Z.start;var n=a.Z.duration?a.Z.start+a.Z.duration:Infinity,p=Infinity!=
595
- n;l?(p&&(new Yi(m)).Ab(c,n,!0),l.jc(m,a.presentationTimeline.qb())):l=new Yi(m);a.presentationTimeline.kc(m);p&&l.Ab(c,n);d&&a.zb&&(d.segmentIndex=l);return{bc:function(){l&&0!=l.O.length||l.Nc(m);return Promise.resolve(l)}}}function ep(a){return a.Uc}function ap(a){var b=wo(a,ep),c=xo(a,ep,"media");a=xo(a,ep,"index");return{xa:b.xa,timescale:b.timescale,pc:b.pc,ub:b.ub,Pe:b.Pe,timeline:b.timeline,ie:c,Lc:a}}
596
- function bp(a){var b=a.Lc?1:0;b+=a.timeline?1:0;b+=a.xa?1:0;if(0==b)throw new O(2,4,4002);1!=b&&(a.Lc&&(a.timeline=null),a.xa=null);if(!a.Lc&&!a.ie)throw new O(2,4,4002);}
597
- function cp(a,b,c,d,e){function f(K){var N=(K-q)*p,V=N+b.ub,Y=N+l;N=Y+p;var ja=Math.min(N,h());Y=new zi(Y,ja,function(){var ha=vo(w,y,K,v,V*x);return Db(D,[ha])},0,null,d,C,l,h());Y.j=N;return Y}function g(){var K=[Math.max(k.qb(),l),Math.min(k.Kb(),h())].map(function(N){return N-l});return[Math.ceil(K[0]/p),Math.ceil(K[1]/p)-1].map(function(N){return N+q})}function h(){var K=null!=m&&e[m]||n;return K?l+K:Infinity}var k=a.presentationTimeline,l=a.Z.start,m=a.ra.id,n=a.Z.duration,p=b.xa,q=b.pc,x=b.timescale,
598
- w=b.ie,v=a.bandwidth||null,y=a.L.id,D=a.L.Pa,C=l-b.ub,B=g();a=a.zb?Math.max(B[0],B[1]-c+1):B[0];B=B[1];c=[];for(var G=a;G<=B;++G){var E=f(G);c.push(E)}var H=new Yi(c);c=k.Kb()<h();G=k.U();if(c||G){var L=Math.max(a,B+1);H.Gd(p,function(){var K=k.qb();H.Ib(K);var N=t(g());N.next();N=N.next().value;for(var V=[];L<=N;){var Y=f(L);V.push(Y);L++}return K>h()&&!V.length?null:V})}return Promise.resolve(H)}
599
- function dp(a,b,c){var d=a.Z.start,e=a.Z.duration,f=d-b.ub;e=e?d+e:Infinity;for(var g=[],h={},k=0;k<b.timeline.length;h={Nd:h.Nd,Rd:h.Rd,Ud:h.Ud,Kd:h.Kd,Wd:h.Wd,Ld:h.Ld},k++){var l=b.timeline[k],m=l.start,n=l.uh;l=l.end;h.Ud=k+b.pc;h.Wd=n+b.Pe;h.Rd=a.L.id;h.Kd=a.bandwidth||null;h.Nd=b.ie;h.Ld=a.L.Pa;g.push(new zi(d+m,d+l,function(p){return function(){var q=vo(p.Nd,p.Rd,p.Ud,p.Kd||null,p.Wd);return Db(p.Ld,[q]).map(function(x){return x.toString()})}}(h),0,null,c,f,d,e))}return g}
600
- function $o(a){var b=xo(a,ep,"initialization");if(!b)return null;var c=a.L.id,d=a.bandwidth||null,e=a.L.Pa;return new xi(function(){var f=vo(b,c,null,d,null);return Db(e,[f])},0,null,Mo(a))};function fp(){this.l=[];this.g=[];this.h=[];this.j=[];this.i=[];this.m=new Set}fp.prototype.release=function(){for(var a=t(this.g.concat(this.h,this.j,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.g=[];this.h=[];this.j=[];this.i=[];this.l=[]};
601
- function gp(a,b,c){var d,e,f,g,h,k,l,m,n,p,q,x,w,v,y,D,C,B,G,E,H,L,K,N,V,Y,ja,ha,pa,Oa;return I(function(Fa){switch(Fa.g){case 1:d=Jb;hp(b);ip(b);jp(b);kp(b);if(!c&&1==b.length){e=b[0];a.g=e.ed;a.h=e.Hd;a.j=e.textStreams;a.i=e.imageStreams;Fa.D(2);break}f=-1;for(g=0;g<b.length;g++)h=b[g],a.m.has(h.id)||(a.m.add(h.id),-1==f&&(f=g));if(-1==f)return Fa["return"]();k=b.map(function(Pa){return Pa.ed});l=b.map(function(Pa){return Pa.Hd});m=b.map(function(Pa){return Pa.textStreams});n=b.map(function(Pa){return Pa.imageStreams});
602
- p=t(m);for(q=p.next();!q.done;q=p.next())x=q.value,x.push(lp(d.ia));w=t(n);for(v=w.next();!v.done;v=w.next())y=v.value,y.push(lp(d.zc));return u(Fa,mp(a.g,k,f,np,op),3);case 3:return u(Fa,mp(a.h,l,f,np,op),4);case 4:return u(Fa,mp(a.j,m,f,np,op),5);case 5:return u(Fa,mp(a.i,n,f,np,op),2);case 2:D=0;C=[];if(a.h.length&&a.g.length)for(K=t(a.g),N=K.next();!N.done;N=K.next())for(V=N.value,Y=t(a.h),ja=Y.next();!ja.done;ja=Y.next())ha=ja.value,pa=ng(V.drmInfos,ha.drmInfos),V.drmInfos.length&&ha.drmInfos.length&&
603
- !pa.length||(Oa=D++,C.push({id:Oa,language:V.language,primary:V.primary,audio:V,video:ha,bandwidth:(V.bandwidth||0)+(ha.bandwidth||0),drmInfos:pa,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(B=a.h.concat(a.g),G=t(B),E=G.next();!E.done;E=G.next())H=E.value,L=D++,C.push({id:L,language:H.language,primary:H.primary,audio:H.type==d.Hb?H:null,video:H.type==d.Oa?H:null,bandwidth:H.bandwidth||0,drmInfos:H.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});
604
- a.l=C;z(Fa)}})}function hp(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=t(b.ed),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=t(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.channelsCount==h.channelsCount&&e.language==h.language&&e.bandwidth==h.bandwidth&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&fc(e.roles,h.roles)&&e.audioSamplingRate==h.audioSamplingRate&&e.primary==h.primary&&(f=!0);f||c.push(e)}b.ed=c}}
605
- function jp(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=t(b.textStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=t(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.language==h.language&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.bandwidth==h.bandwidth&&fc(e.roles,h.roles)&&(f=!0);f||c.push(e)}b.textStreams=c}}
606
- function ip(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=t(b.Hd),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=t(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.frameRate==h.frameRate&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.label==h.label&&fc(e.roles,h.roles)&&Bf(e.closedCaptions,h.closedCaptions)&&e.bandwidth==h.bandwidth&&(f=!0);f||c.push(e)}b.Hd=c}}
596
+ function Mo(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.ud,pixelAspectRatio:b.pixelAspectRatio||null,width:b.width||null}};function Uo(a,b){var c=Lo(a,Vo),d=Wo(a);if(!d.wa&&!d.timeline&&1<d.fc.length)throw new O(2,4,4002);if(!d.wa&&!a.Z.duration&&!d.timeline&&1==d.fc.length)throw new O(2,4,4002);if(d.timeline&&0==d.timeline.length)throw new O(2,4,4002);var e=null,f=null;a.ra.id&&a.L.id&&(f=b[a.ra.id+","+a.L.id])&&(e=f.segmentIndex);var g=Xo(a.Z.start,a.Z.duration,a.L.Na,d,c);c=!e;e?e.hc(g,a.presentationTimeline.ob()):e=new Zi(g);a.presentationTimeline.ic(g);a.xb&&a.Z.zf||e.yb(a.Z.start,a.Z.duration?a.Z.start+a.Z.duration:
597
+ Infinity,c);f&&(f.segmentIndex=e);return{$b:function(){e&&0!=e.M.length||e.Mc(g);return Promise.resolve(e)}}}function Vo(a){return a.Db}function Wo(a){var b=Yo(a);a=wo(a,Vo);var c=a.mc;0==c&&(c=1);var d=0;a.wa?d=a.wa*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{wa:a.wa,startTime:d,mc:c,rb:a.rb,timeline:a.timeline,fc:b}}
598
+ function Xo(a,b,c,d,e){var f=d.fc.length;d.timeline&&d.timeline.length!=d.fc.length&&(f=Math.min(d.timeline.length,d.fc.length));for(var g=a-d.rb,h=b?a+b:Infinity,k=[],l=d.startTime,m={},n=0;n<f;m={Pd:m.Pd},n++){var p=d.fc[n];m.Pd=Db(c,[p.Tg]);var q=void 0;q=null!=d.wa?l+d.wa:d.timeline?d.timeline[n].end:l+b;k.push(new Xh(a+l,a+q,function(w){return function(){return w.Pd}}(m),p.start,p.end,e,g,a,h));l=q}return k}
599
+ function Yo(a){return[a.L.Db,a.Aa.Db,a.ra.Db].filter(Cb).map(function(b){return Sn(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.xf&&(a.xf=!0);var c=b.getAttribute("media");b=$n(b,"mediaRange",co,{start:0,end:null});return{Tg:c,start:b.start,end:b.end}})};function Zo(a,b,c,d,e,f){var g=$o(a),h=ap(a);bp(h);var k=ef(a);if(h.Jc)return To(a,g),{$b:function(){var q=vo(h.Jc,k.L.id,null,k.bandwidth||null,null);q=Db(k.L.Na,[q]);return So(k,b,g,q,0,null,h.rb)}};if(h.wa)return d||(a.presentationTimeline.oe(h.wa),a.presentationTimeline.pe(a.Z.start)),{$b:function(){return cp(k,h,e,g,f)}};var l=null;d=d=null;a.ra.id&&a.L.id&&(d=a.ra.id+","+a.L.id,d=c[d])&&(l=d.segmentIndex);var m=dp(k,h,g);c=a.Z.start;var n=a.Z.duration?a.Z.start+a.Z.duration:Infinity,p=Infinity!=
600
+ n;l?(p&&(new Zi(m)).yb(c,n,!0),l.hc(m,a.presentationTimeline.ob())):l=new Zi(m);a.presentationTimeline.ic(m);p&&l.yb(c,n);d&&a.xb&&(d.segmentIndex=l);return{$b:function(){l&&0!=l.M.length||l.Mc(m);return Promise.resolve(l)}}}function ep(a){return a.Uc}function ap(a){var b=wo(a,ep),c=xo(a,ep,"media");a=xo(a,ep,"index");return{wa:b.wa,timescale:b.timescale,mc:b.mc,rb:b.rb,Te:b.Te,timeline:b.timeline,me:c,Jc:a}}
601
+ function bp(a){var b=a.Jc?1:0;b+=a.timeline?1:0;b+=a.wa?1:0;if(0==b)throw new O(2,4,4002);1!=b&&(a.Jc&&(a.timeline=null),a.wa=null);if(!a.Jc&&!a.me)throw new O(2,4,4002);}
602
+ function cp(a,b,c,d,e){function f(K){var M=(K-q)*p,V=M+b.rb,Z=M+l;M=Z+p;var ha=Math.min(M,h());Z=new Xh(Z,ha,function(){var ja=vo(y,v,K,x,V*w);return Db(D,[ja])},0,null,d,C,l,h());Z.j=M;return Z}function g(){var K=[Math.max(k.ob(),l),Math.min(k.Ib(),h())].map(function(M){return M-l});return[Math.ceil(K[0]/p),Math.ceil(K[1]/p)-1].map(function(M){return M+q})}function h(){var K=null!=m&&e[m]||n;return K?l+K:Infinity}var k=a.presentationTimeline,l=a.Z.start,m=a.ra.id,n=a.Z.duration,p=b.wa,q=b.mc,w=b.timescale,
603
+ y=b.me,x=a.bandwidth||null,v=a.L.id,D=a.L.Na,C=l-b.rb,B=g();a=a.xb?Math.max(B[0],B[1]-c+1):B[0];B=B[1];c=[];for(var G=a;G<=B;++G){var E=f(G);c.push(E)}var H=new Zi(c);c=k.Ib()<h();G=k.U();if(c||G){var N=Math.max(a,B+1);H.Gd(p,function(){var K=k.ob();H.Gb(K);var M=t(g());M.next();M=M.next().value;for(var V=[];N<=M;){var Z=f(N);V.push(Z);N++}return K>h()&&!V.length?null:V})}return Promise.resolve(H)}
604
+ function dp(a,b,c){var d=a.Z.start,e=a.Z.duration,f=d-b.rb;e=e?d+e:Infinity;for(var g=[],h={},k=0;k<b.timeline.length;h={Od:h.Od,Sd:h.Sd,Vd:h.Vd,Ld:h.Ld,Xd:h.Xd,Md:h.Md},k++){var l=b.timeline[k],m=l.start,n=l.sh;l=l.end;h.Vd=k+b.mc;h.Xd=n+b.Te;h.Sd=a.L.id;h.Ld=a.bandwidth||null;h.Od=b.me;h.Md=a.L.Na;g.push(new Xh(d+m,d+l,function(p){return function(){var q=vo(p.Od,p.Sd,p.Vd,p.Ld||null,p.Xd);return Db(p.Md,[q]).map(function(w){return w.toString()})}}(h),0,null,c,f,d,e))}return g}
605
+ function $o(a){var b=xo(a,ep,"initialization");if(!b)return null;var c=a.L.id,d=a.bandwidth||null,e=a.L.Na;return new Vh(function(){var f=vo(b,c,null,d,null);return Db(e,[f])},0,null,Mo(a))};function fp(){this.l=[];this.g=[];this.h=[];this.j=[];this.i=[];this.m=new Set}fp.prototype.release=function(){for(var a=t(this.g.concat(this.h,this.j,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.g=[];this.h=[];this.j=[];this.i=[];this.l=[]};
606
+ function gp(a,b,c){var d,e,f,g,h,k,l,m,n,p,q,w,y,x,v,D,C,B,G,E,H,N,K,M,V,Z,ha,ja,wa,Ma;return I(function(Fa){switch(Fa.g){case 1:d=Jb;hp(b);ip(b);jp(b);kp(b);if(!c&&1==b.length){e=b[0];a.g=e.ed;a.h=e.Id;a.j=e.textStreams;a.i=e.imageStreams;Fa.D(2);break}f=-1;for(g=0;g<b.length;g++)h=b[g],a.m.has(h.id)||(a.m.add(h.id),-1==f&&(f=g));if(-1==f)return Fa["return"]();k=b.map(function(Sa){return Sa.ed});l=b.map(function(Sa){return Sa.Id});m=b.map(function(Sa){return Sa.textStreams});n=b.map(function(Sa){return Sa.imageStreams});
607
+ p=t(m);for(q=p.next();!q.done;q=p.next())w=q.value,w.push(lp(d.ha));y=t(n);for(x=y.next();!x.done;x=y.next())v=x.value,v.push(lp(d.xc));return u(Fa,mp(a.g,k,f,np,op),3);case 3:return u(Fa,mp(a.h,l,f,np,op),4);case 4:return u(Fa,mp(a.j,m,f,np,op),5);case 5:return u(Fa,mp(a.i,n,f,np,op),2);case 2:D=0;C=[];if(a.h.length&&a.g.length)for(K=t(a.g),M=K.next();!M.done;M=K.next())for(V=M.value,Z=t(a.h),ha=Z.next();!ha.done;ha=Z.next())ja=ha.value,wa=og(V.drmInfos,ja.drmInfos),V.drmInfos.length&&ja.drmInfos.length&&
608
+ !wa.length||(Ma=D++,C.push({id:Ma,language:V.language,primary:V.primary,audio:V,video:ja,bandwidth:(V.bandwidth||0)+(ja.bandwidth||0),drmInfos:wa,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(B=a.h.concat(a.g),G=t(B),E=G.next();!E.done;E=G.next())H=E.value,N=D++,C.push({id:N,language:H.language,primary:H.primary,audio:H.type==d.Fb?H:null,video:H.type==d.Ma?H:null,bandwidth:H.bandwidth||0,drmInfos:H.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});
609
+ a.l=C;z(Fa)}})}function hp(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=t(b.ed),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=t(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.channelsCount==h.channelsCount&&e.language==h.language&&e.bandwidth==h.bandwidth&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&ec(e.roles,h.roles)&&e.audioSamplingRate==h.audioSamplingRate&&e.primary==h.primary&&(f=!0);f||c.push(e)}b.ed=c}}
610
+ function jp(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=t(b.textStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=t(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.language==h.language&&e.label==h.label&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.bandwidth==h.bandwidth&&ec(e.roles,h.roles)&&(f=!0);f||c.push(e)}b.textStreams=c}}
611
+ function ip(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=t(b.Id),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=t(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.frameRate==h.frameRate&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&e.label==h.label&&ec(e.roles,h.roles)&&Cf(e.closedCaptions,h.closedCaptions)&&e.bandwidth==h.bandwidth&&(f=!0);f||c.push(e)}b.Id=c}}
607
612
  function kp(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;for(var c=[],d=t(b.imageStreams),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=!1,g=t(c),h=g.next();!h.done;h=g.next())h=h.value,e.id!=h.id&&e.width==h.width&&e.codecs==h.codecs&&e.mimeType==h.mimeType&&(f=!0);f||c.push(e)}b.imageStreams=c}}
608
- function pp(a){var b,c,d,e,f,g,h,k,l,m,n,p,q,x,w,v,y,D,C,B,G,E,H,L,K,N,V;return I(function(Y){switch(Y.g){case 1:b=Jb;if(1==a.length)return Y["return"](a[0]);c=a.map(function(ja){return ja.filter(function(ha){return ha.type==b.Hb})});d=a.map(function(ja){return ja.filter(function(ha){return ha.type==b.Oa})});e=a.map(function(ja){return ja.filter(function(ha){return ha.type==b.ia})});f=a.map(function(ja){return ja.filter(function(ha){return ha.type==b.zc})});g=t(e);for(h=g.next();!h.done;h=g.next())k=
609
- h.value,k.push(qp(b.ia));l=t(f);for(m=l.next();!m.done;m=l.next())n=m.value,n.push(qp(b.zc));return u(Y,mp([],c,0,rp,sp),2);case 2:return p=Y.h,u(Y,mp([],d,0,rp,sp),3);case 3:return q=Y.h,u(Y,mp([],e,0,rp,sp),4);case 4:return x=Y.h,u(Y,mp([],f,0,rp,sp),5);case 5:w=Y.h;v=0;if(q.length&&p.length)for(G=t(p),E=G.next();!E.done;E=G.next())for(H=E.value,L=t(q),K=L.next();!K.done;K=L.next())N=K.value,V=v++,N.variantIds.push(V),H.variantIds.push(V);else for(y=q.concat(p),D=t(y),C=D.next();!C.done;C=D.next())B=
610
- C.value,B.variantIds=[v++];return Y["return"](q.concat(p).concat(x).concat(w))}})}
611
- function mp(a,b,c,d,e){var f,g,h,k,l,m,n,p,q,x,w,v,y,D,C,B,G,E,H,L,K;return I(function(N){switch(N.g){case 1:f=Jb;g=[];for(h=0;h<b.length;h++)h>=c?g.push(new Set(b[h])):g.push(new Set);k=t(a);l=k.next();case 2:if(l.done){N.D(4);break}m=l.value;return u(N,tp(m,b,c,e,g),5);case 5:n=N.h;if(!n)throw new O(2,4,4037);l=k.next();N.D(2);break;case 4:p=t(g);for(q=p.next();!q.done;q=p.next())for(x=q.value,w=t(x),v=w.next();!v.done;v=w.next())y=v.value,(D=up(y,b,d,e,g))&&a.push(D);C=t(g);for(q=C.next();!q.done;q=
612
- C.next())for(B=q.value,G={},E=t(B),v=E.next();!v.done;G={xb:G.xb},v=E.next())if(G.xb=v.value,H=G.xb.type==f.ia&&!G.xb.language,L=G.xb.type==f.zc&&!G.xb.tilesLayout,!H&&!L&&(K=a.some(function(V){return function(Y){return Y.mimeType==V.xb.mimeType&&ld(Y.codecs)==ld(V.xb.codecs)}}(G))))throw new O(2,4,4037);return N["return"](a)}})}
613
+ function pp(a){var b,c,d,e,f,g,h,k,l,m,n,p,q,w,y,x,v,D,C,B,G,E,H,N,K,M,V;return I(function(Z){switch(Z.g){case 1:b=Jb;if(1==a.length)return Z["return"](a[0]);c=a.map(function(ha){return ha.filter(function(ja){return ja.type==b.Fb})});d=a.map(function(ha){return ha.filter(function(ja){return ja.type==b.Ma})});e=a.map(function(ha){return ha.filter(function(ja){return ja.type==b.ha})});f=a.map(function(ha){return ha.filter(function(ja){return ja.type==b.xc})});g=t(e);for(h=g.next();!h.done;h=g.next())k=
614
+ h.value,k.push(qp(b.ha));l=t(f);for(m=l.next();!m.done;m=l.next())n=m.value,n.push(qp(b.xc));return u(Z,mp([],c,0,rp,sp),2);case 2:return p=Z.h,u(Z,mp([],d,0,rp,sp),3);case 3:return q=Z.h,u(Z,mp([],e,0,rp,sp),4);case 4:return w=Z.h,u(Z,mp([],f,0,rp,sp),5);case 5:y=Z.h;x=0;if(q.length&&p.length)for(G=t(p),E=G.next();!E.done;E=G.next())for(H=E.value,N=t(q),K=N.next();!K.done;K=N.next())M=K.value,V=x++,M.variantIds.push(V),H.variantIds.push(V);else for(v=q.concat(p),D=t(v),C=D.next();!C.done;C=D.next())B=
615
+ C.value,B.variantIds=[x++];return Z["return"](q.concat(p).concat(w).concat(y))}})}
616
+ function mp(a,b,c,d,e){var f,g,h,k,l,m,n,p,q,w,y,x,v,D,C,B,G,E,H,N,K;return I(function(M){switch(M.g){case 1:f=Jb;g=[];for(h=0;h<b.length;h++)h>=c?g.push(new Set(b[h])):g.push(new Set);k=t(a);l=k.next();case 2:if(l.done){M.D(4);break}m=l.value;return u(M,tp(m,b,c,e,g),5);case 5:n=M.h;if(!n)throw new O(2,4,4037);l=k.next();M.D(2);break;case 4:p=t(g);for(q=p.next();!q.done;q=p.next())for(w=q.value,y=t(w),x=y.next();!x.done;x=y.next())v=x.value,(D=up(v,b,d,e,g))&&a.push(D);C=t(g);for(q=C.next();!q.done;q=
617
+ C.next())for(B=q.value,G={},E=t(B),x=E.next();!x.done;G={vb:G.vb},x=E.next())if(G.vb=x.value,H=G.vb.type==f.ha&&!G.vb.language,N=G.vb.type==f.xc&&!G.vb.tilesLayout,!H&&!N&&(K=a.some(function(V){return function(Z){return Z.mimeType==V.vb.mimeType&&zd(Z.codecs)==zd(V.vb.codecs)}}(G))))throw new O(2,4,4037);return M["return"](a)}})}
613
618
  function tp(a,b,c,d,e){return I(function(f){if(1==f.g)return vp(b,a),a.matchedStreams?a.segmentIndex?u(f,wp(a,c),2):f.D(2):f["return"](!1);xp(a,c,d,e);return f["return"](!0)})}
614
619
  function wp(a,b){var c,d,e,f,g,h,k;return I(function(l){if(1==l.g){c=[];d=a.matchedStreams;e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,c.push(g.createSegmentIndex()),g.trickModeVideo&&!g.trickModeVideo.segmentIndex&&c.push(g.trickModeVideo.createSegmentIndex());return u(l,Promise.all(c),2)}if(a.segmentIndex instanceof bj)for(h=0;h<d.length;h++)k=d[h],k.segmentIndex&&h>=b&&a.segmentIndex.j.push(k.segmentIndex);z(l)})}
615
- function up(a,b,c,d,e){var f=c(a);vp(b,f);f.createSegmentIndex&&(f.createSegmentIndex=function(){return I(function(g){if(f.segmentIndex)return g.D(0);f.segmentIndex=new bj;return u(g,wp(f,0),0)})});if(!f.matchedStreams)return null;xp(f,0,d,e);return f}function xp(a,b,c,d){for(var e=a.matchedStreams,f=0;f<e.length;f++)if(f>=b){var g=e[f];c(a,g);var h=!0;"audio"==a.type&&0==Tb(a.language,g.language)&&(h=!1);h&&d[f]["delete"](g)}}
620
+ function up(a,b,c,d,e){var f=c(a);vp(b,f);f.createSegmentIndex&&(f.createSegmentIndex=function(){return I(function(g){if(f.segmentIndex)return g.D(0);f.segmentIndex=new bj;return u(g,wp(f,0),0)})});if(!f.matchedStreams)return null;xp(f,0,d,e);return f}function xp(a,b,c,d){for(var e=a.matchedStreams,f=0;f<e.length;f++)if(f>=b){var g=e[f];c(a,g);var h=!0;"audio"==a.type&&0==Sb(a.language,g.language)&&(h=!1);h&&d[f]["delete"](g)}}
616
621
  function np(a){var b=Object.assign({},a);b.originalId=null;b.createSegmentIndex=function(){return Promise.resolve()};b.closeSegmentIndex=function(){b.segmentIndex&&(b.segmentIndex.release(),b.segmentIndex=null);if(b.matchedStreams)for(var c=t(b.matchedStreams),d=c.next();!d.done;d=c.next())d=d.value,d.segmentIndex&&(d.segmentIndex.release(),d.segmentIndex=null)};b.segmentIndex=null;b.emsgSchemeIdUris=[];b.keyIds=new Set;b.closedCaptions=null;b.trickModeVideo=null;return b}
617
622
  function rp(a){a=Object.assign({},a);a.keyIds=new Set;a.segments=[];a.variantIds=[];a.closedCaptions=null;return a}
618
- function op(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=Array.from(new Set(a.emsgSchemeIdUris.concat(b.emsgSchemeIdUris))));a.keyIds=function(f,g){return new Set([].concat(ia(f),ia(g)))}(a.keyIds,b.keyIds);null==a.originalId?a.originalId=b.originalId:a.originalId+=","+(b.originalId||"");var c=ng(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!c.length)throw new O(2,4,4038);a.drmInfos=c;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions){a.closedCaptions||
623
+ function op(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=Array.from(new Set(a.emsgSchemeIdUris.concat(b.emsgSchemeIdUris))));a.keyIds=function(f,g){return new Set([].concat(ia(f),ia(g)))}(a.keyIds,b.keyIds);null==a.originalId?a.originalId=b.originalId:a.originalId+=","+(b.originalId||"");var c=og(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!c.length)throw new O(2,4,4038);a.drmInfos=c;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions){a.closedCaptions||
619
624
  (a.closedCaptions=new Map);c=t(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=np(b.trickModeVideo),a.trickModeVideo.createSegmentIndex=function(){a.trickModeVideo.segmentIndex=a.segmentIndex.clone();return Promise.resolve()}),op(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&op(a.trickModeVideo,b)}
620
625
  function sp(a,b){a.roles=Array.from(new Set(a.roles.concat(b.roles)));var c=b.keyIds;c=new Set([].concat(ia(a.keyIds),ia(c)));a.keyIds=c;a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,ia(b.segments));if(b.closedCaptions){a.closedCaptions||(a.closedCaptions=new Map);c=t(b.closedCaptions);for(var d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;a.closedCaptions.set(d,e)}}}
621
- function vp(a,b){for(var c=[],d=t(a),e=d.next();!e.done;e=d.next()){var f=b,g={audio:yp,video:yp,text:zp,image:Ap}[f.type],h={audio:Bp,video:Cp,text:Dp,image:Ep}[f.type],k=null;e=t(e.value);for(var l=e.next();!l.done;l=e.next())l=l.value,!g(f,l)||k&&!h(f,k,l)||(k=l);f=k;if(!f)return;c.push(f)}b.matchedStreams=c}function yp(a,b){var c;if(!(c=b.mimeType!=a.mimeType||ld(b.codecs)!=ld(a.codecs))&&(c=a.drmInfos)){c=a.drmInfos;var d=b.drmInfos;c=!(c.length&&d.length?0<ng(c,d).length:1)}return c?!1:!0}
622
- function zp(a,b){return a.language?b.language?0==Tb(a.language,b.language)||b.kind!=a.kind?!1:!0:!0:!1}function Ap(a){return a.tilesLayout?!0:!1}
623
- function Bp(a,b,c){if(a.id==c.id)return!0;var d=Tb(a.language,b.language),e=Tb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(a.roles.length)return d=b.roles.filter(function(f){return a.roles.includes(f)}),e=c.roles.filter(function(f){return a.roles.includes(f)}),e.length>d.length?!0:e.length<d.length?!1:c.roles.length<b.roles.length;if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1;
626
+ function vp(a,b){for(var c=[],d=t(a),e=d.next();!e.done;e=d.next()){var f=b,g={audio:yp,video:yp,text:zp,image:Ap}[f.type],h={audio:Bp,video:Cp,text:Dp,image:Ep}[f.type],k=null;e=t(e.value);for(var l=e.next();!l.done;l=e.next())l=l.value,!g(f,l)||k&&!h(f,k,l)||(k=l);f=k;if(!f)return;c.push(f)}b.matchedStreams=c}function yp(a,b){var c;if(!(c=b.mimeType!=a.mimeType||zd(b.codecs)!=zd(a.codecs))&&(c=a.drmInfos)){c=a.drmInfos;var d=b.drmInfos;c=!(c.length&&d.length?0<og(c,d).length:1)}return c?!1:!0}
627
+ function zp(a,b){return a.language?b.language?0==Sb(a.language,b.language)||b.kind!=a.kind?!1:!0:!0:!1}function Ap(a){return a.tilesLayout?!0:!1}
628
+ function Bp(a,b,c){if(a.id==c.id)return!0;var d=Sb(a.language,b.language),e=Sb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(a.roles.length)return d=b.roles.filter(function(f){return a.roles.includes(f)}),e=c.roles.filter(function(f){return a.roles.includes(f)}),e.length>d.length?!0:e.length<d.length?!1:c.roles.length<b.roles.length;if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1;
624
629
  d=Fp(a.channelsCount,b.channelsCount,c.channelsCount);if(d==Gp)return!0;if(d==Hp)return!1;d=Fp(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==Gp?!0:d==Hp?!1:a.bandwidth&&Ip(a.bandwidth,b.bandwidth,c.bandwidth)==Gp?!0:!1}
625
630
  function Cp(a,b,c){if(a.id==c.id)return!0;var d=Fp(a.width*a.height,b.width*b.height,c.width*c.height);if(d==Gp)return!0;if(d==Hp)return!1;if(a.frameRate){d=Fp(a.frameRate,b.frameRate,c.frameRate);if(d==Gp)return!0;if(d==Hp)return!1}return a.bandwidth&&Ip(a.bandwidth,b.bandwidth,c.bandwidth)==Gp?!0:!1}
626
- function Dp(a,b,c){if(a.id==c.id)return!0;var d=Tb(a.language,b.language),e=Tb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(a.roles.length){d=b.roles.filter(function(f){return a.roles.includes(f)});e=c.roles.filter(function(f){return a.roles.includes(f)});if(e.length>d.length)return!0;if(e.length<d.length)return!1}else{if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1}return c.mimeType!=
631
+ function Dp(a,b,c){if(a.id==c.id)return!0;var d=Sb(a.language,b.language),e=Sb(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(a.roles.length){d=b.roles.filter(function(f){return a.roles.includes(f)});e=c.roles.filter(function(f){return a.roles.includes(f)});if(e.length>d.length)return!0;if(e.length<d.length)return!1}else{if(!c.roles.length&&b.roles.length)return!0;if(c.roles.length&&!b.roles.length)return!1}return c.mimeType!=
627
632
  a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function Ep(a,b,c){return a.id==c.id?!0:Fp(a.width*a.height,b.width*b.height,c.width*c.height)==Gp?!0:!1}function qp(a){return{id:0,originalId:"",primary:!1,type:a,mimeType:"",codecs:"",language:"",label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}
628
- function lp(a){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Yi([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",label:null,type:a,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}
629
- function Fp(a,b,c){if(b==a&&a!=c)return Hp;if(c==a&&a!=b)return Gp;if(b>a){if(c<=a||c-a<b-a)return Gp;if(c-a>b-a)return Hp}else{if(c>a)return Hp;if(a-c<a-b)return Gp;if(a-c>a-b)return Hp}return Jp}function Ip(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?Gp:b<a?Hp:Jp}var Gp=1,Jp=0,Hp=-1;function Kp(){var a=this;this.h=this.g=null;this.m=[];this.i=null;this.I=1;this.l={};this.M={};this.j=new fp;this.H=0;this.J=new ac(5);this.G=new P(function(){Lp(a)});this.A=new ef;this.B=null;this.K=[];this.C=Infinity;this.F=!1}r=Kp.prototype;r.configure=function(a){this.g=a};r.start=function(a,b){var c=this,d;return I(function(e){if(1==e.g)return c.F=b.isLowLatencyMode(),c.m=[a],c.h=b,u(e,Mp(c),2);d=e.h;c.h&&Np(c,d);if(!c.h)throw new O(2,7,7001);return e["return"](c.i)})};
630
- r.stop=function(){for(var a=t(Object.values(this.l)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.j&&this.j.release();this.g=this.h=null;this.m=[];this.i=null;this.l={};this.j=null;null!=this.G&&(this.G.stop(),this.G=null);return this.A.destroy()};r.update=function(){var a=this,b;return I(function(c){if(1==c.g)return A(c,2),u(c,Mp(a),4);if(2!=c.g)return wa(c,0);b=F(c);if(!a.h||!b)return c["return"]();a.h.onError(b);z(c)})};r.onExpirationUpdated=function(){};
631
- function Mp(a){var b,c,d,e,f,g,h;return I(function(k){if(1==k.g)return b=lf(a.m,a.g.retryParameters),c=a.h.networkingEngine,a.h.modifyManifestRequest(b,{format:"d"}),d=Date.now(),e=c.request(0,b),ff(a.A,e),u(k,e.promise,2);if(3!=k.g){f=k.h;if(!a.h)return k["return"](0);f.uri&&!a.m.includes(f.uri)&&a.m.unshift(f.uri);return u(k,Op(a,f.data,f.uri),3)}g=Date.now();h=(g-d)/1E3;a.J.sample(1,h);return k["return"](h)})}
632
- function Op(a,b,c){var d,e,f,g,h;return I(function(k){if(1==k.g){d=ko(b,"MPD");if(!d)throw new O(2,4,4001,c);if(e=a.g.dash.disableXlinkProcessing)return k["return"](Pp(a,d,c));f=a.g.dash.xlinkFailGracefully;g=Ao(d,a.g.retryParameters,f,c,a.h.networkingEngine);ff(a.A,g);return u(k,g.promise,2)}h=k.h;return k["return"](Pp(a,h,c))})}
633
- function Pp(a,b,c){var d,e,f,g,h,k,l,m,n,p,q,x,w,v,y,D,C,B,G,E,H,L,K,N,V,Y,ja,ha,pa,Oa,Fa,Pa;return I(function(Ka){switch(Ka.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);e=[c];f=Sn(b,"Location").map(Yn).filter(Cb);0<f.length&&(g=Db(e,f),e=a.m=g);h=Sn(b,"BaseURL");k=h.map(Yn);l=Db(e,k);m=0;h&&h.length&&(m=$n(h[0],"availabilityTimeOffset",ho)||0);n=a.g.dash.ignoreMinBufferTime;p=0;n||(p=$n(b,"minBufferTime",bo)||0);a.H=$n(b,"minimumUpdatePeriod",bo,-1);q=$n(b,"availabilityStartTime",ao);x=$n(b,
634
- "timeShiftBufferDepth",bo);w=a.g.dash.ignoreSuggestedPresentationDelay;v=null;w||(v=$n(b,"suggestedPresentationDelay",bo));y=a.g.dash.ignoreMaxSegmentDuration;D=null;y||(D=$n(b,"maxSegmentDuration",bo));C=b.getAttribute("type")||"static";if(a.i)for(B=a.i.presentationTimeline,G=t(Object.values(a.l)),E=G.next();!E.done;E=G.next())H=E.value,H.segmentIndex&&H.segmentIndex.Ib(B.qb());else L=a.g.defaultPresentationDelay||1.5*p,K=null!=v?v:L,B=new Q(q,K,a.g.dash.autoCorrectDrift);B.Vc("static"==C);(N=B.U())&&
635
- !isNaN(a.g.availabilityWindowOverride)&&(x=a.g.availabilityWindowOverride);null==x&&(x=Infinity);B.Fe(x);V=b.getAttribute("profiles")||"";Y={zb:"static"!=C,presentationTimeline:B,ra:null,Z:null,Aa:null,L:null,bandwidth:0,vf:!1,$b:m,profiles:V.split(",")};ja=Qp(a,Y,l,b);ha=ja.duration;pa=ja.periods;"static"!=C&&ja.kf||B.eb(ha||Infinity);a.C&&!a.F&&(Oa=a.h.isAutoLowLatencyMode())&&(a.h.enableLowLatencyMode(),a.F=a.h.isLowLatencyMode());a.F?B.Gf(a.C):a.C&&Ua("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");
636
- B.je(D||1);return u(Ka,gp(a.j,pa,Y.zb),2);case 2:if(a.i){a.i.variants=a.j.l;a.i.textStreams=a.j.j.slice();a.i.imageStreams=a.j.i;a.h.filter(a.i);Ka.D(3);break}a.i={presentationTimeline:B,variants:a.j.l,textStreams:a.j.j.slice(),imageStreams:a.j.i,offlineSessionIds:[],minBufferTime:p||0,sequenceMode:!1};if(!B.Of()){Ka.D(3);break}Fa=Sn(b,"UTCTiming");return u(Ka,Rp(a,l,Fa),5);case 5:Pa=Ka.h;if(!a.h)return Ka["return"]();B.Hf(Pa);case 3:a.h.makeTextStreamsForClosedCaptions(a.i),z(Ka)}})}
637
- function Qp(a,b,c,d){var e=$n(d,"mediaPresentationDuration",bo),f=[],g=0;d=Sn(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=$n(k,"start",bo,g),n=k.id,p=$n(k,"duration",bo),q=null;if(l){var x=$n(l,"start",bo);null!=x&&(q=x-m)}else null!=e&&(q=e-m);null==q&&(q=p);if(!(null!==a.B&&null!==n&&null!==m&&m<a.B)||a.K.includes(n)||h+1==d.length){null!==m&&(null===a.B||m>a.B)&&(a.B=m);g=Sp(a,b,c,{start:m,duration:q,node:k,xf:null==q||!l});f.push(g);b.ra.id&&q&&(a.M[b.ra.id]=q);if(null==q){g=
638
- null;break}g=m+q}}a.K=f.map(function(w){return w.id});return null!=e?{periods:f,duration:e,kf:!1}:{periods:f,duration:g,kf:!0}}
639
- function Sp(a,b,c,d){b.ra=Tp(d.node,null,c);b.Z=d;b.ra.$b=b.$b;b.ra.id||(b.ra.id="__shaka_period_"+d.start);var e=Sn(d.node,"EventStream");c=b.presentationTimeline.qb();e=t(e);for(var f=e.next();!f.done;f=e.next())Up(a,d.start,d.duration,f.value,c);c=Sn(d.node,"AdaptationSet").map(function(m){return Vp(a,b,m)}).filter(Cb);if(b.zb){d=[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.gh);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new O(2,4,4018);
640
- }d=c.filter(function(m){return!m.Le});c=c.filter(function(m){return m.Le});c=t(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.Le.split(" ");g=t(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=t(k.streams);for(var l=k.next();!l.done;h={bd:h.bd},l=k.next())h.bd=l.value,h.bd.trickModeVideo=e.streams.find(function(m){return function(n){return ld(m.bd.codecs)==ld(n.codecs)}}(h))}}}e=a.g.disableAudio?[]:Wp(d,"audio");g=a.g.disableVideo?[]:Wp(d,"video");f=a.g.disableText?
641
- []:Wp(d,Ib);c=a.g.disableThumbnails?[]:Wp(d,"image");if(!g.length&&!e.length)throw new O(2,4,4004);d=[];e=t(e);for(h=e.next();!h.done;h=e.next())d.push.apply(d,ia(h.value.streams));e=[];g=t(g);for(h=g.next();!h.done;h=g.next())e.push.apply(e,ia(h.value.streams));g=[];f=t(f);for(h=f.next();!h.done;h=f.next())g.push.apply(g,ia(h.value.streams));f=[];c=t(c);for(h=c.next();!h.done;h=c.next())f.push.apply(f,ia(h.value.streams));return{id:b.ra.id,ed:d,Hd:e,textStreams:g,imageStreams:f}}
633
+ function lp(a){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Zi([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",label:null,type:a,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}
634
+ function Fp(a,b,c){if(b==a&&a!=c)return Hp;if(c==a&&a!=b)return Gp;if(b>a){if(c<=a||c-a<b-a)return Gp;if(c-a>b-a)return Hp}else{if(c>a)return Hp;if(a-c<a-b)return Gp;if(a-c>a-b)return Hp}return Jp}function Ip(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?Gp:b<a?Hp:Jp}var Gp=1,Jp=0,Hp=-1;function Kp(){var a=this;this.h=this.g=null;this.m=[];this.i=null;this.I=1;this.l={};this.N={};this.j=new fp;this.H=0;this.J=new $b(5);this.G=new P(function(){Lp(a)});this.A=new ff;this.B=null;this.K=[];this.C=Infinity;this.F=!1}r=Kp.prototype;r.configure=function(a){this.g=a};r.start=function(a,b){var c=this,d;return I(function(e){if(1==e.g)return c.F=b.isLowLatencyMode(),c.m=[a],c.h=b,u(e,Mp(c),2);d=e.h;c.h&&Np(c,d);if(!c.h)throw new O(2,7,7001);return e["return"](c.i)})};
635
+ r.stop=function(){for(var a=t(Object.values(this.l)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.j&&this.j.release();this.g=this.h=null;this.m=[];this.i=null;this.l={};this.j=null;null!=this.G&&(this.G.stop(),this.G=null);return this.A.destroy()};r.update=function(){var a=this,b;return I(function(c){if(1==c.g)return A(c,2),u(c,Mp(a),4);if(2!=c.g)return va(c,0);b=F(c);if(!a.h||!b)return c["return"]();a.h.onError(b);z(c)})};r.onExpirationUpdated=function(){};
636
+ function Mp(a){var b,c,d,e,f,g,h;return I(function(k){if(1==k.g)return b=mf(a.m,a.g.retryParameters),c=a.h.networkingEngine,a.h.modifyManifestRequest(b,{format:"d"}),d=Date.now(),e=c.request(0,b),gf(a.A,e),u(k,e.promise,2);if(3!=k.g){f=k.h;if(!a.h)return k["return"](0);f.uri&&!a.m.includes(f.uri)&&a.m.unshift(f.uri);return u(k,Op(a,f.data,f.uri),3)}g=Date.now();h=(g-d)/1E3;a.J.sample(1,h);return k["return"](h)})}
637
+ function Op(a,b,c){var d,e,f,g,h;return I(function(k){if(1==k.g){d=ko(b,"MPD");if(!d)throw new O(2,4,4001,c);if(e=a.g.dash.disableXlinkProcessing)return k["return"](Pp(a,d,c));f=a.g.dash.xlinkFailGracefully;g=Ao(d,a.g.retryParameters,f,c,a.h.networkingEngine);gf(a.A,g);return u(k,g.promise,2)}h=k.h;return k["return"](Pp(a,h,c))})}
638
+ function Pp(a,b,c){var d,e,f,g,h,k,l,m,n,p,q,w,y,x,v,D,C,B,G,E,H,N,K,M,V,Z,ha,ja,wa,Ma,Fa,Sa;return I(function(Ga){switch(Ga.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);e=[c];f=Sn(b,"Location").map(Yn).filter(Cb);0<f.length&&(g=Db(e,f),e=a.m=g);h=Sn(b,"BaseURL");k=h.map(Yn);l=Db(e,k);m=0;h&&h.length&&(m=$n(h[0],"availabilityTimeOffset",ho)||0);n=a.g.dash.ignoreMinBufferTime;p=0;n||(p=$n(b,"minBufferTime",bo)||0);a.H=$n(b,"minimumUpdatePeriod",bo,-1);q=$n(b,"availabilityStartTime",ao);w=$n(b,
639
+ "timeShiftBufferDepth",bo);y=a.g.dash.ignoreSuggestedPresentationDelay;x=null;y||(x=$n(b,"suggestedPresentationDelay",bo));v=a.g.dash.ignoreMaxSegmentDuration;D=null;v||(D=$n(b,"maxSegmentDuration",bo));C=b.getAttribute("type")||"static";if(a.i)for(B=a.i.presentationTimeline,G=t(Object.values(a.l)),E=G.next();!E.done;E=G.next())H=E.value,H.segmentIndex&&H.segmentIndex.Gb(B.ob());else N=a.g.defaultPresentationDelay||1.5*p,K=null!=x?x:N,B=new Q(q,K,a.g.dash.autoCorrectDrift);B.Vc("static"==C);(M=B.U())&&
640
+ !isNaN(a.g.availabilityWindowOverride)&&(w=a.g.availabilityWindowOverride);null==w&&(w=Infinity);B.Je(w);V=b.getAttribute("profiles")||"";Z={xb:"static"!=C,presentationTimeline:B,ra:null,Z:null,Aa:null,L:null,bandwidth:0,xf:!1,Yb:m,profiles:V.split(",")};ha=Qp(a,Z,l,b);ja=ha.duration;wa=ha.periods;"static"!=C&&ha.mf||B.bb(ja||Infinity);a.C&&!a.F&&(Ma=a.h.isAutoLowLatencyMode())&&(a.h.enableLowLatencyMode(),a.F=a.h.isLowLatencyMode());a.F?B.Gf(a.C):a.C&&Ua("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");
641
+ B.oe(D||1);return u(Ga,gp(a.j,wa,Z.xb),2);case 2:if(a.i){a.i.variants=a.j.l;a.i.textStreams=a.j.j.slice();a.i.imageStreams=a.j.i;a.h.filter(a.i);Ga.D(3);break}a.i={presentationTimeline:B,variants:a.j.l,textStreams:a.j.j.slice(),imageStreams:a.j.i,offlineSessionIds:[],minBufferTime:p||0,sequenceMode:!1};if(!B.Of()){Ga.D(4);break}Fa=Sn(b,"UTCTiming");return u(Ga,Rp(a,l,Fa),5);case 5:Sa=Ga.h;if(!a.h)return Ga["return"]();B.Hf(Sa);case 4:B.je();case 3:a.h.makeTextStreamsForClosedCaptions(a.i),z(Ga)}})}
642
+ function Qp(a,b,c,d){var e=$n(d,"mediaPresentationDuration",bo),f=[],g=0;d=Sn(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=$n(k,"start",bo,g),n=k.id,p=$n(k,"duration",bo),q=null;if(l){var w=$n(l,"start",bo);null!=w&&(q=w-m)}else null!=e&&(q=e-m);null==q&&(q=p);if(!(null!==a.B&&null!==n&&null!==m&&m<a.B)||a.K.includes(n)||h+1==d.length){null!==m&&(null===a.B||m>a.B)&&(a.B=m);g=Sp(a,b,c,{start:m,duration:q,node:k,zf:null==q||!l});f.push(g);b.ra.id&&q&&(a.N[b.ra.id]=q);if(null==q){g=
643
+ null;break}g=m+q}}a.K=f.map(function(y){return y.id});return null!=e?{periods:f,duration:e,mf:!1}:{periods:f,duration:g,mf:!0}}
644
+ function Sp(a,b,c,d){b.ra=Tp(d.node,null,c);b.Z=d;b.ra.Yb=b.Yb;b.ra.id||(b.ra.id="__shaka_period_"+d.start);var e=Sn(d.node,"EventStream");c=b.presentationTimeline.ob();e=t(e);for(var f=e.next();!f.done;f=e.next())Up(a,d.start,d.duration,f.value,c);c=Sn(d.node,"AdaptationSet").map(function(m){return Vp(a,b,m)}).filter(Cb);if(b.xb){d=[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.fh);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new O(2,4,4018);
645
+ }d=c.filter(function(m){return!m.Pe});c=c.filter(function(m){return m.Pe});c=t(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.Pe.split(" ");g=t(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=t(k.streams);for(var l=k.next();!l.done;h={bd:h.bd},l=k.next())h.bd=l.value,h.bd.trickModeVideo=e.streams.find(function(m){return function(n){return zd(m.bd.codecs)==zd(n.codecs)}}(h))}}}e=a.g.disableAudio?[]:Wp(d,"audio");g=a.g.disableVideo?[]:Wp(d,"video");f=a.g.disableText?
646
+ []:Wp(d,Ib);c=a.g.disableThumbnails?[]:Wp(d,"image");if(!g.length&&!e.length)throw new O(2,4,4004);d=[];e=t(e);for(h=e.next();!h.done;h=e.next())d.push.apply(d,ia(h.value.streams));e=[];g=t(g);for(h=g.next();!h.done;h=g.next())e.push.apply(e,ia(h.value.streams));g=[];f=t(f);for(h=f.next();!h.done;h=f.next())g.push.apply(g,ia(h.value.streams));f=[];c=t(c);for(h=c.next();!h.done;h=c.next())f.push.apply(f,ia(h.value.streams));return{id:b.ra.id,ed:d,Id:e,textStreams:g,imageStreams:f}}
642
647
  function Wp(a,b){return a.filter(function(c){return c.contentType==b})}
643
648
  function Vp(a,b,c){function d(E){switch(E){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.Aa=Tp(c,b.ra,null);var e=!1,f=Sn(c,"Role"),g=f.map(function(E){return E.getAttribute("value")}).filter(Cb),h=void 0,k=b.Aa.contentType==Ib;k&&(h="subtitle");f=t(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=l.getAttribute("schemeIdUri");if(null==m||"urn:mpeg:dash:role:2011"==m)switch(l=l.getAttribute("value"),l){case "main":e=!0;break;case "caption":case "subtitle":h=
644
649
  l}}var n;m=Sn(c,"EssentialProperty");f=null;l=!1;m=t(m);for(var p=m.next();!p.done;p=m.next()){p=p.value;var q=p.getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==q?f=p.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==q?n=d(parseInt(p.getAttribute("value"),10)):l=!0}m=Sn(c,"SupplementalProperty");m=t(m);for(p=m.next();!p.done;p=m.next())p=p.value,"urn:mpeg:mpegB:cicp:TransferCharacteristics"==p.getAttribute("schemeIdUri")&&(n=d(parseInt(p.getAttribute("value"),
645
- 10)));m=Sn(c,"Accessibility");var x=new Map;m=t(m);for(p=m.next();!p.done;p=m.next())if(q=p.value,p=q.getAttribute("schemeIdUri"),q=q.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==p)if(p=1,null!=q){q=q.split(";");for(var w=t(q),v=w.next();!v.done;v=w.next()){var y=v.value,D=v=void 0;y.includes("=")?(y=y.split("="),v=y[0].startsWith("CC")?y[0]:"CC"+y[0],D=y[1]||"und"):(v="CC"+p,2==q.length?p+=2:p++,D=y);x.set(v,Nb(D))}}else x.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==p)if(p=
646
- 1,null!=q)for(q=t(q.split(";")),v=q.next();!v.done;v=q.next())v=v.value,y=w=void 0,v.includes("=")?(v=v.split("="),w="svc"+v[0],y=v[1].split(",")[0].split(":").pop()):(w="svc"+p,p++,y=v),x.set(w,Nb(y));else x.set("svc1","und");else"urn:mpeg:dash:role:2011"==p&&null!=q&&(g.push(q),"captions"==q&&(h="caption"));if(l)return null;l=Sn(c,"ContentProtection");var C=lo(l,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),B=Nb(c.getAttribute("lang")||"und"),G=c.getAttribute("label");(l=Sn(c,"Label"))&&l.length&&
647
- (l=l[0],l.textContent&&(G=l.textContent));l=Sn(c,"Representation");c=l.map(function(E){if(E=Xp(a,b,C,h,B,G,e,g,x,E))E.hdr=E.hdr||n;return E}).filter(function(E){return!!E});if(0==c.length){f="image"==b.Aa.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||k||f)return null;throw new O(2,4,4003);}if(!b.Aa.contentType||"application"==b.Aa.contentType)for(b.Aa.contentType=Yp(c[0].mimeType,c[0].codecs),k=t(c),m=k.next();!m.done;m=k.next())m.value.type=b.Aa.contentType;k=t(c);for(m=k.next();!m.done;m=k.next())for(m=
648
- m.value,p=t(C.drmInfos),q=p.next();!q.done;q=p.next())q=q.value,q.keyIds=q.keyIds&&m.keyIds?new Set([].concat(ia(q.keyIds),ia(m.keyIds))):q.keyIds||m.keyIds;k=l.map(function(E){return E.getAttribute("id")}).filter(Cb);return{id:b.Aa.id||"__fake__"+a.I++,contentType:b.Aa.contentType,language:B,Zi:e,streams:c,drmInfos:C.drmInfos,Le:f,gh:k}}
649
- function Xp(a,b,c,d,e,f,g,h,k,l){b.L=Tp(l,b.Aa,null);a.C=Math.min(a.C,b.L.$b);if(!Zp(b.L))return null;var m=b.Z.start;b.bandwidth=$n(l,"bandwidth",fo)||0;var n=b.L.contentType,p=n==Ib||"application"==n;n="image"==n;try{var q=function(H,L,K){return $p(a,H,L,K)};if(b.L.Tc)var x=Oo(b,q);else if(b.L.Fb)x=Uo(b,a.l);else if(b.L.Uc)x=Zo(b,q,a.l,!!a.i,a.g.dash.initialSegmentLimit,a.M);else{var w=b.L.Pa,v=b.Z.duration||0;x={bc:function(){return Promise.resolve(aj(m,v,w))}}}}catch(H){if((p||n)&&4002==H.code)return null;
650
- throw H;}q=Sn(l,"ContentProtection");q=oo(q,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);q=new Set(q?[q]:[]);var y=!1;Sn(l,"SupplementalProperty").some(function(H){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==H.getAttribute("schemeIdUri")&&"JOC"==H.getAttribute("value")})&&(y=!0);var D=!1;p&&(D=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var C;if(n&&((l=Sn(l,"EssentialProperty").find(function(H){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(H.getAttribute("schemeIdUri"))}))&&
651
- (C=l.getAttribute("value")),!C))return null;var B;l=b.L.codecs;b.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(l.includes("hvc1.2.4.L153.B0")||l.includes("hev1.2.4.L153.B0"))&&(B="PQ");var G=b.L.id?b.ra.id+","+b.L.id:"",E={id:a.I++,originalId:b.L.id,createSegmentIndex:function(){var H,L,K;return I(function(N){if(1==N.g){L=(H=G&&b.zb&&a.l[G])?a.l[G]:E;if(L.segmentIndex)return N.D(0);K=L;return u(N,x.bc(),3)}K.segmentIndex=N.h;z(N)})},closeSegmentIndex:function(){E.segmentIndex&&
652
- (E.segmentIndex.release(),E.segmentIndex=null)},segmentIndex:null,mimeType:b.L.mimeType,codecs:b.L.codecs,frameRate:b.L.frameRate,pixelAspectRatio:b.L.pixelAspectRatio,bandwidth:b.bandwidth,width:b.L.width,height:b.L.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:q,language:e,label:f,type:b.Aa.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.L.emsgSchemeIdUris,roles:h,forced:D,channelsCount:b.L.ud,audioSamplingRate:b.L.audioSamplingRate,spatialAudio:y,closedCaptions:k,
653
- hdr:B,tilesLayout:C,matchedStreams:[]};G&&b.zb&&!a.l[G]&&(a.l[G]=E);return E}function Lp(a){var b,c;I(function(d){switch(d.g){case 1:return b=0,A(d,2),u(d,Mp(a),4);case 4:b=d.h;wa(d,3);break;case 2:c=F(d),a.h&&(c.severity=1,a.h.onError(c));case 3:if(!a.h)return d["return"]();Np(a,b);z(d)}})}function Np(a,b){0>a.H||a.G.T(Math.max(3,a.H-b,bc(a.J)))}
654
- function Tp(a,b,c){b=b||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,ud:null,audioSamplingRate:null,$b:0};c=c||b.Pa;var d=Sn(a,"BaseURL"),e=d.map(Yn),f=a.getAttribute("contentType")||b.contentType,g=a.getAttribute("mimeType")||b.mimeType,h=a.getAttribute("codecs")||b.codecs,k=$n(a,"frameRate",io)||b.frameRate,l=a.getAttribute("sar")||b.pixelAspectRatio,m=Sn(a,"InbandEventStream"),n=b.emsgSchemeIdUris.slice();m=t(m);for(var p=m.next();!p.done;p=
655
- m.next())p=p.value.getAttribute("schemeIdUri"),n.includes(p)||n.push(p);m=Sn(a,"AudioChannelConfiguration");m=aq(m)||b.ud;p=$n(a,"audioSamplingRate",go)||b.audioSamplingRate;f||(f=Yp(g,h));var q=Rn(a,"SegmentBase"),x=Rn(a,"SegmentTemplate"),w=q?$n(q,"availabilityTimeOffset",ho)||0:0,v=x?$n(x,"availabilityTimeOffset",ho)||0:0;d=d&&d.length?$n(d[0],"availabilityTimeOffset",ho)||0:0;d=b.$b+d+w+v;return{Pa:Db(c,e),Tc:q||b.Tc,Fb:Rn(a,"SegmentList")||b.Fb,Uc:x||b.Uc,width:$n(a,"width",go)||b.width,height:$n(a,
656
- "height",go)||b.height,contentType:f,mimeType:g,codecs:h,frameRate:k,pixelAspectRatio:l,emsgSchemeIdUris:n,id:a.getAttribute("id"),ud:m,audioSamplingRate:p,$b:d}}
650
+ 10)));m=Sn(c,"Accessibility");var w=new Map;m=t(m);for(p=m.next();!p.done;p=m.next())if(q=p.value,p=q.getAttribute("schemeIdUri"),q=q.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==p)if(p=1,null!=q){q=q.split(";");for(var y=t(q),x=y.next();!x.done;x=y.next()){var v=x.value,D=x=void 0;v.includes("=")?(v=v.split("="),x=v[0].startsWith("CC")?v[0]:"CC"+v[0],D=v[1]||"und"):(x="CC"+p,2==q.length?p+=2:p++,D=v);w.set(x,Mb(D))}}else w.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==p)if(p=
651
+ 1,null!=q)for(q=t(q.split(";")),x=q.next();!x.done;x=q.next())x=x.value,v=y=void 0,x.includes("=")?(x=x.split("="),y="svc"+x[0],v=x[1].split(",")[0].split(":").pop()):(y="svc"+p,p++,v=x),w.set(y,Mb(v));else w.set("svc1","und");else"urn:mpeg:dash:role:2011"==p&&null!=q&&(g.push(q),"captions"==q&&(h="caption"));if(l)return null;l=Sn(c,"ContentProtection");var C=lo(l,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),B=Mb(c.getAttribute("lang")||"und"),G=c.getAttribute("label");(l=Sn(c,"Label"))&&l.length&&
652
+ (l=l[0],l.textContent&&(G=l.textContent));l=Sn(c,"Representation");c=l.map(function(E){if(E=Xp(a,b,C,h,B,G,e,g,w,E))E.hdr=E.hdr||n;return E}).filter(function(E){return!!E});if(0==c.length){f="image"==b.Aa.contentType;if(a.g.dash.ignoreEmptyAdaptationSet||k||f)return null;throw new O(2,4,4003);}if(!b.Aa.contentType||"application"==b.Aa.contentType)for(b.Aa.contentType=Yp(c[0].mimeType,c[0].codecs),k=t(c),m=k.next();!m.done;m=k.next())m.value.type=b.Aa.contentType;k=t(c);for(m=k.next();!m.done;m=k.next())for(m=
653
+ m.value,p=t(C.drmInfos),q=p.next();!q.done;q=p.next())q=q.value,q.keyIds=q.keyIds&&m.keyIds?new Set([].concat(ia(q.keyIds),ia(m.keyIds))):q.keyIds||m.keyIds;k=l.map(function(E){return E.getAttribute("id")}).filter(Cb);return{id:b.Aa.id||"__fake__"+a.I++,contentType:b.Aa.contentType,language:B,Yi:e,streams:c,drmInfos:C.drmInfos,Pe:f,fh:k}}
654
+ function Xp(a,b,c,d,e,f,g,h,k,l){b.L=Tp(l,b.Aa,null);a.C=Math.min(a.C,b.L.Yb);if(!Zp(b.L))return null;var m=b.Z.start;b.bandwidth=$n(l,"bandwidth",fo)||0;var n=b.L.contentType,p=n==Ib||"application"==n;n="image"==n;try{var q=function(H,N,K){return $p(a,H,N,K)};if(b.L.Tc)var w=No(b,q);else if(b.L.Db)w=Uo(b,a.l);else if(b.L.Uc)w=Zo(b,q,a.l,!!a.i,a.g.dash.initialSegmentLimit,a.N);else{var y=b.L.Na,x=b.Z.duration||0;w={$b:function(){return Promise.resolve(aj(m,x,y))}}}}catch(H){if((p||n)&&4002==H.code)return null;
655
+ throw H;}q=Sn(l,"ContentProtection");q=oo(q,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);q=new Set(q?[q]:[]);var v=!1;Sn(l,"SupplementalProperty").some(function(H){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==H.getAttribute("schemeIdUri")&&"JOC"==H.getAttribute("value")})&&(v=!0);var D=!1;p&&(D=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var C;if(n&&((l=Sn(l,"EssentialProperty").find(function(H){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(H.getAttribute("schemeIdUri"))}))&&
656
+ (C=l.getAttribute("value")),!C))return null;var B;l=b.L.codecs;b.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(l.includes("hvc1.2.4.L153.B0")||l.includes("hev1.2.4.L153.B0"))&&(B="PQ");var G=b.L.id?b.ra.id+","+b.L.id:"",E={id:a.I++,originalId:b.L.id,createSegmentIndex:function(){var H,N,K;return I(function(M){if(1==M.g){N=(H=G&&b.xb&&a.l[G])?a.l[G]:E;if(N.segmentIndex)return M.D(0);K=N;return u(M,w.$b(),3)}K.segmentIndex=M.h;z(M)})},closeSegmentIndex:function(){E.segmentIndex&&
657
+ (E.segmentIndex.release(),E.segmentIndex=null)},segmentIndex:null,mimeType:b.L.mimeType,codecs:b.L.codecs,frameRate:b.L.frameRate,pixelAspectRatio:b.L.pixelAspectRatio,bandwidth:b.bandwidth,width:b.L.width,height:b.L.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:q,language:e,label:f,type:b.Aa.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.L.emsgSchemeIdUris,roles:h,forced:D,channelsCount:b.L.ud,audioSamplingRate:b.L.audioSamplingRate,spatialAudio:v,closedCaptions:k,
658
+ hdr:B,tilesLayout:C,matchedStreams:[]};G&&b.xb&&!a.l[G]&&(a.l[G]=E);return E}function Lp(a){var b,c;I(function(d){switch(d.g){case 1:return b=0,A(d,2),u(d,Mp(a),4);case 4:b=d.h;va(d,3);break;case 2:c=F(d),a.h&&(c.severity=1,a.h.onError(c));case 3:if(!a.h)return d["return"]();Np(a,b);z(d)}})}function Np(a,b){0>a.H||a.G.T(Math.max(3,a.H-b,ac(a.J)))}
659
+ function Tp(a,b,c){b=b||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,ud:null,audioSamplingRate:null,Yb:0};c=c||b.Na;var d=Sn(a,"BaseURL"),e=d.map(Yn),f=a.getAttribute("contentType")||b.contentType,g=a.getAttribute("mimeType")||b.mimeType,h=a.getAttribute("codecs")||b.codecs,k=$n(a,"frameRate",io)||b.frameRate,l=a.getAttribute("sar")||b.pixelAspectRatio,m=Sn(a,"InbandEventStream"),n=b.emsgSchemeIdUris.slice();m=t(m);for(var p=m.next();!p.done;p=
660
+ m.next())p=p.value.getAttribute("schemeIdUri"),n.includes(p)||n.push(p);m=Sn(a,"AudioChannelConfiguration");m=aq(m)||b.ud;p=$n(a,"audioSamplingRate",go)||b.audioSamplingRate;f||(f=Yp(g,h));var q=Rn(a,"SegmentBase"),w=Rn(a,"SegmentTemplate"),y=q?$n(q,"availabilityTimeOffset",ho)||0:0,x=w?$n(w,"availabilityTimeOffset",ho)||0:0;d=d&&d.length?$n(d[0],"availabilityTimeOffset",ho)||0:0;d=b.Yb+d+y+x;return{Na:Db(c,e),Tc:q||b.Tc,Db:Rn(a,"SegmentList")||b.Db,Uc:w||b.Uc,width:$n(a,"width",go)||b.width,height:$n(a,
661
+ "height",go)||b.height,contentType:f,mimeType:g,codecs:h,frameRate:k,pixelAspectRatio:l,emsgSchemeIdUris:n,id:a.getAttribute("id"),ud:m,audioSamplingRate:p,Yb:d}}
657
662
  function aq(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(b=c.getAttribute("schemeIdUri"))if(c=c.getAttribute("value"))switch(b){case "urn:mpeg:dash:outputChannelPositionList:2012":return c.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(c,10);if(!b)continue;return b;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":b=
658
- parseInt(c,16);if(!b)continue;for(a=0;b;)b&1&&++a,b>>=1;return a;case "urn:mpeg:mpegB:cicp:ChannelConfiguration":if(b=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(c=parseInt(c,10))&&0<c&&c<b.length)return b[c]}}return null}function Zp(a){var b=a.Tc?1:0;b+=a.Fb?1:0;b+=a.Uc?1:0;if(0==b)return a.contentType==Ib||"application"==a.contentType?!0:!1;1!=b&&(a.Tc&&(a.Fb=null),a.Uc=null);return!0}
659
- function bq(a,b,c,d){var e,f,g,h,k,l;return I(function(m){if(1==m.g)return e=Db(b,[c]),f=lf(e,a.g.retryParameters),f.method=d,g=a.h.networkingEngine.request(4,f),ff(a.A,g),u(m,g.promise,2);h=m.h;if("HEAD"==d){if(!h.headers||!h.headers.date)return m["return"](0);k=h.headers.date}else k=Rc(h.data);l=Date.parse(k);return isNaN(l)?m["return"](0):m["return"](l-Date.now())})}
663
+ parseInt(c,16);if(!b)continue;for(a=0;b;)b&1&&++a,b>>=1;return a;case "urn:mpeg:mpegB:cicp:ChannelConfiguration":if(b=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(c=parseInt(c,10))&&0<c&&c<b.length)return b[c]}}return null}function Zp(a){var b=a.Tc?1:0;b+=a.Db?1:0;b+=a.Uc?1:0;if(0==b)return a.contentType==Ib||"application"==a.contentType?!0:!1;1!=b&&(a.Tc&&(a.Db=null),a.Uc=null);return!0}
664
+ function bq(a,b,c,d){var e,f,g,h,k,l;return I(function(m){if(1==m.g)return e=Db(b,[c]),f=mf(e,a.g.retryParameters),f.method=d,g=a.h.networkingEngine.request(4,f),gf(a.A,g),u(m,g.promise,2);h=m.h;if("HEAD"==d){if(!h.headers||!h.headers.date)return m["return"](0);k=h.headers.date}else k=ed(h.data);l=Date.parse(k);return isNaN(l)?m["return"](0):m["return"](l-Date.now())})}
660
665
  function Rp(a,b,c){var d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:d=c.map(function(p){return{scheme:p.getAttribute("schemeIdUri"),value:p.getAttribute("value")}}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=t(d),g=f.next();case 2:if(g.done){n.D(4);break}h=g.value;A(n,5);k=h.scheme;l=h.value;switch(k){case "urn:mpeg:dash:utc:http-head:2014":case "urn:mpeg:dash:utc:http-head:2012":return n.D(7);case "urn:mpeg:dash:utc:http-xsdate:2014":case "urn:mpeg:dash:utc:http-iso:2014":case "urn:mpeg:dash:utc:http-xsdate:2012":case "urn:mpeg:dash:utc:http-iso:2012":return n.D(8);
661
666
  case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),n["return"](isNaN(m)?0:m-Date.now());case "urn:mpeg:dash:utc:http-ntp:2014":case "urn:mpeg:dash:utc:ntp:2014":case "urn:mpeg:dash:utc:sntp:2014":Ua("NTP UTCTiming scheme is not supported");break;default:Ua("Unrecognized scheme in UTCTiming element",k)}n.D(9);break;case 7:return u(n,bq(a,b,l,"HEAD"),10);case 10:return n["return"](n.h);case 8:return u(n,bq(a,b,l,"GET"),11);case 11:return n["return"](n.h);
662
- case 9:wa(n,3);break;case 5:F(n);case 3:g=f.next();n.D(2);break;case 4:return Ua("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n["return"](0)}})}
667
+ case 9:va(n,3);break;case 5:F(n);case 3:g=f.next();n.D(2);break;case 4:return Ua("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n["return"](0)}})}
663
668
  function Up(a,b,c,d,e){var f=d.getAttribute("schemeIdUri")||"",g=d.getAttribute("value")||"",h=$n(d,"timescale",go)||1;d=t(Sn(d,"Event"));for(var k=d.next();!k.done;k=d.next()){k=k.value;var l=$n(k,"presentationTime",go)||0,m=$n(k,"duration",go)||0;l=l/h+b;m=l+m/h;null!=c&&(l=Math.min(l,b+c),m=Math.min(m,b+c));m<e||(k={schemeIdUri:f,value:g,startTime:l,endTime:m,id:k.getAttribute("id")||"",eventElement:k},a.h.onTimelineRegionAdded(k))}}
664
- function $p(a,b,c,d){var e,f,g,h,k;return I(function(l){if(1==l.g)return e=rf,f=qj(b,c,d,a.g.retryParameters),g=a.h.networkingEngine,h=g.request(e,f),ff(a.A,h),u(l,h.promise,2);k=l.h;return l["return"](k.data)})}function Yp(a,b){return pd(jd(a,b))?Ib:a.split("/")[0]}J("shaka.dash.DashParser",Kp);tg.mpd=function(){return new Kp};rg["application/dash+xml"]=function(){return new Kp};rg["video/vnd.mpeg.dash.mpd"]=function(){return new Kp};function cq(a,b,c,d){this.h=a;this.type=b;this.g=c;this.segments=d||null}function dq(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}dq.prototype.toString=function(){function a(d){return d.name+"="+(isNaN(Number(d.value))?'"'+d.value+'"':d.value)}var b="#"+this.name,c=this.g?this.g.map(a):[];this.value&&c.unshift(this.value);0<c.length&&(b+=":"+c.join(","));return b};
665
- dq.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function U(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function eq(a,b){var c=a.getAttribute(b);if(!c)throw new O(2,4,4023,b);return c.value}function fq(a,b,c){c=void 0===c?[]:c;this.i=b;this.h=a;this.g=c}function gq(a,b){this.name=a;this.value=b};function hq(a,b){return a.filter(function(c){return c.name==b})}function iq(a,b){return a.filter(function(c){return eq(c,"TYPE")==b})}function jq(a,b){var c=hq(a,b);return c.length?c[0]:null}function kq(a){var b=0;b=void 0===b?0:b;return(a=jq(a,"EXT-X-MEDIA-SEQUENCE"))?Number(a.value):b};function lq(a){this.h=a;this.g=0}function mq(a){nq(a,/[ \t]+/gm)}function nq(a,b){b.lastIndex=a.g;var c=b.exec(a.h);c=null==c?null:{position:c.index,length:c[0].length,results:c};if(a.g==a.h.length||null==c||c.position!=a.g)return null;a.g+=c.length;return c.results}function oq(a){return a.g==a.h.length?null:(a=nq(a,/[^ \t\n]*/gm))?a[0]:null};function pq(){this.g=0}
666
- function qq(a,b,c){b=Rc(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var d=b.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(d[0]))throw new O(2,4,4015);b=0;for(var e=!0,f=t(d),g=f.next();!g.done;g=f.next())if(g=g.value,/^#(?!EXT)/m.test(g)||e)e=!1;else if(g=rq(a,g),--a.g,sq.includes(g.name)){b=1;break}else"EXT-X-STREAM-INF"==g.name&&(e=!0);f=[];e=!0;for(g=0;g<d.length;g++){var h=d[g],k=d[g+1];if(/^#(?!EXT)/m.test(h)||e)e=!1;else{h=rq(a,h);if(tq.includes(h.name)){if(1!=b)throw new O(2,4,4017);
669
+ function $p(a,b,c,d){var e,f,g,h,k;return I(function(l){if(1==l.g)return e=sf,f=qj(b,c,d,a.g.retryParameters),g=a.h.networkingEngine,h=g.request(e,f),gf(a.A,h),u(l,h.promise,2);k=l.h;return l["return"](k.data)})}function Yp(a,b){return Gd(xd(a,b))?Ib:a.split("/")[0]}J("shaka.dash.DashParser",Kp);ug.mpd=function(){return new Kp};sg["application/dash+xml"]=function(){return new Kp};sg["video/vnd.mpeg.dash.mpd"]=function(){return new Kp};function cq(a,b,c,d){this.h=a;this.type=b;this.g=c;this.segments=d||null}function dq(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}dq.prototype.toString=function(){function a(d){return d.name+"="+(isNaN(Number(d.value))?'"'+d.value+'"':d.value)}var b="#"+this.name,c=this.g?this.g.map(a):[];this.value&&c.unshift(this.value);0<c.length&&(b+=":"+c.join(","));return b};
670
+ dq.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function U(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function eq(a,b){var c=a.getAttribute(b);if(!c)throw new O(2,4,4023,b);return c.value}function fq(a,b,c){c=void 0===c?[]:c;this.h=b;this.i=a;this.g=c}function gq(a,b){this.name=a;this.value=b};function hq(a,b){return a.filter(function(c){return c.name==b})}function iq(a,b){return a.filter(function(c){return eq(c,"TYPE")==b})}function jq(a,b){var c=hq(a,b);return c.length?c[0]:null}function kq(a){var b=0;b=void 0===b?0:b;return(a=jq(a,"EXT-X-MEDIA-SEQUENCE"))?Number(a.value):b};function lq(a){this.h=a;this.g=0}function mq(a){nq(a,/[ \t]+/gm)}function nq(a,b){b.lastIndex=a.g;var c=b.exec(a.h);c=null==c?null:{position:c.index,length:c[0].length,results:c};if(a.g==a.h.length||null==c||c.position!=a.g)return null;a.g+=c.length;return c.results}function oq(a){return a.g==a.h.length?null:(a=nq(a,/[^ \t\n]*/gm))?a[0]:null};function pq(){this.g=0}
671
+ function qq(a,b,c){b=ed(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var d=b.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(d[0]))throw new O(2,4,4015);b=0;for(var e=!0,f=t(d),g=f.next();!g.done;g=f.next())if(g=g.value,/^#(?!EXT)/m.test(g)||e)e=!1;else if(g=rq(a,g),--a.g,sq.includes(g.name)){b=1;break}else"EXT-X-STREAM-INF"==g.name&&(e=!0);f=[];e=!0;for(g=0;g<d.length;g++){var h=d[g],k=d[g+1];if(/^#(?!EXT)/m.test(h)||e)e=!1;else{h=rq(a,h);if(tq.includes(h.name)){if(1!=b)throw new O(2,4,4017);
667
672
  var l=d.splice(g,d.length-g);d=c;e=[];g=[];k=[];h=null;l=t(l);for(var m=l.next();!m.done;m=l.next())m=m.value,/^(#EXT)/.test(m)?(m=rq(a,m),sq.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"==U(m,"TYPE")?k.push(m):"MAP"==U(m,"TYPE")&&(m.name="EXT-X-MAP",h=m):g.push(m)):/^#(?!EXT)/m.test(m)||(m=Db([d],[m.trim()])[0],h&&g.push(h),e.push(new fq(m,g,k)),g=[],k=[]);k.length&&(h&&g.push(h),e.push(new fq("",g,k)));return new cq(c,b,f,e)}f.push(h);
668
673
  "EXT-X-STREAM-INF"==h.name&&(h.g.push(new gq("URI",k)),e=!0)}}return new cq(c,b,f)}function rq(a,b){var c=a.g++,d=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!d)throw new O(2,4,4016,b);var e=d[1],f=d[2];d=[];var g;if(f){f=new lq(f);var h;(h=nq(f,/^([^,=]+)(?:,|$)/g))&&(g=h[1]);for(var k=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;h=nq(f,k);)d.push(new gq(h[1],h[2]||h[3])),mq(f)}return new dq(c,e,d,g)}
669
- var sq="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(" "),tq="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function uq(){}function vq(a){try{var b=wq(a);return Ze({uri:a,Cf:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return Xe(c)}}function wq(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new O(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new O(2,1,1004,a);var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"==b[b.length-1]&&(d=!0,b.pop());var e;d?e=$c(a):e=Vc(a);return{data:e,contentType:c}}
670
- J("shaka.net.DataUriPlugin",uq);uq.parse=vq;hf("data",vq);function xq(){var a=this;this.h=this.j=null;this.ua=1;this.A=new Map;this.C=new Map;this.ha=new Set;this.g=new Map;this.i=null;this.M="";this.X=new pq;this.ba=0;this.I=null;this.F=new P(function(){yq(a)});this.m=zq;this.J=null;this.va=0;this.H=Infinity;this.S=this.aa=0;this.G=new ef;this.P=[];this.K=new Map;this.za=!1;this.B=new Map;this.$=new Map;this.l=!1}r=xq.prototype;r.configure=function(a){this.h=a};
671
- r.start=function(a,b){var c=this,d,e;return I(function(f){if(1==f.g)return c.j=b,c.l=b.isLowLatencyMode(),u(f,Aq(c,a),2);if(3!=f.g)return d=f.h,c.M=d.uri,u(f,Bq(c,d.data,a),3);e=c.ba;0<e&&c.F.T(e);return f["return"](c.J)})};r.stop=function(){this.F&&(this.F.stop(),this.F=null);var a=[];this.G&&(a.push(this.G.destroy()),this.G=null);this.h=this.j=null;this.ha.clear();this.J=null;this.g.clear();this.C.clear();this.B.clear();this.A.clear();return Promise.all(a)};
674
+ var sq="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(" "),tq="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function uq(){}function vq(a){try{var b=wq(a);return $e({uri:a,Cf:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return Ye(c)}}function wq(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new O(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new O(2,1,1004,a);var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"==b[b.length-1]&&(d=!0,b.pop());var e;d?e=nd(a):e=id(a);return{data:e,contentType:c}}
675
+ J("shaka.net.DataUriPlugin",uq);uq.parse=vq;jf("data",vq);function xq(){var a=this;this.h=this.j=null;this.ya=1;this.A=new Map;this.C=new Map;this.ma=new Set;this.g=new Map;this.i=null;this.K="";this.$=new pq;this.ea=0;this.S=!1;this.N=null;this.F=new P(function(){yq(a)});this.m=zq;this.I=null;this.aa=0;this.H=Infinity;this.X=this.ba=0;this.G=new ff;this.P=[];this.J=new Map;this.za=!1;this.B=new Map;this.ua=new Map;this.l=!1}r=xq.prototype;r.configure=function(a){this.h=a};
676
+ r.start=function(a,b){var c=this,d,e;return I(function(f){if(1==f.g)return c.j=b,c.l=b.isLowLatencyMode(),u(f,Aq(c,a),2);if(3!=f.g)return d=f.h,c.K=d.uri,u(f,Bq(c,d.data,a),3);e=c.ea;0<e&&c.F.T(e);return f["return"](c.I)})};r.stop=function(){this.F&&(this.F.stop(),this.F=null);var a=[];this.G&&(a.push(this.G.destroy()),this.G=null);this.h=this.j=null;this.ma.clear();this.I=null;this.g.clear();this.C.clear();this.B.clear();this.A.clear();return Promise.all(a)};
672
677
  r.update=function(){var a=this,b,c,d;return I(function(e){if(1==e.g){if(a.m==zq)return e["return"]();b=[];c=Array.from(a.g.values());return c.length?u(e,Cq(a,c[0]),2):e.D(2)}for(d=1;d<c.length;d++)b.push(Cq(a,c[d]));return u(e,Promise.all(b),0)})};
673
- function Cq(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,x;return I(function(w){if(1==w.g)return c=Dq,d=b.Uf,e=new lb(d),a.l&&b.Zf&&ob(e,new rb("_HLS_skip=YES")),u(w,Aq(a,e.toString()),2);f=w.h;g=qq(a.X,f.data,f.uri);if(1!=g.type)throw new O(2,4,4017);h=hq(g.g,"EXT-X-DEFINE");k=Eq(a,h);l=b.stream;m=Fq(a,g,l.type,b.yf,k);l.segmentIndex.jc(m,a.i.qb());m.length&&(n=kq(g.g),p=b.yf.get(n),l.segmentIndex.Ib(p));q=m[m.length-1];if(x=jq(g.g,"EXT-X-ENDLIST"))Gq(a,c.Tf),a.i.eb(q.endTime);z(w)})}r.onExpirationUpdated=function(){};
674
- function Hq(a){if(null==a.I){for(var b=new Set,c=Infinity,d=t(a.g.values()),e=d.next();!e.done;e=d.next())(e=e.value.stream.segmentIndex)&&Zi(e,function(g){null!=g.ea&&(c=Math.min(c,g.ea),b.add(g))});if(0<b.size)for(a.I=-c,d=t(b),e=d.next();!e.done;e=d.next()){e=e.value;e.ea+=a.I;e=t(e.Ka);for(var f=e.next();!f.done;f=e.next())f.value.ea+=a.I}}}
675
- function Bq(a,b,c){var d,e,f,g,h,k,l,m,n,p,q,x,w,v,y,D,C,B,G,E,H,L,K,N,V,Y,ja,ha,pa,Oa,Fa,Pa,Ka,Lb,Cd,Qc,Dd,Ed,qb,Fd,rc,De;return I(function(ab){switch(ab.g){case 1:d=qq(a.X,b,a.M);e=hq(d.g,"EXT-X-DEFINE");Iq(a,e);f=[];g=[];h=[];if(1==d.type)return G=a.h.hls.mediaPlaylistFullMimeType,E=G.split(";")[0],H=E.split("/")[0],L=nd(G),K=new Map,u(ab,Jq(a,d,c,c,L,H,"",!0,"Media Playlist",null,K,null,!1,!1,E),8);k=hq(d.g,"EXT-X-MEDIA");l=hq(d.g,"EXT-X-STREAM-INF");m=hq(d.g,"EXT-X-IMAGE-STREAM-INF");Kq(a,l);
676
- n=hq(d.g,"EXT-X-SESSION-DATA");p=t(n);for(q=p.next();!q.done;q=p.next())if(x=q.value,w=U(x,"DATA-ID"),v=U(x,"URI"),y=U(x,"LANGUAGE"),D=U(x,"VALUE"),C=(new Map).set("id",w),v&&C.set("uri",Db([a.M],[v])[0]),y&&C.set("language",y),D&&C.set("value",D),B=new M("sessiondata",C),a.j)a.j.onEvent(B);return u(ab,Lq(a,k),4);case 4:return Mq(a,k),u(ab,Nq(a,l),5);case 5:return f=ab.h,u(ab,Oq(a,k),6);case 6:return g=ab.h,u(ab,Pq(a,m),7);case 7:h=ab.h;ab.D(3);break;case 8:N=ab.h,a.g.set(c,N),f.push({id:0,language:"und",
677
- 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.j)throw new O(2,7,7001);Hq(a);if(a.za&&0==f.length)throw new O(2,4,4034);Y=V=Infinity;ja=t(a.g.values());for(ha=ja.next();!ha.done;ha=ja.next())pa=ha.value,V=Math.min(V,pa.zf),"text"!=pa.stream.type&&(Y=Math.min(Y,pa.Tg-pa.zf));a.m!=zq?(a.i=new Q(0,a.h.defaultPresentationDelay?a.h.defaultPresentationDelay:a.S?a.S:3*a.va),
678
- a.i.Vc(!1)):(a.i=new Q(null,0),a.i.Vc(!0));Qq(a);if(a.m!=zq)a.ba=a.H,Oa=Dq,a.m==Oa.We&&(Fa=a.i.Bd,isNaN(a.h.availabilityWindowOverride)||(Fa=a.h.availabilityWindowOverride),a.i.Fe(Fa));else for(a.i.eb(Y),a.i.offset(-V),Pa=t(a.g.values()),ha=Pa.next();!ha.done;ha=Pa.next())Ka=ha.value,Ka.stream.segmentIndex.offset(-V),Ka.stream.segmentIndex.Ab(0,Y);a.P=[];Lb=[];Cd=t(f);for(Qc=Cd.next();!Qc.done;Qc=Cd.next())for(Dd=Qc.value,Ed=t([Dd.video,Dd.audio]),qb=Ed.next();!qb.done;qb=Ed.next())(Fd=qb.value)&&
679
- Lb.push(Fd);return u(ab,Promise.all(Lb.map(function(jg){return I(function(kg){return u(kg,jg.createSegmentIndex(),0)})})),9);case 9:rc=t(Lb);for(qb=rc.next();!qb.done;qb=rc.next())De=qb.value,a.P.push(De.segmentIndex.O);Qq(a);a.J={presentationTimeline:a.i,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:!0};a.j.makeTextStreamsForClosedCaptions(a.J);z(ab)}})}
680
- function Iq(a,b){for(var c=t(b),d=c.next();!d.done;d=c.next()){var e=d.value;d=U(e,"NAME");e=U(e,"VALUE");d&&e&&(a.A.has(d)||a.A.set(d,e))}}function Eq(a,b){for(var c=new Map,d=t(b),e=d.next();!e.done;e=d.next()){var f=e.value;e=U(f,"NAME");var g=U(f,"VALUE");f=U(f,"IMPORT");e&&g&&c.set(e,g);f&&(e=a.A.get(f))&&c.set(f,e)}return c}
681
- function Kq(a,b){for(var c=t(b),d=c.next();!d.done;d=c.next()){var e=d.value,f=U(e,"AUDIO");d=U(e,"VIDEO");var g=U(e,"SUBTITLES");e=Rq(a,e);if(g){var h=Gb(Ib,e);a.B.set(g,h);ec(e,h)}f&&(g=Fb("audio",e),a.B.set(f,g));d&&(f=Fb("video",e),a.B.set(d,f))}}
682
- function Oq(a,b){var c,d,e,f,g,h,k,l,m,n,p,q;return I(function(x){if(1==x.g)return c=iq(b,"SUBTITLES"),d=c.map(function(w){var v,y,D;return I(function(C){if(1==C.g){if(v=a.h.disableText)return C["return"](null);A(C,2);return u(C,Sq(a,w),4)}if(2!=C.g)return y=C.h,C["return"](y.stream);D=F(C);if(a.h.hls.ignoreTextStreamFailures)return C["return"](null);throw D;})}),u(x,Promise.all(d),2);e=x.h;f=t(c);for(g=f.next();!g.done;g=f.next())if(h=g.value,k=eq(h,"GROUP-ID"),l=a.B.get(k))if(m=a.C.get(k))for(n=
683
- t(m),p=n.next();!p.done;p=n.next())q=p.value,q.stream.codecs=l;return x["return"](e.filter(function(w){return w}))})}
684
- function Pq(a,b){var c,d;return I(function(e){if(1==e.g)return c=b.map(function(f){var g,h,k;return I(function(l){if(1==l.g){if(g=a.h.disableThumbnails)return l["return"](null);A(l,2);return u(l,Tq(a,f),4)}if(2!=l.g)return h=l.h,l["return"](h.stream);k=F(l);if(a.h.hls.ignoreImageStreamFailures)return l["return"](null);throw k;})}),u(e,Promise.all(c),2);d=e.h;return e["return"](d.filter(function(f){return f}))})}
685
- function Lq(a,b){var c;return I(function(d){if(1==d.g)return b=b.filter(function(e){var f=U(e,"URI")||"";return"SUBTITLES"!=U(e,"TYPE")&&""!=f}),b.length?u(d,Sq(a,b[0]),2):d.D(2);c=b.slice(1).map(function(e){return Sq(a,e)});return u(d,Promise.all(c),0)})}
686
- function Nq(a,b){var c,d,e;return I(function(f){if(1==f.g)return c=b.map(function(g){var h,k,l,m,n,p,q,x;return I(function(w){if(1==w.g)return h=U(g,"FRAME-RATE"),k=Number(U(g,"AVERAGE-BANDWIDTH"))||Number(eq(g,"BANDWIDTH")),l=U(g,"RESOLUTION"),m=t(l?l.split("x"):[null,null]),n=m.next().value,p=m.next().value,q=U(g,"VIDEO-RANGE"),u(w,Uq(a,g),2);if(x=w.h){for(var v=w["return"],y=x.audio,D=x.video,C=t(D),B=C.next();!B.done;B=C.next())if(B=B.value.stream)B.width=Number(n)||void 0,B.height=Number(p)||
687
- void 0,B.frameRate=Number(h)||void 0,B.hdr=q||void 0;C=a.h.disableAudio;if(!y.length||C)y=[null];C=a.h.disableVideo;if(!D.length||C)D=[null];C=[];y=t(y);for(B=y.next();!B.done;B=y.next()){B=B.value;for(var G=t(D),E=G.next();!E.done;E=G.next()){var H=E.value;E=B?B.stream:null;var L=H?H.stream:null,K=B?B.stream.drmInfos:null,N=H?H.stream.drmInfos:null;H=(H?H.Re:"")+" - "+(B?B.Re:"");E&&L&&K.length&&N.length&&!(0<ng(K,N).length)||a.ha.has(H)||(E={id:a.ua++,language:E?E.language:"und",primary:!!E&&E.primary||
688
- !!L&&L.primary,audio:E,video:L,bandwidth:k,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},C.push(E),a.ha.add(H))}}w=v.call(w,C)}else w=w["return"]([]);return w})}),u(f,Promise.all(c),2);d=f.h;e=d.reduce(Ab,[]);e=e.filter(function(g){return null!=g});return f["return"](e)})}
689
- function Uq(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,x,w;return I(function(v){if(1==v.g)return c=Jb,d=Rq(a,b),e=U(b,"AUDIO"),f=U(b,"VIDEO"),h=(g=e||f)&&a.C.has(g)?a.C.get(g):[],k={audio:e?h:[],video:f?h:[]},m=!1,n=eq(b,"URI"),p=k.audio.find(function(y){return y&&y.Re==n}),q=Gb(c.Oa,d),(x=Gb(c.Hb,d))&&!q?l=c.Hb:!h.length&&x&&q?(l=c.Oa,d=[[q,x].join()]):k.audio.length&&p?(l=c.Hb,m=!0):l=k.video.length?c.Hb:c.Oa,m?v.D(2):u(v,Vq(a,b,d,l),3);2!=v.g&&(w=v.h);if(w)k[w.stream.type]=[w];else if(null===w)return v["return"](null);
690
- Wq(k);return v["return"](k)})}function Rq(a,b){var c=[];a.h.disableVideo||c.push(a.h.hls.defaultVideoCodec);a.h.disableAudio||c.push(a.h.hls.defaultAudioCodec);var d=U(b,"CODECS",c.join(",")).split(/\s*,\s*/);c=new Set;var e=[];d=t(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=md(f)[0];c.has(g)||(e.push(f),c.add(g))}return e}function Xq(a){a=U(a,"LANGUAGE")||"und";return Nb(a)}
691
- function Wq(a){a=t(a.audio.concat(a.video));for(var b=a.next();!b.done;b=a.next())if(b=b.value){var c=b.stream.codecs.split(",");c=c.filter(function(d){return"mp4a.40.34"!=d});b.stream.codecs=c.join(",")}}function Mq(a,b){var c=iq(b,"CLOSED-CAPTIONS");c=t(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;d=Xq(e);var f=eq(e,"GROUP-ID");e=eq(e,"INSTREAM-ID");a.K.get(f)||a.K.set(f,new Map);a.K.get(f).set(e,d)}}
692
- function Sq(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,x,w;return I(function(v){if(1==v.g){c=eq(b,"GROUP-ID");d="";var y=eq(b,"TYPE").toLowerCase();"subtitles"==y&&(y=Ib);e=y;e!=Ib&&c&&a.B.has(c)&&(d=a.B.get(c));f=Yq(eq(b,"URI"),a.A);if(a.g.has(f))return v["return"](a.g.get(f));g=Xq(b);h=U(b,"NAME");k=U(b,"DEFAULT");l="YES"==k;"audio"==e?y=(y=U(b,"CHANNELS"))?parseInt(y.split("/")[0],10):null:y=null;m=y;"audio"==e?y=(y=U(b,"CHANNELS"))?y.includes("/JOC"):!1:y=!1;n=y;p=U(b,"CHARACTERISTICS");q=U(b,"FORCED");
693
- x="YES"==q;return u(v,Zq(a,f,d,e,g,l,h,m,null,p,x,n),2)}w=v.h;a.C.has(c)?a.C.get(c).push(w):a.C.set(c,[w]);if(null==w)return v["return"](null);if(a.g.has(f))return v["return"](a.g.get(f));a.g.set(f,w);return v["return"](w)})}
694
- function Tq(a,b){var c,d,e,f,g,h,k,l,m,n;return I(function(p){if(1==p.g){c=Yq(eq(b,"URI"),a.A);d=U(b,"CODECS","jpeg")||"";if(a.g.has(c))return p["return"](a.g.get(c));e=Xq(b);f=U(b,"NAME");g=U(b,"CHARACTERISTICS");return u(p,Zq(a,c,d,"image",e,!1,f,null,null,g,!1,!1),2)}h=p.h;if(null==h)return p["return"](null);if(a.g.has(c))return p["return"](a.g.get(c));if(k=U(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=
678
+ function Cq(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,w;return I(function(y){if(1==y.g)return c=Dq,d=b.Uf,e=new lb(d),a.l&&b.Zf&&ob(e,new rb("_HLS_skip=YES")),u(y,Aq(a,e.toString()),2);f=y.h;g=qq(a.$,f.data,f.uri);if(1!=g.type)throw new O(2,4,4017);h=hq(g.g,"EXT-X-DEFINE");k=Eq(a,h);l=b.stream;m=Fq(a,g,l.type,b.Lc,k);l.segmentIndex.hc(m,a.i.ob());m.length&&(n=kq(g.g),p=b.Lc.get(n),l.segmentIndex.Gb(p));q=m[m.length-1];if(w=jq(g.g,"EXT-X-ENDLIST"))Gq(a,c.Tf),a.i.bb(q.endTime);z(y)})}r.onExpirationUpdated=function(){};
679
+ function Hq(a){if(!a.S){for(var b=-1,c=new Map,d=t(a.g.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=t(e.Lc),h=g.next();!h.done;h=g.next()){h=t(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.N=b;b=t(a.g.values());for(e=b.next();!e.done;e=b.next())if(d=e.value,e=d.stream.segmentIndex)f=a.N-c.get(d),e.M.splice(0,f),(e=e.M[0]||null)&&Iq(d,-e.startTime);a.S=!0}}}
680
+ function Jq(a){if(!a.S){for(var b=Infinity,c=t(a.g.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){c=t(a.g.values());for(d=c.next();!d.done;d=c.next()){d=d.value;var e=d.stream.segmentIndex;null!=e&&(e=e.M[0]||null,null==e.g?Ta("Missing EXT-X-PROGRAM-DATE-TIME for stream",d.Hd,"Expect AV sync issues!"):Iq(d,e.g-b-e.startTime))}a.S=!0}}}
681
+ function Iq(a,b){a.stream.segmentIndex.offset(b);a.ke+=b;for(var c=t(a.Lc),d=c.next();!d.done;d=c.next()){var e=t(d.value);d=e.next().value;e=e.next().value;a.Lc.set(d,e+b)}}
682
+ function Bq(a,b,c){var d,e,f,g,h,k,l,m,n,p,q,w,y,x,v,D,C,B,G,E,H,N,K,M,V,Z,ha,ja,wa,Ma,Fa,Sa,Ga,rc,Sc,Cd,Dd,qb,Ed,sc,Ee;return I(function(ab){switch(ab.g){case 1:d=qq(a.$,b,a.K);e=hq(d.g,"EXT-X-DEFINE");Kq(a,e);f=[];g=[];h=[];if(1==d.type)return G=a.h.hls.mediaPlaylistFullMimeType,E=G.split(";")[0],H=E.split("/")[0],N=Bd(G),K=new Map,u(ab,Lq(a,d,c,c,N,H,"",!0,"Media Playlist",null,K,null,!1,!1,E),8);k=hq(d.g,"EXT-X-MEDIA");l=hq(d.g,"EXT-X-STREAM-INF");m=hq(d.g,"EXT-X-IMAGE-STREAM-INF");Mq(a,l);n=
683
+ hq(d.g,"EXT-X-SESSION-DATA");p=t(n);for(q=p.next();!q.done;q=p.next())if(w=q.value,y=U(w,"DATA-ID"),x=U(w,"URI"),v=U(w,"LANGUAGE"),D=U(w,"VALUE"),C=(new Map).set("id",y),x&&C.set("uri",Db([a.K],[x])[0]),v&&C.set("language",v),D&&C.set("value",D),B=new L("sessiondata",C),a.j)a.j.onEvent(B);return u(ab,Nq(a,k),4);case 4:return Oq(a,k),u(ab,Pq(a,l),5);case 5:return f=ab.h,u(ab,Qq(a,k),6);case 6:return g=ab.h,u(ab,Rq(a,m),7);case 7:h=ab.h;ab.D(3);break;case 8:M=ab.h,a.g.set(c,M),f.push({id:0,language:"und",
684
+ disabledUntilTime:0,primary:!0,audio:"audio"==H?M.stream:null,video:"video"==H?M.stream:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.j)throw new O(2,7,7001);a.h.hls.ignoreManifestProgramDateTime?Hq(a):Jq(a);if(a.za&&0==f.length)throw new O(2,4,4034);V=Infinity;Z=t(a.g.values());for(ha=Z.next();!ha.done;ha=Z.next())ja=ha.value,"text"!=ja.stream.type&&(V=Math.min(V,ja.ke));a.m!=zq?(a.i=new Q(0,a.h.defaultPresentationDelay?a.h.defaultPresentationDelay:
685
+ a.X?a.X:3*a.aa),a.i.Vc(!1)):(a.i=new Q(null,0),a.i.Vc(!0));if(a.m!=zq)a.ea=a.H,wa=Dq,a.m==wa.Ze&&(Ma=a.i.Bd,isNaN(a.h.availabilityWindowOverride)||(Ma=a.h.availabilityWindowOverride),a.i.Je(Ma));else for(a.i.bb(V),Fa=t(a.g.values()),ha=Fa.next();!ha.done;ha=Fa.next())Sa=ha.value,Sa.stream.segmentIndex.yb(0,V);a.P=[];Ga=[];rc=t(f);for(Sc=rc.next();!Sc.done;Sc=rc.next())for(Cd=Sc.value,Dd=t([Cd.video,Cd.audio]),qb=Dd.next();!qb.done;qb=Dd.next())(Ed=qb.value)&&Ga.push(Ed);return u(ab,Promise.all(Ga.map(function(jg){return I(function(kg){return u(kg,
686
+ jg.createSegmentIndex(),0)})})),9);case 9:sc=t(Ga);for(qb=sc.next();!qb.done;qb=sc.next())Ee=qb.value,a.P.push(Ee.segmentIndex.M);Sq(a);a.i.je();a.I={presentationTimeline:a.i,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:!0};a.j.makeTextStreamsForClosedCaptions(a.I);z(ab)}})}function Kq(a,b){for(var c=t(b),d=c.next();!d.done;d=c.next()){var e=d.value;d=U(e,"NAME");e=U(e,"VALUE");d&&e&&(a.A.has(d)||a.A.set(d,e))}}
687
+ function Eq(a,b){for(var c=new Map,d=t(b),e=d.next();!e.done;e=d.next()){var f=e.value;e=U(f,"NAME");var g=U(f,"VALUE");f=U(f,"IMPORT");e&&g&&c.set(e,g);f&&(e=a.A.get(f))&&c.set(f,e)}return c}function Mq(a,b){for(var c=t(b),d=c.next();!d.done;d=c.next()){var e=d.value,f=U(e,"AUDIO");d=U(e,"VIDEO");var g=U(e,"SUBTITLES");e=Tq(a,e);if(g){var h=Gb(Ib,e);a.B.set(g,h);dc(e,h)}f&&(g=Fb("audio",e),a.B.set(f,g));d&&(f=Fb("video",e),a.B.set(d,f))}}
688
+ function Qq(a,b){var c,d,e,f,g,h,k,l,m,n,p,q;return I(function(w){if(1==w.g)return c=iq(b,"SUBTITLES"),d=c.map(function(y){var x,v,D;return I(function(C){if(1==C.g){if(x=a.h.disableText)return C["return"](null);A(C,2);return u(C,Uq(a,y),4)}if(2!=C.g)return v=C.h,C["return"](v.stream);D=F(C);if(a.h.hls.ignoreTextStreamFailures)return C["return"](null);throw D;})}),u(w,Promise.all(d),2);e=w.h;f=t(c);for(g=f.next();!g.done;g=f.next())if(h=g.value,k=eq(h,"GROUP-ID"),l=a.B.get(k))if(m=a.C.get(k))for(n=
689
+ t(m),p=n.next();!p.done;p=n.next())q=p.value,q.stream.codecs=l;return w["return"](e.filter(function(y){return y}))})}
690
+ function Rq(a,b){var c,d;return I(function(e){if(1==e.g)return c=b.map(function(f){var g,h,k;return I(function(l){if(1==l.g){if(g=a.h.disableThumbnails)return l["return"](null);A(l,2);return u(l,Vq(a,f),4)}if(2!=l.g)return h=l.h,l["return"](h.stream);k=F(l);if(a.h.hls.ignoreImageStreamFailures)return l["return"](null);throw k;})}),u(e,Promise.all(c),2);d=e.h;return e["return"](d.filter(function(f){return f}))})}
691
+ function Nq(a,b){var c;return I(function(d){b=b.filter(function(e){var f=U(e,"URI")||"";return"SUBTITLES"!=U(e,"TYPE")&&""!=f});c=b.map(function(e){return Uq(a,e)});return u(d,Promise.all(c),0)})}
692
+ function Pq(a,b){var c,d,e;return I(function(f){if(1==f.g)return c=b.map(function(g){var h,k,l,m,n,p,q,w;return I(function(y){if(1==y.g)return h=U(g,"FRAME-RATE"),k=Number(U(g,"AVERAGE-BANDWIDTH"))||Number(eq(g,"BANDWIDTH")),l=U(g,"RESOLUTION"),m=t(l?l.split("x"):[null,null]),n=m.next().value,p=m.next().value,q=U(g,"VIDEO-RANGE"),u(y,Wq(a,g),2);if(w=y.h){for(var x=y["return"],v=w.audio,D=w.video,C=t(D),B=C.next();!B.done;B=C.next())if(B=B.value.stream)B.width=Number(n)||void 0,B.height=Number(p)||
693
+ void 0,B.frameRate=Number(h)||void 0,B.hdr=q||void 0;C=a.h.disableAudio;if(!v.length||C)v=[null];C=a.h.disableVideo;if(!D.length||C)D=[null];C=[];v=t(v);for(B=v.next();!B.done;B=v.next()){B=B.value;for(var G=t(D),E=G.next();!E.done;E=G.next()){var H=E.value;E=B?B.stream:null;var N=H?H.stream:null,K=B?B.stream.drmInfos:null,M=H?H.stream.drmInfos:null;H=(H?H.Hd:"")+" - "+(B?B.Hd:"");E&&N&&K.length&&M.length&&!(0<og(K,M).length)||a.ma.has(H)||(E={id:a.ya++,language:E?E.language:"und",primary:!!E&&E.primary||
694
+ !!N&&N.primary,audio:E,video:N,bandwidth:k,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},C.push(E),a.ma.add(H))}}y=x.call(y,C)}else y=y["return"]([]);return y})}),u(f,Promise.all(c),2);d=f.h;e=d.reduce(Ab,[]);e=e.filter(function(g){return null!=g});return f["return"](e)})}
695
+ function Wq(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,w,y;return I(function(x){if(1==x.g)return c=Jb,d=Tq(a,b),e=U(b,"AUDIO"),f=U(b,"VIDEO"),h=(g=e||f)&&a.C.has(g)?a.C.get(g):[],k={audio:e?h:[],video:f?h:[]},m=!1,n=eq(b,"URI"),p=k.audio.find(function(v){return v&&v.Hd==n}),q=Gb(c.Ma,d),(w=Gb(c.Fb,d))&&!q?l=c.Fb:!h.length&&w&&q?(l=c.Ma,d=[[q,w].join()]):k.audio.length&&p?(l=c.Fb,m=!0):l=k.video.length?c.Fb:c.Ma,m?x.D(2):u(x,Xq(a,b,d,l),3);2!=x.g&&(y=x.h);if(y)k[y.stream.type]=[y];else if(null===y)return x["return"](null);
696
+ Yq(k);return x["return"](k)})}function Tq(a,b){var c=[];a.h.disableVideo||c.push(a.h.hls.defaultVideoCodec);a.h.disableAudio||c.push(a.h.hls.defaultAudioCodec);var d=U(b,"CODECS",c.join(",")).split(/\s*,\s*/);c=new Set;var e=[];d=t(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=Ad(f)[0];c.has(g)||(e.push(f),c.add(g))}return e}function Zq(a){a=U(a,"LANGUAGE")||"und";return Mb(a)}
697
+ function Yq(a){a=t(a.audio.concat(a.video));for(var b=a.next();!b.done;b=a.next())if(b=b.value){var c=b.stream.codecs.split(",");c=c.filter(function(d){return"mp4a.40.34"!=d});b.stream.codecs=c.join(",")}}function Oq(a,b){var c=iq(b,"CLOSED-CAPTIONS");c=t(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;d=Zq(e);var f=eq(e,"GROUP-ID");e=eq(e,"INSTREAM-ID");a.J.get(f)||a.J.set(f,new Map);a.J.get(f).set(e,d)}}
698
+ function Uq(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,w,y;return I(function(x){if(1==x.g){c=eq(b,"GROUP-ID");d="";var v=eq(b,"TYPE").toLowerCase();"subtitles"==v&&(v=Ib);e=v;e!=Ib&&c&&a.B.has(c)&&(d=a.B.get(c));f=$q(eq(b,"URI"),a.A);if(a.g.has(f))return x["return"](a.g.get(f));g=Zq(b);h=U(b,"NAME");k=U(b,"DEFAULT");l="YES"==k;"audio"==e?v=(v=U(b,"CHANNELS"))?parseInt(v.split("/")[0],10):null:v=null;m=v;"audio"==e?v=(v=U(b,"CHANNELS"))?v.includes("/JOC"):!1:v=!1;n=v;p=U(b,"CHARACTERISTICS");q=U(b,"FORCED");
699
+ w="YES"==q;return u(x,ar(a,f,d,e,g,l,h,m,null,p,w,n),2)}y=x.h;a.C.has(c)?a.C.get(c).push(y):a.C.set(c,[y]);if(null==y)return x["return"](null);if(a.g.has(f))return x["return"](a.g.get(f));a.g.set(f,y);return x["return"](y)})}
700
+ function Vq(a,b){var c,d,e,f,g,h,k,l,m,n;return I(function(p){if(1==p.g){c=$q(eq(b,"URI"),a.A);d=U(b,"CODECS","jpeg")||"";if(a.g.has(c))return p["return"](a.g.get(c));e=Zq(b);f=U(b,"NAME");g=U(b,"CHARACTERISTICS");return u(p,ar(a,c,d,"image",e,!1,f,null,null,g,!1,!1),2)}h=p.h;if(null==h)return p["return"](null);if(a.g.has(c))return p["return"](a.g.get(c));if(k=U(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=
695
701
  Number(k.split("x")[1])*Number(m.split("x")[1]);if(n=U(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.g.set(c,h);return p["return"](h)})}
696
- function Vq(a,b,c,d){var e,f,g,h;return I(function(k){if(1==k.g){e=Yq(eq(b,"URI"),a.A);if(a.g.has(e))return k["return"](a.g.get(e));var l=U(b,"CLOSED-CAPTIONS");f="video"==d&&l&&"NONE"!=l?a.K.get(l):null;g=Fb(d,c);return u(k,Zq(a,e,g,d,"und",!1,null,null,f,null,!1,!1),2)}h=k.h;if(null==h)return k["return"](null);if(a.g.has(e))return k["return"](a.g.get(e));a.g.set(e,h);return k["return"](h)})}
697
- function Zq(a,b,c,d,e,f,g,h,k,l,m,n){var p,q,x;return I(function(w){if(1==w.g)return p=Db([a.M],[b])[0],u(w,Aq(a,p),2);q=w.h;p=q.uri;x=qq(a.X,q.data,p);return w["return"](Jq(a,x,b,p,c,d,e,f,g,h,k,l,m,n))})}
698
- function Jq(a,b,c,d,e,f,g,h,k,l,m,n,p,q,x){var w,v,y,D,C,B,G,E,H,L,K,N,V,Y,ja,ha,pa,Oa,Fa,Pa,Ka,Lb,Cd,Qc,Dd,Ed,qb,Fd,rc,De,ab,jg,kg;return I(function(sc){if(1==sc.g){if(1!=b.type)throw new O(2,4,4017);w=hq(b.g,"EXT-X-DEFINE");v=Eq(a,w);$q(a,b);return x?sc.D(2):u(sc,ar(a,f,e,b,v),3)}2!=sc.g&&(x=sc.h);y=[];if(b.segments)for(D=t(b.segments),C=D.next();!C.done;C=D.next())B=C.value,G=hq(B.i,"EXT-X-KEY"),y.push.apply(y,ia(G));E=!1;H=[];L=new Set;K=t(y);for(N=K.next();!N.done;N=K.next())if(V=N.value,Y=eq(V,
699
- "METHOD"),"NONE"!=Y){E=!0;if("AES-128"==Y)return a.za=!0,sc["return"](null);ja=eq(V,"KEYFORMAT");if(pa=(ha=br[ja])?ha(V,x):null){if(pa.keyIds)for(Oa=t(pa.keyIds),Fa=Oa.next();!Fa.done;Fa=Oa.next())Pa=Fa.value,L.add(Pa);H.push(pa)}}if(E&&!H.length)throw new O(2,4,4026);wi.includes(x)&&(e="");Ka=new Map;try{Lb=Fq(a,b,f,Ka,v)}catch(No){if(4035==No.code)return Ua("Skipping unsupported HLS stream",x,c),sc["return"](null);throw No;}Cd=Lb[0].startTime;Qc=Lb[Lb.length-1].endTime;Dd=new Yi(Lb);Ed=f==Ib?"subtitle":
700
- void 0;qb=[];if(n)for(Fd=t(n.split(",")),rc=Fd.next();!rc.done;rc=Fd.next())De=rc.value,qb.push(De);jg=(ab=jq(b.g,"EXT-X-SERVER-CONTROL"))?null!=ab.getAttribute("CAN-SKIP-UNTIL"):!1;kg={id:a.ua++,originalId:k,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Dd,mimeType:x,codecs:e,kind:Ed,encrypted:E,drmInfos:H,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,
701
- roles:qb,forced:p,channelsCount:l,audioSamplingRate:null,spatialAudio:q,closedCaptions:m,hdr:void 0,tilesLayout:void 0};return sc["return"]({stream:kg,Re:c,Uf:d,zf:Cd,Tg:Qc,yf:Ka,Zf:jg})})}
702
- function $q(a,b){var c=jq(b.g,"EXT-X-PLAYLIST-TYPE"),d=jq(b.g,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;if(d)Gq(a,zq);else{c?Gq(a,cr):Gq(a,dr);d=jq(b.g,"EXT-X-TARGETDURATION");if(!d)throw new O(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);c=jq(b.g,"EXT-X-PART-INF");a.l&&c?(a.aa=Number(eq(c,"PART-TARGET")),a.H=Math.min(a.aa,a.H),c=jq(b.g,"EXT-X-SERVER-CONTROL"),a.S=c?Number(eq(c,"PART-HOLD-BACK")):0):a.H=Math.min(d,a.H);a.va=Math.max(d,a.va)}}
703
- function er(a,b,c,d){c=jq(c,"EXT-X-MAP");if(!c)return null;var e=eq(c,"URI");d=Yq(Db([b],[e])[0],d);b=[d,U(c,"BYTERANGE","")].join("-");a.$.has(b)||(c=fr(d,c),a.$.set(b,c));return a.$.get(b)}function fr(a,b){var c=0,d=null,e=U(b,"BYTERANGE");e&&(c=e.split("@"),d=Number(c[0]),c=Number(c[1]),d=c+d-1);return new xi(function(){return[a]},c,d)}
704
- function gr(a,b,c,d,e,f,g,h){var k=d.i,l=Yq(d.h,f),m=jq(k,"EXTINF"),n=f=0,p=null;d.g.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 q=null;if(!a.h.hls.ignoreManifestProgramDateTime){var x=jq(k,"EXT-X-PROGRAM-DATE-TIME");x&&x.value&&(q=ao(x.value)+(a.I||0))}x=Ai;jq(k,"EXT-X-GAP")&&(x=2);if(!m){if(0==d.g.length)throw new O(2,4,
705
- 4024,"EXTINF");if(!a.l)return null}var w=[];if(a.l)for(var v={},y=0;y<d.g.length;v={Pd:v.Pd},y++){var D=d.g[y],C=0==y?c:w[w.length-1],B=0==y?e:C.endTime,G=Number(U(D,"DURATION"))||a.aa;if(G){G=B+G;var E=0,H=null;"EXT-X-PRELOAD-HINT"==D.name?E=(E=U(D,"BYTERANGE-START"))?Number(E):0:(E=U(D,"BYTERANGE"),H=t(hr(C,E)),E=H.next().value,H=H.next().value);if(C=U(D,"URI"))v.Pd=Db([g],[C])[0],C=Ai,"YES"==U(D,"GAP")&&(C=2),w.push(new zi(B,G,function(L){return function(){return[L.Pd]}}(v),E,H,b,0,0,Infinity,
706
- [],"",null,null,C))}}m?f=e+Number(m.value.split(",")[0]):f=w[w.length-1].endTime;(a=jq(k,"EXT-X-BYTERANGE"))?(p=t(hr(c,a.value)),n=p.next().value,p=p.next().value):w.length&&(n=w[0].Va,p=w[w.length-1].Ca);c="";a=null;"image"==h&&(c="1x1",h=jq(k,"EXT-X-TILES"))&&(c=eq(h,"LAYOUT"),(h=U(h,"DURATION"))&&(a=Number(h)));return new zi(e,f,function(){return l.length?[l]:[]},n,p,b,0,0,Infinity,w,c,a,q,x)}
707
- function hr(a,b){var c=0,d=null;b&&(c=b.split("@"),d=Number(c[0]),c=c[1]?Number(c[1]):a.Ca+1,d=c+d-1);return[c,d]}function Qq(a){if(a.i){for(var b=t(a.P),c=b.next();!c.done;c=b.next())a.i.kc(c.value);a.P=[]}}
708
- function Fq(a,b,c,d,e){var f=b.segments,g=kq(b.g),h=jq(b.g,"EXT-X-SKIP");h=h?Number(U(h,"SKIPPED-SEGMENTS")):0;var k=g+h;var l=0;a.m!=zq&&d.has(k)&&(l=d.get(k));Ya(f[0].h.split("/").pop());for(var m=[],n=0;n<f.length;n++){var p=f[n],q=m[m.length-1],x=0==n?l:q.endTime;k=g+h+n;d.set(k,x);k=er(a,b.h,p.i,e);!a.l&&a.j.isAutoLowLatencyMode()&&(a.j.enableLowLatencyMode(),a.l=a.j.isLowLatencyMode());(p=gr(a,k,q,p,x,e,b.h,c))&&m.push(p)}if(a=m.some(function(w){return null!=w.ea}))for(b={},c=0;c<m.length;b=
709
- {tc:b.tc,sc:b.sc,Wc:b.Wc,vb:b.vb,rc:b.rc},c++)if(b.vb=m[c],null==b.vb.ea)for(b.sc=0,b.tc=c,d=function(w){return function(){var v=m[w.tc];if(v){if(null!=v.ea)return v.ea+w.sc;w.sc-=v.endTime-v.startTime;w.tc+=1}return null}}(b),b.rc=0,b.Wc=c,e=function(w){return function(){var v=m[w.Wc];if(v){v!=w.vb&&(w.rc+=v.endTime-v.startTime);if(null!=v.ea)return v.ea+w.rc;--w.Wc}return null}}(b);null==b.vb.ea;)b.vb.ea=e(),null==b.vb.ea&&(b.vb.ea=d());if(a)for(a=t(m),b=a.next();!b.done;b=a.next())for(c=b.value,
710
- b=c.ea,c=t(c.Ka),d=c.next();!d.done;d=c.next())d=d.value,d.ea=b,b+=d.endTime-d.startTime;return m}function Yq(a,b){var c=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}"),d=c.match(/{\$\w*}/g);if(d){d=t(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.slice(2,e.length-1),g=b.get(f);if(g)c=c.replace(e,g);else throw new O(2,4,4039,f);}}return c}
711
- function ar(a,b,c,d,e){var f,g,h,k,l,m,n,p,q,x,w;return I(function(v){if(1==v.g){f=Jb;g=rf;h=Yq(d.segments[0].h,e);k=new lb(h);l=k.La.split(".").pop();m=ir[b];if(n=m[l])return v["return"](n);if(b==f.ia){if("vtt"==c||"wvtt"==c)return v["return"]("text/vtt");if(c&&""!==c)return v["return"]("application/mp4")}if(b==f.zc&&(!c||"jpeg"==c))return v["return"]("image/jpeg");p=lf([h],a.h.retryParameters);p.method="HEAD";return u(v,jr(a,p,g),2)}q=v.h;x=q.headers["content-type"];if(!x){if(b==f.ia)return v["return"]("text/vtt");
712
- w=m.mp4;return v["return"](w)}return v["return"](x.split(";")[0])})}function Aq(a,b){var c=lf([b],a.h.retryParameters);a.j.modifyManifestRequest(c,{format:"h"});return jr(a,c,0)}function yq(a){var b,c;I(function(d){if(1==d.g){if(!a.j)return d["return"]();A(d,2);return u(d,a.update(),4)}if(2!=d.g)return b=a.ba,a.F.T(b),wa(d,0);c=F(d);if(!a.j)return d["return"]();c.severity=1;a.j.onError(c);a.F.T(.1);z(d)})}function Gq(a,b){a.m=b;a.i&&a.i.Vc(a.m==zq);a.m!=zq||a.F.stop()}
713
- function jr(a,b,c){if(!a.G)throw new O(2,7,7001);b=a.j.networkingEngine.request(c,b);ff(a.G,b);return b.promise}J("shaka.hls.HlsParser",xq);
714
- var ir={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",vtt:"text/vtt",ttml:"application/ttml+xml"},
715
- image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},br={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new O(2,4,4040);return Eb("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0)}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=eq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;b=eq(a,"URI");b=wq(b);b=Gc(b.data);b=Eb("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);
716
- if(a=U(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=eq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=eq(a,"URI");a=wq(a);a=Gc(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Qn(a,b,new Set,0);return Eb("com.microsoft.playready",[{initDataType:"cenc",initData:a}])}},zq="VOD",dr="EVENT",cr="LIVE",Dq={Tf:zq,Ph:dr,We:cr};
717
- Gd("Tizen 3")||Gd("Tizen 2")||Gd("Web0S")&&Gd("Chrome/38.0.2125.122 Safari/537.36")||(tg.m3u8=function(){return new xq},rg["application/x-mpegurl"]=function(){return new xq},rg["application/vnd.apple.mpegurl"]=function(){return new xq});function kr(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,Cf:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=Uc(b)}catch(g){}throw new O(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function lr(){}function mr(a,b,c,d,e){var f=new nr;zf(b.headers).forEach(function(l,m){f.append(m,l)});var g=new or,h={$e:!1,Nf:!1};a=pr(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 We(a,function(){h.$e=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new P(function(){h.Nf=!0;g.abort()});k.T(b/1E3);a["finally"](function(){k.stop()})}return a}
718
- function pr(a,b,c,d,e,f,g){var h,k,l,m,n,p,q,x,w,v,y,D,C;return I(function(B){switch(B.g){case 1:return h=qr,k=rr,p=n=0,q=Date.now(),A(B,2),u(B,h(a,c),4);case 4:return l=B.h,f(sr(l.headers)),x=l.clone().body.getReader(),v=(w=l.headers.get("Content-Length"))?parseInt(w,10):0,y=function(G){function E(){var H,L;return I(function(K){switch(K.g){case 1:return A(K,2),u(K,x.read(),4);case 4:H=K.h;wa(K,3);break;case 2:return F(K),K["return"]();case 3:if(H.done){K.D(5);break}n+=H.value.byteLength;if(!g){K.D(5);
719
- break}return u(K,g(H.value),5);case 5:L=Date.now();if(100<L-q||H.done)e(L-q,n-p,v-n),p=n,q=L;H.done?G.close():(G.enqueue(H.value),E());z(K)}})}E()},new k({start:y}),u(B,l.arrayBuffer(),5);case 5:m=B.h;wa(B,3);break;case 2:D=F(B);if(d.$e)throw new O(1,1,7001,a,b);if(d.Nf)throw new O(1,1,1003,a,b);throw new O(1,1,1002,a,D,b);case 3:return C=sr(l.headers),B["return"](kr(C,m,l.status,a,l.url,b))}})}function sr(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}
720
- function tr(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;return!(!window.fetch||!window.AbortController)}J("shaka.net.HttpFetchPlugin",lr);lr.isSupported=tr;lr.parse=mr;var qr=window.fetch,or=window.AbortController,rr=window.ReadableStream,nr=window.Headers;tr()&&(hf("http",mr,2,!0),hf("https",mr,2,!0),hf("blob",mr,2,!0));function ur(){}
721
- function vr(a,b,c,d,e){var f=new wr,g=Date.now(),h=0,k=new Promise(function(l,m){f.open(b.method,a,!0);f.responseType="arraybuffer";f.timeout=b.retryParameters.timeout;f.withCredentials=b.allowCrossSiteCredentials;f.onabort=function(){m(new O(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var q=xr(f);e(q);n=!0}};f.onload=function(){var q=xr(f),x=f.response;try{var w=kr(q,x,f.status,a,f.responseURL,c);l(w)}catch(v){m(v)}};f.onerror=function(q){m(new O(1,1,1002,a,q,
722
- c))};f.ontimeout=function(){m(new O(1,1,1003,a,c))};f.onprogress=function(q){var x=Date.now();if(100<x-g||q.lengthComputable&&q.loaded==q.total)d(x-g,q.loaded-h,q.total-q.loaded),h=q.loaded,g=x};for(var p in b.headers)f.setRequestHeader(p.toLowerCase(),b.headers[p]);f.send(b.body)});return new We(k,function(){f.abort();return Promise.resolve()})}
723
- function xr(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value.split(": "),a[c[0].toLowerCase()]=c.slice(1).join(": ");return a}J("shaka.net.HttpXHRPlugin",ur);ur.parse=vr;var wr=window.XMLHttpRequest;hf("http",vr,1,!0);hf("https",vr,1,!0);hf("blob",vr,1,!0);function yr(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function zr(a){return a.Ra().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.Va+":"+a.Ca}function Ar(a,b){return qj(a.g.Ra(),a.g.Va,a.g.Ca,b.streaming.retryParameters)};function Br(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function Cr(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}Br.prototype.close=function(a,b){if(this.g.has(a)){var c=this.g.get(a);this.g["delete"](a);this.j+=c;this.h+=b}};function Dr(a){var b=this;this.A=a;this.j=new Map;this.i=new sf(function(){return Er(b)["catch"](function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new Br}Dr.prototype.destroy=function(){return this.i.destroy()};function Fr(a,b,c){a.m=b;a.l=c}function Er(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
724
- function Gr(a,b,c,d,e,f){tf(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,p,q;return I(function(x){if(1==x.g)return u(x,Hr(a,c),2);h=x.h;if(a.i.g)throw new O(2,9,7001);if(e)for(m in k=Gc(h),l=new Pn(k),l.data)n=Number(m),p=l.data[n],q=l.g[n],a.l(p,q);a.g.close(d,h.byteLength);var w=a.g;a.m(0==w.i?0:w.j/w.i,a.g.h);return x["return"](f(h))})});a.j.set(b,g)}function Ir(a){return I(function(b){return 1==b.g?u(b,Promise.all(a.j.values()),2):b["return"](a.g.h)})}
725
- function Hr(a,b){var c,d,e,f;return I(function(g){if(1==g.g)return c=rf,d=a.A.request(c,b),e=function(){return d.abort()},a.h.push(e),u(g,d.promise,2);f=g.h;ec(a.h,e);return g["return"](f.data)})};function Jr(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new Nc;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}Jr.prototype.abort=function(){var a=this;return I(function(b){if(1==b.g){try{a.i.abort()}catch(c){}A(b,2);return u(b,a.g,4)}if(2!=b.g)return wa(b,0);F(b);z(b)})};
726
- function Kr(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return I(function(g){if(1==g.g){if(null==e.result)return c(),g["return"]();f=e.result;return u(g,b(f.key,f.value,f),2)}f["continue"]();z(g)})}})}Jr.prototype.store=function(){return this.h};Jr.prototype.promise=function(){return this.g};function Lr(a){this.h=a;this.g=[]}Lr.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Mr(a,b){return Nr(a,b,"readwrite")}function Nr(a,b,c){c=a.h.transaction([b],c);var d=new Jr(c,b);a.g.push(d);d.promise().then(function(){ec(a.g,d)},function(){ec(a.g,d)});return d};function Or(a,b,c){this.h=new Lr(a);this.i=b;this.g=c}r=Or.prototype;r.destroy=function(){return this.h.destroy()};r.hasFixedKeySpace=function(){return!0};r.addSegments=function(){return Pr(this.i)};r.removeSegments=function(a,b){return Qr(this,this.i,a,b)};r.getSegments=function(a){var b=this,c;return I(function(d){if(1==d.g)return u(d,Rr(b,b.i,a),2);c=d.h;return d["return"](c.map(function(e){return b.df(e)}))})};r.addManifests=function(){return Pr(this.g)};
727
- r.updateManifest=function(){return Promise.reject(new O(2,9,9016,"Cannot modify values in "+this.g))};function Sr(a,b,c){a=Mr(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}r.updateManifestExpiration=function(a,b){var c=Mr(this.h,this.g),d=c.store();d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};r.removeManifests=function(a,b){return Qr(this,this.g,a,b)};
728
- r.getManifests=function(a){var b=this,c;return I(function(d){if(1==d.g)return u(d,Rr(b,b.g,a),2);c=d.h;return d["return"](Promise.all(c.map(function(e){return b.Cc(e)})))})};r.getAllManifests=function(){var a=this,b,c;return I(function(d){return 1==d.g?(b=Nr(a.h,a.g,"readonly"),c=new Map,u(d,Kr(b,function(e,f){var g;return I(function(h){if(1==h.g)return u(h,a.Cc(f),2);g=h.h;c.set(e,g);z(h)})}),2)):3!=d.g?u(d,b.promise(),3):d["return"](c)})};r.df=function(a){return a};r.Cc=function(a){return Promise.resolve(a)};
729
- function Pr(a){return Promise.reject(new O(2,9,9011,"Cannot add new value to "+a))}r.add=function(a,b){var c=this,d,e,f,g,h,k,l;return I(function(m){if(1==m.g){d=Mr(c.h,a);e=d.store();f=[];g={};h=t(b);for(k=h.next();!k.done;g={$c:g.$c},k=h.next())l=k.value,g.$c=e.add(l),g.$c.onsuccess=function(n){return function(){f.push(n.$c.result)}}(g);return u(m,d.promise(),2)}return m["return"](f)})};
730
- function Qr(a,b,c,d){a=Mr(a.h,b);b=a.store();var e={};c=t(c);for(var f=c.next();!f.done;e={Zc:e.Zc},f=c.next())e.Zc=f.value,b["delete"](e.Zc).onsuccess=function(g){return function(){return d(g.Zc)}}(e);return a.promise()}
731
- function Rr(a,b,c){var d,e,f,g,h,k,l;return I(function(m){if(1==m.g){d=Nr(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=t(c);for(l=k.next();!l.done;h={yc:h.yc,vc:h.vc},l=k.next())h.vc=l.value,h.yc=e.get(h.vc),h.yc.onsuccess=function(n){return function(){void 0==n.yc.result&&g.push(n.vc);f[n.vc]=n.yc.result}}(h);return u(m,d.promise(),2)}if(g.length)throw new O(2,9,9012,"Could not find values for "+g);return m["return"](c.map(function(n){return f[n]}))})};function Tr(a){this.g=new Lr(a)}Tr.prototype.destroy=function(){return this.g.destroy()};Tr.prototype.getAll=function(){var a=this,b,c;return I(function(d){return 1==d.g?(b=Nr(a.g,"session-ids","readonly"),c=[],u(d,Kr(b,function(e,f){c.push(f)}),2)):3!=d.g?u(d,b.promise(),3):d["return"](c)})};Tr.prototype.add=function(a){var b=Mr(this.g,"session-ids"),c=b.store();a=t(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
732
- Tr.prototype.remove=function(a){var b=this,c;return I(function(d){return 1==d.g?(c=Mr(b.g,"session-ids"),u(d,Kr(c,function(e,f,g){a.includes(f.sessionId)&&g["delete"]()}),2)):u(d,c.promise(),0)})};function Ur(){this.g=new Map}Ur.prototype.destroy=function(){for(var a=[],b=t(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};Ur.prototype.init=function(){var a=this;Vr.forEach(function(e,f){var g=e();g&&a.g.set(f,g)});for(var b=[],c=t(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
733
- function Wr(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Ua:d,Ba:f},Ba:e})})});if(b)return b;throw new O(2,9,9013,"Could not find a cell that supports add-operations");}function Xr(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Ua:d,Ba:f},e)})})}
734
- function Yr(a,b,c){a=a.g.get(b);if(!a)throw new O(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new O(2,9,9013,"Could not find cell with name "+c);return b}function Zr(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function $r(a){var b=Array.from(a.g.keys());if(!b.length)throw new O(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
735
- function as(a){var b,c,d;return I(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=Vr,d.forEach(function(f){(f=f())&&b.push(f)})),u(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.D(0):u(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function bs(a,b){Vr.set(a,b)}J("shaka.offline.StorageMuxer",Ur);Ur.unregister=function(a){Vr["delete"](a)};Ur.register=bs;Ur.prototype.destroy=Ur.prototype.destroy;var Vr=new Map;function cs(){Or.apply(this,arguments)}ra(cs,Or);cs.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return I(function(g){d=Mr(c.h,c.g);e=d.store();f=new Nc;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new O(2,9,9012,"Could not find values for "+a))};return u(g,Promise.all([d.promise(),f]),0)})};
736
- cs.prototype.Cc=function(a){var b,c,d,e,f,g;return I(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c)d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime,e=d-a.periods[c].startTime,f=ds(a.periods[c],e),b.push(f);return u(h,pp(b),2)}g=h.h;return h["return"]({creationTime:0,originalManifestUri:a.originalManifestUri,duration:a.duration,size:a.size,expiration:null==a.expiration?Infinity:a.expiration,streams:g,sessionIds:a.sessionIds,drmInfo:a.drmInfo,appMetadata:a.appMetadata,sequenceMode:!1})})};
737
- function ds(a,b){es(a);for(var c=t(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return fs(e,a.startTime,b)})}
738
- function fs(a,b,c){var d=a.initSegmentUri?gs(a.initSegmentUri):null,e=b+a.presentationTimeOffset,f=b+c;return{id:a.id,originalId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:void 0,hdr:void 0,kind:a.kind,language:a.language,label:a.label,width:a.width,height:a.height,initSegmentKey:d,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(g){var h=gs(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,
739
- dataKey:h,initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}}cs.prototype.df=function(a){return{data:a.data}};function gs(a){var b;if((b=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(a))||(b=/^offline:segment\/([0-9]+)$/.exec(a)))return Number(b[1]);throw new O(2,9,9004,"Could not parse uri "+a);}
740
- function es(a){var b=a.streams.filter(function(h){return"audio"==h.contentType});a=a.streams.filter(function(h){return"video"==h.contentType});if(!b.every(function(h){return h.variantIds})||!a.every(function(h){return h.variantIds})){for(var c=t(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=t(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){var e=c++,f=t(a);for(d=f.next();!d.done;d=f.next())d.value.variantIds.push(e)}if(!a.length&&b.length)for(e=c++,
741
- f=t(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=t(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=t(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function hs(){Or.apply(this,arguments)}ra(hs,Or);
742
- hs.prototype.Cc=function(a){var b,c,d,e,f,g;return I(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c){d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime;e=d-a.periods[c].startTime;for(var k=a.periods[c],l=[],m=t(k.streams),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(is(n,k.startTime,k.startTime+e));f=l;b.push(f)}return u(h,pp(b),2)}g=h.h;return h["return"]({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==
702
+ function Xq(a,b,c,d){var e,f,g,h;return I(function(k){if(1==k.g){e=$q(eq(b,"URI"),a.A);if(a.g.has(e))return k["return"](a.g.get(e));var l=U(b,"CLOSED-CAPTIONS");f="video"==d&&l&&"NONE"!=l?a.J.get(l):null;g=Fb(d,c);return u(k,ar(a,e,g,d,"und",!1,null,null,f,null,!1,!1),2)}h=k.h;if(null==h)return k["return"](null);if(a.g.has(e))return k["return"](a.g.get(e));a.g.set(e,h);return k["return"](h)})}
703
+ function ar(a,b,c,d,e,f,g,h,k,l,m,n){var p,q,w;return I(function(y){if(1==y.g)return p=Db([a.K],[b])[0],u(y,Aq(a,p),2);q=y.h;p=q.uri;w=qq(a.$,q.data,p);return y["return"](Lq(a,w,b,p,c,d,e,f,g,h,k,l,m,n))})}
704
+ function Lq(a,b,c,d,e,f,g,h,k,l,m,n,p,q,w){var y,x,v,D,C,B,G,E,H,N,K,M,V,Z,ha,ja,wa,Ma,Fa,Sa,Ga,rc,Sc,Cd,Dd,qb,Ed,sc,Ee,ab,jg,kg;return I(function(tc){if(1==tc.g){if(1!=b.type)throw new O(2,4,4017);y=hq(b.g,"EXT-X-DEFINE");x=Eq(a,y);br(a,b);return w?tc.D(2):u(tc,cr(a,f,e,b,x),3)}2!=tc.g&&(w=tc.h);v=[];if(b.segments)for(D=t(b.segments),C=D.next();!C.done;C=D.next())B=C.value,G=hq(B.h,"EXT-X-KEY"),v.push.apply(v,ia(G));E=!1;H=[];N=new Set;K=t(v);for(M=K.next();!M.done;M=K.next())if(V=M.value,Z=eq(V,
705
+ "METHOD"),"NONE"!=Z){E=!0;if("AES-128"==Z)return a.za=!0,tc["return"](null);ha=eq(V,"KEYFORMAT");if(wa=(ja=dr[ha])?ja(V,w):null){if(wa.keyIds)for(Ma=t(wa.keyIds),Fa=Ma.next();!Fa.done;Fa=Ma.next())Sa=Fa.value,N.add(Sa);H.push(wa)}}if(E&&!H.length)throw new O(2,4,4026);Ci.includes(w)&&(e="");Ga=new Map;try{rc=Fq(a,b,f,Ga,x)}catch(Oo){if(4035==Oo.code)return Ua("Skipping unsupported HLS stream",w,c),tc["return"](null);throw Oo;}Sc=rc[rc.length-1].endTime;Cd=new Zi(rc);Dd=f==Ib?"subtitle":void 0;qb=
706
+ [];if(n)for(Ed=t(n.split(",")),sc=Ed.next();!sc.done;sc=Ed.next())Ee=sc.value,qb.push(Ee);jg=(ab=jq(b.g,"EXT-X-SERVER-CONTROL"))?null!=ab.getAttribute("CAN-SKIP-UNTIL"):!1;kg={id:a.ya++,originalId:k,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Cd,mimeType:w,codecs:e,kind:Dd,encrypted:E,drmInfos:H,keyIds:N,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:qb,
707
+ forced:p,channelsCount:l,audioSamplingRate:null,spatialAudio:q,closedCaptions:m,hdr:void 0,tilesLayout:void 0};return tc["return"]({stream:kg,Hd:c,Uf:d,ke:Sc,Lc:Ga,Zf:jg})})}
708
+ function br(a,b){var c=jq(b.g,"EXT-X-PLAYLIST-TYPE"),d=jq(b.g,"EXT-X-ENDLIST");d=c&&"VOD"==c.value||d;c=c&&"EVENT"==c.value&&!d;c=!d&&!c;if(d)Gq(a,zq);else{c?Gq(a,er):Gq(a,fr);d=jq(b.g,"EXT-X-TARGETDURATION");if(!d)throw new O(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);c=jq(b.g,"EXT-X-PART-INF");a.l&&c?(a.ba=Number(eq(c,"PART-TARGET")),a.H=Math.min(a.ba,a.H),c=jq(b.g,"EXT-X-SERVER-CONTROL"),a.X=c?Number(eq(c,"PART-HOLD-BACK")):0):a.H=Math.min(d,a.H);a.aa=Math.max(d,a.aa)}}
709
+ function gr(a,b,c,d){c=jq(c,"EXT-X-MAP");if(!c)return null;var e=eq(c,"URI");d=$q(Db([b],[e])[0],d);b=[d,U(c,"BYTERANGE","")].join("-");a.ua.has(b)||(c=hr(d,c),a.ua.set(b,c));return a.ua.get(b)}function hr(a,b){var c=0,d=null,e=U(b,"BYTERANGE");e&&(c=e.split("@"),d=Number(c[0]),c=Number(c[1]),d=c+d-1);return new Vh(function(){return[a]},c,d)}
710
+ function ir(a,b,c,d,e,f,g,h){var k=d.h,l=$q(d.i,f),m=jq(k,"EXTINF"),n=f=0,p=null;d.g.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 q=null;if(!a.h.hls.ignoreManifestProgramDateTime){var w=jq(k,"EXT-X-PROGRAM-DATE-TIME");w&&w.value&&(q=ao(w.value))}w=Yh;jq(k,"EXT-X-GAP")&&(w=2);if(!m){if(0==d.g.length)throw new O(2,4,4024,"EXTINF");
711
+ if(!a.l)return null}var y=[];if(a.l)for(var x={},v=0;v<d.g.length;x={Qd:x.Qd},v++){var D=d.g[v],C=0==v?c:y[y.length-1],B=0==v?e:C.endTime,G=Number(U(D,"DURATION"))||a.ba;if(G){G=B+G;var E=0,H=null;"EXT-X-PRELOAD-HINT"==D.name?E=(E=U(D,"BYTERANGE-START"))?Number(E):0:(E=U(D,"BYTERANGE"),H=t(jr(C,E)),E=H.next().value,H=H.next().value);if(C=U(D,"URI"))x.Qd=Db([g],[C])[0],C=Yh,"YES"==U(D,"GAP")&&(C=2),y.push(new Xh(B,G,function(N){return function(){return[N.Qd]}}(x),E,H,b,0,0,Infinity,[],"",null,null,
712
+ C))}}m?f=e+Number(m.value.split(",")[0]):f=y[y.length-1].endTime;(a=jq(k,"EXT-X-BYTERANGE"))?(p=t(jr(c,a.value)),n=p.next().value,p=p.next().value):y.length&&(n=y[0].Ta,p=y[y.length-1].Ca);c="";a=null;"image"==h&&(c="1x1",h=jq(k,"EXT-X-TILES"))&&(c=eq(h,"LAYOUT"),(h=U(h,"DURATION"))&&(a=Number(h)));return new Xh(e,f,function(){return l.length?[l]:[]},n,p,b,0,0,Infinity,y,c,a,q,w)}function jr(a,b){var c=0,d=null;b&&(c=b.split("@"),d=Number(c[0]),c=c[1]?Number(c[1]):a.Ca+1,d=c+d-1);return[c,d]}
713
+ function Sq(a){if(a.i){for(var b=t(a.P),c=b.next();!c.done;c=b.next())a.i.ic(c.value);a.P=[]}}
714
+ function Fq(a,b,c,d,e){var f=b.segments,g=kq(b.g),h=jq(b.g,"EXT-X-SKIP");h=h?Number(U(h,"SKIPPED-SEGMENTS")):0;var k=g+h,l=0;a.m!=zq&&d.has(k)&&(l=d.get(k));for(var m=[],n=null,p=0;p<f.length;p++){var q=f[p],w=0==p?l:n.endTime;k=g+h+p;d.set(k,w);var y=gr(a,b.h,q.h,e);!a.l&&a.j.isAutoLowLatencyMode()&&(a.j.enableLowLatencyMode(),a.l=a.j.isLowLatencyMode());(n=y=ir(a,y,n,q,w,e,b.h,c))&&(a.h.hls.ignoreManifestProgramDateTime&&null!=a.N&&k<a.N||m.push(y))}if(a=m.some(function(x){return null!=x.g}))for(b=
715
+ {},c=0;c<m.length;b={rc:b.rc,qc:b.qc,Wc:b.Wc,sb:b.sb,pc:b.pc},c++)if(b.sb=m[c],null==b.sb.g)for(b.qc=0,b.rc=c,d=function(x){return function(){var v=m[x.rc];if(v){if(null!=v.g)return v.g+x.qc;x.qc-=v.endTime-v.startTime;x.rc+=1}return null}}(b),b.pc=0,b.Wc=c,e=function(x){return function(){var v=m[x.Wc];if(v){v!=x.sb&&(x.pc+=v.endTime-v.startTime);if(null!=v.g)return v.g+x.pc;--x.Wc}return null}}(b);null==b.sb.g;)b.sb.g=e(),null==b.sb.g&&(b.sb.g=d());if(a)for(a=t(m),b=a.next();!b.done;b=a.next())for(c=
716
+ b.value,b=c.g,c=t(c.h),d=c.next();!d.done;d=c.next())d=d.value,d.g=b,b+=d.endTime-d.startTime;return m}function $q(a,b){var c=String(a).replace(/%7B/g,"{").replace(/%7D/g,"}"),d=c.match(/{\$\w*}/g);if(d){d=t(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.slice(2,e.length-1),g=b.get(f);if(g)c=c.replace(e,g);else throw new O(2,4,4039,f);}}return c}
717
+ function cr(a,b,c,d,e){var f,g,h,k,l,m,n,p,q,w,y,x;return I(function(v){if(1==v.g){f=Jb;g=sf;h=Math.trunc((d.segments.length-1)/2);k=$q(d.segments[h].i,e);l=new lb(k);m=l.Ka.split(".").pop();n=kr[b];if(p=n[m])return v["return"](p);if(b==f.ha){if("vtt"==c||"wvtt"==c)return v["return"]("text/vtt");if(c&&""!==c)return v["return"]("application/mp4")}if(b==f.xc&&(!c||"jpeg"==c))return v["return"]("image/jpeg");q=mf([k],a.h.retryParameters);q.method="HEAD";return u(v,lr(a,q,g),2)}w=v.h;y=w.headers["content-type"];
718
+ if(!y){if(b==f.ha)return v["return"]("text/vtt");x=n.mp4;return v["return"](x)}return v["return"](y.split(";")[0])})}function Aq(a,b){var c=mf([b],a.h.retryParameters);a.j.modifyManifestRequest(c,{format:"h"});return lr(a,c,0)}function yq(a){var b,c;I(function(d){if(1==d.g){if(!a.j)return d["return"]();A(d,2);return u(d,a.update(),4)}if(2!=d.g)return b=a.ea,a.F.T(b),va(d,0);c=F(d);if(!a.j)return d["return"]();c.severity=1;a.j.onError(c);a.F.T(.1);z(d)})}
719
+ function Gq(a,b){a.m=b;a.i&&a.i.Vc(a.m==zq);a.m!=zq||a.F.stop()}function lr(a,b,c){if(!a.G)throw new O(2,7,7001);b=a.j.networkingEngine.request(c,b);gf(a.G,b);return b.promise}J("shaka.hls.HlsParser",xq);
720
+ var kr={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",vtt:"text/vtt",ttml:"application/ttml+xml"},
721
+ image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},dr={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new O(2,4,4040);return Eb("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0)}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=eq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;b=eq(a,"URI");b=wq(b);b=Gc(b.data);b=Eb("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);
722
+ if(a=U(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=eq(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=eq(a,"URI");a=wq(a);a=Gc(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=Qn(a,b,new Set,0);return Eb("com.microsoft.playready",[{initDataType:"cenc",initData:a}])}},zq="VOD",fr="EVENT",er="LIVE",Dq={Tf:zq,Oh:fr,Ze:er};
723
+ Vc("Tizen 3")||Vc("Tizen 2")||Xc()||(ug.m3u8=function(){return new xq},sg["application/x-mpegurl"]=function(){return new xq},sg["application/vnd.apple.mpegurl"]=function(){return new xq});function mr(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,Cf:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=hd(b)}catch(g){}throw new O(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function nr(){}function or(a,b,c,d,e){var f=new pr;Af(b.headers).forEach(function(l,m){f.append(m,l)});var g=new qr,h={df:!1,Nf:!1};a=rr(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 Xe(a,function(){h.df=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new P(function(){h.Nf=!0;g.abort()});k.T(b/1E3);a["finally"](function(){k.stop()})}return a}
724
+ function rr(a,b,c,d,e,f,g){var h,k,l,m,n,p,q,w,y,x,v,D,C;return I(function(B){switch(B.g){case 1:return h=sr,k=tr,p=n=0,q=Date.now(),A(B,2),u(B,h(a,c),4);case 4:return l=B.h,f(ur(l.headers)),w=l.clone().body.getReader(),x=(y=l.headers.get("Content-Length"))?parseInt(y,10):0,v=function(G){function E(){var H,N;return I(function(K){switch(K.g){case 1:return A(K,2),u(K,w.read(),4);case 4:H=K.h;va(K,3);break;case 2:return F(K),K["return"]();case 3:if(H.done){K.D(5);break}n+=H.value.byteLength;if(!g){K.D(5);
725
+ break}return u(K,g(H.value),5);case 5:N=Date.now();if(100<N-q||H.done)e(N-q,n-p,x-n),p=n,q=N;H.done?G.close():(G.enqueue(H.value),E());z(K)}})}E()},new k({start:v}),u(B,l.arrayBuffer(),5);case 5:m=B.h;va(B,3);break;case 2:D=F(B);if(d.df)throw new O(1,1,7001,a,b);if(d.Nf)throw new O(1,1,1003,a,b);throw new O(1,1,1002,a,D,b);case 3:return C=ur(l.headers),B["return"](mr(C,m,l.status,a,l.url,b))}})}function ur(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}
726
+ function vr(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;return!(!window.fetch||!window.AbortController)}J("shaka.net.HttpFetchPlugin",nr);nr.isSupported=vr;nr.parse=or;var sr=window.fetch,qr=window.AbortController,tr=window.ReadableStream,pr=window.Headers;vr()&&(jf("http",or,2,!0),jf("https",or,2,!0),jf("blob",or,2,!0));function wr(){}
727
+ function xr(a,b,c,d,e){var f=new yr,g=Date.now(),h=0,k=new Promise(function(l,m){f.open(b.method,a,!0);f.responseType="arraybuffer";f.timeout=b.retryParameters.timeout;f.withCredentials=b.allowCrossSiteCredentials;f.onabort=function(){m(new O(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var q=zr(f);e(q);n=!0}};f.onload=function(){var q=zr(f),w=f.response;try{var y=mr(q,w,f.status,a,f.responseURL,c);l(y)}catch(x){m(x)}};f.onerror=function(q){m(new O(1,1,1002,a,q,
728
+ c))};f.ontimeout=function(){m(new O(1,1,1003,a,c))};f.onprogress=function(q){var w=Date.now();if(100<w-g||q.lengthComputable&&q.loaded==q.total)d(w-g,q.loaded-h,q.total-q.loaded),h=q.loaded,g=w};for(var p in b.headers)f.setRequestHeader(p.toLowerCase(),b.headers[p]);f.send(b.body)});return new Xe(k,function(){f.abort();return Promise.resolve()})}
729
+ function zr(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value.split(": "),a[c[0].toLowerCase()]=c.slice(1).join(": ");return a}J("shaka.net.HttpXHRPlugin",wr);wr.parse=xr;var yr=window.XMLHttpRequest;jf("http",xr,1,!0);jf("https",xr,1,!0);jf("blob",xr,1,!0);function Ar(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function Br(a){return a.Pa().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.Ta+":"+a.Ca}function Cr(a,b){return qj(a.g.Pa(),a.g.Ta,a.g.Ca,b.streaming.retryParameters)};function Dr(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function Er(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}Dr.prototype.close=function(a,b){if(this.g.has(a)){var c=this.g.get(a);this.g["delete"](a);this.j+=c;this.h+=b}};function Fr(a){var b=this;this.A=a;this.j=new Map;this.i=new tf(function(){return Gr(b)["catch"](function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new Dr}Fr.prototype.destroy=function(){return this.i.destroy()};function Hr(a,b,c){a.m=b;a.l=c}function Gr(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)}
730
+ function Ir(a,b,c,d,e,f){uf(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,p,q;return I(function(w){if(1==w.g)return u(w,Jr(a,c),2);h=w.h;if(a.i.g)throw new O(2,9,7001);if(e)for(m in k=Gc(h),l=new Pn(k),l.data)n=Number(m),p=l.data[n],q=l.g[n],a.l(p,q);a.g.close(d,h.byteLength);var y=a.g;a.m(0==y.i?0:y.j/y.i,a.g.h);return w["return"](f(h))})});a.j.set(b,g)}function Kr(a){return I(function(b){return 1==b.g?u(b,Promise.all(a.j.values()),2):b["return"](a.g.h)})}
731
+ function Jr(a,b){var c,d,e,f;return I(function(g){if(1==g.g)return c=sf,d=a.A.request(c,b),e=function(){return d.abort()},a.h.push(e),u(g,d.promise,2);f=g.h;dc(a.h,e);return g["return"](f.data)})};function Lr(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new Nc;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}Lr.prototype.abort=function(){var a=this;return I(function(b){if(1==b.g){try{a.i.abort()}catch(c){}A(b,2);return u(b,a.g,4)}if(2!=b.g)return va(b,0);F(b);z(b)})};
732
+ function Mr(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return I(function(g){if(1==g.g){if(null==e.result)return c(),g["return"]();f=e.result;return u(g,b(f.key,f.value,f),2)}f["continue"]();z(g)})}})}Lr.prototype.store=function(){return this.h};Lr.prototype.promise=function(){return this.g};function Nr(a){this.h=a;this.g=[]}Nr.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function Or(a,b){return Pr(a,b,"readwrite")}function Pr(a,b,c){c=a.h.transaction([b],c);var d=new Lr(c,b);a.g.push(d);d.promise().then(function(){dc(a.g,d)},function(){dc(a.g,d)});return d};function Qr(a,b,c){this.h=new Nr(a);this.i=b;this.g=c}r=Qr.prototype;r.destroy=function(){return this.h.destroy()};r.hasFixedKeySpace=function(){return!0};r.addSegments=function(){return Rr(this.i)};r.removeSegments=function(a,b){return Sr(this,this.i,a,b)};r.getSegments=function(a){var b=this,c;return I(function(d){if(1==d.g)return u(d,Tr(b,b.i,a),2);c=d.h;return d["return"](c.map(function(e){return b.hf(e)}))})};r.addManifests=function(){return Rr(this.g)};
733
+ r.updateManifest=function(){return Promise.reject(new O(2,9,9016,"Cannot modify values in "+this.g))};function Ur(a,b,c){a=Or(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}r.updateManifestExpiration=function(a,b){var c=Or(this.h,this.g),d=c.store();d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};r.removeManifests=function(a,b){return Sr(this,this.g,a,b)};
734
+ r.getManifests=function(a){var b=this,c;return I(function(d){if(1==d.g)return u(d,Tr(b,b.g,a),2);c=d.h;return d["return"](Promise.all(c.map(function(e){return b.Ac(e)})))})};r.getAllManifests=function(){var a=this,b,c;return I(function(d){return 1==d.g?(b=Pr(a.h,a.g,"readonly"),c=new Map,u(d,Mr(b,function(e,f){var g;return I(function(h){if(1==h.g)return u(h,a.Ac(f),2);g=h.h;c.set(e,g);z(h)})}),2)):3!=d.g?u(d,b.promise(),3):d["return"](c)})};r.hf=function(a){return a};r.Ac=function(a){return Promise.resolve(a)};
735
+ function Rr(a){return Promise.reject(new O(2,9,9011,"Cannot add new value to "+a))}r.add=function(a,b){var c=this,d,e,f,g,h,k,l;return I(function(m){if(1==m.g){d=Or(c.h,a);e=d.store();f=[];g={};h=t(b);for(k=h.next();!k.done;g={$c:g.$c},k=h.next())l=k.value,g.$c=e.add(l),g.$c.onsuccess=function(n){return function(){f.push(n.$c.result)}}(g);return u(m,d.promise(),2)}return m["return"](f)})};
736
+ function Sr(a,b,c,d){a=Or(a.h,b);b=a.store();var e={};c=t(c);for(var f=c.next();!f.done;e={Zc:e.Zc},f=c.next())e.Zc=f.value,b["delete"](e.Zc).onsuccess=function(g){return function(){return d(g.Zc)}}(e);return a.promise()}
737
+ function Tr(a,b,c){var d,e,f,g,h,k,l;return I(function(m){if(1==m.g){d=Pr(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=t(c);for(l=k.next();!l.done;h={wc:h.wc,tc:h.tc},l=k.next())h.tc=l.value,h.wc=e.get(h.tc),h.wc.onsuccess=function(n){return function(){void 0==n.wc.result&&g.push(n.tc);f[n.tc]=n.wc.result}}(h);return u(m,d.promise(),2)}if(g.length)throw new O(2,9,9012,"Could not find values for "+g);return m["return"](c.map(function(n){return f[n]}))})};function Vr(a){this.g=new Nr(a)}Vr.prototype.destroy=function(){return this.g.destroy()};Vr.prototype.getAll=function(){var a=this,b,c;return I(function(d){return 1==d.g?(b=Pr(a.g,"session-ids","readonly"),c=[],u(d,Mr(b,function(e,f){c.push(f)}),2)):3!=d.g?u(d,b.promise(),3):d["return"](c)})};Vr.prototype.add=function(a){var b=Or(this.g,"session-ids"),c=b.store();a=t(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()};
738
+ Vr.prototype.remove=function(a){var b=this,c;return I(function(d){return 1==d.g?(c=Or(b.g,"session-ids"),u(d,Mr(c,function(e,f,g){a.includes(f.sessionId)&&g["delete"]()}),2)):u(d,c.promise(),0)})};function Wr(){this.g=new Map}Wr.prototype.destroy=function(){for(var a=[],b=t(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};Wr.prototype.init=function(){var a=this;Xr.forEach(function(e,f){var g=e();g&&a.g.set(f,g)});for(var b=[],c=t(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)};
739
+ function Yr(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Sa:d,Ba:f},Ba:e})})});if(b)return b;throw new O(2,9,9013,"Could not find a cell that supports add-operations");}function Zr(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Sa:d,Ba:f},e)})})}
740
+ function $r(a,b,c){a=a.g.get(b);if(!a)throw new O(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new O(2,9,9013,"Could not find cell with name "+c);return b}function as(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function bs(a){var b=Array.from(a.g.keys());if(!b.length)throw new O(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()}
741
+ function cs(a){var b,c,d;return I(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=Xr,d.forEach(function(f){(f=f())&&b.push(f)})),u(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.D(0):u(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function ds(a,b){Xr.set(a,b)}J("shaka.offline.StorageMuxer",Wr);Wr.unregister=function(a){Xr["delete"](a)};Wr.register=ds;Wr.prototype.destroy=Wr.prototype.destroy;var Xr=new Map;function es(){Qr.apply(this,arguments)}qa(es,Qr);es.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return I(function(g){d=Or(c.h,c.g);e=d.store();f=new Nc;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new O(2,9,9012,"Could not find values for "+a))};return u(g,Promise.all([d.promise(),f]),0)})};
742
+ es.prototype.Ac=function(a){var b,c,d,e,f,g;return I(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c)d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime,e=d-a.periods[c].startTime,f=fs(a.periods[c],e),b.push(f);return u(h,pp(b),2)}g=h.h;return h["return"]({creationTime:0,originalManifestUri:a.originalManifestUri,duration:a.duration,size:a.size,expiration:null==a.expiration?Infinity:a.expiration,streams:g,sessionIds:a.sessionIds,drmInfo:a.drmInfo,appMetadata:a.appMetadata,sequenceMode:!1})})};
743
+ function fs(a,b){gs(a);for(var c=t(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return hs(e,a.startTime,b)})}
744
+ function hs(a,b,c){var d=a.initSegmentUri?is(a.initSegmentUri):null,e=b+a.presentationTimeOffset,f=b+c;return{id:a.id,originalId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:void 0,hdr:void 0,kind:a.kind,language:a.language,label:a.label,width:a.width,height:a.height,initSegmentKey:d,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(g){var h=is(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,
745
+ dataKey:h,initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}}es.prototype.hf=function(a){return{data:a.data}};function is(a){var b;if((b=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(a))||(b=/^offline:segment\/([0-9]+)$/.exec(a)))return Number(b[1]);throw new O(2,9,9004,"Could not parse uri "+a);}
746
+ function gs(a){var b=a.streams.filter(function(h){return"audio"==h.contentType});a=a.streams.filter(function(h){return"video"==h.contentType});if(!b.every(function(h){return h.variantIds})||!a.every(function(h){return h.variantIds})){for(var c=t(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=t(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){var e=c++,f=t(a);for(d=f.next();!d.done;d=f.next())d.value.variantIds.push(e)}if(!a.length&&b.length)for(e=c++,
747
+ f=t(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=t(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=t(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function js(){Qr.apply(this,arguments)}qa(js,Qr);
748
+ js.prototype.Ac=function(a){var b,c,d,e,f,g;return I(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c){d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime;e=d-a.periods[c].startTime;for(var k=a.periods[c],l=[],m=t(k.streams),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(ks(n,k.startTime,k.startTime+e));f=l;b.push(f)}return u(h,pp(b),2)}g=h.h;return h["return"]({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==
743
749
  a.expiration?Infinity:a.expiration,originalManifestUri:a.originalManifestUri,sessionIds:a.sessionIds,size:a.size,streams:g,sequenceMode:!1})})};
744
- function is(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,
745
- dataKey:d.dataKey,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}};function js(){Or.apply(this,arguments)}ra(js,Or);r=js.prototype;r.hasFixedKeySpace=function(){return!1};r.addSegments=function(a){return this.add(this.i,a)};r.addManifests=function(a){return this.add(this.g,a)};r.updateManifest=function(a,b){return Sr(this,a,b)};r.Cc=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function ks(){this.m=this.j=this.i=this.h=this.g=this.l=null}r=ks.prototype;
746
- r.init=function(){var a=this,b=new Nc,c=window.indexedDB.open("shaka_offline_db",5);c.onsuccess=function(){var d=c.result;a.l=d;var e=d.objectStoreNames;e=e.contains("manifest")&&e.contains("segment")?new cs(d,"segment","manifest"):null;a.g=e;e=d.objectStoreNames;e=e.contains("manifest-v2")&&e.contains("segment-v2")?new hs(d,"segment-v2","manifest-v2"):null;a.h=e;e=d.objectStoreNames;e=e.contains("manifest-v3")&&e.contains("segment-v3")?new hs(d,"segment-v3","manifest-v3"):null;a.i=e;e=d.objectStoreNames;
747
- e=e.contains("manifest-v5")&&e.contains("segment-v5")?new js(d,"segment-v5","manifest-v5"):null;a.j=e;d=d.objectStoreNames.contains("session-ids")?new Tr(d):null;a.m=d;b.resolve()};c.onupgradeneeded=function(){for(var d=c.result,e=t(["segment-v5","manifest-v5","session-ids"]),f=e.next();!f.done;f=e.next())f=f.value,d.objectStoreNames.contains(f)||d.createObjectStore(f,{autoIncrement:!0})};c.onerror=function(d){b.reject(new O(2,9,9001,c.error));d.preventDefault()};return b};
750
+ function ks(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,
751
+ dataKey:d.dataKey,tilesLayout:""}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}};function ls(){Qr.apply(this,arguments)}qa(ls,Qr);r=ls.prototype;r.hasFixedKeySpace=function(){return!1};r.addSegments=function(a){return this.add(this.i,a)};r.addManifests=function(a){return this.add(this.g,a)};r.updateManifest=function(a,b){return Ur(this,a,b)};r.Ac=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function ms(){this.m=this.j=this.i=this.h=this.g=this.l=null}r=ms.prototype;
752
+ r.init=function(){var a=this,b=new Nc,c=window.indexedDB.open("shaka_offline_db",5);c.onsuccess=function(){var d=c.result;a.l=d;var e=d.objectStoreNames;e=e.contains("manifest")&&e.contains("segment")?new es(d,"segment","manifest"):null;a.g=e;e=d.objectStoreNames;e=e.contains("manifest-v2")&&e.contains("segment-v2")?new js(d,"segment-v2","manifest-v2"):null;a.h=e;e=d.objectStoreNames;e=e.contains("manifest-v3")&&e.contains("segment-v3")?new js(d,"segment-v3","manifest-v3"):null;a.i=e;e=d.objectStoreNames;
753
+ e=e.contains("manifest-v5")&&e.contains("segment-v5")?new ls(d,"segment-v5","manifest-v5"):null;a.j=e;d=d.objectStoreNames.contains("session-ids")?new Vr(d):null;a.m=d;b.resolve()};c.onupgradeneeded=function(){for(var d=c.result,e=t(["segment-v5","manifest-v5","session-ids"]),f=e.next();!f.done;f=e.next())f=f.value,d.objectStoreNames.contains(f)||d.createObjectStore(f,{autoIncrement:!0})};c.onerror=function(d){b.reject(new O(2,9,9001,c.error));d.preventDefault()};return b};
748
754
  r.destroy=function(){var a=this;return I(function(b){switch(b.g){case 1:if(!a.g){b.D(2);break}return u(b,a.g.destroy(),2);case 2:if(!a.h){b.D(4);break}return u(b,a.h.destroy(),4);case 4:if(!a.i){b.D(6);break}return u(b,a.i.destroy(),6);case 6:if(!a.j){b.D(8);break}return u(b,a.j.destroy(),8);case 8:if(!a.m){b.D(10);break}return u(b,a.m.destroy(),10);case 10:a.l&&a.l.close(),z(b)}})};
749
755
  r.getCells=function(){var a=new Map;this.g&&a.set("v1",this.g);this.h&&a.set("v2",this.h);this.i&&a.set("v3",this.i);this.j&&a.set("v5",this.j);return a};r.getEmeSessionCell=function(){return this.m};
750
- r.erase=function(){var a=this;return I(function(b){switch(b.g){case 1:if(!a.g){b.D(2);break}return u(b,a.g.destroy(),2);case 2:if(!a.h){b.D(4);break}return u(b,a.h.destroy(),4);case 4:if(!a.i){b.D(6);break}return u(b,a.i.destroy(),6);case 6:if(!a.j){b.D(8);break}return u(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),u(b,ls(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,u(b,a.init(),0)}})};
751
- function ls(){var a=new Nc,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new O(2,9,9001,b.error));c.preventDefault()};return a}bs("idb",function(){return Id()||Bd()||!window.indexedDB?null:new ks});function ms(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}ms.prototype.Ua=function(){return this.i};ms.prototype.Ba=function(){return this.h};ms.prototype.key=function(){return this.l};ms.prototype.toString=function(){return this.j};
752
- function ns(a){a=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(a);if(null==a)return null;var b=a[1];if("manifest"!=b&&"segment"!=b)return null;var c=a[2];if(!c)return null;var d=a[3];return d&&null!=b?new ms(b,c,d,Number(a[4])):null};function os(a,b){this.h=a;this.g=b}
753
- function ps(a,b){var c=new Q(null,0);c.eb(b.duration);var d=b.streams.filter(function(l){return"audio"==l.type}),e=b.streams.filter(function(l){return"video"==l.type});d=qs(a,d,e,c);e=b.streams.filter(function(l){return l.type==Ib}).map(function(l){return rs(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return rs(a,l,c)}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=t(d.values()),k=h.next();!k.done;k=h.next())k=k.value,k.audio&&k.audio.encrypted&&(k.audio.drmInfos=
756
+ r.erase=function(){var a=this;return I(function(b){switch(b.g){case 1:if(!a.g){b.D(2);break}return u(b,a.g.destroy(),2);case 2:if(!a.h){b.D(4);break}return u(b,a.h.destroy(),4);case 4:if(!a.i){b.D(6);break}return u(b,a.i.destroy(),6);case 6:if(!a.j){b.D(8);break}return u(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),u(b,ns(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,u(b,a.init(),0)}})};
757
+ function ns(){var a=new Nc,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new O(2,9,9001,b.error));c.preventDefault()};return a}ds("idb",function(){return Yc()||Uc()||!window.indexedDB?null:new ms});function os(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}os.prototype.Sa=function(){return this.i};os.prototype.Ba=function(){return this.h};os.prototype.key=function(){return this.l};os.prototype.toString=function(){return this.j};
758
+ function ps(a){a=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(a);if(null==a)return null;var b=a[1];if("manifest"!=b&&"segment"!=b)return null;var c=a[2];if(!c)return null;var d=a[3];return d&&null!=b?new os(b,c,d,Number(a[4])):null};function qs(a,b){this.h=a;this.g=b}
759
+ function rs(a,b){var c=new Q(null,0);c.bb(b.duration);var d=b.streams.filter(function(l){return"audio"==l.type}),e=b.streams.filter(function(l){return"video"==l.type});d=ss(a,d,e,c);e=b.streams.filter(function(l){return l.type==Ib}).map(function(l){return ts(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return ts(a,l,c)}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=t(d.values()),k=h.next();!k.done;k=h.next())k=k.value,k.audio&&k.audio.encrypted&&(k.audio.drmInfos=
754
760
  g),k.video&&k.video.encrypted&&(k.video.drmInfos=g);return{presentationTimeline:c,minBufferTime:2,offlineSessionIds:b.sessionIds,variants:Array.from(d.values()),textStreams:e,imageStreams:f,sequenceMode:b.sequenceMode||!1}}
755
- function qs(a,b,c,d){for(var e=new Set,f=t(b),g=f.next();!g.done;g=f.next()){var h=t(g.value.variantIds);for(g=h.next();!g.done;g=h.next())e.add(g.value)}f=t(c);for(g=f.next();!g.done;g=f.next())for(h=t(g.value.variantIds),g=h.next();!g.done;g=h.next())e.add(g.value);f=new Map;e=t(e);for(g=e.next();!g.done;g=e.next())g=g.value,f.set(g,{id:g,language:"",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});b=t(b);for(e=b.next();!e.done;e=
756
- b.next())for(e=e.value,g=rs(a,e,d),h=t(e.variantIds),e=h.next();!e.done;e=h.next())e=f.get(e.value),e.language=g.language,e.primary=e.primary||g.primary,e.audio=g;c=t(c);for(b=c.next();!b.done;b=c.next())for(e=b.value,b=rs(a,e,d),g=t(e.variantIds),e=g.next();!e.done;e=g.next())e=f.get(e.value),e.primary=e.primary||b.primary,e.video=b;return f}
757
- function rs(a,b,c){var d=b.segments.map(function(e){return ss(a,e)});c.kc(d);return{id:b.id,originalId:b.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Yi(d),mimeType:b.mimeType,codecs:b.codecs,width:b.width||void 0,height:b.height||void 0,frameRate:b.frameRate,pixelAspectRatio:b.pixelAspectRatio,hdr:b.hdr,kind:b.kind,encrypted:b.encrypted,drmInfos:[],keyIds:b.keyIds,language:b.language,label:b.label,type:b.type,primary:b.primary,trickModeVideo:null,emsgSchemeIdUris:null,
758
- roles:b.roles,forced:b.forced,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,spatialAudio:b.spatialAudio,closedCaptions:b.closedCaptions,tilesLayout:b.tilesLayout}}function ss(a,b){var c=new ms("segment",a.h,a.g,b.dataKey);return new zi(b.startTime,b.endTime,function(){return[c.toString()]},0,null,null!=b.initSegmentKey?ts(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd,[],b.tilesLayout||"")}
759
- function ts(a,b){var c=new ms("segment",a.h,a.g,b);return new xi(function(){return[c.toString()]},0,null)};function us(){this.g=null}r=us.prototype;r.configure=function(){};
760
- r.start=function(a,b){var c=this,d,e,f,g,h,k,l;return I(function(m){switch(m.g){case 1:d=ns(a);c.g=d;if(null==d||"manifest"!=d.g)throw new O(2,1,9004,a);e=new Ur;va(m);return u(m,e.init(),4);case 4:return u(m,Yr(e,d.Ua(),d.Ba()),5);case 5:return f=m.h,u(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new os(d.Ua(),d.Ba()),l=ps(k,h),b.makeTextStreamsForClosedCaptions(l),m["return"](l);case 2:return xa(m),u(m,e.destroy(),7);case 7:ya(m,0)}})};r.stop=function(){return Promise.resolve()};
761
- r.update=function(){};r.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return I(function(m){switch(m.g){case 1:return d=c.g,e=new Ur,A(m,2,3),u(m,e.init(),5);case 5:return u(m,Yr(e,d.Ua(),d.Ba()),6);case 6:return f=m.h,u(m,f.getManifests([d.key()]),7);case 7:g=m.h;h=g[0];k=h.sessionIds.includes(a);l=void 0==h.expiration||h.expiration>b;if(!k||!l){m.D(3);break}return u(m,f.updateManifestExpiration(d.key(),b),3);case 3:return xa(m),u(m,e.destroy(),10);case 10:ya(m,0);break;case 2:F(m),m.D(3)}})};
762
- rg["application/x-offline-manifest"]=function(){return new us};function vs(){}function ws(a){var b=ns(a);b&&"manifest"==b.g?(a={uri:a,Cf:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=Ze(a)):a=b&&"segment"==b.g?xs(b.key(),b):Xe(new O(2,1,9004,a));return a}
763
- function xs(a,b){var c=new Ur;return Ze(void 0).na(function(){return c.init()}).na(function(){return Yr(c,b.Ua(),b.Ba())}).na(function(d){return d.getSegments([b.key()])}).na(function(d){return{uri:b,data:d[0].data,headers:{}}})["finally"](function(){return c.destroy()})}J("shaka.offline.OfflineScheme",vs);vs.plugin=ws;hf("offline",ws);function ys(a,b,c){var d,e,f,g,h,k;return I(function(l){switch(l.g){case 1:d=[];for(var m=[],n=t(c),p=n.next();!p.done;p=n.next()){p=p.value;for(var q=!1,x=t(m),w=x.next();!w.done;w=x.next())if(w=w.value,zs(w.info,p)){w.sessionIds.push(p.sessionId);q=!0;break}q||m.push({info:p,sessionIds:[p.sessionId]})}e=t(m);f=e.next();case 2:if(f.done){l.D(4);break}g=f.value;h=As(a,b,g);return u(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.D(2);break;case 4:return l["return"](d)}})}
764
- function As(a,b,c){var d,e;return I(function(f){switch(f.g){case 1:return d=new Cf({Qb:b,onError:function(){},xd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),A(f,2),d.configure(a),u(f,Kf(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:wa(f,3);break;case 2:return F(f),u(f,d.destroy(),5);case 5:return f["return"]([]);case 3:return A(f,6),u(f,Vf(d),8);case 8:wa(f,7);break;case 6:return F(f),u(f,d.destroy(),
765
- 9);case 9:return f["return"]([]);case 7:return e=[],u(f,Promise.all(c.sessionIds.map(function(g){return I(function(h){if(1==h.g)return A(h,2),u(h,Wf(d,g),4);if(2!=h.g)return e.push(g),wa(h,0);F(h);z(h)})})),10);case 10:return u(f,d.destroy(),11);case 11:return f["return"](e)}})}
766
- function zs(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&fc(a.audioCapabilities,b.audioCapabilities,c)&&fc(a.videoCapabilities,b.videoCapabilities,c)};function Bs(a,b,c){var d=b.presentationTimeline.getDuration();b=Cs(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function Ds(a,b){var c=ps(new os(a.Ua(),a.Ba()),b),d=b.appMetadata||{};c=Cs(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d,isIncomplete:b.isIncomplete||!1}}
767
- function Cs(a){var b=[],c=ye(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(pe(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(qe(c.value));return b};function Es(){this.g={}}function Fs(a,b){var c=b.audio,d=b.video;c&&!d&&(a.g[c.id]=c.bandwidth||b.bandwidth);!c&&d&&(a.g[d.id]=d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g[c.id]=e;a.g[d.id]=f}}function Gs(a,b){a.g[b.id]=b.bandwidth||2048}function Hs(a,b){var c=a.g[b];null==c&&(c=0);return c};function Is(a){var b=this;if(a&&a.constructor!=S)throw new O(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.Gc()):(this.h=Nk(),this.g=new gf);this.i=[];this.j=[];var c=!a;this.l=new sf(function(){var d,e,f,g,h;return I(function(k){switch(k.g){case 1:return u(k,Promise.all(b.j.map(function(l){return Er(l)})),2);case 2:d=function(){};e=[];f=t(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return u(k,Promise.all(e),3);case 3:if(!c){k.D(4);break}return u(k,b.g.destroy(),4);
768
- case 4:b.h=null,b.g=null,z(k)}})})}function Js(){if(yd())a:{var a=t(Vr.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}r=Is.prototype;r.destroy=function(){return this.l.destroy()};r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Kk(a,b));return Pk(this.h,a)};r.getConfiguration=function(){var a=Nk();Pk(a,this.h,Nk());return a};r.Gc=function(){return this.g};
769
- r.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new Dr(this.g);this.j.push(f);b=Ks(this,a,b||{},function(){var g;return I(function(h){if(1==h.g)return u(h,qg(a,d.g,e.manifest.retryParameters,c||null),2);g=h.h;return h["return"](g())})},e,f);b=new We(b,function(){return Er(f)});b["finally"](function(){ec(d.j,f)});return Ls(this,b)};
770
- function Ks(a,b,c,d,e,f){var g,h,k,l,m,n,p,q,x,w,v,y,D,C;return I(function(B){switch(B.g){case 1:return Ms(),h=g=null,k=new Ur,n=m=l=null,A(B,2,3),u(B,d(),5);case 5:return g=B.h,u(B,Ns(a,b,g,e),6);case 6:p=B.h;Os(a);q=!p.presentationTimeline.U()&&!p.presentationTimeline.Nb();if(!q)throw new O(2,9,9005,b);return u(B,Ps(a,p,function(G){n=n||G},e),7);case 7:h=B.h;Os(a);if(n)throw n;return u(B,Qs(p,e),8);case 8:return u(B,k.init(),9);case 9:return Os(a),u(B,Wr(k),10);case 10:return l=B.h,Os(a),x=Rs(h,
771
- p,b,c,e,f),w=x.Qg,v=x.Je,u(B,l.Ba.addManifests([w]),11);case 11:y=B.h;Os(a);m=y[0];Os(a);if(n)throw n;return u(B,Ss(a,v,m,w,f,e,l.Ba,p,h),12);case 12:return Os(a),D=new ms("manifest",l.path.Ua,l.path.Ba,m),B["return"](Ds(D,w));case 3:return xa(B),u(B,k.destroy(),13);case 13:if(!g){B.D(14);break}return u(B,g.stop(),14);case 14:if(!h){B.D(16);break}return u(B,h.destroy(),16);case 16:ya(B,0);break;case 2:C=F(B);if(null==m){B.D(18);break}return u(B,Ts(m),18);case 18:throw n||C;}})}
772
- function Ss(a,b,c,d,e,f,g,h,k){var l,m,n,p,q,x,w,v,y,D;return I(function(C){switch(C.g){case 1:l={};m=0;n=function(B,G){var E,H,L,K,N,V,Y;return I(function(ja){if(1==ja.g){E={};H=t(B);for(L=H.next();!L.done;E={Gb:E.Gb},L=H.next())E.Gb=L.value,K=Ar(E.Gb,f),N=E.Gb.i,V=E.Gb.h,Y=function(ha){return function(pa){var Oa,Fa,Pa;return I(function(Ka){if(1==Ka.g)return u(Ka,g.addSegments([{data:pa}]),2);Oa=Ka.h;Os(a);Fa=ha.Gb.g;Pa=zr(Fa);l[Pa]=Oa[0];m+=pa.byteLength;z(Ka)})}}(E),Gr(e,E.Gb.groupId,K,N,V,Y);
773
- return u(ja,Ir(e),2)}if(!G)return ja.D(0);Os(a);Us(h,d,k,f);return u(ja,g.updateManifest(c,d),0)})};p=!1;A(C,2);if(!Vs(h)||!p||Ws(h)){C.D(4);break}return u(C,n(b.filter(function(B){return B.h}),!0),5);case 5:return Os(a),b=b.filter(function(B){return!B.h}),q=l,x=m,l={},m=0,u(C,Xs(g,c,d,q,x,function(){return Os(a)}),6);case 6:Os(a);case 4:if(p){C.D(7);break}return u(C,n(b,!1),8);case 8:return Os(a),w=l,v=m,l={},m=0,u(C,Xs(g,c,d,w,v,function(){return Os(a)}),9);case 9:Os(a);case 7:wa(C,0);break;case 2:return y=
774
- F(C),D=Object.values(l),u(C,g.removeSegments(D,function(){}),10);case 10:throw y;}})}function Ts(a){var b,c,d,e;return I(function(f){switch(f.g){case 1:return b=new Ur,u(f,b.init(),2);case 2:return u(f,Wr(b),3);case 3:return c=f.h,d=new ms("manifest",c.path.Ua,c.path.Ba,a),u(f,b.destroy(),4);case 4:return e=new Is,u(f,e.remove(d.toString()),0)}})}
775
- function Xs(a,b,c,d,e,f){var g,h,k,l,m,n,p,q,x,w,v;return I(function(y){switch(y.g){case 1:g=!1;A(y,2);h=!0;k=t(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=t(m.segments),p=n.next();!p.done;p=n.next())q=p.value,x=q.pendingSegmentRefId?d[q.pendingSegmentRefId]:null,null!=x&&(q.dataKey=x,q.pendingSegmentRefId=void 0),x=q.pendingInitSegmentRefId?d[q.pendingInitSegmentRefId]:null,null!=x&&(q.initSegmentKey=x,q.pendingInitSegmentRefId=void 0),q.pendingSegmentRefId&&(h=!1),q.pendingInitSegmentRefId&&
776
- (h=!1);c.size+=e;h&&(c.isIncomplete=!1);return u(y,a.updateManifest(b,c),4);case 4:g=!0;f();wa(y,0);break;case 2:return w=F(y),u(y,Ts(b),5);case 5:if(g){y.D(6);break}v=Object.values(d);return u(y,a.removeSegments(v,function(){}),6);case 6:throw w;}})}
777
- function Qs(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,x,w,v,y,D,C,B,G,E,H,L,K,N,V,Y,ja,ha;return I(function(pa){switch(pa.g){case 1:return c={width:Infinity,height:Infinity},Zd(a,b.restrictions,c),u(pa,ce(a,b.offline.usePersistentLicense),2);case 2:d=[];e=b.preferredAudioChannelCount;f=b.preferredDecodingAttributes;g=b.preferredVideoCodecs;h=b.preferredAudioCodecs;Nd(a,g,h,e,f);k=t(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,d.push(pe(m));n=t(a.textStreams);for(p=n.next();!p.done;p=n.next())q=
778
- p.value,d.push(qe(q));x=t(a.imageStreams);for(w=x.next();!w.done;w=x.next())v=w.value,d.push(re(v));return u(pa,b.offline.trackSelectionCallback(d),3);case 3:y=pa.h;D=a.presentationTimeline.getDuration();C=0;B=t(y);for(G=B.next();!G.done;G=B.next())E=G.value,H=E.bandwidth*D/8,C+=H;A(pa,4);return u(pa,b.offline.downloadSizeCallback(C),6);case 6:L=pa.h;if(!L)throw new O(2,9,9014);wa(pa,5);break;case 4:K=F(pa);if(K instanceof O)throw K;throw new O(2,9,9015);case 5:N=new Set;V=new Set;Y=new Set;ja=t(y);
779
- for(G=ja.next();!G.done;G=ja.next())ha=G.value,"variant"==ha.type&&N.add(ha.id),"text"==ha.type&&V.add(ha.id),"image"==ha.type&&Y.add(ha.id);a.variants=a.variants.filter(function(Oa){return N.has(Oa.id)});a.textStreams=a.textStreams.filter(function(Oa){return V.has(Oa.id)});a.imageStreams=a.imageStreams.filter(function(Oa){return Y.has(Oa.id)});Ys(a);z(pa)}})}
780
- function Rs(a,b,c,d,e,f){var g=Bs(c,b,d),h=e.offline.progressCallback;Fr(f,function(q,x){g.size=x;h(g,q)},function(q,x){k&&e.offline.usePersistentLicense&&l==x&&Sf(a,"cenc",q)});var k=Vs(b)&&!Ws(b),l=null;k&&(l=Zs.get(a.g.keySystem));for(var m=new Es,n=t(b.textStreams),p=n.next();!p.done;p=n.next())m.g[p.value.id]=52;n=t(b.imageStreams);for(p=n.next();!p.done;p=n.next())Gs(m,p.value);p=t(b.variants);for(n=p.next();!n.done;n=p.next())Fs(m,n.value);m=$s(f,m,b,e);f=m.streams;m=m.Je;p=a.g;n=e.offline.usePersistentLicense;
781
- p&&n&&(p.initData=[]);return{Qg:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Fc(),streams:f,sessionIds:n?$f(a):[],drmInfo:p,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode},Je:m}}function Vs(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
782
- function Ws(a){return a.variants.some(function(b){return(b.video?b.video.drmInfos:[]).concat(b.audio?b.audio.drmInfos:[]).some(function(c){return c.initData&&c.initData.length})})}function Us(a,b,c,d){b.expiration=c.Fc();c=$f(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(Vs(a)&&d.offline.usePersistentLicense&&!c.length)throw new O(2,9,9007);}r.remove=function(a){return at(this,bt(this,a))};
783
- function bt(a,b){var c,d,e,f,g,h;return I(function(k){switch(k.g){case 1:Ms();c=ns(b);if(null==c||"manifest"!=c.g)throw new O(2,9,9004,b);d=c;e=new Ur;va(k);return u(k,e.init(),4);case 4:return u(k,Yr(e,d.Ua(),d.Ba()),5);case 5:return f=k.h,u(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],u(k,Promise.all([ct(a,h,e),dt(f,d,h)]),2);case 2:return xa(k),u(k,e.destroy(),8);case 8:ya(k,0)}})}
784
- function et(a,b){for(var c=[],d=t(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:jd(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:jd(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function ct(a,b,c){return I(function(d){return u(d,ft(a.g,a.h.drm,c,b),0)})}
785
- function dt(a,b,c){function d(){}var e=gt(c);Ds(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}r.fh=function(){return at(this,ht(this))};
786
- function ht(a){var b,c,d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:return Ms(),b=a.g,c=a.h.drm,d=new Ur,e=!1,va(n),u(n,d.init(),4);case 4:f=[],Zr(d,function(p){return f.push(p)}),g=t(f),h=g.next();case 5:if(h.done){n.D(2);break}k=h.value;return u(n,k.getAll(),8);case 8:return l=n.h,u(n,ys(c,b,l),9);case 9:return m=n.h,u(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.D(5);break;case 2:return xa(n),u(n,d.destroy(),11);case 11:ya(n,3);break;case 3:return n["return"](!e)}})}
787
- r.list=function(){return at(this,it())};function it(){var a,b,c;return I(function(d){switch(d.g){case 1:return Ms(),a=[],b=new Ur,va(d),u(d,b.init(),4);case 4:return c=Promise.resolve(),Xr(b,function(e,f){c=c.then(function(){var g;return I(function(h){if(1==h.g)return u(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){var m=Ds(new ms("manifest",e.Ua,e.Ba,l),k);a.push(m)});z(h)})})}),u(d,c,2);case 2:return xa(d),u(d,b.destroy(),6);case 6:ya(d,3);break;case 3:return d["return"](a)}})}
788
- function Ns(a,b,c,d){var e,f,g,h,k;return I(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,modifyManifestRequest:function(){},modifySegmentRequest:function(){},filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){}},c.configure(d.manifest),Os(a),u(l,c.start(b,
789
- g),2);if(3!=l.g)return h=l.h,Os(a),k=jt(h),u(l,Promise.all(gb(k,function(m){return m.createSegmentIndex()})),3);Os(a);if(e)throw e;return l["return"](h)})}function Ps(a,b,c,d){var e;return I(function(f){switch(f.g){case 1:return e=new Cf({Qb:a.g,onError:c,xd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),u(f,Hf(e,b.variants,d.offline.usePersistentLicense),2);case 2:return u(f,Vf(e),3);case 3:return u(f,Uf(e),4);case 4:return f["return"](e)}})}
790
- function $s(a,b,c,d){var e=new Map,f=jt(c),g=new Map;f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=kt(a,b,c,h,d,e);g.set(h.id,k)}a=t(c.variants);for(b=a.next();!b.done;b=a.next())b=b.value,b.audio&&g.get(b.audio.id).variantIds.push(b.id),b.video&&g.get(b.video.id).variantIds.push(b.id);return{streams:Array.from(g.values()),Je:Array.from(e.values())}}
791
- function kt(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,kind:d.kind,language:d.language,label:d.label,width:d.width||null,height:d.height||null,encrypted:d.encrypted,keyIds:d.keyIds,segments:[],variantIds:[],roles:d.roles,forced:d.forced,channelsCount:d.channelsCount,audioSamplingRate:d.audioSamplingRate,spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,
792
- tilesLayout:d.tilesLayout},h=e.offline.numberOfParallelDownloads,k=0;lt(d,c.presentationTimeline.qb(),function(l){var m=zr(l),n=void 0;if(!f.has(m)){var p=l.endTime-l.startTime;p=Hs(b,d.id)*p;p=Cr(a.g,p);f.set(m,new yr(l,p,k,!1))}l.g&&(n=zr(l.g),f.has(n)||(p=.5*Hs(b,d.id),p=Cr(a.g,p),f.set(n,new yr(l.g,p,k,!0))));g.segments.push({pendingInitSegmentRefId:n,initSegmentKey:n?0:null,startTime:l.startTime,endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,
793
- tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function lt(a,b,c){b=a.segmentIndex.find(b);if(null!=b)for(var d=a.segmentIndex.get(b);d;)c(d),d=a.segmentIndex.get(++b)}function Os(a){if(a.l.g)throw new O(2,9,7001);}function Ms(){if(!Js())throw new O(2,9,9E3);}function at(a,b){return I(function(c){if(1==c.g)return a.i.push(b),va(c),u(c,b,4);if(2!=c.g)return c["return"](c.h);xa(c);ec(a.i,b);return ya(c,0)})}
794
- function Ls(a,b){var c=b.promise;a.i.push(c);return b["finally"](function(){ec(a.i,c)})}function gt(a){var b=new Set;a=t(a.streams);for(var c=a.next();!c.done;c=a.next()){c=t(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.add(d.initSegmentKey),b.add(d.dataKey)}return Array.from(b)}
795
- function ft(a,b,c,d){var e,f,g;return I(function(h){if(1==h.g){if(!d.drmInfo)return h["return"]();e=$r(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:et(d,!1),videoCapabilities:et(d,!0)}});return u(h,ys(b,a,f),2)}return 3!=h.g?(g=h.h,u(h,e.remove(g),3)):u(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
796
- function jt(a){for(var b=new Set,c=t(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);c=t(a.imageStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=t(a.variants);for(c=a.next();!c.done;c=a.next())c=c.value,c.audio&&b.add(c.audio),c.video&&b.add(c.video);return b}
797
- function Ys(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=t(b),d=c.next();!d.done;d=c.next()){d=t(b);for(var e=d.next();!e.done;e=d.next());}b=t(a);for(c=b.next();!c.done;c=b.next())for(c=t(a),d=c.next();!d.done;d=c.next());}J("shaka.offline.Storage",Is);Is.deleteAll=function(){var a;return I(function(b){return 1==b.g?(a=new Ur,va(b),u(b,as(a),2)):5!=b.g?(xa(b),u(b,a.destroy(),5)):ya(b,0)})};Is.prototype.list=Is.prototype.list;
798
- Is.prototype.removeEmeSessions=Is.prototype.fh;Is.prototype.remove=Is.prototype.remove;Is.prototype.store=Is.prototype.store;Is.prototype.getNetworkingEngine=Is.prototype.Gc;Is.prototype.getConfiguration=Is.prototype.getConfiguration;Is.prototype.configure=Is.prototype.configure;Is.prototype.destroy=Is.prototype.destroy;Is.support=Js;
799
- var Zs=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");
800
- wm.offline=Js;function mt(){}function nt(){for(var a=t(ot),b=a.next();!b.done;b=a.next()){b=b.value;try{b.Yf()}catch(c){Ua("Error installing polyfill!",c)}}}function pt(a,b){for(var c={priority:b||0,Yf:a},d=0;d<ot.length;d++)if(ot[d].priority<c.priority){ot.splice(d,0,c);return}ot.push(c)}J("shaka.polyfill",mt);mt.register=pt;mt.installAll=nt;var ot=[];function qt(){}function rt(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=t(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())st(b.value)}function st(a){var b="aria-"+a.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,a,{get:function(){return this.getAttribute(b)},set:function(c){null==c||void 0==c?this.removeAttribute(b):this.setAttribute(b,c)}})}mt.Aria=qt;qt.install=rt;pt(rt);function tt(){}function ut(){vt()}mt.EncryptionScheme=tt;tt.install=ut;pt(ut,-2);function wt(){}
801
- function xt(){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}}),
802
- Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",yt);document.addEventListener("webkitfullscreenerror",yt);document.addEventListener("mozfullscreenchange",yt);document.addEventListener("mozfullscreenerror",yt);document.addEventListener("MSFullscreenChange",yt);document.addEventListener("MSFullscreenError",yt)}}
803
- function yt(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)}mt.Fullscreen=wt;wt.install=xt;pt(xt);function zt(){}function At(){var a=!0;if(Jd()||Gd("PlayStation 5")||Id())a=!1;Id()&&Gd("Android")&&(a=!0);a&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),Bt=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=Ct)}
804
- function Ct(a){var b,c,d,e,f,g,h,k,l,m,n,p,q,x,w,v;return I(function(y){switch(y.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return y["return"](b);if("media-source"==a.type){if(!yd()||a.video&&(c=a.video.contentType,d=MediaSource.isTypeSupported(c),!d)||a.audio&&(e=a.audio.contentType,f=MediaSource.isTypeSupported(e),!f))return y["return"](b)}else if("file"==a.type){if(a.video&&(g=a.video.contentType,h=zd(g),!h)||a.audio&&(k=a.audio.contentType,
805
- l=zd(k),!l))return y["return"](b)}else return y["return"](b);if(!a.keySystemConfiguration)return b.supported=!0,y["return"](Promise.resolve(b));m=a.keySystemConfiguration;n=[];p=[];m.audio&&(q={robustness:m.audio.robustness||"",contentType:a.audio.contentType},n.push(q));m.video&&(x={robustness:m.video.robustness||"",contentType:a.video.contentType},p.push(x));w={initDataTypes:[m.initDataType],distinctiveIdentifier:m.distinctiveIdentifier,persistentState:m.persistentState,sessionTypes:m.sessionTypes};
806
- n.length&&(w.audioCapabilities=n);p.length&&(w.videoCapabilities=p);A(y,3);return u(y,navigator.requestMediaKeySystemAccess(m.keySystem,[w]),5);case 5:v=y.h;wa(y,4);break;case 3:F(y);case 4:v&&(b.supported=!0,b.keySystemAccess=v);case 2:return y["return"](b)}})}mt.MediaCapabilities=zt;zt.install=At;var Bt=null;zt.originalMcap=Bt;pt(At,-1);function Dt(){}function Et(){var a=Kd();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?Ft():a?12>=a?(Gt(),Ht()):Gt():(Gd("Tizen 2")||Gd("Tizen 3")||Gd("Tizen 4"))&&It());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&Jt()}
807
- function Gt(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Ga.apply(0,arguments));b.abort=function(){};return b}}function Ht(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function It(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=md(b)[0]&&a(b)}}
808
- function Ft(){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)}}
809
- function Jt(){var a=MediaSource.isTypeSupported;Gd("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)})}mt.MediaSource=Dt;Dt.install=Et;pt(Et);function Kt(){}function Lt(){screen.orientation||void 0!=window.orientation&&Mt()}function Mt(){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 Nt;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new M("change");b.dispatchEvent(c)})}mt.Orientation=Kt;
810
- Kt.install=Lt;function Nt(){fb.call(this);this.type="";this.angle=0}ra(Nt,fb);
811
- Nt.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)};
812
- Nt.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};pt(Lt);function Ot(){}function Pt(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=Qt,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Rt,window.MediaKeys=St,window.MediaKeySystemAccess=Tt,window.shakaMediaKeysPolyfill=!0)}function Qt(){return Promise.reject(Error("The key system specified is not supported."))}
813
- function Rt(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}mt.PatchedMediaKeysNop=Ot;Ot.install=Pt;function St(){throw new TypeError("Illegal constructor.");}St.prototype.createSession=function(){};St.prototype.setServerCertificate=function(){};function Tt(){this.keySystem="";throw new TypeError("Illegal constructor.");}Tt.prototype.getConfiguration=function(){};Tt.prototype.createMediaKeys=function(){};pt(Pt,-10);function Ut(){}
814
- function Vt(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)Wt="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=Xt;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=Yt;window.MediaKeys=Zt;window.MediaKeySystemAccess=$t;window.shakaMediaKeysPolyfill=!0}}
815
- function au(a){var b=Wt;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function Xt(a,b){try{var c=new $t(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function Yt(a){var b=this.mediaKeys;b&&b!=a&&bu(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&bu(a,this);return Promise.resolve()}mt.PatchedMediaKeysWebkit=Ut;Ut.install=Vt;
816
- function $t(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");for(var f=t(b),g=f.next();!g.done;g=f.next()){g=g.value;var h={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:g.initDataTypes,sessionTypes:["temporary"],label:g.label},k=!1;if(g.audioCapabilities)for(var l=t(g.audioCapabilities),
761
+ function ss(a,b,c,d){for(var e=new Set,f=t(b),g=f.next();!g.done;g=f.next()){var h=t(g.value.variantIds);for(g=h.next();!g.done;g=h.next())e.add(g.value)}f=t(c);for(g=f.next();!g.done;g=f.next())for(h=t(g.value.variantIds),g=h.next();!g.done;g=h.next())e.add(g.value);f=new Map;e=t(e);for(g=e.next();!g.done;g=e.next())g=g.value,f.set(g,{id:g,language:"",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});b=t(b);for(e=b.next();!e.done;e=
762
+ b.next())for(e=e.value,g=ts(a,e,d),h=t(e.variantIds),e=h.next();!e.done;e=h.next())e=f.get(e.value),e.language=g.language,e.primary=e.primary||g.primary,e.audio=g;c=t(c);for(b=c.next();!b.done;b=c.next())for(e=b.value,b=ts(a,e,d),g=t(e.variantIds),e=g.next();!e.done;e=g.next())e=f.get(e.value),e.primary=e.primary||b.primary,e.video=b;return f}
763
+ function ts(a,b,c){var d=b.segments.map(function(e){return us(a,e)});c.ic(d);return{id:b.id,originalId:b.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Zi(d),mimeType:b.mimeType,codecs:b.codecs,width:b.width||void 0,height:b.height||void 0,frameRate:b.frameRate,pixelAspectRatio:b.pixelAspectRatio,hdr:b.hdr,kind:b.kind,encrypted:b.encrypted,drmInfos:[],keyIds:b.keyIds,language:b.language,label:b.label,type:b.type,primary:b.primary,trickModeVideo:null,emsgSchemeIdUris:null,
764
+ roles:b.roles,forced:b.forced,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,spatialAudio:b.spatialAudio,closedCaptions:b.closedCaptions,tilesLayout:b.tilesLayout}}function us(a,b){var c=new os("segment",a.h,a.g,b.dataKey);return new Xh(b.startTime,b.endTime,function(){return[c.toString()]},0,null,null!=b.initSegmentKey?vs(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd,[],b.tilesLayout||"")}
765
+ function vs(a,b){var c=new os("segment",a.h,a.g,b);return new Vh(function(){return[c.toString()]},0,null)};function ws(){this.g=null}r=ws.prototype;r.configure=function(){};
766
+ r.start=function(a,b){var c=this,d,e,f,g,h,k,l;return I(function(m){switch(m.g){case 1:d=ps(a);c.g=d;if(null==d||"manifest"!=d.g)throw new O(2,1,9004,a);e=new Wr;ua(m);return u(m,e.init(),4);case 4:return u(m,$r(e,d.Sa(),d.Ba()),5);case 5:return f=m.h,u(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new qs(d.Sa(),d.Ba()),l=rs(k,h),b.makeTextStreamsForClosedCaptions(l),m["return"](l);case 2:return xa(m),u(m,e.destroy(),7);case 7:ya(m,0)}})};r.stop=function(){return Promise.resolve()};
767
+ r.update=function(){};r.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return I(function(m){switch(m.g){case 1:return d=c.g,e=new Wr,A(m,2,3),u(m,e.init(),5);case 5:return u(m,$r(e,d.Sa(),d.Ba()),6);case 6:return f=m.h,u(m,f.getManifests([d.key()]),7);case 7:g=m.h;h=g[0];k=h.sessionIds.includes(a);l=void 0==h.expiration||h.expiration>b;if(!k||!l){m.D(3);break}return u(m,f.updateManifestExpiration(d.key(),b),3);case 3:return xa(m),u(m,e.destroy(),10);case 10:ya(m,0);break;case 2:F(m),m.D(3)}})};
768
+ sg["application/x-offline-manifest"]=function(){return new ws};function xs(){}function ys(a){var b=ps(a);b&&"manifest"==b.g?(a={uri:a,Cf:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=$e(a)):a=b&&"segment"==b.g?zs(b.key(),b):Ye(new O(2,1,9004,a));return a}
769
+ function zs(a,b){var c=new Wr;return $e(void 0).na(function(){return c.init()}).na(function(){return $r(c,b.Sa(),b.Ba())}).na(function(d){return d.getSegments([b.key()])}).na(function(d){return{uri:b,data:d[0].data,headers:{}}})["finally"](function(){return c.destroy()})}J("shaka.offline.OfflineScheme",xs);xs.plugin=ys;jf("offline",ys);function As(a,b,c){var d,e,f,g,h,k;return I(function(l){switch(l.g){case 1:d=[];for(var m=[],n=t(c),p=n.next();!p.done;p=n.next()){p=p.value;for(var q=!1,w=t(m),y=w.next();!y.done;y=w.next())if(y=y.value,Bs(y.info,p)){y.sessionIds.push(p.sessionId);q=!0;break}q||m.push({info:p,sessionIds:[p.sessionId]})}e=t(m);f=e.next();case 2:if(f.done){l.D(4);break}g=f.value;h=Cs(a,b,g);return u(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.D(2);break;case 4:return l["return"](d)}})}
770
+ function Cs(a,b,c){var d,e;return I(function(f){switch(f.g){case 1:return d=new Df({Ob:b,onError:function(){},xd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),A(f,2),d.configure(a),u(f,Lf(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:va(f,3);break;case 2:return F(f),u(f,d.destroy(),5);case 5:return f["return"]([]);case 3:return A(f,6),u(f,Wf(d),8);case 8:va(f,7);break;case 6:return F(f),u(f,d.destroy(),
771
+ 9);case 9:return f["return"]([]);case 7:return e=[],u(f,Promise.all(c.sessionIds.map(function(g){return I(function(h){if(1==h.g)return A(h,2),u(h,Xf(d,g),4);if(2!=h.g)return e.push(g),va(h,0);F(h);z(h)})})),10);case 10:return u(f,d.destroy(),11);case 11:return f["return"](e)}})}
772
+ function Bs(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&ec(a.audioCapabilities,b.audioCapabilities,c)&&ec(a.videoCapabilities,b.videoCapabilities,c)};function Ds(a,b,c){var d=b.presentationTimeline.getDuration();b=Es(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function Fs(a,b){var c=rs(new qs(a.Sa(),a.Ba()),b),d=b.appMetadata||{};c=Es(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d,isIncomplete:b.isIncomplete||!1}}
773
+ function Es(a){var b=[],c=ze(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(qe(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(re(c.value));return b};function Gs(){this.g={}}function Hs(a,b){var c=b.audio,d=b.video;c&&!d&&(a.g[c.id]=c.bandwidth||b.bandwidth);!c&&d&&(a.g[d.id]=d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g[c.id]=e;a.g[d.id]=f}}function Is(a,b){a.g[b.id]=b.bandwidth||2048}function Js(a,b){var c=a.g[b];null==c&&(c=0);return c};function Ks(a){var b=this;if(a&&a.constructor!=S)throw new O(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.Ec()):(this.h=Nk(),this.g=new hf);this.i=[];this.j=[];var c=!a;this.l=new tf(function(){var d,e,f,g,h;return I(function(k){switch(k.g){case 1:return u(k,Promise.all(b.j.map(function(l){return Gr(l)})),2);case 2:d=function(){};e=[];f=t(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return u(k,Promise.all(e),3);case 3:if(!c){k.D(4);break}return u(k,b.g.destroy(),4);
774
+ case 4:b.h=null,b.g=null,z(k)}})})}function Ls(){if(Qc())a:{var a=t(Xr.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}r=Ks.prototype;r.destroy=function(){return this.l.destroy()};r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Kk(a,b));return Pk(this.h,a)};r.getConfiguration=function(){var a=Nk();Pk(a,this.h,Nk());return a};r.Ec=function(){return this.g};
775
+ r.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new Fr(this.g);this.j.push(f);b=Ms(this,a,b||{},function(){var g;return I(function(h){if(1==h.g)return u(h,rg(a,d.g,e.manifest.retryParameters,c||null),2);g=h.h;return h["return"](g())})},e,f);b=new Xe(b,function(){return Gr(f)});b["finally"](function(){dc(d.j,f)});return Ns(this,b)};
776
+ function Ms(a,b,c,d,e,f){var g,h,k,l,m,n,p,q,w,y,x,v,D,C;return I(function(B){switch(B.g){case 1:return Os(),h=g=null,k=new Wr,n=m=l=null,A(B,2,3),u(B,d(),5);case 5:return g=B.h,u(B,Ps(a,b,g,e),6);case 6:p=B.h;Qs(a);q=!p.presentationTimeline.U()&&!p.presentationTimeline.Lb();if(!q)throw new O(2,9,9005,b);return u(B,Rs(a,p,function(G){n=n||G},e),7);case 7:h=B.h;Qs(a);if(n)throw n;return u(B,Ss(p,e),8);case 8:return u(B,k.init(),9);case 9:return Qs(a),u(B,Yr(k),10);case 10:return l=B.h,Qs(a),w=Ts(h,
777
+ p,b,c,e,f),y=w.Qg,x=w.Ne,u(B,l.Ba.addManifests([y]),11);case 11:v=B.h;Qs(a);m=v[0];Qs(a);if(n)throw n;return u(B,Us(a,x,m,y,f,e,l.Ba,p,h),12);case 12:return Qs(a),D=new os("manifest",l.path.Sa,l.path.Ba,m),B["return"](Fs(D,y));case 3:return xa(B),u(B,k.destroy(),13);case 13:if(!g){B.D(14);break}return u(B,g.stop(),14);case 14:if(!h){B.D(16);break}return u(B,h.destroy(),16);case 16:ya(B,0);break;case 2:C=F(B);if(null==m){B.D(18);break}return u(B,Vs(m),18);case 18:throw n||C;}})}
778
+ function Us(a,b,c,d,e,f,g,h,k){var l,m,n,p,q,w,y,x,v,D;return I(function(C){switch(C.g){case 1:l={};m=0;n=function(B,G){var E,H,N,K,M,V,Z;return I(function(ha){if(1==ha.g){E={};H=t(B);for(N=H.next();!N.done;E={Eb:E.Eb},N=H.next())E.Eb=N.value,K=Cr(E.Eb,f),M=E.Eb.i,V=E.Eb.h,Z=function(ja){return function(wa){var Ma,Fa,Sa;return I(function(Ga){if(1==Ga.g)return u(Ga,g.addSegments([{data:wa}]),2);Ma=Ga.h;Qs(a);Fa=ja.Eb.g;Sa=Br(Fa);l[Sa]=Ma[0];m+=wa.byteLength;z(Ga)})}}(E),Ir(e,E.Eb.groupId,K,M,V,Z);
779
+ return u(ha,Kr(e),2)}if(!G)return ha.D(0);Qs(a);Ws(h,d,k,f);return u(ha,g.updateManifest(c,d),0)})};p=!1;A(C,2);if(!Xs(h)||!p||Ys(h)){C.D(4);break}return u(C,n(b.filter(function(B){return B.h}),!0),5);case 5:return Qs(a),b=b.filter(function(B){return!B.h}),q=l,w=m,l={},m=0,u(C,Zs(g,c,d,q,w,function(){return Qs(a)}),6);case 6:Qs(a);case 4:if(p){C.D(7);break}return u(C,n(b,!1),8);case 8:return Qs(a),y=l,x=m,l={},m=0,u(C,Zs(g,c,d,y,x,function(){return Qs(a)}),9);case 9:Qs(a);case 7:va(C,0);break;case 2:return v=
780
+ F(C),D=Object.values(l),u(C,g.removeSegments(D,function(){}),10);case 10:throw v;}})}function Vs(a){var b,c,d,e;return I(function(f){switch(f.g){case 1:return b=new Wr,u(f,b.init(),2);case 2:return u(f,Yr(b),3);case 3:return c=f.h,d=new os("manifest",c.path.Sa,c.path.Ba,a),u(f,b.destroy(),4);case 4:return e=new Ks,u(f,e.remove(d.toString()),0)}})}
781
+ function Zs(a,b,c,d,e,f){var g,h,k,l,m,n,p,q,w,y,x;return I(function(v){switch(v.g){case 1:g=!1;A(v,2);h=!0;k=t(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=t(m.segments),p=n.next();!p.done;p=n.next())q=p.value,w=q.pendingSegmentRefId?d[q.pendingSegmentRefId]:null,null!=w&&(q.dataKey=w,q.pendingSegmentRefId=void 0),w=q.pendingInitSegmentRefId?d[q.pendingInitSegmentRefId]:null,null!=w&&(q.initSegmentKey=w,q.pendingInitSegmentRefId=void 0),q.pendingSegmentRefId&&(h=!1),q.pendingInitSegmentRefId&&
782
+ (h=!1);c.size+=e;h&&(c.isIncomplete=!1);return u(v,a.updateManifest(b,c),4);case 4:g=!0;f();va(v,0);break;case 2:return y=F(v),u(v,Vs(b),5);case 5:if(g){v.D(6);break}x=Object.values(d);return u(v,a.removeSegments(x,function(){}),6);case 6:throw y;}})}
783
+ function Ss(a,b){var c,d,e,f,g,h,k,l,m,n,p,q,w,y,x,v,D,C,B,G,E,H,N,K,M,V,Z,ha,ja;return I(function(wa){switch(wa.g){case 1:return c={width:Infinity,height:Infinity},$d(a,b.restrictions,c),u(wa,de(a,b.offline.usePersistentLicense),2);case 2:d=[];e=b.preferredAudioChannelCount;f=b.preferredDecodingAttributes;g=b.preferredVideoCodecs;h=b.preferredAudioCodecs;Od(a,g,h,e,f);k=t(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,d.push(qe(m));n=t(a.textStreams);for(p=n.next();!p.done;p=n.next())q=
784
+ p.value,d.push(re(q));w=t(a.imageStreams);for(y=w.next();!y.done;y=w.next())x=y.value,d.push(se(x));return u(wa,b.offline.trackSelectionCallback(d),3);case 3:v=wa.h;D=a.presentationTimeline.getDuration();C=0;B=t(v);for(G=B.next();!G.done;G=B.next())E=G.value,H=E.bandwidth*D/8,C+=H;A(wa,4);return u(wa,b.offline.downloadSizeCallback(C),6);case 6:N=wa.h;if(!N)throw new O(2,9,9014);va(wa,5);break;case 4:K=F(wa);if(K instanceof O)throw K;throw new O(2,9,9015);case 5:M=new Set;V=new Set;Z=new Set;ha=t(v);
785
+ for(G=ha.next();!G.done;G=ha.next())ja=G.value,"variant"==ja.type&&M.add(ja.id),"text"==ja.type&&V.add(ja.id),"image"==ja.type&&Z.add(ja.id);a.variants=a.variants.filter(function(Ma){return M.has(Ma.id)});a.textStreams=a.textStreams.filter(function(Ma){return V.has(Ma.id)});a.imageStreams=a.imageStreams.filter(function(Ma){return Z.has(Ma.id)});$s(a);z(wa)}})}
786
+ function Ts(a,b,c,d,e,f){var g=Ds(c,b,d),h=e.offline.progressCallback;Hr(f,function(q,w){g.size=w;h(g,q)},function(q,w){k&&e.offline.usePersistentLicense&&l==w&&Tf(a,"cenc",q)});var k=Xs(b)&&!Ys(b),l=null;k&&(l=at.get(a.g.keySystem));for(var m=new Gs,n=t(b.textStreams),p=n.next();!p.done;p=n.next())m.g[p.value.id]=52;n=t(b.imageStreams);for(p=n.next();!p.done;p=n.next())Is(m,p.value);p=t(b.variants);for(n=p.next();!n.done;n=p.next())Hs(m,n.value);m=bt(f,m,b,e);f=m.streams;m=m.Ne;p=a.g;n=e.offline.usePersistentLicense;
787
+ p&&n&&(p.initData=[]);return{Qg:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Dc(),streams:f,sessionIds:n?ag(a):[],drmInfo:p,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode},Ne:m}}function Xs(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})}
788
+ function Ys(a){return a.variants.some(function(b){return(b.video?b.video.drmInfos:[]).concat(b.audio?b.audio.drmInfos:[]).some(function(c){return c.initData&&c.initData.length})})}function Ws(a,b,c,d){b.expiration=c.Dc();c=ag(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(Xs(a)&&d.offline.usePersistentLicense&&!c.length)throw new O(2,9,9007);}r.remove=function(a){return ct(this,dt(this,a))};
789
+ function dt(a,b){var c,d,e,f,g,h;return I(function(k){switch(k.g){case 1:Os();c=ps(b);if(null==c||"manifest"!=c.g)throw new O(2,9,9004,b);d=c;e=new Wr;ua(k);return u(k,e.init(),4);case 4:return u(k,$r(e,d.Sa(),d.Ba()),5);case 5:return f=k.h,u(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],u(k,Promise.all([et(a,h,e),ft(f,d,h)]),2);case 2:return xa(k),u(k,e.destroy(),8);case 8:ya(k,0)}})}
790
+ function gt(a,b){for(var c=[],d=t(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:xd(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:xd(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function et(a,b,c){return I(function(d){return u(d,ht(a.g,a.h.drm,c,b),0)})}
791
+ function ft(a,b,c){function d(){}var e=it(c);Fs(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}r.eh=function(){return ct(this,jt(this))};
792
+ function jt(a){var b,c,d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:return Os(),b=a.g,c=a.h.drm,d=new Wr,e=!1,ua(n),u(n,d.init(),4);case 4:f=[],as(d,function(p){return f.push(p)}),g=t(f),h=g.next();case 5:if(h.done){n.D(2);break}k=h.value;return u(n,k.getAll(),8);case 8:return l=n.h,u(n,As(c,b,l),9);case 9:return m=n.h,u(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.D(5);break;case 2:return xa(n),u(n,d.destroy(),11);case 11:ya(n,3);break;case 3:return n["return"](!e)}})}
793
+ r.list=function(){return ct(this,kt())};function kt(){var a,b,c;return I(function(d){switch(d.g){case 1:return Os(),a=[],b=new Wr,ua(d),u(d,b.init(),4);case 4:return c=Promise.resolve(),Zr(b,function(e,f){c=c.then(function(){var g;return I(function(h){if(1==h.g)return u(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){var m=Fs(new os("manifest",e.Sa,e.Ba,l),k);a.push(m)});z(h)})})}),u(d,c,2);case 2:return xa(d),u(d,b.destroy(),6);case 6:ya(d,3);break;case 3:return d["return"](a)}})}
794
+ function Ps(a,b,c,d){var e,f,g,h,k;return I(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,modifyManifestRequest:function(){},modifySegmentRequest:function(){},filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){}},c.configure(d.manifest),Qs(a),u(l,c.start(b,
795
+ g),2);if(3!=l.g)return h=l.h,Qs(a),k=lt(h),u(l,Promise.all(gb(k,function(m){return m.createSegmentIndex()})),3);Qs(a);if(e)throw e;return l["return"](h)})}function Rs(a,b,c,d){var e;return I(function(f){switch(f.g){case 1:return e=new Df({Ob:a.g,onError:c,xd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),u(f,If(e,b.variants,d.offline.usePersistentLicense),2);case 2:return u(f,Wf(e),3);case 3:return u(f,Vf(e),4);case 4:return f["return"](e)}})}
796
+ function bt(a,b,c,d){var e=new Map,f=lt(c),g=new Map;f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=mt(a,b,c,h,d,e);g.set(h.id,k)}a=t(c.variants);for(b=a.next();!b.done;b=a.next())b=b.value,b.audio&&g.get(b.audio.id).variantIds.push(b.id),b.video&&g.get(b.video.id).variantIds.push(b.id);return{streams:Array.from(g.values()),Ne:Array.from(e.values())}}
797
+ function mt(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,kind:d.kind,language:d.language,label:d.label,width:d.width||null,height:d.height||null,encrypted:d.encrypted,keyIds:d.keyIds,segments:[],variantIds:[],roles:d.roles,forced:d.forced,channelsCount:d.channelsCount,audioSamplingRate:d.audioSamplingRate,spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,
798
+ tilesLayout:d.tilesLayout},h=e.offline.numberOfParallelDownloads,k=0;nt(d,c.presentationTimeline.ob(),function(l){var m=Br(l),n=void 0;if(!f.has(m)){var p=l.endTime-l.startTime;p=Js(b,d.id)*p;p=Er(a.g,p);f.set(m,new Ar(l,p,k,!1))}l.i&&(n=Br(l.i),f.has(n)||(p=.5*Js(b,d.id),p=Er(a.g,p),f.set(n,new Ar(l.i,p,k,!0))));g.segments.push({pendingInitSegmentRefId:n,initSegmentKey:n?0:null,startTime:l.startTime,endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,
799
+ tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0});k=(k+1)%h});return g}function nt(a,b,c){b=a.segmentIndex.find(b);if(null!=b)for(var d=a.segmentIndex.get(b);d;)c(d),d=a.segmentIndex.get(++b)}function Qs(a){if(a.l.g)throw new O(2,9,7001);}function Os(){if(!Ls())throw new O(2,9,9E3);}function ct(a,b){return I(function(c){if(1==c.g)return a.i.push(b),ua(c),u(c,b,4);if(2!=c.g)return c["return"](c.h);xa(c);dc(a.i,b);return ya(c,0)})}
800
+ function Ns(a,b){var c=b.promise;a.i.push(c);return b["finally"](function(){dc(a.i,c)})}function it(a){var b=new Set;a=t(a.streams);for(var c=a.next();!c.done;c=a.next()){c=t(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.add(d.initSegmentKey),b.add(d.dataKey)}return Array.from(b)}
801
+ function ht(a,b,c,d){var e,f,g;return I(function(h){if(1==h.g){if(!d.drmInfo)return h["return"]();e=bs(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:gt(d,!1),videoCapabilities:gt(d,!0)}});return u(h,As(b,a,f),2)}return 3!=h.g?(g=h.h,u(h,e.remove(g),3)):u(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})}
802
+ function lt(a){for(var b=new Set,c=t(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);c=t(a.imageStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=t(a.variants);for(c=a.next();!c.done;c=a.next())c=c.value,c.audio&&b.add(c.audio),c.video&&b.add(c.video);return b}
803
+ function $s(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=t(b),d=c.next();!d.done;d=c.next()){d=t(b);for(var e=d.next();!e.done;e=d.next());}b=t(a);for(c=b.next();!c.done;c=b.next())for(c=t(a),d=c.next();!d.done;d=c.next());}J("shaka.offline.Storage",Ks);Ks.deleteAll=function(){var a;return I(function(b){return 1==b.g?(a=new Wr,ua(b),u(b,cs(a),2)):5!=b.g?(xa(b),u(b,a.destroy(),5)):ya(b,0)})};Ks.prototype.list=Ks.prototype.list;
804
+ Ks.prototype.removeEmeSessions=Ks.prototype.eh;Ks.prototype.remove=Ks.prototype.remove;Ks.prototype.store=Ks.prototype.store;Ks.prototype.getNetworkingEngine=Ks.prototype.Ec;Ks.prototype.getConfiguration=Ks.prototype.getConfiguration;Ks.prototype.configure=Ks.prototype.configure;Ks.prototype.destroy=Ks.prototype.destroy;Ks.support=Ls;
805
+ var at=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");
806
+ wm.offline=Ls;function ot(){}function pt(){for(var a=t(qt),b=a.next();!b.done;b=a.next()){b=b.value;try{b.Yf()}catch(c){Ua("Error installing polyfill!",c)}}}function rt(a,b){for(var c={priority:b||0,Yf:a},d=0;d<qt.length;d++)if(qt[d].priority<c.priority){qt.splice(d,0,c);return}qt.push(c)}J("shaka.polyfill",ot);ot.register=rt;ot.installAll=pt;var qt=[];function st(){}function tt(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var a=t(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),b=a.next();!b.done;b=a.next())ut(b.value)}function ut(a){var b="aria-"+a.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,a,{get:function(){return this.getAttribute(b)},set:function(c){null==c||void 0==c?this.removeAttribute(b):this.setAttribute(b,c)}})}ot.Aria=st;st.install=tt;rt(tt);function vt(){}function wt(){xt()}ot.EncryptionScheme=vt;vt.install=wt;rt(wt,-2);function yt(){}
807
+ 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}}),
808
+ Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",At);document.addEventListener("webkitfullscreenerror",At);document.addEventListener("mozfullscreenchange",At);document.addEventListener("mozfullscreenerror",At);document.addEventListener("MSFullscreenChange",At);document.addEventListener("MSFullscreenError",At)}}
809
+ function At(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)}ot.Fullscreen=yt;yt.install=zt;rt(zt);function Bt(){}function Ct(){var a=!0;if(Zc()||Vc("PlayStation 5")||$c()||Vc("Web0S")||Wc()||Yc())a=!1;Yc()&&Vc("Android")&&(a=!0);a&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),Dt=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=Et)}
810
+ function Et(a){var b,c,d,e,f,g,h,k,l,m,n,p,q,w,y,x;return I(function(v){switch(v.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return v["return"](b);if("media-source"==a.type){if(!Qc()||a.video&&(c=a.video.contentType,d=MediaSource.isTypeSupported(c),!d)||a.audio&&(e=a.audio.contentType,f=MediaSource.isTypeSupported(e),!f))return v["return"](b)}else if("file"==a.type){if(a.video&&(g=a.video.contentType,h=Rc(g),!h)||a.audio&&(k=a.audio.contentType,
811
+ l=Rc(k),!l))return v["return"](b)}else return v["return"](b);if(!a.keySystemConfiguration)return b.supported=!0,v["return"](Promise.resolve(b));m=a.keySystemConfiguration;n=[];p=[];m.audio&&(q={robustness:m.audio.robustness||"",contentType:a.audio.contentType},n.push(q));m.video&&(w={robustness:m.video.robustness||"",contentType:a.video.contentType},p.push(w));y={initDataTypes:[m.initDataType],distinctiveIdentifier:m.distinctiveIdentifier,persistentState:m.persistentState,sessionTypes:m.sessionTypes};
812
+ n.length&&(y.audioCapabilities=n);p.length&&(y.videoCapabilities=p);A(v,3);return u(v,navigator.requestMediaKeySystemAccess(m.keySystem,[y]),5);case 5:x=v.h;va(v,4);break;case 3:F(v);case 4:x&&(b.supported=!0,b.keySystemAccess=x);case 2:return v["return"](b)}})}ot.MediaCapabilities=Bt;Bt.install=Ct;var Dt=null;Bt.originalMcap=Dt;rt(Ct,-1);function Ft(){}function Gt(){var a=ad();window.MediaSource&&(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType?Ht():a?12>=a?(It(),Jt()):It():(Vc("Tizen 2")||Vc("Tizen 3")||Vc("Tizen 4"))&&Kt());window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&Lt()}
813
+ function It(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Ha.apply(0,arguments));b.abort=function(){};return b}}function Jt(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}}function Kt(){var a=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(b){return"opus"!=Ad(b)[0]&&a(b)}}
814
+ function Ht(){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)}}
815
+ function Lt(){var a=MediaSource.isTypeSupported;Vc("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)})}ot.MediaSource=Ft;Ft.install=Gt;rt(Gt);function Mt(){}function Nt(){screen.orientation||void 0!=window.orientation&&Ot()}function Ot(){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 Pt;screen.orientation=b;a();window.addEventListener("orientationchange",function(){a();var c=new L("change");b.dispatchEvent(c)})}ot.Orientation=Mt;
816
+ Mt.install=Nt;function Pt(){fb.call(this);this.type="";this.angle=0}qa(Pt,fb);
817
+ Pt.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)};
818
+ Pt.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()};rt(Nt);function Qt(){}function Rt(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=St,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Tt,window.MediaKeys=Ut,window.MediaKeySystemAccess=Vt,window.shakaMediaKeysPolyfill=!0)}function St(){return Promise.reject(Error("The key system specified is not supported."))}
819
+ function Tt(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}ot.PatchedMediaKeysNop=Qt;Qt.install=Rt;function Ut(){throw new TypeError("Illegal constructor.");}Ut.prototype.createSession=function(){};Ut.prototype.setServerCertificate=function(){};function Vt(){this.keySystem="";throw new TypeError("Illegal constructor.");}Vt.prototype.getConfiguration=function(){};Vt.prototype.createMediaKeys=function(){};rt(Rt,-10);function Wt(){}
820
+ function Xt(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)Yt="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=Zt;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=$t;window.MediaKeys=au;window.MediaKeySystemAccess=bu;window.shakaMediaKeysPolyfill=!0}}
821
+ function cu(a){var b=Yt;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function Zt(a,b){try{var c=new bu(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function $t(a){var b=this.mediaKeys;b&&b!=a&&du(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&du(a,this);return Promise.resolve()}ot.PatchedMediaKeysWebkit=Wt;Wt.install=Xt;
822
+ function bu(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");for(var f=t(b),g=f.next();!g.done;g=f.next()){g=g.value;var h={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:g.initDataTypes,sessionTypes:["temporary"],label:g.label},k=!1;if(g.audioCapabilities)for(var l=t(g.audioCapabilities),
817
823
  m=l.next();!m.done;m=l.next())m=m.value,m.contentType&&(k=!0,e.canPlayType(m.contentType.split(";")[0],this.g)&&(h.audioCapabilities.push(m),d=!0));if(g.videoCapabilities)for(l=t(g.videoCapabilities),m=l.next();!m.done;m=l.next())m=m.value,m.contentType&&(k=!0,e.canPlayType(m.contentType,this.g)&&(h.videoCapabilities.push(m),d=!0));k||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==g.persistentState&&(c?(h.persistentState="required",h.sessionTypes=["persistent-license"]):
818
- d=!1);if(d){this.h=h;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";c=Error(c);c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}$t.prototype.createMediaKeys=function(){var a=new Zt(this.g);return Promise.resolve(a)};$t.prototype.getConfiguration=function(){return this.h};function Zt(a){this.l=a;this.h=null;this.g=new uf;this.i=[];this.j=new Map}
819
- function bu(a,b){a.h=b;a.g.Rc();var c=Wt;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Hc(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=cu(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.od()?"licenserequest":"licenserenewal").set("message",d.message),d=new M("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){if(d=cu(a,d.sessionId))du(d,"usable"),
820
- d.g&&d.g.resolve(),d.g=null}),a.g.o(b,c+"keyerror",function(d){var e=cu(a,d.sessionId);e&&e.handleError(d)}))}Zt.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 eu(b,this.l,a);this.i.push(a);return a};Zt.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
821
- function cu(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 eu(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 Nc;this.keyStatuses=new fu}ra(eu,fb);r=eu.prototype;
822
- r.handleError=function(a){var b=Error("EME v0.1b key error"),c=a.errorCode;c.systemCode=a.systemCode;b.errorCode=c;!a.sessionId&&this.h?(45==a.systemCode&&(b.message="Unsupported session type."),this.h.reject(b),this.h=null):a.sessionId&&this.g?(this.g.reject(b),this.g=null):(b=a.systemCode,a.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?du(this,"output-restricted"):1==b?du(this,"expired"):du(this,"internal-error"))};
823
- function gu(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=Gc(Vc("LOAD_SESSION|"+c));else{var e=Vc("PERSISTENT|");d=cd(e,b)}else d=Gc(b)}catch(g){return Promise.reject(g)}a.h=new Nc;var f=au("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new P(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).T(.01)}return a.h}
824
- function hu(a,b,c){if(a.g)a.g.then(function(){return hu(a,b,c)})["catch"](function(){return hu(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=Rc(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=$c(e.keys[0].k);e=$c(e.keys[0].kid)}else d=Gc(c),e=null;var f=au("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
825
- function du(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new M("keystatuseschange");a.dispatchEvent(c)}r.generateRequest=function(a,b){return gu(this,b,null)};r.load=function(a){return"persistent-license"==this.l?gu(this,null,a):Promise.reject(Error("Not a persistent session."))};r.update=function(a){var b=new Nc;hu(this,b,a);return b};
826
- r.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=au("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};r.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function fu(){this.size=0;this.g=void 0}r=fu.prototype;r.od=function(){return this.g};
827
- r.forEach=function(a){this.g&&a(this.g,og.value())};r.get=function(a){if(this.has(a))return this.g};r.has=function(a){var b=og.value();return this.g&&Ec(a,b)?!0:!1};r.entries=function(){};r.keys=function(){};r.values=function(){};var Wt="";pt(Vt);function iu(){}function ju(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=ku,Object.defineProperty(a,"disablePictureInPicture",{get:lu,set:mu,enumerable:!0,configurable:!0}),document.exitPictureInPicture=nu,document.addEventListener("webkitpresentationmodechanged",ou,!0))}}
828
- function ou(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)}
829
- function ku(){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 nu(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
830
- function lu(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function mu(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}mt.PiPWebkit=iu;iu.install=ju;pt(ju);function pu(){}function qu(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=ru))}function ru(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}mt.RandomUUID=pu;pu.install=qu;pt(qu);function su(){}function tu(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=uu)}function uu(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}mt.StorageEstimate=su;su.install=tu;pt(tu);function vu(){}function wu(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:xu})}function xu(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}mt.Symbol=vu;vu.install=wu;pt(wu);function yu(){}function zu(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}}mt.VideoPlayPromise=yu;yu.install=zu;pt(zu);function Au(){}function Bu(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=Cu)}}function Cu(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}mt.VideoPlaybackQuality=Au;Au.install=Bu;pt(Bu);function Du(){}function Eu(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=Fu;else if(6==b)a=Gu;else{try{var c=!!Fu(1,2,"")}catch(d){c=!1}c&&(a=Fu)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function Fu(a,b,c){return new window.TextTrackCue(a,b,c)}function Gu(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}mt.VTTCue=Du;Du.install=Eu;pt(Eu);function Hu(){}Hu.prototype.parseInit=function(){};Hu.prototype.setSequenceMode=function(){};Hu.prototype.parseMedia=function(a,b){var c=null,d=[],e=Rc(a).split(/\r?\n/);e=t(e);for(var f=e.next();!f.done;f=e.next())if((f=f.value)&&!/^\s+$/.test(f)&&(f=Iu.exec(f))){var g=Ju.exec(f[1]);g=60*parseInt(g[1],10)+parseFloat(g[2].replace(",","."));f=new hc(g,b.segmentEnd?b.segmentEnd:g+2,f[2]);c&&(c.endTime=g,d.push(c));c=f}c&&d.push(c);return d};J("shaka.text.LrcTextParser",Hu);Hu.prototype.parseMedia=Hu.prototype.parseMedia;
831
- Hu.prototype.setSequenceMode=Hu.prototype.setSequenceMode;Hu.prototype.parseInit=Hu.prototype.parseInit;var Iu=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,Ju=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;qd["application/x-subtitle-lrc"]=function(){return new Hu};function Ku(){}Ku.prototype.parseInit=function(){};Ku.prototype.setSequenceMode=function(){};
832
- Ku.prototype.parseMedia=function(a,b){var c=Rc(a),d=[],e=new DOMParser,f=null;if(""==c)return d;try{f=e.parseFromString(c,"text/xml")}catch(C){throw new O(2,2,2005,"Failed to parse TTML.");}if(f){if(c=f.getElementsByTagName("parsererror")[0])throw new O(2,2,2005,c.textContent);var g=f.getElementsByTagName("tt")[0];if(!g)throw new O(2,2,2005,"TTML does not contain <tt> tag.");f=g.getElementsByTagName("body")[0];if(!f)return[];var h=Xn(g,Lu,"frameRate"),k=Xn(g,Lu,"subFrameRate"),l=Xn(g,Lu,"frameRateMultiplier"),
833
- m=Xn(g,Lu,"tickRate"),n=Xn(g,Lu,"cellResolution");c=g.getAttribute("xml:space")||"default";e=Xn(g,Mu,"extent");if("default"!=c&&"preserve"!=c)throw new O(2,2,2005,"Invalid xml:space value: "+c);c="default"==c;h=new Nu(h,k,l,m);n=n?(n=/^(\d+) (\d+)$/.exec(n))?{columns:parseInt(n[1],10),rows:parseInt(n[2],10)}:null:null;k=(k=g.getElementsByTagName("metadata")[0])?Vn(k):[];l=Array.from(g.getElementsByTagName("style"));g=Array.from(g.getElementsByTagName("region"));m=[];for(var p=t(g),q=p.next();!q.done;q=
834
- p.next()){var x=q.value;q=new jc;var w=x.getAttribute("xml:id");if(w){q.id=w;var v=null;e&&(v=Ou.exec(e)||Pu.exec(e));w=v?Number(v[1]):null;v=v?Number(v[2]):null;var y,D;if(y=Qu(x,l,"extent"))y=(D=Ou.exec(y))||Pu.exec(y),null!=y&&(q.width=Number(y[1]),q.height=Number(y[2]),D||(null!=w&&(q.width=100*q.width/w),null!=v&&(q.height=100*q.height/v)),q.widthUnits=D||null!=w?Bc:0,q.heightUnits=D||null!=v?Bc:0);if(x=Qu(x,l,"origin"))y=(D=Ou.exec(x))||Pu.exec(x),null!=y&&(q.viewportAnchorX=Number(y[1]),q.viewportAnchorY=
835
- Number(y[2]),D||(null!=v&&(q.viewportAnchorY=100*q.viewportAnchorY/v),null!=w&&(q.viewportAnchorX=100*q.viewportAnchorX/w)),q.viewportAnchorUnits=D||null!=w?Bc:0)}else q=null;q&&m.push(q)}if(Sn(f,"p").length)throw new O(2,2,2001,"<p> can only be inside <div> in TTML");e=t(Sn(f,"div"));for(p=e.next();!p.done;p=e.next())if(Sn(p.value,"span").length)throw new O(2,2,2001,"<span> can only be inside <p> in TTML");(f=Ru(f,b.periodStart,h,k,l,g,m,c,n,null,!1))&&d.push(f)}return d};
836
- function Ru(a,b,c,d,e,f,g,h,k,l,m){var n=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var p=document.createElement("span");p.textContent=a.textContent}else p=a;for(var q=null,x=t(Su),w=x.next();!w.done&&!(q=Tu(p,"backgroundImage",d,"#",w.value)[0]);w=x.next());x=m;if("p"==a.nodeName||q)m=!0;h="default"==(p.getAttribute("xml:space")||(h?"default":"preserve"));w=Array.from(p.childNodes).every(function(B){return B.nodeType==Node.TEXT_NODE});
837
- a=[];if(!w)for(var v=t(p.childNodes),y=v.next();!y.done;y=v.next())(y=Ru(y.value,b,c,d,e,f,g,h,k,p,m))&&a.push(y);d=null!=l;v=/\S/.test(p.textContent);var D=p.hasAttribute("begin")||p.hasAttribute("end")||p.hasAttribute("dur");if(!(D||v||"br"==p.tagName||0!=a.length||d&&!h))return null;y=Uu(p,c);v=y.start;for(y=y.end;n&&n.nodeType==Node.ELEMENT_NODE&&"tt"!=n.tagName;)y=Vu(n,c,v,y),v=y.start,y=y.end,n=n.parentNode;null==v&&(v=0);v+=b;y=null==y?Infinity:y+b;if(!D&&0<a.length)for(v=Infinity,y=0,b=t(a),
838
- c=b.next();!c.done;c=b.next())c=c.value,v=Math.min(v,c.startTime),y=Math.max(y,c.endTime);if("br"==p.tagName)return e=new hc(v,y,""),e.lineBreak=!0,e;b="";w&&(b=p.textContent,h&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new hc(v,y,b);b.nestedCues=a;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=Tu(p,"region",f,"")[0];if(p.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var C=k.getAttribute("xml:id");b.region=g.filter(function(B){return B.id==C})[0]}g=k;l&&d&&!p.getAttribute("region")&&!p.getAttribute("style")&&
839
- (g=Tu(l,"region",f,"")[0]);Wu(b,p,g,q,e,x,0==a.length);return b}
840
- function Wu(a,b,c,d,e,f,g){f=f||g;"rtl"==Xu(b,c,e,"direction",f)&&(a.direction="rtl");g=Xu(b,c,e,"writingMode",f);"tb"==g||"tblr"==g?a.writingMode="vertical-lr":"tbrl"==g?a.writingMode="vertical-rl":"rltb"==g||"rl"==g?a.direction="rtl":g&&(a.direction=ic);(g=Xu(b,c,e,"textAlign",!0))?(a.positionAlign=Yu[g],a.lineAlign=Zu[g],a.textAlign=vc[g.toUpperCase()]):a.textAlign=lc;if(g=Xu(b,c,e,"displayAlign",!0))a.displayAlign=wc[g.toUpperCase()];if(g=Xu(b,c,e,"color",f))a.color=g;if(g=Xu(b,c,e,"backgroundColor",
841
- f))a.backgroundColor=g;if(g=Xu(b,c,e,"border",f))a.border=g;if(g=Xu(b,c,e,"fontFamily",f))a.fontFamily=g;(g=Xu(b,c,e,"fontWeight",f))&&"bold"==g&&(a.fontWeight=700);g=Xu(b,c,e,"wrapOption",f);a.wrapLine=g&&"noWrap"==g?!1:!0;(g=Xu(b,c,e,"lineHeight",f))&&g.match($u)&&(a.lineHeight=g);(g=Xu(b,c,e,"fontSize",f))&&(g.match($u)||g.match(av))&&(a.fontSize=g);if(g=Xu(b,c,e,"fontStyle",f))a.fontStyle=Ac[g.toUpperCase()];if(d){g=d.getAttribute("imageType")||d.getAttribute("imagetype");var h=d.getAttribute("encoding");
842
- d=d.textContent.trim();"PNG"==g&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)}if(d=Xu(b,c,e,"textOutline",f))d=d.split(" "),d[0].match($u)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match($u)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=Xu(b,c,e,"letterSpacing",f))&&d.match($u)&&(a.letterSpacing=d);(d=Xu(b,c,e,"linePadding",f))&&d.match($u)&&(a.linePadding=d);if(f=Xu(b,c,e,"opacity",f))a.opacity=parseFloat(f);(c=Qu(c,e,"textDecoration"))&&bv(a,c);(b=
843
- cv(b,e,"textDecoration"))&&bv(a,b)}
844
- function bv(a,b){for(var c=t(b.split(" ")),d=c.next();!d.done;d=c.next())switch(d.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&ec(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&ec(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")||
845
- a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&ec(a.textDecoration,"overline")}}function Xu(a,b,c,d,e){e=void 0===e?!0:e;return(a=cv(a,c,d))?a:e?Qu(b,c,d):null}function Qu(a,b,c){if(!a)return null;var d=Xn(a,Mu,c);return d?d:dv(a,b,c)}function cv(a,b,c){var d=Xn(a,Mu,c);return d?d:dv(a,b,c)}
846
- function dv(a,b,c){a=Tu(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=Wn(a[e],"urn:ebu:tt:style",c);f||(f=Xn(a[e],Mu,c));f||(f=cv(a[e],b,c));f&&(d=f)}return d}
847
- function Tu(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?Wn(g,e,b):g.getAttribute(b))&&(g=g.parentNode,g instanceof Element););if(b=a)for(b=t(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=t(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.getAttribute("xml:id")==e){f.push(g);break}return f}function Vu(a,b,c,d){a=Uu(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}}
848
- function Uu(a,b){var c=ev(a.getAttribute("begin"),b),d=ev(a.getAttribute("end"),b),e=ev(a.getAttribute("dur"),b);null==d&&null!=e&&(d=c+e);return{start:c,end:d}}
849
- function ev(a,b){var c=null;if(fv.test(a)){c=fv.exec(a);var d=Number(c[1]),e=Number(c[2]),f=Number(c[3]),g=Number(c[4]);g+=(Number(c[5])||0)/b.h;f+=g/b.frameRate;c=f+60*e+3600*d}else if(gv.test(a))c=hv(gv,a);else if(iv.test(a))c=hv(iv,a);else if(jv.test(a))c=jv.exec(a),c=Number(c[1])/b.frameRate;else if(kv.test(a))c=kv.exec(a),c=Number(c[1])/b.g;else if(lv.test(a))c=hv(lv,a);else if(a)throw new O(2,2,2001,"Could not parse cue time range in TTML");return c}
850
- function hv(a,b){var c=a.exec(b);return null==c||""==c[0]?null:(Number(c[4])||0)/1E3+(Number(c[3])||0)+60*(Number(c[2])||0)+3600*(Number(c[1])||0)}J("shaka.text.TtmlTextParser",Ku);Ku.prototype.parseMedia=Ku.prototype.parseMedia;Ku.prototype.setSequenceMode=Ku.prototype.setSequenceMode;Ku.prototype.parseInit=Ku.prototype.parseInit;
851
- function Nu(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]))}
852
- var Ou=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,av=/^(\d{1,2}(?:\.\d+)?|100)%$/,$u=/^(\d+px|\d+em|\d*\.?\d+c)$/,Pu=/^(\d+)px (\d+)px$/,fv=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,gv=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,iv=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,jv=/^(\d*(?:\.\d*)?)f$/,kv=/^(\d*(?:\.\d*)?)t$/,lv=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),Zu={left:oc,center:"center",right:"end",start:oc,
853
- end:"end"},Yu={left:"line-left",center:"center",right:"line-right"},Lu=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],Mu=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],Su=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];qd["application/ttml+xml"]=function(){return new Ku};function mv(){this.g=new Ku}mv.prototype.parseInit=function(a){var b=!1;(new yg).box("moov",Cg).box("trak",Cg).box("mdia",Cg).box("minf",Cg).box("stbl",Cg).Y("stsd",Eg).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new O(2,2,2007);};mv.prototype.setSequenceMode=function(){};mv.prototype.parseMedia=function(a,b){var c=this,d=!1,e=[];(new yg).box("mdat",Fg(function(f){d=!0;e=e.concat(c.g.parseMedia(f,b))})).parse(a,!1);if(!d)throw new O(2,2,2007);return e};
854
- J("shaka.text.Mp4TtmlParser",mv);mv.prototype.parseMedia=mv.prototype.parseMedia;mv.prototype.setSequenceMode=mv.prototype.setSequenceMode;mv.prototype.parseInit=mv.prototype.parseInit;qd['application/mp4; codecs="stpp"']=function(){return new mv};qd['application/mp4; codecs="stpp.ttml"']=function(){return new mv};qd['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new mv};qd['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new mv};function nv(){this.g=!1}nv.prototype.parseInit=function(){};nv.prototype.setSequenceMode=function(a){this.g=a};
855
- nv.prototype.parseMedia=function(a,b){var c=Rc(a);c=c.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var d=c.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(d[0]))throw new O(2,2,2E3);c=b.vttOffset;if(d[0].includes("X-TIMESTAMP-MAP")&&this.g){var e=d[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),f=d[0].match(/MPEGTS:(\d+)/m);if(e&&f){c=ov(new lq(e[1]));if(null==c)throw new O(2,2,2E3);f=Number(f[1]);for(e=b.segmentStart;95443.7176888889<=e;)e-=95443.7176888889,f+=8589934592;c=b.periodStart+f/9E4-
856
- c}}f=[];e=t(d[0].split("\n"));for(var g=e.next();!g.done;g=e.next())if(g=g.value,/^Region:/.test(g)){g=new lq(g);var h=new jc;oq(g);mq(g);for(var k=oq(g);k;){var l=h,m=k;(k=/^id=(.*)$/.exec(m))?l.id=k[1]:(k=/^width=(\d{1,2}|100)%$/.exec(m))?l.width=Number(k[1]):(k=/^lines=(\d+)$/.exec(m))?(l.height=Number(k[1]),l.heightUnits=2):(k=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?(l.regionAnchorX=Number(k[1]),l.regionAnchorY=Number(k[2])):(k=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?
857
- (l.viewportAnchorX=Number(k[1]),l.viewportAnchorY=Number(k[2])):/^scroll=up$/.exec(m)&&(l.scroll="up");mq(g);k=oq(g)}f.push(h)}e=new Map;pv(e);g=[];d=t(d.slice(1));for(h=d.next();!h.done;h=d.next()){h=h.value.split("\n");if((1!=h.length||h[0])&&!/^NOTE($|[ \t])/.test(h[0])&&"STYLE"==h[0]&&h[1].includes("::cue")){l="global";(k=h[1].match(/\((.*)\)/))&&(l=k.pop());k=h.slice(2,-1);h[1].includes("}")&&(m=/\{(.*?)\}/.exec(h[1]))&&(k=m[1].split(";"));m=new hc(0,0,"");for(var n=!1,p=0;p<k.length;p++){var q=
858
- /^\s*([^:]+):\s*(.*)/.exec(k[p]);if(q){var x=q[2].trim().replace(";","");switch(q[1].trim()){case "background-color":n=!0;m.backgroundColor=x;break;case "color":n=!0;m.color=x;break;case "font-family":n=!0;m.fontFamily=x;break;case "font-size":n=!0;m.fontSize=x;break;case "font-weight":700<=parseInt(x,10)&&(n=!0,m.fontWeight=700);break;case "font-style":switch(x){case "normal":n=!0;m.fontStyle=tc;break;case "italic":n=!0;m.fontStyle="italic";break;case "oblique":n=!0,m.fontStyle="oblique"}break;case "opacity":n=
859
- !0;m.opacity=parseFloat(x);break;case "text-shadow":n=!0;m.textShadow=x;break;case "white-space":n=!0,m.wrapLine="noWrap"!=x}}}n&&e.set(l,m)}p=c;if(1==h.length&&!h[0]||/^NOTE($|[ \t])/.test(h[0])||"STYLE"==h[0])h=null;else{l=null;h[0].includes("--\x3e")||(l=h[0],h.splice(0,1));k=new lq(h[0]);m=ov(k);q=nq(k,/[ \t]+--\x3e[ \t]+/g);n=ov(k);if(null==m||null==q||null==n)throw new O(2,2,2001,"Could not parse cue time range in WebVTT");m+=p;n+=p;p=h.slice(1).join("\n").trim();e.has("global")?(h=e.get("global").clone(),
860
- h.startTime=m,h.endTime=n,h.payload=""):h=new hc(m,n,"");qv(p,h,e);mq(k);for(m=oq(k);m;)rv(h,m,f),mq(k),m=oq(k);null!=l&&(h.id=l)}h&&g.push(h)}return g};function pv(a){for(var b=t(Object.entries(yc)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new hc(0,0,"");e.color=d;a.set(c,e)}b=t(Object.entries(zc));for(c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new hc(0,0,""),e.backgroundColor=d,a.set(c,e)}
861
- function qv(a,b,c){0===c.size&&pv(c);a=sv(a);var d=jo("<span>"+a+"</span>","span");if(d){var e=[];d=d.childNodes;if(1==d.length){var f=d[0];if(f.nodeType==Node.TEXT_NODE||f.nodeType==Node.CDATA_SECTION_NODE){b.payload=a;return}}a=t(d);for(d=a.next();!d.done;d=a.next())tv(d.value,b,e,c);b.nestedCues=e}else b.payload=a}
862
- function sv(a){for(var b=[],c=-1,d="",e=0;e<a.length;e++)if("/"===a[e]){var f=a.indexOf(">",e);if(f<=e)return a;f=a.substring(e+1,f);var g=b.pop();if(f&&g){if(g===f)d+="/"+f+">";else{if(!g.startsWith("c.")||"c"!==f)return a;d+="/"+g+">"}e+=f.length+1}else return a}else"<"===a[e]?c=e+1:">"===a[e]&&0<c&&(b.push(a.substr(c,e-c)),c=-1),d+=a[e];return d}function uv(a,b){return a&&0<a.length?a:b}
863
- function tv(a,b,c,d){var e=b.clone();if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var f=t(a.nodeName.split(/[ .]+/)),g=f.next();!g.done;g=f.next()){g=g.value;if(d.has(g)){var h=d.get(g);h&&(e.backgroundColor=uv(h.backgroundColor,e.backgroundColor),e.color=uv(h.color,e.color),e.fontFamily=uv(h.fontFamily,e.fontFamily),e.fontSize=uv(h.fontSize,e.fontSize),e.fontWeight=h.fontWeight,e.fontStyle=h.fontStyle,e.opacity=h.opacity,e.wrapLine=h.wrapLine)}switch(g){case "b":e.fontWeight=700;break;case "i":e.fontStyle=
864
- "italic";break;case "u":e.textDecoration.push("underline")}}if(Zn(a))for(f=!0,d=t(a.textContent.split("\n")),a=d.next();!a.done;a=d.next())a=a.value,f||(f=b.clone(),f.lineBreak=!0,c.push(f)),0<a.length&&(f=e.clone(),f.payload=a,c.push(f)),f=!1;else for(b=t(a.childNodes),a=b.next();!a.done;a=b.next())tv(a.value,e,c,d)}
865
- function rv(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=lc:a.textAlign=vc[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"==
866
- b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=vv(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=xc[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=nc,a.line=Number(c[1]),c[2]&&(a.lineAlign=xc[c[2].toUpperCase()])}function vv(a,b){var c=a.filter(function(d){return d.id==b});return c.length?c[0]:null}
867
- function ov(a){a=nq(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)}J("shaka.text.VttTextParser",nv);nv.prototype.parseMedia=nv.prototype.parseMedia;nv.prototype.setSequenceMode=nv.prototype.setSequenceMode;nv.prototype.parseInit=nv.prototype.parseInit;qd["text/vtt"]=function(){return new nv};qd['text/vtt; codecs="vtt"']=function(){return new nv};
868
- qd['text/vtt; codecs="wvtt"']=function(){return new nv};function wv(){this.g=null}wv.prototype.parseInit=function(a){var b=this,c=!1;(new yg).box("moov",Cg).box("trak",Cg).box("mdia",Cg).Y("mdhd",function(d){d=Ph(d.reader,d.version);b.g=d.timescale}).box("minf",Cg).box("stbl",Cg).Y("stsd",Eg).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new O(2,2,2008);if(!c)throw new O(2,2,2008);};wv.prototype.setSequenceMode=function(){};
869
- wv.prototype.parseMedia=function(a,b){if(!this.g)throw new O(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new yg).box("moof",Cg).box("traf",Cg).Y("tfdt",function(B){g=!0;c=Oh(B.reader,B.version).Xe}).Y("tfhd",function(B){l=Nh(B.reader,B.flags).jf}).Y("trun",function(B){h=!0;d=Qh(B.reader,B.version,B.flags).Ff}).box("mdat",Fg(function(B){k=!0;e=B})).parse(a,!1);if(!k&&!g&&!h)throw new O(2,2,2008);for(var m=c,n=new vg(e,0),p=t(d),q=p.next();!q.done;q=p.next()){q=q.value;var x=q.ue||l,w=q.Ed?
870
- c+q.Ed:m;m=w+(x||0);var v=0;do{var y=n.R();v+=y;var D=n.R(),C=null;"vttc"==Gg(D)?8<y&&(C=n.Eb(y-8)):n.skip(y-8);x&&C&&(y=xv(C,b.periodStart+w/this.g,b.periodStart+m/this.g),f.push(y))}while(q.sampleSize&&v<q.sampleSize)}return f.filter(Cb)};function xv(a,b,c){var d,e,f;(new yg).box("payl",Fg(function(g){d=Rc(g)})).box("iden",Fg(function(g){e=Rc(g)})).box("sttg",Fg(function(g){f=Rc(g)})).parse(a);return d?yv(d,e,f,b,c):null}
871
- function yv(a,b,c,d,e){d=new hc(d,e,"");qv(a,d,new Map);b&&(d.id=b);if(c)for(a=new lq(c),b=oq(a);b;)rv(d,b,[]),mq(a),b=oq(a);return d}J("shaka.text.Mp4VttParser",wv);wv.prototype.parseMedia=wv.prototype.parseMedia;wv.prototype.setSequenceMode=wv.prototype.setSequenceMode;wv.prototype.parseInit=wv.prototype.parseInit;qd['application/mp4; codecs="wvtt"']=function(){return new wv};function zv(){}zv.prototype.parseInit=function(){};zv.prototype.setSequenceMode=function(){};zv.prototype.parseMedia=function(a){var b=Rc(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=t(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new lq(c[0]),e=Av(d),f=nq(d,/,/g);d=Av(d);if(null==e||null==f||null==d)throw new O(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new hc(e,d,c.slice(1).join("\n").trim()))}return a};
872
- function Av(a){a=nq(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)}J("shaka.text.SbvTextParser",zv);zv.prototype.parseMedia=zv.prototype.parseMedia;zv.prototype.setSequenceMode=zv.prototype.setSequenceMode;zv.prototype.parseInit=zv.prototype.parseInit;qd["text/x-subviewer"]=function(){return new zv};function Bv(){this.g=new nv}Bv.prototype.parseInit=function(){};Bv.prototype.setSequenceMode=function(){};Bv.prototype.parseMedia=function(a,b){var c=Rc(a);c=Cv(c);c=Gc(Vc(c));return this.g.parseMedia(c,b)};function Cv(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=t(a.split("\n\n"));for(var c=a.next();!c.done;c=a.next())c=c.value.split(/\n/),c[0].match(/\d+/)&&c.shift(),c[0]=c[0].replace(/,/g,"."),b+=c.join("\n")+"\n\n";return b}J("shaka.text.SrtTextParser",Bv);
873
- Bv.srt2webvtt=Cv;Bv.prototype.parseMedia=Bv.prototype.parseMedia;Bv.prototype.setSequenceMode=Bv.prototype.setSequenceMode;Bv.prototype.parseInit=Bv.prototype.parseInit;qd["text/srt"]=function(){return new Bv};function Dv(){}Dv.prototype.parseInit=function(){};Dv.prototype.setSequenceMode=function(){};
874
- Dv.prototype.parseMedia=function(a){var b="",c="";a=Rc(a).split(/\r?\n\s*\r?\n/);a=t(a);for(var d=a.next();!d.done;d=a.next()){var e=Ev.exec(d.value);e&&(d=e[1],e=e[2],"V4 Styles"==d||"V4+ Styles"==d?b=e:"Events"==d&&(c=e))}a=[];d=null;b=t(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=Fv.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(Gv);else if("Style"==e){e=f.split(Gv);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
875
- [];b=null;e={};c=t(c.split(/\r?\n/));for(f=c.next();!f.done;e={Vd:e.Vd},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=Fv.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(Gv);else if("Dialogue"==f){g=g.split(Gv);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=Hv(f.Start);var k=Hv(f.End);g=new hc(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.Vd=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.Vd}}(e)))&&Iv(g,f);d.push(g)}return d};
876
- function Iv(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=Jv(c))a.color=c;if(c=b.BackColour)if(c=Jv(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=pc;a.textAlign="start";break;case 2:a.displayAlign=pc;a.textAlign=lc;break;case 3:a.displayAlign=pc;a.textAlign="end";
877
- break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=lc;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=lc;break;case 11:a.displayAlign="center",a.textAlign="end"}if(c=b.AlphaLevel)a.opacity=parseFloat(c)}
878
- function Jv(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 Hv(a){a=Kv.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}J("shaka.text.SsaTextParser",Dv);Dv.prototype.parseMedia=Dv.prototype.parseMedia;Dv.prototype.setSequenceMode=Dv.prototype.setSequenceMode;Dv.prototype.parseInit=Dv.prototype.parseInit;
879
- var Ev=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,Fv=/^\s*([^:]+):\s*(.*)/,Gv=/\s*,\s*/,Kv=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;qd["text/x-ssa"]=function(){return new Dv};function Lv(){}J("shaka.util.FairPlayUtils",Lv);Lv.commonFairPlayResponse=function(a,b){if(2===a){try{var c=Rc(b.data)}catch(f){return}var d=!1;c=c.trim();"<ckc>"===c.substr(0,5)&&"</ckc>"===c.substr(-6)&&(c=c.slice(5,-6),d=!0);try{var e=JSON.parse(c);e.ckc&&(c=e.ckc,d=!0);e.CkcMessage&&(c=e.CkcMessage,d=!0);e.License&&(c=e.License,d=!0)}catch(f){}d&&(b.data=Hc($c(c)))}};
880
- Lv.spcFairPlayRequest=function(a,b){if(2===a){var c=Gc(b.body);c=Zc(c);b.headers["Content-Type"]="application/x-www-form-urlencoded";b.body=Vc("spc="+c)}};Lv.initDataTransform=function(a,b,c){function d(h){Jc(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Gc(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new O(2,6,6015);var e;"string"==typeof b?e=Wc(b,!0):e=b;a=Uc(a);a=Wc(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f};
881
- Lv.defaultGetContentId=function(a){a=Uc(a);return(new lb(a)).ab};Lv.isFairPlaySupported=function(){var a;return I(function(b){if(1==b.g)return a={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},A(b,2),u(b,navigator.requestMediaKeySystemAccess("com.apple.fps",[a]),4);if(2!=b.g)return b["return"](!0);F(b);return b["return"](!1)})};/*
824
+ d=!1);if(d){this.h=h;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";c=Error(c);c.name="NotSupportedError";c.code=DOMException.NOT_SUPPORTED_ERR;throw c;}bu.prototype.createMediaKeys=function(){var a=new au(this.g);return Promise.resolve(a)};bu.prototype.getConfiguration=function(){return this.h};function au(a){this.l=a;this.h=null;this.g=new vf;this.i=[];this.j=new Map}
825
+ function du(a,b){a.h=b;a.g.Rc();var c=Yt;b&&(a.g.o(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=Hc(d.initData);a.h.dispatchEvent(e)}),a.g.o(b,c+"keymessage",function(d){var e=eu(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.od()?"licenserequest":"licenserenewal").set("message",d.message),d=new L("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.o(b,c+"keyadded",function(d){if(d=eu(a,d.sessionId))fu(d,"usable"),
826
+ d.g&&d.g.resolve(),d.g=null}),a.g.o(b,c+"keyerror",function(d){var e=eu(a,d.sessionId);e&&e.handleError(d)}))}au.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 gu(b,this.l,a);this.i.push(a);return a};au.prototype.setServerCertificate=function(){return Promise.resolve(!1)};
827
+ function eu(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 gu(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 Nc;this.keyStatuses=new hu}qa(gu,fb);r=gu.prototype;
828
+ r.handleError=function(a){var b=Error("EME v0.1b key error"),c=a.errorCode;c.systemCode=a.systemCode;b.errorCode=c;!a.sessionId&&this.h?(45==a.systemCode&&(b.message="Unsupported session type."),this.h.reject(b),this.h=null):a.sessionId&&this.g?(this.g.reject(b),this.g=null):(b=a.systemCode,a.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?fu(this,"output-restricted"):1==b?fu(this,"expired"):fu(this,"internal-error"))};
829
+ function iu(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=Gc(id("LOAD_SESSION|"+c));else{var e=id("PERSISTENT|");d=qd(e,b)}else d=Gc(b)}catch(g){return Promise.reject(g)}a.h=new Nc;var f=cu("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new P(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).T(.01)}return a.h}
830
+ function ju(a,b,c){if(a.g)a.g.then(function(){return ju(a,b,c)})["catch"](function(){return ju(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=ed(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=nd(e.keys[0].k);e=nd(e.keys[0].kid)}else d=Gc(c),e=null;var f=cu("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}}
831
+ function fu(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;c=new L("keystatuseschange");a.dispatchEvent(c)}r.generateRequest=function(a,b){return iu(this,b,null)};r.load=function(a){return"persistent-license"==this.l?iu(this,null,a):Promise.reject(Error("Not a persistent session."))};r.update=function(a){var b=new Nc;ju(this,b,a);return b};
832
+ r.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=cu("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};r.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function hu(){this.size=0;this.g=void 0}r=hu.prototype;r.od=function(){return this.g};
833
+ r.forEach=function(a){this.g&&a(this.g,pg.value())};r.get=function(a){if(this.has(a))return this.g};r.has=function(a){var b=pg.value();return this.g&&Ec(a,b)?!0:!1};r.entries=function(){};r.keys=function(){};r.values=function(){};var Yt="";rt(Xt);function ku(){}function lu(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=mu,Object.defineProperty(a,"disablePictureInPicture",{get:nu,set:ou,enumerable:!0,configurable:!0}),document.exitPictureInPicture=pu,document.addEventListener("webkitpresentationmodechanged",qu,!0))}}
834
+ function qu(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)}
835
+ function mu(){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 pu(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}
836
+ function nu(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function ou(a){a?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}ot.PiPWebkit=ku;ku.install=lu;rt(lu);function ru(){}function su(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=tu))}function tu(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}ot.RandomUUID=ru;ru.install=su;rt(su);function uu(){}function vu(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=wu)}function wu(){return new Promise(function(a,b){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})},b)})}ot.StorageEstimate=uu;uu.install=vu;rt(vu);function xu(){}function yu(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:zu})}function zu(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}ot.Symbol=xu;xu.install=yu;rt(yu);function Au(){}function Bu(){if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}}ot.VideoPlayPromise=Au;Au.install=Bu;rt(Bu);function Cu(){}function Du(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Xc())&&(a.getVideoPlaybackQuality=Eu)}}function Eu(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}ot.VideoPlaybackQuality=Cu;Cu.install=Du;rt(Du);function Fu(){}function Gu(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=Hu;else if(6==b)a=Iu;else{try{var c=!!Hu(1,2,"")}catch(d){c=!1}c&&(a=Hu)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function Hu(a,b,c){return new window.TextTrackCue(a,b,c)}function Iu(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}ot.VTTCue=Fu;Fu.install=Gu;rt(Gu);function Ju(){}Ju.prototype.parseInit=function(){};Ju.prototype.setSequenceMode=function(){};Ju.prototype.parseMedia=function(a,b){var c=null,d=[],e=ed(a).split(/\r?\n/);e=t(e);for(var f=e.next();!f.done;f=e.next())if((f=f.value)&&!/^\s+$/.test(f)&&(f=Ku.exec(f))){var g=Lu.exec(f[1]);g=60*parseInt(g[1],10)+parseFloat(g[2].replace(",","."));f=new gc(g,b.segmentEnd?b.segmentEnd:g+2,f[2]);c&&(c.endTime=g,d.push(c));c=f}c&&d.push(c);return d};J("shaka.text.LrcTextParser",Ju);Ju.prototype.parseMedia=Ju.prototype.parseMedia;
837
+ Ju.prototype.setSequenceMode=Ju.prototype.setSequenceMode;Ju.prototype.parseInit=Ju.prototype.parseInit;var Ku=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,Lu=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;Hd["application/x-subtitle-lrc"]=function(){return new Ju};function Mu(){}Mu.prototype.parseInit=function(){};Mu.prototype.setSequenceMode=function(){};
838
+ Mu.prototype.parseMedia=function(a,b){var c=ed(a),d=[],e=new DOMParser,f=null;if(""==c)return d;try{f=e.parseFromString(c,"text/xml")}catch(C){throw new O(2,2,2005,"Failed to parse TTML.");}if(f){if(c=f.getElementsByTagName("parsererror")[0])throw new O(2,2,2005,c.textContent);var g=f.getElementsByTagName("tt")[0];if(!g)throw new O(2,2,2005,"TTML does not contain <tt> tag.");f=g.getElementsByTagName("body")[0];if(!f)return[];var h=Xn(g,Nu,"frameRate"),k=Xn(g,Nu,"subFrameRate"),l=Xn(g,Nu,"frameRateMultiplier"),
839
+ m=Xn(g,Nu,"tickRate"),n=Xn(g,Nu,"cellResolution");c=g.getAttribute("xml:space")||"default";e=Xn(g,Ou,"extent");if("default"!=c&&"preserve"!=c)throw new O(2,2,2005,"Invalid xml:space value: "+c);c="default"==c;h=new Pu(h,k,l,m);n=n?(n=/^(\d+) (\d+)$/.exec(n))?{columns:parseInt(n[1],10),rows:parseInt(n[2],10)}:null:null;k=(k=g.getElementsByTagName("metadata")[0])?Vn(k):[];l=Array.from(g.getElementsByTagName("style"));g=Array.from(g.getElementsByTagName("region"));m=[];for(var p=t(g),q=p.next();!q.done;q=
840
+ p.next()){var w=q.value;q=new ic;var y=w.getAttribute("xml:id");if(y){q.id=y;var x=null;e&&(x=Qu.exec(e)||Ru.exec(e));y=x?Number(x[1]):null;x=x?Number(x[2]):null;var v,D;if(v=Su(w,l,"extent"))v=(D=Qu.exec(v))||Ru.exec(v),null!=v&&(q.width=Number(v[1]),q.height=Number(v[2]),D||(null!=y&&(q.width=100*q.width/y),null!=x&&(q.height=100*q.height/x)),q.widthUnits=D||null!=y?Bc:0,q.heightUnits=D||null!=x?Bc:0);if(w=Su(w,l,"origin"))v=(D=Qu.exec(w))||Ru.exec(w),null!=v&&(q.viewportAnchorX=Number(v[1]),q.viewportAnchorY=
841
+ Number(v[2]),D||(null!=x&&(q.viewportAnchorY=100*q.viewportAnchorY/x),null!=y&&(q.viewportAnchorX=100*q.viewportAnchorX/y)),q.viewportAnchorUnits=D||null!=y?Bc:0)}else q=null;q&&m.push(q)}if(Sn(f,"p").length)throw new O(2,2,2001,"<p> can only be inside <div> in TTML");e=t(Sn(f,"div"));for(p=e.next();!p.done;p=e.next())if(Sn(p.value,"span").length)throw new O(2,2,2001,"<span> can only be inside <p> in TTML");(f=Tu(f,b.periodStart,h,k,l,g,m,c,n,null,!1))&&d.push(f)}return d};
842
+ function Tu(a,b,c,d,e,f,g,h,k,l,m){var n=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var p=document.createElement("span");p.textContent=a.textContent}else p=a;for(var q=null,w=t(Uu),y=w.next();!y.done&&!(q=Vu(p,"backgroundImage",d,"#",y.value)[0]);y=w.next());w=m;if("p"==a.nodeName||q)m=!0;h="default"==(p.getAttribute("xml:space")||(h?"default":"preserve"));y=Array.from(p.childNodes).every(function(B){return B.nodeType==Node.TEXT_NODE});
843
+ a=[];if(!y)for(var x=t(p.childNodes),v=x.next();!v.done;v=x.next())(v=Tu(v.value,b,c,d,e,f,g,h,k,p,m))&&a.push(v);d=null!=l;x=/\S/.test(p.textContent);var D=p.hasAttribute("begin")||p.hasAttribute("end")||p.hasAttribute("dur");if(!(D||x||"br"==p.tagName||0!=a.length||d&&!h))return null;v=Wu(p,c);x=v.start;for(v=v.end;n&&n.nodeType==Node.ELEMENT_NODE&&"tt"!=n.tagName;)v=Xu(n,c,x,v),x=v.start,v=v.end,n=n.parentNode;null==x&&(x=0);x+=b;v=null==v?Infinity:v+b;if(!D&&0<a.length)for(x=Infinity,v=0,b=t(a),
844
+ c=b.next();!c.done;c=b.next())c=c.value,x=Math.min(x,c.startTime),v=Math.max(v,c.endTime);if("br"==p.tagName)return e=new gc(x,v,""),e.lineBreak=!0,e;b="";y&&(b=p.textContent,h&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new gc(x,v,b);b.nestedCues=a;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=Vu(p,"region",f,"")[0];if(p.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var C=k.getAttribute("xml:id");b.region=g.filter(function(B){return B.id==C})[0]}g=k;l&&d&&!p.getAttribute("region")&&!p.getAttribute("style")&&
845
+ (g=Vu(l,"region",f,"")[0]);Yu(b,p,g,q,e,w,0==a.length);return b}
846
+ function Yu(a,b,c,d,e,f,g){f=f||g;"rtl"==Zu(b,c,e,"direction",f)&&(a.direction="rtl");g=Zu(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=Zu(b,c,e,"textAlign",!0))?(a.positionAlign=$u[g],a.lineAlign=av[g],a.textAlign=vc[g.toUpperCase()]):a.textAlign=kc;if(g=Zu(b,c,e,"displayAlign",!0))a.displayAlign=wc[g.toUpperCase()];if(g=Zu(b,c,e,"color",f))a.color=g;if(g=Zu(b,c,e,"backgroundColor",
847
+ f))a.backgroundColor=g;if(g=Zu(b,c,e,"border",f))a.border=g;if(g=Zu(b,c,e,"fontFamily",f))a.fontFamily=g;(g=Zu(b,c,e,"fontWeight",f))&&"bold"==g&&(a.fontWeight=700);g=Zu(b,c,e,"wrapOption",f);a.wrapLine=g&&"noWrap"==g?!1:!0;(g=Zu(b,c,e,"lineHeight",f))&&g.match(bv)&&(a.lineHeight=g);(g=Zu(b,c,e,"fontSize",f))&&(g.match(bv)||g.match(cv))&&(a.fontSize=g);if(g=Zu(b,c,e,"fontStyle",f))a.fontStyle=Ac[g.toUpperCase()];if(d){g=d.getAttribute("imageType")||d.getAttribute("imagetype");var h=d.getAttribute("encoding");
848
+ d=d.textContent.trim();"PNG"==g&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)}if(d=Zu(b,c,e,"textOutline",f))d=d.split(" "),d[0].match(bv)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match(bv)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=Zu(b,c,e,"letterSpacing",f))&&d.match(bv)&&(a.letterSpacing=d);(d=Zu(b,c,e,"linePadding",f))&&d.match(bv)&&(a.linePadding=d);if(f=Zu(b,c,e,"opacity",f))a.opacity=parseFloat(f);(c=Su(c,e,"textDecoration"))&&dv(a,c);(b=
849
+ ev(b,e,"textDecoration"))&&dv(a,b)}
850
+ function dv(a,b){for(var c=t(b.split(" ")),d=c.next();!d.done;d=c.next())switch(d.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&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")||
851
+ a.textDecoration.push("overline");break;case "noOverline":a.textDecoration.includes("overline")&&dc(a.textDecoration,"overline")}}function Zu(a,b,c,d,e){e=void 0===e?!0:e;return(a=ev(a,c,d))?a:e?Su(b,c,d):null}function Su(a,b,c){if(!a)return null;var d=Xn(a,Ou,c);return d?d:fv(a,b,c)}function ev(a,b,c){var d=Xn(a,Ou,c);return d?d:fv(a,b,c)}
852
+ function fv(a,b,c){a=Vu(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=Wn(a[e],"urn:ebu:tt:style",c);f||(f=Xn(a[e],Ou,c));f||(f=ev(a[e],b,c));f&&(d=f)}return d}
853
+ function Vu(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?Wn(g,e,b):g.getAttribute(b))&&(g=g.parentNode,g instanceof Element););if(b=a)for(b=t(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=t(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.getAttribute("xml:id")==e){f.push(g);break}return f}function Xu(a,b,c,d){a=Wu(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}}
854
+ function Wu(a,b){var c=gv(a.getAttribute("begin"),b),d=gv(a.getAttribute("end"),b),e=gv(a.getAttribute("dur"),b);null==d&&null!=e&&(d=c+e);return{start:c,end:d}}
855
+ function gv(a,b){var c=null;if(hv.test(a)){c=hv.exec(a);var d=Number(c[1]),e=Number(c[2]),f=Number(c[3]),g=Number(c[4]);g+=(Number(c[5])||0)/b.h;f+=g/b.frameRate;c=f+60*e+3600*d}else if(iv.test(a))c=jv(iv,a);else if(kv.test(a))c=jv(kv,a);else if(lv.test(a))c=lv.exec(a),c=Number(c[1])/b.frameRate;else if(mv.test(a))c=mv.exec(a),c=Number(c[1])/b.g;else if(nv.test(a))c=jv(nv,a);else if(a)throw new O(2,2,2001,"Could not parse cue time range in TTML");return c}
856
+ function jv(a,b){var c=a.exec(b);return null==c||""==c[0]?null:(Number(c[4])||0)/1E3+(Number(c[3])||0)+60*(Number(c[2])||0)+3600*(Number(c[1])||0)}J("shaka.text.TtmlTextParser",Mu);Mu.prototype.parseMedia=Mu.prototype.parseMedia;Mu.prototype.setSequenceMode=Mu.prototype.setSequenceMode;Mu.prototype.parseInit=Mu.prototype.parseInit;
857
+ function Pu(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]))}
858
+ var Qu=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,cv=/^(\d{1,2}(?:\.\d+)?|100)%$/,bv=/^(\d+px|\d+em|\d*\.?\d+c)$/,Ru=/^(\d+)px (\d+)px$/,hv=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,iv=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,kv=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,lv=/^(\d*(?:\.\d*)?)f$/,mv=/^(\d*(?:\.\d*)?)t$/,nv=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),av={left:nc,center:"center",right:"end",start:nc,
859
+ end:"end"},$u={left:"line-left",center:"center",right:"line-right"},Nu=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],Ou=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],Uu=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];Hd["application/ttml+xml"]=function(){return new Mu};function ov(){this.g=new Mu}ov.prototype.parseInit=function(a){var b=!1;(new zg).box("moov",Dg).box("trak",Dg).box("mdia",Dg).box("minf",Dg).box("stbl",Dg).Y("stsd",Fg).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new O(2,2,2007);};ov.prototype.setSequenceMode=function(){};ov.prototype.parseMedia=function(a,b){var c=this,d=!1,e=[];(new zg).box("mdat",Gg(function(f){d=!0;e=e.concat(c.g.parseMedia(f,b))})).parse(a,!1);if(!d)throw new O(2,2,2007);return e};
860
+ J("shaka.text.Mp4TtmlParser",ov);ov.prototype.parseMedia=ov.prototype.parseMedia;ov.prototype.setSequenceMode=ov.prototype.setSequenceMode;ov.prototype.parseInit=ov.prototype.parseInit;Hd['application/mp4; codecs="stpp"']=function(){return new ov};Hd['application/mp4; codecs="stpp.ttml"']=function(){return new ov};Hd['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new ov};Hd['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new ov};function pv(){this.g=!1}pv.prototype.parseInit=function(){};pv.prototype.setSequenceMode=function(a){this.g=a};
861
+ pv.prototype.parseMedia=function(a,b){var c=ed(a);c=c.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var d=c.split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(d[0]))throw new O(2,2,2E3);c=b.vttOffset;if(d[0].includes("X-TIMESTAMP-MAP")&&this.g){var e=d[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),f=d[0].match(/MPEGTS:(\d+)/m);if(e&&f){c=qv(new lq(e[1]));if(null==c)throw new O(2,2,2E3);f=Number(f[1]);for(e=b.segmentStart;95443.7176888889<=e;)e-=95443.7176888889,f+=8589934592;c=b.periodStart+f/9E4-
862
+ c}}f=[];e=t(d[0].split("\n"));for(var g=e.next();!g.done;g=e.next())if(g=g.value,/^Region:/.test(g)){g=new lq(g);var h=new ic;oq(g);mq(g);for(var k=oq(g);k;){var l=h,m=k;(k=/^id=(.*)$/.exec(m))?l.id=k[1]:(k=/^width=(\d{1,2}|100)%$/.exec(m))?l.width=Number(k[1]):(k=/^lines=(\d+)$/.exec(m))?(l.height=Number(k[1]),l.heightUnits=2):(k=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?(l.regionAnchorX=Number(k[1]),l.regionAnchorY=Number(k[2])):(k=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(m))?
863
+ (l.viewportAnchorX=Number(k[1]),l.viewportAnchorY=Number(k[2])):/^scroll=up$/.exec(m)&&(l.scroll="up");mq(g);k=oq(g)}f.push(h)}e=new Map;rv(e);g=[];d=t(d.slice(1));for(h=d.next();!h.done;h=d.next()){h=h.value.split("\n");if((1!=h.length||h[0])&&!/^NOTE($|[ \t])/.test(h[0])&&"STYLE"==h[0]&&h[1].includes("::cue")){l="global";(k=h[1].match(/\((.*)\)/))&&(l=k.pop());k=h.slice(2,-1);h[1].includes("}")&&(m=/\{(.*?)\}/.exec(h[1]))&&(k=m[1].split(";"));m=new gc(0,0,"");for(var n=!1,p=0;p<k.length;p++){var q=
864
+ /^\s*([^:]+):\s*(.*)/.exec(k[p]);if(q){var w=q[2].trim().replace(";","");switch(q[1].trim()){case "background-color":n=!0;m.backgroundColor=w;break;case "color":n=!0;m.color=w;break;case "font-family":n=!0;m.fontFamily=w;break;case "font-size":n=!0;m.fontSize=w;break;case "font-weight":700<=parseInt(w,10)&&(n=!0,m.fontWeight=700);break;case "font-style":switch(w){case "normal":n=!0;m.fontStyle=qc;break;case "italic":n=!0;m.fontStyle="italic";break;case "oblique":n=!0,m.fontStyle="oblique"}break;case "opacity":n=
865
+ !0;m.opacity=parseFloat(w);break;case "text-shadow":n=!0;m.textShadow=w;break;case "white-space":n=!0,m.wrapLine="noWrap"!=w}}}n&&e.set(l,m)}p=c;if(1==h.length&&!h[0]||/^NOTE($|[ \t])/.test(h[0])||"STYLE"==h[0])h=null;else{l=null;h[0].includes("--\x3e")||(l=h[0],h.splice(0,1));k=new lq(h[0]);m=qv(k);q=nq(k,/[ \t]+--\x3e[ \t]+/g);n=qv(k);if(null==m||null==q||null==n)throw new O(2,2,2001,"Could not parse cue time range in WebVTT");m+=p;n+=p;p=h.slice(1).join("\n").trim();e.has("global")?(h=e.get("global").clone(),
866
+ h.startTime=m,h.endTime=n,h.payload=""):h=new gc(m,n,"");sv(p,h,e);mq(k);for(m=oq(k);m;)tv(h,m,f),mq(k),m=oq(k);null!=l&&(h.id=l)}h&&g.push(h)}return g};function rv(a){for(var b=t(Object.entries(yc)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new gc(0,0,"");e.color=d;a.set(c,e)}b=t(Object.entries(zc));for(c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new gc(0,0,""),e.backgroundColor=d,a.set(c,e)}
867
+ function sv(a,b,c){0===c.size&&rv(c);a=uv(a);var d=jo("<span>"+a+"</span>","span");if(d){var e=[];d=d.childNodes;if(1==d.length){var f=d[0];if(f.nodeType==Node.TEXT_NODE||f.nodeType==Node.CDATA_SECTION_NODE){b.payload=a;return}}a=t(d);for(d=a.next();!d.done;d=a.next())vv(d.value,b,e,c);b.nestedCues=e}else b.payload=a}
868
+ function uv(a){for(var b=[],c=-1,d="",e=0;e<a.length;e++)if("/"===a[e]){var f=a.indexOf(">",e);if(f<=e)return a;f=a.substring(e+1,f);var g=b.pop();if(f&&g){if(g===f)d+="/"+f+">";else{if(!g.startsWith("c.")||"c"!==f)return a;d+="/"+g+">"}e+=f.length+1}else return a}else"<"===a[e]?c=e+1:">"===a[e]&&0<c&&(b.push(a.substr(c,e-c)),c=-1),d+=a[e];return d}function wv(a,b){return a&&0<a.length?a:b}
869
+ function vv(a,b,c,d){var e=b.clone();if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var f=t(a.nodeName.split(/[ .]+/)),g=f.next();!g.done;g=f.next()){g=g.value;if(d.has(g)){var h=d.get(g);h&&(e.backgroundColor=wv(h.backgroundColor,e.backgroundColor),e.color=wv(h.color,e.color),e.fontFamily=wv(h.fontFamily,e.fontFamily),e.fontSize=wv(h.fontSize,e.fontSize),e.fontWeight=h.fontWeight,e.fontStyle=h.fontStyle,e.opacity=h.opacity,e.wrapLine=h.wrapLine)}switch(g){case "b":e.fontWeight=700;break;case "i":e.fontStyle=
870
+ "italic";break;case "u":e.textDecoration.push("underline")}}if(Zn(a))for(f=!0,d=t(a.textContent.split("\n")),a=d.next();!a.done;a=d.next())a=a.value,f||(f=b.clone(),f.lineBreak=!0,c.push(f)),0<a.length&&(f=e.clone(),f.payload=a,c.push(f)),f=!1;else for(b=t(a.childNodes),a=b.next();!a.done;a=b.next())vv(a.value,e,c,d)}
871
+ function tv(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=vc[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"==
872
+ b?"line-right":"center");else if(d=/^region:(.*)$/.exec(b)){if(b=xv(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=xc[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=xc[c[2].toUpperCase()])}function xv(a,b){var c=a.filter(function(d){return d.id==b});return c.length?c[0]:null}
873
+ function qv(a){a=nq(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)}J("shaka.text.VttTextParser",pv);pv.prototype.parseMedia=pv.prototype.parseMedia;pv.prototype.setSequenceMode=pv.prototype.setSequenceMode;pv.prototype.parseInit=pv.prototype.parseInit;Hd["text/vtt"]=function(){return new pv};Hd['text/vtt; codecs="vtt"']=function(){return new pv};
874
+ Hd['text/vtt; codecs="wvtt"']=function(){return new pv};function yv(){this.g=null}yv.prototype.parseInit=function(a){var b=this,c=!1;(new zg).box("moov",Dg).box("trak",Dg).box("mdia",Dg).Y("mdhd",function(d){d=Qh(d.reader,d.version);b.g=d.timescale}).box("minf",Dg).box("stbl",Dg).Y("stsd",Fg).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new O(2,2,2008);if(!c)throw new O(2,2,2008);};yv.prototype.setSequenceMode=function(){};
875
+ yv.prototype.parseMedia=function(a,b){if(!this.g)throw new O(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new zg).box("moof",Dg).box("traf",Dg).Y("tfdt",function(B){g=!0;c=Ph(B.reader,B.version).$e}).Y("tfhd",function(B){l=Oh(B.reader,B.flags).lf}).Y("trun",function(B){h=!0;d=Rh(B.reader,B.version,B.flags).Ff}).box("mdat",Gg(function(B){k=!0;e=B})).parse(a,!1);if(!k&&!g&&!h)throw new O(2,2,2008);for(var m=c,n=new wg(e,0),p=t(d),q=p.next();!q.done;q=p.next()){q=q.value;var w=q.ye||l,y=q.Ed?
876
+ c+q.Ed:m;m=y+(w||0);var x=0;do{var v=n.R();x+=v;var D=n.R(),C=null;"vttc"==Hg(D)?8<v&&(C=n.Cb(v-8)):n.skip(v-8);w&&C&&(v=zv(C,b.periodStart+y/this.g,b.periodStart+m/this.g),f.push(v))}while(q.sampleSize&&x<q.sampleSize)}return f.filter(Cb)};function zv(a,b,c){var d,e,f;(new zg).box("payl",Gg(function(g){d=ed(g)})).box("iden",Gg(function(g){e=ed(g)})).box("sttg",Gg(function(g){f=ed(g)})).parse(a);return d?Av(d,e,f,b,c):null}
877
+ function Av(a,b,c,d,e){d=new gc(d,e,"");sv(a,d,new Map);b&&(d.id=b);if(c)for(a=new lq(c),b=oq(a);b;)tv(d,b,[]),mq(a),b=oq(a);return d}J("shaka.text.Mp4VttParser",yv);yv.prototype.parseMedia=yv.prototype.parseMedia;yv.prototype.setSequenceMode=yv.prototype.setSequenceMode;yv.prototype.parseInit=yv.prototype.parseInit;Hd['application/mp4; codecs="wvtt"']=function(){return new yv};function Bv(){}Bv.prototype.parseInit=function(){};Bv.prototype.setSequenceMode=function(){};Bv.prototype.parseMedia=function(a){var b=ed(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=t(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new lq(c[0]),e=Cv(d),f=nq(d,/,/g);d=Cv(d);if(null==e||null==f||null==d)throw new O(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new gc(e,d,c.slice(1).join("\n").trim()))}return a};
878
+ function Cv(a){a=nq(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)}J("shaka.text.SbvTextParser",Bv);Bv.prototype.parseMedia=Bv.prototype.parseMedia;Bv.prototype.setSequenceMode=Bv.prototype.setSequenceMode;Bv.prototype.parseInit=Bv.prototype.parseInit;Hd["text/x-subviewer"]=function(){return new Bv};function Dv(){this.g=new pv}Dv.prototype.parseInit=function(){};Dv.prototype.setSequenceMode=function(){};Dv.prototype.parseMedia=function(a,b){var c=ed(a);c=Ev(c);c=Gc(id(c));return this.g.parseMedia(c,b)};function Ev(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=t(a.split("\n\n"));for(var c=a.next();!c.done;c=a.next())c=c.value.split(/\n/),c[0].match(/\d+/)&&c.shift(),c[0]=c[0].replace(/,/g,"."),b+=c.join("\n")+"\n\n";return b}J("shaka.text.SrtTextParser",Dv);
879
+ Dv.srt2webvtt=Ev;Dv.prototype.parseMedia=Dv.prototype.parseMedia;Dv.prototype.setSequenceMode=Dv.prototype.setSequenceMode;Dv.prototype.parseInit=Dv.prototype.parseInit;Hd["text/srt"]=function(){return new Dv};function Fv(){}Fv.prototype.parseInit=function(){};Fv.prototype.setSequenceMode=function(){};
880
+ Fv.prototype.parseMedia=function(a){var b="",c="";a=ed(a).split(/\r?\n\s*\r?\n/);a=t(a);for(var d=a.next();!d.done;d=a.next()){var e=Gv.exec(d.value);e&&(d=e[1],e=e[2],"V4 Styles"==d||"V4+ Styles"==d?b=e:"Events"==d&&(c=e))}a=[];d=null;b=t(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=Hv.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(Iv);else if("Style"==e){e=f.split(Iv);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d=
881
+ [];b=null;e={};c=t(c.split(/\r?\n/));for(f=c.next();!f.done;e={Wd:e.Wd},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=Hv.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(Iv);else if("Dialogue"==f){g=g.split(Iv);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=Jv(f.Start);var k=Jv(f.End);g=new gc(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.Wd=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.Wd}}(e)))&&Kv(g,f);d.push(g)}return d};
882
+ function Kv(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=Lv(c))a.color=c;if(c=b.BackColour)if(c=Lv(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";
883
+ 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(c=b.AlphaLevel)a.opacity=parseFloat(c)}
884
+ function Lv(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 Jv(a){a=Mv.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}J("shaka.text.SsaTextParser",Fv);Fv.prototype.parseMedia=Fv.prototype.parseMedia;Fv.prototype.setSequenceMode=Fv.prototype.setSequenceMode;Fv.prototype.parseInit=Fv.prototype.parseInit;
885
+ var Gv=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,Hv=/^\s*([^:]+):\s*(.*)/,Iv=/\s*,\s*/,Mv=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;Hd["text/x-ssa"]=function(){return new Fv};function Nv(){}J("shaka.util.FairPlayUtils",Nv);Nv.commonFairPlayResponse=function(a,b){if(2===a){try{var c=ed(b.data)}catch(f){return}var d=!1;c=c.trim();"<ckc>"===c.substr(0,5)&&"</ckc>"===c.substr(-6)&&(c=c.slice(5,-6),d=!0);try{var e=JSON.parse(c);e.ckc&&(c=e.ckc,d=!0);e.CkcMessage&&(c=e.CkcMessage,d=!0);e.License&&(c=e.License,d=!0)}catch(f){}d&&(b.data=Hc(nd(c)))}};
886
+ Nv.spcFairPlayRequest=function(a,b){if(2===a){var c=Gc(b.body);c=md(c);b.headers["Content-Type"]="application/x-www-form-urlencoded";b.body=id("spc="+c)}};Nv.initDataTransform=function(a,b,c){function d(h){Jc(f).setUint32(g,h.byteLength,!0);g+=4;f.set(Gc(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new O(2,6,6015);var e;"string"==typeof b?e=jd(b,!0):e=b;a=hd(a);a=jd(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f};
887
+ Nv.defaultGetContentId=function(a){a=hd(a);return(new lb(a)).Za};Nv.isFairPlaySupported=function(){var a;return I(function(b){if(1==b.g)return a={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},A(b,2),u(b,navigator.requestMediaKeySystemAccess("com.apple.fps",[a]),4);if(2!=b.g)return b["return"](!0);F(b);return b["return"](!1)})};/*
882
888
  @license
883
889
  EME Encryption Scheme Polyfill
884
890
  Copyright 2019 Google LLC
885
891
  SPDX-License-Identifier: Apache-2.0
886
892
  */
887
- function Mv(){}var Nv;function Ov(){Nv?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(Nv=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=Pv):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
888
- function Pv(a,b){var c=this,d;return I(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),u(e,Nv.call(c,a,b),2);d=e.h;if(Qv(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=Nv,e["return"](d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=Rv;return e["return"](Rv.call(c,
893
+ function Ov(){}var Pv;function Qv(){Pv?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(Pv=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=Rv):console.debug("EmeEncryptionSchemePolyfill: EME not found")}
894
+ function Rv(a,b){var c=this,d;return I(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),u(e,Pv.call(c,a,b),2);d=e.h;if(Sv(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=Pv,e["return"](d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=Tv;return e["return"](Tv.call(c,
889
895
  a,b))})}
890
- function Rv(a,b){var c=this,d,e,f,g,h,k,l,m,n,p;return I(function(q){if(1==q.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=Sv(a);e=[];f=t(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=Tv(h.videoCapabilities,d),l=Tv(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw n=Error("Unsupported keySystem or supportedConfigurations."),
891
- n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return u(q,Nv.call(c,a,e),2)}p=q.h;return q["return"](new Uv(p,d))})}function Tv(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}J("EmeEncryptionSchemePolyfill",Mv);Mv.install=Ov;function Vv(){}var Wv;
892
- function Xv(){Wv?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(Wv=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=Yv):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
893
- function Yv(a){var b=this,c,d;return I(function(e){if(1==e.g)return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),u(e,Wv.call(b,a),2);c=e.h;if(!a.keySystemConfiguration)return e["return"](c);if((d=c.keySystemAccess)&&Qv(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=Wv,e["return"](c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
894
- navigator.mediaCapabilities.decodingInfo=Zv;return e["return"](Zv.call(b,a))})}
895
- function Zv(a){var b=this,c,d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),c=null,a.keySystemConfiguration&&(d=a.keySystemConfiguration,e=d.keySystem,f=d.audio&&d.audio.encryptionScheme,g=d.video&&d.video.encryptionScheme,c=Sv(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},f&&f!=c||g&&g!=c)?n["return"](h):u(n,Wv.call(b,a),2);case 2:k=n.h;if(k.keySystemAccess){k.keySystemAccess=
896
- new Uv(k.keySystemAccess,c);n.D(3);break}if(!a.keySystemConfiguration){n.D(3);break}var p=a.keySystemConfiguration,q=[],x=[];p.audio&&q.push({robustness:p.audio.robustness||"",contentType:a.audio.contentType});p.video&&x.push({robustness:p.video.robustness||"",contentType:a.video.contentType});p={initDataTypes:p.initDataType?[p.initDataType]:[],distinctiveIdentifier:p.distinctiveIdentifier,persistentState:p.persistentState,sessionTypes:p.sessionTypes};q.length&&(p.audioCapabilities=q);x.length&&(p.videoCapabilities=
897
- x);l=p;m=k;return u(n,navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[l]),5);case 5:m.keySystemAccess=n.h;case 3:return n["return"](k)}})}J("McEncryptionSchemePolyfill",Vv);Vv.install=Xv;function Uv(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
898
- Uv.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=t(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=t(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};Uv.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
899
- function Sv(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs-1-9";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function Qv(a){a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&void 0!==a.encryptionScheme?!0:!1}function $v(){}
900
- function vt(){Ov();Xv()}J("EncryptionSchemePolyfills",$v);$v.install=vt;"undefined"!==typeof module&&module.exports&&(module.exports=$v);/*
896
+ function Tv(a,b){var c=this,d,e,f,g,h,k,l,m,n,p;return I(function(q){if(1==q.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=Uv(a);e=[];f=t(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=Vv(h.videoCapabilities,d),l=Vv(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw n=Error("Unsupported keySystem or supportedConfigurations."),
897
+ n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return u(q,Pv.call(c,a,e),2)}p=q.h;return q["return"](new Wv(p,d))})}function Vv(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}J("EmeEncryptionSchemePolyfill",Ov);Ov.install=Qv;function Xv(){}var Yv;
898
+ function Zv(){Yv?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(Yv=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=$v):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}
899
+ function $v(a){var b=this,c,d,e;return I(function(f){switch(f.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),u(f,Yv.call(b,a),2);case 2:c=f.h;if(!a.keySystemConfiguration)return f["return"](c);if((d=c.keySystemAccess)&&Sv(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=Yv,f["return"](c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");
900
+ navigator.mediaCapabilities.decodingInfo=aw;if(d){f.D(3);break}e=c;return u(f,bw(a),4);case 4:return e.keySystemAccess=f.h,f["return"](c);case 3:return f["return"](aw.call(b,a))}})}
901
+ function aw(a){var b=this,c,d,e,f,g,h,k,l;return I(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=Uv(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a},f&&f!=c||g&&g!=c)?m["return"](h):u(m,Yv.call(b,a),2);case 2:k=m.h;if(k.keySystemAccess){k.keySystemAccess=
902
+ new Wv(k.keySystemAccess,c);m.D(3);break}if(!a.keySystemConfiguration){m.D(3);break}l=k;return u(m,bw(a),5);case 5:l.keySystemAccess=m.h;case 3:return m["return"](k)}})}
903
+ function bw(a){var b,c;return I(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 u(d,
904
+ navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d["return"](c)})}J("McEncryptionSchemePolyfill",Xv);Xv.install=Zv;function Wv(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem}
905
+ Wv.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=t(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=t(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};Wv.prototype.createMediaKeys=function(){return this.h.createMediaKeys()};
906
+ function Uv(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 Sv(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}
907
+ function cw(){}function xt(){Qv();Zv()}J("EncryptionSchemePolyfills",cw);cw.install=xt;"undefined"!==typeof module&&module.exports&&(module.exports=cw);/*
901
908
  @license
902
909
  Copyright 2013 Ali Al Dallal
903
910
 
@@ -921,7 +928,7 @@ function vt(){Ov();Xv()}J("EncryptionSchemePolyfills",$v);$v.install=vt;"undefin
921
928
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
922
929
  SOFTWARE.
923
930
  */
924
- for(var aw={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)"},
931
+ for(var dw={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)"},
925
932
  "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",
926
933
  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",
927
934
  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",
@@ -942,183 +949,183 @@ u:"Slovak"},"sk-SK":{s:"Sloven\u010dina (Slovakia)",u:"Slovak (Slovakia)"},sl:{s
942
949
  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",
943
950
  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",
944
951
  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",
945
- 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"}},bw=t(Object.keys(aw)),cw=bw.next();!cw.done;cw=
946
- bw.next()){var dw=cw.value;aw[dw.toLowerCase()]=aw[dw]};function W(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new uf;this.localization=this.controls.Ma;this.player=this.controls.dc();this.video=this.controls.Db();this.adManager=this.player.jd();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})}
947
- W.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};J("shaka.ui.Element",W);W.prototype.release=W.prototype.release;function ew(a){return fw(a,"shaka-back-to-overflow-button")}function fw(a,b){var c=a.getElementsByClassName(b);return c.length?c[0]:null}function gw(a){a&&(a=fw(a,"shaka-chosen-item"))&&a.parentElement.focus()}function hw(){var a=R("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function X(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
948
- function iw(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60),e=Math.floor(a%60);10>e&&(e="0"+e);e=d+":"+e;b&&(10>d&&(e="0"+e),e=c+":"+e);return e};function jw(a,b){W.call(this,a,b);var c=this;this.i=R("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=R("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new P(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=iw(e-d,!1)+" / "+iw(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=
949
- ""))});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.ya();c.g.ma(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.ya(),this.g.ma(.5))}ra(jw,W);jw.prototype.release=function(){this.g.stop();this.g=null;W.prototype.release.call(this)};J("shaka.ui.AdCounter",jw);function kw(a,b){W.call(this,a,b);var c=this;this.g=R("div");this.g.classList.add("shaka-ad-position");X(this.g,!1);this.parent.appendChild(this.g);this.h=R("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.o(this.localization,"locale-updated",function(){c.ad&&lw(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&lw(c)});this.eventManager.o(this.adManager,"ad-started",function(){lw(c)});this.eventManager.o(this.adManager,
950
- "ad-stopped",function(){c.h.textContent="";X(c.g,!1)});this.ad&&lw(this)}ra(kw,W);function lw(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));X(a.g,!0)}}J("shaka.ui.AdPosition",kw);function mw(a,b){W.call(this,a,b);var c=this;this.button=ek();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();
951
- 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()?nw(c.controls):ow(c.controls)});this.ad&&(this.g(),this.h())}ra(mw,W);mw.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.B.paused&&!a.$;return a};mw.prototype.g=function(){};mw.prototype.h=function(){};
952
- J("shaka.ui.PlayButton",mw);function pw(a,b){mw.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}ra(pw,mw);pw.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};pw.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};J("shaka.ui.BigPlayButton",pw);function qw(a,b){W.call(this,a,b);var c=this;this.j=this.controls.i;this.h=this.controls.g;this.i=[];this.g=R("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.o(this.h,"contextmenu",function(d){if(c.g.classList.contains("shaka-hidden")){d.preventDefault();var e=c.h.getBoundingClientRect();c.g.style.left=d.clientX-e.left+"px";c.g.style.top=d.clientY-e.top+"px";X(c.g,!0)}else X(c.g,
953
- !1)});this.eventManager.o(window,"click",function(){X(c.g,!1)});rw(this)}ra(qw,W);qw.prototype.release=function(){this.h=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];W.prototype.release.call(this)};function sw(a,b){tw.set(a,b)}function rw(a){for(var b=t(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=tw.get(c);d?a.i.push(d.create(a.g,a.controls)):Ua("Unrecognized context menu element:",c)}}J("shaka.ui.ContextMenu",qw);
954
- qw.registerElement=sw;var tw=new Map;function uw(a,b,c,d){W.call(this,a,b);var e=this;this.container=R("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,ia(c));this.g=!1;this.bar=document.createElement("input");this.l=new P(function(){e.onChangeEnd();e.g=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,ia(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.container.appendChild(this.bar);
955
- this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown",function(){e.controls.Ob()&&(e.g=!0,e.onChangeStart())});this.eventManager.o(this.bar,"touchstart",function(f){e.controls.Ob()&&(e.g=!0,vw(e,f),e.onChangeStart())});this.eventManager.o(this.bar,"input",function(){e.onChange()});this.eventManager.o(this.bar,"touchmove",function(f){e.g&&(vw(e,f),e.onChange())});this.eventManager.o(this.bar,"touchend",function(f){e.g&&(e.g=!1,vw(e,f),e.onChangeEnd())});this.eventManager.o(this.bar,
956
- "mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())})}ra(uw,W);r=uw.prototype;r.release=function(){this.l&&(this.l.stop(),this.l=null);W.prototype.release.call(this)};r.setRange=function(a,b){this.bar.min=a;this.bar.max=b};r.onChangeStart=function(){};r.onChange=function(){};r.onChangeEnd=function(){};r.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.T(.5)};r.getValue=function(){return parseFloat(this.bar.value)};
957
- r.setValue=function(a){this.g||(this.bar.value=a)};function vw(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect(),e=parseFloat(a.bar.min),f=parseFloat(a.bar.max);c=e+(f-e)/d.width*(c.clientX-d.left);c<e?c=e:c>f&&(c=f);a.bar.value=c}J("shaka.ui.RangeElement",uw);uw.prototype.setValue=uw.prototype.setValue;uw.prototype.getValue=uw.prototype.getValue;uw.prototype.changeTo=uw.prototype.changeTo;uw.prototype.onChangeEnd=uw.prototype.onChangeEnd;uw.prototype.onChange=uw.prototype.onChange;
958
- uw.prototype.onChangeStart=uw.prototype.onChangeStart;uw.prototype.setRange=uw.prototype.setRange;function ww(a,b){uw.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.j=R("div");this.j.classList.add("shaka-ad-markers");this.container.insertBefore(this.j,this.container.childNodes[0]);this.m=this.controls.i;this.h=new P(function(){c.video.currentTime=c.getValue()});this.A=new P(function(){xw(c)});this.B=!1;this.i=[];this.eventManager.o(this.localization,"locale-updated",function(){return yw(c)});this.eventManager.o(this.localization,
959
- "locale-changed",function(){return yw(c)});this.eventManager.o(this.adManager,"ad-started",function(){zw(c)||X(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){zw(c)&&X(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;Aw(c)});this.eventManager.o(this.player,"unloading",function(){c.i=[];Aw(c)});this.setValue(this.video.currentTime);this.update();yw(this);this.ad&&X(this.container,!1)}ra(ww,uw);r=ww.prototype;
960
- r.release=function(){this.h&&(this.h.stop(),this.h=null,this.A.stop(),this.A=null);uw.prototype.release.call(this)};r.onChangeStart=function(){this.B=!this.video.paused;this.controls.Ee(!0);this.video.pause()};r.onChange=function(){this.video.duration&&(this.update(),this.h.T(.125))};r.onChangeEnd=function(){this.h.ya();this.controls.Ee(!1);this.B&&this.video.play()};r.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
961
- r.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.Ia(),g=f.end-f.start;this.setRange(f.start,f.end);zw(this)?(X(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?
952
+ 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"}},ew=t(Object.keys(dw)),fw=ew.next();!fw.done;fw=
953
+ ew.next()){var gw=fw.value;dw[gw.toLowerCase()]=dw[gw]};function W(a,b){var c=this;this.parent=a;this.controls=b;this.eventManager=new vf;this.localization=this.controls.za;this.player=this.controls.bc();this.video=this.controls.Bb();this.adManager=this.player.jd();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})}
954
+ W.prototype.release=function(){this.eventManager.release();this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null};J("shaka.ui.Element",W);W.prototype.release=W.prototype.release;function hw(a){return iw(a,"shaka-back-to-overflow-button")}function iw(a,b){var c=a.getElementsByClassName(b);return c.length?c[0]:null}function jw(a){a&&(a=iw(a,"shaka-chosen-item"))&&a.parentElement.focus()}function kw(){var a=R("i");a.classList.add("material-icons-round");a.classList.add("shaka-chosen-item");a.textContent="done";a.ariaHidden="true";return a}function X(a,b){a&&(b?a.classList.remove("shaka-hidden"):a.classList.add("shaka-hidden"))}
955
+ function lw(a,b){var c=Math.floor(a/3600),d=Math.floor(a/60%60),e=Math.floor(a%60);10>e&&(e="0"+e);e=d+":"+e;b&&(10>d&&(e="0"+e),e=c+":"+e);return e};function mw(a,b){W.call(this,a,b);var c=this;this.i=R("div");this.i.classList.add("shaka-ad-counter");this.parent.appendChild(this.i);this.h=R("span");this.h.classList.add("shaka-ad-counter-span");this.i.appendChild(this.h);this.g=new P(function(){var d=Math.round(c.ad.getRemainingTime()),e=c.ad.getDuration();-1!=d&&-1!=e&&(0<d?(d=lw(e-d,!1)+" / "+lw(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=
956
+ ""))});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.xa();c.g.ka(.5)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.g.stop();c.h.textContent=""});this.ad&&(this.g.xa(),this.g.ka(.5))}qa(mw,W);mw.prototype.release=function(){this.g.stop();this.g=null;W.prototype.release.call(this)};J("shaka.ui.AdCounter",mw);function nw(a,b){W.call(this,a,b);var c=this;this.g=R("div");this.g.classList.add("shaka-ad-position");X(this.g,!1);this.parent.appendChild(this.g);this.h=R("span");this.h.classList.add("shaka-ad-position-span");this.g.appendChild(this.h);this.eventManager.o(this.localization,"locale-updated",function(){c.ad&&ow(c)});this.eventManager.o(this.localization,"locale-changed",function(){c.ad&&ow(c)});this.eventManager.o(this.adManager,"ad-started",function(){ow(c)});this.eventManager.o(this.adManager,
957
+ "ad-stopped",function(){c.h.textContent="";X(c.g,!1)});this.ad&&ow(this)}qa(nw,W);function ow(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));X(a.g,!0)}}J("shaka.ui.AdPosition",nw);function pw(a,b){W.call(this,a,b);var c=this;this.button=ek();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();
958
+ 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()?qw(c.controls):rw(c.controls)});this.ad&&(this.g(),this.h())}qa(pw,W);pw.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var a=this.ad.isPaused();else a=this.controls,a=a.B.paused&&!a.$;return a};pw.prototype.g=function(){};pw.prototype.h=function(){};
959
+ J("shaka.ui.PlayButton",pw);function sw(a,b){pw.call(this,a,b);this.button.classList.add("shaka-play-button");this.button.classList.add("shaka-no-propagation");this.h();this.g()}qa(sw,pw);sw.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")};sw.prototype.g=function(){var a=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(a)};J("shaka.ui.BigPlayButton",sw);function tw(a,b){W.call(this,a,b);var c=this;this.j=this.controls.i;this.h=this.controls.g;this.i=[];this.g=R("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-context-menu");this.g.classList.add("shaka-hidden");this.h.appendChild(this.g);this.eventManager.o(this.h,"contextmenu",function(d){if(c.g.classList.contains("shaka-hidden")){d.preventDefault();var e=c.h.getBoundingClientRect();c.g.style.left=d.clientX-e.left+"px";c.g.style.top=d.clientY-e.top+"px";X(c.g,!0)}else X(c.g,
960
+ !1)});this.eventManager.o(window,"click",function(){X(c.g,!1)});uw(this)}qa(tw,W);tw.prototype.release=function(){this.h=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];W.prototype.release.call(this)};function vw(a,b){ww.set(a,b)}function uw(a){for(var b=t(a.j.contextMenuElements),c=b.next();!c.done;c=b.next()){c=c.value;var d=ww.get(c);d?a.i.push(d.create(a.g,a.controls)):Ua("Unrecognized context menu element:",c)}}J("shaka.ui.ContextMenu",tw);
961
+ tw.registerElement=vw;var ww=new Map;function xw(a,b,c,d){W.call(this,a,b);var e=this;this.container=R("div");this.container.classList.add("shaka-range-container");this.container.classList.add.apply(this.container.classList,ia(c));this.g=!1;this.bar=document.createElement("input");this.l=new P(function(){e.onChangeEnd();e.g=!1});this.bar.classList.add("shaka-range-element");this.bar.classList.add.apply(this.bar.classList,ia(d));this.bar.type="range";this.bar.step="any";this.bar.min="0";this.bar.max="1";this.bar.value="0";this.container.appendChild(this.bar);
962
+ this.parent.appendChild(this.container);this.eventManager.o(this.bar,"mousedown",function(){e.controls.Mb()&&(e.g=!0,e.onChangeStart())});this.eventManager.o(this.bar,"touchstart",function(f){e.controls.Mb()&&(e.g=!0,yw(e,f),e.onChangeStart())});this.eventManager.o(this.bar,"input",function(){e.onChange()});this.eventManager.o(this.bar,"touchmove",function(f){e.g&&(yw(e,f),e.onChange())});this.eventManager.o(this.bar,"touchend",function(f){e.g&&(e.g=!1,yw(e,f),e.onChangeEnd())});this.eventManager.o(this.bar,
963
+ "mouseup",function(){e.g&&(e.g=!1,e.onChangeEnd())})}qa(xw,W);r=xw.prototype;r.release=function(){this.l&&(this.l.stop(),this.l=null);W.prototype.release.call(this)};r.setRange=function(a,b){this.bar.min=a;this.bar.max=b};r.onChangeStart=function(){};r.onChange=function(){};r.onChangeEnd=function(){};r.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.T(.5)};r.getValue=function(){return parseFloat(this.bar.value)};
964
+ r.setValue=function(a){this.g||(this.bar.value=a)};function yw(a,b){b.preventDefault();var c=b.changedTouches[0],d=a.bar.getBoundingClientRect(),e=parseFloat(a.bar.min),f=parseFloat(a.bar.max);c=e+(f-e)/d.width*(c.clientX-d.left);c<e?c=e:c>f&&(c=f);a.bar.value=c}J("shaka.ui.RangeElement",xw);xw.prototype.setValue=xw.prototype.setValue;xw.prototype.getValue=xw.prototype.getValue;xw.prototype.changeTo=xw.prototype.changeTo;xw.prototype.onChangeEnd=xw.prototype.onChangeEnd;xw.prototype.onChange=xw.prototype.onChange;
965
+ xw.prototype.onChangeStart=xw.prototype.onChangeStart;xw.prototype.setRange=xw.prototype.setRange;function zw(a,b){xw.call(this,a,b,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var c=this;this.j=R("div");this.j.classList.add("shaka-ad-markers");this.container.insertBefore(this.j,this.container.childNodes[0]);this.m=this.controls.i;this.h=new P(function(){c.video.currentTime=c.getValue()});this.A=new P(function(){Aw(c)});this.B=!1;this.i=[];this.eventManager.o(this.localization,"locale-updated",function(){return Bw(c)});this.eventManager.o(this.localization,
966
+ "locale-changed",function(){return Bw(c)});this.eventManager.o(this.adManager,"ad-started",function(){Cw(c)||X(c.container,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){Cw(c)&&X(c.container,!0)});this.eventManager.o(this.adManager,"ad-cue-points-changed",function(d){c.i=d.cuepoints;Dw(c)});this.eventManager.o(this.player,"unloading",function(){c.i=[];Dw(c)});this.setValue(this.video.currentTime);this.update();Bw(this);this.ad&&X(this.container,!1)}qa(zw,xw);r=zw.prototype;
967
+ r.release=function(){this.h&&(this.h.stop(),this.h=null,this.A.stop(),this.A=null);xw.prototype.release.call(this)};r.onChangeStart=function(){this.B=!this.video.paused;this.controls.Ie(!0);this.video.pause()};r.onChange=function(){this.video.duration&&(this.update(),this.h.T(.125))};r.onChangeEnd=function(){this.h.xa();this.controls.Ie(!1);this.B&&this.video.play()};r.isShowing=function(){return!this.container.classList.contains("shaka-hidden")};
968
+ r.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.Ia(),g=f.end-f.start;this.setRange(f.start,f.end);Cw(this)?(X(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?
962
969
  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()+")")):X(this.container,!1)};
963
- function xw(a){if(a.i.length){for(var b=a.player.Ia(),c=b.end-b.start,d=["to right"],e=[],f=a.m.seekBarColors.adBreaks,g=!1,h=t(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=t(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 "+
964
- 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 Aw(a){xw(a);var b=a.player.Ia();b=b.end-b.start;a.player.U()&&5<b&&a.A.ma(1)}function zw(a){var b=a.player.Ia();b=b.end-b.start;return a.player.U()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function yw(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}J("shaka.ui.SeekBar",ww);function Bw(){}
965
- Bw.prototype.create=function(a,b){return new ww(a,b)};ww.Factory=Bw;function Z(a,b,c,d){fb.call(this);var e=this;this.S=!0;this.i=d;this.C=new kn(c,a,this.i.castReceiverAppId,this.i.castAndroidReceiverCompatible);this.ib=!0;this.B=this.C.Db();this.A=c;this.F=this.C.dc();this.za=a;this.j=b;this.Za=this.F.jd();this.m=this.l=null;this.$=!1;this.G=[];this.yb=[];this.kb=!1;this.aa=new P(function(){e.j.style.cursor="none";e.kb=!1;Cw(e)});this.ha=new P(function(){e.g.removeAttribute("shown");e.I.T(2)});this.I=new P(function(){for(var f=t(e.G),g=f.next();!g.done;g=f.next())X(g.value,
966
- !1)});this.Na=new P(function(){e.Ob()&&Dw(e)});this.J=null;this.H=[];this.Ma=Ew();this.h=new uf;this.configure(this.i);Fw(this);this.ua=new Set;Gw(this);this.Na.ma(.125);this.h.o(this.Ma,"locale-changed",function(f){e.Za.setLocale(f.locales[0])})}ra(Z,fb);r=Z.prototype;
967
- r.destroy=function(){var a=this;return I(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.A){b.D(2);break}return u(b,document.exitPictureInPicture(),2);case 2:a.h&&(a.h.release(),a.h=null);a.aa&&(a.aa.stop(),a.aa=null);a.ha&&(a.ha.stop(),a.ha=null);a.I&&(a.I.stop(),a.I=null);a.Na&&(a.Na.stop(),a.Na=null);Hw(a);a.g&&(a.j.removeChild(a.g),a.g=null);if(!a.C){b.D(4);break}return u(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.za){b.D(6);break}return u(b,a.za.destroy(),7);case 7:a.za=
968
- null;case 6:a.F=null,a.A=null,a.B=null,a.Ma=null,a.ua.clear(),fb.prototype.release.call(a),z(b)}})};function Hw(a){for(var b=t(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function Iw(a,b){Jw.set(a,b)}r.Xf=function(a){this.ib=a;Gw(this)};r.Pg=function(){Cw(this)};
969
- r.configure=function(a){this.i=a;this.C.cf(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.m&&(this.m=null);this.hb&&(this.hb=null);this.$a&&(this.$a=null);this.g?(fk(this.g),Hw(this)):(Kw(this),Lw(this));this.j.classList.add("shaka-video-container");this.A.classList.add("shaka-video");Mw(this);this.i.addBigPlayButton&&Nw(this);this.i.customContextMenu&&(this.$a=new qw(this.X,this),this.H.push(this.$a));this.ba||Ow(this);this.jb=R("div");this.jb.classList.add("shaka-server-side-ad-container");
970
- this.g.appendChild(this.jb);Pw(this);this.G=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.G.push.apply(this.G,ia(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));Qw(this);this.yb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));Cw(this);a=t(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",
971
- c)}};r.Ae=function(a){(this.S=a)?(this.j.setAttribute("shaka-controls","true"),this.A.tabIndex=-1,this.A.controls=!1):this.j.removeAttribute("shaka-controls");Cw(this)};r.If=function(a){this.A.controls=a;this.A.tabIndex=a?0:-1;a&&this.Ae(!1)};r.getAd=function(){return this.l};r.ig=function(){return this.C};r.vg=function(){return this.Ma};r.Jg=function(){return this.j};r.Db=function(){return this.B};r.ug=function(){return this.A};r.dc=function(){return this.F};r.sg=function(){return this.za};
972
- r.ng=function(){return this.g};r.Dg=function(){return this.jb};r.kg=function(){return this.P};r.lg=function(){return this.i};r.Og=function(){return this.$};r.Ee=function(a){this.$=a};r.Mg=function(){return this.ib};r.pf=function(){return this.m?this.m.getValue():this.B.currentTime};r.Jf=function(a){this.J=a};r.dd=function(){return this.G.some(function(a){return!a.classList.contains("shaka-hidden")})};r.fc=function(){this.I.ya()};
973
- r.ae=function(){return document.fullscreenEnabled||this.A.webkitSupportsFullscreen?!0:!1};r.$d=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.A;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
974
- r.Ke=function(){var a=this,b,c;return I(function(d){switch(d.g){case 1:if(!document.fullscreenEnabled){b=a.A;b.webkitSupportsFullscreen&&(b.webkitDisplayingFullscreen?b.webkitExitFullscreen():b.webkitEnterFullscreen());d.D(0);break}if(document.fullscreenElement)return screen.orientation&&screen.orientation.unlock(),u(d,document.exitFullscreen(),0);A(d,5);if(!document.pictureInPictureElement){d.D(7);break}return u(d,document.exitPictureInPicture(),7);case 7:return u(d,a.j.requestFullscreen({navigationUI:"hide"}),
975
- 9);case 9:if(!a.i.forceLandscapeOnFullscreen||!screen.orientation){d.D(10);break}A(d,11);return u(d,screen.orientation.lock("landscape"),13);case 13:wa(d,10,5);break;case 11:F(d,5);case 10:wa(d,0);break;case 5:c=F(d),a.dispatchEvent(new M("error",(new Map).set("detail",c))),d.D(0)}})};r.Lf=function(){X(this.K,!0);X(this.P,!0);this.g.setAttribute("ad-active","true")};r.tf=function(){X(this.K,!1);X(this.P,!1);this.g.removeAttribute("ad-active")};
976
- function ow(a){a.S&&a.B.duration&&(a.F.Ze(),a.B.paused&&!a.$?a.B.play():a.B.pause())}function nw(a){a.l&&a.l.isPaused()?a.l.play():a.l&&a.l.pause()}
977
- function Kw(a){a.g=R("div");a.g.classList.add("shaka-controls-container");a.j.appendChild(a.g);a.j.setAttribute("shaka-controls","true");a.h.o(a.g,"touchstart",function(b){a.B.duration&&(a.Ob()?a.J=Date.now():(Rw(a,b),b.preventDefault()))},{passive:!1});a.h.o(a.g,"click",function(){Sw(a)});a.h.o(a.g,"dblclick",function(){a.i.doubleClickForFullscreen&&a.ae()&&a.Ke()})}function Nw(a){var b=R("div");b.classList.add("shaka-play-button-container");a.g.appendChild(b);a.hb=new pw(b,a);a.H.push(a.hb)}
978
- function Mw(a){var b=R("div");b.classList.add("shaka-scrim-container");a.g.appendChild(b)}function Tw(a){a.K=R("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.l&&a.l.isLinear();X(a.K,b);a.M.appendChild(a.K);b=new kw(a.K,a);a.H.push(b);b=new jw(a.K,a);a.H.push(b)}
979
- function Ow(a){a.ba=R("div");a.ba.classList.add("shaka-spinner-container");a.j.appendChild(a.ba);var b=R("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");
970
+ function Aw(a){if(a.i.length){for(var b=a.player.Ia(),c=b.end-b.start,d=["to right"],e=[],f=a.m.seekBarColors.adBreaks,g=!1,h=t(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=t(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 "+
971
+ 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 Dw(a){Aw(a);var b=a.player.Ia();b=b.end-b.start;a.player.U()&&5<b&&a.A.ka(1)}function Cw(a){var b=a.player.Ia();b=b.end-b.start;return a.player.U()&&5>b?!1:null==a.ad||!a.ad.isLinear()}function Bw(a){a.bar.ariaLabel=a.localization.resolve("SEEK")}J("shaka.ui.SeekBar",zw);function Ew(){}
972
+ Ew.prototype.create=function(a,b){return new zw(a,b)};zw.Factory=Ew;function Y(a,b,c,d){fb.call(this);var e=this;this.S=!0;this.i=d;this.C=new kn(c,a,this.i.castReceiverAppId,this.i.castAndroidReceiverCompatible);this.gb=!0;this.B=this.C.Bb();this.A=c;this.F=this.C.bc();this.ya=a;this.j=b;this.Xa=this.F.jd();this.m=this.l=null;this.$=!1;this.G=[];this.wb=[];this.ib=!1;this.aa=new P(function(){e.j.style.cursor="none";e.ib=!1;Fw(e)});this.ea=new P(function(){e.g.removeAttribute("shown");e.I.T(2)});this.I=new P(function(){for(var f=t(e.G),g=f.next();!g.done;g=f.next())X(g.value,
973
+ !1)});this.La=new P(function(){e.Mb()&&Gw(e)});this.J=null;this.H=[];this.za=Hw();this.h=new vf;this.configure(this.i);Iw(this);this.ma=new Set;Jw(this);this.La.ka(.125);this.h.o(this.za,"locale-changed",function(f){e.Xa.setLocale(f.locales[0])})}qa(Y,fb);r=Y.prototype;
974
+ r.destroy=function(){var a=this;return I(function(b){switch(b.g){case 1:if(document.pictureInPictureElement!=a.A){b.D(2);break}return u(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.La&&(a.La.stop(),a.La=null);Kw(a);a.g&&(a.j.removeChild(a.g),a.g=null);if(!a.C){b.D(4);break}return u(b,a.C.destroy(),5);case 5:a.C=null;case 4:if(!a.ya){b.D(6);break}return u(b,a.ya.destroy(),7);case 7:a.ya=
975
+ null;case 6:a.F=null,a.A=null,a.B=null,a.za=null,a.ma.clear(),fb.prototype.release.call(a),z(b)}})};function Kw(a){for(var b=t(a.H),c=b.next();!c.done;c=b.next())c.value.release();a.H=[]}function Lw(a,b){Mw.set(a,b)}r.Xf=function(a){this.gb=a;Jw(this)};r.Pg=function(){Fw(this)};
976
+ r.configure=function(a){this.i=a;this.C.gf(a.castReceiverAppId,a.castAndroidReceiverCompatible);this.m&&(this.m=null);this.fb&&(this.fb=null);this.Ya&&(this.Ya=null);this.g?(fk(this.g),Kw(this)):(Nw(this),Ow(this));this.j.classList.add("shaka-video-container");this.A.classList.add("shaka-video");Pw(this);this.i.addBigPlayButton&&Qw(this);this.i.customContextMenu&&(this.Ya=new tw(this.X,this),this.H.push(this.Ya));this.ba||Rw(this);this.hb=R("div");this.hb.classList.add("shaka-server-side-ad-container");
977
+ this.g.appendChild(this.hb);Sw(this);this.G=Array.from(this.j.getElementsByClassName("shaka-settings-menu"));this.G.push.apply(this.G,ia(Array.from(this.j.getElementsByClassName("shaka-overflow-menu"))));Tw(this);this.wb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over"));Fw(this);a=t(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",
978
+ c)}};r.Ee=function(a){(this.S=a)?(this.j.setAttribute("shaka-controls","true"),this.A.tabIndex=-1,this.A.controls=!1):this.j.removeAttribute("shaka-controls");Fw(this)};r.If=function(a){this.A.controls=a;this.A.tabIndex=a?0:-1;a&&this.Ee(!1)};r.getAd=function(){return this.l};r.ig=function(){return this.C};r.vg=function(){return this.za};r.Jg=function(){return this.j};r.Bb=function(){return this.B};r.ug=function(){return this.A};r.bc=function(){return this.F};r.sg=function(){return this.ya};
979
+ r.ng=function(){return this.g};r.Dg=function(){return this.hb};r.kg=function(){return this.P};r.lg=function(){return this.i};r.Og=function(){return this.$};r.Ie=function(a){this.$=a};r.Mg=function(){return this.gb};r.rf=function(){return this.m?this.m.getValue():this.B.currentTime};r.Jf=function(a){this.J=a};r.dd=function(){return this.G.some(function(a){return!a.classList.contains("shaka-hidden")})};r.dc=function(){this.I.xa()};
980
+ r.ce=function(){return document.fullscreenEnabled||this.A.webkitSupportsFullscreen?!0:!1};r.be=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var a=this.A;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1};
981
+ r.Oe=function(){var a=this,b,c;return I(function(d){switch(d.g){case 1:if(!document.fullscreenEnabled){b=a.A;b.webkitSupportsFullscreen&&(b.webkitDisplayingFullscreen?b.webkitExitFullscreen():b.webkitEnterFullscreen());d.D(0);break}if(document.fullscreenElement)return screen.orientation&&screen.orientation.unlock(),u(d,document.exitFullscreen(),0);A(d,5);if(!document.pictureInPictureElement){d.D(7);break}return u(d,document.exitPictureInPicture(),7);case 7:return u(d,a.j.requestFullscreen({navigationUI:"hide"}),
982
+ 9);case 9:if(!a.i.forceLandscapeOnFullscreen||!screen.orientation){d.D(10);break}A(d,11);return u(d,screen.orientation.lock("landscape"),13);case 13:va(d,10,5);break;case 11:F(d,5);case 10:va(d,0);break;case 5:c=F(d),a.dispatchEvent(new L("error",(new Map).set("detail",c))),d.D(0)}})};r.Lf=function(){X(this.K,!0);X(this.P,!0);this.g.setAttribute("ad-active","true")};r.vf=function(){X(this.K,!1);X(this.P,!1);this.g.removeAttribute("ad-active")};
983
+ function rw(a){a.S&&a.B.duration&&(a.F.cf(),a.B.paused&&!a.$?a.B.play():a.B.pause())}function qw(a){a.l&&a.l.isPaused()?a.l.play():a.l&&a.l.pause()}
984
+ function Nw(a){a.g=R("div");a.g.classList.add("shaka-controls-container");a.j.appendChild(a.g);a.j.setAttribute("shaka-controls","true");a.h.o(a.g,"touchstart",function(b){a.B.duration&&(a.Mb()?a.J=Date.now():(Uw(a,b),b.preventDefault()))},{passive:!1});a.h.o(a.g,"click",function(){Vw(a)});a.h.o(a.g,"dblclick",function(){a.i.doubleClickForFullscreen&&a.ce()&&a.Oe()})}function Qw(a){var b=R("div");b.classList.add("shaka-play-button-container");a.g.appendChild(b);a.fb=new sw(b,a);a.H.push(a.fb)}
985
+ function Pw(a){var b=R("div");b.classList.add("shaka-scrim-container");a.g.appendChild(b)}function Ww(a){a.K=R("div");a.K.classList.add("shaka-ad-controls");var b=null!=a.l&&a.l.isLinear();X(a.K,b);a.N.appendChild(a.K);b=new nw(a.K,a);a.H.push(b);b=new mw(a.K,a);a.H.push(b)}
986
+ function Rw(a){a.ba=R("div");a.ba.classList.add("shaka-spinner-container");a.j.appendChild(a.ba);var b=R("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");
980
987
  b.setAttribute("fill","none");b.setAttribute("stroke-width","1");b.setAttribute("stroke-miterlimit","10");a.appendChild(b)}
981
- function Pw(a){a.M=R("div");a.M.classList.add("shaka-bottom-controls");a.M.classList.add("shaka-no-propagation");a.g.appendChild(a.M);a.h.o(a.M,"click",function(d){d.target.closest(".shaka-overflow-button")||a.fc()});Tw(a);a.X=R("div");a.X.classList.add("shaka-controls-button-panel");a.X.classList.add("shaka-show-controls-on-mouse-over");a.i.enableTooltips&&a.X.classList.add("shaka-tooltips-on");a.M.appendChild(a.X);for(var b=t(a.i.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,Jw.get(c)?
982
- (c=Jw.get(c).create(a.X,a),a.H.push(c)):Ua("Unrecognized control panel element requested:",c)}function Qw(a){if(a.i.addSeekBar)a.m=Uw.create(a.M,a),a.H.push(a.m);else{a=t(a.G);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function Lw(a){a.P=R("div");a.P.classList.add("shaka-client-side-ad-container");X(a.P,!1);a.h.o(a.P,"click",function(){Sw(a)});a.j.appendChild(a.P)}
983
- function Fw(a){a.h.o(a.F,"buffering",function(){a.S&&X(a.ba,a.F.Mc())});a.S&&X(a.ba,a.F.Mc());a.h.o(window,"keydown",function(b){Vw(a,b)});a.h.o(window,"click",function(){return a.fc()});a.h.o(a,"submenuopen",function(){a.fc()});a.h.o(a.B,"play",function(){Cw(a)});a.h.o(a.B,"pause",function(){Cw(a)});a.h.o(a.j,"mousemove",function(b){Rw(a,b)});a.h.o(a.j,"touchmove",function(b){Rw(a,b)},{passive:!0});a.h.o(a.j,"touchend",function(b){Rw(a,b)},{passive:!0});a.h.o(a.j,"mouseleave",function(){a.J||a.aa.ya()});
984
- a.h.o(a.C,"caststatuschanged",function(){Gw(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)&&Rw(a,b);if(a.i.enableKeyboardPlaybackControls)switch(c=a.i.keyboardSeekDistance,b.key){case "ArrowLeft":a.m&&!d&&0<c&&(b.preventDefault(),Ww(a,a.m.getValue()-c));break;case "ArrowRight":a.m&&!d&&0<c&&(b.preventDefault(),Ww(a,a.m.getValue()+c));break;case "Home":a.m&&
985
- Ww(a,a.F.Ia().start);break;case "End":a.m&&Ww(a,a.F.Ia().end);break;case " ":e&&Xw(a)}});a.h.o(a.j,"keyup",function(b){a.ua["delete"](b.key)});a.h.o(a.Za,"ad-started",function(b){a.l=b.ad;a.Lf()});a.h.o(a.Za,"ad-stopped",function(){a.l=null;a.tf()});screen.orientation&&a.h.o(screen.orientation,"change",function(){return I(function(b){return u(b,Yw(a),0)})});a.h.o(document,"fullscreenchange",function(){a.l&&a.l.resize(a.A.offsetWidth,a.A.offsetHeight)})}
986
- function Yw(a){return I(function(b){return a.B&&0!=a.B.readyState&&!a.C.qa()&&a.i.enableFullscreenOnRotation?screen.orientation.type.includes("landscape")&&!document.fullscreenElement?u(b,a.j.requestFullscreen({navigationUI:"hide"}),0):screen.orientation.type.includes("portrait")&&document.fullscreenElement?u(b,document.exitFullscreen(),0):b.D(0):b["return"]()})}
987
- function Rw(a,b){"mousemove"==b.type&&(a.g.classList.remove("shaka-keyboard-navigation"),Cw(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.kb=!0,a.I.stop(),a.Ob()||(Dw(a),Cw(a)),a.aa.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.aa.T(3))}function Zw(a){return window.matchMedia("hover: hover").matches?a.yb.some(function(b){return b.matches(":hover")}):!1}
988
- function Cw(a){var b=a.l?a.l.isPaused():!1,c=a.B.paused&&!a.$,d=a.g.classList.contains("shaka-keyboard-navigation");b||(!a.l||!a.l.isLinear())&&c||a.kb||d||Zw(a)?(Dw(a),a.g.setAttribute("shown","true"),a.ha.stop()):a.ha.T(a.i.fadeDelay)}function Sw(a){a.S&&(a.dd()?a.I.ya():a.i.singleClickForPlayAndPause&&Xw(a))}function Xw(a){a.l&&a.l.isLinear()?nw(a):ow(a)}
989
- function Gw(a){var b=a.C.qa();a.dispatchEvent(new M("caststatuschanged",(new Map).set("newStatus",b)));b?a.g.setAttribute("casting","true"):a.g.removeAttribute("casting")}r.Ob=function(){return this.S?null!=this.g.getAttribute("shown")||null!=this.g.getAttribute("casting"):!1};function Ww(a,b){a.m.changeTo(b);a.Ob()&&Dw(a)}
990
- function Dw(a){if(a.m)if(a.m.setValue(a.B.currentTime),a.m.update(),a.m.isShowing())for(var b=t(a.G),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=t(a.G),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new M("timeandseekrangeupdated"))}
991
- function Vw(a,b){a.ua.add(b.key);var c=a.dd();"Tab"==b.key&&(a.g.classList.add("shaka-keyboard-navigation"),Cw(a),a.h.o(window,"mousedown",function(){a.h.qc(window,"mousedown")}));"Escape"==b.key&&a.I.ya();c&&a.ua.has("Tab")&&$w(a,b)}
992
- function $w(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.ua.has("Shift")?e==c&&(b.preventDefault(),d.focus()):e==d&&(b.preventDefault(),c.focus())}}}
993
- function Ew(){var a=new Wb("en");a.ka("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..."],
988
+ function Sw(a){a.N=R("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.dc()});Ww(a);a.X=R("div");a.X.classList.add("shaka-controls-button-panel");a.X.classList.add("shaka-show-controls-on-mouse-over");a.i.enableTooltips&&a.X.classList.add("shaka-tooltips-on");a.N.appendChild(a.X);for(var b=t(a.i.controlPanelElements),c=b.next();!c.done;c=b.next())c=c.value,Mw.get(c)?
989
+ (c=Mw.get(c).create(a.X,a),a.H.push(c)):Ua("Unrecognized control panel element requested:",c)}function Tw(a){if(a.i.addSeekBar)a.m=Xw.create(a.N,a),a.H.push(a.m);else{a=t(a.G);for(var b=a.next();!b.done;b=a.next())b.value.classList.add("shaka-low-position")}}function Ow(a){a.P=R("div");a.P.classList.add("shaka-client-side-ad-container");X(a.P,!1);a.h.o(a.P,"click",function(){Vw(a)});a.j.appendChild(a.P)}
990
+ function Iw(a){a.h.o(a.F,"buffering",function(){a.S&&X(a.ba,a.F.Kc())});a.S&&X(a.ba,a.F.Kc());a.h.o(window,"keydown",function(b){Yw(a,b)});a.h.o(window,"click",function(){return a.dc()});a.h.o(a,"submenuopen",function(){a.dc()});a.h.o(a.B,"play",function(){Fw(a)});a.h.o(a.B,"pause",function(){Fw(a)});a.h.o(a.j,"mousemove",function(b){Uw(a,b)});a.h.o(a.j,"touchmove",function(b){Uw(a,b)},{passive:!0});a.h.o(a.j,"touchend",function(b){Uw(a,b)},{passive:!0});a.h.o(a.j,"mouseleave",function(){a.J||a.aa.xa()});
991
+ a.h.o(a.C,"caststatuschanged",function(){Jw(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)&&Uw(a,b);if(a.i.enableKeyboardPlaybackControls)switch(c=a.i.keyboardSeekDistance,b.key){case "ArrowLeft":a.m&&!d&&0<c&&(b.preventDefault(),Zw(a,a.m.getValue()-c));break;case "ArrowRight":a.m&&!d&&0<c&&(b.preventDefault(),Zw(a,a.m.getValue()+c));break;case "Home":a.m&&
992
+ Zw(a,a.F.Ia().start);break;case "End":a.m&&Zw(a,a.F.Ia().end);break;case " ":e&&$w(a)}});a.h.o(a.j,"keyup",function(b){a.ma["delete"](b.key)});a.h.o(a.Xa,"ad-started",function(b){a.l=b.ad;a.Lf()});a.h.o(a.Xa,"ad-stopped",function(){a.l=null;a.vf()});screen.orientation&&a.h.o(screen.orientation,"change",function(){return I(function(b){return u(b,ax(a),0)})});a.h.o(document,"fullscreenchange",function(){a.l&&a.l.resize(a.A.offsetWidth,a.A.offsetHeight)})}
993
+ function ax(a){return I(function(b){return a.B&&0!=a.B.readyState&&!a.C.qa()&&a.i.enableFullscreenOnRotation?screen.orientation.type.includes("landscape")&&!document.fullscreenElement?u(b,a.j.requestFullscreen({navigationUI:"hide"}),0):screen.orientation.type.includes("portrait")&&document.fullscreenElement?u(b,document.exitFullscreen(),0):b.D(0):b["return"]()})}
994
+ function Uw(a,b){"mousemove"==b.type&&(a.g.classList.remove("shaka-keyboard-navigation"),Fw(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.Mb()||(Gw(a),Fw(a)),a.aa.stop(),"touchend"!=b.type&&"keyup"!=b.type&&a.J||a.aa.T(3))}function bx(a){return window.matchMedia("hover: hover").matches?a.wb.some(function(b){return b.matches(":hover")}):!1}
995
+ function Fw(a){var b=a.l?a.l.isPaused():!1,c=a.B.paused&&!a.$,d=a.g.classList.contains("shaka-keyboard-navigation");b||(!a.l||!a.l.isLinear())&&c||a.ib||d||bx(a)?(Gw(a),a.g.setAttribute("shown","true"),a.ea.stop()):a.ea.T(a.i.fadeDelay)}function Vw(a){a.S&&(a.dd()?a.I.xa():a.i.singleClickForPlayAndPause&&$w(a))}function $w(a){a.l&&a.l.isLinear()?qw(a):rw(a)}
996
+ function Jw(a){var b=a.C.qa();a.dispatchEvent(new L("caststatuschanged",(new Map).set("newStatus",b)));b?a.g.setAttribute("casting","true"):a.g.removeAttribute("casting")}r.Mb=function(){return this.S?null!=this.g.getAttribute("shown")||null!=this.g.getAttribute("casting"):!1};function Zw(a,b){a.m.changeTo(b);a.Mb()&&Gw(a)}
997
+ function Gw(a){if(a.m)if(a.m.setValue(a.B.currentTime),a.m.update(),a.m.isShowing())for(var b=t(a.G),c=b.next();!c.done;c=b.next())c.value.classList.remove("shaka-low-position");else for(b=t(a.G),c=b.next();!c.done;c=b.next())c.value.classList.add("shaka-low-position");a.dispatchEvent(new L("timeandseekrangeupdated"))}
998
+ function Yw(a,b){a.ma.add(b.key);var c=a.dd();"Tab"==b.key&&(a.g.classList.add("shaka-keyboard-navigation"),Fw(a),a.h.o(window,"mousedown",function(){a.h.nc(window,"mousedown")}));"Escape"==b.key&&a.I.xa();c&&a.ma.has("Tab")&&cx(a,b)}
999
+ function cx(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())}}}
1000
+ function Hw(){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..."],
994
1001
  ["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"],
995
1002
  ["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"],
996
1003
  ["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"],
997
1004
  ["PLAYBACK_RATE","\u0633\u0631\u0639\u0629 \u0627\u0644\u062a\u0634\u063a\u064a\u0644"],["RESOLUTION","\u062f\u0631\u062c\u0629 \u0627\u0644\u062f\u0642\u0629"],["REWIND","\u062a\u0631\u062c\u064a\u0639"],["SEEK","\u0627\u0644\u0628\u062d\u062b \u0628\u0627\u0644\u062a\u0645\u0631\u064a\u0631"],["SKIP_AD","\u062a\u062e\u0637\u0651\u064a \u0627\u0644\u0625\u0639\u0644\u0627\u0646"],["SKIP_TO_LIVE","\u0627\u0644\u0627\u0646\u062a\u0642\u0627\u0644 \u0625\u0644\u0649 \u0628\u062b \u0645\u0628\u0627\u0634\u0631"],
998
- ["UNDETERMINED_LANGUAGE","\u063a\u064a\u0631 \u0645\u062d\u062f\u062f"],["UNMUTE","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0635\u0648\u062a"],["UNRECOGNIZED_LANGUAGE","\u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641"],["VOLUME","\u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0648\u062a"]]));a.ka("de",new Map([["AD_DURATION","Dauer der Werbeanzeige"],["AD_PROGRESS","Werbung\u00a0[AD_ON] von\u00a0[NUM_ADS]"],["AD_TIME","Werbeanzeige: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Zur\u00fcck"],
1005
+ ["UNDETERMINED_LANGUAGE","\u063a\u064a\u0631 \u0645\u062d\u062f\u062f"],["UNMUTE","\u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0635\u0648\u062a"],["UNRECOGNIZED_LANGUAGE","\u063a\u064a\u0631 \u0645\u0639\u0631\u0648\u0641"],["VOLUME","\u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0635\u0648\u062a"]]));a.ia("de",new Map([["AD_DURATION","Dauer der Werbeanzeige"],["AD_PROGRESS","Werbung\u00a0[AD_ON] von\u00a0[NUM_ADS]"],["AD_TIME","Werbeanzeige: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Zur\u00fcck"],
999
1006
  ["CAPTIONS","Untertitel"],["CAST","Streamen..."],["ENTER_LOOP_MODE","In Endlosschleife spielen"],["ENTER_PICTURE_IN_PICTURE","Bild-im-Bild-Modus aktivieren"],["EXIT_FULL_SCREEN","Vollbildmodus beenden"],["EXIT_LOOP_MODE","Endlosschleife stoppen"],["EXIT_PICTURE_IN_PICTURE","Bild-im-Bild-Modus beenden"],["FAST_FORWARD","Vorspulen"],["FULL_SCREEN","Vollbildmodus"],["LANGUAGE","Sprache"],["LIVE","Live"],["LOOP","Schleife"],["MORE_SETTINGS","Weitere Einstellungen"],["MULTIPLE_LANGUAGES","Mehrere Sprachen"],
1000
1007
  ["MUTE","Stummschalten"],["NOT_APPLICABLE","Nicht zutreffend"],["OFF","Aus"],["ON","Ein"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Bild im Bild"],["PLAY","Wiedergabe"],["PLAYBACK_RATE","Geschwindigkeit"],["RESOLUTION","Aufl\u00f6sung"],["REWIND","Zur\u00fcckspulen"],["SEEK","Suche"],["SKIP_AD","\u00dcberspringen"],["SKIP_TO_LIVE","Zum Live-Videostream wechseln"],["UNDETERMINED_LANGUAGE","Unbestimmt"],["UNMUTE","Stummschaltung aufheben"],["UNRECOGNIZED_LANGUAGE","Unbekannt"],["VOLUME","Lautst\u00e4rke"]]));
1001
- a.ka("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit Picture-in-Picture"],["FAST_FORWARD","Fast-forward"],
1008
+ a.ia("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit Picture-in-Picture"],["FAST_FORWARD","Fast-forward"],
1002
1009
  ["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["QUALITY","Quality"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip Ad"],["SKIP_TO_LIVE","Skip ahead to live"],
1003
- ["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.ka("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter picture-in-picture"],["EXIT_FULL_SCREEN",
1010
+ ["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]]));a.ia("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter picture-in-picture"],["EXIT_FULL_SCREEN",
1004
1011
  "Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit picture-in-picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],
1005
- ["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]]));a.ka("es",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Enviar..."],
1012
+ ["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]]));a.ia("es",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Enviar..."],
1006
1013
  ["ENTER_LOOP_MODE","Reproducir en bucle el v\u00eddeo actual"],["ENTER_PICTURE_IN_PICTURE","Activar el modo imagen en imagen"],["EXIT_FULL_SCREEN","Salir del modo de pantalla completa"],["EXIT_LOOP_MODE","Dejar de reproducir en bucle el v\u00eddeo actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo imagen en imagen"],["FAST_FORWARD","Avanzar r\u00e1pidamente"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Reproducir en bucle"],["MORE_SETTINGS","M\u00e1s ajustes"],
1007
1014
  ["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SKIP_AD","Saltar anuncio"],["SKIP_TO_LIVE","Ir al v\u00eddeo en directo"],["SUBTITLE_FORCED","Forzado"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE",
1008
- "Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ka("es-419",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir indefinidamente el video actual"],["ENTER_PICTURE_IN_PICTURE","Ingresar al modo de pantalla en pantalla"],["EXIT_FULL_SCREEN","Salir de pantalla completa"],
1015
+ "Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ia("es-419",new Map([["AD_DURATION","Duraci\u00f3n del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tico"],["BACK","Atr\u00e1s"],["CAPTIONS","Subt\u00edtulos"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir indefinidamente el video actual"],["ENTER_PICTURE_IN_PICTURE","Ingresar al modo de pantalla en pantalla"],["EXIT_FULL_SCREEN","Salir de pantalla completa"],
1009
1016
  ["EXIT_LOOP_MODE","Detener la repetici\u00f3n indefinida del video actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo de pantalla en pantalla"],["FAST_FORWARD","Avanzar"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Repetir indefinidamente"],["MORE_SETTINGS","M\u00e1s opciones de configuraci\u00f3n"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Detener"],
1010
- ["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisi\u00f3n en vivo"],["SUBTITLE_FORCED","Forzado"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ka("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],
1017
+ ["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducci\u00f3n"],["RESOLUTION","Resoluci\u00f3n"],["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisi\u00f3n en vivo"],["SUBTITLE_FORCED","Forzado"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]]));a.ia("fr",new Map([["AD_DURATION","Dur\u00e9e de l'annonce"],
1011
1018
  ["AD_PROGRESS","Annonce\u00a0[AD_ON] sur\u00a0[NUM_ADS]"],["AD_TIME","Annonce\u00a0: [AD_TIME]"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],["CAST","Caster\u2026"],["ENTER_LOOP_MODE","Lire en boucle la vid\u00e9o en cours"],["ENTER_PICTURE_IN_PICTURE","Utiliser le mode Picture-in-Picture"],["EXIT_FULL_SCREEN","Quitter le mode plein \u00e9cran"],["EXIT_LOOP_MODE","Arr\u00eater la lecture en boucle de la vid\u00e9o en cours"],["EXIT_PICTURE_IN_PICTURE","Quitter le mode\u00a0PIP (Picture-in-picture)"],
1012
1019
  ["FAST_FORWARD","Avance rapide"],["FULL_SCREEN","Plein \u00e9cran"],["LANGUAGE","Langue"],["LIVE","En direct"],["LOOP","R\u00e9p\u00e9ter"],["MORE_SETTINGS","Plus de param\u00e8tres"],["MULTIPLE_LANGUAGES","Plusieurs langues"],["MUTE","Couper le son"],["NOT_APPLICABLE","Non applicable"],["OFF","D\u00e9sactiv\u00e9e"],["ON","Activ\u00e9e"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Visionner"],["PLAYBACK_RATE","Vitesse de lecture"],["RESOLUTION","R\u00e9solution"],["REWIND",
1013
- "Retour arri\u00e8re"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_TO_LIVE","Acc\u00e9der \u00e0 la partie la plus r\u00e9cente du direct"],["UNDETERMINED_LANGUAGE","Langue ind\u00e9termin\u00e9e"],["UNMUTE","R\u00e9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]]));a.ka("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_TIME","Annuncio: [AD_TIME]"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS",
1020
+ "Retour arri\u00e8re"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_TO_LIVE","Acc\u00e9der \u00e0 la partie la plus r\u00e9cente du direct"],["UNDETERMINED_LANGUAGE","Langue ind\u00e9termin\u00e9e"],["UNMUTE","R\u00e9activer le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]]));a.ia("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_TIME","Annuncio: [AD_TIME]"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS",
1014
1021
  "Sottotitoli"],["CAST","Trasmetti..."],["ENTER_LOOP_MODE","Riproduci in loop il video corrente"],["ENTER_PICTURE_IN_PICTURE","Attiva Picture in picture"],["EXIT_FULL_SCREEN","Esci da schermo intero"],["EXIT_LOOP_MODE","Interrompi riproduzione in loop del video corrente"],["EXIT_PICTURE_IN_PICTURE","Esci da Picture in picture"],["FAST_FORWARD","Avanti veloce"],["FULL_SCREEN","Schermo intero"],["LANGUAGE","Lingua"],["LIVE","Dal vivo"],["LOOP","Riproduci in loop"],["MORE_SETTINGS","Altre impostazioni"],
1015
1022
  ["MULTIPLE_LANGUAGES","Pi\u00f9 lingue"],["MUTE","Disattiva audio"],["NOT_APPLICABLE","Non applicabile"],["OFF","Disattivo"],["ON","Attivo"],["PAUSE","Metti in pausa"],["PICTURE_IN_PICTURE","Picture in picture"],["PLAY","Riproduci"],["PLAYBACK_RATE","Velocit\u00e0 di riproduzione"],["RESOLUTION","Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SKIP_AD","Salta annuncio"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["UNDETERMINED_LANGUAGE","Indeterminata"],["UNMUTE","Riattiva audio"],
1016
- ["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.ka("ja",new Map([["AD_DURATION","\u5e83\u544a\u518d\u751f\u6642\u9593"],["AD_PROGRESS","[AD_ON] \u756a\u76ee\u306e\u5e83\u544a\uff08\u5168 [NUM_ADS] \u500b\uff09"],["AD_TIME","\u5e83\u544a: [AD_TIME]"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u623b\u308b"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u30ad\u30e3\u30b9\u30c8..."],["ENTER_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u3092\u30eb\u30fc\u30d7\u518d\u751f"],["ENTER_PICTURE_IN_PICTURE",
1023
+ ["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]]));a.ia("ja",new Map([["AD_DURATION","\u5e83\u544a\u518d\u751f\u6642\u9593"],["AD_PROGRESS","[AD_ON] \u756a\u76ee\u306e\u5e83\u544a\uff08\u5168 [NUM_ADS] \u500b\uff09"],["AD_TIME","\u5e83\u544a: [AD_TIME]"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u623b\u308b"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u30ad\u30e3\u30b9\u30c8..."],["ENTER_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u3092\u30eb\u30fc\u30d7\u518d\u751f"],["ENTER_PICTURE_IN_PICTURE",
1017
1024
  "\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc\u3092\u958b\u59cb"],["EXIT_FULL_SCREEN","\u5168\u753b\u9762\u8868\u793a\u3092\u7d42\u4e86"],["EXIT_LOOP_MODE","\u73fe\u5728\u306e\u52d5\u753b\u306e\u30eb\u30fc\u30d7\u518d\u751f\u3092\u505c\u6b62"],["EXIT_PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc\u3092\u7d42\u4e86"],["FAST_FORWARD","\u65e9\u9001\u308a"],["FULL_SCREEN","\u5168\u753b\u9762\u8868\u793a"],["LANGUAGE","\u8a00\u8a9e"],
1018
1025
  ["LIVE","\u30e9\u30a4\u30d6"],["LOOP","\u30eb\u30fc\u30d7"],["MORE_SETTINGS","\u8a73\u7d30\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u8a00\u8a9e"],["MUTE","\u30df\u30e5\u30fc\u30c8"],["NOT_APPLICABLE","\u8a72\u5f53\u306a\u3057"],["OFF","\u30aa\u30d5"],["ON","\u30aa\u30f3"],["PAUSE","\u4e00\u6642\u505c\u6b62"],["PICTURE_IN_PICTURE","\u30d4\u30af\u30c1\u30e3\u30fc \u30a4\u30f3 \u30d4\u30af\u30c1\u30e3\u30fc"],["PLAY","\u518d\u751f"],["PLAYBACK_RATE","\u518d\u751f\u901f\u5ea6"],["RESOLUTION","\u89e3\u50cf\u5ea6"],
1019
- ["REWIND","\u5dfb\u304d\u623b\u3057"],["SEEK","\u30b7\u30fc\u30af\u518d\u751f"],["SKIP_AD","\u5e83\u544a\u3092\u30b9\u30ad\u30c3\u30d7"],["SKIP_TO_LIVE","\u30e9\u30a4\u30d6\u914d\u4fe1\u307e\u3067\u30b9\u30ad\u30c3\u30d7"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u30df\u30e5\u30fc\u30c8\u3092\u89e3\u9664"],["UNRECOGNIZED_LANGUAGE","\u4e0d\u660e"],["VOLUME","\u97f3\u91cf"]]));a.ka("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS","\uad11\uace0 [AD_ON]/[NUM_ADS]"],
1026
+ ["REWIND","\u5dfb\u304d\u623b\u3057"],["SEEK","\u30b7\u30fc\u30af\u518d\u751f"],["SKIP_AD","\u5e83\u544a\u3092\u30b9\u30ad\u30c3\u30d7"],["SKIP_TO_LIVE","\u30e9\u30a4\u30d6\u914d\u4fe1\u307e\u3067\u30b9\u30ad\u30c3\u30d7"],["UNDETERMINED_LANGUAGE","\u4e0d\u660e"],["UNMUTE","\u30df\u30e5\u30fc\u30c8\u3092\u89e3\u9664"],["UNRECOGNIZED_LANGUAGE","\u4e0d\u660e"],["VOLUME","\u97f3\u91cf"]]));a.ia("ko",new Map([["AD_DURATION","\uad11\uace0 \uae30\uac04"],["AD_PROGRESS","\uad11\uace0 [AD_ON]/[NUM_ADS]"],
1020
1027
  ["AD_TIME","\uad11\uace0: [AD_TIME]"],["AUTO_QUALITY","\uc790\ub3d9"],["BACK","\ub4a4\ub85c"],["CAPTIONS","\uc790\ub9c9"],["CAST","\uc804\uc1a1..."],["ENTER_LOOP_MODE","\ud604\uc7ac \ub3d9\uc601\uc0c1 \ubc18\ubcf5 \uc7ac\uc0dd"],["ENTER_PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc \uc2dc\uc791"],["EXIT_FULL_SCREEN","\uc804\uccb4\ud654\uba74 \ub2eb\uae30"],["EXIT_LOOP_MODE","\ud604\uc7ac \ub3d9\uc601\uc0c1 \ubc18\ubcf5 \uc7ac\uc0dd \uc911\uc9c0"],["EXIT_PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc \uc885\ub8cc"],
1021
1028
  ["FAST_FORWARD","\ube68\ub9ac \uac10\uae30"],["FULL_SCREEN","\uc804\uccb4\ud654\uba74"],["LANGUAGE","\uc5b8\uc5b4"],["LIVE","\uc2e4\uc2dc\uac04"],["LOOP","\ubc18\ubcf5 \uc7ac\uc0dd"],["MORE_SETTINGS","\uc124\uc815 \ub354\ubcf4\uae30"],["MULTIPLE_LANGUAGES","\uc5ec\ub7ec \uc5b8\uc5b4"],["MUTE","\uc74c\uc18c\uac70"],["NOT_APPLICABLE","\ud574\ub2f9 \uc0ac\ud56d \uc5c6\uc74c"],["OFF","\uc0ac\uc6a9 \uc548\ud568"],["ON","\uc0ac\uc6a9"],["PAUSE","\uc77c\uc2dc\uc911\uc9c0"],["PICTURE_IN_PICTURE","PIP \ubaa8\ub4dc"],
1022
- ["PLAY","\uc7ac\uc0dd"],["PLAYBACK_RATE","\uc7ac\uc0dd \uc18d\ub3c4"],["RESOLUTION","\ud574\uc0c1\ub3c4"],["REWIND","\ub418\uac10\uae30"],["SEEK","\ucc3e\uae30"],["SKIP_AD","\uad11\uace0 \uac74\ub108\ub6f0\uae30"],["SKIP_TO_LIVE","\ub77c\uc774\ube0c \ub3d9\uc601\uc0c1\uc73c\ub85c \uac74\ub108\ub6f0\uae30"],["UNDETERMINED_LANGUAGE","\ubbf8\uc815"],["UNMUTE","\uc74c\uc18c\uac70 \ud574\uc81c"],["UNRECOGNIZED_LANGUAGE","\uc54c \uc218 \uc5c6\uc74c"],["VOLUME","\ubcfc\ub968"]]));a.ka("nl",new Map([["AD_DURATION",
1029
+ ["PLAY","\uc7ac\uc0dd"],["PLAYBACK_RATE","\uc7ac\uc0dd \uc18d\ub3c4"],["RESOLUTION","\ud574\uc0c1\ub3c4"],["REWIND","\ub418\uac10\uae30"],["SEEK","\ucc3e\uae30"],["SKIP_AD","\uad11\uace0 \uac74\ub108\ub6f0\uae30"],["SKIP_TO_LIVE","\ub77c\uc774\ube0c \ub3d9\uc601\uc0c1\uc73c\ub85c \uac74\ub108\ub6f0\uae30"],["UNDETERMINED_LANGUAGE","\ubbf8\uc815"],["UNMUTE","\uc74c\uc18c\uac70 \ud574\uc81c"],["UNRECOGNIZED_LANGUAGE","\uc54c \uc218 \uc5c6\uc74c"],["VOLUME","\ubcfc\ub968"]]));a.ia("nl",new Map([["AD_DURATION",
1023
1030
  "Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_TIME","Advertentie: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS","Ondertiteling"],["CAST","Casten..."],["ENTER_LOOP_MODE","De huidige video lussen"],["ENTER_PICTURE_IN_PICTURE","Scherm-in-scherm openen"],["EXIT_FULL_SCREEN","Volledig scherm sluiten"],["EXIT_LOOP_MODE","De huidige video niet meer lussen"],["EXIT_PICTURE_IN_PICTURE","Scherm-in-scherm afsluiten"],["FAST_FORWARD","Vooruitspoelen"],["FULL_SCREEN",
1024
1031
  "Volledig scherm"],["LANGUAGE","Taal"],["LIVE","Live"],["LOOP","Lussen"],["MORE_SETTINGS","Meer instellingen"],["MULTIPLE_LANGUAGES","Meerdere talen"],["MUTE","Dempen"],["NOT_APPLICABLE","Niet van toepassing"],["OFF","Uit"],["ON","Aan"],["PAUSE","Onderbreken"],["PICTURE_IN_PICTURE","Scherm-in-scherm"],["PLAY","Afspelen"],["PLAYBACK_RATE","Afspeelsnelheid"],["RESOLUTION","Resolutie"],["REWIND","Terugspoelen"],["SEEK","Zoeken"],["SKIP_AD","Advertentie overslaan"],["SKIP_TO_LIVE","Doorgaan naar live"],
1025
- ["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.ka("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama\u00a0[AD_ON] z\u00a0[NUM_ADS]"],["AD_TIME","Reklama: [AD_TIME]"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesy\u0142aj..."],["ENTER_LOOP_MODE","Odtwarzaj bie\u017c\u0105cy film w\u00a0p\u0119tli"],["ENTER_PICTURE_IN_PICTURE","W\u0142\u0105cz tryb obrazu w\u00a0obrazie"],
1032
+ ["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]]));a.ia("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama\u00a0[AD_ON] z\u00a0[NUM_ADS]"],["AD_TIME","Reklama: [AD_TIME]"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesy\u0142aj..."],["ENTER_LOOP_MODE","Odtwarzaj bie\u017c\u0105cy film w\u00a0p\u0119tli"],["ENTER_PICTURE_IN_PICTURE","W\u0142\u0105cz tryb obrazu w\u00a0obrazie"],
1026
1033
  ["EXIT_FULL_SCREEN","Zamknij pe\u0142ny ekran"],["EXIT_LOOP_MODE","Wy\u0142\u0105cz odtwarzanie bie\u017c\u0105cego filmu w\u00a0p\u0119tli"],["EXIT_PICTURE_IN_PICTURE","Wy\u0142\u0105cz tryb obrazu w\u00a0obrazie"],["FAST_FORWARD","Przewi\u0144 do przodu"],["FULL_SCREEN","Pe\u0142ny ekran"],["LANGUAGE","J\u0119zyk"],["LIVE","Na \u017cywo"],["LOOP","Odtwarzaj w\u00a0p\u0119tli"],["MORE_SETTINGS","Wi\u0119cej ustawie\u0144"],["MULTIPLE_LANGUAGES","Wiele j\u0119zyk\u00f3w"],["MUTE","Wycisz"],["NOT_APPLICABLE",
1027
1034
  "Nie dotyczy"],["OFF","Wy\u0142\u0105czone"],["ON","W\u0142\u0105czone"],["PAUSE","Wstrzymaj"],["PICTURE_IN_PICTURE","Obraz w\u00a0obrazie"],["PLAY","Odtw\u00f3rz"],["PLAYBACK_RATE","Szybko\u015b\u0107 odtwarzania"],["RESOLUTION","Rozdzielczo\u015b\u0107"],["REWIND","Przewi\u0144 do ty\u0142u"],["SEEK","Szukaj"],["SKIP_AD","Pomi\u0144 reklam\u0119"],["SKIP_TO_LIVE","Przejd\u017a do transmisji na \u017cywo"],["UNDETERMINED_LANGUAGE","Nie okre\u015blono"],["UNMUTE","Wy\u0142\u0105cz wyciszenie"],["UNRECOGNIZED_LANGUAGE",
1028
- "Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.ka("pt-BR",new Map([["AD_DURATION","Dura\u00e7\u00e3o do an\u00fancio"],["AD_PROGRESS","An\u00fancio [AD_ON] de [NUM_ADS]"],["AD_TIME","An\u00fancio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tica"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir o v\u00eddeo atual"],["ENTER_PICTURE_IN_PICTURE","Entrar no modo picture-in-picture"],["EXIT_FULL_SCREEN","Sair do modo tela cheia"],["EXIT_LOOP_MODE",
1035
+ "Nierozpoznany"],["VOLUME","G\u0142o\u015bno\u015b\u0107"]]));a.ia("pt-BR",new Map([["AD_DURATION","Dura\u00e7\u00e3o do an\u00fancio"],["AD_PROGRESS","An\u00fancio [AD_ON] de [NUM_ADS]"],["AD_TIME","An\u00fancio: [AD_TIME]"],["AUTO_QUALITY","Autom\u00e1tica"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir o v\u00eddeo atual"],["ENTER_PICTURE_IN_PICTURE","Entrar no modo picture-in-picture"],["EXIT_FULL_SCREEN","Sair do modo tela cheia"],["EXIT_LOOP_MODE",
1029
1036
  "Parar repeti\u00e7\u00e3o do v\u00eddeo atual"],["EXIT_PICTURE_IN_PICTURE","Sair de picture-in-picture"],["FAST_FORWARD","Avan\u00e7ar"],["FULL_SCREEN","Tela cheia"],["LANGUAGE","Idioma"],["LIVE","Ao vivo"],["LOOP","Repetir"],["MORE_SETTINGS","Mais defini\u00e7\u00f5es"],["MULTIPLE_LANGUAGES","V\u00e1rios idiomas"],["MUTE","Desativar som"],["NOT_APPLICABLE","N\u00e3o relevante"],["OFF","Desativado"],["ON","Ativado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Reproduzir"],
1030
- ["PLAYBACK_RATE","Velocidade da reprodu\u00e7\u00e3o"],["RESOLUTION","Resolu\u00e7\u00e3o"],["REWIND","Retroceder"],["SEEK","Procurar"],["SKIP_AD","Pular an\u00fancio"],["SKIP_TO_LIVE","Pular para transmiss\u00e3o ao vivo"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","N\u00e3o reconhecido"],["VOLUME","Volume"]]));a.ka("ru",new Map([["AD_DURATION","\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u044b"],
1037
+ ["PLAYBACK_RATE","Velocidade da reprodu\u00e7\u00e3o"],["RESOLUTION","Resolu\u00e7\u00e3o"],["REWIND","Retroceder"],["SEEK","Procurar"],["SKIP_AD","Pular an\u00fancio"],["SKIP_TO_LIVE","Pular para transmiss\u00e3o ao vivo"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","N\u00e3o reconhecido"],["VOLUME","Volume"]]));a.ia("ru",new Map([["AD_DURATION","\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u044b"],
1031
1038
  ["AD_PROGRESS","\u0420\u0435\u043a\u043b\u0430\u043c\u0430 [AD_ON] \u0438\u0437 [NUM_ADS]"],["AD_TIME","\u0420\u0435\u043a\u043b\u0430\u043c\u0430: [AD_TIME]"],["AUTO_QUALITY","\u0410\u0432\u0442\u043e"],["BACK","\u041d\u0430\u0437\u0430\u0434"],["CAPTIONS","\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b"],["CAST","\u0422\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c..."],["ENTER_LOOP_MODE","\u0417\u0430\u0446\u0438\u043a\u043b\u0438\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043e"],
1032
1039
  ["ENTER_PICTURE_IN_PICTURE",'\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0440\u0435\u0436\u0438\u043c "\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"'],["EXIT_FULL_SCREEN","\u041e\u0431\u044b\u0447\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c"],["EXIT_LOOP_MODE","\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u0430\u0446\u0438\u043a\u043b\u0438\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0432\u0438\u0434\u0435\u043e"],
1033
1040
  ["EXIT_PICTURE_IN_PICTURE",'\u0412\u044b\u0439\u0442\u0438 \u0438\u0437 \u0440\u0435\u0436\u0438\u043c\u0430 "\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"'],["FAST_FORWARD","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430 \u0432\u043f\u0435\u0440\u0435\u0434"],["FULL_SCREEN","\u041f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c"],["LANGUAGE","\u042f\u0437\u044b\u043a"],["LIVE",
1034
1041
  "\u041f\u0440\u044f\u043c\u043e\u0439 \u044d\u0444\u0438\u0440"],["LOOP","\u0417\u0430\u0446\u0438\u043a\u043b\u0438\u0442\u044c"],["MORE_SETTINGS","\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438"],["MULTIPLE_LANGUAGES","\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f\u0437\u044b\u043a\u043e\u0432"],["MUTE","\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["NOT_APPLICABLE",
1035
1042
  "\u041d\u0435\u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e"],["OFF","\u0412\u044b\u043a\u043b."],["ON","\u0412\u043a\u043b."],["PAUSE","\u041f\u0430\u0443\u0437\u0430"],["PICTURE_IN_PICTURE","\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435"],["PLAY","\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438"],["PLAYBACK_RATE","\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f"],
1036
1043
  ["RESOLUTION","\u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435"],["REWIND","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u0430\u0442\u044c \u043d\u0430\u0437\u0430\u0434"],["SEEK","\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u043a\u0430"],["SKIP_AD","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c"],["SKIP_TO_LIVE","\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043f\u0440\u044f\u043c\u043e\u0439 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438"],
1037
- ["UNDETERMINED_LANGUAGE","\u041d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e"],["UNMUTE","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["UNRECOGNIZED_LANGUAGE","\u041d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043e"],["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.ka("th",new Map([["AD_DURATION","\u0e23\u0e30\u0e22\u0e30\u0e40\u0e27\u0e25\u0e32\u0e42\u0e06\u0e29\u0e13\u0e32"],["AD_PROGRESS","\u0e42\u0e06\u0e29\u0e13\u0e32 [AD_ON] \u0e08\u0e32\u0e01 [NUM_ADS] \u0e23\u0e32\u0e22\u0e01\u0e32\u0e23"],
1044
+ ["UNDETERMINED_LANGUAGE","\u041d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043e"],["UNMUTE","\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"],["UNRECOGNIZED_LANGUAGE","\u041d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043d\u043e"],["VOLUME","\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c"]]));a.ia("th",new Map([["AD_DURATION","\u0e23\u0e30\u0e22\u0e30\u0e40\u0e27\u0e25\u0e32\u0e42\u0e06\u0e29\u0e13\u0e32"],["AD_PROGRESS","\u0e42\u0e06\u0e29\u0e13\u0e32 [AD_ON] \u0e08\u0e32\u0e01 [NUM_ADS] \u0e23\u0e32\u0e22\u0e01\u0e32\u0e23"],
1038
1045
  ["AD_TIME","\u0e42\u0e06\u0e29\u0e13\u0e32: [AD_TIME]"],["AUTO_QUALITY","\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34"],["BACK","\u0e01\u0e25\u0e31\u0e1a"],["CAPTIONS","\u0e04\u0e33\u0e1a\u0e23\u0e23\u0e22\u0e32\u0e22"],["CAST","\u0e41\u0e04\u0e2a\u0e15\u0e4c..."],["ENTER_LOOP_MODE","\u0e27\u0e19\u0e0b\u0e49\u0e33\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19"],["ENTER_PICTURE_IN_PICTURE","\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],
1039
1046
  ["EXIT_FULL_SCREEN","\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e41\u0e1a\u0e1a\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d"],["EXIT_LOOP_MODE","\u0e2b\u0e22\u0e38\u0e14\u0e27\u0e19\u0e0b\u0e49\u0e33\u0e27\u0e34\u0e14\u0e35\u0e42\u0e2d\u0e1b\u0e31\u0e08\u0e08\u0e38\u0e1a\u0e31\u0e19"],["EXIT_PICTURE_IN_PICTURE","\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],
1040
1047
  ["FAST_FORWARD","\u0e01\u0e23\u0e2d\u0e44\u0e1b\u0e02\u0e49\u0e32\u0e07\u0e2b\u0e19\u0e49\u0e32"],["FULL_SCREEN","\u0e40\u0e15\u0e47\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e08\u0e2d"],["LANGUAGE","\u0e20\u0e32\u0e29\u0e32"],["LIVE","\u0e2a\u0e14"],["LOOP","\u0e25\u0e39\u0e1b"],["MORE_SETTINGS","\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21"],["MULTIPLE_LANGUAGES","\u0e2b\u0e25\u0e32\u0e22\u0e20\u0e32\u0e29\u0e32"],["MUTE","\u0e1b\u0e34\u0e14\u0e40\u0e2a\u0e35\u0e22\u0e07"],
1041
1048
  ["NOT_APPLICABLE","\u0e44\u0e21\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07"],["OFF","\u0e1b\u0e34\u0e14"],["ON","\u0e40\u0e1b\u0e34\u0e14"],["PAUSE","\u0e2b\u0e22\u0e38\u0e14\u0e0a\u0e31\u0e48\u0e27\u0e04\u0e23\u0e32\u0e27"],["PICTURE_IN_PICTURE","\u0e01\u0e32\u0e23\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e1e\u0e0b\u0e49\u0e2d\u0e19\u0e20\u0e32\u0e1e"],["PLAY","\u0e40\u0e25\u0e48\u0e19"],["PLAYBACK_RATE","\u0e04\u0e27\u0e32\u0e21\u0e40\u0e23\u0e47\u0e27\u0e43\u0e19\u0e01\u0e32\u0e23\u0e40\u0e25\u0e48\u0e19"],
1042
1049
  ["RESOLUTION","\u0e04\u0e27\u0e32\u0e21\u0e25\u0e30\u0e40\u0e2d\u0e35\u0e22\u0e14"],["REWIND","\u0e01\u0e23\u0e2d\u0e01\u0e25\u0e31\u0e1a"],["SEEK","\u0e04\u0e49\u0e19\u0e2b\u0e32"],["SKIP_AD","\u0e02\u0e49\u0e32\u0e21\u0e42\u0e06\u0e29\u0e13\u0e32"],["SKIP_TO_LIVE","\u0e02\u0e49\u0e32\u0e21\u0e44\u0e1b\u0e17\u0e35\u0e48\u0e01\u0e32\u0e23\u0e16\u0e48\u0e32\u0e22\u0e17\u0e2d\u0e14\u0e2a\u0e14"],["UNDETERMINED_LANGUAGE","\u0e44\u0e21\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14"],["UNMUTE","\u0e40\u0e1b\u0e34\u0e14\u0e40\u0e2a\u0e35\u0e22\u0e07"],
1043
- ["UNRECOGNIZED_LANGUAGE","\u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01"],["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));a.ka("tr",new Map([["AD_DURATION","Reklam s\u00fcresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_TIME","Reklam: [AD_TIME]"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyaz\u0131lar"],["CAST","Yay\u0131nla..."],["ENTER_LOOP_MODE","Mevcut videoyu d\u00f6ng\u00fcye al"],["ENTER_PICTURE_IN_PICTURE","Pencere i\u00e7inde Pencere moduna gir"],
1050
+ ["UNRECOGNIZED_LANGUAGE","\u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e23\u0e39\u0e49\u0e08\u0e31\u0e01"],["VOLUME","\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e40\u0e2a\u0e35\u0e22\u0e07"]]));a.ia("tr",new Map([["AD_DURATION","Reklam s\u00fcresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_TIME","Reklam: [AD_TIME]"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyaz\u0131lar"],["CAST","Yay\u0131nla..."],["ENTER_LOOP_MODE","Mevcut videoyu d\u00f6ng\u00fcye al"],["ENTER_PICTURE_IN_PICTURE","Pencere i\u00e7inde Pencere moduna gir"],
1044
1051
  ["EXIT_FULL_SCREEN","Tam ekrandan \u00e7\u0131k"],["EXIT_LOOP_MODE","Mevcut videonun d\u00f6ng\u00fcs\u00fcn\u00fc durdur"],["EXIT_PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencereden \u00c7\u0131k"],["FAST_FORWARD","\u0130leri sar"],["FULL_SCREEN","Tam ekran"],["LANGUAGE","Dil"],["LIVE","Canl\u0131"],["LOOP","D\u00f6ng\u00fc"],["MORE_SETTINGS","Daha fazla ayar"],["MULTIPLE_LANGUAGES","Birden \u00e7ok dil"],["MUTE","Sesi kapat"],["NOT_APPLICABLE","Ge\u00e7erli de\u011fil"],["OFF","Kapal\u0131"],
1045
- ["ON","A\u00e7\u0131k"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","\u00c7alma h\u0131z\u0131"],["RESOLUTION","\u00c7\u00f6z\u00fcn\u00fcrl\u00fck"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklam\u0131 Atla"],["SKIP_TO_LIVE","Canl\u0131 yay\u0131na atla"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi a\u00e7"],["UNRECOGNIZED_LANGUAGE","Tan\u0131nmayan"],["VOLUME","Ses"]]));a.ka("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],
1052
+ ["ON","A\u00e7\u0131k"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere \u0130\u00e7inde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","\u00c7alma h\u0131z\u0131"],["RESOLUTION","\u00c7\u00f6z\u00fcn\u00fcrl\u00fck"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklam\u0131 Atla"],["SKIP_TO_LIVE","Canl\u0131 yay\u0131na atla"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi a\u00e7"],["UNRECOGNIZED_LANGUAGE","Tan\u0131nmayan"],["VOLUME","Ses"]]));a.ia("zh",new Map([["AD_DURATION","\u5e7f\u544a\u6301\u7eed\u65f6\u95f4"],
1046
1053
  ["AD_PROGRESS","\u5e7f\u544a [AD_ON]/[NUM_ADS]"],["AD_TIME","\u5e7f\u544a\uff1a[AD_TIME]"],["AUTO_QUALITY","\u81ea\u52a8"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u5c04\u2026"],["ENTER_LOOP_MODE","\u5faa\u73af\u64ad\u653e\u5f53\u524d\u89c6\u9891"],["ENTER_PICTURE_IN_PICTURE","\u8fdb\u5165\u201c\u753b\u4e2d\u753b\u201d\u6a21\u5f0f"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u5c4f\u6a21\u5f0f"],["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u73af\u64ad\u653e\u5f53\u524d\u89c6\u9891"],
1047
1054
  ["EXIT_PICTURE_IN_PICTURE","\u9000\u51fa\u201c\u753b\u4e2d\u753b\u201d\u6a21\u5f0f"],["FAST_FORWARD","\u5feb\u8fdb"],["FULL_SCREEN","\u5168\u5c4f"],["LANGUAGE","\u8bed\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u73af\u64ad\u653e"],["MORE_SETTINGS","\u66f4\u591a\u8bbe\u7f6e"],["MULTIPLE_LANGUAGES","\u591a\u79cd\u8bed\u8a00"],["MUTE","\u9759\u97f3"],["NOT_APPLICABLE","\u4e0d\u9002\u7528"],["OFF","\u5173\u95ed"],["ON","\u5f00\u542f"],["PAUSE","\u6682\u505c"],["PICTURE_IN_PICTURE","\u753b\u4e2d\u753b"],
1048
- ["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["RESOLUTION","\u5206\u8fa8\u7387"],["REWIND","\u5feb\u9000"],["SEEK","\u8fdb\u5ea6"],["SKIP_AD","\u8df3\u8fc7\u5e7f\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VOLUME","\u97f3\u91cf"]]));a.ka("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],
1055
+ ["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],["RESOLUTION","\u5206\u8fa8\u7387"],["REWIND","\u5feb\u9000"],["SEEK","\u8fdb\u5ea6"],["SKIP_AD","\u8df3\u8fc7\u5e7f\u544a"],["SKIP_TO_LIVE","\u8df3\u81f3\u5f53\u524d\u76f4\u64ad"],["UNDETERMINED_LANGUAGE","\u672a\u786e\u5b9a"],["UNMUTE","\u53d6\u6d88\u9759\u97f3"],["UNRECOGNIZED_LANGUAGE","\u65e0\u6cd5\u8bc6\u522b"],["VOLUME","\u97f3\u91cf"]]));a.ia("zh-TW",new Map([["AD_DURATION","\u5ee3\u544a\u9577\u5ea6"],["AD_PROGRESS","\u5ee3\u544a [AD_ON]/[NUM_ADS]"],
1049
1056
  ["AD_TIME","\u5ee3\u544a\uff1a[AD_TIME]"],["AUTO_QUALITY","\u81ea\u52d5"],["BACK","\u8fd4\u56de"],["CAPTIONS","\u5b57\u5e55"],["CAST","\u6295\u653e..."],["ENTER_LOOP_MODE","\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["ENTER_PICTURE_IN_PICTURE","\u9032\u5165\u5b50\u6bcd\u756b\u9762"],["EXIT_FULL_SCREEN","\u9000\u51fa\u5168\u87a2\u5e55\u6a21\u5f0f"],["EXIT_LOOP_MODE","\u505c\u6b62\u5faa\u74b0\u64ad\u653e\u76ee\u524d\u7684\u5f71\u7247"],["EXIT_PICTURE_IN_PICTURE","\u96e2\u958b\u5b50\u6bcd\u756b\u9762"],
1050
1057
  ["FAST_FORWARD","\u5feb\u8f49"],["FULL_SCREEN","\u5168\u87a2\u5e55"],["LANGUAGE","\u8a9e\u8a00"],["LIVE","\u76f4\u64ad"],["LOOP","\u5faa\u74b0\u64ad\u653e"],["MORE_SETTINGS","\u986f\u793a\u66f4\u591a\u8a2d\u5b9a"],["MULTIPLE_LANGUAGES","\u591a\u7a2e\u8a9e\u8a00"],["MUTE","\u975c\u97f3"],["NOT_APPLICABLE","\u4e0d\u9069\u7528"],["OFF","\u95dc\u9589"],["ON","\u958b\u555f"],["PAUSE","\u66ab\u505c"],["PICTURE_IN_PICTURE","\u5b50\u6bcd\u756b\u9762"],["PLAY","\u64ad\u653e"],["PLAYBACK_RATE","\u64ad\u653e\u901f\u5ea6"],
1051
- ["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.bf(navigator.languages||[]);return a}J("shaka.ui.Controls",Z);Z.prototype.isOpaque=Z.prototype.Ob;Z.prototype.hideAdUI=Z.prototype.tf;Z.prototype.showAdUI=Z.prototype.Lf;
1052
- Z.prototype.toggleFullScreen=Z.prototype.Ke;Z.prototype.isFullScreenEnabled=Z.prototype.$d;Z.prototype.isFullScreenSupported=Z.prototype.ae;Z.prototype.hideSettingsMenus=Z.prototype.fc;Z.prototype.anySettingsMenusAreOpen=Z.prototype.dd;Z.prototype.setLastTouchEventTime=Z.prototype.Jf;Z.prototype.getDisplayTime=Z.prototype.pf;Z.prototype.isCastAllowed=Z.prototype.Mg;Z.prototype.setSeeking=Z.prototype.Ee;Z.prototype.isSeeking=Z.prototype.Og;Z.prototype.getConfig=Z.prototype.lg;
1053
- Z.prototype.getClientSideAdContainer=Z.prototype.kg;Z.prototype.getServerSideAdContainer=Z.prototype.Dg;Z.prototype.getControlsContainer=Z.prototype.ng;Z.prototype.getLocalPlayer=Z.prototype.sg;Z.prototype.getPlayer=Z.prototype.dc;Z.prototype.getLocalVideo=Z.prototype.ug;Z.prototype.getVideo=Z.prototype.Db;Z.prototype.getVideoContainer=Z.prototype.Jg;Z.prototype.getLocalization=Z.prototype.vg;Z.prototype.getCastProxy=Z.prototype.ig;Z.prototype.getAd=Z.prototype.getAd;
1054
- Z.prototype.setEnabledNativeControls=Z.prototype.If;Z.prototype.setEnabledShakaControls=Z.prototype.Ae;Z.prototype.configure=Z.prototype.configure;Z.prototype.loadComplete=Z.prototype.Pg;Z.prototype.allowCast=Z.prototype.Xf;Z.registerSeekBar=function(a){Uw=a};Z.registerElement=Iw;Z.prototype.destroy=Z.prototype.destroy;var Jw=new Map,Uw=new Bw;function ax(a,b){W.call(this,a,b);var c=this;this.l=this.controls.i;this.j=this.controls.g;this.i=[];this.g=ek();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=R("div");this.h.classList.add("shaka-overflow-menu");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");
1055
- this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);bx(this);this.eventManager.o(this.localization,"locale-updated",function(){cx(c)});this.eventManager.o(this.localization,"locale-changed",function(){cx(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&X(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){X(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){X(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.Jf(Date.now());
1056
- d.stopPropagation()});this.eventManager.o(this.g,"click",function(){dx(c)});cx(this);this.ad&&this.ad.isLinear()&&X(this.g,!1)}ra(ax,W);ax.prototype.release=function(){this.j=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];W.prototype.release.call(this)};function ex(a,b){fx.set(a,b)}
1057
- function bx(a){for(var b=t(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,fx.get(c)?(c=fx.get(c),a.i.push(c.create(a.h,a.controls))):Ua("Unrecognized overflow menu element requested:",c)}function dx(a){if(a.controls.dd())a.controls.fc();else{X(a.h,!0);Cw(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 cx(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1058
- J("shaka.ui.OverflowMenu",ax);ax.registerElement=ex;function gx(){}gx.prototype.create=function(a,b){return new ax(a,b)};Iw("overflow_menu",new gx);var fx=new Map;function hx(a,b){W.call(this,a,b);var c=this;this.g=ek();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=R("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=R("span");d.appendChild(this.j);
1059
- this.i=R("span");this.i.classList.add("shaka-current-selection-span");d.appendChild(this.i);this.g.appendChild(d);this.parent.appendChild(this.g);ix(this);jx(this);this.eventManager.o(this.localization,"locale-updated",function(){ix(c)});this.eventManager.o(this.localization,"locale-changed",function(){ix(c)});this.eventManager.o(this.g,"click",function(){c.controls.Db().webkitShowPlaybackTargetPicker()});d=this.controls.Db();this.eventManager.o(d,"webkitplaybacktargetavailabilitychanged",function(e){var f=
1060
- c.player.qf()==Yl;X(c.g,"available"==e.availability&&f)});this.eventManager.o(d,"webkitcurrentplaybacktargetiswirelesschanged",function(){jx(c)})}ra(hx,W);function jx(a){var b=a.controls.Db();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function ix(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}J("shaka.ui.AirPlayButton",hx);function kx(){}kx.prototype.create=function(a,b){return new hx(a,b)};ex("airplay",new kx);
1061
- Iw("airplay",new kx);function lx(a,b,c){this.i=a;this.h=mx(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.be()&&b.classList.add("shaka-mobile");this.g=new Z(a,b,c,this.h);this.configure({});c.controls||a.He(b);b.ui=this;c.ui=this}r=lx.prototype;r.destroy=function(){var a=this;return I(function(b){if(1==b.g)return a.g?u(b,a.g.destroy(),2):b.D(2);if(4!=b.g)return a.g=null,a.i?u(b,a.i.destroy(),4):b.D(4);a.i=null;z(b)})};r.be=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Jd()&&1<navigator.maxTouchPoints};
1062
- r.getConfiguration=function(){var a=mx(this);Jk(a,this.h,mx(this),{},"");return a};r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Kk(a,b));Jk(this.h,a,mx(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new M("uiupdated"))};r.mg=function(){return this.g};r.qh=function(a){this.g.Ae(a)};
1063
- function mx(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",
1058
+ ["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.ef(navigator.languages||[]);return a}J("shaka.ui.Controls",Y);Y.prototype.isOpaque=Y.prototype.Mb;Y.prototype.hideAdUI=Y.prototype.vf;Y.prototype.showAdUI=Y.prototype.Lf;
1059
+ Y.prototype.toggleFullScreen=Y.prototype.Oe;Y.prototype.isFullScreenEnabled=Y.prototype.be;Y.prototype.isFullScreenSupported=Y.prototype.ce;Y.prototype.hideSettingsMenus=Y.prototype.dc;Y.prototype.anySettingsMenusAreOpen=Y.prototype.dd;Y.prototype.setLastTouchEventTime=Y.prototype.Jf;Y.prototype.getDisplayTime=Y.prototype.rf;Y.prototype.isCastAllowed=Y.prototype.Mg;Y.prototype.setSeeking=Y.prototype.Ie;Y.prototype.isSeeking=Y.prototype.Og;Y.prototype.getConfig=Y.prototype.lg;
1060
+ Y.prototype.getClientSideAdContainer=Y.prototype.kg;Y.prototype.getServerSideAdContainer=Y.prototype.Dg;Y.prototype.getControlsContainer=Y.prototype.ng;Y.prototype.getLocalPlayer=Y.prototype.sg;Y.prototype.getPlayer=Y.prototype.bc;Y.prototype.getLocalVideo=Y.prototype.ug;Y.prototype.getVideo=Y.prototype.Bb;Y.prototype.getVideoContainer=Y.prototype.Jg;Y.prototype.getLocalization=Y.prototype.vg;Y.prototype.getCastProxy=Y.prototype.ig;Y.prototype.getAd=Y.prototype.getAd;
1061
+ Y.prototype.setEnabledNativeControls=Y.prototype.If;Y.prototype.setEnabledShakaControls=Y.prototype.Ee;Y.prototype.configure=Y.prototype.configure;Y.prototype.loadComplete=Y.prototype.Pg;Y.prototype.allowCast=Y.prototype.Xf;Y.registerSeekBar=function(a){Xw=a};Y.registerElement=Lw;Y.prototype.destroy=Y.prototype.destroy;var Mw=new Map,Xw=new Ew;function dx(a,b){W.call(this,a,b);var c=this;this.l=this.controls.i;this.j=this.controls.g;this.i=[];this.g=ek();this.g.classList.add("shaka-overflow-menu-button");this.g.classList.add("shaka-no-propagation");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");this.g.textContent="more_vert";this.parent.appendChild(this.g);this.h=R("div");this.h.classList.add("shaka-overflow-menu");this.h.classList.add("shaka-no-propagation");this.h.classList.add("shaka-show-controls-on-mouse-over");
1062
+ this.h.classList.add("shaka-hidden");this.j.appendChild(this.h);ex(this);this.eventManager.o(this.localization,"locale-updated",function(){fx(c)});this.eventManager.o(this.localization,"locale-changed",function(){fx(c)});this.eventManager.o(this.adManager,"ad-started",function(){c.ad&&c.ad.isLinear()&&X(c.g,!1)});this.eventManager.o(this.adManager,"ad-stopped",function(){X(c.g,!0)});this.eventManager.o(this.controls,"submenuopen",function(){X(c.h,!1)});this.eventManager.o(this.h,"touchstart",function(d){c.controls.Jf(Date.now());
1063
+ d.stopPropagation()});this.eventManager.o(this.g,"click",function(){gx(c)});fx(this);this.ad&&this.ad.isLinear()&&X(this.g,!1)}qa(dx,W);dx.prototype.release=function(){this.j=null;for(var a=t(this.i),b=a.next();!b.done;b=a.next())b.value.release();this.i=[];W.prototype.release.call(this)};function hx(a,b){ix.set(a,b)}
1064
+ function ex(a){for(var b=t(a.l.overflowMenuButtons),c=b.next();!c.done;c=b.next())c=c.value,ix.get(c)?(c=ix.get(c),a.i.push(c.create(a.h,a.controls))):Ua("Unrecognized overflow menu element requested:",c)}function gx(a){if(a.controls.dd())a.controls.dc();else{X(a.h,!0);Fw(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 fx(a){a.g.ariaLabel=a.localization.resolve("MORE_SETTINGS")}
1065
+ J("shaka.ui.OverflowMenu",dx);dx.registerElement=hx;function jx(){}jx.prototype.create=function(a,b){return new dx(a,b)};Lw("overflow_menu",new jx);var ix=new Map;function kx(a,b){W.call(this,a,b);var c=this;this.g=ek();this.g.classList.add("shaka-airplay-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.h=R("i");this.h.classList.add("material-icons-round");this.h.textContent="airplay";this.g.appendChild(this.h);window.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=R("span");d.appendChild(this.j);
1066
+ this.i=R("span");this.i.classList.add("shaka-current-selection-span");d.appendChild(this.i);this.g.appendChild(d);this.parent.appendChild(this.g);lx(this);mx(this);this.eventManager.o(this.localization,"locale-updated",function(){lx(c)});this.eventManager.o(this.localization,"locale-changed",function(){lx(c)});this.eventManager.o(this.g,"click",function(){c.controls.Bb().webkitShowPlaybackTargetPicker()});d=this.controls.Bb();this.eventManager.o(d,"webkitplaybacktargetavailabilitychanged",function(e){var f=
1067
+ c.player.tf()==Yl;X(c.g,"available"==e.availability&&f)});this.eventManager.o(d,"webkitcurrentplaybacktargetiswirelesschanged",function(){mx(c)})}qa(kx,W);function mx(a){var b=a.controls.Bb();a.g.ariaPressed=b&&b.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function lx(a){a.g.ariaLabel=a.localization.resolve("AIRPLAY");a.j.textContent=a.localization.resolve("AIRPLAY")}J("shaka.ui.AirPlayButton",kx);function nx(){}nx.prototype.create=function(a,b){return new kx(a,b)};hx("airplay",new nx);
1068
+ Lw("airplay",new nx);function ox(a,b,c){this.i=a;this.h=px(this);b.dataset.shakaPlayerContainer="";b.ui=this;this.ee()&&b.classList.add("shaka-mobile");this.g=new Y(a,b,c,this.h);this.configure({});c.controls||a.Le(b);b.ui=this;c.ui=this}r=ox.prototype;r.destroy=function(){var a=this;return I(function(b){if(1==b.g)return a.g?u(b,a.g.destroy(),2):b.D(2);if(4!=b.g)return a.g=null,a.i?u(b,a.i.destroy(),4):b.D(4);a.i=null;z(b)})};r.ee=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:Zc()&&1<navigator.maxTouchPoints};
1069
+ r.getConfiguration=function(){var a=px(this);Jk(a,this.h,px(this),{},"");return a};r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Kk(a,b));Jk(this.h,a,px(this),{},"");this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast");this.g.configure(this.h);this.g.dispatchEvent(new L("uiupdated"))};r.mg=function(){return this.g};r.ph=function(a){this.g.Ee(a)};
1070
+ function px(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",
1064
1071
  "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)"},
1065
- trackLabelFormat:nx,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5};window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.be()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
1066
- function ox(){var a,b,c,d,e,f,g,h,k,l,m,n,p;return I(function(q){switch(q.g){case 1:nt();if(!nl())return px("shaka-ui-load-failed",qx),q["return"]();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");if(!b.length&&!a.length){q.D(2);break}if(b.length&&!a.length){c=t(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),rx(f,e));q.D(2);break}h=t(a);k=h.next();
1067
- case 4:if(k.done){q.D(2);break}l=k.value;if(l.ui){q.D(5);break}m=null;n=t(b);for(d=n.next();!d.done;d=n.next())if(p=d.value,p.parentElement==l){m=p;break}m||(m=document.createElement("video"),m.setAttribute("playsinline",""),l.appendChild(m));A(q,7);return u(q,rx(l,m),9);case 9:wa(q,5);break;case 7:return F(q),px("shaka-ui-load-failed",sx),q["return"]();case 5:k=h.next();q.D(4);break;case 2:px("shaka-ui-loaded"),z(q)}})}
1068
- function px(a,b){var c=null;void 0!=b&&(c={reasonCode:b});c=new CustomEvent(a,{detail:c});document.dispatchEvent(c)}
1069
- function rx(a,b){var c,d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:c=new S(b);d=new lx(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&&
1070
- d.g.If(!0);if(g=b.getAttribute("src"))h=document.createElement("source"),h.setAttribute("src",g),b.appendChild(h),b.removeAttribute("src");k=t(b.querySelectorAll("source"));l=k.next();case 2:if(l.done){n.D(0);break}m=l.value;A(n,5);return u(n,d.g.dc().load(m.getAttribute("src")),7);case 7:n.D(0);break;case 5:F(n);case 3:l=k.next(),n.D(2)}})}J("shaka.ui.Overlay",lx);lx.prototype.setEnabled=lx.prototype.qh;lx.prototype.getControls=lx.prototype.mg;lx.prototype.configure=lx.prototype.configure;
1071
- lx.prototype.getConfiguration=lx.prototype.getConfiguration;lx.prototype.isMobile=lx.prototype.be;lx.prototype.destroy=lx.prototype.destroy;var nx=0;lx.TrackLabelFormat={LANGUAGE:nx,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var qx=0,sx=1;lx.FailReasonCode={NO_BROWSER_SUPPORT:qx,PLAYER_FAILED_TO_LOAD:sx};"complete"==document.readyState?I(function(a){if(1==a.g)return u(a,Promise.resolve(),2);ox();z(a)}):window.addEventListener("load",ox);function tx(a,b,c,d,e,f,g){function h(C,B){return C+": "+B}function k(C){return"variant"==C.type?C.audioRoles?C.audioRoles.join(", "):void 0:C.roles.join(", ")}var l=a.find(function(C){return 1==C.active}),m=ew(b);fk(b);b.appendChild(m);m=new Map;for(var n=t(a),p=n.next();!p.done;p=n.next())p=p.value,m.has(p.language)||m.set(p.language,new Set),m.get(p.language).add(k(p));m=new Set;l=l?h(l.language,k(l)):"";n={};a=t(a);for(p=a.next();!p.done;n={Xa:n.Xa},p=a.next()){n.Xa=p.value;p=n.Xa.language;var q=
1072
- n.Xa.forced,x=f.resolve($b.Sf),w=k(n.Xa),v=h(p,w);if(!m.has(v)){m.add(v);var y=ek();y.addEventListener("click",function(C){return function(){c(C.Xa)}}(n));var D=R("span");y.appendChild(D);D.textContent=ux(p,f);switch(g){case nx:q&&(D.textContent+=" ("+x+")");break;case 1:w?D.textContent=w:(Ua("Track #"+n.Xa.id+" does not have a role, but the UI is configured to only show role."),D.textContent="?");q&&(D.textContent+=" ("+x+")");break;case 2:w&&(D.textContent+=": "+w);q&&(D.textContent+=" ("+x+")");
1073
- break;case 3:n.Xa.label?D.textContent=n.Xa.label:(Ua("Track #"+n.Xa.id+" does not have a label, but the UI is configured to only show labels."),D.textContent="?")}d&&v==l&&(y.appendChild(hw()),D.classList.add("shaka-chosen-item"),y.ariaSelected="true",e.textContent=D.textContent);b.appendChild(y)}}}
1074
- function ux(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=Sb(a);return a in aw?aw[a].s:c in aw?aw[c].s+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function vx(a,b,c){W.call(this,a,b);var d=this;wx(this,c);xx(this);yx(this);this.eventManager.o(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new M("submenuopen")),X(d.menu,!0),gw(d.menu)):X(d.menu,!1)})}ra(vx,W);
1075
- function wx(a,b){a.button=ek();a.button.classList.add("shaka-overflow-button");a.icon=R("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);var c=R("label");c.classList.add("shaka-overflow-button-label");c.classList.add("shaka-overflow-menu-only");a.nameSpan=R("span");c.appendChild(a.nameSpan);a.currentSelection=R("span");a.currentSelection.classList.add("shaka-current-selection-span");c.appendChild(a.currentSelection);a.button.appendChild(c);a.parent.appendChild(a.button)}
1076
- function xx(a){a.menu=R("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=ek();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.fc()});var b=R("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1077
- R("span");a.backButton.appendChild(a.backSpan);a.controls.g.appendChild(a.menu)}function yx(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.o(a.backButton,"click",function(){X(a.parent,!0);a.parent.childNodes[0].focus();Cw(a.controls)}))}J("shaka.ui.SettingsMenu",vx);function zx(a,b){vx.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(){Ax(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ax(c)});this.eventManager.o(this.player,"trackschanged",function(){var d=0<c.player.Sa().length;X(c.button,d);Bx(c)});this.eventManager.o(this.player,"variantchanged",
1078
- function(){Bx(c)});Ax(this);Bx(this)}ra(zx,vx);function Bx(a){var b=a.player.Sa();tx(b,a.menu,function(c){a.player.Fd(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.i.trackLabelFormat);gw(a.menu);a.controls.dispatchEvent(new M("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText)}
1079
- function Ax(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")}J("shaka.ui.AudioLanguageSelection",zx);function Cx(){}Cx.prototype.create=function(a,b){return new zx(a,b)};ex("language",new Cx);Iw("language",new Cx);function Dx(a,b){W.call(this,a,b);var c=this;this.h=this.controls.C;this.g=ek();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=R("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.l=R("span");d.appendChild(this.l);this.j=R("span");this.j.classList.add("shaka-current-selection-span");
1080
- d.appendChild(this.j);this.g.appendChild(d);this.parent.appendChild(this.g);Ex(this);Fx(this);this.eventManager.o(this.localization,"locale-updated",function(){Ex(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ex(c)});this.eventManager.o(this.g,"click",function(){Gx(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){Fx(c)})}ra(Dx,W);
1081
- function Gx(a){var b;I(function(c){if(1==c.g){if(a.h.qa())return a.h.Mf(),c.D(0);A(c,3);a.g.disabled=!0;return u(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,wa(c,0);b=F(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new M("error",(new Map).set("detail",b)));z(c)})}function Fx(a){var b=a.h.Ye()&&a.controls.ib,c=a.h.qa();X(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");Hx(a)}
1082
- function Hx(a){a.j.textContent=a.h.qa()?a.h.Dd():a.localization.resolve("OFF")}function Ex(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");Hx(a)}J("shaka.ui.CastButton",Dx);function Ix(){}Ix.prototype.create=function(a,b){return new Dx(a,b)};ex("cast",new Ix);Iw("cast",new Ix);function Jx(a,b){W.call(this,a,b);var c=this;this.g=ek();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);Kx(this);this.h=this.controls.i.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){Kx(c)});this.eventManager.o(this.localization,"locale-changed",function(){Kx(c)});
1083
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Bb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Me(d);c.g.setAttribute("shaka-status",d+"x")}})}ra(Jx,W);function Kx(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}J("shaka.ui.FastForwardButton",Jx);function Lx(){}Lx.prototype.create=function(a,b){return new Jx(a,b)};Iw("fast_forward",new Lx);function Mx(a,b){W.call(this,a,b);var c=this;this.h=this.controls.A;this.g=ek();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");Nx(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);Ox(this);this.eventManager.o(this.localization,"locale-updated",function(){Ox(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ox(c)});this.eventManager.o(this.g,"click",function(){return I(function(d){return u(d,
1084
- c.controls.Ke(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.$d()?"fullscreen_exit":"fullscreen";Ox(c)});this.eventManager.o(this.h,"loadedmetadata",function(){Nx(c)});this.eventManager.o(this.h,"loadeddata",function(){Nx(c)})}ra(Mx,W);function Nx(a){a.controls.ae()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function Ox(a){a.g.ariaLabel=a.localization.resolve(a.controls.$d()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1085
- J("shaka.ui.FullscreenButton",Mx);function Px(){}Px.prototype.create=function(a,b){return new Mx(a,b)};Iw("fullscreen",new Px);function Qx(a,b){W.call(this,a,b);var c=this;this.g=ek();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=R("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=R("span");this.j.textContent=this.localization.resolve("LOOP");d.appendChild(this.j);this.l=R("span");this.l.classList.add("shaka-current-selection-span");
1086
- d.appendChild(this.l);this.g.appendChild(d);Rx(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){Rx(c)});this.eventManager.o(this.localization,"locale-changed",function(){Rx(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.ya();c.h.ma(1)});this.m=this.video.loop;this.h=new P(function(){c.m!=c.video.loop&&(Rx(c),c.m=c.video.loop)});this.h.ma(1)}ra(Qx,W);Qx.prototype.release=function(){this.h.stop();this.h=null;W.prototype.release.call(this)};
1087
- function Rx(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")}J("shaka.ui.LoopButton",Qx);function Sx(){}Sx.prototype.create=function(a,b){return new Qx(a,b)};ex("loop",new Sx);Iw("loop",new Sx);sw("loop",new Sx);function Tx(a,b){W.call(this,a,b);var c=this;this.g=ek();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);Ux(this);Vx(this);this.eventManager.o(this.localization,"locale-updated",function(){Ux(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ux(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});
1088
- this.eventManager.o(this.video,"volumechange",function(){Ux(c);Vx(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){Ux(c);Vx(c)});this.eventManager.o(this.adManager,"ad-muted",function(){Ux(c);Vx(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;Ux(c);Vx(c)})}ra(Tx,W);function Ux(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1089
- function Vx(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}J("shaka.ui.MuteButton",Tx);function Wx(){}Wx.prototype.create=function(a,b){return new Tx(a,b)};Iw("mute",new Wx);function Xx(a,b){W.call(this,a,b);var c=this;this.l=this.controls.A;this.g=ek();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=R("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=R("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");d.appendChild(this.j);
1090
- this.h=R("span");this.h.classList.add("shaka-current-selection-span");d.appendChild(this.h);this.g.appendChild(d);Yx(this);this.parent.appendChild(this.g);document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||X(this.g,!1);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(){Zx(c)});this.eventManager.o(this.l,"enterpictureinpicture",function(){c.i.textContent=
1072
+ trackLabelFormat:qx,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1,keyboardSeekDistance:5};window.WebKitPlaybackTargetAvailabilityEvent&&b.overflowMenuButtons.push("airplay");a.ee()&&(b.addBigPlayButton=!0,b.controlPanelElements=b.controlPanelElements.filter(function(c){return"play_pause"!=c&&"volume"!=c}));return b}
1073
+ function rx(){var a,b,c,d,e,f,g,h,k,l,m,n,p;return I(function(q){switch(q.g){case 1:pt();if(!nl())return sx("shaka-ui-load-failed",tx),q["return"]();a=document.querySelectorAll("[data-shaka-player-container]");b=document.querySelectorAll("[data-shaka-player]");if(!b.length&&!a.length){q.D(2);break}if(b.length&&!a.length){c=t(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),ux(f,e));q.D(2);break}h=t(a);k=h.next();
1074
+ case 4:if(k.done){q.D(2);break}l=k.value;if(l.ui){q.D(5);break}m=null;n=t(b);for(d=n.next();!d.done;d=n.next())if(p=d.value,p.parentElement==l){m=p;break}m||(m=document.createElement("video"),m.setAttribute("playsinline",""),l.appendChild(m));A(q,7);return u(q,ux(l,m),9);case 9:va(q,5);break;case 7:return F(q),sx("shaka-ui-load-failed",vx),q["return"]();case 5:k=h.next();q.D(4);break;case 2:sx("shaka-ui-loaded"),z(q)}})}
1075
+ function sx(a,b){var c=null;void 0!=b&&(c={reasonCode:b});c=new CustomEvent(a,{detail:c});document.dispatchEvent(c)}
1076
+ function ux(a,b){var c,d,e,f,g,h,k,l,m;return I(function(n){switch(n.g){case 1:c=new S(b);d=new ox(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&&
1077
+ d.g.If(!0);if(g=b.getAttribute("src"))h=document.createElement("source"),h.setAttribute("src",g),b.appendChild(h),b.removeAttribute("src");k=t(b.querySelectorAll("source"));l=k.next();case 2:if(l.done){n.D(0);break}m=l.value;A(n,5);return u(n,d.g.bc().load(m.getAttribute("src")),7);case 7:n.D(0);break;case 5:F(n);case 3:l=k.next(),n.D(2)}})}J("shaka.ui.Overlay",ox);ox.prototype.setEnabled=ox.prototype.ph;ox.prototype.getControls=ox.prototype.mg;ox.prototype.configure=ox.prototype.configure;
1078
+ ox.prototype.getConfiguration=ox.prototype.getConfiguration;ox.prototype.isMobile=ox.prototype.ee;ox.prototype.destroy=ox.prototype.destroy;var qx=0;ox.TrackLabelFormat={LANGUAGE:qx,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var tx=0,vx=1;ox.FailReasonCode={NO_BROWSER_SUPPORT:tx,PLAYER_FAILED_TO_LOAD:vx};"complete"==document.readyState?I(function(a){if(1==a.g)return u(a,Promise.resolve(),2);rx();z(a)}):window.addEventListener("load",rx);function wx(a,b,c,d,e,f,g){function h(C,B){return C+": "+B}function k(C){return"variant"==C.type?C.audioRoles?C.audioRoles.join(", "):void 0:C.roles.join(", ")}var l=a.find(function(C){return 1==C.active}),m=hw(b);fk(b);b.appendChild(m);m=new Map;for(var n=t(a),p=n.next();!p.done;p=n.next())p=p.value,m.has(p.language)||m.set(p.language,new Set),m.get(p.language).add(k(p));m=new Set;l=l?h(l.language,k(l)):"";n={};a=t(a);for(p=a.next();!p.done;n={Va:n.Va},p=a.next()){n.Va=p.value;p=n.Va.language;var q=
1079
+ n.Va.forced,w=f.resolve(Zb.Sf),y=k(n.Va),x=h(p,y);if(!m.has(x)){m.add(x);var v=ek();v.addEventListener("click",function(C){return function(){c(C.Va)}}(n));var D=R("span");v.appendChild(D);D.textContent=xx(p,f);switch(g){case qx:q&&(D.textContent+=" ("+w+")");break;case 1:y?D.textContent=y:(Ua("Track #"+n.Va.id+" does not have a role, but the UI is configured to only show role."),D.textContent="?");q&&(D.textContent+=" ("+w+")");break;case 2:y&&(D.textContent+=": "+y);q&&(D.textContent+=" ("+w+")");
1080
+ break;case 3:n.Va.label?D.textContent=n.Va.label:(Ua("Track #"+n.Va.id+" does not have a label, but the UI is configured to only show labels."),D.textContent="?")}d&&x==l&&(v.appendChild(kw()),D.classList.add("shaka-chosen-item"),v.ariaSelected="true",e.textContent=D.textContent);b.appendChild(v)}}}
1081
+ function xx(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 dw?dw[a].s:c in dw?dw[c].s+" ("+a+")":b.resolve("UNRECOGNIZED_LANGUAGE")+" ("+a+")"};function yx(a,b,c){W.call(this,a,b);var d=this;zx(this,c);Ax(this);Bx(this);this.eventManager.o(this.button,"click",function(){d.menu.classList.contains("shaka-hidden")?(d.controls.dispatchEvent(new L("submenuopen")),X(d.menu,!0),jw(d.menu)):X(d.menu,!1)})}qa(yx,W);
1082
+ function zx(a,b){a.button=ek();a.button.classList.add("shaka-overflow-button");a.icon=R("i");a.icon.classList.add("material-icons-round");a.icon.textContent=b;a.button.appendChild(a.icon);var c=R("label");c.classList.add("shaka-overflow-button-label");c.classList.add("shaka-overflow-menu-only");a.nameSpan=R("span");c.appendChild(a.nameSpan);a.currentSelection=R("span");a.currentSelection.classList.add("shaka-current-selection-span");c.appendChild(a.currentSelection);a.button.appendChild(c);a.parent.appendChild(a.button)}
1083
+ function Ax(a){a.menu=R("div");a.menu.classList.add("shaka-no-propagation");a.menu.classList.add("shaka-show-controls-on-mouse-over");a.menu.classList.add("shaka-settings-menu");a.menu.classList.add("shaka-hidden");a.backButton=ek();a.backButton.classList.add("shaka-back-to-overflow-button");a.menu.appendChild(a.backButton);a.eventManager.o(a.backButton,"click",function(){a.controls.dc()});var b=R("i");b.classList.add("material-icons-round");b.textContent="close";a.backButton.appendChild(b);a.backSpan=
1084
+ R("span");a.backButton.appendChild(a.backSpan);a.controls.g.appendChild(a.menu)}function Bx(a){a.parent.classList.contains("shaka-overflow-menu")&&(a.backButton.firstChild.textContent="arrow_back",a.eventManager.o(a.backButton,"click",function(){X(a.parent,!0);a.parent.childNodes[0].focus();Fw(a.controls)}))}J("shaka.ui.SettingsMenu",yx);function Cx(a,b){yx.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(){Dx(c)});this.eventManager.o(this.localization,"locale-changed",function(){Dx(c)});this.eventManager.o(this.player,"trackschanged",function(){var d=0<c.player.Qa().length;X(c.button,d);Ex(c)});this.eventManager.o(this.player,"variantchanged",
1085
+ function(){Ex(c)});Dx(this);Ex(this)}qa(Cx,yx);function Ex(a){var b=a.player.Qa();wx(b,a.menu,function(c){a.player.Fd(c.language,c.roles[0])},!0,a.currentSelection,a.localization,a.controls.i.trackLabelFormat);jw(a.menu);a.controls.dispatchEvent(new L("languageselectionupdated"));a.button.setAttribute("shaka-status",a.currentSelection.innerText)}
1086
+ function Dx(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")}J("shaka.ui.AudioLanguageSelection",Cx);function Fx(){}Fx.prototype.create=function(a,b){return new Cx(a,b)};hx("language",new Fx);Lw("language",new Fx);function Gx(a,b){W.call(this,a,b);var c=this;this.h=this.controls.C;this.g=ek();this.g.classList.add("shaka-cast-button");this.g.classList.add("shaka-tooltip");this.g.ariaPressed="false";this.i=R("i");this.i.classList.add("material-icons-round");this.i.textContent="cast";this.g.appendChild(this.i);var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.l=R("span");d.appendChild(this.l);this.j=R("span");this.j.classList.add("shaka-current-selection-span");
1087
+ d.appendChild(this.j);this.g.appendChild(d);this.parent.appendChild(this.g);Hx(this);Ix(this);this.eventManager.o(this.localization,"locale-updated",function(){Hx(c)});this.eventManager.o(this.localization,"locale-changed",function(){Hx(c)});this.eventManager.o(this.g,"click",function(){Jx(c)});this.eventManager.o(this.controls,"caststatuschanged",function(){Ix(c)})}qa(Gx,W);
1088
+ function Jx(a){var b;I(function(c){if(1==c.g){if(a.h.qa())return a.h.Mf(),c.D(0);A(c,3);a.g.disabled=!0;return u(c,a.h.cast(),5)}if(3!=c.g)return a.g.disabled=!1,va(c,0);b=F(c);a.g.disabled=!1;8004!=b.code&&a.controls.dispatchEvent(new L("error",(new Map).set("detail",b)));z(c)})}function Ix(a){var b=a.h.bf()&&a.controls.gb,c=a.h.qa();X(a.g,b);a.i.textContent=c?"cast_connected":"cast";b&&(a.g.ariaPressed=c?"true":"false");Kx(a)}
1089
+ function Kx(a){a.j.textContent=a.h.qa()?a.h.Dd():a.localization.resolve("OFF")}function Hx(a){a.g.ariaLabel=a.localization.resolve("CAST");a.l.textContent=a.localization.resolve("CAST");Kx(a)}J("shaka.ui.CastButton",Gx);function Lx(){}Lx.prototype.create=function(a,b){return new Gx(a,b)};hx("cast",new Lx);Lw("cast",new Lx);function Mx(a,b){W.call(this,a,b);var c=this;this.g=ek();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);Nx(this);this.h=this.controls.i.fastForwardRates;this.eventManager.o(this.localization,"locale-updated",function(){Nx(c)});this.eventManager.o(this.localization,"locale-changed",function(){Nx(c)});
1090
+ 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.Qe(d);c.g.setAttribute("shaka-status",d+"x")}})}qa(Mx,W);function Nx(a){a.g.ariaLabel=a.localization.resolve("FAST_FORWARD")}J("shaka.ui.FastForwardButton",Mx);function Ox(){}Ox.prototype.create=function(a,b){return new Mx(a,b)};Lw("fast_forward",new Ox);function Px(a,b){W.call(this,a,b);var c=this;this.h=this.controls.A;this.g=ek();this.g.classList.add("shaka-fullscreen-button");this.g.classList.add("material-icons-round");this.g.classList.add("shaka-tooltip");Qx(this);this.g.textContent="fullscreen";this.parent.appendChild(this.g);Rx(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.g,"click",function(){return I(function(d){return u(d,
1091
+ c.controls.Oe(),0)})});this.eventManager.o(document,"fullscreenchange",function(){c.g.textContent=c.controls.be()?"fullscreen_exit":"fullscreen";Rx(c)});this.eventManager.o(this.h,"loadedmetadata",function(){Qx(c)});this.eventManager.o(this.h,"loadeddata",function(){Qx(c)})}qa(Px,W);function Qx(a){a.controls.ce()?a.g.classList.remove("shaka-hidden"):a.g.classList.add("shaka-hidden")}function Rx(a){a.g.ariaLabel=a.localization.resolve(a.controls.be()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}
1092
+ J("shaka.ui.FullscreenButton",Px);function Sx(){}Sx.prototype.create=function(a,b){return new Px(a,b)};Lw("fullscreen",new Sx);function Tx(a,b){W.call(this,a,b);var c=this;this.g=ek();this.g.classList.add("shaka-loop-button");this.g.classList.add("shaka-tooltip");this.i=R("i");this.i.classList.add("material-icons-round");this.i.textContent="repeat";this.g.appendChild(this.i);var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=R("span");this.j.textContent=this.localization.resolve("LOOP");d.appendChild(this.j);this.l=R("span");this.l.classList.add("shaka-current-selection-span");
1093
+ d.appendChild(this.l);this.g.appendChild(d);Ux(this);this.parent.appendChild(this.g);this.eventManager.o(this.localization,"locale-updated",function(){Ux(c)});this.eventManager.o(this.localization,"locale-changed",function(){Ux(c)});this.eventManager.o(this.g,"click",function(){c.video.loop=!c.video.loop;c.h.xa();c.h.ka(1)});this.m=this.video.loop;this.h=new P(function(){c.m!=c.video.loop&&(Ux(c),c.m=c.video.loop)});this.h.ka(1)}qa(Tx,W);Tx.prototype.release=function(){this.h.stop();this.h=null;W.prototype.release.call(this)};
1094
+ function Ux(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")}J("shaka.ui.LoopButton",Tx);function Vx(){}Vx.prototype.create=function(a,b){return new Tx(a,b)};hx("loop",new Vx);Lw("loop",new Vx);vw("loop",new Vx);function Wx(a,b){W.call(this,a,b);var c=this;this.g=ek();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);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.ad&&c.ad.isLinear()?c.ad.setMuted(!c.ad.isMuted()):c.video.muted=!c.video.muted});
1095
+ this.eventManager.o(this.video,"volumechange",function(){Xx(c);Yx(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){Xx(c);Yx(c)});this.eventManager.o(this.adManager,"ad-muted",function(){Xx(c);Yx(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){c.ad=null;Xx(c);Yx(c)})}qa(Wx,W);function Xx(a){var b=a.ad?a.ad.isMuted()?"UNMUTE":"MUTE":a.video.muted?"UNMUTE":"MUTE";a.g.ariaLabel=a.localization.resolve(b)}
1096
+ function Yx(a){var b=a.ad?a.ad.isMuted()?"volume_off":"volume_up":a.video.muted?"volume_off":"volume_up";a.g.textContent=b}J("shaka.ui.MuteButton",Wx);function Zx(){}Zx.prototype.create=function(a,b){return new Wx(a,b)};Lw("mute",new Zx);function $x(a,b){W.call(this,a,b);var c=this;this.l=this.controls.A;this.g=ek();this.g.classList.add("shaka-pip-button");this.g.classList.add("shaka-tooltip");this.i=R("i");this.i.classList.add("material-icons-round");this.i.textContent="picture_in_picture_alt";this.g.appendChild(this.i);var d=R("label");d.classList.add("shaka-overflow-button-label");d.classList.add("shaka-overflow-menu-only");this.j=R("span");this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE");d.appendChild(this.j);
1097
+ this.h=R("span");this.h.classList.add("shaka-current-selection-span");d.appendChild(this.h);this.g.appendChild(d);ay(this);this.parent.appendChild(this.g);document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||X(this.g,!1);this.eventManager.o(this.localization,"locale-updated",function(){ay(c)});this.eventManager.o(this.localization,"locale-changed",function(){ay(c)});this.eventManager.o(this.g,"click",function(){by(c)});this.eventManager.o(this.l,"enterpictureinpicture",function(){c.i.textContent=
1091
1098
  "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(e){e.newStatus?document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&X(c.g,!1):
1092
- document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&X(c.g,!0)});this.eventManager.o(this.player,"trackschanged",function(){$x(c)})}ra(Xx,W);function Zx(a){var b;I(function(c){if(1==c.g)return A(c,2),document.pictureInPictureElement?u(c,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),u(c,a.video.requestPictureInPicture(),5));if(2!=c.g)return wa(c,0);b=F(c);a.controls.dispatchEvent(new M("error",(new Map).set("detail",b)));z(c)})}
1093
- function Yx(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")}
1094
- function $x(a){I(function(b){if(!document.pictureInPictureEnabled||a.video.disablePictureInPicture)return X(a.g,!1),b.D(0);if(!a.player||!a.player.hc())return X(a.g,!0),b.D(0);X(a.g,!1);return document.pictureInPictureElement?u(b,document.exitPictureInPicture(),0):b.D(0)})}J("shaka.ui.PipButton",Xx);function ay(){}ay.prototype.create=function(a,b){return new Xx(a,b)};ex("picture_in_picture",new ay);Iw("picture_in_picture",new ay);sw("picture_in_picture",new ay);function by(a,b){vx.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(){cy(c)});this.eventManager.o(this.localization,"locale-changed",function(){cy(c)});this.eventManager.o(this.player,"ratechange",function(){dy(c,c.player.Bb())});this.g=new Map(this.controls.i.playbackRates.map(function(d){return[d+
1095
- "x",d]}));cy(this);ey(this);dy(this,this.player.Bb())}ra(by,vx);function cy(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")}
1096
- function dy(a,b){var c=fw(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(hw()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1097
- "x")}function ey(a){for(var b={},c=t(a.g.keys()),d=c.next();!d.done;b={wc:b.wc},d=c.next()){b.wc=d.value;d=ek();var e=R("span");e.textContent=b.wc;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.wc);a.video.defaultPlaybackRate=a.g.get(f.wc)}}(b));a.menu.appendChild(d)}gw(a.menu)}J("shaka.ui.PlaybackRateSelection",by);function fy(){}fy.prototype.create=function(a,b){return new by(a,b)};ex("playback_rate",new fy);Iw("playback_rate",new fy);function gy(a,b){W.call(this,a,b);var c=this;this.g=ek();this.g.classList.add("shaka-current-time");hy(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.U()&&(c.video.currentTime=c.player.Ia().end)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.$,e=c.controls.pf(),f=c.video.duration,g=c.player.Ia(),h=g.end-g.start;c.player.U()?(e=Math.max(0,Math.floor(g.end-e)),f=3600<=h,1<=e||d?(hy(c,"- "+iw(e,f)),c.g.disabled=
1098
- !1):(hy(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=f,e=iw(e,d),f&&(e+=" / "+iw(f,d)),hy(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"))})}ra(gy,W);function hy(a,b){b!=a.g.textContent&&(a.g.textContent=b)}J("shaka.ui.PresentationTimeTracker",gy);function iy(){}iy.prototype.create=function(a,b){return new gy(a,b)};Iw("time_and_duration",new iy);function jy(a,b){vx.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(){ky(c)});this.eventManager.o(this.localization,"locale-changed",function(){ky(c)});this.eventManager.o(this.player,"variantchanged",function(){ly(c)});this.eventManager.o(this.player,"trackschanged",function(){ly(c)});this.eventManager.o(this.player,
1099
- "abrstatuschanged",function(){ly(c)});ly(this)}ra(jy,vx);
1100
- function ly(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.hc()?b.findIndex(function(m){return m.bandwidth==k.bandwidth}):b.findIndex(function(m){return m.height==k.height}))==l});a.player.hc()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):b.sort(function(k,l){return l.height-k.height});var d=ew(a.menu);fk(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;
1101
- for(var e={},f=t(b),g=f.next();!g.done;e={Zb:e.Zb},g=f.next()){e.Zb=g.value;g=ek();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.ye(l,a.controls.i.clearBufferOnQualityChange)}}(e));var h=R("span");h.textContent=a.player.hc()?Math.round(e.Zb.bandwidth/1E3)+" kbits/s":e.Zb.height+"p";g.appendChild(h);d||e.Zb!=c||(g.ariaSelected="true",g.appendChild(hw()),h.classList.add("shaka-chosen-item"),
1102
- a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=ek();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});ly(a)});a.g=R("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected="true",e.appendChild(hw()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",
1103
- a.currentSelection.textContent);a.menu.appendChild(e);gw(a.menu);a.controls.dispatchEvent(new M("resolutionselectionupdated"));ky(a)}
1104
- function ky(a){var b=a.player.hc()?"QUALITY":"RESOLUTION";a.button.ariaLabel=a.localization.resolve(b);a.backButton.ariaLabel=a.localization.resolve(b);a.backSpan.textContent=a.localization.resolve(b);a.nameSpan.textContent=a.localization.resolve(b);a.g.textContent=a.localization.resolve("AUTO_QUALITY");a.player.getConfiguration().abr.enabled&&(a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"))}J("shaka.ui.ResolutionSelection",jy);function my(){}
1105
- my.prototype.create=function(a,b){return new jy(a,b)};ex("quality",new my);Iw("quality",new my);function ny(a,b){W.call(this,a,b);var c=this;this.g=ek();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);oy(this);this.h=this.controls.i.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){oy(c)});this.eventManager.o(this.localization,"locale-changed",function(){oy(c)});
1106
- this.eventManager.o(this.g,"click",function(){if(c.video.duration){var d=c.h.indexOf(c.player.Bb())+1;d=d!=c.h.length?c.h[d]:c.h[0];c.player.Me(d);c.g.setAttribute("shaka-status",d+"x")}})}ra(ny,W);function oy(a){a.g.ariaLabel=a.localization.resolve("REWIND")}J("shaka.ui.RewindButton",ny);function py(){}py.prototype.create=function(a,b){return new ny(a,b)};Iw("rewind",new py);function qy(a,b){W.call(this,a,b);var c=this;this.j=R("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=R("div");this.h.classList.add("shaka-skip-ad-counter");X(this.h,!1);this.j.appendChild(this.h);this.g=ek();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;X(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);ry(this);this.i=new P(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1107
- d:(c.i.stop(),X(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){ry(c)});this.eventManager.o(this.localization,"locale-changed",function(){ry(c)});this.eventManager.o(this.adManager,"ad-started",function(){sy(c)});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),X(c.h,!1))});this.eventManager.o(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;X(c.g,!1);X(c.h,!1)});this.eventManager.o(this.g,
1108
- "click",function(){c.ad.skip()});this.ad&&sy(this)}ra(qy,W);qy.prototype.release=function(){this.i.stop();this.i=null;W.prototype.release.call(this)};function ry(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function sy(a){a.ad.isSkippable()&&(X(a.g,!0),X(a.h,!0),a.h.textContent="",a.i.ya(),a.i.ma(.5))}J("shaka.ui.SkipAdButton",qy);function ty(a,b){mw.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()}ra(ty,mw);ty.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};ty.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)}};
1109
- J("shaka.ui.SmallPlayButton",ty);function uy(){}uy.prototype.create=function(a,b){return new ty(a,b)};Iw("play_pause",new uy);function vy(a,b){W.call(this,a,b);var c=R("div");c.classList.add("shaka-spacer");c.ariaHidden="true";this.parent.appendChild(c)}ra(vy,W);J("shaka.ui.Spacer",vy);function wy(){}wy.prototype.create=function(a,b){return new vy(a,b)};Iw("spacer",new wy);function xy(a,b){function c(l){return iw(h.h[l],!1)+" (m)"}function d(l){return Math.round(h.h[l]/1E3)+" (kbits/s)"}function e(l){return h.h[l].toFixed(2)+" (s)"}function f(l){return h.h[l]+" (frames)"}function g(l){return h.h[l]+" (px)"}W.call(this,a,b);var h=this;this.i=ek();this.i.classList.add("shaka-statistics-button");this.j=R("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);var k=R("label");k.classList.add("shaka-overflow-button-label");
1099
+ document.pictureInPictureEnabled&&!c.video.disablePictureInPicture&&X(c.g,!0)});this.eventManager.o(this.player,"trackschanged",function(){cy(c)})}qa($x,W);function by(a){var b;I(function(c){if(1==c.g)return A(c,2),document.pictureInPictureElement?u(c,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),u(c,a.video.requestPictureInPicture(),5));if(2!=c.g)return va(c,0);b=F(c);a.controls.dispatchEvent(new L("error",(new Map).set("detail",b)));z(c)})}
1100
+ function ay(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")}
1101
+ function cy(a){I(function(b){if(!document.pictureInPictureEnabled||a.video.disablePictureInPicture)return X(a.g,!1),b.D(0);if(!a.player||!a.player.ec())return X(a.g,!0),b.D(0);X(a.g,!1);return document.pictureInPictureElement?u(b,document.exitPictureInPicture(),0):b.D(0)})}J("shaka.ui.PipButton",$x);function dy(){}dy.prototype.create=function(a,b){return new $x(a,b)};hx("picture_in_picture",new dy);Lw("picture_in_picture",new dy);vw("picture_in_picture",new dy);function ey(a,b){yx.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(){fy(c)});this.eventManager.o(this.localization,"locale-changed",function(){fy(c)});this.eventManager.o(this.player,"ratechange",function(){gy(c,c.player.zb())});this.g=new Map(this.controls.i.playbackRates.map(function(d){return[d+
1102
+ "x",d]}));fy(this);hy(this);gy(this,this.player.zb())}qa(ey,yx);function fy(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")}
1103
+ function gy(a,b){var c=iw(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(kw()),d.ariaSelected="true",c.classList.add("shaka-chosen-item");a.currentSelection.textContent=b+"x";a.button.setAttribute("shaka-status",b+
1104
+ "x")}function hy(a){for(var b={},c=t(a.g.keys()),d=c.next();!d.done;b={uc:b.uc},d=c.next()){b.uc=d.value;d=ek();var e=R("span");e.textContent=b.uc;d.appendChild(e);a.eventManager.o(d,"click",function(f){return function(){a.video.playbackRate=a.g.get(f.uc);a.video.defaultPlaybackRate=a.g.get(f.uc)}}(b));a.menu.appendChild(d)}jw(a.menu)}J("shaka.ui.PlaybackRateSelection",ey);function iy(){}iy.prototype.create=function(a,b){return new ey(a,b)};hx("playback_rate",new iy);Lw("playback_rate",new iy);function jy(a,b){W.call(this,a,b);var c=this;this.g=ek();this.g.classList.add("shaka-current-time");ky(this,"0:00");this.parent.appendChild(this.g);this.eventManager.o(this.g,"click",function(){c.player.U()&&(c.video.currentTime=c.player.Ia().end)});this.eventManager.o(this.controls,"timeandseekrangeupdated",function(){var d=c.controls.$,e=c.controls.rf(),f=c.video.duration,g=c.player.Ia(),h=g.end-g.start;c.player.U()?(e=Math.max(0,Math.floor(g.end-e)),f=3600<=h,1<=e||d?(ky(c,"- "+lw(e,f)),c.g.disabled=
1105
+ !1):(ky(c,c.localization.resolve("LIVE")),c.g.disabled=!0)):(d=3600<=f,e=lw(e,d),f&&(e+=" / "+lw(f,d)),ky(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"))})}qa(jy,W);function ky(a,b){b!=a.g.textContent&&(a.g.textContent=b)}J("shaka.ui.PresentationTimeTracker",jy);function ly(){}ly.prototype.create=function(a,b){return new jy(a,b)};Lw("time_and_duration",new ly);function my(a,b){yx.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(){ny(c)});this.eventManager.o(this.localization,"locale-changed",function(){ny(c)});this.eventManager.o(this.player,"variantchanged",function(){oy(c)});this.eventManager.o(this.player,"trackschanged",function(){oy(c)});this.eventManager.o(this.player,
1106
+ "abrstatuschanged",function(){oy(c)});oy(this)}qa(my,yx);
1107
+ function oy(a){var b=a.player.Qa(),c=b.find(function(k){return k.active});c&&(b=b.filter(function(k){return k.language==c.language&&k.channelsCount==c.channelsCount}));b=b.filter(function(k,l){return(a.player.ec()?b.findIndex(function(m){return m.bandwidth==k.bandwidth}):b.findIndex(function(m){return m.height==k.height}))==l});a.player.ec()?b.sort(function(k,l){return l.bandwidth-k.bandwidth}):b.sort(function(k,l){return l.height-k.height});var d=hw(a.menu);fk(a.menu);a.menu.appendChild(d);d=a.player.getConfiguration().abr.enabled;
1108
+ for(var e={},f=t(b),g=f.next();!g.done;e={Xb:e.Xb},g=f.next()){e.Xb=g.value;g=ek();g.classList.add("explicit-resolution");a.eventManager.o(g,"click",function(k){return function(){var l=k.Xb;a.player.configure({abr:{enabled:!1}});a.player.Ce(l,a.controls.i.clearBufferOnQualityChange)}}(e));var h=R("span");h.textContent=a.player.ec()?Math.round(e.Xb.bandwidth/1E3)+" kbits/s":e.Xb.height+"p";g.appendChild(h);d||e.Xb!=c||(g.ariaSelected="true",g.appendChild(kw()),h.classList.add("shaka-chosen-item"),
1109
+ a.currentSelection.textContent=h.textContent);a.menu.appendChild(g)}e=ek();e.classList.add("shaka-enable-abr-button");a.eventManager.o(e,"click",function(){a.player.configure({abr:{enabled:!0}});oy(a)});a.g=R("span");a.g.classList.add("shaka-auto-span");a.g.textContent=a.localization.resolve("AUTO_QUALITY");e.appendChild(a.g);d&&(e.ariaSelected="true",e.appendChild(kw()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("AUTO_QUALITY"));a.button.setAttribute("shaka-status",
1110
+ a.currentSelection.textContent);a.menu.appendChild(e);jw(a.menu);a.controls.dispatchEvent(new L("resolutionselectionupdated"));ny(a)}
1111
+ function ny(a){var b=a.player.ec()?"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"))}J("shaka.ui.ResolutionSelection",my);function py(){}
1112
+ py.prototype.create=function(a,b){return new my(a,b)};hx("quality",new py);Lw("quality",new py);function qy(a,b){W.call(this,a,b);var c=this;this.g=ek();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);ry(this);this.h=this.controls.i.rewindRates;this.eventManager.o(this.localization,"locale-updated",function(){ry(c)});this.eventManager.o(this.localization,"locale-changed",function(){ry(c)});
1113
+ 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.Qe(d);c.g.setAttribute("shaka-status",d+"x")}})}qa(qy,W);function ry(a){a.g.ariaLabel=a.localization.resolve("REWIND")}J("shaka.ui.RewindButton",qy);function sy(){}sy.prototype.create=function(a,b){return new qy(a,b)};Lw("rewind",new sy);function ty(a,b){W.call(this,a,b);var c=this;this.j=R("div");this.j.classList.add("shaka-skip-ad-container");this.parent.appendChild(this.j);this.h=R("div");this.h.classList.add("shaka-skip-ad-counter");X(this.h,!1);this.j.appendChild(this.h);this.g=ek();this.g.classList.add("shaka-skip-ad-button");this.g.disabled=!0;X(this.g,!1);this.g.classList.add("shaka-no-propagation");this.j.appendChild(this.g);uy(this);this.i=new P(function(){var d=Math.round(c.ad.getTimeUntilSkippable());0<d?c.h.textContent=
1114
+ d:(c.i.stop(),X(c.h,!1))});this.eventManager.o(this.localization,"locale-updated",function(){uy(c)});this.eventManager.o(this.localization,"locale-changed",function(){uy(c)});this.eventManager.o(this.adManager,"ad-started",function(){vy(c)});this.eventManager.o(this.adManager,"ad-skip-state-changed",function(){c.ad.canSkipNow()&&(c.g.disabled=!1,c.i.stop(),X(c.h,!1))});this.eventManager.o(this.adManager,"ad-stopped",function(){c.i.stop();c.g.disabled=!0;X(c.g,!1);X(c.h,!1)});this.eventManager.o(this.g,
1115
+ "click",function(){c.ad.skip()});this.ad&&vy(this)}qa(ty,W);ty.prototype.release=function(){this.i.stop();this.i=null;W.prototype.release.call(this)};function uy(a){a.g.textContent=a.localization.resolve("SKIP_AD")}function vy(a){a.ad.isSkippable()&&(X(a.g,!0),X(a.h,!0),a.h.textContent="",a.i.xa(),a.i.ka(.5))}J("shaka.ui.SkipAdButton",ty);function wy(a,b){pw.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()}qa(wy,pw);wy.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"};wy.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)}};
1116
+ J("shaka.ui.SmallPlayButton",wy);function xy(){}xy.prototype.create=function(a,b){return new wy(a,b)};Lw("play_pause",new xy);function yy(a,b){W.call(this,a,b);var c=R("div");c.classList.add("shaka-spacer");c.ariaHidden="true";this.parent.appendChild(c)}qa(yy,W);J("shaka.ui.Spacer",yy);function zy(){}zy.prototype.create=function(a,b){return new yy(a,b)};Lw("spacer",new zy);function Ay(a,b){function c(l){return lw(h.h[l],!1)+" (m)"}function d(l){return Math.round(h.h[l]/1E3)+" (kbits/s)"}function e(l){return h.h[l].toFixed(2)+" (s)"}function f(l){return h.h[l]+" (frames)"}function g(l){return h.h[l]+" (px)"}W.call(this,a,b);var h=this;this.i=ek();this.i.classList.add("shaka-statistics-button");this.j=R("i");this.j.classList.add("material-icons-round");this.j.textContent="insert_chart_outlined";this.i.appendChild(this.j);var k=R("label");k.classList.add("shaka-overflow-button-label");
1110
1117
  this.A=R("span");k.appendChild(this.A);this.m=R("span");this.m.classList.add("shaka-current-selection-span");k.appendChild(this.m);this.i.appendChild(k);this.parent.appendChild(this.i);this.g=R("div");this.g.classList.add("shaka-no-propagation");this.g.classList.add("shaka-show-controls-on-mouse-over");this.g.classList.add("shaka-statistics-container");this.g.classList.add("shaka-hidden");this.controls.g.appendChild(this.g);this.F=[];this.G=["stateHistory","switchHistory"];this.h=this.player.getStats();
1111
1118
  this.B={};this.C={width:g,height:g,completionPercent:function(l){return h.h[l]+" (%)"},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(l){return h.h[l]+" (stalls)"},gapsJumped:function(l){return h.h[l]+" (gaps)"}};this.l=new P(function(){h.h=h.player.getStats();for(var l=t(h.F),m=l.next();!m.done;m=
1112
- l.next())m=m.value,h.B[m].textContent=h.C[m](m)});yy(this);zy(this);this.eventManager.o(this.localization,"locale-updated",function(){yy(h)});this.eventManager.o(this.localization,"locale-changed",function(){yy(h)});this.eventManager.o(this.i,"click",function(){X(h.parent,!1);h.g.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.ma(.1),X(h.g,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),X(h.g,!1));yy(h)})}ra(xy,W);
1113
- function yy(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")}
1114
- function zy(a){for(var b=t(a.controls.i.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.h&&!a.G.includes(c)){var d=a.g,e=d.appendChild,f=a,g=R("div"),h=R("label");h.textContent=c+":";g.appendChild(h);h=R("span");h.textContent=f.C[c](c);g.appendChild(h);f.B[c]=h;e.call(d,g);a.F.push(c)}else Ua("Unrecognized statistic element:",c)}xy.prototype.release=function(){this.l.stop();this.l=null;W.prototype.release.call(this)};J("shaka.ui.StatisticsButton",xy);function Ay(){}
1115
- Ay.prototype.create=function(a,b){return new xy(a,b)};ex("statistics",new Ay);sw("statistics",new Ay);function By(a,b){vx.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.Pb()?this.button.ariaPressed="true":this.button.ariaPressed="false";Cy(this);this.eventManager.o(this.localization,"locale-updated",function(){Dy(c);Ey(c)});this.eventManager.o(this.localization,"locale-changed",function(){Dy(c);Ey(c)});this.eventManager.o(this.player,
1116
- "texttrackvisibility",function(){Fy(c);Ey(c)});this.eventManager.o(this.player,"textchanged",function(){Ey(c)});this.eventManager.o(this.player,"trackschanged",function(){Gy(c)});Fy(this);Dy(this);Ey(this);Gy(this)}ra(By,vx);function Cy(a){var b=ek();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(hw());a.g=R("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1117
- function Fy(a){a.player.Pb()?(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption",a.button.ariaPressed="false");a.controls.dispatchEvent(new M("captionselectionupdated"))}
1118
- function Ey(a){var b=a.player.Cb();tx(b,a.menu,function(c){return Hy(a,c)},a.player.Pb(),a.currentSelection,a.localization,a.controls.i.trackLabelFormat);b=ek();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.Ge(!1);Ey(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Pb()||(b.ariaSelected="true",b.appendChild(hw()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));a.button.setAttribute("shaka-status",
1119
- a.currentSelection.textContent);gw(a.menu);a.controls.dispatchEvent(new M("captionselectionupdated"))}function Hy(a,b){return I(function(c){a.player.xe(b);return u(c,a.player.Ge(!0),0)})}function Dy(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")}
1120
- function Gy(a){var b=0<a.player.Cb().length;X(a.button,b);Ey(a)}J("shaka.ui.TextSelection",By);function Iy(){}Iy.prototype.create=function(a,b){return new By(a,b)};ex("captions",new Iy);Iw("captions",new Iy);function Jy(a,b){uw.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 Ky(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return Ly(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return Ly(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return Ky(c)});this.eventManager.o(this.localization,"locale-updated",function(){return My(c)});
1121
- this.eventManager.o(this.localization,"locale-changed",function(){return My(c)});Ky(this);My(this);if(this.ad)this.onChange()}ra(Jy,uw);Jy.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 Ky(a){a.video.muted?a.setValue(0):a.setValue(a.video.volume);Ny(a)}function Ly(a){var b=a.ad.getVolume();a.setValue(b);Ny(a)}
1122
- function Ny(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 My(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}J("shaka.ui.VolumeBar",Jy);function Oy(){}Oy.prototype.create=function(a,b){return new Jy(a,b)};Iw("volume",new Oy);}).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})();
1119
+ l.next())m=m.value,h.B[m].textContent=h.C[m](m)});By(this);Cy(this);this.eventManager.o(this.localization,"locale-updated",function(){By(h)});this.eventManager.o(this.localization,"locale-changed",function(){By(h)});this.eventManager.o(this.i,"click",function(){X(h.parent,!1);h.g.classList.contains("shaka-hidden")?(h.j.textContent="insert_chart",h.l.ka(.1),X(h.g,!0)):(h.j.textContent="insert_chart_outlined",h.l.stop(),X(h.g,!1));By(h)})}qa(Ay,W);
1120
+ function By(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")}
1121
+ function Cy(a){for(var b=t(a.controls.i.statisticsList),c=b.next();!c.done;c=b.next())if(c=c.value,c in a.h&&!a.G.includes(c)){var d=a.g,e=d.appendChild,f=a,g=R("div"),h=R("label");h.textContent=c+":";g.appendChild(h);h=R("span");h.textContent=f.C[c](c);g.appendChild(h);f.B[c]=h;e.call(d,g);a.F.push(c)}else Ua("Unrecognized statistic element:",c)}Ay.prototype.release=function(){this.l.stop();this.l=null;W.prototype.release.call(this)};J("shaka.ui.StatisticsButton",Ay);function Dy(){}
1122
+ Dy.prototype.create=function(a,b){return new Ay(a,b)};hx("statistics",new Dy);vw("statistics",new Dy);function Ey(a,b){yx.call(this,a,b,"closed_caption");var c=this;this.button.classList.add("shaka-caption-button");this.button.classList.add("shaka-tooltip-status");this.menu.classList.add("shaka-text-languages");this.player&&this.player.Nb()?this.button.ariaPressed="true":this.button.ariaPressed="false";Fy(this);this.eventManager.o(this.localization,"locale-updated",function(){Gy(c);Hy(c)});this.eventManager.o(this.localization,"locale-changed",function(){Gy(c);Hy(c)});this.eventManager.o(this.player,
1123
+ "texttrackvisibility",function(){Iy(c);Hy(c)});this.eventManager.o(this.player,"textchanged",function(){Hy(c)});this.eventManager.o(this.player,"trackschanged",function(){Jy(c)});Iy(this);Gy(this);Hy(this);Jy(this)}qa(Ey,yx);function Fy(a){var b=ek();b.ariaSelected="true";a.menu.appendChild(b);b.appendChild(kw());a.g=R("span");a.g.classList.add("shaka-auto-span");b.appendChild(a.g)}
1124
+ function Iy(a){a.player.Nb()?(a.icon.textContent="closed_caption",a.button.ariaPressed="true"):(a.icon.textContent="closed_caption_disabled",a.button.ariaPressed="false");a.controls.dispatchEvent(new L("captionselectionupdated"))}
1125
+ function Hy(a){var b=a.player.Ab();wx(b,a.menu,function(c){return Ky(a,c)},a.player.Nb(),a.currentSelection,a.localization,a.controls.i.trackLabelFormat);b=ek();b.classList.add("shaka-turn-captions-off-button");a.eventManager.o(b,"click",function(){a.player.Ke(!1);Hy(a)});b.appendChild(a.g);a.menu.appendChild(b);a.player.Nb()||(b.ariaSelected="true",b.appendChild(kw()),a.g.classList.add("shaka-chosen-item"),a.currentSelection.textContent=a.localization.resolve("OFF"));a.button.setAttribute("shaka-status",
1126
+ a.currentSelection.textContent);jw(a.menu);a.controls.dispatchEvent(new L("captionselectionupdated"))}function Ky(a,b){return I(function(c){a.player.Be(b);return u(c,a.player.Ke(!0),0)})}function Gy(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")}
1127
+ function Jy(a){var b=0<a.player.Ab().length;X(a.button,b);Hy(a)}J("shaka.ui.TextSelection",Ey);function Ly(){}Ly.prototype.create=function(a,b){return new Ey(a,b)};hx("captions",new Ly);Lw("captions",new Ly);function My(a,b){xw.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 Ny(c)});this.eventManager.o(this.adManager,"ad-volume-changed",function(){return Oy(c)});this.eventManager.o(this.adManager,"ad-muted",function(){return Oy(c)});this.eventManager.o(this.adManager,"ad-stopped",function(){return Ny(c)});this.eventManager.o(this.localization,"locale-updated",function(){return Py(c)});
1128
+ this.eventManager.o(this.localization,"locale-changed",function(){return Py(c)});Ny(this);Py(this);if(this.ad)this.onChange()}qa(My,xw);My.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 Ny(a){a.video.muted?a.setValue(0):a.setValue(a.video.volume);Qy(a)}function Oy(a){var b=a.ad.getVolume();a.setValue(b);Qy(a)}
1129
+ function Qy(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 Py(a){a.bar.ariaLabel=a.localization.resolve("VOLUME")}J("shaka.ui.VolumeBar",My);function Ry(){}Ry.prototype.create=function(a,b){return new My(a,b)};Lw("volume",new Ry);}).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})();
1123
1130
 
1124
1131
  //# sourceMappingURL=shaka-player.ui.map