From 1a91c3d12cff816a9b2c3ef1aa9ec6f45b3bf98f Mon Sep 17 00:00:00 2001 From: Conrad Chan Date: Mon, 1 Mar 2021 10:12:09 -0800 Subject: [PATCH] build(deps): Upgrade Shake Player to 3.0.8 --- src/lib/constants.js | 2 +- src/third-party/media/2.65.0/manifest.json | 8 + .../media/2.65.0/shaka-player.compiled.js | 752 ++++++++++++++++++ 3 files changed, 761 insertions(+), 1 deletion(-) create mode 100644 src/third-party/media/2.65.0/manifest.json create mode 100644 src/third-party/media/2.65.0/shaka-player.compiled.js diff --git a/src/lib/constants.js b/src/lib/constants.js index ee36f8980d..67d9975858 100644 --- a/src/lib/constants.js +++ b/src/lib/constants.js @@ -113,7 +113,7 @@ export const PDFJS_WIDTH_PADDING_PX = 40; // Should match SCROLLBAR_PADDING in p export const PDFJS_HEIGHT_PADDING_PX = 5; // Should match VERTICAL_PADDING in pdf_viewer.js export const DOC_STATIC_ASSETS_VERSION = '2.16.0'; // v2.53.0 has font rendering issues in large documents in MS Edge -export const MEDIA_STATIC_ASSETS_VERSION = '2.14.0'; +export const MEDIA_STATIC_ASSETS_VERSION = '2.65.0'; export const MODEL3D_STATIC_ASSETS_VERSION = '1.12.0'; export const SWF_STATIC_ASSETS_VERSION = '0.112.0'; export const TEXT_STATIC_ASSETS_VERSION = '2.65.0'; diff --git a/src/third-party/media/2.65.0/manifest.json b/src/third-party/media/2.65.0/manifest.json new file mode 100644 index 0000000000..b7581296ef --- /dev/null +++ b/src/third-party/media/2.65.0/manifest.json @@ -0,0 +1,8 @@ +{ + "name": "media", + "description": "Third-party static assets used for the Preview media viewers", + "version": "2.65.0", + "dependencies": { + "shaka-player": "3.0.8" + } +} diff --git a/src/third-party/media/2.65.0/shaka-player.compiled.js b/src/third-party/media/2.65.0/shaka-player.compiled.js new file mode 100644 index 0000000000..a31fdd499a --- /dev/null +++ b/src/third-party/media/2.65.0/shaka-player.compiled.js @@ -0,0 +1,752 @@ +/* + @license + Shaka Player + Copyright 2016 Google LLC + SPDX-License-Identifier: Apache-2.0 +*/ +(function(){var innerGlobal=typeof window!="undefined"?window:global;var exportTo={};(function(window,global,module){/* + + Copyright The Closure Library Authors. + SPDX-License-Identifier: Apache-2.0 +*/ +var p;function ba(a){var b=0;return function(){return bf&&(f=Math.max(f+e,0));f=f}});var Oa=this||self;function K(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};/* + @license + Shaka Player + Copyright 2016 Google LLC + SPDX-License-Identifier: Apache-2.0 +*/ +function Pa(a){this.c=Math.exp(Math.log(.5)/a);this.b=this.a=0}function Qa(a,b,c){var d=Math.pow(a.c,b);c=c*(1-d)+d*a.a;isNaN(c)||(a.a=c,a.b+=b)}function Ra(a){return a.a/(1-Math.pow(a.c,a.b))};function Ua(){this.b=new Pa(2);this.c=new Pa(5);this.a=0}Ua.prototype.getBandwidthEstimate=function(a){return 128E3>this.a?a:Math.min(Ra(this.b),Ra(this.c))};function Va(){}function Wa(){}function Xa(){}function Ya(a,b){for(var c=[],d=1;db)throw Error("Bad port number "+b);a.qb=b}else a.qb=null}function ub(a,b,c){b instanceof wb?a.a=b:(c||(b=xb(b,Cb)),a.a=new wb(b))} +function vb(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function xb(a,b,c){return null!=a?(a=encodeURI(a).replace(b,Db),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Db(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var yb=/[#\/\?@]/g,Ab=/[#\?:]/g,zb=/[#\?]/g,Cb=/[#\?@]/g,Bb=/#/g;function wb(a){this.a=a||null}p=wb.prototype;p.ha=null;p.fc=null; +p.add=function(a,b){if(!this.ha&&(this.ha={},this.fc=0,this.a))for(var c=this.a.split("&"),d=0;d=c[d]}if(!a)return"";var c=L(a);if(239==c[0]&&187==c[1]&&191==c[2])return Ub(c);if(254==c[0]&&255==c[1])return Wb(c.subarray(2),!1);if(255==c[0]&&254==c[1])return Wb(c.subarray(2),!0);if(0==c[0]&&0==c[2])return Wb(a,!1);if(0==c[1]&&0==c[3])return Wb(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return Ub(a);throw new M(2,2,2003);} +function Yb(a){a=encodeURIComponent(a);var b=unescape(a);a=new Uint8Array(b.length);b=q(jb(b));for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.Z]=c.item.charCodeAt(0);return nb(a)}function Zb(a,b){for(var c=new ArrayBuffer(2*a.length),d=new DataView(c),e=q(jb(a)),f=e.next();!f.done;f=e.next())f=f.value,d.setUint16(2*f.Z,f.item.charCodeAt(0),b);return c}function Vb(a){return $b.value()(a)}K("shaka.util.StringUtils",Tb);Tb.resetFromCharCode=function(){$b.a=void 0};Tb.toUTF16=Zb;Tb.toUTF8=Yb; +Tb.fromBytesAutoDetect=Xb;Tb.fromUTF16=Wb;Tb.fromUTF8=Ub;var $b=new Sb(function(){function a(c){try{var d=new Uint8Array(c);return 0>4).toString(16);e+=(g&15).toString(16);c=c.replace(d[0],e)}return c}function kc(a,b){a.f=!0;a.b=new Rb;a.h=[];a.c=[];a.g=[];var c=L(b);a.a.push(c);a.a.flush();a.f&&a.b.reject(new M(2,3,3018));return a.b};function lc(a){this.b=a;this.a=null}lc.prototype.R=function(a){var b=this;this.stop();var c=!0,d=null;this.a=function(){window.clearTimeout(d);c=!1};d=window.setTimeout(function(){c&&b.b()},1E3*a);return this};lc.prototype.stop=function(){this.a&&(this.a(),this.a=null)};function N(a){this.b=a;this.a=null}N.prototype.Qb=function(){this.stop();this.b();return this};N.prototype.R=function(a){var b=this;this.stop();this.a=(new lc(function(){b.b()})).R(a);return this};N.prototype.ra=function(a){var b=this;this.stop();this.a=(new lc(function(){b.a.R(a);b.b()})).R(a);return this};N.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};K("shaka.util.Timer",N);N.prototype.stop=N.prototype.stop;N.prototype.tickEvery=N.prototype.ra;N.prototype.tickAfter=N.prototype.R; +N.prototype.tickNow=N.prototype.Qb;function mc(a,b){var c=nc();this.j=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.f=null==a.baseDelay?c.baseDelay:a.baseDelay;this.h=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.g=null==a.backoffFactor?c.backoffFactor:a.backoffFactor;this.a=0;this.b=this.f;if(this.c=void 0===b?!1:b)this.a=1} +function oc(a){var b,c;return J(function(d){if(1==d.a){if(a.a>=a.j)if(a.c)a.a=1,a.b=a.f;else throw new M(2,7,1010);b=a.a;a.a++;if(0==b)return d["return"]();c=a.b*(1+(2*Math.random()-1)*a.h);return t(d,new Promise(function(e){(new N(e)).R(c/1E3)}),2)}a.b*=a.g;w(d)})}function nc(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0}};function pc(a,b){this.promise=a;this.c=b;this.a=!1}function qc(a){return new pc(Promise.reject(a),function(){return Promise.resolve()})}function rc(){var a=Promise.reject(new M(2,7,7001));a["catch"](function(){});return new pc(a,function(){return Promise.resolve()})}function sc(a){return new pc(Promise.resolve(a),function(){return Promise.resolve()})}function tc(a){return new pc(a,function(){return a["catch"](function(){})})}pc.prototype.abort=function(){this.a=!0;return this.c()}; +function uc(a){return new pc(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}pc.prototype["finally"]=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this}; +pc.prototype.U=function(a,b){function c(h){return function(k){if(e.a&&h)f.reject(g);else{var l=h?a:b;l?d=vc(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new Rb,g=new M(2,7,7001);this.promise.then(c(!0),c(!1));return new pc(f,function(){return d()})}; +function vc(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}K("shaka.util.AbortableOperation",pc);pc.prototype.chain=pc.prototype.U;pc.prototype["finally"]=pc.prototype["finally"];pc.all=uc;pc.prototype.abort=pc.prototype.abort;pc.notAbortable=tc;pc.completed=sc;pc.aborted=rc;pc.failed=qc;function Q(a,b){b=void 0===b?{}:b;for(var c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.a=!1}Q.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};Q.prototype.stopImmediatePropagation=function(){this.a=!0}; +Q.prototype.stopPropagation=function(){};K("shaka.util.FakeEvent",Q);function wc(){this.a={}}wc.prototype.push=function(a,b){this.a.hasOwnProperty(a)?this.a[a].push(b):this.a[a]=[b]};wc.prototype.get=function(a){return(a=this.a[a])?a.slice():null};wc.prototype.remove=function(a,b){a in this.a&&(this.a[a]=this.a[a].filter(function(c){return c!=b}))};function xc(a,b){for(var c in a.a)b(c,a.a[c])};function yc(){this.Lc=new wc;this.Zb=this}yc.prototype.addEventListener=function(a,b){this.Lc.push(a,b)};yc.prototype.removeEventListener=function(a,b){this.Lc.remove(a,b)};yc.prototype.dispatchEvent=function(a){var b=this.Lc.get(a.type)||[];b=q(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.Zb;a.currentTarget=this.Zb;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.a)break}return a.defaultPrevented};function zc(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 Ac(a){var b={},c;for(c in a)b[c]=a[c];return b};function Bc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function Cc(a,b){var c=a.indexOf(b);-1=d.priority)Kc[a]={priority:c,Ne:b}}p=Hc.prototype;p.Pe=function(a){this.a.add(a)};p.hf=function(a){this.a["delete"](a)};p.ge=function(){this.a.clear()};p.Qe=function(a){this.b.add(a)};p.jf=function(a){this.b["delete"](a)};p.he=function(){this.b.clear()}; +function Lc(a,b){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null}}p.destroy=function(){this.f=!0;this.a.clear();this.b.clear();return this.g.destroy()}; +p.request=function(a,b){var c=this,d=new Mc;if(this.f){var e=Promise.reject(new M(2,7,7001));e["catch"](function(){});return new Nc(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?zc(b.retryParameters):nc();b.uris=zc(b.uris);e=Oc(this,a,b);var f=e.U(function(){return Pc(c,a,b,new mc(b.retryParameters,!1),0,null,d)}),g=f.U(function(n){return Qc(c,a,n)}),h=Date.now(),k=0;e.promise.then(function(){k=Date.now()-h},function(){}); +var l=0;f.promise.then(function(){l=Date.now()},function(){});var m=g.U(function(n){var r=Date.now()-l,u=n.response;u.timeMs+=k;u.timeMs+=r;n.Fe||!c.c||u.fromCache||a!=Rc||c.c(u.timeMs,u.data.byteLength);return u},function(n){n&&(n.severity=2);throw n;});e=new Nc(m.promise,function(){return m.abort()},d);Gc(this.g,e);return e}; +function Oc(a,b,c){var d=sc(void 0),e={};a=q(a.a);for(var f=a.next();!f.done;e={Dc:e.Dc},f=a.next())e.Dc=f.value,d=d.U(function(g){return function(){c.body&&(c.body=nb(c.body));return g.Dc(b,c)}}(e));return d.U(void 0,function(g){if(g instanceof M&&7001==g.code)throw g;throw new M(2,1,1006,g);})} +function Pc(a,b,c,d,e,f,g){var h=new rb(c.uris[e]),k=h.va,l=!1;k||(k=location.protocol,k=k.slice(0,-1),sb(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=Kc[k])?k.Ne:null;if(!m)return qc(new M(2,1,1E3,h));var n;return tc(oc(d)).U(function(){if(a.f)return rc();n=Date.now();return m(c.uris[e],c,b,function(r,u,v){a.c&&b==Rc&&(a.c(r,u),l=!0,g.a=v)})}).U(function(r){void 0==r.timeMs&&(r.timeMs=Date.now()-n);return{response:r,Fe:l}},function(r){if(a.f)return rc();if(r instanceof M){if(7001==r.code)throw r; +if(1010==r.code)throw f;if(1==r.severity){var u=new Q("retry",{error:r});a.dispatchEvent(u);e=(e+1)%c.uris.length;return Pc(a,b,c,d,e,r,g)}}throw r;})} +function Qc(a,b,c){var d=sc(void 0),e={};a=q(a.b);for(var f=a.next();!f.done;e={Ec:e.Ec},f=a.next())e.Ec=f.value,d=d.U(function(g){return function(){var h=c.response;h.data&&(h.data=nb(h.data));return g.Ec(b,h)}}(e));return d.U(function(){return c},function(g){var h=2;if(g instanceof M){if(7001==g.code)throw g;h=g.severity}throw new M(h,1,1007,g);})}K("shaka.net.NetworkingEngine",Hc);Hc.prototype.request=Hc.prototype.request;Hc.prototype.destroy=Hc.prototype.destroy;Hc.makeRequest=Lc; +Hc.defaultRetryParameters=function(){return nc()};Hc.prototype.clearAllResponseFilters=Hc.prototype.he;Hc.prototype.unregisterResponseFilter=Hc.prototype.jf;Hc.prototype.registerResponseFilter=Hc.prototype.Qe;Hc.prototype.clearAllRequestFilters=Hc.prototype.ge;Hc.prototype.unregisterRequestFilter=Hc.prototype.hf;Hc.prototype.registerRequestFilter=Hc.prototype.Pe;Hc.unregisterScheme=function(a){delete Kc[a]};Hc.registerScheme=Ic;function Mc(){this.a=0}Hc.NumBytesRemainingClass=Mc; +function Nc(a,b,c){pc.call(this,a,b);this.b=c}pa(Nc,pc);Hc.PendingRequest=Nc;var Rc=1;Hc.RequestType={MANIFEST:0,SEGMENT:Rc,LICENSE:2,APP:3,TIMING:4};var Jc=3;Hc.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:Jc};var Kc={};function Sc(a){this.a=!1;this.b=new Rb;this.c=a}Sc.prototype.destroy=function(){var a=this;if(this.a)return this.b;this.a=!0;return this.c().then(function(){a.b.resolve()},function(){a.b.resolve()})};function Tc(a,b){if(a.a){if(b instanceof M&&7003==b.code)throw b;throw new M(2,7,7003,b);}};function Uc(){this.a=new wc}p=Uc.prototype;p.release=function(){this.Xa();this.a=null};p.l=function(a,b,c,d){this.a&&(a=new Vc(a,b,c,d),this.a.push(b,a))};p.ia=function(a,b,c,d){function e(g){f.sa(a,b,e);c(g)}var f=this;this.l(a,b,e,d)};p.sa=function(a,b,c){if(this.a){var d=this.a.get(b)||[];d=q(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.sa(),this.a.remove(b,e))}}; +p.Xa=function(){if(this.a){var a=this.a,b=[],c;for(c in a.a)b.push.apply(b,ia(a.a[c]));a=q(b);for(b=a.next();!b.done;b=a.next())b.value.sa();this.a.a={}}};K("shaka.util.EventManager",Uc);Uc.prototype.removeAll=Uc.prototype.Xa;Uc.prototype.unlisten=Uc.prototype.sa;Uc.prototype.listenOnce=Uc.prototype.ia;Uc.prototype.listen=Uc.prototype.l;Uc.prototype.release=Uc.prototype.release;function Vc(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.a=Wc(a,d);this.target.addEventListener(b,c,this.a)} +Vc.prototype.sa=function(){this.target.removeEventListener(this.type,this.listener,this.a);this.listener=this.target=null;this.a=!1};function Wc(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 Xc(a)?b:b.capture||!1} +function Xc(a){var b=Yc;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}Yc=b}return b||!1}var Yc=void 0;function Zc(){}function $c(a){a=Xb(a);return(new rb(a)).ua}function ad(a,b,c){function d(h){pb(f).setUint32(g,h.byteLength,!0);g+=4;f.set(L(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new M(2,6,6015);var e;"string"==typeof b?e=Zb(b,!0):e=b;a=Xb(a);a=Zb(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}K("shaka.util.FairPlayUtils",Zc);Zc.initDataTransform=ad;Zc.defaultGetContentId=$c;function bd(a){for(var b=new Map,c=q(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function cd(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function dd(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=q(a),d=c.next();!d.done;d=c.next()){var e=q(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 ed(a,b){var c=a;b&&(c+='; codecs="'+b+'"');return c}function fd(a){var b=[a.mimeType];gd.forEach(function(c,d){var e=a[d];e&&b.push(c+'="'+e+'"')});return b.join(";")}function hd(a){a=a.split(".");var b=a[0];a.pop();return b}var gd=(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");function id(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function jd(a){return""!=kd().canPlayType(a)}function ld(){return md("Tizen")}function nd(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!ld()}function od(){if(!nd())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 md(a){return(navigator.userAgent||"").includes(a)} +function kd(){if(pd)return pd;qd||(qd=new N(function(){pd=null}));(pd=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(pd=document.createElement("video"));qd.R(1);return pd}var qd=null,pd=null;function rd(a,b){var c=this;b=void 0===b?1:b;this.s=a;this.m=new Set;this.a=this.h=null;this.M=!1;this.G=0;this.c=null;this.b=new Uc;this.f=new Map;this.v=[];this.j=new Rb;this.i=null;this.g=function(d){c.j.reject(d);a.onError(d)};this.da=new Map;this.T=new Map;this.J=new N(function(){return sd(c)});this.A=!1;this.D=[];this.I=!1;this.X=(new N(function(){td(c)})).ra(b);this.j["catch"](function(){});this.F=new Sc(function(){return ud(c)})}rd.prototype.destroy=function(){return this.F.destroy()}; +function ud(a){return J(function(b){switch(b.a){case 1:return a.b.release(),a.b=null,a.j.reject(),a.X.stop(),a.X=null,a.J.stop(),a.J=null,t(b,vd(a),2);case 2:if(!a.a){b.u(3);break}x(b,4);return t(b,a.a.setMediaKeys(null),6);case 6:ua(b,5);break;case 4:C(b);case 5:a.a=null;case 3:a.c=null,a.m.clear(),a.h=null,a.v=[],a.i=null,a.g=function(){},a.s=null,w(b)}})}rd.prototype.configure=function(a){this.i=a};function wd(a,b,c){a.v=[];a.A=c;return xd(a,b)} +function yd(a,b,c){a.v=c;a.A=0g&&(g+=Math.pow(2,32));g="0x"+g.toString(16)}a.g(new M(2,6,6006,e.message,e,g))}})}function Td(a,b,c){"skd"==b&&(b=c.serverCertificate,c=$c(a),a=ad(a,c,b));return a} +function Fd(a,b){var c,d,e,f,g,h,k,l,m,n,r,u,v,A;J(function(y){switch(y.a){case 1:return c=b.target,a.i.logLicenseExchange&&cc(b.message),d=a.f.get(c),e=a.c.licenseServerUri,f=a.i.advanced[a.c.keySystem],"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer),g=Lc([e],a.i.retryParameters),g.body=b.message,g.method="POST",g.licenseRequestType=b.messageType,g.sessionId=c.sessionId,"com.microsoft.playready"!=a.c.keySystem&&"com.chromecast.playready"!=a.c.keySystem|| +Ud(g),h=Date.now(),x(y,2),l=a.s.nb.request(2,g),t(y,l.promise,4);case 4:k=y.b;ua(y,3);break;case 2:return m=C(y),n=new M(2,6,6007,m),a.g(n),d&&d.Aa&&d.Aa.reject(n),y["return"]();case 3:if(a.F.a)return y["return"]();a.G+=(Date.now()-h)/1E3;a.i.logLicenseExchange&&cc(k.data);x(y,5);return t(y,c.update(k.data),7);case 7:ua(y,6);break;case 5:return r=C(y),u=new M(2,6,6008,r.message),a.g(u),d&&d.Aa&&d.Aa.reject(u),y["return"]();case 6:v=new Q("drmsessionupdate"),a.s.onEvent(v),d&&(d.Aa&&d.Aa.resolve(), +A=new N(function(){d.loaded=!0;Sd(a)&&a.j.resolve()}),A.R(Vd)),w(y)}})} +function Ud(a){var b=Wb(a.body,!0,!0);if(b.includes("PlayReadyKeyMessage")){b=(new DOMParser).parseFromString(b,"application/xml");for(var c=q(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=dc(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"} +function Rd(a,b){var c=b.target,d=a.f.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if("string"==typeof h){var k=h;h=g;g=k}if("com.microsoft.playready"==a.c.keySystem&&16==h.byteLength&&(md("Trident/")||navigator.userAgent.match(/Edge?\//))){k=pb(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)}"com.microsoft.playready"==a.c.keySystem&&"status-pending"==g&&(g="usable");"status-pending"!=g&&(d.loaded=!0);"expired"==g&& +(e=!0);k=fc(h);a.da.set(k,g)});var f=c.expiration-Date.now();(0>f||e&&1E3>f)&&d&&!d.Aa&&(a.f["delete"](c),c.close()["catch"](function(){}));Sd(a)&&(a.j.resolve(),a.J.R(Wd))}function sd(a){var b=a.da,c=a.T;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.g(new M(2,6,6014));a.s.nc(cd(c))} +function Xd(){var a,b,c,d,e,f,g,h;return J(function(k){return 1==k.a?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready 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,c],f=new Map,g=function(l){var m,n,r; +return J(function(u){switch(u.a){case 1:return x(u,2),t(u,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=u.b,r=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,md("Tizen 3")&&(r=!1),f.set(l,{persistentState:r}),t(u,m.createMediaKeys(),5);case 5:ua(u,0);break;case 2:C(u),f.set(l,null),w(u)}})},h=a.map(function(l){return g(l)}),t(k,Promise.all(h),2)):k["return"](cd(f))})} +function Yd(a){var b;return J(function(c){if(1==c.a)return b=new Promise(function(d,e){(new N(e)).R(Zd)}),x(c,2),t(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.a)return ua(c,0);C(c);w(c)})}function vd(a){var b;return J(function(c){b=Array.from(a.f.keys());a.f.clear();return t(c,Promise.all(b.map(function(d){return J(function(e){if(1==e.a)return x(e,2),t(e,Yd(d),4);if(2!=e.a)return ua(e,0);C(e);w(e)})})),0)})} +function $d(a,b){var c=b.audio,d=b.video;if(c&&c.encrypted){var e=Pd(c);if(!Nd(a,e))return!1}if(d&&d.encrypted&&(e=Pd(d),!Nd(a,e)))return!1;var f=Md(a.c);c=(d?d.drmInfos:[]).concat(c?c.drmInfos:[]);return 0==c.length||c.some(function(g){return g.keySystem==f})} +function ae(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=q(a),e=d.next();!e.done;e=d.next()){e=e.value;for(var f=q(b),g=f.next();!g.done;g=f.next())if(g=g.value,e.keySystem==g.keySystem){f=[];f=f.concat(e.initData||[]);f=f.concat(g.initData||[]);var h=e.keyIds&&g.keyIds?new Set(ia(e.keyIds).concat(ia(g.keyIds))):e.keyIds||g.keyIds;c.push({keySystem:e.keySystem,licenseServerUri:e.licenseServerUri||g.licenseServerUri,distinctiveIdentifierRequired:e.distinctiveIdentifierRequired|| +g.distinctiveIdentifierRequired,persistentStateRequired:e.persistentStateRequired||g.persistentStateRequired,videoRobustness:e.videoRobustness||g.videoRobustness,audioRobustness:e.audioRobustness||g.audioRobustness,serverCertificate:e.serverCertificate||g.serverCertificate,initData:f,keyIds:h});break}}return c}function td(a){a.f.forEach(function(b,c){var d=b.$c,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.s.onExpirationUpdated(c.sessionId,e),b.$c=e)})} +function Sd(a){a=a.f.values();return fb(a,function(b){return b.loaded})}function Cd(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:new Set})});for(var d=q(a),e=d.next();!e.done;e=d.next())e=e.value,e.video&&(e.video.drmInfos=c),e.audio&&(e.audio.drmInfos=c)} +function Qd(a,b){var c=[],d=[],e=[],f=new Set;be(b.drmInfos,c,d,e,f);return{keySystem:a,licenseServerUri:c[0],distinctiveIdentifierRequired:"required"==b.distinctiveIdentifier,persistentStateRequired:"required"==b.persistentState,audioRobustness:(b.audioCapabilities?b.audioCapabilities[0].robustness:"")||"",videoRobustness:(b.videoCapabilities?b.videoCapabilities[0].robustness:"")||"",serverCertificate:d[0],initData:e,keyIds:f}} +function be(a,b,c,d,e){var f={};a=q(a);for(var g=a.next();!g.done;f={na:f.na},g=a.next()){f.na=g.value;b.includes(f.na.licenseServerUri)||b.push(f.na.licenseServerUri);f.na.serverCertificate&&(c.some(function(l){return function(m){return lb(m,l.na.serverCertificate)}}(f))||c.push(f.na.serverCertificate));if(f.na.initData){g={};for(var h=q(f.na.initData),k=h.next();!k.done;g={Tb:g.Tb},k=h.next())g.Tb=k.value,d.some(function(l){return function(m){var n=l.Tb;return m.keyId&&m.keyId==n.keyId?!0:m.initDataType== +n.initDataType&&lb(m.initData,n.initData)}}(g))||d.push(g.Tb)}if(f.na.keyIds)for(g=q(f.na.keyIds),h=g.next();!h.done;h=g.next())e.add(h.value)}} +function Dd(a,b,c){if(a.keySystem&&("org.w3.clearkey"!=a.keySystem||!a.licenseServerUri)){b.size&&(b=b.get(a.keySystem)||"",a.licenseServerUri=b);a.keyIds||(a.keyIds=new Set);if(c=c.get(a.keySystem))a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness),a.audioRobustness||(a.audioRobustness=c.audioRobustness),a.serverCertificate|| +(a.serverCertificate=c.serverCertificate);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==a.keySystem&&(a.keySystem="com.chromecast.playready")}}var Zd=1,Vd=5,Wd=.5,ce=new Sb(function(){return nb(new Uint8Array([0]))});function R(a,b){this.P=pb(a);this.a=b==de;this.C=0}p=R.prototype;p.wa=function(){return this.Cthis.P.byteLength)throw ee();var b=L(this.P,this.C,a);this.C+=a;return b}; +p.skip=function(a){if(this.C+a>this.P.byteLength)throw ee();this.C+=a};p.Qd=function(a){if(this.Ca||a>this.P.byteLength)throw ee();this.C=a};p.dd=function(){for(var a=this.C;this.wa()&&0!=this.P.getUint8(this.C);)this.C+=1;a=L(this.P,a,this.C-a);this.C+=1;return Ub(a)};function ee(){return new M(2,3,3E3)}K("shaka.util.DataViewReader",R);R.prototype.readTerminatedString=R.prototype.dd;R.prototype.seek=R.prototype.seek;R.prototype.rewind=R.prototype.Qd; +R.prototype.skip=R.prototype.skip;R.prototype.readBytes=R.prototype.Wa;R.prototype.readUint64=R.prototype.rb;R.prototype.readInt32=R.prototype.Od;R.prototype.readUint32=R.prototype.K;R.prototype.readUint16=R.prototype.Mb;R.prototype.readUint8=R.prototype.qa;R.prototype.getLength=R.prototype.oe;R.prototype.getPosition=R.prototype.ye;R.prototype.hasMoreData=R.prototype.wa;var de=1;R.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:de};function fe(){this.c=[];this.b=[];this.a=!1}p=fe.prototype;p.box=function(a,b){var c=ge(a);this.c[c]=he;this.b[c]=b;return this};p.V=function(a,b){var c=ge(a);this.c[c]=ie;this.b[c]=b;return this};p.stop=function(){this.a=!0};p.parse=function(a,b){var c=new R(a,0);for(this.a=!1;c.wa()&&!this.a;)this.pc(0,c,b)}; +p.pc=function(a,b,c){var d=b.C,e=b.K(),f=b.K(),g=!1;switch(e){case 0:e=b.P.byteLength-d;break;case 1:e=b.rb(),g=!0}var h=this.b[f];if(h){var k=null,l=null;this.c[f]==ie&&(l=b.K(),k=l>>>24,l&=16777215);f=d+e;c&&f>b.P.byteLength&&(f=b.P.byteLength);f-=b.C;b=0>24&255,a>>16&255,a>>8&255,a&255)}function ke(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}K("shaka.util.Mp4Parser",fe);fe.headerSize=ke;fe.typeToString=ne;fe.allData=me;fe.sampleDescription=le;fe.children=je;fe.prototype.parseNext=fe.prototype.pc;fe.prototype.parse=fe.prototype.parse;fe.prototype.stop=fe.prototype.stop;fe.prototype.fullBox=fe.prototype.V;fe.prototype.box=fe.prototype.box;var he=0,ie=1;function oe(a){function b(){d=!0}function c(l){f.push(l);je(l)}a=L(a);var d=!1,e,f=[],g=[];(new fe).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).V("stsd",function(l){e=l;f.push(l);le(l)}).V("encv",b).V("enca",b).V("avc1",function(l){g.push({box:l,Kd:1701733238})}).V("mp4a",function(l){g.push({box:l,Kd:1701733217})}).parse(a);if(d)return a;if(0==g.length||!e)throw bb(fc(a)),new M(2,3,3019);g.reverse();for(var h=q(g),k=h.next();!k.done;k=h.next())k=k.value,a=pe(a,e,k.box,f, +k.Kd);return a} +function pe(a,b,c,d,e){var f=qe.value(),g=a.subarray(c.start,c.start+c.size),h=pb(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=pb(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);re(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=md("Xbox One")?c.start:c.start+c.size;f=a.subarray(c);e.set(a.subarray(0,c));e.set(k,c);e.set(f,c+k.byteLength);a=q(d);for(d=a.next();!d.done;d=a.next())d=d.value,re(e,d.start,d.size+k.byteLength);k=pb(e,b.start);b=ke(b); +a=k.getUint32(b);k.setUint32(b,a+1);return e}function re(a,b,c){a=pb(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 qe=new Sb(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 se(){this.a=new muxjs.mp4.CaptionParser;this.g=[];this.f={}}se.prototype.init=function(a){var b=muxjs.mp4.probe;a=L(a);this.g=b.videoTrackIds(a);this.f=b.timescale(a);this.a.init()};se.prototype.b=function(a,b){var c=L(a);(c=this.a.parse(c,this.g,this.f))&&c.captions&&b(c.captions);this.a.clearParsedCaptions()};se.prototype.c=function(){this.a.resetCaptionStream()};function te(){}te.prototype.init=function(){};te.prototype.b=function(){};te.prototype.c=function(){};function ue(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function ve(a,b,c){c=void 0===c?0:c;return!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0)||b>a.end(a.length-1)?!1:b+c>=a.start(0)}function we(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;for(var c=0,d=q(xe(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 ye(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;var c=navigator.userAgent.match(/Edge\//)||md("Trident/")||ld()||md("CrKey")?.5:.1,d=xe(a).findIndex(function(e,f,g){return e.start>b&&(0==f||g[f-1].end-b<=c)});return 0<=d?d:null}function xe(a){if(!a)return[];for(var b=[],c=q(hb(a.length)),d=c.next();!d.done;d=c.next())d=d.value,b.push({start:a.start(d),end:a.end(d)});return b};function ze(a,b,c){this.startTime=a;this.direction=Ae;this.endTime=b;this.payload=c;this.region=new Be;this.position=null;this.positionAlign=Ce;this.size=0;this.textAlign=Ee;this.writingMode=Fe;this.lineInterpretation=Ge;this.line=null;this.lineHeight="";this.lineAlign=He;this.displayAlign=Ie;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=Je;this.fontStyle=Ke;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.textDecoration= +[];this.wrapLine=!0;this.id="";this.nestedCues=[];this.spacer=!1;this.cellResolution={columns:32,rows:15}}ze.prototype.clone=function(){var a=new ze(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a}; +function Le(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(!Ec(a.nestedCues,b.nestedCues,Le))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(!Ec(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}K("shaka.text.Cue",ze);var Ce="auto"; +ze.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:Ce};var Ee="center",Me={LEFT:"left",RIGHT:"right",CENTER:Ee,START:"start",END:"end"};ze.textAlign=Me;var Ie="after",Ne={BEFORE:"before",CENTER:"center",AFTER:Ie};ze.displayAlign=Ne;var Ae="ltr";ze.direction={HORIZONTAL_LEFT_TO_RIGHT:Ae,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Fe="horizontal-tb";ze.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Fe,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var Ge=0; +ze.lineInterpretation={LINE_NUMBER:Ge,PERCENTAGE:1};var He="start",Oe={CENTER:"center",START:He,END:"end"};ze.lineAlign=Oe;var Je=400;ze.fontWeight={NORMAL:Je,BOLD:700};var Ke="normal",Pe={NORMAL:Ke,ITALIC:"italic",OBLIQUE:"oblique"};ze.fontStyle=Pe;ze.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"}; +function Be(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Qe;this.scroll=Re}K("shaka.text.CueRegion",Be);var Qe=1;Be.units={PX:0,PERCENTAGE:Qe,LINES:2};var Re="";Be.scrollMode={NONE:Re,UP:"up"};function Se(a){this.m=null;this.c=a;this.f=this.v=0;this.g=Infinity;this.b=this.a=null;this.j="";this.h=new Map}function Te(a){return Ue[a]||window.muxjs&&"application/cea-608"==a?!0:!1}Se.prototype.destroy=function(){this.c=this.m=null;this.h.clear();return Promise.resolve()}; +function Ve(a,b,c,d){var e,f,g;return J(function(h){if(1==h.a)return t(h,Promise.resolve(),2);if(!a.m||!a.c)return h["return"]();if(null==c||null==d)return a.m.parseInit(L(b)),h["return"]();e={periodStart:a.v,segmentStart:c,segmentEnd:d};f=a.m.parseMedia(L(b),e);g=f.filter(function(k){return k.startTime>=a.f&&k.startTime=c.b||(a<=c.a&&b>=c.b?c.a=c.b=null:a<=c.a&&bc.a&&b>=c.b&&(c.b=a));w(d)})};function We(a,b,c){a.f=b;a.g=c}function Xe(a,b,c){a.j=b;if(b=a.h.get(b))for(var d=q(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.c.append(e)} +function Ye(a,b,c,d,e){var f=c+" "+d,g=new Map;b=q(b);for(var h=b.next();!h.done;h=b.next()){var k=h.value;h=k.stream;g.has(h)||g.set(h,new Map);g.get(h).has(f)||g.get(h).set(f,[]);k.startTime+=e;k.endTime+=e;k.startTime>=a.f&&k.startTimec.end(0)-c.start(0)?null:1==c.length&&0>c.start(0)?0:c.length?c.start(0):null;return c}function jf(a,b){return"text"==b?a.c.b:ue(hf(a,b))} +function kf(a,b,c){if("text"==b)return a=a.c,null==a.b||a.b=e?ef(a,b):a.f[b].remove(0,e)}),0)})}p.flush=function(a){var b=this,c;return J(function(d){c=Pb;return a==c.aa?d["return"]():t(d,nf(b,a,function(){b.a.currentTime-=.001;ef(b,a)}),0)})}; +function qf(a,b,c,d,e){var f;return J(function(g){f=Pb;return b==f.aa?(a.c.v=c,We(a.c,d,e),g["return"]()):t(g,Promise.all([nf(a,b,function(){var h=a.f[b].appendWindowStart,k=a.f[b].appendWindowEnd;a.f[b].abort();a.f[b].appendWindowStart=h;a.f[b].appendWindowEnd=k;ef(a,b)}),nf(a,b,function(){var h=c;0>h&&(h+=.001);a.f[b].timestampOffset=h;ef(a,b)}),nf(a,b,function(){a.f[b].appendWindowStart=0;a.f[b].appendWindowEnd=e;a.f[b].appendWindowStart=d;ef(a,b)})]),0)})} +p.endOfStream=function(a){var b=this;return J(function(c){return t(c,rf(b,function(){ff(b)||(a?b.j.endOfStream(a):b.j.endOfStream())}),0)})};p.za=function(a){var b=this;return J(function(c){return t(c,rf(b,function(){b.j.duration=a}),0)})};p.getDuration=function(){return this.j.duration};function ef(a,b){var c=a.g[b][0];c&&(c.p.resolve(),sf(a,b))}function nf(a,b,c){Tc(a.F);c={start:c,p:new Rb};a.g[b].push(c);1==a.g[b].length&&tf(a,b);return c.p} +function rf(a,b){var c,d,e,f,g,h;return J(function(k){switch(k.a){case 1:Tc(a.F);c=[];d={};for(e in a.f)d.vb=new Rb,f={start:function(l){return function(){return l.vb.resolve()}}(d),p:d.vb},a.g[e].push(f),c.push(d.vb),1==a.g[e].length&&f.start(),d={vb:d.vb};x(k,2);return t(k,Promise.all(c),4);case 4:ua(k,3);break;case 2:throw g=C(k),g;case 3:try{b()}catch(l){throw new M(2,3,3015,l);}finally{for(h in a.f)sf(a,h)}w(k)}})}function sf(a,b){a.g[b].shift();tf(a,b)} +function tf(a,b){var c=a.g[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new M(2,3,3017,b)):c.p.reject(new M(2,3,3015,d)),sf(a,b)}}function mf(a,b,c,d){var e=a.a.mediaKeys;null==c&&e&&(ld()||md("Xbox One"))&&"mp4"==a.G[d].split(";")[0].split("/")[1]&&(b=oe(b));return b}var bf=window.URL.createObjectURL;function uf(a,b){a=S(a);b=S(b);return a.split("-")[0]==b.split("-")[0]}function vf(a,b){a=S(a);b=S(b);var c=a.split("-"),d=b.split("-");return c[0]==d[0]&&1==c.length&&2==d.length}function wf(a,b){a=S(a);b=S(b);var c=a.split("-"),d=b.split("-");return 2==c.length&&2==d.length&&c[0]==d[0]}function S(a){var b=a.split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=xf.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a}function yf(a,b){a=S(a);b=S(b);return b==a?4:vf(b,a)?3:wf(b,a)?2:vf(a,b)?1:0} +function zf(a){return a.language?S(a.language):a.audio&&a.audio.language?S(a.audio.language):a.video&&a.video.language?S(a.video.language):"und"} +function Af(a,b){for(var c=S(a),d=new Set,e=q(b),f=e.next();!f.done;f=e.next())d.add(S(f.value));e=q(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,f==c)return f;e=q(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,vf(f,c))return f;e=q(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,wf(f,c))return f;d=q(d);for(f=d.next();!f.done;f=d.next())if(f=f.value,vf(c,f))return f;return null} +var xf=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze", +"cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice", +"is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao", +"mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san", +"sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie", +"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function Bf(a,b){function c(l){var m="";l.video&&(m=hd(l.video.codecs));var n="";l.audio&&(n=hd(l.audio.codecs));return m+"-"+n}var d=Cf(a.variants,b),e=new wc;d=q(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=c(f);e.push(g,f)}var h=null,k=Infinity;xc(e,function(l,m){for(var n=0,r=0,u=q(m),v=u.next();!v.done;v=u.next())n+=v.value.bandwidth||0,++r;n/=r;n=g&&f<=h}var e=a.video;return e&&e.width&&e.height&&(!d(e.width,b.minWidth,Math.min(b.maxWidth,c.width))||!d(e.height,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))||a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0} +function Ef(a,b,c){c.variants=c.variants.filter(function(d){if(a&&a.M&&!$d(a,d))return!1;var e=d.audio;d=d.video;return e&&!cf(e)||d&&!cf(d)||e&&b&&b.audio&&!Ff(e,b.audio)||d&&b&&b.video&&!Ff(d,b.video)?!1:!0});c.textStreams=c.textStreams.filter(function(d){return Te(ed(d.mimeType,d.codecs))})}function Ff(a,b){return a.mimeType!=b.mimeType||a.codecs.split(".")[0]!=b.codecs.split(".")[0]?!1:!0} +function Gf(a){var b=a.audio,c=a.video,d=b?b.codecs:null,e=c?c.codecs:null,f=[];e&&f.push(e);d&&f.push(d);var g=[];c&&g.push(c.mimeType);b&&g.push(b.mimeType);g=g[0]||null;var h=[];b&&h.push(b.kind);c&&h.push(c.kind);h=h[0]||null;var k=new Set;if(b)for(var l=q(b.roles),m=l.next();!m.done;m=l.next())k.add(m.value);if(c)for(l=q(c.roles),m=l.next();!m.done;m=l.next())k.add(m.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null,kind:h,width:null,height:null, +frameRate:null,pixelAspectRatio:null,mimeType:g,codecs:f.join(", "),audioCodec:d,videoCodec:e,primary:a.primary,roles:Array.from(k),audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null};c&&(a.videoId=c.id,a.originalVideoId=c.originalId,a.width=c.width||null,a.height=c.height||null,a.frameRate=c.frameRate||null,a.pixelAspectRatio=c.pixelAspectRatio||null,a.videoBandwidth= +c.bandwidth||null);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} +function Hf(a){return{id:a.id,active:!1,type:"text",bandwidth:0,language:a.language,label:a.label,kind:a.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,mimeType:a.mimeType,codecs:a.codecs||null,audioCodec:null,videoCodec:null,primary:a.primary,roles:a.roles,audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:a.originalId}} +function If(a){a.__shaka_id||(a.__shaka_id=Jf++);return a.__shaka_id}function Kf(a){var b=Lf(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]);return b} +function Lf(a){return{id:If(a),active:!1,type:"",bandwidth:0,language:S(a.language),label:a.label,kind:a.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,mimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],audioRoles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null}} +function Mf(a){return a.allowedByApplication&&a.allowedByKeySystem}function Nf(a){return a.filter(function(b){return Mf(b)})} +function Cf(a,b){var c=a.filter(function(g){return g.audio&&g.audio.channelsCount}),d=new Map;c=q(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)))} +function Of(a,b,c){var d=a,e=a.filter(function(h){return h.primary});e.length&&(d=e);var f=d.length?d[0].language:"";d=d.filter(function(h){return h.language==f});if(b){var g=Af(S(b),a.map(function(h){return h.language}));g&&(d=a.filter(function(h){return S(h.language)==g}))}if(c){if(a=Pf(d,c),a.length)return a}else if(a=d.filter(function(h){return 0==h.roles.length}),a.length)return a;a=d.map(function(h){return h.roles}).reduce(Jb,[]);return a.length?Pf(d,a[0]):d} +function Pf(a,b){return a.filter(function(c){return c.roles.includes(b)})}var Jf=0;function Qf(){this.h=null;this.c=!1;this.a=new Ua;this.b=[];this.g=1;this.j=!1;this.i=this.f=null}p=Qf.prototype;p.stop=function(){this.h=null;this.c=!1;this.b=[];this.g=1;this.f=null};p.init=function(a){this.h=a}; +p.chooseVariant=function(){var a=Rf(this.i.restrictions,this.b),b=this.a.getBandwidthEstimate(this.i.defaultBandwidthEstimate);this.b.length&&!a.length&&(a=Rf(null,this.b),a=[a[0]]);var c=a[0]||null;a=q(jb(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.item;var f=isNaN(this.g)?1:Math.abs(this.g);e=f*(e.next||{bandwidth:Infinity}).bandwidth/this.i.bandwidthUpgradeTarget;b>=f*d.bandwidth/this.i.bandwidthDowngradeTarget&&b<=e&&(c=d)}this.f=Date.now();return c}; +p.enable=function(){this.c=!0};p.disable=function(){this.c=!1};p.segmentDownloaded=function(a,b){var c=this.a;if(!(16E3>b)){var d=8E3*b/a,e=a/1E3;c.a+=b;Qa(c.b,e,d);Qa(c.c,e,d)}if(null!=this.f&&this.c)a:{if(!this.j){if(!(128E3<=this.a.a))break a;this.j=!0}else if(Date.now()-this.f<1E3*this.i.switchInterval)break a;c=this.chooseVariant();this.a.getBandwidthEstimate(this.i.defaultBandwidthEstimate);c&&this.h(c)}};p.getBandwidthEstimate=function(){return this.a.getBandwidthEstimate(this.i.defaultBandwidthEstimate)}; +p.setVariants=function(a){this.b=a};p.playbackRateChanged=function(a){this.g=a};p.configure=function(a){this.i=a};function Rf(a,b){a&&(b=b.filter(function(c){return Df(c,a,{width:Infinity,height:Infinity})}));return b.sort(function(c,d){return c.bandwidth-d.bandwidth})}K("shaka.abr.SimpleAbrManager",Qf);Qf.prototype.configure=Qf.prototype.configure;Qf.prototype.playbackRateChanged=Qf.prototype.playbackRateChanged;Qf.prototype.setVariants=Qf.prototype.setVariants; +Qf.prototype.getBandwidthEstimate=Qf.prototype.getBandwidthEstimate;Qf.prototype.segmentDownloaded=Qf.prototype.segmentDownloaded;Qf.prototype.disable=Qf.prototype.disable;Qf.prototype.enable=Qf.prototype.enable;Qf.prototype.chooseVariant=Qf.prototype.chooseVariant;Qf.prototype.init=Qf.prototype.init;Qf.prototype.stop=Qf.prototype.stop;function Sf(a,b){this.a=a;this.b=new Set([a]);b=b||[];for(var c=q(b),d=c.next();!d.done;d=c.next())this.add(d.value)}Sf.prototype.add=function(a){return Tf(this.a,a)?(this.b.add(a),!0):!1};function Tf(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&&Uf(c,d)&&Vf(c.roles,d.roles))}!c&&(c=a.video&&b.video)&&(c=a.video,d=b.video,c=!(Uf(c,d)&&Vf(c.roles,d.roles)));return c?!1:!0} +Sf.prototype.values=function(){return this.b.values()};function Uf(a,b){if(a.mimeType!=b.mimeType)return!1;var c=a.codecs.split(",").map(function(g){return hd(g)}),d=b.codecs.split(",").map(function(g){return hd(g)});if(c.length!=d.length)return!1;c.sort();d.sort();for(var e=q(hb(c.length)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])return!1;return!0} +function Vf(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=q(c);for(var e=c.next();!e.done;e=c.next())if(!d.has(e.value))return!1;return!0};function Wf(a){this.a=a;this.b=new Xf(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"")}Wf.prototype.create=function(a){var b=this,c=a.filter(function(d){return Tf(b.a,d)});return c.length?new Sf(c[0],c):this.b.create(a)};function Xf(a,b,c,d){this.c=a;this.f=b;this.a=c;this.b=void 0===d?"":d} +Xf.prototype.create=function(a){var b=[];b=Yf(a,this.c);var c=a.filter(function(d){return d.primary});b=b.length?b:c.length?c:a;a=Zf(b,this.f);a.length&&(b=a);this.a&&(a=Cf(b,this.a),a.length&&(b=a));this.b&&(a=$f(b,this.b),a.length&&(b=a));a=new Sf(b[0]);b=q(b);for(c=b.next();!c.done;c=b.next())c=c.value,Tf(a.a,c)&&a.add(c);return a};function Yf(a,b){var c=S(b),d=Af(c,a.map(function(e){return zf(e)}));return d?a.filter(function(e){return d==zf(e)}):[]} +function Zf(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):0==c.audio.roles.length:!1})}function $f(a,b){return a.filter(function(c){return c.audio?c.audio.label.toLowerCase()==b.toLowerCase():!1})};function ag(){this.a=bg;this.b=(new Map).set(bg,2).set(cg,1)}function dg(a,b,c){a.b.set(bg,c).set(cg,b)}var cg=0,bg=1;function eg(){}function fg(a,b,c,d){var e,f,g,h;return J(function(k){if(1==k.a){if(d&&(e=gg[d.toLowerCase()]))return k["return"](e);if(f=hg(a))if(g=ig[f])return k["return"](g);return d?k.u(2):t(k,jg(a,b,c),3)}if(2!=k.a&&(d=k.b)&&(h=gg[d]))return k["return"](h);throw new M(2,4,4E3,a);})} +function jg(a,b,c){var d,e,f;return J(function(g){if(1==g.a)return d=Lc([a],c),d.method="HEAD",t(g,b.request(0,d).promise,2);e=g.b;f=e.headers["content-type"];return g["return"](f?f.toLowerCase().split(";").shift():"")})}function hg(a){a=(new rb(a)).ka.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()}K("shaka.media.ManifestParser",eg);eg.unregisterParserByMime=function(a){delete gg[a]};eg.registerParserByMime=function(a,b){gg[a]=b}; +eg.registerParserByExtension=function(a,b){ig[a]=b};var gg={},ig={};function kg(a,b,c){this.c=a;this.b=b;this.a=c}kg.prototype.Hb=function(){return this.b};kg.prototype.Db=function(){return this.a};function lg(a,b){return a&&b?a.Hb()==b.Hb()&&a.Db()==b.Db()&&Ec(a.c(),b.c()):a==b}K("shaka.media.InitSegmentReference",kg);kg.prototype.getEndByte=kg.prototype.Db;kg.prototype.getStartByte=kg.prototype.Hb; +function mg(a,b,c,d,e,f,g,h,k){this.startTime=a;this.endTime=b;this.c=c;this.b=d;this.a=e;this.f=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k}mg.prototype.Ae=function(){return this.startTime};mg.prototype.ne=function(){return this.endTime};mg.prototype.Hb=function(){return this.b};mg.prototype.Db=function(){return this.a};K("shaka.media.SegmentReference",mg);mg.prototype.getEndByte=mg.prototype.Db;mg.prototype.getStartByte=mg.prototype.Hb;mg.prototype.getEndTime=mg.prototype.ne; +mg.prototype.getStartTime=mg.prototype.Ae;function T(a,b,c){this.f=a;this.qc=b;this.h=this.g=Infinity;this.a=1;this.b=this.c=null;this.j=0;this.m=!0;this.v=0;this.A=void 0===c?!0:c}p=T.prototype;p.getDuration=function(){return this.g};p.se=function(){return this.a};p.za=function(a){this.g=a};p.ze=function(){return this.f};p.Td=function(a){this.j=a};p.Pb=function(a){this.m=a};p.od=function(a){this.h=a};p.bf=function(a){this.qc=a};p.me=function(){return this.qc}; +p.ob=function(a){if(0!=a.length){var b=a[a.length-1].endTime;this.Yc(a[0].startTime);this.a=a.reduce(function(c,d){return Math.max(c,d.endTime-d.startTime)},this.a);this.b=Math.max(this.b,b);null!=this.f&&this.A&&(this.f=(Date.now()+this.j)/1E3-this.b-this.a)}};p.Yc=function(a){this.c=null==this.c?a:Math.min(this.c,a)};p.Xc=function(a){this.a=Math.max(this.a,a)};p.offset=function(a){null!=this.c&&(this.c+=a);null!=this.b&&(this.b+=a)};p.S=function(){return Infinity==this.g&&!this.m}; +p.Ua=function(){return Infinity!=this.g&&!this.m};p.Ra=function(){return Math.max(this.v,this.Ga()-this.h)};p.Ud=function(a){this.v=a};p.Ga=function(){return this.S()||this.Ua()?Math.min(Math.max(0,(Date.now()+this.j)/1E3-this.a-this.f),this.g):this.g};p.Gb=function(a){var b=Math.max(this.c,this.v);return Infinity==this.h?b:Math.max(b,Math.min(this.Ga()-this.h+a,this.Fa()))};p.kb=function(){return this.Gb(0)};p.Fa=function(){return Math.max(0,this.Ga()-(this.S()||this.Ua()?this.qc:0))}; +p.Xd=function(){return null==this.f||null!=this.b&&this.A?!1:!0};K("shaka.media.PresentationTimeline",T);T.prototype.usingPresentationStartTime=T.prototype.Xd;T.prototype.getSeekRangeEnd=T.prototype.Fa;T.prototype.getSeekRangeStart=T.prototype.kb;T.prototype.getSafeSeekRangeStart=T.prototype.Gb;T.prototype.getSegmentAvailabilityEnd=T.prototype.Ga;T.prototype.setUserSeekStart=T.prototype.Ud;T.prototype.getSegmentAvailabilityStart=T.prototype.Ra;T.prototype.isInProgress=T.prototype.Ua; +T.prototype.isLive=T.prototype.S;T.prototype.offset=T.prototype.offset;T.prototype.notifyMaxSegmentDuration=T.prototype.Xc;T.prototype.notifyMinSegmentStartTime=T.prototype.Yc;T.prototype.notifySegments=T.prototype.ob;T.prototype.getDelay=T.prototype.me;T.prototype.setDelay=T.prototype.bf;T.prototype.setSegmentAvailabilityDuration=T.prototype.od;T.prototype.setStatic=T.prototype.Pb;T.prototype.setClockOffset=T.prototype.Td;T.prototype.getPresentationStartTime=T.prototype.ze; +T.prototype.setDuration=T.prototype.za;T.prototype.getMaxSegmentDuration=T.prototype.se;T.prototype.getDuration=T.prototype.getDuration;function ng(a,b){this.g=a;this.h=og(a);this.a=a.a.currentTime;this.f=Date.now()/1E3;this.b=!1;this.j=b;this.c=function(){}}ng.prototype.release=function(){this.g=null;this.c=function(){}};function pg(a,b){a.c=b}function qg(a){this.a=a}function og(a){if(a.a.paused||0==a.a.playbackRate||0==a.a.buffered.length)var b=!1;else a:{b=a.a.currentTime;a=q(xe(a.a.buffered));for(var c=a.next();!c.done;c=a.next())if(c=c.value,!(bc.end-.5)){b=!0;break a}b=!1}return b};function rg(a,b,c,d,e){var f=this;this.a=a;this.A=b;this.i=c;this.v=e;this.b=new Uc;this.j=!1;this.m=a.readyState;this.f=!1;this.c=d;this.h=!1;this.b.l(a,"waiting",function(){return sg(f)});this.g=(new N(function(){sg(f)})).ra(.25)}rg.prototype.release=function(){this.b&&(this.b.release(),this.b=null);null!=this.g&&(this.g.stop(),this.g=null);this.c&&(this.c.release(),this.c=null);this.a=this.A=this.v=null};rg.prototype.bd=function(){this.h=!0;sg(this)}; +function sg(a){if(0!=a.a.readyState){if(a.a.seeking){if(!a.j)return}else a.j=!1;if(!a.a.paused){a.a.readyState!=a.m&&(a.f=!1,a.m=a.a.readyState);var b;if(!(b=!a.c)){b=a.c;var c=b.g,d=og(c),e=c.a.currentTime,f=Date.now()/1E3;if(b.a!=e||b.h!=d)b.f=f,b.a=e,b.h=d,b.b=!1;e=f-b.f;if(d=e>=b.j&&d&&!b.b)b.c(b.a,e),b.b=!0,b.a=c.a.currentTime;b=!d}if(b){var g=a.i.smallGapLimit;e=a.a.currentTime;b=a.a.buffered;c=ye(b,e);if(!(null==c||0==c&&!a.h||(d=b.start(c),d>=a.A.Fa()))){f=d-e;g=f<=g;var h=!1;.001>f||(g|| +a.f||(a.f=!0,e=new Q("largegap",{currentTime:e,gapSize:f}),e.cancelable=!0,a.v(e),a.i.jumpLargeGaps&&!e.defaultPrevented&&(h=!0)),!g&&!h)||(0!=c&&b.end(c-1),a.a.currentTime=d)}}}}};function tg(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=ug.value().get(b),c.ia(a,b,d))}var ug=new Sb(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function vg(a,b,c){var d=this;this.a=a;this.g=b;this.f=c;this.h=!1;this.b=new Uc;this.c=new wg(a);tg(this.a,HTMLMediaElement.HAVE_METADATA,this.b,function(){xg(d,d.f)})}vg.prototype.release=function(){this.b&&(this.b.release(),this.b=null);null!=this.c&&(this.c.release(),this.c=null);this.g=function(){};this.a=null};function yg(a){return a.h?a.a.currentTime:a.f}function zg(a,b){0Math.abs(a.a.currentTime-b)?Bg(a):(a.b.ia(a.a,"seeking",function(){Bg(a)}),Ag(a.c,0==a.a.currentTime?b:a.a.currentTime))}function Bg(a){a.h=!0;a.b.l(a.a,"seeking",function(){return a.g()})}function wg(a){var b=this;this.b=a;this.h=10;this.g=this.f=this.c=0;this.a=new N(function(){0>=b.c?b.a.stop():b.b.currentTime!=b.f?b.a.stop():(b.b.currentTime=b.g,b.c--)})}wg.prototype.release=function(){this.a&&(this.a.stop(),this.a=null);this.b=null}; +function Ag(a,b){a.f=a.b.currentTime;a.g=b;a.c=a.h;a.b.currentTime=b;a.a.ra(.1)};function Cg(a){function b(){null==c.c?c.f=!0:(c.b.ia(c.a,"seeking",function(){c.f=!0}),c.a.currentTime=Math.max(0,c.a.currentTime+c.c))}var c=this;this.a=a;this.f=!1;this.c=null;this.b=new Uc;tg(this.a,HTMLMediaElement.HAVE_CURRENT_DATA,this.b,function(){b()})}Cg.prototype.release=function(){this.b&&(this.b.release(),this.b=null);this.a=null};Cg.prototype.m=function(a){this.c=this.f?this.c:a};Cg.prototype.g=function(){return(this.f?this.a.currentTime:this.c)||0};Cg.prototype.v=function(){}; +function Dg(a,b,c,d,e,f){var g=this;this.c=a;this.a=b.presentationTimeline;this.D=b.minBufferTime||0;this.i=c;this.A=e;this.j=null;this.f=new rg(a,b.presentationTimeline,c,Eg(a,c),f);this.b=new vg(a,function(){a:{var h=g.f;h.j=!0;h.h=!1;h.f=!1;var k=yg(g.b);h=Ig(g,k);if(.001l-k&&(k= +l-3);ha.a.getDuration()?a.a.kb():a.a.Fa():0>b&&(b=a.a.Fa()+b);return Lg(a,Kg(a,b))}Dg.prototype.v=function(){this.f.bd()};function Lg(a,b){var c=a.a.getDuration();return b>=c?c-a.i.durationBackoff:b}function Ig(a,b){var c=Math.max(a.D,a.i.rebufferingGoal),d=a.i.safeSeekOffset,e=a.a.kb(),f=a.a.Fa(),g=a.a.getDuration();3>f-e&&(e=f-3);var h=a.a.Gb(c),k=a.a.Gb(d);c=a.a.Gb(c+d);return b>=g?Lg(a,b):b>f?f:b=h||ve(a.c.buffered,b)?b:c} +function Kg(a,b){var c=a.a.kb();if(bc?c:b}function Eg(a,b){if(!b.stallEnabled)return null;var c=b.stallSkip,d=new ng(new qg(a),b.stallThreshold);pg(d,function(){c?a.currentTime+=c:(a.pause(),a.play())});return d};function V(a){this.a=a;this.b=null;this.c=0;this.f=!1}p=V.prototype;p.destroy=function(){Fb("shaka.media.SegmentIndex","Please use release() instead of destroy().");this.release();return Promise.resolve()};p.release=function(){this.f||(this.a=[],this.b&&this.b.stop(),this.b=null)};p.Ie=function(){this.f=!0};p.find=function(a){for(var b=this.a.length-1;0<=b;--b){var c=this.a[b];if(a>=c.startTime&&aa||a>=this.a.length?null:this.a[a]};p.offset=function(a){if(!this.f)for(var b=q(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.timestampOffset+=a};p.mb=function(a){!this.f&&a.length&&(this.a=this.a.filter(function(b){return b.startTimea});this.c+=b-this.a.length}}; +p.La=function(a,b){if(!this.f){for(;this.a.length;)if(this.a[this.a.length-1].startTime>=b)this.a.pop();else break;for(;this.a.length;)if(this.a[0].endTime<=a)this.a.shift(),this.c++;else break;if(0!=this.a.length){var c=this.a[this.a.length-1];this.a[this.a.length-1]=new mg(c.startTime,b,c.c,c.b,c.a,c.f,c.timestampOffset,c.appendWindowStart,c.appendWindowEnd)}}}; +p.sc=function(a,b){var c=this;this.f||(this.b&&this.b.stop(),this.b=new N(function(){var d=b();d?c.a.push.apply(c.a,ia(d)):(c.b.stop(),c.b=null)}),this.b.ra(a))};V.prototype[Symbol.iterator]=function(){return this.jb(0)};V.prototype.jb=function(a){return new Mg(this,this.find(a)||0)};function Ng(a,b,c){return new V([new mg(a,a+b,function(){return c},0,null,null,a,a,a+b)])}K("shaka.media.SegmentIndex",V);V.forSingleSegment=Ng;V.prototype.getIteratorForTime=V.prototype.jb;V.prototype.updateEvery=V.prototype.sc; +V.prototype.fit=V.prototype.La;V.prototype.evict=V.prototype.Pa;V.prototype.merge=V.prototype.mb;V.prototype.offset=V.prototype.offset;V.prototype.get=V.prototype.get;V.prototype.find=V.prototype.find;V.prototype.markImmutable=V.prototype.Ie;V.prototype.release=V.prototype.release;V.prototype.destroy=V.prototype.destroy;function Mg(a,b){this.b=a;this.a=b}Mg.prototype.seek=function(a){this.a=this.b.jb(a).a;return this.next().value};Mg.prototype.current=function(){return this.b.get(this.a-1)}; +Mg.prototype.next=function(){var a=this.b.get(this.a++);return{value:a,done:!a}};K("shaka.media.SegmentIterator",Mg);Mg.prototype.next=Mg.prototype.next;Mg.prototype.current=Mg.prototype.current;Mg.prototype.seek=Mg.prototype.seek;function Og(){V.call(this,[]);this.g=[]}pa(Og,V);p=Og.prototype;p.clone=function(){var a=new Og;a.g=this.g.slice();return a};p.release=function(){for(var a=q(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g=[]}; +p.find=function(a){for(var b=0,c=q(this.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.c+d.a.length}return null};p.get=function(a){for(var b=0,c=q(this.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.c+d.a.length}return null};p.offset=function(){};p.mb=function(){};p.Pa=function(){};p.La=function(){};p.sc=function(){};K("shaka.media.MetaSegmentIndex",Og);Og.prototype.updateEvery=Og.prototype.sc;Og.prototype.fit=Og.prototype.La; +Og.prototype.evict=Og.prototype.Pa;Og.prototype.merge=Og.prototype.mb;Og.prototype.offset=Og.prototype.offset;Og.prototype.get=Og.prototype.get;Og.prototype.find=Og.prototype.find;Og.prototype.release=Og.prototype.release;function Pg(a){var b=this;this.a=a;this.f=!1;this.b=this.a.jc();this.c=new N(function(){b.a.Jd(.25*b.b)})}Pg.prototype.release=function(){this.c&&(this.c.stop(),this.c=null);this.a=null};Pg.prototype.set=function(a){this.b=a;Qg(this)};function Qg(a){a.c.stop();var b=a.f?0:a.b;if(0<=b)try{a.a.jc()!=b&&a.a.nd(b);return}catch(c){}a.c.ra(.25);0!=a.a.jc()&&a.a.nd(0)};function Rg(a){var b=this;this.c=a;this.a=new Set;this.b=(new N(function(){Sg(b,!1)})).ra(.25)}Rg.prototype.release=function(){this.b.stop();for(var a=q(this.a),b=a.next();!b.done;b=a.next())b.value.release();this.a.clear()}; +function Sg(a,b){for(var c=q(a.a),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=a.c.currentTime,f=b,g=q(d.g.a),h=g.next();!h.done;h=g.next()){h=h.value;var k=d.f.get(h),l=eh.endTime?Ug:Vg;d.f.set(h,l);for(var m=q(d.h),n=m.next();!n.done;n=m.next())n=n.value,n.bb==k&&n.ab==l&&n.Ta(h,f)}}};function Wg(a){var b=this;this.b=function(){};this.a=new Set;this.f=a;this.c=(new N(function(){for(var c=b.f(),d=q(b.a),e=d.next();!e.done;e=d.next())e=e.value,e.endTimeh?!0:!1):f=!1;f&&b.ja.abort();w(e)})}function ph(a,b){b.Ab||b.$a||(b.Ma?(b.$a=!0,b.ec=0):null==gf(a.s.L,b.type)?null==b.Ja&&hh(a,b,0):(ch(b),nh(a,b,!1,0)["catch"](function(c){if(a.s)a.s.onError(c)})))} +function eh(a){var b,c,d,e,f,g,h,k,l,m;return J(function(n){if(1==n.a){b=Pb;if(!a.b)throw new M(2,5,5006);c=new Map;d=new Set;a.b.audio&&(c.set(b.fb,a.b.audio),d.add(a.b.audio));a.b.video&&(c.set(b.Da,a.b.video),d.add(a.b.video));a.c&&(c.set(b.aa,a.c),d.add(a.c));e=a.s.L;f=a.i.forceTransmuxTS;return t(n,e.init(c,f),2)}Tc(a.F);var r=a.o.presentationTimeline.getDuration();Infinity>r?a.s.L.za(r):a.s.L.za(Math.pow(2,32));g=q(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),a.a.has(k)|| +(m=gh(l),a.a.set(k,m),hh(a,m,0));w(n)})}function gh(a){return{stream:a,type:a.type,ma:null,pa:null,lc:null,Vc:null,Uc:null,Tc:null,Ya:null,endOfStream:!1,Ma:!1,Ja:null,$a:!1,ec:0,vc:!1,Ab:!1,fd:!1,Ib:!1,ja:null}} +ah.prototype.Kb=function(a){var b=this,c,d,e,f,g;return J(function(h){switch(h.a){case 1:Tc(b.F);if(a.Ma||null==a.Ja||a.Ab)return h["return"]();a.Ja=null;if(!a.$a){h.u(2);break}return t(h,nh(b,a,a.vc,a.ec),3);case 3:return h["return"]();case 2:if(a.stream.segmentIndex){h.u(4);break}c=a.stream;return t(h,a.stream.createSegmentIndex(),5);case 5:if(c!=a.stream)return null==a.Ja&&hh(b,a,0),h["return"]();case 4:x(h,6);d=qh(b,a);null!=d&&(hh(b,a,d),a.Ib=!1);ua(h,7);break;case 6:return e=C(h),t(h,rh(b,e), +8);case 8:return h["return"]();case 7:f=Array.from(b.a.values());if(!b.h||!f.every(function(k){return k.endOfStream})){h.u(0);break}return t(h,b.s.L.endOfStream(),10);case 10:Tc(b.F),g=b.s.L.getDuration(),0!=g&&g=a.o.presentationTimeline.getDuration())return b.endOfStream=!0,"video"==b.type&&(c=a.a.get("text"))&&sh(c)&&(c.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return.5;e=jf(a.s.L,b.type);e=th(a,b,c,e);if(!e||!uh(a,e))return 1;f=Infinity;var g=Array.from(a.a.values());g=q(g);for(var h=g.next();!h.done;h= +g.next())h=h.value,sh(h)||(f=Math.min(f,h.pa?h.pa.endTime:c));if(d>=f+a.o.presentationTimeline.a)return 1;vh(a,b,c,e)["catch"](function(){});return null}function th(a,b,c,d){if(b.ma)return b.ma.current();if(b.pa||d)return b.ma=b.stream.segmentIndex.jb(b.pa?b.pa.endTime:d),b.ma.next().value;b.ma=b.stream.segmentIndex.jb(Math.max(c-a.i.inaccurateManifestTolerance,0));d=b.ma.next().value;d&&uh(a,d)||(b.ma=b.stream.segmentIndex.jb(c),d=b.ma.next().value);return d} +function uh(a,b){var c=a.o.presentationTimeline,d=c.Ga();return b.endTimed?!1:!0} +function vh(a,b,c,d){var e,f,g,h,k,l,m,n,r;return J(function(u){switch(u.a){case 1:return e=Pb,f=b.stream,g=b.ma,b.Ma=!0,h=wh(a,b,d),k=xh(a,b,d),x(u,2),t(u,Promise.all([h,k]),4);case 4:return l=u.b,Tc(a.F),a.g?u["return"]():b.$a?(b.Ma=!1,hh(a,b,0),u["return"]()):t(u,yh(a,b,c,f,d,l[1]),5);case 5:Tc(a.F);if(a.g)return u["return"]();b.pa=d;g.next();b.Ma=!1;b.fd=!1;m=a.s.L.hc();n=m[b.type];JSON.stringify(n);b.$a||a.s.bd();hh(a,b,0);ua(u,0);break;case 2:r=C(u);Tc(a.F,r);if(a.g)return u["return"]();b.Ma= +!1;if(b.type==e.aa&&a.i.ignoreTextStreamFailures)a.a["delete"](e.aa),u.u(0);else if(7001==r.code)b.Ma=!1,b.Ja=null,hh(a,b,0),u.u(0);else if(3017==r.code)zh(a,b,r),u.u(0);else return b.Ib=!0,r.severity=2,t(u,rh(a,r),0)}})}function zh(a,b,c){if(!Array.from(a.a.values()).some(function(e){return e!=b&&e.fd})){var d=Math.round(100*a.f);if(20=g?h["return"]():t(h,a.s.L.remove(b.type,e,e+g),2)}Tc(a.F);w(h)})} +function sh(a){return a&&"text"==a.type&&"application/cea-608"==a.stream.mimeType}function xh(a,b,c){var d,e,f,g;return J(function(h){if(1==h.a)return d=Rc,e=$g(c.c(),c.b,c.a,a.i.retryParameters),f=a.s.nb.request(d,e),b.ja=f,t(h,f.promise,2);g=h.b;b.ja=null;return h["return"](g.data)})} +function nh(a,b,c,d){var e,f;return J(function(g){if(1==g.a)return b.$a=!1,b.vc=!1,b.ec=0,b.Ab=!0,b.pa=null,b.lc=null,b.ma=null,d?(e=a.s.ic(),f=a.s.L.getDuration(),t(g,a.s.L.remove(b.type,e+d,f),3)):t(g,pf(a.s.L,b.type),4);if(3!=g.a)return Tc(a.F),c?t(g,a.s.L.flush(b.type),3):g.u(3);Tc(a.F);b.Ab=!1;b.endOfStream=!1;hh(a,b,0);w(g)})} +function hh(a,b,c){var d=b.type;if("text"!=d||a.a.has(d))b.Ja=(new lc(function(){var e;return J(function(f){if(1==f.a)return x(f,2),t(f,a.Kb(b),4);if(2!=f.a)return ua(f,0);e=C(f);if(a.s)a.s.onError(e);w(f)})})).R(c)}function ch(a){null!=a.Ja&&(a.Ja.stop(),a.Ja=null)}function dh(a){return J(function(b){return a.ja?t(b,a.ja.abort(),0):b.u(0)})}function rh(a,b){return J(function(c){if(1==c.a)return t(c,oc(a.j),2);Tc(a.F);a.s.onError(b);b.handled||a.i.failureCallback(b);w(c)})};function Ch(a,b){var c=Dh(),d=this;this.h=b;this.c=a;this.f=c;this.j=null;this.g=[];this.b=this.a=null;this.m=Promise.resolve().then(function(){return Eh(d)});this.F=new Sc(function(){return Fh(d)})}Ch.prototype.destroy=function(){return this.F.destroy()};function Fh(a){var b,c,d;return J(function(e){if(1==e.a)return a.b&&a.b.abort(),Gh(a),t(e,a.m,2);a.a&&a.a.xa.Va();b=q(a.g);for(c=b.next();!c.done;c=b.next())d=c.value,d.xa.Va();a.a=null;a.g=[];a.h=null;w(e)})} +function Hh(a,b){var c={pb:function(){},mc:function(){},Va:function(){},onError:function(){},oc:function(){},Qf:function(){}};a.g.push({create:b,xa:c});a.b&&a.b.abort();Gh(a);return c} +function Eh(a){return J(function(b){if(a.F.a)b=b.u(0);else{if(0==a.g.length||a.a&&!a.a.Sa)var c=!1;else{a.a&&(a.a.xa.Va(),a.a=null);c=a.g.shift();var d=c.create(a.f);d?(c.xa.pb(),a.a={node:d.node,payload:d.payload,Sa:d.Sa,xa:c.xa}):c.xa.oc();c=!0}c?c=Promise.resolve():a.a?c=Ih(a):(a.h.Le(a.c),a.j=new Rb,c=a.j);b=t(b,c,1)}return b})} +function Ih(a){var b,c;return J(function(d){switch(d.a){case 1:return a.c=a.h.ue(a.c,a.f,a.a.node,a.a.payload),x(d,2),a.b=a.h.je(a.c,a.f,a.a.payload),t(d,a.b.promise,4);case 4:a.b=null;a.c==a.a.node&&(a.a.xa.mc(),a.a=null);ua(d,0);break;case 2:b=C(d);if(7001==b.code)a.a.xa.Va();else a.a.xa.onError(b);a.a=null;a.b=null;c=a;return t(d,a.h.handleError(a.f,b),5);case 5:c.c=d.b,w(d)}})}function Gh(a){a.j&&(a.j.resolve(),a.j=null)};function Jh(a){this.a=null;for(var b=q(Array.from(a.textTracks)),c=b.next();!c.done;c=b.next())c=c.value,c.mode="disabled","Shaka Player TextTrack"==c.label&&(this.a=c);this.a||(this.a=a.addTextTrack("subtitles","Shaka Player TextTrack"));this.a.mode="hidden"}p=Jh.prototype;p.remove=function(a,b){if(!this.a)return!1;Kh(this.a,function(c){return c.startTimea});return!0}; +p.append=function(a){function b(g){return g.spacer?"\n":g.nestedCues.length?g.nestedCues.map(b).join(""):g.payload}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.a.cues?Array.from(this.a.cues):[];var e={};c=q(c);for(var f=c.next();!f.done;e={cb:e.cb},f=c.next())e.cb=f.value,a.some(function(g){return function(h){return h.startTime==g.cb.startTime&&h.endTime==g.cb.endTime&&h.text==g.cb.payload?!0:!1}}(e))||(f=Lh(e.cb))&& +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=q(a);for(e=a.next();!e.done;e=a.next())this.a.addCue(e.value)};p.destroy=function(){this.a&&(Kh(this.a,function(){return!0}),this.a.mode="disabled");this.a=null;return Promise.resolve()};p.isTextVisible=function(){return"showing"==this.a.mode}; +p.setTextVisibility=function(a){this.a.mode=a?"showing":"hidden"}; +function Lh(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} +function Kh(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=q(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}K("shaka.text.SimpleTextDisplayer",Jh);Jh.prototype.setTextVisibility=Jh.prototype.setTextVisibility;Jh.prototype.isTextVisible=Jh.prototype.isTextVisible;Jh.prototype.destroy=Jh.prototype.destroy;Jh.prototype.append=Jh.prototype.append;Jh.prototype.remove=Jh.prototype.remove;function Mh(){}function Nh(a){for(;a.firstChild;)a.removeChild(a.firstChild)}K("shaka.util.Dom",Mh);Mh.removeAllChildren=Nh;function Oh(a,b){var c=this;this.h=!1;this.f=[];this.a=a;this.g=b;this.b=document.createElement("div");this.b.classList.add("shaka-text-container");this.b.style.textAlign="center";this.b.style.display="flex";this.b.style.flexDirection="column";this.b.style.alignItems="center";this.b.style.justifyContent="flex-end";this.g.appendChild(this.b);this.j=(new N(function(){Ph(c)})).ra(.25);this.c=new Map}p=Oh.prototype; +p.append=function(a){var b=ia(this.f).concat(),c={};a=q(a);for(var d=a.next();!d.done;c={Rb:c.Rb},d=a.next())c.Rb=d.value,b.some(function(e){return function(f){return Le(f,e.Rb)}}(c))||this.f.push(c.Rb);Ph(this)};p.destroy=function(){this.g.removeChild(this.b);this.b=null;this.h=!1;this.f=[];this.j&&this.j.stop();this.c.clear()};p.remove=function(a,b){if(!this.b)return!1;this.f=this.f.filter(function(c){return c.startTime=b});Ph(this);return!0};p.isTextVisible=function(){return this.h}; +p.setTextVisibility=function(a){this.h=a}; +function Ph(a){function b(g){return a.f.includes(g)&&a.h&&g.startTime<=c&&g.endTime>=c}for(var c=a.a.currentTime,d=q(a.c.keys()),e=d.next();!e.done;e=d.next())if(e=e.value,!b(e)){var f=a.c.get(e);a.b.removeChild(f);a.c["delete"](e)}d=new Set(a.c.values());e=q(Array.from(a.b.childNodes));for(f=e.next();!f.done;f=e.next())f=f.value,d.has(f)||a.b.removeChild(f);d=a.f.filter(function(g){return b(g)&&!a.c.has(g)}).sort(function(g,h){return g.startTime!=h.startTime?g.startTime-h.startTime:g.endTime-h.endTime}); +d=q(d);for(e=d.next();!e.done;e=d.next())Qh(a,a.b,e.value)}function Rh(a,b,c,d){var e=document.createElement("span");d&&e.classList.add("shaka-nested-cue");Sh(a,e,c,!0);b.appendChild(e);return e}function Qh(a,b,c){if(c.nestedCues.length){var d=document.createElement("p");d.style.width="100%";Sh(a,d,c,!1);for(var e=0;ee)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}K("shaka.util.ConfigUtils",Uh);Uh.convertToConfigObject=Wh;Uh.mergeConfigObjects=Vh;function Xh(){} +function Yh(){var a=1E6,b=Infinity;navigator.connection&&(navigator.connection.downlink&&(a=1E6*navigator.connection.downlink),navigator.connection.saveData&&(b=360));var c={retryParameters:nc(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:Td,logLicenseExchange:!1,updateExpirationTime:1},d={retryParameters:nc(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,defaultPresentationDelay:0,dash:{clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1, +ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1},hls:{ignoreTextStreamFailures:!1,useFullSegmentsForStartTime:!1}},e={retryParameters:nc(),failureCallback:function(h){return[h]},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,smallGapLimit:.5,jumpLargeGaps:!1,durationBackoff:1,forceTransmuxTS:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1, +stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2};if(md("Web0S")||ld()||md("CrKey"))e.stallSkip=0;var f={trackSelectionCallback:function(h){return J(function(k){return k["return"](h)})},progressCallback:function(h,k){return[h,k]},usePersistentLicense:!0},g={drm:c,manifest:d,streaming:e,offline:f,abrFactory:function(){return new Qf},abr:{enabled:!0,defaultBandwidthEstimate:a,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:Infinity, +minHeight:0,maxHeight:b,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity}},preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,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}}; +f.trackSelectionCallback=function(h){return J(function(k){return k["return"](Zh(h,g.preferredAudioLanguage))})};return g}function $h(a,b,c){var d={".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",serverCertificate:new Uint8Array(0),individualizationServer:""}};return Vh(a,b,c||Yh(),d,"")} +function Zh(a,b){var c=a.filter(function(h){return"variant"==h.type}),d=[],e=Af(b,c.map(function(h){return h.language}));e&&(d=c.filter(function(h){return S(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/ +2);d.sort(function(h,k){return h.bandwidth-k.bandwidth});c.push(d[g])}d=q(a);for(g=d.next();!g.done;g=d.next())g=g.value,"text"==g.type&&c.push(g);return c}K("shaka.util.PlayerConfiguration",Xh);Xh.mergeConfigObjects=$h;function ai(){this.a=null;this.b=[]}function bi(a,b){if(null==a.a)a.a={timestamp:Date.now()/1E3,state:b,duration:0};else{var c=Date.now()/1E3;a.a.duration=c-a.a.timestamp;a.a.state!=b&&(a.b.push(a.a),a.a={timestamp:c,state:b,duration:0})}}function ci(a,b){var c=0;a.a&&a.a.state==b&&(c+=a.a.duration);for(var d=q(a.b),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c} +function di(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=q(a.b),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};function ei(){this.b=this.c=null;this.a=[]}function fi(a,b,c){a.c!=b&&(a.c=b,a.a.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}))}function gi(a,b,c){a.b!=b&&(a.b=b,a.a.push({timestamp:Date.now()/1E3,id:b.id,type:"text",fromAdaptation:c,bandwidth:null}))};function hi(){this.g=this.h=this.A=this.m=this.D=this.c=this.v=this.f=this.G=this.I=this.J=this.j=this.M=NaN;this.b=new ai;this.a=new ei};function W(a,b){yc.call(this);var c=this;this.g=ii;this.bc=this.a=null;this.T=!1;this.b=new Uc;this.Hc=this.j=this.xb=this.o=this.$b=this.m=this.c=this.ac=this.D=this.Xb=this.A=this.Ba=this.v=this.G=this.h=this.N=null;this.ud=1E9;this.i=ji(this);this.wc={width:Infinity,height:Infinity};this.f=null;this.yb=new Xf(this.i.preferredAudioLanguage,this.i.preferredVariantRole,this.i.preferredAudioChannelCount);this.da=this.i.preferredTextLanguage;this.Yb=this.i.preferredTextRole;this.Ic=[];b&&b(this);this.N= +ki(this);this.I=null;li&&(this.I=Mb(li));this.b.l(window,"online",function(){c.gd()});this.fa={name:"detach"};this.Ea={name:"attach"};this.M={name:"unload"};this.Nc={name:"manifest-parser"};this.Mc={name:"manifest"};this.ta={name:"media-source"};this.Jc={name:"drm-engine"};this.J={name:"load"};this.Oc={name:"src-equals-drm-engine"};this.Ca={name:"src-equals"};var d=new Map;d.set(this.Ea,function(e,f){return tc(mi(c,e,f))});d.set(this.fa,function(e){e.B&&(c.b.sa(e.B,"error"),e.B=null);c.a=null;e=Promise.resolve(); +return tc(e)});d.set(this.M,function(e){return tc(ni(c,e))});d.set(this.ta,function(e){e=oi(c,e);return tc(e)});d.set(this.Nc,function(e,f){var g=pi(c,e,f);return tc(g)});d.set(this.Mc,function(e){return qi(c,e)});d.set(this.Jc,function(e){e=ri(c,e);return tc(e)});d.set(this.J,function(e,f){return tc(si(c,e,f))});d.set(this.Oc,function(e){e=ti(c,e);return tc(e)});d.set(this.Ca,function(e,f){return ui(c,e,f)});this.X=new Ch(this.fa,{ue:function(e,f,g,h){var k=null;e==c.fa&&(k=g==c.fa?c.fa:c.Ea);e== +c.Ea&&(k=g==c.fa||f.B!=h.B?c.fa:g==c.Ea?c.Ea:g==c.ta||g==c.J?c.ta:g==c.Ca?c.Oc:null);e==c.ta&&(k=g==c.J&&f.B==h.B?c.Nc:c.M);e==c.Nc&&(k=vi(c.J,c.Mc,c.M,g,f,h));e==c.Mc&&(k=vi(c.J,c.Jc,c.M,g,f,h));e==c.Jc&&(k=vi(c.J,c.J,c.M,g,f,h));e==c.Oc&&(k=g==c.Ca&&f.B==h.B?c.Ca:c.M);if(e==c.J||e==c.Ca)k=c.M;e==c.M&&(k=h.B&&f.B==h.B?c.Ea:c.fa);return k},je:function(e,f,g){c.dispatchEvent(wi(xi,{state:e.name}));return d.get(e)(f,g)},handleError:function(e){return J(function(f){return 1==f.a?t(f,ni(c,e),2):f["return"](e.B? +c.Ea:c.fa)})},Le:function(e){c.dispatchEvent(wi(yi,{state:e.name}))}});a&&this.zb(a,!0)}pa(W,yc);function wi(a,b){return new Q(a,b)}p=W.prototype; +p.destroy=function(){var a=this,b;return J(function(c){switch(c.a){case 1:if(a.g==zi)return c["return"]();a.g=zi;b=Hh(a.X,function(){return{node:a.fa,payload:Dh(),Sa:!1}});return t(c,new Promise(function(d){b.pb=function(){};b.mc=function(){d()};b.Va=function(){d()};b.onError=function(){d()};b.oc=function(){d()}}),2);case 2:return t(c,a.X.destroy(),3);case 3:a.b&&(a.b.release(),a.b=null);a.Hc=null;a.j=null;a.i=null;a.f=null;a.bc=null;if(!a.N){c.u(0);break}return t(c,a.N.destroy(),5);case 5:a.N=null, +w(c)}})};p.zb=function(a,b){b=void 0===b?!0:b;if(this.g==zi)return Promise.reject(Ai());var c=Dh();c.B=a;id()||(b=!1);var d=b?this.ta:this.Ea,e=Hh(this.X,function(){return{node:d,payload:c,Sa:!1}});e.pb=function(){};return Bi(e)};p.detach=function(){var a=this;if(this.g==zi)return Promise.reject(Ai());var b=Hh(this.X,function(){return{node:a.fa,payload:Dh(),Sa:!1}});b.pb=function(){};return Bi(b)}; +p.sd=function(a){var b=this;a=void 0===a?!0:a;if(this.g==zi)return Promise.reject(Ai());id()||(a=!1);var c=Dh(),d=Hh(this.X,function(e){var f=e.B&&a?b.ta:e.B?b.Ea:b.fa;c.B=e.B;return{node:f,payload:c,Sa:!1}});d.pb=function(){};return Bi(d)}; +p.load=function(a,b,c){var d=this;if(this.g==zi)return Promise.reject(Ai());this.dispatchEvent(wi(Ci));var e=Dh();e.uri=a;e.pd=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=Di(this,e)?this.Ca:this.J,g=Hh(this.X,function(h){if(null==h.B)return null;e.B=h.B;return{node:f,payload:e,Sa:!0}});this.f=new hi;g.pb=function(){};return new Promise(function(h,k){g.oc=function(){return k(new M(2,7,7002))};g.mc=function(){h();d.dispatchEvent(wi(Ei))};g.Va=function(){return k(Ai())};g.onError= +function(l){return k(l)}})}; +function Di(a,b){if(!id())return!0;var c=b.mimeType,d=b.uri||"";c||(c={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"}[hg(d)]);return c?""==(b.B||kd()).canPlayType(c)?!1:id()&&(c in gg||hg(d)in ig)?nd()&&a.i.streaming.useNativeHlsOnSafari:!0:!1} +function mi(a,b,c){null==b.B&&(b.B=c.B,a.b.l(b.B,"error",function(){var d=Fi(a);d&&Gi(a,d)}));a.a=b.B;return Promise.resolve()} +function ni(a,b){var c,d,e,f,g,h,k,l,m;return J(function(n){switch(n.a){case 1:return a.g!=zi&&(a.g=ii),c=a.Ic.map(function(r){return r()}),a.Ic=[],t(n,Promise.all(c),2);case 2:a.dispatchEvent(wi(Hi));b.mimeType=null;b.startTime=null;b.uri=null;b.B&&(a.b.sa(b.B,"loadedmetadata"),a.b.sa(b.B,"playing"),a.b.sa(b.B,"pause"),a.b.sa(b.B,"ended"),a.b.sa(b.B,"ratechange"));a.Ba&&(a.Ba.release(),a.Ba=null);a.Xb&&(a.Xb.stop(),a.Xb=null);if(!a.m){n.u(3);break}return t(n,a.m.stop(),4);case 4:a.m=null,a.$b=null; +case 3:if(!a.j){n.u(5);break}return t(n,a.j.stop(),5);case 5:if(!a.c){n.u(7);break}return t(n,a.c.destroy(),8);case 8:a.c=null;case 7:a.A&&(a.A.release(),a.A=null);a.v&&(a.v.release(),a.v=null);if(!a.G){n.u(9);break}return t(n,a.G.destroy(),10);case 10:a.G=null;case 9:if(a.I)a.I.onAssetUnload();if(!b.B||!b.B.src){n.u(11);break}return t(n,new Promise(function(r){return(new N(r)).R(.1)}),12);case 12:b.B.removeAttribute("src"),b.B.load();case 11:if(!a.h){n.u(13);break}return t(n,a.h.destroy(),14);case 14:a.h= +null;case 13:a.xb=null;a.D=null;if(a.o){d=q(a.o.variants);for(e=d.next();!e.done;e=d.next())for(f=e.value,g=q([f.audio,f.video]),h=g.next();!h.done;h=g.next())(k=h.value)&&k.segmentIndex&&k.segmentIndex.release();l=q(a.o.textStreams);for(h=l.next();!h.done;h=l.next())m=h.value,m.segmentIndex&&m.segmentIndex.release()}a.o=null;a.f=new hi;a.Kc=null;Ii(a);w(n)}})} +function oi(a,b){var c,d,e,f;return J(function(g){if(1==g.a)return c=window.muxjs?new se:new te,d=a.i.textDisplayFactory,e=Mb(d),a.Kc=d,f=Ji(b.B,c,e,function(h,k,l){h=q(h);for(var m=h.next();!m.done;m=h.next())if(m=m.value,m.data&&m.cueTime&&m.frames){for(var n=m.cueTime+k,r=l,u=q(m.frames),v=u.next();!v.done;v=u.next())Ki(a,n,r,"ID3",v.value);if(a.I)a.I.onHlsTimedMetadata(m,n)}}),t(g,f.A,2);a.G=f;w(g)})} +function pi(a,b,c){var d,e,f,g;return J(function(h){if(1==h.a)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.N,a.xb=d,f=a,t(h,fg(d,e,a.i.manifest.retryParameters,b.mimeType),2);f.$b=h.b;a.m=Mb(a.$b);g=zc(a.i.manifest);c.B&&"AUDIO"===c.B.nodeName&&(g.disableVideo=!0);a.m.configure(g);w(h)})} +function qi(a,b){var c=b.uri,d=a.N;a.ac=new Wg(function(){return a.hd()});Xg(a.ac,function(g){Li(a,Mi,g);if(a.I)a.I.onDashTimedMetadata(g)});var e={networkingEngine:d,filter:function(g){return J(function(h){return h["return"](a.gb(g))})},makeTextStreamsForClosedCaptions:function(g){return Ni(a,g)},onTimelineRegionAdded:function(g){var h=a.ac;a:{var k=q(h.a);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.a.add(g),h.b(g))},onEvent:function(g){return a.dispatchEvent(g)},onError:function(g){return Gi(a,g)}},f=Date.now()/1E3;return new pc(function(){var g,h,k,l;return J(function(m){if(1==m.a)return g=a,t(m,a.m.start(c,e),2);g.o=m.b;h=wi(Oi);a.dispatchEvent(h);if(0==a.o.variants.length)throw new M(2,4,4036);Pi(a.o);k=Date.now()/1E3;l=k-f;a.f.v=l;w(m)})}(),function(){return a.m.stop()})} +function ri(a,b){var c,d;return J(function(e){if(1==e.a)return c=Date.now()/1E3,d=!0,a.h=Qi(a,{nb:a.N,onError:function(f){Gi(a,f)},nc:function(f){Ri(a,f)},onExpirationUpdated:function(f,g){Si(a,f,g)},onEvent:function(f){a.dispatchEvent(f);f.type==Ti&&d&&(d=!1,a.f.c=Date.now()/1E3-c)}}),a.h.configure(a.i.drm),t(e,yd(a.h,a.o.variants,a.o.offlineSessionIds),2);if(3!=e.a)return t(e,a.h.zb(b.B),3);a.gb(a.o);w(e)})} +function si(a,b,c){var d,e,f,g,h,k,l,m,n,r;return J(function(u){switch(u.a){case 1:b.startTime=c.startTime;d=b.B;e=b.uri;a.xb=e;a.A=new Pg({jc:function(){return b.B.playbackRate},nd:function(v){b.B.playbackRate=v},Jd:function(v){b.B.currentTime+=v}});f=function(){return Ui(a)};g=function(){return Vi(a)};a.b.l(d,"playing",f);a.b.l(d,"pause",f);a.b.l(d,"ended",f);a.b.l(d,"ratechange",g);h=a.i.abrFactory;a.j&&a.Hc==h||(a.Hc=h,a.j=Mb(h),"function"!=typeof a.j.playbackRateChanged&&(Fb("AbrManager","Please use an AbrManager with playbackRateChanged function."), +a.j.playbackRateChanged=function(){}),a.j.configure(a.i.abr));a.yb=new Xf(a.i.preferredAudioLanguage,a.i.preferredVariantRole,a.i.preferredAudioChannelCount);a.da=a.i.preferredTextLanguage;Wi(a.o.presentationTimeline,a.i.playRangeStart,a.i.playRangeEnd);a.j.init(function(v,A,y){A=void 0===A?!1:A;y=void 0===y?0:y;a.c&&v!=a.c.b&&(fi(a.f.a,v,!0),lh(a.c,v,A,y),Xi(a))});a.v=Yi(a,b.startTime);a.Ba=Zi(a);k=Math.max(a.o.minBufferTime,a.i.streaming.rebufferingGoal);$i(a,k);Bf(a.o,a.i.preferredAudioChannelCount); +a.c=aj(a);a.c.configure(a.i.streaming);a.g=bj;a.dispatchEvent(wi(cj));l=dj(a)?a.j.chooseVariant():null;fi(a.f.a,l,!0);lh(a.c,l,!1,0);(m=Of(a.o.textStreams,a.da,a.Yb)[0]||null)&&gi(a.f.a,m,!0);m?(l.audio&&ej(a,l.audio,m)&&(a.T=!0),a.T&&a.G.h.setTextVisibility(!0),fj(a)):a.T=!1;m&&(a.i.streaming.alwaysStreamText||a.Sc())&&mh(a.c,m);if(!a.i.streaming.startAtSegmentBoundary){u.u(2);break}n=a.v.g();return t(u,gj(l,n),3);case 3:r=u.b,a.v.m(r);case 2:return t(u,a.c.start(),4);case 4:a.i.abr.enabled&&(a.j.enable(), +hj(a)),a.gb(a.o),ij(a),Xi(a),dj(a),a.o.variants.some(function(v){return v.primary}),a.b.ia(d,"loadedmetadata",function(){a.f.f=Date.now()/1E3-c.pd}),w(u)}})} +function ti(a,b){var c,d,e,f;return J(function(g){return 1==g.a?(c=Pb,d=Date.now()/1E3,e=!0,a.h=Qi(a,{nb:a.N,onError:function(h){Gi(a,h)},nc:function(h){Ri(a,h)},onExpirationUpdated:function(h,k){Si(a,h,k)},onEvent:function(h){a.dispatchEvent(h);h.type==Ti&&e&&(e=!1,a.f.c=Date.now()/1E3-d)}}),a.h.configure(a.i.drm),f={id:0,language:"und",primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:"video/mp4",codecs:"",encrypted:!0, +drmInfos:[],keyIds:new Set,language:"und",label:null,type:c.Da,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,audioSamplingRate:null,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0},t(g,yd(a.h,[f],[]),2)):t(g,a.h.zb(b.B),0)})} +function ui(a,b,c){function d(){return Ui(a)}b.uri=c.uri;b.startTime=c.startTime;a.xb=b.uri;a.v=new Cg(b.B);null!=b.startTime&&a.v.m(b.startTime);a.A=new Pg({jc:function(){return b.B.playbackRate},nd:function(g){b.B.playbackRate=g},Jd:function(g){b.B.currentTime+=g}});$i(a,a.i.streaming.rebufferingGoal);a.b.l(b.B,"playing",d);a.b.l(b.B,"pause",d);a.b.l(b.B,"ended",d);a.b.l(b.B,"ratechange",function(){return Vi(a)});"none"!=a.a.preload&&a.b.ia(a.a,"loadedmetadata",function(){a.f.f=Date.now()/1E3-c.pd}); +a.a.audioTracks&&(a.b.l(a.a.audioTracks,"addtrack",function(){return ij(a)}),a.b.l(a.a.audioTracks,"removetrack",function(){return ij(a)}),a.b.l(a.a.audioTracks,"change",function(){return ij(a)}));a.a.textTracks&&(a.b.l(a.a.textTracks,"addtrack",function(g){ij(a);jj(a,g)}),a.b.l(a.a.textTracks,"removetrack",function(){return ij(a)}),a.b.l(a.a.textTracks,"change",function(){return ij(a)}));b.B.src=b.uri;(ld()||md("Web0S"))&&b.B.load();a.g=kj;a.dispatchEvent(wi(cj));var e=new Rb;tg(a.a,HTMLMediaElement.HAVE_METADATA, +a.b,function(){e.resolve()});var f=!1;a.Ic.push(function(){f=!0});tg(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.b,function(){var g;return J(function(h){if(1==h.a){if(f)return h["return"]();lj(a);g=mj(a);return g.find(function(k){return"disabled"!=k.mode})?h.u(2):t(h,new Promise(function(k){a.b.ia(a.a.textTracks,"change",k);(new N(k)).R(1)}),2)}if(f)return h["return"]();nj(a);w(h)})});a.a.error?e.reject(Fi(a)):"none"==a.a.preload&&(Xa('With