diff --git a/platform/video.shaka/dist/shaka-player.compiled.min.js b/platform/video.shaka/dist/shaka-player.compiled.min.js index 46210ed9..a8d7d497 100644 --- a/platform/video.shaka/dist/shaka-player.compiled.min.js +++ b/platform/video.shaka/dist/shaka-player.compiled.min.js @@ -1,7 +1,3 @@ -/** - * Skipped minification because the original files appears to be already minified. - * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files - */ /* @license Shaka Player @@ -9,864 +5,1256 @@ SPDX-License-Identifier: Apache-2.0 */ (function(){var innerGlobal=typeof window!="undefined"?window:global;var exportTo={};(function(window,global,module){/* + @license + Shaka Player + Copyright 2023 Google LLC + SPDX-License-Identifier: Apache-2.0 +*/ +var q;function aa(a){var b=0;return function(){return b>>0)+"_",e=0;return b}); +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;cc&&(c=Math.max(c+e,0));c=f}}); +function La(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&cb||1342177279>>=1)c+=c;return d}});ea("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});ea("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==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}});ea("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});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)Ha(b,d)&&c.push([d,b[d]]);return c}});/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ -var q;function ba(a){var b=0;return function(){return b>>0)+"_",e=0;return b}); -ha("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;cf&&(f=Math.max(f+e,0));f=f}});ha("Array.prototype.keys",function(a){return a?a:function(){return La(this,function(b){return b})}}); -var Ma="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;cb||1342177279>>=1)c+=c;return d}});ha("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}});ha("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}}); -ha("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 L(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};/* +var Na=this||self;function M(a,b){a=a.split(".");var c=Na;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};/* @license Shaka Player Copyright 2016 Google LLC SPDX-License-Identifier: Apache-2.0 */ -function Oa(a){this.i=Math.exp(Math.log(.5)/a);this.h=this.g=0}function Pa(a,b,c){var d=Math.pow(a.i,b);c=c*(1-d)+d*a.g;isNaN(c)||(a.g=c,a.h+=b)}function Qa(a){return a.g/(1-Math.pow(a.i,a.h))};function Ra(){this.h=new Oa(2);this.i=new Oa(5);this.g=0}Ra.prototype.getBandwidthEstimate=function(a){return 128E3>this.g?a:Math.min(Qa(this.h),Qa(this.i))};function Sa(){}function Ta(){}function Ua(){}function Va(a,b){for(var c=[],d=1;d=c[d]}if(!a)return"";var c=qb(a);if(239==c[0]&&187==c[1]&&191==c[2])return wb(c);if(254==c[0]&&255==c[1])return xb(c.subarray(2),!1);if(255==c[0]&&254==c[1])return xb(c.subarray(2),!0);if(0==c[0]&&0==c[2])return xb(a,!1);if(0==c[1]&&0==c[3])return xb(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return wb(a);throw new O(2,2,2003);}function Ab(a){var b=new TextEncoder;return rb(b.encode(a))} -function Cb(a,b){for(var c=new ArrayBuffer(2*a.length),d=new DataView(c),e=t(mb(a)),f=e.next();!f.done;f=e.next())f=f.value,d.setUint16(2*f.ha,f.item.charCodeAt(0),b);return c}L("shaka.util.StringUtils",vb);vb.resetFromCharCode=function(){yb.g=void 0};vb.toUTF16=Cb;vb.toUTF8=Ab;vb.fromBytesAutoDetect=zb;vb.fromUTF16=xb;vb.fromUTF8=wb; -var yb=new ub(function(){function a(c){try{var d=new Uint8Array(c);return 0this.R.byteLength)throw Fb();var b=qb(this.R,this.g,a);this.g+=a;return b}; -q.skip=function(a){if(this.g+a>this.R.byteLength)throw Fb();this.g+=a};q.je=function(a){if(this.ga||a>this.R.byteLength)throw Fb();this.g=a};q.Yb=function(){for(var a=this.g;this.na()&&0!=this.R.getUint8(this.g);)this.g+=1;a=qb(this.R,a,this.g-a);this.g+=1;return wb(a)};function Fb(){return new O(2,3,3E3)}L("shaka.util.DataViewReader",Db);Db.prototype.readTerminatedString=Db.prototype.Yb;Db.prototype.seek=Db.prototype.seek;Db.prototype.rewind=Db.prototype.je; -Db.prototype.skip=Db.prototype.skip;Db.prototype.readBytes=Db.prototype.Za;Db.prototype.readUint64=Db.prototype.kb;Db.prototype.readInt32=Db.prototype.he;Db.prototype.readUint32=Db.prototype.M;Db.prototype.readUint16=Db.prototype.Fb;Db.prototype.readUint8=Db.prototype.$;Db.prototype.getLength=Db.prototype.Pe;Db.prototype.getPosition=Db.prototype.Z;Db.prototype.hasMoreData=Db.prototype.na;var Eb=1;Db.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Eb};function Gb(a,b){this.g=a;this.h=b}Gb.prototype.toString=function(){return"v"+this.g+"."+this.h};function Hb(a,b){var c=new Gb(4,0),d=Ib,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function Jb(a,b,c,d){Ua([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Kb(a,b,c,d){Ta([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(""))}var Ib=null;function Lb(a,b){return a.concat(b)}function Mb(){}function Nb(a){return null!=a}function Ob(a){var b=Object.create(a.prototype||Object.prototype);try{var c=a.call(b);c||(Hb("Factories requiring new","Factories should be plain functions"),c=b)}catch(d){Hb("Factories requiring new","Factories should be plain functions"),c=new a}return c};function Qb(){this.i=[];this.h=[];this.g=!1}q=Qb.prototype;q.box=function(a,b){var c=Rb(a);this.i[c]=Sb;this.h[c]=b;return this};q.U=function(a,b){var c=Rb(a);this.i[c]=Tb;this.h[c]=b;return this};q.stop=function(){this.g=!0};q.parse=function(a,b,c){a=new Db(a,0);for(this.g=!1;a.na()&&!this.g;)this.Fc(0,a,b,c)}; -q.Fc=function(a,b,c,d){var e=b.Z();if(d&&e+8>b.R.byteLength)this.g=!0;else{var f=b.M(),g=b.M(),h=!1;switch(f){case 0:f=b.R.byteLength-e;break;case 1:if(d&&b.Z()+8>b.R.byteLength){this.g=!0;return}f=b.kb();h=!0}var k=this.h[g];if(k){var l=null,m=null;if(this.i[g]==Tb){if(d&&b.Z()+4>b.R.byteLength){this.g=!0;return}m=b.M();l=m>>>24;m&=16777215}g=e+f;c&&g>b.R.byteLength&&(g=b.R.byteLength);d&&g>b.R.byteLength?this.g=!0:(d=g-b.Z(),b=0>24&255,a>>16&255,a>>8&255,a&255)}function Vb(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}L("shaka.util.Mp4Parser",Qb);Qb.headerSize=Vb;Qb.typeToString=Yb;Qb.allData=Xb;Qb.sampleDescription=Wb;Qb.children=Ub;Qb.prototype.parseNext=Qb.prototype.Fc;Qb.prototype.parse=Qb.prototype.parse;Qb.prototype.stop=Qb.prototype.stop; -Qb.prototype.fullBox=Qb.prototype.U;Qb.prototype.box=Qb.prototype.box;var Sb=0,Tb=1;function Zb(a){this.h=a;this.g=null}Zb.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};Zb.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function P(a){this.h=a;this.g=null}P.prototype.bc=function(){this.stop();this.h();return this};P.prototype.T=function(a){var b=this;this.stop();this.g=(new Zb(function(){b.h()})).T(a);return this};P.prototype.Ba=function(a){var b=this;this.stop();this.g=(new Zb(function(){b.g.T(a);b.h()})).T(a);return this};P.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};L("shaka.util.Timer",P);P.prototype.stop=P.prototype.stop;P.prototype.tickEvery=P.prototype.Ba;P.prototype.tickAfter=P.prototype.T; -P.prototype.tickNow=P.prototype.bc;function $b(){return window.MediaSource&&MediaSource.isTypeSupported?!0:!1}function ac(a){return""!=bc().canPlayType(a)}function cc(){return dc("Xbox One")}function ec(){return dc("Tizen")}function fc(){return dc("CrKey")}function gc(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!ec()}function hc(){if(!gc())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 dc(a){return(navigator.userAgent||"").includes(a)}function bc(){if(ic)return ic;jc||(jc=new P(function(){ic=null}));(ic=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(ic=document.createElement("video"));jc.T(1);return ic}var jc=null,ic=null;function kc(){}function lc(a){a=qb(a);a=yb.value()(a);return btoa(a)}function mc(a,b){b=void 0==b?!0:b;var c=lc(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")}function nc(a){var b=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));a=new Uint8Array(b.length);b=t(mb(b));for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.ha]=c.item.charCodeAt(0);return a} -function oc(a){var b=a.length/2,c=new Uint8Array(b);b=t(jb(b));for(var d=b.next();!d.done;d=b.next())d=d.value,c[d]=window.parseInt(a.substr(2*d,2),16);return c}function pc(a){var b=qb(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 qc(a){for(var b=[],c=0;c>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var tc=new ub(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 vc(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function wc(a,b){var c=a.indexOf(b);-1=e)return null;for(var f=-1,g=-1,h=0;hb;b++)a.i.push(ad())}function ad(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function bd(a,b){cd(a)&&(a.i[a.h][a.g]=new Xc(b,a.D,a.s,a.m,a.u),a.g++)}function cd(a){var b=a.gthis.h.length)throw new O(2,2,3E3);this.g+=a};function kd(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null} -function ld(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=jd(b).value;b=null;c=t(md(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=dd(e,d,a.i)),$c(e);return b}if(137===c)for(b=jd(b).value,b=t(md(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=jd(b).value;b=null;c=t(md(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=dd(e,d,a.i)),e.l=!1;return b}if(139===c){c=jd(b).value; -b=null;c=t(md(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=dd(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=jd(b).value,nd(a,b,d);if(143===c)return d=nd(a,255,d),od(a),d;if(144===c)b.skip(1),d=jd(b).value,a.g&&(a.g.s=0<(d&128),a.g.D=0<(d&64));else if(145===c)d=jd(b).value,c=jd(b).value,b.skip(1),a.g&&(b=pd((c&48)>>4,(c&12)>>2,c&3),a.g.u=pd((d&48)>>4,(d&12)>>2,d&3),a.g.m=b);else if(146===c)d=jd(b).value,b=jd(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1), -b.skip(1),d=jd(b).value,b.skip(1),a.g&&(a.g.H=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];if(!e){var f=new Yc;f.j=d;a.h[c]=f}d=jd(b).value;jd(b);jd(b);f=jd(b).value;var g=jd(b).value;b=jd(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.D=!1,b.s=!1,b.u="white",b.m="black");b=a.h[c];b.l=0<(d&32);b.I=(f&15)+1;b.F=(g&63)+1;a.g=a.h[c]}}}return null} -var md=function qd(a,b){var d,e;return Fa(qd,function(f){1==f.g&&(d=0);if(5!=f.g)return 8>d?(e=1===(b&1))&&a.h[d]?v(f,d,5):f.v(5):f.v(0);b>>=1;d++;return f.v(2)})};function nd(a,b,c){var d=null;b=t(md(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(d=dd(f,c,a.i));a.h[e]=null}return d}function od(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function pd(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return rd[a<<2|b<<1|c]} -var sd=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"]]),rd="black blue green cyan red magenta yellow white".split(" ");function td(a,b){this.i=[];this.g=1;this.h=0;this.D=a;this.u=b;this.j=this.m=!1;this.l="white";this.s="black";ud(this)}function vd(a,b,c){return Uc(new zc(b,c,""),"CC"+(a.D<<1|a.u+1),a.i,b,c)}function ud(a){wd(a,0,15);a.g=1}function xd(a,b,c){if(!(32>c||127=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>3&1;0===c?a.m=d:a.s=d}c=a.u.get("CC"+(c<<1|(c?a.s:a.m)+1));if(255===b.za&&255===b.Pa||!b.za&&!b.Pa||!Wd(b.za)||!Wd(b.Pa))return 45<=++a.l&&Sd(a),null;a.l=0;b.za&=127;b.Pa&=127;if(!b.za&&!b.Pa)return null;d=null;if(16===(b.za&112))a:{var e=b.za;d=b.Pa;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=Qd[f]:7===f&&(h=!0); -d=1===(d&1);if(c.h!==Ld){f=c.g;if(c.h===Kd&&e!==f.g){var k=1+e-f.h;Gd(f,k,1+f.g-f.h,f.h);wd(f,0,k-1);wd(f,e+1,15-e)}f.g=e;c.g.m=d;c.g.j=h;c.g.l=g;c.g.s="black"}}else if(17===(e&247)&&32===(d&240))c.g.m=!1,c.g.j=!1,c.g.l="white",xd(c.g,yd,32),g=!1,e=Qd[(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=Pd[(d&14)>>1]),c.g.s=g;else if(17===(e&247)&&48===(d&240))xd(c.g,Ad,d);else if(18=== -(e&246)&&32===(d&224))xd(c.g,e&1?Ed:Cd,d);else if(20===(e&246)&&32===(d&240)){d=b.pts;e=null;switch(b.Pa){case 32:Md(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:e=Jd(c,2,d);break;case 38:e=Jd(c,3,d);break;case 39:e=Jd(c,4,d);break;case 40:xd(c.g,yd,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.j=d;break;case 42:ud(c.s);Od(c);break;case 43:Od(c);break;case 44:e=c.i;g=null;c.h!==Ld&&(g=vd(e,c.j,d));wd(e,0,15);e=g;break;case 45:e=c.g;c.h!==Kd?e=null:(g=vd(e,c.j,d),h=e.g-e.h+1,Gd(e,h-1,h,e.h),wd(e, -0,h-1),wd(e,e.g,15-e.g),c.j=d,e=g);break;case 46:wd(c.l,0,15);break;case 47:e=null,c.h!==Ld&&(e=vd(c.i,c.j,d)),g=c.l,c.l=c.i,c.i=g,Md(c),c.j=d}d=e;break a}d=null}else e=b.Pa,xd(c.g,yd,b.za),xd(c.g,yd,e);return d} -function Vd(a,b){var c=[];try{for(;b.na();){var d=jd(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=jd(b).value&63);if(0!=e){a.j.has(e)||a.j.set(e,new kd(e));for(var g=a.j.get(e),h=b.Z();b.Z()-h=l){var p=m;if(g.g){var r=g.g;e=null;switch(l){case 8:!cd(r)||0>=r.g&&0>=r.h||(0>=r.g?(r.g=r.F-1,r.h--):r.g--,r.i[r.h][r.g]=null);break;case 13:r.isVisible()&&(e=dd(r,p,g.i));if(r.h+1>=r.I){p=r;for(var u=0,w=1;15>w;w++, -u++)p.i[u]=p.i[w];for(w=0;1>w;w++,u++)p.i[u]=ad()}else r.h++;r.g=0;break;case 14:r.isVisible()&&(e=dd(r,p,g.i));r.i[r.h]=ad();r.g=0;break;case 12:r.isVisible()&&(e=dd(r,p,g.i)),$c(r),p=r,p.h=0,p.g=0}var x=e}else x=null}else if(128<=l&&159>=l)x=ld(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?bd(g.g,"\u266a"):bd(g.g, -String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&bd(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(sd.has(e)){var y=sd.get(e);bd(g.g,y)}else bd(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?bd(g.g,"_"):bd(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 Wd(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b};function Xd(){}var Zd=function Yd(a,b){var d,e,f,g;return Fa(Yd,function(h){if(1==h.g){for(var k=0,l=0,m=0;lu&&(y=r[u].Hc||0);y=(l+y)/m;for(var D=t(Zd(b.j,k.Za(x-1))),C=D.next();!C.done;C=D.next())c.push({pf:C.value,pts:y})}else k.skip(x-1);w-=x+4;0==w&&(l=r.length>u?l+(r[u].Ed||n):l+n,u++,w=r.length>u?r[u].sampleSize||p:p)}}).parse(a,!1);return c};function fe(){this.h=new ee;this.g=new Rd}fe.prototype.init=function(a){this.h.init(a)}; -function ge(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=qb(e.pf);d=a.g;e=e.pts;f=new Db(f,0);if(181===f.$()&&49===f.Fb()&&1195456820===f.M()&&3===f.$()){var g=f.$();if(0!==(g&64)){g&=31;f.skip(1);for(var h=0;h>2,m=f.$(),n=f.$();l&&(k&=3,0===k||1===k?d.h.push({pts:e,type:k,za:m,Pa: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 Td(a.g)};function he(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function ie(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 je(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(ke(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 le(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=ke(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function ke(a){if(!a)return[];for(var b=[],c=t(jb(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};/* +var shaka={};function Oa(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}Oa.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a)};function Pa(a){return a.h/(1-Math.pow(a.g,a.i))};function Qa(){this.h=new Oa(2);this.j=new Oa(5);this.g=0;this.i=128E3;this.l=16E3}Qa.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)};Qa.prototype.sample=function(a,b){if(!(bb)throw Error("Bad port number "+b);a.Eb=b}else a.Eb=null}function qe(a,b,c){b instanceof se?a.g=b:(c||(b=te(b,ye)),a.g=new se(b))} -function re(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function te(a,b,c){return null!=a?(a=encodeURI(a).replace(b,ze),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function ze(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var ue=/[#\/\?@]/g,we=/[#\?:]/g,ve=/[#\?]/g,ye=/[#\?@]/g,xe=/#/g;function se(a){this.g=a||null}q=se.prototype;q.ta=null;q.tc=null; -q.add=function(a,b){if(!this.ta&&(this.ta={},this.tc=0,this.g))for(var c=this.g.split("&"),d=0;d>4).toString(16);e+=(g&15).toString(16);c=c.replace(d[0],e)}return c}function Pe(a,b){a.l=!0;a.h=new He;a.m=[];a.j=[];a.i=[];var c=qb(b);a.g.push(c);a.g.flush();a.l&&a.h.reject(new O(2,3,3018));return a.h};function Qe(a,b){var c=a;b&&(c+='; codecs="'+b+'"');return c}function Re(a,b,c){a=Qe(a,b);return Je.get("muxjs")()&&Ne(a)?Oe(c,a):a}function Se(a){var b=[a.mimeType];Te.forEach(function(c,d){var e=a[d];e&&b.push(c+'="'+e+'"')});"PQ"==a.hdr&&b.push('eotf="smpte2084"');return b.join(";")}function Ue(a){a=a.split(".");var b=a[0];a.pop();return b}function Ve(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""} -var Te=(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");function We(a){this.s=null;this.i=a;this.j=this.D=0;this.l=Infinity;this.h=this.g=null;this.u="";this.m=new Map}function Xe(a){return Ye[a]||"application/cea-608"==a||"application/cea-708"==a?!0:!1}We.prototype.destroy=function(){this.i=this.s=null;this.m.clear();return Promise.resolve()}; -function Ze(a,b,c,d){var e,f,g;return K(function(h){if(1==h.g)return v(h,Promise.resolve(),2);if(!a.s||!a.i)return h["return"]();if(null==c||null==d)return a.s.parseInit(qb(b)),h["return"]();e={periodStart:a.D,segmentStart:c,segmentEnd:d};f=a.s.parseMedia(qb(b),e);g=f.filter(function(k){return k.startTime>=a.j&&k.startTime=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&bc.g&&b>=c.h&&(c.h=a));z(d)})};function $e(a,b,c){a.j=b;a.l=c}function af(a,b,c){a.u=b;if(b=a.m.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)} -function bf(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 zc(c.startTime,c.endTime,c.text)});return b} -function cf(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,[]);k.startTime+=e;k.endTime+=e;k.startTime>=a.j&&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 zf(a,b){return b==Fe?a.i.h:he(yf(a,b))} -function Af(a,b,c){if(b==Fe)return a=a.i,null==a.h||a.h=e?vf(a,b):a.j[b].remove(0,e)}),0)})}q.flush=function(a){var b=this,c;return K(function(d){c=Ge;return a==c.fa?d["return"]():v(d,Df(b,a,function(){b.g.currentTime-=.001;vf(b,a)}),0)})}; -function Hf(a,b,c,d,e){var f;return K(function(g){f=Ge;return b==f.fa?(a.i.D=c,$e(a.i,d,e),g["return"]()):v(g,Promise.all([Df(a,b,function(){var h=a.j[b].appendWindowStart,k=a.j[b].appendWindowEnd;a.j[b].abort();a.j[b].appendWindowStart=h;a.j[b].appendWindowEnd=k;vf(a,b)}),Df(a,b,function(){var h=c;0>h&&(h+=.001);a.j[b].timestampOffset=h;vf(a,b)}),Df(a,b,function(){a.j[b].appendWindowStart=0;a.j[b].appendWindowEnd=e;a.j[b].appendWindowStart=d;vf(a,b)})]),0)})} -q.endOfStream=function(a){var b=this;return K(function(c){return v(c,If(b,function(){wf(b)||(a?b.s.endOfStream(a):b.s.endOfStream())}),0)})};q.Ja=function(a){var b=this;return K(function(c){return v(c,If(b,function(){b.s.duration=a}),0)})};q.getDuration=function(){return this.s.duration};function vf(a,b){var c=a.l[b][0];c&&(c.p.resolve(),Jf(a,b))}function Df(a,b,c){ef(a.J);c={start:c,p:new He};a.l[b].push(c);1==a.l[b].length&&Kf(a,b);return c.p} -function If(a,b){var c,d,e,f,g,h;return K(function(k){switch(k.g){case 1:ef(a.J);c=[];d={};for(e in a.j)d.Jb=new He,f={start:function(l){return function(){return l.Jb.resolve()}}(d),p:d.Jb},a.l[e].push(f),c.push(d.Jb),1==a.l[e].length&&f.start(),d={Jb:d.Jb};B(k,2);return v(k,Promise.all(c),4);case 4:wa(k,3);break;case 2:throw g=E(k),g;case 3:try{b()}catch(l){throw new O(2,3,3015,l);}finally{for(h in a.j)Jf(a,h)}z(k)}})}function Jf(a,b){a.l[b].shift();Kf(a,b)} -function Kf(a,b){var c=a.l[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)),Jf(a,b)}}function Cf(a,b,c,d){var e=a.g.mediaKeys;null==c&&e&&(ec()||cc())&&"mp4"==a.I[d].split(";")[0].split("/")[1]&&(b=rc(b));return b}var sf=window.URL.createObjectURL;function Lf(a,b){a=Mf(a);b=Mf(b);return a.split("-")[0]==b.split("-")[0]}function Nf(a,b){a=Mf(a);b=Mf(b);var c=a.split("-"),d=b.split("-");return c[0]==d[0]&&1==c.length&&2==d.length}function Of(a,b){a=Mf(a);b=Mf(b);var c=a.split("-"),d=b.split("-");return 2==c.length&&2==d.length&&c[0]==d[0]}function Mf(a){var b=a.split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Pf.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a}function Qf(a,b){a=Mf(a);b=Mf(b);return b==a?4:Nf(b,a)?3:Of(b,a)?2:Nf(a,b)?1:0} -function Rf(a){return a.language?Mf(a.language):a.audio&&a.audio.language?Mf(a.audio.language):a.video&&a.video.language?Mf(a.video.language):"und"} -function Sf(a,b){for(var c=Mf(a),d=new Set,e=t(b),f=e.next();!f.done;f=e.next())d.add(Mf(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,Nf(f,c))return f;e=t(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Of(f,c))return f;d=t(d);for(f=d.next();!f.done;f=d.next())if(f=f.value,Nf(c,f))return f;return null} -var Pf=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", +function gc(a){var b;a instanceof gc?(hc(this,a.Xa),this.Vb=a.Vb,ic(this,a.jb),jc(this,a.ic),this.Ea=a.Ea,kc(this,a.g.clone()),this.Ib=a.Ib):a&&(b=String(a).match(fc))?(hc(this,b[1]||"",!0),this.Vb=lc(b[2]||""),ic(this,b[3]||"",!0),jc(this,b[4]),this.Ea=lc(b[5]||"",!0),kc(this,b[6]||"",!0),this.Ib=lc(b[7]||"")):this.g=new mc(null)}q=gc.prototype;q.Xa="";q.Vb="";q.jb="";q.ic=null;q.Ea="";q.Ib=""; +q.toString=function(){var a=[],b=this.Xa;b&&a.push(nc(b,oc,!0),":");if(b=this.jb){a.push("//");var c=this.Vb;c&&a.push(nc(c,oc,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.ic;null!=b&&a.push(":",String(b))}if(b=this.Ea)this.jb&&"/"!=b.charAt(0)&&a.push("/"),a.push(nc(b,"/"==b.charAt(0)?pc:qc,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Ib)&&a.push("#",nc(b,rc));return a.join("")}; +q.resolve=function(a){var b=this.clone();"data"===b.Xa&&(b=new gc);var c=!!a.Xa;c?hc(b,a.Xa):c=!!a.Vb;c?b.Vb=a.Vb:c=!!a.jb;c?ic(b,a.jb):c=null!=a.ic;var d=a.Ea;if(c)jc(b,a.ic);else if(c=!!a.Ea){if("/"!=d.charAt(0))if(this.jb&&!this.Ea)d="/"+d;else{var e=b.Ea.lastIndexOf("/");-1!=e&&(d=b.Ea.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;gb)throw Error("Bad port number "+b);a.ic=b}else a.ic=null} +function kc(a,b,c){b instanceof mc?a.g=b:(c||(b=nc(b,tc)),a.g=new mc(b))}function lc(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function nc(a,b,c){return null!=a?(a=encodeURI(a).replace(b,uc),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function uc(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var oc=/[#\/\?@]/g,qc=/[#\?:]/g,pc=/[#\?]/g,tc=/[#\?@]/g,rc=/#/g;function mc(a){this.g=a||null} +function vc(a){if(!a.ua&&(a.ua={},a.Kc=0,a.g))for(var b=a.g.split("&"),c=0;c=a.l&&m.startTime=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&bc.g&&b>=c.h&&(c.h=a));E(d)})};function Uc(a,b,c){a.l=b;a.m=c}function Vc(a,b,c){a.A=b;if(b=a.o.get(b))for(var d=t(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.j.append(e)} +function Yc(a,b,c){b.startTime+=c;b.endTime+=c;b=t(b.nestedCues);for(var d=b.next();!d.done;d=b.next())Yc(a,d.value,c)} +function Zc(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,[]);Yc(a,k,e);k.startTime>=a.l&&k.startTime=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 ag(a,b,c,d){return K(function(e){if(1==e.g)return d?v(e,dg(c,0=f*d.bandwidth/this.o.bandwidthDowngradeTarget&&b<=e&&(c=d)}this.l=Date.now();return c};q.enable=function(){this.i=!0}; -q.disable=function(){this.i=!1};q.segmentDownloaded=function(a,b){var c=this.g;if(!(16E3>b)){var d=8E3*b/a,e=a/1E3;c.g+=b;Pa(c.h,e,d);Pa(c.i,e,d)}if(null!=this.l&&this.i)a:{if(!this.s){if(!(128E3<=this.g.g))break a;this.s=!0}else if(Date.now()-this.l<1E3*this.o.switchInterval)break a;c=this.chooseVariant();this.g.getBandwidthEstimate(Ag(this));c&&this.j(c)}};q.getBandwidthEstimate=function(){return this.g.getBandwidthEstimate(this.o.defaultBandwidthEstimate)};q.setVariants=function(a){this.h=a}; -q.playbackRateChanged=function(a){this.m=a};q.configure=function(a){this.o=a};function Ag(a){var b=a.o.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&a.o.useNetworkInformation&&(b=1E6*navigator.connection.downlink);return b}function zg(a,b){a&&(b=b.filter(function(c){return $f(c,a,{width:Infinity,height:Infinity})}));return b.sort(function(c,d){return c.bandwidth-d.bandwidth})}L("shaka.abr.SimpleAbrManager",yg);yg.prototype.configure=yg.prototype.configure; -yg.prototype.playbackRateChanged=yg.prototype.playbackRateChanged;yg.prototype.setVariants=yg.prototype.setVariants;yg.prototype.getBandwidthEstimate=yg.prototype.getBandwidthEstimate;yg.prototype.segmentDownloaded=yg.prototype.segmentDownloaded;yg.prototype.disable=yg.prototype.disable;yg.prototype.enable=yg.prototype.enable;yg.prototype.chooseVariant=yg.prototype.chooseVariant;yg.prototype.init=yg.prototype.init;yg.prototype.stop=yg.prototype.stop;function Bg(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)}Bg.prototype.add=function(a){return Cg(this.h,a)?(this.g.add(a),!0):!1}; -function Cg(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=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.s);return v(d,new Promise(function(e){(new P(e)).T(c/1E3)}),2)}a.h*=a.m;z(d)})}function Pg(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function Rg(a,b){this.promise=a;this.i=b;this.g=!1}function Sg(a){return new Rg(Promise.reject(a),function(){return Promise.resolve()})}function Tg(){var a=Promise.reject(new O(2,7,7001));a["catch"](function(){});return new Rg(a,function(){return Promise.resolve()})}function Ug(a){return new Rg(Promise.resolve(a),function(){return Promise.resolve()})}function Vg(a){return new Rg(a,function(){return a["catch"](function(){})})}Rg.prototype.abort=function(){this.g=!0;return this.i()}; -function Wg(a){return new Rg(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}Rg.prototype["finally"]=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this}; -Rg.prototype.aa=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=Xg(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new He,g=new O(2,7,7001);this.promise.then(c(!0),c(!1));return new Rg(f,function(){return d()})}; -function Xg(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()}}}L("shaka.util.AbortableOperation",Rg);Rg.prototype.chain=Rg.prototype.aa;Rg.prototype["finally"]=Rg.prototype["finally"];Rg.all=Wg;Rg.prototype.abort=Rg.prototype.abort;Rg.notAbortable=Vg;Rg.completed=Ug;Rg.aborted=Tg;Rg.failed=Sg;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.g=!1}Q.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};Q.prototype.stopImmediatePropagation=function(){this.g=!0}; -Q.prototype.stopPropagation=function(){};L("shaka.util.FakeEvent",Q);function Yg(){this.oc=new ff;this.nc=this}Yg.prototype.addEventListener=function(a,b){this.oc.push(a,b)};Yg.prototype.removeEventListener=function(a,b){this.oc.remove(a,b)};Yg.prototype.dispatchEvent=function(a){var b=this.oc.get(a.type)||[],c=this.oc.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.nc;a.currentTarget=this.nc;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented};function Zg(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 $g(a){var b={},c;for(c in a)b[c]=a[c];return b};function ah(){this.g=[]}function bh(a,b){a.g.push(b["finally"](function(){wc(a.g,b)}))}ah.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 ch(a){Yg.call(this);this.i=!1;this.l=new ah;this.g=new Set;this.h=new Set;this.j=a||null;this.m=!1}ra(ch,Yg);q=ch.prototype;q.Jd=function(a){this.m=a};function dh(a,b,c,d){c=c||eh;var e=fh[a];if(!e||c>=e.priority)fh[a]={priority:c,qf:b,sf:void 0===d?!1:d}}q.tf=function(a){this.g.add(a)};q.Kf=function(a){this.g["delete"](a)};q.Ee=function(){this.g.clear()};q.uf=function(a){this.h.add(a)};q.Lf=function(a){this.h["delete"](a)};q.Fe=function(){this.h.clear()}; -function gh(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,streamDataCallback:void 0===c?null:c}}q.destroy=function(){this.i=!0;this.g.clear();this.h.clear();return this.l.destroy()}; -q.request=function(a,b){var c=this,d=new hh;if(this.i){var e=Promise.reject(new O(2,7,7001));e["catch"](function(){});return new ih(e,function(){return Promise.resolve()},d)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?Zg(b.retryParameters):Pg();b.uris=Zg(b.uris);e=jh(this,a,b);var f=e.aa(function(){return kh(c,a,b,new Og(b.retryParameters,!1),0,null,d)}),g=f.aa(function(n){return lh(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.aa(function(n){var p=Date.now()-l,r=n.response;r.timeMs+=k;r.timeMs+=p;n.ff||!c.j||r.fromCache||a!=mh||c.j(r.timeMs,r.data.byteLength);return r},function(n){n&&(n.severity=2);throw n;});e=new ih(m.promise,function(){return m.abort()},d);bh(this.l,e);return e}; -function jh(a,b,c){var d=Ug(void 0),e={};a=t(a.g);for(var f=a.next();!f.done;e={Uc:e.Uc},f=a.next())e.Uc=f.value,d=d.aa(function(g){return function(){c.body&&(c.body=rb(c.body));return g.Uc(b,c)}}(e));return d.aa(void 0,function(g){if(g instanceof O&&7001==g.code)throw g;throw new O(2,1,1006,g);})} -function kh(a,b,c,d,e,f,g){a.m&&(c.uris[e]=c.uris[e].replace("http://","https://"));var h=new ne(c.uris[e]),k=h.Da,l=!1;k||(k=location.protocol,k=k.slice(0,-1),oe(h,k),c.uris[e]=h.toString());k=k.toLowerCase();var m=(k=fh[k])?k.qf:null;if(!m)return Sg(new O(2,1,1E3,h));var n=k.sf,p=null,r=null,u=!1,w;return Vg(Qg(d)).aa(function(){if(a.i)return Tg();w=Date.now();var x=m(c.uris[e],c,b,function(C,A,F){p&&p.stop();r&&r.T(D/1E3);a.j&&b==mh&&(a.j(C,A),l=!0,g.g=F)});if(!n)return x;var y=c.retryParameters.connectionTimeout; -y&&(p=new P(function(){u=!0;x.abort()}),p.T(y/1E3));var D=c.retryParameters.stallTimeout;D&&(r=new P(function(){u=!0;x.abort()}));return x}).aa(function(x){p&&p.stop();r&&r.stop();void 0==x.timeMs&&(x.timeMs=Date.now()-w);return{response:x,ff:l}},function(x){p&&p.stop();r&&r.stop();if(a.i)return Tg();u&&(x=new O(1,1,1003,c.uris[e],b));if(x instanceof O){if(7001==x.code)throw x;if(1010==x.code)throw f;if(1==x.severity){var y=new Q("retry",{error:x});a.dispatchEvent(y);e=(e+1)%c.uris.length;return kh(a, -b,c,d,e,x,g)}}throw x;})}function lh(a,b,c){var d=Ug(void 0),e={};a=t(a.h);for(var f=a.next();!f.done;e={Vc:e.Vc},f=a.next())e.Vc=f.value,d=d.aa(function(g){return function(){var h=c.response;h.data&&(h.data=rb(h.data));return g.Vc(b,h)}}(e));return d.aa(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);})}L("shaka.net.NetworkingEngine",ch);ch.prototype.request=ch.prototype.request;ch.prototype.destroy=ch.prototype.destroy; -ch.makeRequest=gh;ch.defaultRetryParameters=function(){return Pg()};ch.prototype.clearAllResponseFilters=ch.prototype.Fe;ch.prototype.unregisterResponseFilter=ch.prototype.Lf;ch.prototype.registerResponseFilter=ch.prototype.uf;ch.prototype.clearAllRequestFilters=ch.prototype.Ee;ch.prototype.unregisterRequestFilter=ch.prototype.Kf;ch.prototype.registerRequestFilter=ch.prototype.tf;ch.unregisterScheme=function(a){delete fh[a]};ch.registerScheme=dh;ch.prototype.setForceHTTPS=ch.prototype.Jd; -function hh(){this.g=0}ch.NumBytesRemainingClass=hh;function ih(a,b,c){Rg.call(this,a,b);this.h=c}ra(ih,Rg);ch.PendingRequest=ih;var mh=1;ch.RequestType={MANIFEST:0,SEGMENT:mh,LICENSE:2,APP:3,TIMING:4};var eh=3;ch.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:eh};var fh={};function nh(){}function oh(a){a=zb(a);return(new ne(a)).Ga}function ph(a,b,c){function d(h){tb(f).setUint32(g,h.byteLength,!0);g+=4;f.set(qb(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new O(2,6,6015);var e;"string"==typeof b?e=Cb(b,!0):e=b;a=zb(a);a=Cb(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}L("shaka.util.FairPlayUtils",nh);nh.initDataTransform=ph;nh.defaultGetContentId=oh;function qh(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 rh(a){var b={};a.forEach(function(c,d){b[d]=c});return b}function sh(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 th(a,b){var c=this;b=void 0===b?1:b;this.C=a;this.u=new Set;this.g=this.m=null;this.oa=this.L=!1;this.H=0;this.i=null;this.h=new hf;this.j=new Map;this.D=[];this.s=new He;this.o=null;this.l=function(d){c.s.reject(d);a.onError(d)};this.pa=new Map;this.X=new Map;this.S=new P(function(){return uh(c)});this.F=!1;this.I=[];this.N=!1;this.ca=(new P(function(){vh(c)})).Ba(b);this.s["catch"](function(){});this.J=new df(function(){return wh(c)})}q=th.prototype;q.destroy=function(){return this.J.destroy()}; -function wh(a){return K(function(b){switch(b.g){case 1:return a.h.release(),a.h=null,a.s.reject(),a.ca.stop(),a.ca=null,a.S.stop(),a.S=null,v(b,xh(a),2);case 2:if(!a.g){b.v(3);break}B(b,4);return v(b,a.g.setMediaKeys(null),6);case 6:wa(b,5);break;case 4:E(b);case 5:a.g=null;case 3:a.i=null,a.u.clear(),a.m=null,a.D=[],a.o=null,a.l=function(){},a.C=null,z(b)}})}q.configure=function(a){this.o=a};function yh(a,b,c,d){a.oa=!0;a.D=[];a.F=c;return zh(a,b,!!d)} -function Ah(a,b,c,d){a.D=c;a.F=0h&&(h+=Math.pow(2,32));h="0x"+h.toString(16)}a.l(new O(2,6,6006,f.message,f,h))}})}function $h(a,b,c){"skd"==b&&(b=c.serverCertificate,c=oh(a),a=ph(a,c,b));return a} -function Kh(a,b){var c,d,e,f,g,h,k,l,m,n,p,r,u,w;K(function(x){switch(x.g){case 1:return c=b.target,a.o.logLicenseExchange&&mc(b.message),d=a.j.get(c),e=a.i.licenseServerUri,f=a.o.advanced[a.i.keySystem],"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer),g=gh([e],a.o.retryParameters),g.body=b.message,g.method="POST",g.licenseRequestType=b.messageType,g.sessionId=c.sessionId,Sh(a.i.keySystem)&&ai(g),h=Date.now(),B(x,2),l=a.C.Bb.request(2,g),v(x, -l.promise,4);case 4:k=x.h;wa(x,3);break;case 2:return m=E(x),n=new O(2,6,6007,m),a.l(n),d&&d.Ka&&d.Ka.reject(n),x["return"]();case 3:if(a.J.g)return x["return"]();a.H+=(Date.now()-h)/1E3;a.o.logLicenseExchange&&mc(k.data);B(x,5);return v(x,c.update(k.data),7);case 7:wa(x,6);break;case 5:return p=E(x),r=new O(2,6,6008,p.message),a.l(r),d&&d.Ka&&d.Ka.reject(r),x["return"]();case 6:u=new Q("drmsessionupdate"),a.C.onEvent(u),d&&(d.Ka&&d.Ka.resolve(),w=new P(function(){d.loaded=!0;Zh(a)&&a.s.resolve()}), -w.T(bi)),z(x)}})}function ai(a){var b=xb(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=nc(b.getElementsByTagName("Challenge")[0].textContent)}else a.headers["Content-Type"]="text/xml; charset=utf-8"} -function Yh(a,b){var c=b.target,d=a.j.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if("string"==typeof h){var k=h;h=g;g=k}if(Sh(a.i.keySystem)&&16==h.byteLength&&navigator.userAgent.match(/Edge?\//)){k=tb(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=pc(h);a.pa.set(k,g)});var f=c.expiration-Date.now();(0>f||e&&1E3>f)&&d&&!d.Ka&&(a.j["delete"](c),c.close()["catch"](function(){})); -Zh(a)&&(a.s.resolve(),a.S.T(ci))}function uh(a){var b=a.pa,c=a.X;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.l(new O(2,6,6014));a.C.Dc(rh(c))} -function di(){var a,b,c,d,e,f,g,h;return K(function(k){return 1==k.g?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.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,p;return K(function(r){switch(r.g){case 1:return B(r,2),v(r,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=r.h,p=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,dc("Tizen 3")&&(p=!1),f.set(l,{persistentState:p}),v(r,m.createMediaKeys(),5);case 5:wa(r,0);break;case 2:E(r),f.set(l,null),z(r)}})},h=a.map(function(l){return g(l)}),v(k,Promise.all(h),2)):k["return"](rh(f))})} -function ei(a){var b;return K(function(c){if(1==c.g)return b=new Promise(function(d,e){(new P(e)).T(fi)}),B(c,2),v(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return wa(c,0);E(c);z(c)})} -function xh(a){var b;return K(function(c){b=Array.from(a.j.entries());a.j.clear();return v(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return K(function(g){if(1==g.g)return B(g,2),a.oa||a.D.includes(e.sessionId)||"persistent-license"!==f.type?v(g,ei(e),5):v(g,e.remove(),5);if(2!=g.g)return wa(g,0);E(g);z(g)})})),0)})} -function hg(a,b){var c=b.audio,d=b.video;if(c&&c.encrypted&&(c=Vh(c),!Th(a,c))||d&&d.encrypted&&(d=Vh(d),!Th(a,d)))return!1;var e=Rh(a.i);d=Fh(b);return 0==d.length||d.some(function(f){return f.keySystem==e})} -function gi(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=t(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([].concat(ja(e.keyIds),ja(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 Fh(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])} -function vh(a){a.j.forEach(function(b,c){var d=b.xd,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.C.onExpirationUpdated(c.sessionId,e),b.xd=e)})}function Zh(a){a=a.j.values();return hb(a,function(b){return b.loaded})} -function Eh(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=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)} -function Xh(a,b,c,d,e){var f={};a=t(a);for(var g=a.next();!g.done;f={xa:f.xa},g=a.next()){f.xa=g.value;b.includes(f.xa.licenseServerUri)||b.push(f.xa.licenseServerUri);f.xa.serverCertificate&&(c.some(function(l){return function(m){return ob(m,l.xa.serverCertificate)}}(f))||c.push(f.xa.serverCertificate));if(f.xa.initData){g={};for(var h=t(f.xa.initData),k=h.next();!k.done;g={fc:g.fc},k=h.next())g.fc=k.value,d.some(function(l){return function(m){var n=l.fc;return m.keyId&&m.keyId==n.keyId?!0:m.initDataType== -n.initDataType&&ob(m.initData,n.initData)}}(g))||d.push(g.fc)}if(f.xa.keyIds)for(g=t(f.xa.keyIds),h=g.next();!h.done;h=g.next())e.add(h.value)}} -function Gh(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),c.sessionType&&(a.sessionType=c.sessionType);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==a.keySystem&&(a.keySystem="com.chromecast.playready")}}var fi=1,bi=5,ci=.5,hi=new ub(function(){return rb(new Uint8Array([0]))});function ii(){}function ji(a,b,c,d){var e,f,g,h;return K(function(k){if(1==k.g){if(d&&(e=ki[d.toLowerCase()]))return k["return"](e);if(f=li(a))if(g=mi[f])return k["return"](g);return d?k.v(2):v(k,ni(a,b,c),3)}if(2!=k.g&&(d=k.h)&&(h=ki[d]))return k["return"](h);throw new O(2,4,4E3,a);})} -function ni(a,b,c){var d,e,f;return K(function(g){if(1==g.g)return d=gh([a],c),d.method="HEAD",v(g,b.request(0,d).promise,2);e=g.h;f=e.headers["content-type"];return g["return"](f?f.toLowerCase().split(";").shift():"")})}function li(a){a=(new ne(a)).wa.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()}L("shaka.media.ManifestParser",ii);ii.unregisterParserByMime=function(a){delete ki[a]};ii.registerParserByMime=function(a,b){ki[a]=b}; -ii.registerParserByExtension=function(a,b){mi[a]=b};var ki={},mi={};function oi(a,b,c){this.ma=a;this.ja=b;this.da=c}oi.prototype.Tb=function(){return this.ja};oi.prototype.Pb=function(){return this.da};function pi(a,b){return a&&b?a.Tb()==b.Tb()&&a.Pb()==b.Pb()&&yc(a.ma(),b.ma()):a==b}L("shaka.media.InitSegmentReference",oi);oi.prototype.getEndByte=oi.prototype.Pb;oi.prototype.getStartByte=oi.prototype.Tb; -function qi(a,b,c,d,e,f,g,h,k,l){l=void 0===l?[]:l;this.startTime=a;this.endTime=b;this.i=c;this.ja=d;this.da=e;this.h=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.g=l}q=qi.prototype;q.ma=function(){return this.i()};q.$e=function(){return this.startTime};q.Ne=function(){return this.endTime};q.Tb=function(){return this.ja};q.Pb=function(){return this.da};L("shaka.media.SegmentReference",qi);qi.prototype.getEndByte=qi.prototype.Pb;qi.prototype.getStartByte=qi.prototype.Tb; -qi.prototype.getEndTime=qi.prototype.Ne;qi.prototype.getStartTime=qi.prototype.$e;qi.prototype.getUris=qi.prototype.ma;function T(a,b,c){this.j=a;this.Gc=b;this.m=this.l=Infinity;this.g=1;this.h=this.i=null;this.s=0;this.u=!0;this.D=0;this.F=void 0===c?!0:c;this.H=0}q=T.prototype;q.getDuration=function(){return this.l};q.Te=function(){return this.g};q.Ja=function(a){this.l=a};q.Ze=function(){return this.j};q.pe=function(a){this.s=a};q.ac=function(a){this.u=a};q.Md=function(a){this.m=a};q.Ff=function(a){this.Gc=a};q.Me=function(){return this.Gc}; -q.Cb=function(a){if(0!=a.length){var b=a[a.length-1].endTime;this.vd(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.j&&this.F&&(this.j=(Date.now()+this.s)/1E3-this.h-this.g)}};q.vd=function(a){this.i=null==this.i?a:Math.min(this.i,a)};q.ud=function(a){this.g=Math.max(this.g,a)};q.offset=function(a){null!=this.i&&(this.i+=a);null!=this.h&&(this.h+=a)};q.Y=function(){return Infinity==this.l&&!this.u}; -q.ib=function(){return Infinity!=this.l&&!this.u};q.Ya=function(){return Math.max(this.D,this.fb()-this.m)};q.qe=function(a){this.D=a};q.fb=function(){return this.Y()||this.ib()?Math.min(Math.max(0,(Date.now()+this.s)/1E3-this.g-this.j)+this.H,this.l):this.l};q.Sb=function(a){var b=Math.max(this.i,this.D);return Infinity==this.m?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.fb()-this.m+a,this.Qa()))};q.xb=function(){return this.Sb(0)}; -q.Qa=function(){return Math.max(0,this.fb()-(this.Y()||this.ib()?this.Gc:0))};q.te=function(){return null==this.j||null!=this.h&&this.F?!1:!0};q.oe=function(a){this.H=a};L("shaka.media.PresentationTimeline",T);T.prototype.setAvailabilityTimeOffset=T.prototype.oe;T.prototype.usingPresentationStartTime=T.prototype.te;T.prototype.getSeekRangeEnd=T.prototype.Qa;T.prototype.getSeekRangeStart=T.prototype.xb;T.prototype.getSafeSeekRangeStart=T.prototype.Sb;T.prototype.getSegmentAvailabilityEnd=T.prototype.fb; -T.prototype.setUserSeekStart=T.prototype.qe;T.prototype.getSegmentAvailabilityStart=T.prototype.Ya;T.prototype.isInProgress=T.prototype.ib;T.prototype.isLive=T.prototype.Y;T.prototype.offset=T.prototype.offset;T.prototype.notifyMaxSegmentDuration=T.prototype.ud;T.prototype.notifyMinSegmentStartTime=T.prototype.vd;T.prototype.notifySegments=T.prototype.Cb;T.prototype.getDelay=T.prototype.Me;T.prototype.setDelay=T.prototype.Ff;T.prototype.setSegmentAvailabilityDuration=T.prototype.Md; -T.prototype.setStatic=T.prototype.ac;T.prototype.setClockOffset=T.prototype.pe;T.prototype.getPresentationStartTime=T.prototype.Ze;T.prototype.setDuration=T.prototype.Ja;T.prototype.getMaxSegmentDuration=T.prototype.Te;T.prototype.getDuration=T.prototype.getDuration;function ri(a,b){this.j=a;this.m=si(a);this.g=a.g.currentTime;this.l=Date.now()/1E3;this.h=!1;this.s=b;this.i=function(){}}ri.prototype.release=function(){this.j=null;this.i=function(){}};function ti(a,b){a.i=b}function ui(a){this.g=a}function si(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(ke(a.g.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 vi(a,b,c,d,e){var f=this;this.g=a;this.D=b;this.o=c;this.u=e;this.h=new hf;this.s=!1;this.F=a.readyState;this.j=!1;this.i=d;this.m=!1;this.h.B(a,"waiting",function(){return wi(f)});this.l=(new P(function(){wi(f)})).Ba(.25)}vi.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.l&&(this.l.stop(),this.l=null);this.i&&(this.i.release(),this.i=null);this.g=this.D=this.u=null};vi.prototype.yd=function(){this.m=!0;wi(this)}; -function wi(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.s)return}else a.s=!1;if(!a.g.paused||0==a.g.currentTime){a.g.readyState!=a.F&&(a.j=!1,a.F=a.g.readyState);var b;if(!(b=!a.i)){b=a.i;var c=b.j,d=si(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.m!=d)b.l=f,b.g=e,b.m=d,b.h=!1;e=f-b.l;if(d=e>=b.s&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime;b=!d}if(b){var g=a.o.smallGapLimit;e=a.g.currentTime;b=a.g.buffered;c=le(b,e,a.o.gapDetectionThreshold);if(!(null==c||0==c&&!a.m||(d=b.start(c),d>= -a.D.Qa()))){f=d-e;g=f<=g;var h=!1;.001>f||(g||a.j||(a.j=!0,e=new Q("largegap",{currentTime:e,gapSize:f}),e.cancelable=!0,a.u(e),a.o.jumpLargeGaps&&!e.defaultPrevented&&(h=!0)),!g&&!h)||(0!=c&&b.end(c-1),a.g.currentTime=d)}}}}};function xi(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=yi.value().get(b),c.ua(a,b,d))}var yi=new ub(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function zi(a,b,c){var d=this;this.g=a;this.l=b;this.j=c;this.m=!1;this.h=new hf;this.i=new Ai(a);xi(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Bi(d,d.j)})}zi.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 Ci(a){return a.m?a.g.currentTime:a.j}function Di(a,b){0Math.abs(a.g.currentTime-b)?Fi(a):(a.h.ua(a.g,"seeking",function(){Fi(a)}),Ei(a.i,0==a.g.currentTime?b:a.g.currentTime))}function Fi(a){a.m=!0;a.h.B(a.g,"seeking",function(){return a.l()})}function Ai(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--)})}Ai.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null}; -function Ei(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.Ba(.1)};function Gi(a){function b(){null==c.i?c.j=!0:(c.h.ua(c.g,"seeking",function(){c.j=!0}),c.g.currentTime=Math.max(0,c.g.currentTime+c.i))}var c=this;this.g=a;this.j=!1;this.i=null;this.h=new hf;xi(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.h,function(){b()})}Gi.prototype.release=function(){this.h&&(this.h.release(),this.h=null);this.g=null};Gi.prototype.m=function(a){this.i=this.j?this.i:a};Gi.prototype.l=function(){return(this.j?this.g.currentTime:this.i)||0};Gi.prototype.F=function(){}; -function Hi(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.H=b.minBufferTime||0;this.o=c;this.D=e;this.u=null;this.j=new vi(a,b.presentationTimeline,c,Ii(a,c),f);this.h=new zi(a,function(){a:{var h=g.j;h.s=!0;h.m=!1;h.j=!1;var k=Ci(g.h);h=Ji(g,k);if(.001l-k&&(k= -l-3);ha.g.getDuration()?a.g.xb():a.g.Qa():0>b&&(b=a.g.Qa()+b);return Mi(a,Li(a,b))}Hi.prototype.F=function(){this.j.yd()};function Mi(a,b){var c=a.g.getDuration();return b>=c?c-a.o.durationBackoff:b}function Ji(a,b){var c=Math.max(a.H,a.o.rebufferingGoal),d=a.o.safeSeekOffset,e=a.g.xb(),f=a.g.Qa(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Sb(c),k=a.g.Sb(d);c=a.g.Sb(c+d);return b>=g?Mi(a,b):b>f?f:b=h||ie(a.i.buffered,b)?b:c} -function Li(a,b){var c=a.g.xb();if(bc?c:b}function Ii(a,b){if(!b.stallEnabled)return null;var c=b.stallSkip,d=new ri(new ui(a),b.stallThreshold);ti(d,function(){c?a.currentTime+=c:(a.pause(),a.play())});return d};function U(a){this.g=a;this.h=null;this.i=0;this.j=!1}q=U.prototype;q.destroy=function(){Hb("shaka.media.SegmentIndex","Please use release() instead of destroy().");this.release();return Promise.resolve()};q.release=function(){this.j||(this.g=[],this.h&&this.h.stop(),this.h=null)};q.jf=function(){this.j=!0}; -q.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c=d.startTime&&aa||a>=this.g.length?null:this.g[a]};q.offset=function(a){if(!this.j)for(var b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.timestampOffset+=a}; -q.Bc=function(a){!this.j&&a.length&&(this.g=this.g.filter(function(b){return b.startTimeb&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.Bc(a);this.cb(b)};q.cb=function(a){if(!this.j){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.i+=b-this.g.length}}; -q.Xa=function(a,b,c){c=void 0===c?!1:c;if(!this.j){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.i++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],this.g[this.g.length-1]=new qi(a.startTime,b,a.i,a.ja,a.da,a.h,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd))}}; -q.Jc=function(a,b){var c=this;this.j||(this.h&&this.h.stop(),this.h=new P(function(){var d=b();d?c.g.push.apply(c.g,ja(d)):(c.h.stop(),c.h=null)}),this.h.Ba(a))};U.prototype[Symbol.iterator]=function(){return this.wb(0)};U.prototype.wb=function(a){var b=this.find(a);if(null==b)return null;b--;var c=this.get(b+1),d=-1;if(c&&0=f.startTime&&a=a.g.length&&(this.h++,this.g=0,a=this.i.get(this.h));return a&&0h.endTime?Vi:Wi;d.j.set(h,l);for(var m=t(d.m),n=m.next();!n.done;n=m.next())n=n.value,n.qb==k&&n.pb==l&&n.hb(h,f)}}};function Xi(a){var b=this;this.h=function(){};this.g=new Set;this.j=a;this.i=(new P(function(){for(var c=b.j(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTimeh?!0:!1):f=!1;f&&b.va.abort();z(e)})}function qj(a,b){b.Nb||b.ob||(b.Ra?(b.ob=!0,b.sc=0):null==xf(a.C.P,b.type)?null==b.La&&ij(a,b,0):(dj(b),oj(a,b,!1,0)["catch"](function(c){if(a.C)a.C.onError(c)})))} -function fj(a){var b,c,d,e,f,g,h,k,l,m;return K(function(n){if(1==n.g){b=Ge;if(!a.h)throw new O(2,5,5006);c=new Map;d=new Set;a.h.audio&&(c.set(b.ab,a.h.audio),d.add(a.h.audio));a.h.video&&(c.set(b.Na,a.h.video),d.add(a.h.video));a.i&&(c.set(b.fa,a.i),d.add(a.i));e=a.C.P;f=a.o.forceTransmuxTS;return v(n,e.init(c,f),2)}ef(a.J);var p=a.A.presentationTimeline.getDuration();Infinity>p?a.C.P.Ja(p):a.C.P.Ja(Math.pow(2,32));g=t(c.keys());for(h=g.next();!h.done;h=g.next())k=h.value,l=c.get(k),a.g.has(k)|| -(m=hj(l),a.g.set(k,m),ij(a,m,0));z(n)})}function hj(a){return{stream:a,type:a.type,ba:null,Aa:null,Ac:null,qd:null,pd:null,od:null,mb:null,endOfStream:!1,Ra:!1,La:null,ob:!1,sc:0,Mc:!1,Nb:!1,Cd:!1,Ub:!1,va:null}} -bj.prototype.Wb=function(a){var b=this,c,d,e,f,g;return K(function(h){switch(h.g){case 1:ef(b.J);if(a.Ra||null==a.La||a.Nb)return h["return"]();a.La=null;if(!a.ob){h.v(2);break}return v(h,oj(b,a,a.Mc,a.sc),3);case 3:return h["return"]();case 2:if(a.stream.segmentIndex){h.v(4);break}c=a.stream;return v(h,a.stream.createSegmentIndex(),5);case 5:if(c!=a.stream)return null==a.La&&ij(b,a,0),h["return"]();case 4:B(h,6);d=rj(b,a);null!=d&&(ij(b,a,d),a.Ub=!1);wa(h,7);break;case 6:return e=E(h),v(h,sj(b,e), -8);case 8:return h["return"]();case 7:f=Array.from(b.g.values());if(!b.m||!f.every(function(k){return k.endOfStream})){h.v(0);break}return v(h,b.C.P.endOfStream(),10);case 10:ef(b.J),g=b.C.P.getDuration(),0!=g&&g=a.A.presentationTimeline.getDuration())return b.endOfStream=!0,"video"==b.type&&(c=a.g.get(Fe))&&tj(c)&&(c.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return.5;e=zf(a.C.P,b.type);e=uj(a,b,c,e);if(!e)return 1;f=Infinity;var g=Array.from(a.g.values());g=t(g);for(var h= -g.next();!h.done;h=g.next())h=h.value,tj(h)||h.ba&&!h.ba.current()||(f=Math.min(f,h.Aa?h.Aa.endTime:c));if(d>=f+a.A.presentationTimeline.g)return 1;vj(a,b,c,e)["catch"](function(){});return null} -function uj(a,b,c,d){if(b.ba)return b.ba.current();if(b.Aa||d)return b.ba=b.stream.segmentIndex.wb(b.Aa?b.Aa.endTime:d),b.ba&&b.ba.next().value;a=a.o.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.ba=b.stream.segmentIndex.wb(d),e=b.ba&&b.ba.next().value);e||(b.ba=b.stream.segmentIndex.wb(c),e=b.ba&&b.ba.next().value);return e} -function vj(a,b,c,d){var e,f,g,h,k,l,m,n,p,r,u,w,x;return K(function(y){switch(y.g){case 1:e=Ge;f=b.stream;g=b.ba;b.Ra=!0;h=wj(a,b,d);B(y,2);k="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;l=window.ReadableStream;if(a.o.lowLatencyMode&&l&&k)return p=new Uint8Array(0),r=function(D){var C,A,F;return K(function(G){if(1==G.g)return v(G,h,2);ef(a.J);if(a.l)return G["return"]();p=xj(p,D);C=!1;A=0;(new Qb).box("mdat",function(H){A=H.size+H.start;C=!0}).parse(p,!1,!0);if(!C)return G.v(0);F=p.subarray(0, -A);p=p.subarray(A);return v(G,yj(a,b,c,f,d,F),0)})},v(y,zj(a,b,d,r),5);m=zj(a,b,d);return v(y,Promise.all([h,m]),6);case 6:return n=y.h,ef(a.J),a.l?y["return"]():b.ob?(b.Ra=!1,ij(a,b,0),y["return"]()):v(y,yj(a,b,c,f,d,n[1]),5);case 5:ef(a.J);if(a.l)return y["return"]();b.Aa=d;g.next();b.Ra=!1;b.Cd=!1;u=a.C.P.vc();w=u[b.type];cb(JSON.stringify(w));b.ob||a.C.yd();ij(a,b,0);wa(y,0);break;case 2:x=E(y);ef(a.J,x);if(a.l)return y["return"]();b.Ra=!1;if(b.type==e.fa&&a.o.ignoreTextStreamFailures)a.g["delete"](e.fa), -y.v(0);else if(7001==x.code)b.Ra=!1,b.La=null,ij(a,b,0),y.v(0);else if(3017==x.code)Aj(a,b,x),y.v(0);else if(1001==x.code&&x.data&&404==x.data[1])b.Ra=!1,b.La=null,ij(a,b,1),y.v(0);else return b.Ub=!0,x.severity=2,v(y,sj(a,x),0)}})}function xj(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c} -function Aj(a,b,c){if(!Array.from(a.g.values()).some(function(e){return e!=b&&e.Cd})){var d=Math.round(100*a.j);if(20=g?h["return"]():v(h,a.C.P.remove(b.type,e,e+g),2)}ef(a.J);z(h)})}function tj(a){return a&&a.type==Fe&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)} -function zj(a,b,c,d){var e,f,g,h;return K(function(k){if(1==k.g)return e=mh,f=aj(c.ma(),c.ja,c.da,a.o.retryParameters,d),g=a.C.Bb.request(e,f),b.va=g,v(k,g.promise,2);h=k.h;b.va=null;return k["return"](h.data)})} -function oj(a,b,c,d){var e,f;return K(function(g){if(1==g.g)return b.ob=!1,b.Mc=!1,b.sc=0,b.Nb=!0,b.Aa=null,b.Ac=null,b.ba=null,d?(e=a.C.yc(),f=a.C.P.getDuration(),v(g,a.C.P.remove(b.type,e+d,f),3)):v(g,Gf(a.C.P,b.type),4);if(3!=g.g)return ef(a.J),c?v(g,a.C.P.flush(b.type),3):g.v(3);ef(a.J);b.Nb=!1;b.endOfStream=!1;ij(a,b,0);z(g)})} -function ij(a,b,c){var d=b.type;if(d!=Fe||a.g.has(d))b.La=(new Zb(function(){var e;return K(function(f){if(1==f.g)return B(f,2),v(f,a.Wb(b),4);if(2!=f.g)return wa(f,0);e=E(f);if(a.C)a.C.onError(e);z(f)})})).T(c)}function dj(a){null!=a.La&&(a.La.stop(),a.La=null)}function ej(a){return K(function(b){return a.va?v(b,a.va.abort(),0):b.v(0)})}function sj(a,b){return K(function(c){if(1==c.g)return v(c,Qg(a.s),2);ef(a.J);a.C.onError(b);b.handled||a.o.failureCallback(b);z(c)})};function Dj(a,b){var c=Ej(),d=this;this.j=b;this.i=a;this.l=c;this.s=null;this.m=[];this.h=this.g=null;this.u=Promise.resolve().then(function(){return Fj(d)});this.J=new df(function(){return Gj(d)})}Dj.prototype.destroy=function(){return this.J.destroy()};function Gj(a){var b,c,d;return K(function(e){if(1==e.g)return a.h&&a.h.abort(),Hj(a),v(e,a.u,2);a.g&&a.g.Ha.jb();b=t(a.m);for(c=b.next();!c.done;c=b.next())d=c.value,d.Ha.jb();a.g=null;a.m=[];a.j=null;z(e)})} -function Ij(a,b){var c={Db:function(){},Cc:function(){},jb:function(){},onError:function(){},Ec:function(){},tg:function(){}};a.m.push({create:b,Ha:c});a.h&&a.h.abort();Hj(a);return c} -function Fj(a){return K(function(b){if(a.J.g)b=b.v(0);else{if(0==a.m.length||a.g&&!a.g.gb)var c=!1;else{a.g&&(a.g.Ha.jb(),a.g=null);c=a.m.shift();var d=c.create(a.l);d?(c.Ha.Db(),a.g={node:d.node,payload:d.payload,gb:d.gb,Ha:c.Ha}):c.Ha.Ec();c=!0}c?c=Promise.resolve():a.g?c=Jj(a):(a.j.mf(a.i),a.s=new He,c=a.s);b=v(b,c,1)}return b})} -function Jj(a){var b,c;return K(function(d){switch(d.g){case 1:return a.i=a.j.Ve(a.i,a.l,a.g.node,a.g.payload),B(d,2),a.h=a.j.Je(a.i,a.l,a.g.payload),v(d,a.h.promise,4);case 4:a.h=null;a.i==a.g.node&&(a.g.Ha.Cc(),a.g=null);wa(d,0);break;case 2:b=E(d);if(7001==b.code)a.g.Ha.jb();else a.g.Ha.onError(b);a.g=null;a.h=null;c=a;return v(d,a.j.handleError(a.l,b),5);case 5:c.i=d.h,z(d)}})}function Hj(a){a.s&&(a.s.resolve(),a.s=null)};function Kj(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"}q=Kj.prototype;q.remove=function(a,b){if(!this.g)return!1;Lj(this.g,function(c){return c.startTimea});return!0}; -q.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+""},"");return g.lineBreak||g.spacer?(g.spacer&&Hb("shaka.extern.Cue","Please use lineBreak instead of spacer."),"\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):[];var e={};c=t(c);for(var f=c.next();!f.done;e={rb:e.rb},f=c.next())e.rb=f.value,a.some(function(g){return function(h){return h.startTime==g.rb.startTime&&h.endTime==g.rb.endTime&&h.text==g.rb.payload?!0:!1}}(e))||(f=Mj(e.rb))&&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)};q.destroy=function(){this.g&&(Lj(this.g,function(){return!0}),this.g.mode="disabled");this.g=null;return Promise.resolve()};q.isTextVisible=function(){return"showing"==this.g.mode};q.setTextVisibility=function(a){this.g.mode=a?"showing":"hidden"}; -function Mj(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 Lj(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}L("shaka.text.SimpleTextDisplayer",Kj);Kj.prototype.setTextVisibility=Kj.prototype.setTextVisibility;Kj.prototype.isTextVisible=Kj.prototype.isTextVisible;Kj.prototype.destroy=Kj.prototype.destroy;Kj.prototype.append=Kj.prototype.append;Kj.prototype.remove=Kj.prototype.remove;function Nj(){}function Oj(a){for(;a.firstChild;)a.removeChild(a.firstChild)}L("shaka.util.Dom",Nj);Nj.removeAllChildren=Oj;function Pj(a,b){var c=this;this.u=!1;this.j=[];this.g=a;this.m=b;this.i=document.createElement("div");this.i.classList.add("shaka-text-container");this.i.style.textAlign="center";this.i.style.display="flex";this.i.style.flexDirection="column";this.i.style.alignItems="center";this.i.style.justifyContent="flex-end";this.m.appendChild(this.i);this.D=(new P(function(){Qj(c)})).Ba(.25);this.l=new Map;this.h=new hf;this.h.B(document,"fullscreenchange",function(){Qj(c,!0)});this.s=null;"ResizeObserver"in -window&&(this.s=new ResizeObserver(function(){Qj(c,!0)}),this.s.observe(this.i))}q=Pj.prototype;q.append=function(a){var b=[].concat(ja(this.j)),c={};a=t(a);for(var d=a.next();!d.done;c={dc:c.dc},d=a.next())c.dc=d.value,b.some(function(e){return function(f){return Lc(f,e.dc)}}(c))||this.j.push(c.dc);Qj(this)}; -q.destroy=function(){this.m.removeChild(this.i);this.i=null;this.u=!1;this.j=[];this.D&&this.D.stop();this.l.clear();this.h&&(this.h.release(),this.h=null);this.s&&(this.s.disconnect(),this.s=null)};q.remove=function(a,b){if(!this.i)return!1;this.j=this.j.filter(function(c){return c.startTime=b});Qj(this);return!0};q.isTextVisible=function(){return this.u};q.setTextVisibility=function(a){this.u=a}; -function Qj(a,b){function c(h){return a.j.includes(h)&&a.u&&h.startTime<=d&&h.endTime>d}b=void 0===b?!1:b;for(var d=a.g.currentTime,e=t(a.l.keys()),f=e.next();!f.done;f=e.next())if(f=f.value,!c(f)||b){var g=a.l.get(f);a.i.removeChild(g);a.l["delete"](f)}e=new Set(a.l.values());f=t(Array.from(a.i.childNodes));for(g=f.next();!g.done;g=f.next())g=g.value,e.has(g)||a.i.removeChild(g);e=a.j.filter(function(h){return c(h)&&!a.l.has(h)}).sort(function(h,k){return h.startTime!=k.startTime?h.startTime-k.startTime: -h.endTime-k.endTime});e=t(e);for(f=e.next();!f.done;f=e.next())f=f.value,g=Rj(a,a.i,f,!1),a.l.set(f,g)}function Rj(a,b,c,d){var e=d?"span":"div";if(c.lineBreak||c.spacer)c.spacer&&Hb("shaka.extern.Cue","Please use lineBreak instead of spacer."),e="br";var f=document.createElement(e);if("br"!=e)for(Sj(a,f,c,d),c=t(c.nestedCues),d=c.next();!d.done;d=c.next())Rj(a,f,d.value,!0);b.appendChild(f);return f} -function Sj(a,b,c,d){var e=b.style,f=0==c.nestedCues.length;e.whiteSpace="pre-wrap";var g=c.payload.replace(/\s+$/g,function(h){return"\u00a0".repeat(h.length)});d?b.textContent=g:g.length&&(e=document.createElement("span"),e.textContent=g,b.appendChild(e),e=e.style);e.backgroundColor=c.backgroundColor;e.border=c.border;e.color=c.color;e.direction=c.direction;e.opacity=c.opacity;e.paddingLeft=Tj(c.linePadding,c,a.m);e.paddingRight=Tj(c.linePadding,c,a.m);c.backgroundImage&&(e.backgroundImage="url('"+ -c.backgroundImage+"')",e.backgroundRepeat="no-repeat",e.backgroundSize="contain",e.backgroundPosition="center",""==c.backgroundColor&&(e.backgroundColor="transparent"));e.verticalAlign="before"==c.displayAlign?"top":"center"==c.displayAlign?"middle":"bottom";f||(e.margin="0");e.fontFamily=c.fontFamily;e.fontWeight=c.fontWeight.toString();e.fontStyle=c.fontStyle;e.letterSpacing=c.letterSpacing;e.fontSize=Tj(c.fontSize,c,a.m);c.line?1==c.lineInterpretation&&(e.position="absolute",c.writingMode==Fc? -c.lineAlign==Hc?e.top=c.line+"%":"end"==c.lineAlign&&(e.bottom=c.line+"%"):"vertical-lr"==c.writingMode?c.lineAlign==Hc?e.left=c.line+"%":"end"==c.lineAlign&&(e.right=c.line+"%"):c.lineAlign==Hc?e.right=c.line+"%":"end"==c.lineAlign&&(e.left=c.line+"%")):c.region&&c.region.id&&(!d&&!f||c.backgroundImage)&&(a=c.region.widthUnits==Sc?"%":"px",b=c.region.viewportAnchorUnits==Sc?"%":"px",e.height=c.region.height+(c.region.heightUnits==Sc?"%":"px"),e.width=c.region.width+a,e.position="absolute",e.top= -c.region.viewportAnchorY+b,e.left=c.region.viewportAnchorX+b);e.lineHeight=c.lineHeight;c.position&&(c.writingMode==Fc?e.paddingLeft=c.position:e.paddingTop=c.position);"line-left"==c.positionAlign?e.cssFloat="left":"line-right"==c.positionAlign&&(e.cssFloat="right");e.textAlign=c.textAlign;e.textDecoration=c.textDecoration.join(" ");e.writingMode=c.writingMode;"writingMode"in document.documentElement.style&&e.writingMode==c.writingMode||(e.webkitWritingMode=c.writingMode);c.size&&(c.writingMode== -Fc?e.width=c.size+"%":e.height=c.size+"%")}function Tj(a,b,c){var d=(d=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(d[1]),Jf:d[2]}:null;if(!d)return a;var e=d.value;switch(d.Jf){case "%":return e/100*c.clientHeight/b.cellResolution.rows+"px";case "c":return c.clientHeight*e/b.cellResolution.rows+"px";default:return a}}L("shaka.text.UITextDisplayer",Pj);Pj.prototype.setTextVisibility=Pj.prototype.setTextVisibility;Pj.prototype.isTextVisible=Pj.prototype.isTextVisible; -Pj.prototype.remove=Pj.prototype.remove;Pj.prototype.destroy=Pj.prototype.destroy;Pj.prototype.append=Pj.prototype.append;function Uj(a){function b(f){var g=[],h=700<=f.fontWeight,k="italic"==f.fontStyle,l=f.textDecoration.includes("underline");h&&g.push("b");k&&g.push("i");l&&g.push("u");h=g.reduce(function(m,n){return m+"<"+n+">"},"");g=g.reduceRight(function(m,n){return m+""},"");return f.lineBreak||f.spacer?(f.spacer&&Hb("shaka.text.Cue","Please use lineBreak instead of spacer."),"\n"):f.nestedCues.length?f.nestedCues.map(b).join(""):h+f.payload+g}var c=a.map(function(f){if(f.nestedCues.length){var g=f.clone(); -g.nestedCues=[];g.payload=b(f);return g}return f});a="WEBVTT\n\n";c=t(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=function(f){var g=Math.floor(f/3600),h=Math.floor(f/60%60),k=Math.floor(f%60);f=Math.floor(1E3*f%1E3);return(10>g?"0":"")+g+":"+(10>h?"0":"")+h+":"+(10>k?"0":"")+k+"."+(100>f?10>f?"00":"0":"")+f};a+=e(d.startTime)+" --\x3e "+e(d.endTime)+"\n";a+=d.payload+"\n\n"}return a}L("shaka.text.WebVttGenerator",function(){});function Vj(){} -function Wj(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]=Zg(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=Zg(l)),k=Wj(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 "+ -k),g=!1)}return g}function Xj(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}L("shaka.util.ConfigUtils",Vj);Vj.convertToConfigObject=Xj;Vj.mergeConfigObjects=Wj;function Yj(){} -function Zj(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&(a=360);var b={retryParameters:Pg(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:$h,logLicenseExchange:!1,updateExpirationTime:1},c={retryParameters:Pg(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1, -autoCorrectDrift:!0,initialSegmentLimit:1E3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"}}, -hls:{ignoreTextStreamFailures:!1,useFullSegmentsForStartTime:!1}},d={retryParameters:Pg(),failureCallback:function(g){return[g]},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,smallGapLimit:.5,jumpLargeGaps:!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};if(navigator.userAgent.match(/Edge\//)||ec()||fc())d.gapDetectionThreshold=.5;if(dc("Web0S")||ec()||fc())d.stallSkip=0;var e={trackSelectionCallback:function(g){return K(function(h){return h["return"](g)})},downloadSizeCallback:function(g){var h;return K(function(k){if(1==k.g)return navigator.storage&&navigator.storage.estimate?v(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[g, -h]},usePersistentLicense:!0},f={drm:b,manifest:c,streaming:d,offline:e,abrFactory:function(){return new yg},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}},preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"", -preferredAudioChannelCount:2,preferForcedSubs:!1,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,useMediaCapabilities:!1,textDisplayFactory:function(){return null}};e.trackSelectionCallback=function(g){return K(function(h){return h["return"](ak(g,f.preferredAudioLanguage))})};return f} -function bk(a,b,c){var d={".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),individualizationServer:""}};return Wj(a,b,c||Zj(),d,"")} -function ak(a,b){var c=a.filter(function(h){return"variant"==h.type}),d=[],e=Sf(b,c.map(function(h){return h.language}));e&&(d=c.filter(function(h){return Mf(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=t(a);for(g=d.next();!g.done;g=d.next())g=g.value,g.type!=Fe&&"image"!=g.type||c.push(g);return c}L("shaka.util.PlayerConfiguration",Yj);Yj.mergeConfigObjects=bk;function ck(){this.g=null;this.h=[]}function dk(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 ek(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} -function fk(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 gk(){this.i=this.h=null;this.g=[]}function hk(a,b,c){a.h!=b&&(a.h=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}))}function ik(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 jk(){this.s=this.u=this.I=this.F=this.m=this.j=this.H=this.l=this.i=this.L=this.N=this.S=this.D=this.X=NaN;this.h=new ck;this.g=new gk};function V(a,b){Yg.call(this);var c=this;this.l=kk;this.kc=this.g=null;this.X=!1;this.h=new hf;this.Zc=this.u=this.Va=this.A=this.pc=this.s=this.i=this.cc=this.H=this.lc=this.F=this.Fa=this.D=this.I=this.m=this.O=null;this.gd=1E9;this.o=lk(this);this.fd={width:Infinity,height:Infinity};this.j=null;this.oa=new Gg(this.o.preferredAudioLanguage,this.o.preferredVariantRole,this.o.preferredAudioChannelCount);this.pa=this.o.preferredTextLanguage;this.Wa=this.o.preferredTextRole;this.mc=this.o.preferForcedSubs; -this.$c=[];b&&b(this);this.O=mk(this);this.O.Jd(this.o.streaming.forceHTTPS);this.L=null;nk&&(this.L=Ob(nk));this.h.B(window,"online",function(){c.Dd()});this.ra={name:"detach"};this.Oa={name:"attach"};this.S={name:"unload"};this.kd={name:"manifest-parser"};this.ed={name:"manifest"};this.Ea={name:"media-source"};this.cd={name:"drm-engine"};this.N={name:"load"};this.ld={name:"src-equals-drm-engine"};this.Ma={name:"src-equals"};var d=new Map;d.set(this.Oa,function(e,f){return Vg(ok(c,e,f))});d.set(this.ra, -function(e){e.G&&(c.h.Ca(e.G,"error"),e.G=null);c.g=null;e=Promise.resolve();return Vg(e)});d.set(this.S,function(e){return Vg(pk(c,e))});d.set(this.Ea,function(e){e=qk(c,e);return Vg(e)});d.set(this.kd,function(e,f){var g=rk(c,e,f);return Vg(g)});d.set(this.ed,function(e){return sk(c,e)});d.set(this.cd,function(e){e=tk(c,e);return Vg(e)});d.set(this.N,function(e,f){return Vg(uk(c,e,f))});d.set(this.ld,function(e,f){var g=vk(c,e,f);return Vg(g)});d.set(this.Ma,function(e,f){return wk(c,e,f)});this.ca= -new Dj(this.ra,{Ve:function(e,f,g,h){var k=null;e==c.ra&&(k=g==c.ra?c.ra:c.Oa);e==c.Oa&&(k=g==c.ra||f.G!=h.G?c.ra:g==c.Oa?c.Oa:g==c.Ea||g==c.N?c.Ea:g==c.Ma?c.ld:null);e==c.Ea&&(k=g==c.N&&f.G==h.G?c.kd:c.S);e==c.kd&&(k=xk(c.N,c.ed,c.S,g,f,h));e==c.ed&&(k=xk(c.N,c.cd,c.S,g,f,h));e==c.cd&&(k=xk(c.N,c.N,c.S,g,f,h));e==c.ld&&(k=g==c.Ma&&f.G==h.G?c.Ma:c.S);if(e==c.N||e==c.Ma)k=c.S;e==c.S&&(k=h.G&&f.G==h.G?c.Oa:c.ra);return k},Je:function(e,f,g){c.dispatchEvent(yk(zk,{state:e.name}));return d.get(e)(f,g)}, -handleError:function(e){return K(function(f){return 1==f.g?v(f,pk(c,e),2):f["return"](e.G?c.Oa:c.ra)})},mf:function(e){c.dispatchEvent(yk(Ak,{state:e.name}))}});a&&this.Mb(a,!0)}ra(V,Yg);function yk(a,b){return new Q(a,b)}q=V.prototype; -q.destroy=function(){var a=this,b;return K(function(c){switch(c.g){case 1:if(a.l==Bk)return c["return"]();a.l=Bk;b=Ij(a.ca,function(){return{node:a.ra,payload:Ej(),gb:!1}});return v(c,new Promise(function(d){b.Db=function(){};b.Cc=function(){d()};b.jb=function(){d()};b.onError=function(){d()};b.Ec=function(){d()}}),2);case 2:return v(c,a.ca.destroy(),3);case 3:a.h&&(a.h.release(),a.h=null);a.Zc=null;a.u=null;a.o=null;a.j=null;a.kc=null;if(!a.O){c.v(0);break}return v(c,a.O.destroy(),5);case 5:a.O= -null,z(c)}})};q.Mb=function(a,b){b=void 0===b?!0:b;if(this.l==Bk)return Promise.reject(Ck());var c=Ej();c.G=a;$b()||(b=!1);var d=b?this.Ea:this.Oa,e=Ij(this.ca,function(){return{node:d,payload:c,gb:!1}});e.Db=function(){};return Dk(e)};q.detach=function(){var a=this;if(this.l==Bk)return Promise.reject(Ck());var b=Ij(this.ca,function(){return{node:a.ra,payload:Ej(),gb:!1}});b.Db=function(){};return Dk(b)}; -q.Pd=function(a){var b=this;a=void 0===a?!0:a;if(this.l==Bk)return Promise.reject(Ck());$b()||(a=!1);var c=Ej(),d=Ij(this.ca,function(e){var f=e.G&&a?b.Ea:e.G?b.Oa:b.ra;c.G=e.G;return{node:f,payload:c,gb:!1}});d.Db=function(){};return Dk(d)}; -q.load=function(a,b,c){var d=this;if(this.l==Bk)return Promise.reject(Ck());this.dispatchEvent(yk(Ek));var e=Ej();e.uri=a;e.Nd=Date.now()/1E3;c&&(e.mimeType=c);void 0!==b&&(e.startTime=b);var f=Fk(this,e)?this.Ma:this.N,g=Ij(this.ca,function(h){if(null==h.G)return null;e.G=h.G;return{node:f,payload:e,gb:!0}});this.j=new jk;g.Db=function(){};return new Promise(function(h,k){g.Ec=function(){return k(new O(2,7,7002))};g.Cc=function(){h();d.dispatchEvent(yk(Gk))};g.jb=function(){return k(Ck())};g.onError= -function(l){return k(l)}})}; -function Fk(a,b){if(!$b())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"}[li(d)]);if(c){if(""==(b.G||bc()).canPlayType(c))return!1;if(!$b()||!(c in ki||li(d)in mi)||a.o.streaming.preferNativeHls)return!0;if(gc())return a.o.streaming.useNativeHlsOnSafari}return!1} -function ok(a,b,c){null==b.G&&(b.G=c.G,a.h.B(b.G,"error",function(){var d=Hk(a);d&&Ik(a,d)}));a.g=b.G;return Promise.resolve()} -function pk(a,b){var c,d,e,f,g,h,k,l,m;return K(function(n){switch(n.g){case 1:return a.l!=Bk&&(a.l=kk),c=a.$c.map(function(p){return p()}),a.$c=[],v(n,Promise.all(c),2);case 2:a.dispatchEvent(yk(Jk));b.mimeType=null;b.startTime=null;b.uri=null;b.G&&(a.h.Ca(b.G,"loadedmetadata"),a.h.Ca(b.G,"playing"),a.h.Ca(b.G,"pause"),a.h.Ca(b.G,"ended"),a.h.Ca(b.G,"ratechange"));a.Fa&&(a.Fa.release(),a.Fa=null);a.lc&&(a.lc.stop(),a.lc=null);if(!a.s){n.v(3);break}return v(n,a.s.stop(),4);case 4:a.s=null,a.pc=null; -case 3:if(!a.u){n.v(5);break}return v(n,a.u.stop(),5);case 5:if(!a.i){n.v(7);break}return v(n,a.i.destroy(),8);case 8:a.i=null;case 7:a.F&&(a.F.release(),a.F=null);a.D&&(a.D.release(),a.D=null);if(!a.I){n.v(9);break}return v(n,a.I.destroy(),10);case 10:a.I=null;case 9:if(a.L)a.L.onAssetUnload();if(!b.G||!b.G.src){n.v(11);break}return v(n,new Promise(function(p){return(new P(p)).T(.1)}),12);case 12:for(b.G.removeAttribute("src"),b.G.load();b.G.lastChild;)b.G.removeChild(b.G.firstChild);case 11:if(!a.m){n.v(13); -break}return v(n,a.m.destroy(),14);case 14:a.m=null;case 13:a.Va=null;a.H=null;if(a.A){d=t(a.A.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.A.textStreams);for(h=l.next();!h.done;h=l.next())m=h.value,m.segmentIndex&&m.segmentIndex.release()}a.A=null;a.j=new jk;a.dd=null;Kk(a);z(n)}})} -function qk(a,b){var c,d,e,f;return K(function(g){if(1==g.g)return c=new fe,d=a.o.textDisplayFactory,e=Ob(d),a.dd=d,f=Lk(b.G,c,e,function(h,k,l){h=t(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,p=l,r=t(m.frames),u=r.next();!u.done;u=r.next())Mk(a,n,p,"ID3",u.value);if(a.L)a.L.onHlsTimedMetadata(m,n)}}),v(g,f.F,2);a.I=f;z(g)})} -function rk(a,b,c){var d,e,f,g;return K(function(h){if(1==h.g)return b.mimeType=c.mimeType,b.uri=c.uri,d=b.uri,e=a.O,a.Va=d,f=a,v(h,ji(d,e,a.o.manifest.retryParameters,b.mimeType),2);f.pc=h.h;a.s=Ob(a.pc);g=Zg(a.o.manifest);c.G&&"AUDIO"===c.G.nodeName&&(g.disableVideo=!0);a.s.configure(g);z(h)})} -function sk(a,b){var c=b.uri,d=a.O;a.cc=new Xi(function(){return a.Fd()});Yi(a.cc,function(g){Nk(a,Ok,g);if(a.L)a.L.onDashTimedMetadata(g)});var e={networkingEngine:d,filter:function(g){return K(function(h){return h["return"](a.uc(g))})},makeTextStreamsForClosedCaptions:function(g){return Pk(a,g)},onTimelineRegionAdded:function(g){var h=a.cc;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),h.h(g))},onEvent:function(g){return a.dispatchEvent(g)},onError:function(g){return Ik(a,g)},isLowLatencyMode:function(){return a.o.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.o.streaming.autoLowLatencyMode},enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode",!0)}},f=Date.now()/1E3;return new Rg(function(){var g,h,k,l;return K(function(m){if(1==m.g)return g=a,v(m,a.s.start(c,e),2);g.A=m.h;h=yk(Qk);a.dispatchEvent(h);if(0== -a.A.variants.length)throw new O(2,4,4036);Rk(a.A);k=Date.now()/1E3;l=k-f;a.j.H=l;z(m)})}(),function(){return a.s.stop()})} -function tk(a,b){var c,d;return K(function(e){return 1==e.g?(c=Date.now()/1E3,d=!0,a.m=Sk(a,{Bb:a.O,onError:function(f){Ik(a,f)},Dc:function(f){Tk(a,f)},onExpirationUpdated:function(f,g){Uk(a,f,g)},onEvent:function(f){a.dispatchEvent(f);f.type==Vk&&d&&(d=!1,a.j.j=Date.now()/1E3-c)}}),a.o.useMediaCapabilities||cg(a.A),a.m.configure(a.o.drm),v(e,Ah(a.m,a.A.variants,a.A.offlineSessionIds,a.o.useMediaCapabilities),2)):3!=e.g?v(e,a.m.Mb(b.G),3):v(e,a.uc(a.A),0)})} -function uk(a,b,c){var d,e,f,g,h,k,l,m,n,p;return K(function(r){switch(r.g){case 1:b.startTime=c.startTime;d=b.G;e=b.uri;a.Va=e;a.F=new Qi({zc:function(){return b.G.playbackRate},wc:function(){return b.G.defaultPlaybackRate},Ld:function(u){b.G.playbackRate=u},fe:function(u){b.G.currentTime+=u}});f=function(){return Wk(a)};g=function(){return Xk(a)};a.h.B(d,"playing",f);a.h.B(d,"pause",f);a.h.B(d,"ended",f);a.h.B(d,"ratechange",g);h=a.o.abrFactory;a.u&&a.Zc==h||(a.Zc=h,a.u=Ob(h),"function"!=typeof a.u.playbackRateChanged&& -(Hb("AbrManager","Please use an AbrManager with playbackRateChanged function."),a.u.playbackRateChanged=function(){}),a.u.configure(a.o.abr));a.oa=new Gg(a.o.preferredAudioLanguage,a.o.preferredVariantRole,a.o.preferredAudioChannelCount);a.pa=a.o.preferredTextLanguage;a.Wa=a.o.preferredTextRole;Yk(a.A.presentationTimeline,a.o.playRangeStart,a.o.playRangeEnd);a.u.init(function(u,w,x){w=void 0===w?!1:w;x=void 0===x?0:x;a.i&&u!=a.i.h&&(hk(a.j.g,u,!0),mj(a.i,u,w,x),Zk(a))});a.D=$k(a,b.startTime);a.Fa= -al(a);k=Math.max(a.A.minBufferTime,a.o.streaming.rebufferingGoal);bl(a,k);Tf(a.A,a.o.preferredAudioChannelCount);a.i=cl(a);a.i.configure(a.o.streaming);a.l=dl;a.dispatchEvent(yk(el));l=fl(a)?a.u.chooseVariant():null;hk(a.j.g,l,!0);mj(a.i,l,!1,0);(m=vg(a.A.textStreams,a.pa,a.Wa,a.mc)[0]||null)&&ik(a.j.g,m,!0);m?(l.audio&&gl(a,l.audio,m)&&(a.X=!0),a.X&&a.I.m.setTextVisibility(!0),hl(a)):a.X=!1;m&&(a.o.streaming.alwaysStreamText||a.nd())&&nj(a.i,m);if(!a.o.streaming.startAtSegmentBoundary){r.v(2);break}n= -a.D.l();return v(r,il(l,n),3);case 3:p=r.h,a.D.m(p);case 2:return v(r,a.i.start(),4);case 4:a.o.abr.enabled&&(a.u.enable(),jl(a)),eg(a.i?a.i.h:null,a.A),kl(a.A),ll(a),Zk(a),fl(a),a.A.variants.some(function(u){return u.primary}),a.h.ua(d,"loadedmetadata",function(){a.j.l=Date.now()/1E3-c.Nd}),z(r)}})} -function vk(a,b,c){var d,e,f,g;return K(function(h){return 1==h.g?(d=Ge,e=Date.now()/1E3,f=!0,a.m=Sk(a,{Bb:a.O,onError:function(k){Ik(a,k)},Dc:function(k){Tk(a,k)},onExpirationUpdated:function(k,l){Uk(a,k,l)},onEvent:function(k){a.dispatchEvent(k);k.type==Vk&&f&&(f=!1,a.j.j=Date.now()/1E3-e)}}),a.m.configure(a.o.drm),g={id:0,language:"und",primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:c.mimeType?c.mimeType.split(";")[0]: -"video/mp4",codecs:c.mimeType?Ve(c.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:d.Na,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},v(h,Ah(a.m,[g],[]),2)):v(h,a.m.Mb(b.G),0)})} -function wk(a,b,c){function d(){return Wk(a)}b.uri=c.uri;b.startTime=c.startTime;a.Va=b.uri;a.D=new Gi(b.G);null!=b.startTime&&a.D.m(b.startTime);a.F=new Qi({zc:function(){return b.G.playbackRate},wc:function(){return b.G.defaultPlaybackRate},Ld:function(g){b.G.playbackRate=g},fe:function(g){b.G.currentTime+=g}});bl(a,a.o.streaming.rebufferingGoal);a.h.B(b.G,"playing",d);a.h.B(b.G,"pause",d);a.h.B(b.G,"ended",d);a.h.B(b.G,"ratechange",function(){return Xk(a)});"none"!=a.g.preload&&a.h.ua(a.g,"loadedmetadata", -function(){a.j.l=Date.now()/1E3-c.Nd});a.g.audioTracks&&(a.h.B(a.g.audioTracks,"addtrack",function(){return ll(a)}),a.h.B(a.g.audioTracks,"removetrack",function(){return ll(a)}),a.h.B(a.g.audioTracks,"change",function(){return ll(a)}));a.g.textTracks&&(a.h.B(a.g.textTracks,"addtrack",function(g){ll(a);ml(a,g)}),a.h.B(a.g.textTracks,"removetrack",function(){return ll(a)}),a.h.B(a.g.textTracks,"change",function(){return ll(a)}));b.G.src=b.uri;(ec()||dc("Web0S"))&&b.G.load();a.l=nl;a.dispatchEvent(yk(el)); -var e=new He;xi(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){e.resolve()});var f=!1;a.$c.push(function(){f=!0});xi(a.g,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){var g;return K(function(h){if(1==h.g){if(f)return h["return"]();ol(a);g=pl(a);return g.find(function(k){return"disabled"!=k.mode})?h.v(2):v(h,new Promise(function(k){a.h.ua(a.g.textTracks,"change",k);(new P(k)).T(1)}),2)}if(f)return h["return"]();ql(a);z(h)})});a.g.error?e.reject(Hk(a)):"none"==a.g.preload&&(Ua('With