(this.webpackJsonpLivePlayer=this.webpackJsonpLivePlayer||[]).push([[6],{57:function(e,i,t){!function(e){var t,e="undefined"!=typeof window?window:e,n={};for(t in!function(x,a,o){function s(e){var t=0;return function(){return t>>0)+"_",r=0;return function e(t){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new n(i+(t||"")+"_"+r++,t)}}),c("Symbol.iterator",function(e){if(!e){e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n>>=1)&&(t+=t);return n}}),c("Object.values",function(e){return e||function(e){var t,n=[];for(t in e)H(e,t)&&n.push(e[t]);return n}}),c("Math.log2",function(e){return e||function(e){return Math.log(e)/Math.LN2}}),c("Object.entries",function(e){return e||function(e){var t,n=[];for(t in e)H(e,t)&&n.push([t,e[t]]);return n}}),this||self);function e(e,t){var n,i=e.split("."),r=$;i[0]in r||void 0===r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||void 0===t?r=r[n]&&r[n]!==Object.prototype[n]?r[n]:r[n]={}:r[n]=t} /* @license Shaka Player Copyright 2016 Google LLC SPDX-License-Identifier: Apache-2.0 */ function J(e){this.i=Math.exp(Math.log(.5)/e),this.h=this.g=0}function Q(e,t,n){var i=Math.pow(e.i,t);n=n*(1-i)+i*e.g,isNaN(n)||(e.g=n,e.h+=t)}function Z(e){return e.g/(1-Math.pow(e.i,e.h))}function ee(){this.h=new J(2),this.i=new J(5),this.g=0}function te(){}function ne(){}function ae(){}function se(e,t){for(var n=[],i=1;ithis.R.byteLength)throw Ue();var t=S(this.R,this.g,e);return this.g+=e,t},t.skip=function(e){if(this.g+e>this.R.byteLength)throw Ue();this.g+=e},t.me=function(e){if(this.gthis.R.byteLength)throw Ue();this.g=e},t.cc=function(){for(var e=this.g;this.pa()&&0!=this.R.getUint8(this.g);)this.g+=1;return e=S(this.R,e,this.g-e),this.g+=1,Ne(e)},e("shaka.util.DataViewReader",w),w.prototype.readTerminatedString=w.prototype.cc,w.prototype.rewind=w.prototype.me,w.prototype.readBytes=w.prototype.bb,w.prototype.readUint64=w.prototype.Hb,w.prototype.readInt32=w.prototype.ke,w.prototype.readUint32=w.prototype.N,w.prototype.readUint16=w.prototype.Gb,w.prototype.readUint8=w.prototype.aa,w.prototype.getLength=w.prototype.Te,w.prototype.getPosition=w.prototype.$,w.prototype.hasMoreData=w.prototype.pa;var Be=1;function Fe(e,t){this.g=e,this.h=t}function He(e,t){var n=new Fe(4,0),i=Ge,r=i.g,a=n.h-r.h;(0<(n.g-r.g||a)?i.i:i.h)(i.g,n,e,t)}function Ve(e,t,n,i){ae([n,"has been deprecated and will be removed in",t,". We are currently at version",e,". Additional information:",i].join(" "))}function Ke(e,t,n,i){ne([n,"has been deprecated and has been removed in",t,". We are now at version",e,". Additional information:",i].join(""))}w.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Be},Fe.prototype.toString=function(){return"v"+this.g+"."+this.h};var Ge=null;function qe(e,t){return e.concat(t)}function ze(){}function Xe(e){return null!=e}function We(t){var e=Object.create(t.prototype||Object.prototype);try{var n=t.call(e);n||(He("Factories requiring new","Factories should be plain functions"),n=e)}catch(e){He("Factories requiring new","Factories should be plain functions"),n=new t}return n}function T(){this.i=[],this.h=[],this.g=!1}function b(e){for(var t=Ze(e);e.reader.pa()&&!e.parser.g;)e.parser.Kc(e.start+t,e.reader,e.partialOkay)}function Ye(e){for(var t=Ze(e),n=e.reader.N(),i=(n=de(xe(n))).next();!i.done&&(e.parser.Kc(e.start+t,e.reader,e.partialOkay),!e.parser.g);i=n.next());}function $e(t){return function(e){t(e.reader.bb(e.reader.R.byteLength-e.reader.$()))}}function Je(e){for(var t=0,n=(e=de(e)).next();!n.done;n=e.next())t=t<<8|n.value.charCodeAt(0);return t}function Qe(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function Ze(e){return 8+(e.has64BitSize?8:0)+(null!=e.flags?4:0)}(t=T.prototype).box=function(e,t){e=Je(e);return this.i[e]=et,this.h[e]=t,this},t.T=function(e,t){e=Je(e);return this.i[e]=tt,this.h[e]=t,this},t.stop=function(){this.g=!0},t.parse=function(e,t,n){for(e=new w(e,0),this.g=!1;e.pa()&&!this.g;)this.Kc(0,e,t,n)},t.Kc=function(e,t,n,i){var r=t.$();if(i&&r+8>t.R.byteLength)this.g=!0;else{var a=t.N(),o=t.N(),s=!1;switch(a){case 0:a=t.R.byteLength-r;break;case 1:if(i&&t.$()+8>t.R.byteLength)return void(this.g=!0);a=t.Hb(),s=!0}var u=this.h[o];if(u){var l=null,c=null;if(this.i[o]==tt){if(i&&t.$()+4>t.R.byteLength)return void(this.g=!0);l=(c=t.N())>>>24,c&=16777215}o=r+a,n&&o>t.R.byteLength&&(o=t.R.byteLength),i&&o>t.R.byteLength?this.g=!0:u({parser:this,partialOkay:n||!1,version:l,flags:c,reader:t=new w(t=0<(i=o-t.$())?t.bb(i):new Uint8Array(0),0),size:a,start:r+e,has64BitSize:s})}else t.skip(Math.min(r+a-t.$(),t.R.byteLength-t.$()))}},e("shaka.util.Mp4Parser",T),T.headerSize=Ze,T.typeToString=Qe,T.allData=$e,T.sampleDescription=Ye,T.children=b,T.prototype.parseNext=T.prototype.Kc,T.prototype.fullBox=T.prototype.T;var et=0,tt=1;function nt(e){this.h=e,this.g=null}function A(e){this.h=e,this.g=null}function it(){return!(!x.MediaSource||!MediaSource.isTypeSupported)}function rt(e){return""!=dt().canPlayType(e)}function at(){return ct("Xbox One")}function ot(){return ct("Tizen")}function st(){return ct("CrKey")}function ut(){return navigator.vendor&&navigator.vendor.includes("Apple")&&!ot()}function lt(){var e;return ut()&&(e=(e=navigator.userAgent.match(/Version\/(\d+)/))||navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(e[1],10):null}function ct(e){return(navigator.userAgent||"").includes(e)}function dt(){return ft||(ht=ht||new A(function(){ft=null}),ft=(ft=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||document.createElement("video"),ht.V(1)),ft}nt.prototype.V=function(e){var t=this,n=(this.stop(),!0),i=null;return this.g=function(){x.clearTimeout(i),n=!1},i=x.setTimeout(function(){n&&t.h()},1e3*e),this},nt.prototype.stop=function(){this.g&&(this.g(),this.g=null)},A.prototype.hc=function(){return this.stop(),this.h(),this},A.prototype.V=function(e){var t=this;return this.stop(),this.g=new nt(function(){t.h()}).V(e),this},A.prototype.Da=function(e){var t=this;return this.stop(),this.g=new nt(function(){t.g.V(e),t.h()}).V(e),this},A.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},e("shaka.util.Timer",A),A.prototype.tickEvery=A.prototype.Da,A.prototype.tickAfter=A.prototype.V,A.prototype.tickNow=A.prototype.hc;var ht=null,ft=null;function pt(){}function gt(e){return e=S(e),e=Oe.value()(e),btoa(e)}function mt(e,t){t=null==t||t;e=gt(e).replace(/\+/g,"-").replace(/\//g,"_");return t?e:e.replace(/[=]*$/,"")}function vt(e){var t=x.atob(e.replace(/-/g,"+").replace(/_/g,"/"));e=new Uint8Array(t.length);for(var n=(t=de(Se(t))).next();!n.done;n=t.next())e[(n=n.value).ga]=n.item.charCodeAt(0);return e}function yt(e){for(var t=e.length/2,n=new Uint8Array(t),i=(t=de(xe(t))).next();!i.done;i=t.next())n[i=i.value]=x.parseInt(e.substr(2*i,2),16);return n}function bt(e){var t=S(e);e="";for(var n=(t=de(t)).next();!n.done;n=t.next())e+=n=1==(n=(n=n.value).toString(16)).length?"0"+n:n;return e}function wt(e){for(var t=[],n=0;n>32),e.setUint32(12,4294967295&n)):e.setUint32(0,n))}e("shaka.util.Uint8ArrayUtils",pt),pt.concat=wt,pt.toHex=bt,pt.fromHex=yt,pt.fromBase64=vt,pt.toBase64=mt,pt.toStandardBase64=gt,pt.equal=function(e,t){return He("shaka.util.Uint8ArrayUtils.equal","Please use shaka.util.BufferUtils.equal instead."),Ae(e,t)};var St=new De(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 Et(e,t){return!("number"!=typeof e||"number"!=typeof t||!isNaN(e)||!isNaN(t))||e===t}function At(e,t){t=e.indexOf(t);-1this.h.length)throw new me(2,2,3e3);this.g+=e};var dn=function e(t,n){var i;return B(e,function(e){return 1==e.g&&(i=0),5!=e.g?i<8?1==(1&n)&&t.h[i]?he(e,i,5):e.v(5):e.v(0):(n>>=1,i++,e.v(2))})};function hn(e,t,n){for(var i=null,r=(t=de(dn(e,t))).next();!r.done;r=t.next()){var r=r.value,a=e.h[r];a.isVisible()&&(i=nn(a,n,e.i)),e.h[r]=null}return i}function fn(e){e.g=null,e.h=[null,null,null,null,null,null,null,null]}function pn(e,t,n){var i={0:0,1:0,2:1,3:1};return mn[(e=i[e])<<2|(t=i[t])<<1|(n=i[n])]}var gn=new Map([[32," "],[33," "],[37,"…"],[42,"Š"],[44,"Œ"],[48,"█"],[49,"‘"],[50,"’"],[51,"“"],[52,"”"],[53,"•"],[57,"™"],[58,"š"],[60,"œ"],[61,"℠"],[63,"Ÿ"],[118,"⅛"],[119,"⅜"],[120,"⅝"],[121,"⅞"],[122,"│"],[123,"┐"],[124,"└"],[125,"─"],[126,"┘"],[127,"┌"]]),mn="black blue green cyan red magenta yellow white".split(" ");function vn(e,t){this.i=[],this.g=1,this.h=0,this.C=e,this.u=t,this.j=this.m=!1,this.l="white",this.s="black",bn(this)}function yn(e,t,n){return Xt(new E(t,n,""),"CC"+(e.C<<1|e.u+1),e.i,t,n)}function bn(e){xn(e,0,15),e.g=1}function wn(e,t,n){if(!(n<32||127>3&1,0===n?e.m=i:e.s=i)}if(n=e.u.get("CC"+(n<<1|(n?e.s:e.m)+1)),255===t.Ba&&255===t.Ta||!t.Ba&&!t.Ta||!Gn(t.Ba)||!Gn(t.Ta))return 45<=++e.l&&Vn(e),null;if(e.l=0,t.Ba&=127,t.Ta&=127,!t.Ba&&!t.Ta)return null;if(i=null,16==(112&t.Ba))e:{var r=t.Ba;if(i=t.Ta,n.m===(r<<8|i))n.m=null;else if(n.m=r<<8|i,16==(240&r)&&64==(192&i)){r=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(7&r)<<1|i>>5&1];var a,o=(30&i)>>1,s="white",u=!1;o<7?s=Fn[o]:7===o&&(u=!0),i=1==(1&i),n.h!==Un&&(o=n.g,n.h===On&&r!==o.g&&(a=1+r-o.h,Tn(o,a,1+o.g-o.h,o.h),xn(o,0,a-1),xn(o,r+1,15-r)),o.g=r,n.g.m=i,n.g.j=u,n.g.l=s,n.g.s="black")}else if(17==(247&r)&&32==(240&i))n.g.m=!1,n.g.j=!1,n.g.l="white",wn(n.g,Sn,32),s=!1,"white_italics"===(r=Fn[(14&i)>>1])&&(r="white",s=!0),n.g.m=1==(1&i),n.g.j=s,n.g.l=r;else if(16==(247&r)&&32==(240&i)||23==(247&r)&&45==(255&i))s="black",0==(7&r)&&(s=Bn[(14&i)>>1]),n.g.s=s;else if(17==(247&r)&&48==(240&i))wn(n.g,En,i);else if(18==(246&r)&&32==(224&i))wn(n.g,1&r?kn:An,i);else if(20==(246&r)&&32==(240&i)){switch(i=t.pts,r=null,t.Ta){case 32:Pn(n);break;case 33:(n=n.g).i[n.g].pop();break;case 37:r=Nn(n,2,i);break;case 38:r=Nn(n,3,i);break;case 39:r=Nn(n,4,i);break;case 40:wn(n.g,Sn,32);break;case 41:n.h=2,n.g=n.i,n.g.h=0,n.j=i;break;case 42:bn(n.s),Ln(n);break;case 43:Ln(n);break;case 44:r=n.i,s=null,n.h!==Un&&(s=yn(r,n.j,i)),xn(r,0,15),r=s;break;case 45:r=n.g,r=n.h!==On?null:(s=yn(r,n.j,i),u=r.g-r.h+1,Tn(r,u-1,u,r.h),xn(r,0,u-1),xn(r,r.g,15-r.g),n.j=i,s);break;case 46:xn(n.l,0,15);break;case 47:r=null,n.h!==Un&&(r=yn(n.i,n.j,i)),s=n.l,n.l=n.i,n.i=s,Pn(n),n.j=i}i=r;break e}i=null}else r=t.Ta,wn(n.g,Sn,t.Ba),wn(n.g,Sn,r);return i}(e,o.value))&&n.push(o);for(a=de(e.g),o=a.next();!o.done;o=a.next())i=e.i,3===(r=o.value).type?(i.g=2*(63&r.value)-1,i.h=[]):i.h&&(0>5,a=31&i;if(0!=(r=7===r&&0!=a?63&ln(t).value:r)){e.j.has(r)||e.j.set(r,new cn(r));for(var o=e.j.get(r),s=t.$();t.$()-s=p.I){f=p;for(var g=0,m=1;m<15;m++,g++)f.i[g]=f.i[m];for(m=0;m<1;m++,g++)f.i[g]=Zt()}else p.h++;p.g=0;break;case 14:p.isVisible()&&(r=nn(p,f,o.i)),p.i[p.h]=Zt(),p.g=0;break;case 12:p.isVisible()&&(r=nn(p,f,o.i)),Qt(p),(f=p).h=0,f.g=0}var v=r}else v=null}else v=128<=d&&d<=159?function(e,t,n,i){if(128<=n&&n<=135)e.h[i=7&n]&&(e.g=e.h[i]);else{if(136===n){n=ln(t).value,t=null;for(var r=(n=de(dn(e,n))).next();!r.done;r=n.next())(r=e.h[r.value]).isVisible()&&(t=nn(r,i,e.i)),Qt(r);return t}if(137===n)for(t=ln(t).value,n=(t=de(dn(e,t))).next();!n.done;n=t.next())(n=e.h[n.value]).isVisible()||(n.j=i),n.l=!0;else{if(138===n){for(n=ln(t).value,t=null,r=(n=de(dn(e,n))).next();!r.done;r=n.next())(r=e.h[r.value]).isVisible()&&(t=nn(r,i,e.i)),r.l=!1;return t}if(139===n){for(n=ln(t).value,t=null,r=(n=de(dn(e,n))).next();!r.done;r=n.next())(r=e.h[r.value]).isVisible()?t=nn(r,i,e.i):r.j=i,r.l=!r.l;return t}if(140===n)return hn(e,t=ln(t).value,i);if(143===n)return i=hn(e,255,i),fn(e),i;var a,o;144===n?(t.skip(1),i=ln(t).value,e.g&&(e.g.s=0<(128&i),e.g.C=0<(64&i))):145===n?(i=ln(t).value,n=ln(t).value,t.skip(1),e.g&&(t=pn((48&n)>>4,(12&n)>>2,3&n),e.g.u=pn((48&i)>>4,(12&i)>>2,3&i),e.g.m=t)):146===n?(i=ln(t).value,t=ln(t).value,e.g&&((e=e.g).h=15&i,e.g=63&t)):151===n?(t.skip(1),t.skip(1),i=ln(t).value,t.skip(1),e.g&&(e.g.H=3&i)):152<=n&&n<=159&&((r=null!==e.h[n=(15&n)-8])||((a=new Jt).j=i,e.h[n]=a),i=ln(t).value,ln(t),ln(t),a=ln(t).value,o=ln(t).value,t=ln(t).value,r&&0==(7&t)||((t=e.h[n]).h=0,t.g=0,t.C=!1,t.s=!1,t.u="white",t.m="black"),(t=e.h[n]).l=0<(32&i),t.I=1+(15&a),t.F=1+(63&o),e.g=e.h[n])}}return null}(o,r,d,h):(4096<=d&&d<=4127?8<=(f=255&d)&&f<=15?r.skip(1):16<=f&&f<=23?r.skip(2):24<=f&&f<=31&&r.skip(3):4224<=d&&d<=4255?128<=(f=255&d)&&f<=135?r.skip(4):136<=f&&f<=143&&r.skip(5):32<=d&&d<=127?(r=d,o.g&&en(o.g,127===r?"♪":String.fromCharCode(r))):160<=d&&d<=255?o.g&&en(o.g,String.fromCharCode(d)):4128<=d&&d<=4223?(r=255&d,o.g&&(gn.has(r)?(l=gn.get(r),en(o.g,l)):en(o.g,"_"))):4256<=d&&d<=4351&&o.g&&en(o.g,160!=(255&d)?"_":"[CC]"),null);(r=v)&&n.push(r)}}}}catch(e){if(!(e instanceof me&&3e3===e.code))throw e;se("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.")}return n}(e,o.value),n.push.apply(n,ie(o));return e.i.i=[],e.h=[],e.g=[],n}function Gn(e){for(var t=0;e;)t^=1&e,e>>=1;return 1===t}function qn(){}function zn(e,r){var a,o,s,u;return B(zn,function(e){if(1==e.g){for(var t=r,n=0,i=0;ie.end(e.length-1))&&t+n>=e.start(0)}function ti(e,t){if(!e||!e.length||1==e.length&&e.end(0)-e.start(0)<1e-6)return 0;for(var n=0,i=de(ni(e)),r=i.next();!r.done;r=i.next()){var a=r.value,r=a.start;t<(a=a.end)&&(n+=a-Math.max(r,t))}return n}function ni(e){if(!e)return[];for(var t=[],n=de(xe(e.length)),i=n.next();!i.done;i=n.next())i=i.value,t.push({start:e.start(i),end:e.end(i)});return t}Jn.prototype.init=function(e){var n=this,i=[],r=[];if((new T).box("moov",b).box("mvex",b).T("trex",function(e){var t=e.reader;t.skip(4),t.skip(4),e=t.N(),t=t.N(),n.g=e,n.h=t}).box("trak",b).T("tkhd",function(e){var t=e.reader;1==e.version?(t.skip(8),t.skip(8)):(t.skip(4),t.skip(4)),e=t.N(),i.push(e)}).box("mdia",b).T("mdhd",function(e){e=Yn(e.reader,e.version),r.push(e.timescale)}).parse(e,!0),!i.length||!r.length||i.length!=r.length)throw new me(2,2,2010);i.forEach(function(e,t){n.i.set(e,r[t])})},Jn.prototype.parse=function(e){var h=this,f=[],p=this.g,g=this.h,m=[],v=null,y=9e4;return(new T).box("moof",b).box("traf",b).T("trun",function(e){m=$n(e.reader,e.version,e.flags).ne}).T("tfhd",function(e){e=Xn(e.reader,e.flags),p=e.Xd||h.g,g=e.Le||h.h,e=e.trackId,h.i.has(e)&&(y=h.i.get(e))}).T("tfdt",function(e){v=Wn(e.reader,e.version).fd}).box("mdat",function(e){if(null===v)throw new me(2,2,2010);e=e.reader;var t=v,n=y,i=p,r=g,a=m,o=0,s=r;for(a.length&&(s=a[0].sampleSize||r);e.pa();){var u=e.N();if(6==(31&e.aa()))for(var l=0,l=(t+(l=a.length>o?a[o].Mc||0:l))/n,c=de(zn(h.j,e.bb(u-1))),d=c.next();!d.done;d=c.next())f.push({tf:d.value,pts:l});else e.skip(u-1);0==(s-=u+4)&&(t=a.length>o?t+(a[o].Gd||i):t+i,o++,s=a.length>o&&a[o].sampleSize||r)}}).parse(e,!1),f},Qn.prototype.init=function(e){this.h.init(e)}; /* @license Copyright 2008 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 */ var ii=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/; /* @license Copyright 2006 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 */function ri(e){e instanceof ri?(ai(this,e.Ga),this.qb=e.qb,this.Ia=e.Ia,oi(this,e.Fb),this.ya=e.ya,si(this,e.g.clone()),this.hb=e.hb):e&&(e=String(e).match(ii))?(ai(this,e[1]||"",!0),this.qb=ui(e[2]||""),this.Ia=ui(e[3]||"",!0),oi(this,e[4]),this.ya=ui(e[5]||"",!0),si(this,e[6]||"",!0),this.hb=ui(e[7]||"")):this.g=new mi(null)}function ai(e,t,n){e.Ga=n?ui(t,!0):t,e.Ga&&(e.Ga=e.Ga.replace(/:$/,""))}function oi(e,t){if(t){if(t=Number(t),isNaN(t)||t<0)throw Error("Bad port number "+t);e.Fb=t}else e.Fb=null}function si(e,t,n){t instanceof mi?e.g=t:(n||(t=li(t,pi)),e.g=new mi(t))}function ui(e,t){return e?(t?decodeURI:decodeURIComponent)(e):""}function li(e,t,n){return null!=e?(e=encodeURI(e).replace(t,ci),e=n?e.replace(/%25([0-9a-fA-F]{2})/g,"%$1"):e):null}function ci(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}(t=ri.prototype).Ga="",t.qb="",t.Ia="",t.Fb=null,t.ya="",t.hb="",t.toString=function(){var e,t=[],n=this.Ga;return n&&t.push(li(n,di,!0),":"),(n=this.Ia)&&(t.push("//"),(e=this.qb)&&t.push(li(e,di,!0),"@"),t.push(encodeURIComponent(n).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.Fb))&&t.push(":",String(n)),(n=this.ya)&&(this.Ia&&"/"!=n.charAt(0)&&t.push("/"),t.push(li(n,"/"==n.charAt(0)?fi:hi,!0))),(n=this.g.toString())&&t.push("?",n),(n=this.hb)&&t.push("#",li(n,gi)),t.join("")},t.resolve=function(e){var t=this.clone(),n=("data"===t.Ga&&(t=new ri),!!e.Ga),i=(n?ai(t,e.Ga):n=!!e.qb,n?t.qb=e.qb:n=!!e.Ia,n?t.Ia=e.Ia:n=null!=e.Fb,e.ya);if(n)oi(t,e.Fb);else if(n=!!e.ya)if("/"!=i.charAt(0)&&(this.Ia&&!this.ya?i="/"+i:-1!=(r=t.ya.lastIndexOf("/"))&&(i=t.ya.substr(0,r+1)+i)),".."==i||"."==i)i="";else if(-1!=i.indexOf("./")||-1!=i.indexOf("/.")){for(var r=0==i.lastIndexOf("/",0),i=i.split("/"),a=[],o=0;o>4).toString(16),i+=(15&n).toString(16),t=t.replace(e[0],i)),t}function Di(e,t){return t&&(e+='; codecs="'+t+'"'),e}function Ri(e,t,n){return e=Di(e,t),Ai.get("muxjs")()&&Mi(e)?Ci(n,e):e}function Ni(e){var t=(e=e.split("."))[0];return e.pop(),t}ki.prototype.destroy=function(){return this.g.dispose(),this.g=null,Promise.resolve()};var Pi=(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");function Li(e){this.s=null,this.i=e,this.j=this.C=0,this.l=1/0,this.h=this.g=null,this.u="",this.m=new Map}function _i(e){return!(!Ui[e]&&"application/cea-608"!=e&&"application/cea-708"!=e)}function ji(e,t,n){if(e.u=t,t=e.m.get(t))for(var i=de(t.keys()),r=i.next();!r.done;r=i.next())(r=t.get(r.value).filter(function(e){return e.endTime<=n}))&&e.i.append(r)}function Oi(e,t,n,i,r){for(var a=n+" "+i,o=new Map,s=(t=de(t)).next();!s.done;s=t.next()){var s=(u=s.value).stream,u=u.cue;o.has(s)||o.set(s,new Map),o.get(s).has(a)||o.get(s).set(a,[]),!function e(t,n,i){n.startTime+=i,n.endTime+=i;for(var r=(n=de(n.nestedCues)).next();!r.done;r=n.next())e(t,r.value,i)}(e,u,r),u.startTime>=e.j&&u.startTime=i.h||(t<=i.g&&n>=i.h?i.g=i.h=null:t<=i.g&&ni.g&&n>=i.h&&(i.h=t)),fe(e)})},e("shaka.text.TextEngine",Li),Li.findParser=function(e){return Ui[e]},Li.unregisterParser=function(e){delete Ui[e]},Li.registerParser=function(e,t){Ui[e]=t};var Ui={};function Bi(e){this.g=!1,this.h=new k,this.i=e}function G(e,t){if(e.g){if(t instanceof me&&7003==t.code)throw t;throw new me(2,7,7003,t)}}function Fi(){this.g={}}function Hi(e,t){for(var n in e.g)t(n,e.g[n])}function d(){this.g=new Fi}function Vi(e,t,n,i){var r;this.target=e,this.type=t,this.listener=n,this.g=(e=e,null!=(i=i)&&("boolean"==typeof i||(r=new Set(["passive","capture"]),Object.keys(i).filter(function(e){return!r.has(e)}),function(e){var t=Ki;if(null==t){t=!1;try{var n={},i={get:function(){return!(t=!0)}};Object.defineProperty(n,"passive",i),Object.defineProperty(n,"capture",i),i=function(){},e.addEventListener("test",i,n),e.removeEventListener("test",i,n)}catch(e){t=!1}Ki=t}return t}(e))?i:i.capture||!1)),this.target.addEventListener(t,n,this.g)}Bi.prototype.destroy=function(){var e=this;return this.g?this.h:(this.g=!0,this.i().then(function(){e.h.resolve()},function(){e.h.resolve()}))},Fi.prototype.push=function(e,t){this.g.hasOwnProperty(e)?this.g[e].push(t):this.g[e]=[t]},Fi.prototype.get=function(e){return(e=this.g[e])?e.slice():null},Fi.prototype.remove=function(e,t){e in this.g&&(this.g[e]=this.g[e].filter(function(e){return e!=t}),0==this.g[e].length)&&delete this.g[e]},Fi.prototype.size=function(){return Object.keys(this.g).length},(t=d.prototype).release=function(){this.ob(),this.g=null},t.A=function(e,t,n,i){this.g&&(e=new Vi(e,t,n,i),this.g.push(t,e))},t.wa=function(n,i,r,e){var a=this;this.A(n,i,function e(t){a.Ea(n,i,e),r(t)},e)},t.Ea=function(e,t,n){if(this.g)for(var i=this.g.get(t)||[],r=(i=de(i)).next();!r.done;r=i.next())(r=r.value).target!=e||n!=r.listener&&n||(r.Ea(),this.g.remove(t,r))},t.ob=function(){if(this.g){var e,t=this.g,n=[];for(e in t.g)n.push.apply(n,ie(t.g[e]));for(n=(t=de(n)).next();!n.done;n=t.next())n.value.Ea();this.g.g={}}},e("shaka.util.EventManager",d),d.prototype.removeAll=d.prototype.ob,d.prototype.unlisten=d.prototype.Ea,d.prototype.listenOnce=d.prototype.wa,d.prototype.listen=d.prototype.A,Vi.prototype.Ea=function(){this.target.removeEventListener(this.type,this.listener,this.g),this.listener=this.target=null,this.g=!1};var Ki=void 0;function Gi(e,t,n,i){var r,a,c=this;this.g=e,this.m=n,this.j={},this.I={},this.i=null,this.L=i||function(){},this.l={},this.h=new d,this.u={},this.C=t,this.F=new k,this.s=(a=(r=this).F,e=new MediaSource,r.h.wa(e,"sourceopen",function(){URL.revokeObjectURL(r.H),a.resolve()}),r.H=or(e),r.g.src=r.H,e),this.J=new Bi(function(){return t=c,ge(function(e){if(1==e.g){for(i in n=[],t.l)for(r=t.l[i],a=r[0],t.l[i]=r.slice(0,1),a&&n.push(a.p.catch(ze)),o=de(r.slice(1)),s=o.next();!s.done;s=o.next())u=s.value,u.p.reject(new me(2,7,7003,void 0));for(l in t.i&&n.push(t.i.destroy()),t.m&&n.push(t.m.destroy()),t.u)n.push(t.u[l].destroy());return he(e,Promise.all(n),2)}t.h&&(t.h.release(),t.h=null),t.g&&(t.g.removeAttribute("src"),t.g.load(),t.g=null),t.s=null,t.i=null,t.m=null,t.j={},t.u={},t.C=null,t.l={},fe(e)});var t,n,i,r,a,o,s,u,l}),this.H=""}function qi(e){var n,i,t=Di(e.mimeType,e.codecs),r=(i=[(n=e).mimeType],Pi.forEach(function(e,t){t=n[t];t&&i.push(e+'="'+t+'"')}),"PQ"==n.hdr&&i.push('eotf="smpte2084"'),i.join(";"));return _i(t)||MediaSource.isTypeSupported(r)||Ii(t,e.type)}function zi(e,t){e.i||(e.i=new Li(e.m)),"application/cea-608"!=t&&"application/cea-708"!=t&&(e.i.s=We(Ui[t]))}function Xi(e){return!e.s||"ended"==e.s.readyState}function Wi(e,t){var n=t==ve?e.i.g:!(n=$i(e,t))||1==n.length&&n.end(0)-n.start(0)<1e-6?null:1==n.length&&n.start(0)<0?0:n.length?n.start(0):null;return n}function Yi(e,t){return t==ve?e.i.h:Zn($i(e,t))}function $i(e,t){try{return e.j[t].buffered}catch(e){return null}}function Ji(u,l,c,d,h,f){var p,g,m,v,y,b;return ge(function(e){var t,n,i,r,a,o,s;return 1==e.g?l==(p=Ti).ba?he(e,(i=u.i,r=c,a=d,o=h,ge(function(e){return 1==e.g?he(e,Promise.resolve(),2):i.s&&i.i?null==a||null==o?(i.s.parseInit(S(r)),e.return()):(s={periodStart:i.C,segmentStart:a,segmentEnd:o},s=i.s.parseMedia(S(r),s),s=s.filter(function(e){return e.startTime>=i.j&&e.startTime>2,c=a.aa(),d=a.aa();l&&(0==(u&=3)||1==u?i.h.push({pts:r,type:u,Ba:c,Ta:d,order:i.h.length}):(i.g.push({pts:r,type:u,value:c,order:i.g.length}),i.g.push({pts:r,type:2,value:d,order:i.g.length})))}}}}return Kn(e.g)}(u.C,c)).length&&(m=u.j[p.Ra].timestampOffset,Oi(u.i,g,d,h,m))),ar(u,c,d,l)),he(e,tr(u,l,function(){u.j[l].appendBuffer(c)}),0)):(g=e.h,u.i||zi(u,"text/vtt"),g.metadata&&(m=u.j[l].timestampOffset,u.L(g.metadata,m,h)),g.captions&&g.captions.length&&(v=u.j[p.Ra].timestampOffset,y=function(e){for(var t=[],n=(e=de(e)).next();!n.done;n=e.next())n=n.value,t.push({stream:n.stream,cue:new E(n.startTime,n.endTime,n.text)});return t}(g.captions),Oi(u.i,y,d,h,v)),b=g.data,b=ar(u,b,d,l),he(e,tr(u,l,function(){u.j[l].appendBuffer(b)}),0))})}function Qi(t,n){return ge(function(e){return n==Ti.ba?t.i?he(e,t.i.remove(0,1/0),0):e.return():he(e,tr(t,n,function(){var e=t.s.duration;e<=0?er(t,n):t.j[n].remove(0,e)}),0)})}function Zi(i,r,a,o,s){return ge(function(e){return r==Ti.ba?(i.i.C=a,t=i.i,n=s,t.j=o,t.l=n,e.return()):he(e,Promise.all([tr(i,r,function(){var e=i.j[r].appendWindowStart,t=i.j[r].appendWindowEnd;i.j[r].abort(),i.j[r].appendWindowStart=e,i.j[r].appendWindowEnd=t,er(i,r)}),tr(i,r,function(){var e=a;e<0&&(e+=.001),i.j[r].timestampOffset=e,er(i,r)}),tr(i,r,function(){i.j[r].appendWindowStart=0,i.j[r].appendWindowEnd=s,i.j[r].appendWindowStart=o,er(i,r)})]),0);var t,n})}function er(e,t){var n=e.l[t][0];n&&(n.p.resolve(),ir(e,t))}function tr(e,t,n){return G(e.J),n={start:n,p:new k},e.l[t].push(n),1==e.l[t].length&&rr(e,t),n.p}function nr(t,n){var i,r,a,o,s;return ge(function(e){switch(e.g){case 1:for(a in G(t.J),i=[],r={},t.j)r.Lb=new k,o={start:function(e){return function(){return e.Lb.resolve()}}(r),p:r.Lb},t.l[a].push(o),i.push(r.Lb),1==t.l[a].length&&o.start(),r={Lb:r.Lb};return ce(e,2),he(e,Promise.all(i),4);case 4:re(e,3);break;case 2:throw pe(e);case 3:try{n()}catch(e){throw new me(2,3,3015,e)}finally{for(s in t.j)ir(t,s)}fe(e)}})}function ir(e,t){e.l[t].shift(),rr(e,t)}function rr(t,n){var i=t.l[n][0];if(i)try{i.start()}catch(e){"QuotaExceededError"==e.name?i.p.reject(new me(2,3,3017,n)):i.p.reject(new me(2,3,3015,e)),ir(t,n)}}function ar(e,t,n,i){var r=e.g.mediaKeys;return t=null==n&&r&&(ot()||at())&&"mp4"==e.I[i].split(";")[0].split("/")[1]?Tt(t):t}(t=Gi.prototype).destroy=function(){return this.J.destroy()},t.init=function(t,n){var i,r,a,o,s,u,l=this;return ge(function(e){if(1==e.g)return i=Ti,he(e,l.F,2);for(r={},a=de(t.keys()),o=a.next();!o.done;r={sa:r.sa},o=a.next())r.sa=o.value,s=t.get(r.sa),s=Di(s.mimeType,s.codecs),r.sa==i.ba?zi(l,s):(!n&&MediaSource.isTypeSupported(s)||!Ii(s,r.sa)||(l.u[r.sa]=new ki,s=Ci(r.sa,s)),u=l.s.addSourceBuffer(s),l.h.A(u,"error",function(e){return function(){l.l[e.sa][0].p.reject(new me(2,3,3014,l.g.error?l.g.error.code:0))}}(r)),l.h.A(u,"updateend",function(e){return function(){return er(l,e.sa)}}(r)),l.j[r.sa]=u,l.I[r.sa]=s,l.l[r.sa]=[]);fe(e)})},t.zc=function(){var e,t,n={total:ni(this.g.buffered),audio:ni($i(this,"audio")),video:ni($i(this,"video")),text:[]};return this.i&&(e=this.i.g,t=this.i.h,null!=e)&&null!=t&&n.text.push({start:e,end:t}),n},t.remove=function(t,n,i){var r=this;return ge(function(e){return t==Ti.ba?he(e,r.i.remove(n,i),0):he(e,tr(r,t,function(){i<=n?er(r,t):r.j[t].remove(n,i)}),0)})},t.flush=function(t){var n=this;return ge(function(e){return t==Ti.ba?e.return():he(e,tr(n,t,function(){n.g.currentTime-=.001,er(n,t)}),0)})},t.endOfStream=function(t){var n=this;return ge(function(e){return he(e,nr(n,function(){Xi(n)||(t?n.s.endOfStream(t):n.s.endOfStream())}),0)})},t.Ma=function(t){var n=this;return ge(function(e){return he(e,nr(n,function(){n.s.duration=t}),0)})},t.getDuration=function(){return this.s.duration};var or=x.URL.createObjectURL;function sr(e,t){return e=I(e),t=I(t),e.split("-")[0]==t.split("-")[0]}function ur(e,t){e=I(e),t=I(t);e=e.split("-"),t=t.split("-");return e[0]==t[0]&&1==e.length&&2==t.length}function lr(e,t){e=I(e),t=I(t);e=e.split("-"),t=t.split("-");return 2==e.length&&2==t.length&&e[0]==t[0]}function I(e){var t=e.split("-");return e=t[0]||"",t=t[1]||"",e=e.toLowerCase(),e=fr.get(e)||e,(t=t.toUpperCase())?e+"-"+t:e}function cr(e,t){return e=I(e),(t=I(t))==e?4:ur(t,e)?3:lr(t,e)?2:ur(e,t)?1:0}function dr(e){return e.language?I(e.language):e.audio&&e.audio.language?I(e.audio.language):e.video&&e.video.language?I(e.video.language):"und"}function hr(e,t){for(var n=I(e),i=new Set,r=de(t),a=r.next();!a.done;a=r.next())i.add(I(a.value));for(a=(r=de(i)).next();!a.done;a=r.next())if((a=a.value)==n)return a;for(a=(r=de(i)).next();!a.done;a=r.next())if(ur(a=a.value,n))return a;for(a=(r=de(i)).next();!a.done;a=r.next())if(lr(a=a.value,n))return a;for(a=(i=de(i)).next();!a.done;a=i.next())if(ur(n,a=a.value))return a;return null}var fr=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 pr(e,t){var n,o,s,u,l,c,t=function(e){for(var t=new Fi,n=(e=de(e)).next();!n.done;n=e.next()){var i=gr(n=n.value);t.push(i,n)}return t}(t=Pr(e.variants,t)),i=(n=t,o=0,s=new Map,u=n.size(),Hi(n,function(e,t){for(var n=de(t),i=n.next();!i.done;i=n.next()){var r,a=(i=i.value).video;a&&a.width&&a.height&&(a=a.width*a.height*(a.frameRate||1),s.has(a)||s.set(a,new Fi),(r=s.get(a)).push(e,i),r.size()===u)&&(o=Math.max(o,a))}}),t=o?s.get(o):n,l="",c=1/0,Hi(t,function(e,t){for(var n=0,i=0,r=de(t),a=r.next();!a.done;a=r.next())n+=a.value.bandwidth||0,++i;(n/=i)=r*i.bandwidth/this.o.bandwidthDowngradeTarget&&t<=a&&(n=i)}return this.l=Date.now(),n},t.enable=function(){this.i=!0},t.disable=function(){this.i=!1},t.segmentDownloaded=function(e,t){var n,i=this.g;if(t<16e3||(n=8e3*t/e,e=e/1e3,i.g+=t,Q(i.h,e,n),Q(i.i,e,n)),null!=this.l&&this.i)e:{if(this.s){if(Date.now()-this.l<1e3*this.o.switchInterval)break e}else{if(!(128e3<=this.g.g))break e;this.s=!0}i=this.chooseVariant(),this.g.getBandwidthEstimate(Fr(this)),i&&this.j(i)}},t.getBandwidthEstimate=function(){return this.g.getBandwidthEstimate(this.o.defaultBandwidthEstimate)},t.setVariants=function(e){this.h=e},t.playbackRateChanged=function(e){this.m=e},t.configure=function(e){this.o=e},e("shaka.abr.SimpleAbrManager",Br),Vr.prototype.add=function(e){return!!Kr(this.h,e)&&(this.g.add(e),!0)},Vr.prototype.values=function(){return this.g.values()},zr.prototype.create=function(e){var t=this,n=e.filter(function(e){return Kr(t.g,e)});return n.length?new Vr(n[0],n):this.h.create(e)},Xr.prototype.create=function(e){var t,n,i,r,a,o=[],s=(r=e,n=this.i,o=(t=hr(I(n),r.map(dr)))?r.filter(function(e){return t==dr(e)}):[],e.filter(function(e){return e.primary})),o=o.length?o:s.length?s:e;for(n=o,i=this.j,(e=n.filter(function(e){return!!e.audio&&(i?e.audio.roles.includes(i):0==e.audio.roles.length)})).length&&(o=e),this.g&&(e=Pr(o,this.g)).length&&(o=e),e=new Vr((o=this.h&&(r=o,a=this.h,(e=r.filter(function(e){return!!e.audio&&e.audio.label.toLowerCase()==a.toLowerCase()})).length)?e:o)[0]),s=(o=de(o)).next();!s.done;s=o.next())s=s.value,Kr(e.h,s)&&e.add(s);return e};var $r=0,Jr=1;function Qr(e,t){var n=ea();this.l=(null==e.maxAttempts?n:e).maxAttempts,this.j=(null==e.baseDelay?n:e).baseDelay,this.s=(null==e.fuzzFactor?n:e).fuzzFactor,this.m=(null==e.backoffFactor?n:e).backoffFactor,this.g=0,this.h=this.j,(this.i=void 0!==t&&t)&&(this.g=1)}function Zr(t){var n,i;return ge(function(e){if(1==e.g){if(t.g>=t.l){if(!t.i)throw new me(2,7,1010);t.g=1,t.h=t.j}return(n=t.g,t.g++,0==n)?e.return():(i=t.h*(1+(2*Math.random()-1)*t.s),he(e,new Promise(function(e){new A(e).V(i/1e3)}),2))}t.h*=t.m,fe(e)})}function ea(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}}function M(e,t){this.promise=e,this.i=t,this.g=!1}function ta(e){return new M(Promise.reject(e),function(){return Promise.resolve()})}function na(){var e=Promise.reject(new me(2,7,7001));return e.catch(function(){}),new M(e,function(){return Promise.resolve()})}function ia(e){return new M(Promise.resolve(e),function(){return Promise.resolve()})}function ra(e){return new M(e,function(){return e.catch(function(){})})}function aa(e){return new M(Promise.all(e.map(function(e){return e.promise})),function(){return Promise.all(e.map(function(e){return e.abort()}))})}function ye(e,t){if(t)if(t instanceof Map)for(var n=de(t.keys()),i=n.next();!i.done;i=n.next())i=i.value,Object.defineProperty(this,i,{value:t.get(i),writable:!0,enumerable:!0});else for(n in t)Object.defineProperty(this,n,{value:t[n],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=(x.performance&&x.performance.now?x.performance:Date).now(),this.type=e,this.isTrusted=!1,this.target=this.currentTarget=null,this.g=!1}function oa(e){var t,n=new ye(e.type);for(t in e)Object.defineProperty(n,t,{value:e[t],writable:!0,enumerable:!0});return n}function h(){this.U=new Fi,this.sc=this}function sa(e){var a=new Set;return function e(t){switch(typeof t){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return t;default:if(!t||t.buffer&&t.buffer.constructor==ArrayBuffer)return t;if(a.has(t))return null;var n=t.constructor==Array;if(t.constructor!=Object&&!n)return null;a.add(t);var i,r=n?[]:{};for(i in t)r[i]=e(t[i]);return n&&(r.length=t.length),r}}(e)}function ua(e){var t,n={};for(t in e)n[t]=e[t];return n}function la(){this.g=[]}function ca(e,t){e.g.push(t.finally(function(){At(e.g,t)}))}function r(e){h.call(this),this.i=!1,this.l=new la,this.g=new Set,this.h=new Set,this.j=e||null,this.m=!1}function da(e,t,n,i){n=n||ma;var r=va[e];(!r||n>=r.priority)&&(va[e]={priority:n,uf:t,wf:void 0!==i&&i})}function ha(e,t,n){return{uris:e,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:t,licenseRequestType:null,sessionId:null,streamDataCallback:void 0===n?null:n}}function fa(){this.g=0}function pa(e,t,n){M.call(this,e,t),this.h=n}M.prototype.abort=function(){return this.g=!0,this.i()},M.prototype.finally=function(e){return this.promise.then(function(){return e(!0)},function(){return e(!1)}),this},M.prototype.ca=function(i,r){function e(n){return function(e){var t;o.g&&n?s.reject(u):(t=n?i:r)?a=function(e,t,n){try{var i=e(t);return i&&i.promise&&i.abort?(n.resolve(i.promise),function(){return i.abort()}):(n.resolve(i),function(){return Promise.resolve(i).then(function(){},function(){})})}catch(e){return n.reject(e),function(){return Promise.resolve()}}}(t,e,s):(n?s.resolve:s.reject)(e)}}function a(){return s.reject(u),o.abort()}var o=this,s=new k,u=new me(2,7,7001);return this.promise.then(e(!0),e(!1)),new M(s,function(){return a()})},e("shaka.util.AbortableOperation",M),M.prototype.chain=M.prototype.ca,M.all=aa,M.notAbortable=ra,M.completed=ia,M.aborted=na,M.failed=ta,ye.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},ye.prototype.stopImmediatePropagation=function(){this.g=!0},ye.prototype.stopPropagation=function(){},e("shaka.util.FakeEvent",ye),h.prototype.addEventListener=function(e,t){this.U&&this.U.push(e,t)},h.prototype.removeEventListener=function(e,t){this.U&&this.U.remove(e,t)},h.prototype.dispatchEvent=function(e){if(!this.U)return!0;for(var t=this.U.get(e.type)||[],n=(t=de(t=(n=this.U.get("All"))?t.concat(n):t)).next();!n.done;n=t.next()){n=n.value,e.target=this.sc,e.currentTarget=this.sc;try{n.handleEvent?n.handleEvent(e):n.call(this,e)}catch(e){}if(e.g)break}return e.defaultPrevented},h.prototype.release=function(){this.U=null},la.prototype.destroy=function(){for(var e=[],t=de(this.g),n=t.next();!n.done;n=t.next())(n=n.value).promise.catch(function(){}),e.push(n.abort());return this.g=[],Promise.all(e)},y(r,h),(t=r.prototype).Ld=function(e){this.m=e},t.xf=function(e){this.g.add(e)},t.Of=function(e){this.g.delete(e)},t.Ie=function(){this.g.clear()},t.yf=function(e){this.h.add(e)},t.Pf=function(e){this.h.delete(e)},t.Je=function(){this.h.clear()},t.destroy=function(){return this.i=!0,this.g.clear(),this.h.clear(),h.prototype.release.call(this),this.l.destroy()},t.request=function(s,e){var u=this,t=new fa;if(this.i)return(n=Promise.reject(new me(2,7,7001))).catch(function(){}),new pa(n,function(){return Promise.resolve()},t);e.method=e.method||"GET",e.headers=e.headers||{},e.retryParameters=e.retryParameters?sa(e.retryParameters):ea(),e.uris=sa(e.uris);var n,i=(n=function(e,t,n){for(var i=ia(void 0),r={},a=(e=de(e.g)).next();!a.done;r={Zc:r.Zc},a=e.next())r.Zc=a.value,i=i.ca(function(e){return function(){return n.body&&(n.body=Ie(n.body)),e.Zc(t,n)}}(r));return i.ca(void 0,function(e){if(e instanceof me&&7001==e.code)throw e;throw new me(2,1,1006,e)})}(this,s,e)).ca(function(){return function n(r,a,o,i,s,u,l){r.m&&(o.uris[s]=o.uris[s].replace("http://","https://"));var e=new ri(o.uris[s]),t=e.Ga,c=!1;t||(t=location.protocol,t=t.slice(0,-1),ai(e,t),o.uris[s]=e.toString());t=t.toLowerCase();var d=(t=va[t])?t.uf:null;if(!d)return ta(new me(2,1,1e3,e));var h,f=t.wf,p=null,g=null,m=!1;return ra(Zr(i)).ca(function(){if(r.i)return na();h=Date.now();var e,i,t=d(o.uris[s],o,a,function(e,t,n){p&&p.stop(),g&&g.V(i/1e3),r.j&&a==ga&&(r.j(e,t),c=!0,l.g=n)});return f&&((e=o.retryParameters.connectionTimeout)&&(p=new A(function(){m=!0,t.abort()})).V(e/1e3),i=o.retryParameters.stallTimeout)&&(g=new A(function(){m=!0,t.abort()})),t}).ca(function(e){return p&&p.stop(),g&&g.stop(),null==e.timeMs&&(e.timeMs=Date.now()-h),{response:e,kf:c}},function(e){if(p&&p.stop(),g&&g.stop(),r.i)return na();if((e=m?new me(1,1,1003,o.uris[s],a):e)instanceof me){if(7001==e.code)throw e;if(1010==e.code)throw u;var t;if(1==e.severity)return t=new ye("retry",t=(new Map).set("error",e)),r.dispatchEvent(t),s=(s+1)%o.uris.length,n(r,a,o,i,s,e,l)}throw e})}(u,s,e,new Qr(e.retryParameters,!1),0,null,t)}),r=i.ca(function(e){for(var t=u,n=s,i=e,r=ia(void 0),a={},o=(t=de(t.h)).next();!o.done;a={$c:a.$c},o=t.next())a.$c=o.value,r=r.ca(function(t){return function(){var e=i.response;return e.data&&(e.data=Ie(e.data)),t.$c(n,e)}}(a));return r.ca(function(){return i},function(e){var t=2;if(e instanceof me){if(7001==e.code)throw e;t=e.severity}throw new me(t,1,1007,e)})}),a=Date.now(),o=0,l=(n.promise.then(function(){o=Date.now()-a},function(){}),0),c=(i.promise.then(function(){l=Date.now()},function(){}),r.ca(function(e){var t=Date.now()-l,n=e.response;return n.timeMs+=o,n.timeMs+=t,e.kf||!u.j||n.fromCache||s!=ga||u.j(n.timeMs,n.data.byteLength),n},function(e){throw e&&(e.severity=2),e}));return n=new pa(c.promise,function(){return c.abort()},t),ca(this.l,n),n},e("shaka.net.NetworkingEngine",r),r.makeRequest=ha,r.defaultRetryParameters=ea,r.prototype.clearAllResponseFilters=r.prototype.Je,r.prototype.unregisterResponseFilter=r.prototype.Pf,r.prototype.registerResponseFilter=r.prototype.yf,r.prototype.clearAllRequestFilters=r.prototype.Ie,r.prototype.unregisterRequestFilter=r.prototype.Of,r.prototype.registerRequestFilter=r.prototype.xf,r.unregisterScheme=function(e){delete va[e]},r.registerScheme=da,r.prototype.setForceHTTPS=r.prototype.Ld,r.NumBytesRemainingClass=fa,y(pa,M),r.PendingRequest=pa;var ga=1,ma=(r.RequestType={MANIFEST:0,SEGMENT:ga,LICENSE:2,APP:3,TIMING:4},3),va=(r.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:ma},{});function ya(){}function ba(e){return new ri(e=Le(e)).Ia}function wa(e,t,n){function i(e){Me(r).setUint32(a,e.byteLength,!0),a+=4,r.set(S(e),a),a+=e.byteLength}var r,a;if(n&&n.byteLength)return t="string"==typeof t?je(t,!0):t,e=je(e=Le(e),!0),r=new Uint8Array(12+e.byteLength+t.byteLength+n.byteLength),a=0,i(e),i(t),i(n),r;throw new me(2,6,6015)}function Ta(e){for(var t=new Map,n=de(Object.keys(e)),i=n.next();!i.done;i=n.next())i=i.value,t.set(i,e[i]);return t}function xa(e){var n={};return e.forEach(function(e,t){n[t]=e}),n}function Sa(t,e){var i=this;e=void 0===e?1:e,this.D=t,this.u=new Set,this.g=this.m=null,this.qa=this.L=!1,this.H=0,this.i=null,this.h=new d,this.j=new Map,this.C=[],this.s=new k,this.o=null,this.l=function(e){i.s.reject(e),t.onError(e)},this.ra=new Map,this.ea=new Map,this.U=new A(function(){return t=(e=i).ra,(n=e.ea).clear(),t.forEach(function(e,t){return n.set(t,e)}),(t=Array.from(n.values())).length&&t.every(function(e){return"expired"==e})&&e.l(new me(2,6,6014)),void e.D.Ic(xa(n));var e,t,n}),this.F=!1,this.I=[],this.O=!1,this.la=new A(function(){var r;(r=i).j.forEach(function(e,t){var n=e.zd,i=t.expiration;(i=isNaN(i)?1/0:i)!=n&&(r.D.onExpirationUpdated(t.sessionId,i),e.zd=i)})}).Da(e),this.s.catch(function(){}),this.J=new Bi(function(){return t=i,ge(function(e){switch(e.g){case 1:return t.h.release(),t.h=null,t.s.reject(),t.la.stop(),t.la=null,t.U.stop(),t.U=null,he(e,Ba(t),2);case 2:if(t.g)return ce(e,4),he(e,t.g.setMediaKeys(null),6);e.v(3);break;case 6:re(e,5);break;case 4:pe(e);case 5:t.g=null;case 3:t.i=null,t.u.clear(),t.m=null,t.C=[],t.o=null,t.l=function(){},t.D=null,t.W=!1,fe(e)}});var t}),this.W=!1}function Ea(e,t,n,i){return e.C=n,e.F=0n.end-.5)){t=!0;break e}t=!1}return t}function ao(e,t,n,i,r){var a=this;this.g=e,this.C=t,this.o=n,this.u=r,this.h=new d,this.s=!1,this.F=e.readyState,this.j=!1,this.i=i,this.m=!1,this.h.A(e,"waiting",function(){return oo(a)}),this.l=new A(function(){oo(a)}).Da(.25)}function oo(e){if(0!=e.g.readyState){if(e.g.seeking){if(!e.s)return}else e.s=!1;var t,n,i,r,a,o;e.g.paused&&(0!=e.g.currentTime||!e.g.autoplay&&0==e.g.currentTime)||(e.g.readyState!=e.F&&(e.j=!1,e.F=e.g.readyState),(t=!e.i)||(i=ro(n=(t=e.i).j),a=n.g.currentTime,o=Date.now()/1e3,t.g==a&&t.m==i||(t.l=o,t.g=a,t.m=i,t.h=!1),(i=(a=o-t.l)>=t.s&&i&&!t.h)&&(t.i(t.g,a),t.h=!0,t.g=n.g.currentTime),t=!i),t&&(a=e.o.smallGapLimit,r=e.g.currentTime,t=e.g.buffered,s=t,u=r,l=e.o.gapDetectionThreshold,null==(n=s&&s.length&&!(1==s.length&&s.end(0)-s.start(0)<1e-6)&&0<=(s=ni(s).findIndex(function(e,t,n){return e.start>u&&(0==t||n[t-1].end-u<=l)}))?s:null)||0==n&&!e.m||(i=t.start(n))>=e.C.Ua()||(a=(s=i-r)<=a,o=!1,s<.001||(a||e.j||(e.j=!0,(r=new ye("largegap",r=(new Map).set("currentTime",r).set("gapSize",s))).cancelable=!0,e.u(r),e.o.jumpLargeGaps&&!r.defaultPrevented&&(o=!0)),!a&&!o)||(0!=n&&t.end(n-1),e.g.currentTime=i))))}var s,u,l}function so(e,t,n,i){t==HTMLMediaElement.HAVE_NOTHING||e.readyState>=t?i():(t=uo.value().get(t),n.wa(e,t,i))}to.prototype.Xb=function(){return this.ka},to.prototype.Tb=function(){return this.fa},e("shaka.media.InitSegmentReference",to),to.prototype.getEndByte=to.prototype.Tb,to.prototype.getStartByte=to.prototype.Xb,(t=D.prototype).oa=function(){return this.i()},t.df=function(){return this.startTime},t.Re=function(){return this.endTime},t.Xb=function(){return this.ka},t.Tb=function(){return this.fa},e("shaka.media.SegmentReference",D),D.prototype.getEndByte=D.prototype.Tb,D.prototype.getStartByte=D.prototype.Xb,D.prototype.getEndTime=D.prototype.Re,D.prototype.getStartTime=D.prototype.df,D.prototype.getUris=D.prototype.oa,(t=be.prototype).getDuration=function(){return this.l},t.Xe=function(){return this.g},t.Ma=function(e){this.l=e},t.cf=function(){return this.j},t.se=function(e){this.s=e},t.fc=function(e){this.u=e},t.Od=function(e){this.m=e},t.Jf=function(e){this.Lc=e},t.Qe=function(){return this.Lc},t.Db=function(e){var t;0!=e.length&&(t=e[e.length-1].endTime,this.xd(e[0].startTime),this.g=e.reduce(function(e,t){return Math.max(e,t.endTime-t.startTime)},this.g),this.h=Math.max(this.h,t),null!=this.j)&&this.F&&(this.j=(Date.now()+this.s)/1e3-this.h-this.g)},t.xd=function(e){this.i=null==this.i?e:Math.min(this.i,e)},t.wd=function(e){this.g=Math.max(this.g,e)},t.offset=function(e){null!=this.i&&(this.i+=e),null!=this.h&&(this.h+=e)},t.Z=function(){return 1/0==this.l&&!this.u},t.mb=function(){return 1/0!=this.l&&!this.u},t.Va=function(){return Math.max(this.C,this.ib()-this.m)},t.te=function(e){this.C=e},t.ib=function(){return this.Z()||this.mb()?Math.min(Math.max(0,(Date.now()+this.s)/1e3-this.g-this.j)+this.H,this.l):this.h||this.l},t.Wb=function(e){var t=Math.max(this.i,this.C);return 1/0==this.m?Math.ceil(1e3*t)/1e3:Math.max(t,Math.min(this.ib()-this.m+e,this.Ua()))},t.zb=function(){return this.Wb(0)},t.Ua=function(){return Math.max(0,this.ib()-(this.Z()||this.mb()?this.Lc:0))},t.we=function(){return!(null==this.j||null!=this.h&&this.F)},t.re=function(e){this.H=e},e("shaka.media.PresentationTimeline",be),be.prototype.setAvailabilityTimeOffset=be.prototype.re,be.prototype.usingPresentationStartTime=be.prototype.we,be.prototype.getSeekRangeEnd=be.prototype.Ua,be.prototype.getSeekRangeStart=be.prototype.zb,be.prototype.getSafeSeekRangeStart=be.prototype.Wb,be.prototype.getSegmentAvailabilityEnd=be.prototype.ib,be.prototype.setUserSeekStart=be.prototype.te,be.prototype.getSegmentAvailabilityStart=be.prototype.Va,be.prototype.isInProgress=be.prototype.mb,be.prototype.isLive=be.prototype.Z,be.prototype.notifyMaxSegmentDuration=be.prototype.wd,be.prototype.notifyMinSegmentStartTime=be.prototype.xd,be.prototype.notifySegments=be.prototype.Db,be.prototype.getDelay=be.prototype.Qe,be.prototype.setDelay=be.prototype.Jf,be.prototype.setSegmentAvailabilityDuration=be.prototype.Od,be.prototype.setStatic=be.prototype.fc,be.prototype.setClockOffset=be.prototype.se,be.prototype.getPresentationStartTime=be.prototype.cf,be.prototype.setDuration=be.prototype.Ma,be.prototype.getMaxSegmentDuration=be.prototype.Xe,no.prototype.release=function(){this.j=null,this.i=function(){}},ao.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.C=this.u=null},ao.prototype.Bd=function(){this.m=!0,oo(this)};var uo=new De(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function lo(e,t,n){var i=this;this.g=e,this.l=t,this.j=n,this.m=!1,this.h=new d,this.i=new go(e),so(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){fo(i,i.j)})}function co(e){return e.m?e.g.currentTime:e.j}function ho(e,t){0t.g.getDuration()?t.g.zb():t.g.Ua():n<0&&(n=t.g.Ua()+n),bo(t,To(t,n)))),this.s=new A(function(){var e,t,n;0==u.i.readyState||u.i.paused||(e=co(u.h),t=u.g.zb(),e<(t=(n=u.g.Ua())-t<3?n-3:t)&&(e=wo(u,e),u.i.currentTime=e))}).Da(.25)}function bo(e,t){var n=e.g.getDuration();return n<=t?n-e.o.durationBackoff:t}function wo(e,t){var n=Math.max(e.H,e.o.rebufferingGoal),i=e.o.safeSeekOffset,r=e.g.zb(),a=e.g.Ua(),o=e.g.getDuration(),s=(a-r<3&&(r=a-3),e.g.Wb(n)),u=e.g.Wb(i),n=e.g.Wb(n+i);return o<=t?bo(e,t):as.endTime?Lo:Po;i.g.set(s,l);for(var c=de(i.j),d=c.next();!d.done;d=c.next())(d=d.value).tb==u&&d.sb==l&&d.lb(s,a)}}function Co(e){h.call(this);var i=this;this.g=new Set,this.i=e,this.h=new A(function(){for(var e=i.i(),t=de(i.g),n=t.next();!n.done;n=t.next())(n=n.value).endTime=i.startTime&&e=this.M.length?null:this.M[e]},t.offset=function(e){if(!this.i)for(var t=de(this.M),n=t.next();!n.done;n=t.next())(n=n.value).startTime+=e,n.endTime+=e,n.timestampOffset+=e},t.Gc=function(t){!this.i&&t.length&&(this.M=this.M.filter(function(e){return e.startTimet&&(0==n.M.length||e.endTime>n.M[0].startTime)}),this.Gc(e),this.gb(t)},t.gb=function(t){var e;this.i||(e=this.M.length,this.M=this.M.filter(function(e){return e.endTime>t}),this.h+=e-this.M.length)},t.ab=function(e,t,n){if(n=void 0!==n&&n,!this.i){for(;this.M.length&&this.M[this.M.length-1].startTime>=t;)this.M.pop();for(;this.M.length&&this.M[0].endTime<=e;)this.M.shift(),n||this.h++;0!=this.M.length&&(e=this.M[this.M.length-1],this.M[this.M.length-1]=new D(e.startTime,t,e.i,e.ka,e.fa,e.h,e.timestampOffset,e.appendWindowStart,e.appendWindowEnd))}},t.Oc=function(e,t){var n=this;this.i||(this.g&&this.g.stop(),this.g=new A(function(){var e=t();e?n.M.push.apply(n.M,ie(e)):(n.g.stop(),n.g=null)}),this.g.Da(e))},oe.prototype[Symbol.iterator]=function(){return this.yb(0)},oe.prototype.yb=function(e){var t=this.find(e);if(null==t)return null;var n=this.get(--t+1),i=-1;if(n&&0=a.startTime&&e=e.g.length&&(this.h++,this.g=0,e=this.i.get(this.h)),e&&0r))&&d.xa.abort(),void fe(e))}).catch(function(e){t.D&&t.D.onError(e)})):(a=t,o=e,ge(function(e){switch(e.g){case 1:return s=Ti,ce(e,2),he(e,Qi(a.D.S,s.ba),4);case 4:re(e,3);break;case 2:u=pe(e),a.D&&a.D.onError(u);case 3:u=Di(o.mimeType,o.codecs),zi(a.D.S,u),l=a.D.S.m,(l.isTextVisible()||a.o.alwaysStreamText)&&(l=Ho(o),a.g.set(s.ba,l),zo(a,l,0)),fe(e)}}))}function Ho(e){return{stream:e,type:e.type,da:null,Ca:null,Fc:null,td:null,sd:null,rd:null,pb:null,endOfStream:!1,La:!1,Oa:null,rb:!1,wc:0,Rc:!1,Rb:!1,Ed:!1,Yb:!1,xa:null}}function Vo(l,o,s,c,d,u){var h;return ge(function(e){var t,n,i,r,a;return 1==e.g?(h=c.closedCaptions&&0i,d=l?l.ye:null;if(l&&(o.push(l.Vd),c||(a=!0,e.j.delete(u),l=null)),c){s.push(u);if(!l){{c=void 0;h=void 0;f=void 0;p=void 0;g=void 0;m=void 0;c=e;var h=u;var f=r;var p=1"},""),t=t.reduceRight(function(e,t){return e+""},""),e.lineBreak||e.spacer?(e.spacer&&He("shaka.text.Cue","Please use lineBreak instead of spacer."),"\n"):e.nestedCues.length?e.nestedCues.map(a).join(""):n+e.payload+t}var t=e.map(function(e){var t;return e.nestedCues.length?((t=e.clone()).nestedCues=[],t.payload=a(e),t):e});e="WEBVTT\n\n";for(var n=(t=de(t)).next();!n.done;n=t.next()){function i(e){var t=Math.floor(e/3600),n=Math.floor(e/60%60),i=Math.floor(e%60);return(t<10?"0":"")+t+":"+(n<10?"0":"")+n+":"+(i<10?"0":"")+i+"."+((e=Math.floor(1e3*e%1e3))<100?e<10?"00":"0":"")+e}e=(e+=i((n=n.value).startTime)+" --\x3e "+i(n.endTime)+"\n")+(n.payload+"\n\n")}return e}function us(){}function ls(e,t,n,i,r){var a,o=r in i,s=!0;for(a in t){var u=r+"."+a,l=o?i[r]:n[a];o||a in n?void 0===t[a]?void 0===l||o?delete e[a]:e[a]=sa(l):l.constructor==Object&&t[a]&&t[a].constructor==Object?(e[a]||(e[a]=sa(l)),u=ls(e[a],t[a],l,i,u),s=s&&u):typeof t[a]!=typeof l||null==t[a]||"function"!=typeof t[a]&&t[a].constructor!=l.constructor?(ne("Invalid config, wrong type for "+u),s=!1):("function"==typeof n[a]&&n[a].length!=t[a].length&&ae("Unexpected number of arguments for "+u),e[a]=t[a]):(ne("Invalid config, unrecognized key "+u),s=!1)}return s}function cs(e,t){for(var n={},i=n,r=0,a=0;!((r=e.indexOf(".",r))<0);)0!=r&&"\\"==e[r-1]||(i[a=e.substring(a,r).replace(/\\\./g,".")]={},i=i[a],a=r+1),r+=1;return i[e.substring(a).replace(/\\\./g,".")]=t,n}function ds(){}function hs(){var e=1/0,t=(navigator.connection&&navigator.connection.saveData&&(e=360),{retryParameters:ea(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:ja,logLicenseExchange:!1,updateExpirationTime:1}),n={retryParameters:ea(),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}},i={retryParameters:ea(),failureCallback:function(e){return[e]},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},r=((navigator.userAgent.match(/Edge\//)||ot()||st())&&(i.gapDetectionThreshold=.5),(ct("Web0S")||ot()||st())&&(i.stallSkip=0),{trackSelectionCallback:function(t){return ge(function(e){return e.return(t)})},downloadSizeCallback:function(t){var n;return ge(function(e){return 1==e.g?navigator.storage&&navigator.storage.estimate?he(e,navigator.storage.estimate(),3):e.return(!0):(n=e.h,e.return(n.usage+t<.95*n.quota))})},progressCallback:function(e,t){return[e,t]},usePersistentLicense:!0}),a={drm:t,manifest:n,streaming:i,offline:r,abrFactory:function(){return new Br},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1e6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:e,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0}},preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferForcedSubs:!1,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0},playRangeStart:0,playRangeEnd:1/0,useMediaCapabilities:!1,textDisplayFactory:function(){return null}};return r.trackSelectionCallback=function(t){return ge(function(e){return e.return(function(e,t){var n=e.filter(function(e){return"variant"==e.type}),i=[],r=hr(t,n.map(function(e){return e.language})),a=(0==(i=0==(i=r?n.filter(function(e){return I(e.language)==r}):i).length?n.filter(function(e){return e.primary}):i).length&&(n.map(function(e){return e.language}),i=n),i.filter(function(e){return e.height&&e.height<=480}));{var o;a.length&&(a.sort(function(e,t){return t.height-e.height}),i=a.filter(function(e){return e.height==a[0].height})),n=[],i.length&&(o=Math.floor(i.length/2),i.sort(function(e,t){return e.bandwidth-t.bandwidth}),n.push(i[o]))}for(i=de(e),o=i.next();!o.done;o=i.next())(o=o.value).type!=ve&&"image"!=o.type||n.push(o);return n}(t,a.preferredAudioLanguage))})},a}function fs(e,t,n){var i={".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),individualizationServer:""}};return ls(e,t,n||hs(),i,"")}function ps(){this.g=null,this.h=[]}function gs(e,t){var n;null==e.g?e.g={timestamp:Date.now()/1e3,state:t,duration:0}:(n=Date.now()/1e3,e.g.duration=n-e.g.timestamp,e.g.state!=t&&(e.h.push(e.g),e.g={timestamp:n,state:t,duration:0}))}function ms(e,t){var n=0;e.g&&e.g.state==t&&(n+=e.g.duration);for(var i=de(e.h),r=i.next();!r.done;r=i.next())n+=(r=r.value).state==t?r.duration:0;return n}function vs(){this.i=this.h=null,this.g=[]}function ys(e,t,n){e.h!=t&&(e.h=t,e.g.push({timestamp:Date.now()/1e3,id:t.id,type:"variant",fromAdaptation:n,bandwidth:t.bandwidth}))}function bs(e,t,n){e.i!=t&&(e.i=t,e.g.push({timestamp:Date.now()/1e3,id:t.id,type:"text",fromAdaptation:n,bandwidth:null}))}function ws(){this.s=this.u=this.I=this.F=this.m=this.j=this.H=this.l=this.i=this.L=this.O=this.U=this.C=this.W=NaN,this.h=new ps,this.g=new vs}function n(e,t){h.call(this);var n,l=this,i=(this.l=Du,this.qc=this.g=null,this.ea=!1,this.h=new d,this.dd=this.u=this.$a=this.B=this.tc=this.s=this.i=this.ic=this.I=this.rc=this.F=this.Pa=this.C=this.L=this.m=this.P=null,this.ld=1e9,this.o=Cs(this),this.kd={width:1/0,height:1/0},this.j=null,this.qa=new Xr(this.o.preferredAudioLanguage,this.o.preferredVariantRole,this.o.preferredAudioChannelCount),this.ra=this.o.preferredTextLanguage,this.Ob=this.o.preferredTextRole,this.Nb=this.o.preferForcedSubs,this.ed=[],t&&t(this),this.P=(n=this,new r(function(e,t){n.u&&n.u.segmentDownloaded(e,t)})),this.P.Ld(this.o.streaming.forceHTTPS),this.H=null,ju&&(this.H=We(ju)),this.h.A(x,"online",function(){l.Fd()}),this.ta={name:"detach"},this.Sa={name:"attach"},this.W={name:"unload"},this.nd={name:"manifest-parser"},this.jd={name:"manifest"},this.Ha={name:"media-source"},this.gd={name:"drm-engine"},this.O={name:"load"},this.od={name:"src-equals-drm-engine"},this.Qa={name:"src-equals"},new Map);i.set(this.Sa,function(e,t){return ra((n=l,t=t,null==(e=e).G&&(e.G=t.G,n.h.A(e.G,"error",function(){var e=zs(n);e&&Gs(n,e)})),n.g=e.G,Promise.resolve()));var n}),i.set(this.ta,function(e){return e.G&&(l.h.Ea(e.G,"error"),e.G=null),l.H&&l.H.release(),l.g=null,ra(e=Promise.resolve())}),i.set(this.W,function(e){return ra(xs(l,e))}),i.set(this.Ha,function(e){var u,n,i,r,a;return u=l,n=e,ra(e=ge(function(e){if(1==e.g)return i=new Qn,a=u.o.textDisplayFactory,r=We(a),u.hd=a,t=n.G,he(e,(a=new Gi(t,i,r,function(e,t,n){for(var i=(e=de(e)).next();!i.done;i=e.next())if((i=i.value).data&&i.cueTime&&i.frames){for(var r=i.cueTime+t,a=n,o=de(i.frames),s=o.next();!s.done;s=o.next())Ss(u,r,a,"ID3",s.value);u.H&&u.H.onHlsTimedMetadata(i,r)}})).F,2);var t;u.L=a,fe(e)}))}),i.set(this.nd,function(e,t){var n,i,r,a,o,s;return n=l,i=e,r=t,ra(ge(function(e){if(1==e.g)return i.mimeType=r.mimeType,i.uri=r.uri,s=i.uri,a=n.P,n.$a=s,o=n,he(e,$a(s,a,n.o.manifest.retryParameters,i.mimeType),2);o.tc=e.h,n.s=We(n.tc),s=sa(n.o.manifest),r.G&&"AUDIO"===r.G.nodeName&&(s.disableVideo=!0),n.s.configure(s),fe(e)}))}),i.set(this.jd,function(e){return c=l,a=(e=e).uri,e=c.P,c.ic=new Co(function(){return c.Hd()}),c.ic.addEventListener("regionadd",function(e){e=e.region,qs(c,xu,e),c.H&&c.H.onDashTimedMetadata(e)}),o={networkingEngine:e,filter:function(t){return ge(function(e){return e.return(c.yc(t))})},makeTextStreamsForClosedCaptions:function(e){for(var t,n,i=c,r=e,a=new Set,o=de(r.textStreams),s=o.next();!s.done;s=o.next())"application/cea-608"!=(s=s.value).mimeType&&"application/cea-708"!=s.mimeType||a.add(s.originalId);for(o=de(r.variants),s=o.next();!s.done;s=o.next())if((s=s.value.video)&&s.closedCaptions)for(var u=de(s.closedCaptions.keys()),l=u.next();!l.done;l=u.next())l=l.value,a.has(l)||(t=l.startsWith("CC")?"application/cea-608":"application/cea-708",n=new Eo,t={id:i.ld++,originalId:l,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:n,mimeType:t,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:s.closedCaptions.get(l),label:null,type:ve,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:s.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},r.textStreams.push(t),a.add(l))},onTimelineRegionAdded:function(e){var t=c.ic;e:{for(var n=de(t.g),i=n.next();!i.done;i=n.next())if((i=i.value).schemeIdUri==e.schemeIdUri&&i.id==e.id&&i.startTime==e.startTime&&i.endTime==e.endTime){n=i;break e}n=null}null==n&&(t.g.add(e),e=new ye("regionadd",new Map([["region",e]])),t.dispatchEvent(e))},onEvent:function(e){return c.dispatchEvent(e)},onError:function(e){return Gs(c,e)},isLowLatencyMode:function(){return c.o.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return c.o.streaming.autoLowLatencyMode},enableLowLatencyMode:function(){c.configure("streaming.lowLatencyMode",!0)}},s=Date.now()/1e3,new M(function(){var i,r;return ge(function(e){if(1==e.g)return he(e,(i=c).s.start(a,o),2);if(i.B=e.h,r=Ts(pu),c.dispatchEvent(r),0==c.B.variants.length)throw new me(2,4,4036);function t(e){return e.video&&e.audio||e.video&&e.video.codecs.includes(",")}var n;(n=c.B).variants.some(t)&&(n.variants=n.variants.filter(t)),r=Date.now()/1e3,r=r-s,c.j.H=r,fe(e)})}(),function(){return c.s.stop()});var c,a,o,s}),i.set(this.gd,function(e){var n,t,i,r;return n=l,t=e,ra(e=ge(function(e){return 1==e.g?(i=Date.now()/1e3,r=!0,n.m=Es(n,{Cb:n.P,onError:function(e){Gs(n,e)},Ic:function(e){Xs(n,e)},onExpirationUpdated:function(e,t){Ws(n,e,t)},onEvent:function(e){n.dispatchEvent(e),e.type==uu&&r&&(r=!1,n.j.j=Date.now()/1e3-i)}}),n.o.useMediaCapabilities||wr(n.B),n.m.configure(n.o.drm),he(e,Ea(n.m,n.B.variants,n.B.offlineSessionIds,n.o.useMediaCapabilities),2)):3!=e.g?he(e,n.m.Qb(t.G),3):he(e,n.yc(n.B),0)}))}),i.set(this.O,function(e,t){return ra((f=l,p=e,g=t,ge(function(e){switch(e.g){case 1:if(p.startTime=g.startTime,m=p.G,v=p.uri,f.$a=v,f.F=new Ao({Dc:function(){return p.G.playbackRate},Ac:function(){return p.G.defaultPlaybackRate},Nd:function(e){p.G.playbackRate=e},ie:function(e){p.G.currentTime+=e}}),v=function(){return Ps(f)},y=function(){return Ns(f)},f.h.A(m,"playing",v),f.h.A(m,"pause",v),f.h.A(m,"ended",v),f.h.A(m,"ratechange",y),v=f.o.abrFactory,f.u&&f.dd==v||(f.dd=v,f.u=We(v),"function"!=typeof f.u.playbackRateChanged&&(He("AbrManager","Please use an AbrManager with playbackRateChanged function."),f.u.playbackRateChanged=function(){}),f.u.configure(f.o.abr)),f.qa=new Xr(f.o.preferredAudioLanguage,f.o.preferredVariantRole,f.o.preferredAudioChannelCount),f.ra=f.o.preferredTextLanguage,f.Ob=f.o.preferredTextRole,f.Nb=f.o.preferForcedSubs,Ys(f.B.presentationTimeline,f.o.playRangeStart,f.o.playRangeEnd),f.u.init(function(e,t,n){t=void 0!==t&&t,n=void 0===n?0:n,f.i&&e!=f.i.h&&(ys(f.j.g,e,!0),Uo(f.i,e,t,n),Us(f))}),f.C=(d=f,h=p.startTime,new yo(d.g,d.B,d.o.streaming,h,function(){if(d.Pa&&Mo(d.Pa,!0),d.i)for(var e=d.i,t=e.D.Cc(),n=e.o.smallGapLimit,i=de(e.g.keys()),r=i.next();!r.done;r=i.next()){var r=r.value,a=e.g.get(r),o=(a.da=null,e.D.S);if(!(o=r==ve?null!=(o=o.i).g&&null!=o.h&&t>=o.g&&t, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),o.resolve()),a.h.wa(a.g,"error",function(){o.reject(zs(a))}),new M(o,function(){return o.reject(new me(2,7,7001)),Promise.resolve()});function n(){return Ps(a)}var a,i,r,o,s}),this.la=new $o(this.ta,{Ze:function(e,t,n,i){var r=null;return e==l.ta&&(r=n==l.ta?l.ta:l.Sa),e==l.Sa&&(r=n==l.ta||t.G!=i.G?l.ta:n==l.Sa?l.Sa:n==l.Ha||n==l.O?l.Ha:n==l.Qa?l.od:null),e==l.Ha&&(r=n==l.O&&t.G==i.G?l.nd:l.W),e==l.nd&&(r=nu(l.O,l.jd,l.W,n,t,i)),e==l.jd&&(r=nu(l.O,l.gd,l.W,n,t,i)),e==l.gd&&(r=nu(l.O,l.O,l.W,n,t,i)),e==l.od&&(r=n==l.Qa&&t.G==i.G?l.Qa:l.W),e!=l.O&&e!=l.Qa||(r=l.W),r=e==l.W?i.G&&t.G==i.G?l.Sa:l.ta:r},Ne:function(e,t,n){return l.dispatchEvent(Ts(mu,(new Map).set("state",e.name))),i.get(e)(t,n)},handleError:function(t){return ge(function(e){return 1==e.g?he(e,xs(l,t),2):e.return(t.G?l.Sa:l.ta)})},rf:function(e){l.dispatchEvent(Ts(vu,(new Map).set("state",e.name)))}}),e&&this.Qb(e,!0)}function Ts(e,t){return new ye(e,t)}function xs(t,n){var i,r,a,o,s,u,l,c,d;return ge(function(e){switch(e.g){case 1:return t.l!=Cu&&(t.l=Du),i=t.ed.map(function(e){return e()}),t.ed=[],he(e,Promise.all(i),2);case 2:if(t.dispatchEvent(Ts(ku)),n.mimeType=null,n.startTime=null,n.uri=null,n.G&&(t.h.Ea(n.G,"loadedmetadata"),t.h.Ea(n.G,"playing"),t.h.Ea(n.G,"pause"),t.h.Ea(n.G,"ended"),t.h.Ea(n.G,"ratechange")),t.Pa&&(t.Pa.release(),t.Pa=null),t.rc&&(t.rc.stop(),t.rc=null),t.s)return he(e,t.s.stop(),4);e.v(3);break;case 4:t.s=null,t.tc=null;case 3:if(t.u)return he(e,t.u.stop(),5);e.v(5);break;case 5:if(t.i)return he(e,t.i.destroy(),8);e.v(7);break;case 8:t.i=null;case 7:if(t.F&&(t.F.release(),t.F=null),t.C&&(t.C.release(),t.C=null),t.L)return he(e,t.L.destroy(),10);e.v(9);break;case 10:t.L=null;case 9:if(t.H&&t.H.onAssetUnload(),n.G&&n.G.src)return he(e,new Promise(function(e){return new A(e).V(.1)}),12);e.v(11);break;case 12:for(n.G.removeAttribute("src"),n.G.load();n.G.lastChild;)n.G.removeChild(n.G.firstChild);case 11:if(t.m)return he(e,t.m.destroy(),14);e.v(13);break;case 14:t.m=null;case 13:if(t.$a=null,t.I=null,t.B){for(r=de(t.B.variants),a=r.next();!a.done;a=r.next())for(o=a.value,s=de([o.audio,o.video]),u=s.next();!u.done;u=s.next())(l=u.value)&&l.segmentIndex&&l.segmentIndex.release();for(c=de(t.B.textStreams),u=c.next();!u.done;u=c.next())(d=u.value).segmentIndex&&d.segmentIndex.release()}t.B=null,t.j=new ws,t.hd=null,Rs(t),fe(e)}})}function Ss(e,t,n,i,r){t=(new Map).set("startTime",t).set("endTime",n).set("metadataType",i).set("payload",r),e.dispatchEvent(Ts(gu,t))}function Es(e,t){return new Sa(t,e.o.drm.updateExpirationTime)}function As(e,t){e.I=new Wr,e.I.g=$r,Yr(e.I,t,Math.min(.5,t/2)),Rs(e),e.rc=new A(function(){ks(e)}).Da(.25)}function ks(e){switch(e.l){case Nu:var t;t=!!e.g.ended||null!=(n=Zn(e.g.buffered))&&n>=e.g.duration-1;break;case Ru:e:if(e.g.ended||Xi(e.L))t=!0;else{if(e.B.presentationTimeline.Z()){var n=e.B.presentationTimeline.ib(),i=Zn(e.g.buffered);if(null!=i&&n<=i){t=!0;break e}}t=!1}break;default:t=!1}var i=ti(e.g.buffered,e.g.currentTime),r=t,a=(n=e.I).h.get(n.g);(t=n.g)!=(n.g=i=r||a<=i?Jr:$r)&&Rs(e)}function Is(t){var e,n,i,r;if(t.s&&(e=sa(t.o.manifest),t.g&&"AUDIO"===t.g.nodeName&&(e.disableVideo=!0),t.s.configure(e)),t.m&&t.m.configure(t.o.drm),t.i){t.i.configure(t.o.streaming);try{Ds(t,t.B)}catch(e){Gs(t,e)}t.u&&Ls(t),!(e=t.i.h)||e.allowedByApplication&&e.allowedByKeySystem||_s(t)}t.P&&t.P.Ld(t.o.streaming.forceHTTPS),t.L&&(e=t.o.textDisplayFactory,t.hd!=e)&&(n=We(e),r=(i=t.L).m,i.m=n,r&&(n.setTextVisibility(r.isTextVisible()),r.destroy()),i.i&&(i.i.i=n),t.hd=e,t.i&&(n=(e=t.i).g.get(ve))&&Fo(e,n.stream,!0,0,!0)),t.u&&(t.u.configure(t.o.abr),t.o.abr.enabled?t.u.enable():t.u.disable(),Ks(t)),t.I&&(e=t.o.streaming.rebufferingGoal,t.B&&(e=Math.max(e,t.B.minBufferTime)),Yr(t.I,e,Math.min(.5,e/2))),t.B&&Ys(t.B.presentationTimeline,t.o.playRangeStart,t.o.playRangeEnd)}function Ms(e){return Array.from(e.g.textTracks).filter(function(e){return"metadata"!=e.kind&&"chapters"!=e.kind&&"Shaka Player TextTrack"!=e.label})}function Cs(t){var e=hs();return e.streaming.failureCallback=function(e){t.Z()&&[1001,1002,1003].includes(e.code)&&(e.severity=1,t.Fd())},e.textDisplayFactory=function(){return t.qc?new is(t.g,t.qc):new Zo(t.g)},e}function Ds(e,t){if(e.l!=Cu){for(var n=e.o.restrictions,i=e.kd,r=!1,a=de(t.variants),o=a.next();!o.done;o=a.next()){var s=(o=o.value).allowedByApplication;o.allowedByApplication=mr(o,n,i),s!=o.allowedByApplication&&(r=!0)}if(r&&e.i&&Bs(e),(n=e.m?e.m.i:null)&&e.m.m)for(r=(i=de(t.variants)).next();!r.done;r=i.next())for(a=(r=de(((r=r.value).video?r.video.drmInfos:[]).concat(r.audio?r.audio.drmInfos:[]))).next();!a.done;a=r.next())if((a=a.value).keySystem==n.keySystem)for(o=(a=de(a.initData||[])).next();!o.done;o=a.next())o=o.value,Ma(e.m,o.initDataType,o.initData);$s(e,t)}}function Rs(e){var t,n=e.pd();e.j&&e.I&&e.C&&((t=e.F).j=n,ko(t),Ps(e)),n=(new Map).set("buffering",n),e.dispatchEvent(Ts(su,n))}function Ns(e){var t=e.g.playbackRate;0!=t&&(e.F&&e.F.set(t),t=Ts(yu),e.dispatchEvent(t))}function Ps(e){var t;e.j&&e.I&&(t=e.j.h,e.I.g==$r?gs(t,"buffering"):e.g.paused?gs(t,"paused"):e.g.ended?gs(t,"ended"):gs(t,"playing"))}function Ls(t){try{$s(t,t.B)}catch(e){return Gs(t,e),0}var e=t.B.variants.filter(Nr),e=t.qa.create(e);return t.u.setVariants(Array.from(e.values())),1}function _s(e){var t;(t=Ls(e)?e.u.chooseVariant():null)&&(js(e,t,!0,!0,0),Us(e))}function js(e,t,n,i,r){var a=e.i.h;t==a?i&&Uo(e.i,t,i,r,!0):(ys(e.j.g,t,n),Uo(e.i,t,i,r),n=null,Fs(e,n=a?kr(a):n,t=kr(t)))}function Os(e,t){var n=Array.from(e.g.audioTracks).find(function(e){return e.enabled}),t=(t.enabled=!0,t.id!==n.id&&(n.enabled=!1),n=Dr(n),Dr(t));Fs(e,n,t)}function Us(e){Qs(e,Ts(ou))}function Bs(e){Qs(e,Ts(Au))}function Fs(e,t,n){t=(new Map).set("oldTrack",t).set("newTrack",n),Qs(e,t=Ts(Iu,t))}function Hs(e){Qs(e,Ts(wu))}function Vs(e){Qs(e,Ts(Tu))}function Ks(e){var t=(new Map).set("newStatus",e.o.abr.enabled);Qs(e,Ts(au,t))}function Gs(e,t){var n;e.l!=Cu&&(n=Ts(cu,(new Map).set("detail",t)),e.dispatchEvent(n),n.defaultPrevented)&&(t.handled=!0)}function qs(e,t,n){n=(new Map).set("detail",{schemeIdUri:n.schemeIdUri,value:n.value,startTime:n.startTime,endTime:n.endTime,id:n.id,eventElement:n.eventElement}),e.dispatchEvent(Ts(t,n))}function zs(e){var t,n;return!e.g.error||1==(t=e.g.error.code)?null:((n=e.g.error.msExtendedCode)&&(n<0&&(n+=Math.pow(2,32)),n=n.toString(16)),new me(2,3,3016,t,n,e.g.error.message))}function Xs(e,t){if(e.i){var n=Object.keys(t),i=1==n.length&&"00"==n[0],r=!1;if(n.length)for(var a=(n=de(e.B.variants)).next();!a.done;a=n.next()){var o=[];(a=a.value).audio&&o.push(a.audio),a.video&&o.push(a.video);for(var s=(o=de(o)).next();!s.done;s=o.next()){var u=s.value,s=a.allowedByKeySystem;if(u.keyIds.size){a.allowedByKeySystem=!0;for(var l=(u=de(u.keyIds)).next();!l.done;l=u.next())l=l.value,l=t[i?"00":l],a.allowedByKeySystem=a.allowedByKeySystem&&!!l&&!Lu.includes(l)}s!=a.allowedByKeySystem&&(r=!0)}}r&&Ls(e),(i=e.i.h)&&!i.allowedByKeySystem&&_s(e),r&&Bs(e)}}function Ws(e,t,n){e.s&&e.s.onExpirationUpdated&&e.s.onExpirationUpdated(t,n),t=Ts(du),e.dispatchEvent(t)}function Ys(e,t,n){0=o+e.B.presentationTimeline.g)return 1;!function(d,h,f,p){var t,g,n,m,v,y,b;return ge(function(e){switch(e.g){case 1:return t=Ti,g=h.stream,n=h.da,h.La=!0,ce(e,2),he(e,(i=d,r=h,a=p,ge(function(e){var t,n;return o=[],s=Math.max(0,a.appendWindowStart-.1),u=a.appendWindowEnd+.01,(l=a.timestampOffset)==r.td&&s==r.sd&&u==r.rd||o.push(function(){var t;return ge(function(e){if(1==e.g)return ce(e,2),r.sd=s,r.rd=u,r.td=l,he(e,Zi(i.D.S,r.type,l,s,u),4);if(2!=e.g)return re(e,0);throw t=pe(e),r.sd=null,r.rd=null,r.td=null,t})}()),t=a.h,n=r.Fc,!(t&&n?t.Xb()==n.Xb()&&t.Tb()==n.Tb()&&It(t.oa(),n.oa()):t==n)&&(r.Fc=a.h)&&(c=Go(i,r,a.h),o.push(function(){var t,n;return ge(function(e){switch(e.g){case 1:return ce(e,2),he(e,c,4);case 4:return n=e.h,G(i.J),t=r.stream.closedCaptions&&0t}),!0)},t.append=function(e){function a(e){var t=[],n=700<=e.fontWeight,i="italic"==e.fontStyle,r=e.textDecoration.includes("underline");return n&&t.push("b"),i&&t.push("i"),r&&t.push("u"),n=t.reduce(function(e,t){return e+"<"+t+">"},""),t=t.reduceRight(function(e,t){return e+""},""),e.lineBreak||e.spacer?(e.spacer&&He("shaka.extern.Cue","Please use lineBreak instead of spacer."),"\n"):e.nestedCues.length?e.nestedCues.map(a).join(""):n+e.payload+t}for(var t=e.map(function(e){var t;return e.nestedCues.length?((t=e.clone()).nestedCues=[],t.payload=a(e),t):e}),n=[],i=(e=this.g.cues?Array.from(this.g.cues):[],{}),r=(t=de(t)).next();!r.done;i={ub:i.ub},r=t.next())i.ub=r.value,e.some(function(t){return function(e){return e.startTime==t.ub.startTime&&e.endTime==t.ub.endTime&&e.text==t.ub.payload}}(i))||(r=function(e){if(e.startTime>=e.endTime)return null;var t=new VTTCue(e.startTime,e.endTime,e.payload);t.lineAlign=e.lineAlign,t.positionAlign=e.positionAlign,e.size&&(t.size=e.size);try{t.align=e.textAlign}catch(e){}return"center"==e.textAlign&&"center"!=t.align&&(t.align="middle"),"vertical-lr"==e.writingMode?t.vertical="lr":"vertical-rl"==e.writingMode&&(t.vertical="rl"),1==e.lineInterpretation&&(t.snapToLines=!1),null!=e.line&&(t.line=e.line),null!=e.position&&(t.position=e.position),t}(i.ub))&&n.push(r);for(i=(e=de(e=n.slice().sort(function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime!=t.endTime?e.endTime-t.startTime:"line"in VTTCue.prototype?n.indexOf(t)-n.indexOf(e):n.indexOf(e)-n.indexOf(t)}))).next();!i.done;i=e.next())this.g.addCue(i.value)},t.destroy=function(){return this.g&&(es(this.g,function(){return 1}),this.g.mode="disabled"),this.g=null,Promise.resolve()},t.isTextVisible=function(){return"showing"==this.g.mode},t.setTextVisibility=function(e){this.g.mode=e?"showing":"hidden"},e("shaka.text.SimpleTextDisplayer",Zo),e("shaka.util.Dom",ts),ts.removeAllChildren=ns,(t=is.prototype).append=function(e){for(var t=[].concat(ie(this.l)),n={},i=(e=de(e)).next();!i.done;n={jc:n.jc},i=e.next())n.jc=i.value,t.some(function(t){return function(e){return Mt(e,t.jc)}}(n))||this.l.push(n.jc);as(this)},t.destroy=function(){this.u.removeChild(this.i),this.i=null,this.m=!1,this.l=[],this.C&&this.C.stop(),this.j.clear(),this.h&&(this.h.release(),this.h=null),this.s&&(this.s.disconnect(),this.s=null)},t.remove=function(t,n){var e;return!!this.i&&(e=this.l.length,this.l=this.l.filter(function(e){return e.startTime=n}),as(this,e>this.l.length),!0)},t.isTextVisible=function(){return this.m},t.setTextVisibility=function(e){this.m=e},e("shaka.text.UITextDisplayer",is),e("shaka.text.WebVttGenerator",function(){}),e("shaka.util.ConfigUtils",us),us.convertToConfigObject=cs,us.mergeConfigObjects=ls,e("shaka.util.PlayerConfiguration",ds),ds.mergeConfigObjects=fs,y(n,h),(t=n.prototype).destroy=function(){var t,n=this;return ge(function(e){switch(e.g){case 1:return n.l==Cu?e.return():(n.l=Cu,t=Jo(n.la,function(){return{node:n.ta,payload:iu(),kb:!1}}),he(e,new Promise(function(e){t.Eb=function(){},t.Hc=function(){e()},t.nb=function(){e()},t.onError=function(){e()},t.Jc=function(){e()}}),2));case 2:return he(e,n.la.destroy(),3);case 3:if(n.h&&(n.h.release(),n.h=null),n.dd=null,n.u=null,n.o=null,n.j=null,n.qc=null,n.P)return he(e,n.P.destroy(),5);e.v(4);break;case 5:n.P=null;case 4:h.prototype.release.call(n),fe(e)}})},t.Qb=function(e,t){var n,i;return t=void 0===t||t,this.l==Cu?Promise.reject(tu()):((n=iu()).G=e,i=(t=it()?t:!1)?this.Ha:this.Sa,(e=Jo(this.la,function(){return{node:i,payload:n,kb:!1}})).Eb=function(){},ru(e))},t.detach=function(){var e,t=this;return this.l==Cu?Promise.reject(tu()):((e=Jo(this.la,function(){return{node:t.ta,payload:iu(),kb:!1}})).Eb=function(){},ru(e))},t.Rd=function(n){var i=this;if(n=void 0===n||n,this.l==Cu)return Promise.reject(tu());it()||(n=!1);var r=iu(),e=Jo(this.la,function(e){var t=e.G&&n?i.Ha:e.G?i.Sa:i.ta;return r.G=e.G,{node:t,payload:r,kb:!1}});return e.Eb=function(){},ru(e)},t.load=function(e,t,n){var i=this;if(this.l==Cu)return Promise.reject(tu());this.dispatchEvent(Ts(fu));var r=iu(),a=(r.uri=e,r.Pd=Date.now()/1e3,n&&(r.mimeType=n),void 0!==t&&(r.startTime=t),function(e,t){if(!it())return 1;var n=t.mimeType,i=t.uri||"";if(n=n||{mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"}[Qa(i)]){if(""==(t.G||dt()).canPlayType(n))return;if(!it()||!(n in Za||Qa(i)in eo)||e.o.streaming.preferNativeHls)return 1;if(ut())return e.o.streaming.useNativeHlsOnSafari}return}(this,r)?this.Qa:this.O),o=Jo(this.la,function(e){return null==e.G?null:(r.G=e.G,{node:a,payload:r,kb:!0})});return this.j=new ws,o.Eb=function(){},new Promise(function(e,t){o.Jc=function(){return t(new me(2,7,7002))},o.Hc=function(){e(),i.dispatchEvent(Ts(hu))},o.nb=function(){return t(tu())},o.onError=function(e){return t(e)}})},t.configure=function(e,t){(e=2==arguments.length&&"string"==typeof e?cs(e,t):e).manifest&&e.manifest.dash&&"defaultPresentationDelay"in e.manifest.dash&&(He("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),e.manifest.defaultPresentationDelay=e.manifest.dash.defaultPresentationDelay,delete e.manifest.dash.defaultPresentationDelay),e.streaming&&e.streaming.lowLatencyMode&&(null==e.streaming.inaccurateManifestTolerance&&(e.streaming.inaccurateManifestTolerance=0),null==e.streaming.rebufferingGoal)&&(e.streaming.rebufferingGoal=.01);var n=fs(this.o,e,Cs(this));return Is(this),n},t.getConfiguration=function(){var e=Cs(this);return fs(e,this.o,Cs(this)),e},t.Df=function(){for(var e in this.o)delete this.o[e];fs(this.o,Cs(this),Cs(this)),Is(this)},t.Ue=function(){return this.l},t.Ye=function(){return this.g},t.Vb=function(){return this.P},t.md=function(){return this.$a},t.ae=function(){return this.H||null},t.Z=function(){return this.B?this.B.presentationTimeline.Z():!(!this.g||!this.g.src)&&1/0==this.g.duration},t.mb=function(){return!!this.B&&this.B.presentationTimeline.mb()},t.lf=function(){var e;return this.B?!!(e=this.B.variants).length&&!e[0].video:!(!this.g||!this.g.src)&&(this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight)},t.Hd=function(){var e;return this.B?{start:(e=this.B.presentationTimeline).zb(),end:e.Ua()}:this.g&&this.g.src&&(e=this.g.seekable).length?{start:e.start(0),end:e.end(e.length-1)}:{start:0,end:0}},t.keySystem=function(){return Ca(this.drmInfo())},t.drmInfo=function(){return this.m?this.m.i:null},t.Ub=function(){return this.m?this.m.Ub():1/0},t.Bc=function(){return this.m?this.m.Bc():{}},t.pd=function(){return!!this.I&&this.I.g==$r},t.$e=function(){return this.g?this.F?this.F.i:1:0},t.Mf=function(e){0==e?ae("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.F.set(e),this.l==Ru&&(this.u.playbackRateChanged(e),Oo(this.i,1n(o,i))&&(a=o);if(a)return n=kr(a),void this.qe(n,!0)}_s(this)}else if(this.g&&this.g.audioTracks){for(r=Array.from(this.g.audioTracks),n=I(e),a=i=null,o=(r=de(r)).next();!o.done;o=r.next()){var s=Dr(o=o.value);I(s.language)==n&&(i=o,t?s.roles.includes(t)&&(a=o):0==s.roles.length&&(a=o))}a?Os(this,a):i&&Os(this,i)}},t.Jd=function(e,t,n){var i;n=void 0!==n&&n,this.B&&this.C?(this.ra=e,this.Ob=t||"",this.Nb=n,(e=Lr(this.B.textStreams,this.ra,this.Ob,this.Nb)[0]||null)&&e!=this.i.i&&(bs(this.j.g,e,!1),this.o.streaming.alwaysStreamText||this.qd())&&(Bo(this.i,e),Hs(this))):(i=I(e),(e=this.jb().find(function(e){return I(e.language)==i&&(!t||e.roles.includes(t))&&e.forced==n}))&&this.pe(e))},t.Ef=function(e){if(this.B&&this.C){for(var t=null,n=de(this.B.variants),i=n.next();!i.done;i=n.next())if((i=i.value).audio.label==e){t=i;break}null!=t&&(this.qa=new Xr(t.language,"",0,e),_s(this))}},t.qd=function(){var e=this.ea;return this.L?this.L.m.isTextVisible():this.g&&this.g.src&&this.g.textTracks?Ms(this).some(function(e){return"showing"==e.mode}):e},t.Kf=function(e){if(this.ea!=(e=!!e)){if(this.ea=e,this.l==Ru)this.L.m.setTextVisibility(e),this.o.streaming.alwaysStreamText||(e?this.i.i||0<(e=Lr(this.B.textStreams,this.ra,this.Ob,this.Nb)).length&&(Bo(this.i,e[0]),Hs(this)):(i=this.i,(r=i.g.get(ve))&&(Xo(r),Wo(r).catch(function(){}),i.g.delete(ve)),i.i=null));else if(this.g&&this.g.src&&this.g.textTracks)for(var t=Ms(this),n=(t=de(t)).next();!n.done;n=t.next())"disabled"!=(n=n.value).mode&&(n.mode=e?"showing":"hidden");Vs(this)}var i,r},t.bf=function(){if(!this.Z())return null;var e=this.la.l,t=0;if(this.C)t=this.C.l();else if(e){if(null==e.startTime)return new Date;t=e.startTime}return this.B?new Date(1e3*(this.B.presentationTimeline.j+t)):!this.g||!this.g.getStartDate||(e=this.g.getStartDate(),isNaN(e.getTime()))?null:new Date(e.getTime()+1e3*t)},t.be=function(){var e;return this.Z()?this.B?new Date(1e3*this.B.presentationTimeline.j):!this.g||!this.g.getStartDate||(e=this.g.getStartDate(),isNaN(e.getTime()))?null:e:null},t.zc=function(){var e;return this.l==Ru?this.L.zc():(e={total:[],audio:[],video:[],text:[]},this.l==Nu&&(e.total=ni(this.g.buffered)),e)},t.getStats=function(){if(this.l!=Ru&&this.l!=Nu)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};Ps(this);var e=(n=this.g).currentTime/n.duration,t=(isNaN(e)||(i=this.j,e=Math.round(100*e),i.i=isNaN(i.i)?e:Math.max(i.i,e)),n.getVideoPlaybackQuality&&(n=n.getVideoPlaybackQuality(),i=this.j,e=Number(n.totalVideoFrames),i.U=Number(n.droppedVideoFrames),i.O=e,this.j.L=Number(n.corruptedVideoFrames)),n=this.m&&(n=this.m).H||NaN,this.j.m=n,this.l==Ru&&((n=this.i.h)&&(this.j.u=(this.F?this.F.i:1)*n.bandwidth),n&&n.video&&(i=this.j,e=n.video.height||NaN,i.W=n.video.width||NaN,i.C=e),this.Z()&&(n=this.be().valueOf()+1e3*this.Hd().end,this.j.F=(Date.now()-n)/1e3),this.B&&this.B.presentationTimeline&&(this.j.I=this.B.presentationTimeline.g),n=this.u.getBandwidthEstimate(),this.j.s=n),this.j),n=t.W,i=t.C;e=t.u;for(var r=t.O,a=t.U,o=t.L,s=t.s,u=t.i,l=t.l,c=t.H,d=t.j,h=ms(t.h,"playing"),f=ms(t.h,"paused"),p=ms(t.h,"buffering"),g=t.m,m=t.F,v=t.I,y=function(e){function t(e){return{timestamp:e.timestamp,state:e.state,duration:e.duration}}for(var n=[],i=de(e.h),r=i.next();!r.done;r=i.next())n.push(t(r.value));return e.g&&n.push(t(e.g)),n}(t.h),b=[],w=(t=de(t.g.g)).next();!w.done;w=t.next())w=w.value,b.push({timestamp:w.timestamp,id:w.id,type:w.type,fromAdaptation:w.fromAdaptation,bandwidth:w.bandwidth});return{width:n,height:i,streamBandwidth:e,decodedFrames:r,droppedFrames:a,corruptedFrames:o,estimatedBandwidth:s,completionPercent:u,loadLatency:l,manifestTimeSeconds:c,drmTimeSeconds:d,playTime:h,pauseTime:f,bufferingTime:p,licenseTime:g,liveLatency:m,maxSegmentDuration:v,stateHistory:y,switchHistory:b}},t.addTextTrack=function(e,t,n,i,r,a,o){if(o=void 0!==o&&o,He("addTextTrack","Please use an addTextTrackAsync."),this.l!=Ru&&this.l!=Nu)throw new me(1,7,7004);if(!i){var s=Qa(e);if(!(i={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa"}[s]))throw new me(1,2,2011,s)}if(this.l==Nu){if("text/vtt"!=i)throw new me(1,2,2013,i);if(o&&(n="forced"),(i=document.createElement("track")).src=e,i.label=a||"",i.kind=n,i.srclang=t,this.g.getAttribute("crossorigin")||this.g.setAttribute("crossorigin","anonymous"),this.g.appendChild(i),e=this.jb().find(function(e){return e.language==t&&e.label==(a||"")&&e.kind==n}))return Bs(this),e;throw new me(1,2,2012)}if(1/0==(s=this.B.presentationTimeline.getDuration()))throw new me(1,4,4033);if(_i(Di((e={id:this.ld++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:xo(0,s,[e]),mimeType:i||"",codecs:r||"",kind:n,encrypted:!1,drmInfos:[],keyIds:new Set,language:t,label:a||null,type:ve,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!o,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}).mimeType,e.codecs)))return this.B.textStreams.push(e),Bs(this),Ir(e);throw new me(2,2,2014,i)},t.Ce=function(o,s,u,l,c,d,h){h=void 0!==h&&h;var f,p,g,m,v,y=this;return ge(function(e){switch(e.g){case 1:if(y.l!=Ru&&y.l!=Nu)throw new me(1,7,7004);if(l){e.v(2);break}if(f=Qa(o),l={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa"}[f]){e.v(3);break}return ce(e,4),he(e,Ja(o,y.P,y.o.streaming.retryParameters),6);case 6:l=e.h,re(e,3);break;case 4:pe(e);case 3:if(!l)throw new me(1,2,2011,f);case 2:if(y.l!=Nu)e.v(7);else{if("text/vtt"!=l)return he(e,(t=o,n=y.P,i=y.o.streaming.retryParameters,ge(function(e){return 1==e.g?(a=ga,(r=ha([t],i)).method="GET",he(e,n.request(a,r).promise,2)):(a=e.h,e.return(a.data))})),9);e.v(8)}break;case 9:p=e.h,p=function(e,t,n){var i=Ui[n];if(i)return n=i(),e={periodStart:0,segmentStart:0,segmentEnd:e.g.duration},t=S(t),ss(t=n.parseMedia(t,e));throw new me(2,2,2014,n)}(y,p,l),p=new Blob([p],{type:"text/vtt"}),o=or(p),l="text/vtt";case 8:if(h&&(u="forced"),(p=document.createElement("track")).src=o,p.label=d||"",p.kind=u,p.srclang=s,y.g.getAttribute("crossorigin")||y.g.setAttribute("crossorigin","anonymous"),y.g.appendChild(p),g=y.jb(),g=g.find(function(e){return e.language==s&&e.label==(d||"")&&e.kind==u}))return Bs(y),e.return(g);throw new me(1,2,2012);case 7:if(g=Ti,1/0==(m=y.B.presentationTimeline.getDuration()))throw new me(1,4,4033);if(m={id:y.ld++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:xo(0,m,[o]),mimeType:l||"",codecs:c||"",kind:u,encrypted:!1,drmInfos:[],keyIds:new Set,language:s,label:d||null,type:g.ba,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!h,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},v=Di(m.mimeType,m.codecs),_i(v))return y.B.textStreams.push(m),Bs(y),e.return(Ir(m));throw new me(2,2,2014,l)}var t,n,i,r,a})},t.Md=function(e,t){this.kd.width=e,this.kd.height=t},t.Fd=function(){if(this.l==Ru){var e=this.i;if(e.J.g)e=!1;else if(e.j)e=!1;else{for(var t=de(e.g.values()),n=t.next();!n.done;n=t.next())(n=n.value).Yb&&(n.Yb=!1,zo(e,n,.1));e=!0}}else e=!1;return e},t.Ve=function(){return ae("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for."),this.B},t.We=function(){return this.tc},t.ue=function(e){this.qc=e},t.yc=function(r){var a=this;return ge(function(e){if(1==e.g)return he(e,(t=a,n=r,ge(function(e){if(1==e.g)return i=t.i?t.i.h:null,he(e,vr(t.m,i,n,t.o.useMediaCapabilities),2);Js(n),fe(e)})),2);var t,n,i;Ds(a,r),fe(e)})},e("shaka.Player",n),n.prototype.setVideoContainer=n.prototype.ue,n.prototype.getManifestParserFactory=n.prototype.We,n.prototype.getManifest=n.prototype.Ve,n.prototype.retryStreaming=n.prototype.Fd,n.prototype.setMaxHardwareResolution=n.prototype.Md,n.prototype.addTextTrackAsync=n.prototype.Ce,n.prototype.getBufferedInfo=n.prototype.zc,n.prototype.getPresentationStartTimeAsDate=n.prototype.be,n.prototype.getPlayheadTimeAsDate=n.prototype.bf,n.prototype.setTextTrackVisibility=n.prototype.Kf,n.prototype.isTextTrackVisible=n.prototype.qd,n.prototype.selectVariantsByLabel=n.prototype.Ef,n.prototype.selectTextLanguage=n.prototype.Jd,n.prototype.selectAudioLanguage=n.prototype.Id,n.prototype.getTextLanguages=n.prototype.ff,n.prototype.getAudioLanguages=n.prototype.Oe,n.prototype.getTextLanguagesAndRoles=n.prototype.gf,n.prototype.getAudioLanguagesAndRoles=n.prototype.Pe,n.prototype.selectVariantTrack=n.prototype.qe,n.prototype.selectTextTrack=n.prototype.pe,n.prototype.getThumbnails=n.prototype.hf,n.prototype.getImageTracks=n.prototype.Se,n.prototype.getTextTracks=n.prototype.jb,n.prototype.getVariantTracks=n.prototype.Ec,n.prototype.cancelTrickPlay=n.prototype.Ge,n.prototype.trickPlay=n.prototype.Mf,n.prototype.getPlaybackRate=n.prototype.$e,n.prototype.isBuffering=n.prototype.pd,n.prototype.getKeyStatuses=n.prototype.Bc,n.prototype.getExpiration=n.prototype.Ub,n.prototype.seekRange=n.prototype.Hd,n.prototype.isAudioOnly=n.prototype.lf,n.prototype.isInProgress=n.prototype.mb,n.prototype.isLive=n.prototype.Z,n.prototype.getAdManager=n.prototype.ae,n.prototype.getAssetUri=n.prototype.md,n.prototype.getNetworkingEngine=n.prototype.Vb,n.prototype.getMediaElement=n.prototype.Ye,n.prototype.getLoadMode=n.prototype.Ue,n.prototype.resetConfiguration=n.prototype.Df,n.prototype.unload=n.prototype.Rd,n.prototype.attach=n.prototype.Qb,n.probeSupport=function(c){var d,h,f,p,g;return c=void 0===c||c,ge(function(e){if(1==e.g)return d={},c?he(e,ge(function(e){return 1==e.g?(n="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(" "),r=[{videoCapabilities:t=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],persistentState:"required",sessionTypes:["persistent-license"]},{initDataTypes:["cenc"],videoCapabilities:t}],a=new Map,t=function(t){var n,i;return ge(function(e){switch(e.g){case 1:return ce(e,2),he(e,navigator.requestMediaKeySystemAccess(t,r),4);case 4:return n=e.h,i=!!(i=n.getConfiguration().sessionTypes)&&i.includes("persistent-license"),ct("Tizen 3")&&(i=!1),a.set(t,{persistentState:i}),he(e,n.createMediaKeys(),5);case 5:re(e,0);break;case 2:pe(e),a.set(t,null),fe(e)}})},n=n.map(t),he(e,Promise.all(n),2)):e.return(xa(a))}),3):e.v(2);2!=e.g&&(d=e.h);var r,a,t,n,i={};if(it()){for(var o in Za)i[o]=!0;for(var s in eo)i[s]=!0}for(var u,o={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"},l=(s=de(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"])).next();!l.done;l=s.next())i[l=l.value]=it()?!!Za[l]:rt(l);for(u in o)i[u]=it()?!!eo[u]:rt(o[u]);for(h=i,i={},o=(u=de('video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="opus",audio/mp4; codecs="flac",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(","))).next();!o.done;o=u.next())i[o=o.value]=it()?!!_i(o)||MediaSource.isTypeSupported(o)||Ii(o):rt(o),i[s=o.split(";")[0]]=i[s]||i[o];for(g in f={manifest:h,media:i,drm:d},p=_u)f[g]=p[g]();return e.return(f)})},n.isBrowserSupported=function(){var e;return x.Promise||ae("A Promise implementation or polyfill is required"),x.TextDecoder&&x.TextEncoder||ae("A TextDecoder/TextEncoder implementation or polyfill is required"),!(!(x.Promise&&x.Uint8Array&&x.TextDecoder&&x.TextEncoder&&Array.prototype.forEach)||ct("Trident/")||(e=lt())&&e<12||!(x.MediaKeys&&x.navigator&&x.navigator.requestMediaKeySystemAccess&&x.MediaKeySystemAccess&&x.MediaKeySystemAccess.prototype.getConfiguration))&&(!!it()||rt("application/x-mpegurl"))},n.setAdManagerFactory=function(e){ju=e},n.registerSupportPlugin=function(e,t){_u[e]=t};var au="abrstatuschanged",ou="adaptation",su="buffering",uu="drmsessionupdate",lu="emsg",cu="error",du="expirationupdated",hu="loaded",fu="loading",pu="manifestparsed",gu="metadata",mu="onstatechange",vu="onstateidle",yu="ratechange",bu="streaming",wu="textchanged",Tu="texttrackvisibility",xu="timelineregionadded",Su="timelineregionenter",Eu="timelineregionexit",Au="trackschanged",ku="unloading",Iu="variantchanged",Mu={Tf:au,Uf:ou,Vf:su,Wf:uu,Yf:lu,Error:cu,Zf:du,$f:"largegap",ag:hu,bg:fu,cg:pu,Metadata:gu,dg:mu,eg:vu,fg:yu,gg:"sessiondata",hg:bu,ig:wu,jg:Tu,kg:xu,lg:Su,mg:Eu,ng:Au,og:ku,pg:Iu},Cu=0,Du=1,Ru=2,Nu=3,Pu=(n.LoadMode={DESTROYED:Cu,NOT_LOADED:Du,MEDIA_SOURCE:Ru,SRC_EQUALS:Nu},n.version="v3.1.6",["3","1"]),Ge=new function(e){this.g=e,this.i=Ve,this.h=Ke}(new Fe(Number(Pu[0]),Number(Pu[1]))),Lu=["output-restricted","internal-error"],_u={},ju=null;function Ou(){this.h=[],this.j=this.i=this.g=0}function Uu(e,t){var n=this;this.i=e,this.g=t,this.j=!1,this.l=this.g.getVolume(),this.h=new d,this.h.A(this.g,google.ima.AdEvent.Type.PAUSED,function(){n.j=!0}),this.h.A(this.g,google.ima.AdEvent.Type.RESUMED,function(){n.j=!1})}function Bu(e,t,n,i){var s=this;this.m=e,this.g=t,this.u=null,this.C=NaN,this.j=i,this.s=null,this.h=new d,google.ima.settings.setLocale(n),(e=new google.ima.AdDisplayContainer(this.m,this.g)).initialize(),this.l=new google.ima.AdsLoader(e),this.l.getSettings().setPlayerType("shaka-player"),this.l.getSettings().setPlayerVersion("v3.1.6"),this.i=null,this.h.wa(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(e){var t=s,n=(t.j(new ye("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-t.C))),t.i=e.getAdsManager(t.g),t.j(new ye("ima-ad-manager-loaded",(new Map).set("imaAdManager",t.i))),t.i.getCuePoints());if(n.length){for(var i=[],r=(n=de(n)).next();!r.done;r=n.next())i.push(new qu(r.value));t.j(new ye("ad-cue-points-changed",(new Map).set("cuepoints",i)))}var a=t;function o(e,t){e=(new Map).set("originalEvent",e);a.j(new ye(t,e))}a.h.A(a.i,google.ima.AdErrorEvent.Type.AD_ERROR,function(e){Fu(a,e)}),a.h.A(a.i,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(e){Hu(a,e)}),a.h.A(a.i,google.ima.AdEvent.Type.STARTED,function(e){Hu(a,e)}),a.h.A(a.i,google.ima.AdEvent.Type.FIRST_QUARTILE,function(e){o(e,"ad-first-quartile")}),a.h.A(a.i,google.ima.AdEvent.Type.MIDPOINT,function(e){o(e,"ad-midpoint")}),a.h.A(a.i,google.ima.AdEvent.Type.THIRD_QUARTILE,function(e){o(e,"ad-third-quartile")}),a.h.A(a.i,google.ima.AdEvent.Type.COMPLETE,function(e){o(e,"ad-complete")}),a.h.A(a.i,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(e){Vu(a,e)}),a.h.A(a.i,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(e){Vu(a,e)}),a.h.A(a.i,google.ima.AdEvent.Type.SKIPPED,function(e){o(e,"ad-skipped")}),a.h.A(a.i,google.ima.AdEvent.Type.VOLUME_CHANGED,function(e){o(e,"ad-volume-changed")}),a.h.A(a.i,google.ima.AdEvent.Type.VOLUME_MUTED,function(e){o(e,"ad-muted")}),a.h.A(a.i,google.ima.AdEvent.Type.PAUSED,function(e){a.s.j=!0,o(e,"ad-paused")}),a.h.A(a.i,google.ima.AdEvent.Type.RESUMED,function(e){a.s.j=!1,o(e,"ad-resumed")}),a.h.A(a.i,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(e){o(e,"ad-skip-state-changed")}),a.h.A(a.i,google.ima.AdEvent.Type.CLICK,function(e){o(e,"ad-clicked")}),a.h.A(a.i,google.ima.AdEvent.Type.AD_PROGRESS,function(e){o(e,"ad-progress")}),a.h.A(a.i,google.ima.AdEvent.Type.AD_BUFFERING,function(e){o(e,"ad-buffering")}),a.h.A(a.i,google.ima.AdEvent.Type.IMPRESSION,function(e){o(e,"ad-impression")}),a.h.A(a.i,google.ima.AdEvent.Type.DURATION_CHANGE,function(e){o(e,"ad-duration-changed")}),a.h.A(a.i,google.ima.AdEvent.Type.USER_CLOSE,function(e){o(e,"ad-closed")}),a.h.A(a.i,google.ima.AdEvent.Type.LOADED,function(e){o(e,"ad-loaded")}),a.h.A(a.i,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(e){o(e,"all-ads-completed")}),a.h.A(a.i,google.ima.AdEvent.Type.LINEAR_CHANGED,function(e){o(e,"ad-linear-changed")}),a.h.A(a.i,google.ima.AdEvent.Type.AD_METADATA,function(e){o(e,"ad-metadata")}),a.h.A(a.i,google.ima.AdEvent.Type.LOG,function(e){o(e,"ad-recoverable-error")}),a.h.A(a.i,google.ima.AdEvent.Type.AD_BREAK_READY,function(e){o(e,"ad-break-ready")}),a.h.A(a.i,google.ima.AdEvent.Type.INTERACTION,function(e){o(e,"ad-interaction")});try{t.i.init(t.g.offsetWidth,t.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),t.h.A(t.g,"loadeddata",function(){t.i.resize(t.g.offsetWidth,t.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in x&&(t.u=new ResizeObserver(function(){t.i.resize(t.g.offsetWidth,t.g.offsetHeight,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),t.u.observe(t.g)),t.i.start()}catch(e){Vu(t,null)}}),this.h.A(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,function(e){Fu(s,e)}),this.g.onended=function(){s.l.contentComplete()}}function Fu(e,t){t.getError(),Vu(e,null),e.j(new ye("ad-cue-points-changed",(new Map).set("cuepoints",[])))}function Hu(e,t){var n=t.getAd();e.s=new Uu(n,e.i),n=(new Map).set("ad",e.s).set("sdkAdObject",n).set("originalEvent",t),e.j(new ye("ad-started",n)),e.m.setAttribute("ad-active","true"),e.g.pause()}function Vu(e,t){e.j(new ye("ad-stopped",(new Map).set("originalEvent",t))),e.m.removeAttribute("ad-active"),e.g.play()}function Ku(e,t){this.i=e,this.h=null,this.g=t}function Gu(e,t,n,i){var r=this;this.u=e,this.g=t,this.l=null,this.I=NaN,this.j=i,this.H=!1,this.C=this.m=this.s=null,this.F="",this.h=new d,(e=new google.ima.dai.api.UiSettings).setLocale(n),this.i=new google.ima.dai.api.StreamManager(this.g,this.u,e),this.j(new ye("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.i))),this.h.A(this.i,google.ima.dai.api.StreamEvent.Type.LOADED,function(e){var n=r;n.j(new ye("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-n.I))),e=e.getStreamData().url,n.l.resolve(e),n.l=null,n.H||n.h.A(n.g,"seeked",function(){var e,t=n.g.currentTime;0!=t&&(n.i.streamTimeForContentTime(t),e=n.i.previousCuePointForStreamTime(t))&&!e.played&&(n.s=t,n.g.currentTime=e.start)})}),this.h.A(this.i,google.ima.dai.api.StreamEvent.Type.ERROR,function(){r.F.length?r.l.resolve(r.F):r.l.reject("IMA Stream request returned an error and there was no backup asset uri provided."),r.l=null}),this.h.A(this.i,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){}),this.h.A(this.i,google.ima.dai.api.StreamEvent.Type.STARTED,function(e){e=e.getAd(),r.m=new Ku(e,r.g),r.C&&(r.m.h=r.C),r.j(new ye("ad-started",(new Map).set("ad",r.m))),r.u.setAttribute("ad-active","true")}),this.h.A(this.i,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){r.u.removeAttribute("ad-active");var e=r.g.currentTime;r.s&&r.s>e&&(r.g.currentTime=r.s,r.s=null)}),this.h.A(this.i,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(e){r.C=e.getStreamData().adProgressData,r.m&&(r.m.h=r.C)}),this.h.A(this.i,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){r.j(new ye("ad-first-quartile"))}),this.h.A(this.i,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){r.j(new ye("ad-midpoint"))}),this.h.A(this.i,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){r.j(new ye("ad-third-quartile"))}),this.h.A(this.i,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){r.j(new ye("ad-complete")),r.j(new ye("ad-stopped")),r.u.removeAttribute("ad-active"),r.m=null}),this.h.A(this.i,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){r.j(new ye("ad-skipped")),r.j(new ye("ad-stopped"))}),this.h.A(this.i,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(e){var t=e.getStreamData();e=[];for(var n=(t=de(t.cuepoints)).next();!n.done;n=t.next())n=n.value,e.push(new qu(n.start,n.end));r.j(new ye("ad-cue-points-changed",(new Map).set("cuepoints",e)))})}function i(){h.call(this),this.g=this.h=null,this.j=new Ou,this.i=navigator.language}function qu(e,t){this.start=e,this.end=void 0===t?null:t}function zu(e){return JSON.stringify(e,function(e,t){if("function"!=typeof t){if(t instanceof Event||t instanceof ye){var n={};for(r in t){var i=t[r];i&&"object"==typeof i?"detail"==r&&(n[r]=i):r in Event||(n[r]=i)}return n}if(t instanceof Error){var r=new Set(["name","message","stack"]);for(n in t)r.add(n);for(n=(i=de(Object.getOwnPropertyNames(t))).next();!n.done;n=i.next())r.add(n.value);for(i={},n=(r=de(r)).next();!n.done;n=r.next())i[n=n.value]=t[n];r={__type__:"Error",contents:i}}else if(t instanceof TimeRanges)for(r={__type__:"TimeRanges",length:t.length,start:[],end:[]},i=(n=de(ni(t))).next();!i.done;i=n.next()){var a=(i=i.value).end;r.start.push(i.start),r.end.push(a)}else r=t instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(t)}:"number"==typeof t?isNaN(t)?"NaN":isFinite(t)?t:t<0?"-Infinity":"Infinity":t;return r}})}function Xu(e){return JSON.parse(e,function(e,t){if("NaN"==t)var n=NaN;else if("-Infinity"==t)n=-1/0;else if("Infinity"==t)n=1/0;else if(t&&"object"==typeof t&&"TimeRanges"==t.__type__)n={length:(a=t).length,start:function(e){return a.start[e]},end:function(e){return a.end[e]}};else if(t&&"object"==typeof t&&"Uint8Array"==t.__type__)n=new Uint8Array(t.entries);else if(t&&"object"==typeof t&&"Error"==t.__type__){var i,n=t.contents,r=Error(n.message);for(i in n)r[i]=n[i];n=r}else n=t;var a;return n})}(t=Uu.prototype).getDuration=function(){return this.i.getDuration()},t.getMinSuggestedDuration=function(){return this.i.getMinSuggestedDuration()},t.getRemainingTime=function(){return this.g.getRemainingTime()},t.isPaused=function(){return this.j},t.isSkippable=function(){return 0<=this.i.getSkipTimeOffset()},t.getTimeUntilSkippable=function(){var e=this.i.getSkipTimeOffset(),e=this.getRemainingTime()-e;return Math.max(e,0)},t.canSkipNow=function(){return this.g.getAdSkippableState()},t.skip=function(){return this.g.skip()},t.pause=function(){return this.g.pause()},t.play=function(){return this.g.resume()},t.getVolume=function(){return this.g.getVolume()},t.setVolume=function(e){return this.g.setVolume(e)},t.isMuted=function(){return 0==this.g.getVolume()},t.resize=function(e,t){this.g.resize(e,t,document.fullscreenElement?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)},t.setMuted=function(e){e?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)},t.getSequenceLength=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getTotalAds()},t.getPositionInSequence=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getAdPosition()},t.release=function(){this.g=this.i=null},e("shaka.ads.ClientSideAd",Uu),Bu.prototype.stop=function(){this.i&&this.i.stop(),this.m&&ns(this.m)},Bu.prototype.release=function(){this.stop(),this.u&&this.u.disconnect(),this.h&&this.h.release(),this.i&&this.i.destroy(),this.l.destroy()},(t=Ku.prototype).getDuration=function(){return this.h?this.h.duration:-1},t.getMinSuggestedDuration=function(){return this.getDuration()},t.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1},t.isPaused=function(){return this.g.paused},t.isSkippable=function(){return this.i.isSkippable()},t.getTimeUntilSkippable=function(){var e=this.i.getSkipTimeOffset(),e=this.getRemainingTime()-e;return Math.max(e,0)},t.canSkipNow=function(){return 0==this.getTimeUntilSkippable()},t.skip=function(){this.g.currentTime+=this.getRemainingTime()},t.pause=function(){return this.g.pause()},t.play=function(){return this.g.play()},t.getVolume=function(){return this.g.volume},t.setVolume=function(e){this.g.volume=e},t.isMuted=function(){return this.g.muted},t.resize=function(){},t.setMuted=function(e){this.g.muted=e},t.getSequenceLength=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getTotalAds()},t.getPositionInSequence=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getAdPosition()},t.release=function(){this.g=this.h=this.i=null},e("shaka.ads.ServerSideAd",Ku),Gu.prototype.stop=function(){this.F="",this.s=null},Gu.prototype.release=function(){this.stop(),this.h&&this.h.release()},Gu.prototype.onCueMetadataChange=function(e){var t;e.key&&e.data&&((t={})[e.key]=e.data,this.i.onTimedMetadata(t))},y(i,h),(t=i.prototype).setLocale=function(e){this.i=e},t.initClientSide=function(e,t){var n=this;if(!x.google||!google.ima||!google.ima.AdsLoader)throw new me(2,10,1e4);this.h&&this.h.release(),this.h=new Bu(e,t,this.i,function(e){if(e&&e.type)switch(e.type){case"ads-loaded":n.j.h.push(e.loadTime);break;case"ad-started":n.j.g++;break;case"ad-complete":n.j.i++;break;case"ad-skipped":n.j.j++}n.dispatchEvent(e)})},t.release=function(){this.h&&(this.h.release(),this.h=null),this.g&&(this.g.release(),this.g=null),h.prototype.release.call(this)},t.onAssetUnload=function(){this.h&&this.h.stop(),this.g&&this.g.stop(),this.dispatchEvent(new ye("ad-stopped")),this.j=new Ou},t.requestClientSideAds=function(e){if(!this.h)throw new me(1,10,10001);var t=this.h;t.C=Date.now()/1e3,t.l.requestAds(e)},t.initServerSide=function(e,t){var n=this;if(!x.google||!google.ima||!google.ima.dai)throw new me(2,10,10002);this.g&&this.g.release(),this.g=new Gu(e,t,this.i,function(e){if(e&&e.type)switch(e.type){case"ads-loaded":n.j.h.push(e.loadTime);break;case"ad-started":n.j.g++;break;case"ad-complete":n.j.i++;break;case"ad-skipped":n.j.j++}n.dispatchEvent(e)})},t.requestServerSideStream=function(e,t){if(t=void 0===t?"":t,!this.g)throw new me(1,10,10003);e.adTagParameters||(e.adTagParameters={});var n=e.adTagParameters;(n.mpt||n.mpv)&&ae('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.'),e.adTagParameters.mpt="shaka-player",e.adTagParameters.mpv="v3.1.6";return n=(n=this.g).l?Promise.reject(new me(1,10,10004)):(e instanceof google.ima.dai.api.LiveStreamRequest&&(n.H=!0),n.l=new k,n.i.requestStream(e),n.F=t||"",n.I=Date.now()/1e3,n.l)},t.replaceServerSideAdTagParameters=function(e){if(!this.g)throw new me(1,10,10003);(e.mpt||e.mpv)&&ae('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.'),e.mpt="Shaka Player",e.mpv="v3.1.6",this.g.i.replaceAdTagParameters(e)},t.getStats=function(){var e=this.j;return{loadTimes:e.h,started:e.g,playedCompletely:e.i,skipped:e.j}},t.onDashTimedMetadata=function(e){var t,n;this.g&&"urn:google:dai:2018"==e.schemeIdUri&&(t=e.schemeIdUri,n=e.eventElement?e.eventElement.getAttribute("messageData"):null,this.g.i.processMetadata(t,n,e.startTime))},t.onHlsTimedMetadata=function(e,t){this.g&&this.g.i.processMetadata("ID3",e.data,t)},t.onCueMetadataChange=function(e){this.g&&this.g.onCueMetadataChange(e)},e("shaka.ads.AdManager",i),i.ADS_LOADED="ads-loaded",i.AD_STARTED="ad-started",i.AD_FIRST_QUARTILE="ad-first-quartile",i.AD_MIDPOINT="ad-midpoint",i.AD_THIRD_QUARTILE="ad-third-quartile",i.AD_COMPLETE="ad-complete",i.AD_STOPPED="ad-stopped",i.AD_SKIPPED="ad-skipped",i.AD_VOLUME_CHANGED="ad-volume-changed",i.AD_MUTED="ad-muted",i.AD_PAUSED="ad-paused",i.AD_RESUMED="ad-resumed",i.AD_SKIP_STATE_CHANGED="ad-skip-state-changed",i.CUEPOINTS_CHANGED="ad-cue-points-changed",i.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded",i.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded",i.AD_CLICKED="ad-clicked",i.AD_PROGRESS="ad-progress",i.AD_BUFFERING="ad-buffering",i.AD_IMPRESSION="ad-impression",i.AD_DURATION_CHANGED="ad-duration-changed",i.AD_CLOSED="ad-closed",i.AD_LOADED="ad-loaded",i.ALL_ADS_COMPLETED="all-ads-completed",i.AD_LINEAR_CHANGED="ad-linear-changed",i.AD_METADATA="ad-metadata",i.AD_RECOVERABLE_ERROR="ad-recoverable-error",i.AD_BREAK_READY="ad-break-ready",i.AD_INTERACTION="ad-interaction";var ju=function(){return new i},Wu="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),Yu="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),$u=["loop","playbackRate"],Ju=["pause","play"],Qu={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferedInfo:2,getConfiguration:2,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getTextTracks:2,getStats:5,getVariantTracks:2,getImageTracks:2,getThumbnails:2,isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getLoadMode:10},Zu={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},el=[["getConfiguration","configure"]],tl=[["isTextTrackVisible","setTextTrackVisibility"]],nl="addTextTrack addTextTrackAsync cancelTrickPlay configure resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay".split(" "),il=["attach","detach","load","unload"];function rl(e,t,n,i,r,a){var o=this;this.L=e,this.j=new A(t),this.ea=n,this.C=!1,this.u=i,this.I=r,this.U=a,this.h=this.m=!1,this.W="",this.s=null,this.F=function(){return ll(o)},this.H=function(e,t){switch((i=Xu(t)).type){case"event":var n=i.targetName,i=oa(i.event);o.u(n,i);break;case"update":for(var r in n=i.update)for(var a in i=o.g[r]||{},n[r])i[a]=n[r][a];o.C&&(o.ea(),o.C=!1);break;case"asyncComplete":if(r=i.id,i=i.error,a=o.i[r],delete o.i[r],a)if(i){for(n in r=new me(i.severity,i.category,i.code),i)r[n]=i[n];a.reject(r)}else a.resolve()}},this.g={video:{},player:{}},this.O=0,this.i={},this.l=null,gl.add(this)}function al(e,t,n){(pl=n).addUpdateListener(e.F),n.addMessageListener("urn:x-cast:com.google.shaka.v2",e.H),ll(e),dl(e,{type:"init",initState:t,appData:e.s}),e.l.resolve()}function ol(e,t){var n=8003;switch(t.code){case"cancel":n=8004;break;case"timeout":n=8005;break;case"receiver_unavailable":n=8006}e.l.reject(new me(2,8,n,t))}function sl(e,t){var n=e.U();e.l=new k,e.C=!0,al(e,n,t)}function ul(e){var t=pl;t.removeUpdateListener(e.F),t.removeMessageListener("urn:x-cast:com.google.shaka.v2",e.H)}function ll(e){var t=!!pl&&"connected"==pl.status;if(e.h&&!t){for(var n in e.I(),e.g)e.g[n]={};cl(e)}e.h=t,e.W=t?pl.receiver.friendlyName:"",e.j.hc()}function cl(e){for(var t in e.i){var n=e.i[t];delete e.i[t],n.reject(new me(1,7,7e3))}}function dl(t,n){var n=zu(n),i=pl;try{i.sendMessage("urn:x-cast:com.google.shaka.v2",n,function(){},ue)}catch(e){throw n=new me(2,8,8005,e),i=new ye("error",(new Map).set("detail",n)),t.u("player",i),t.wb(),n}}(t=rl.prototype).destroy=function(){return gl.delete(this),cl(this),pl&&ul(this),this.j&&(this.j.stop(),this.j=null),this.I=this.u=null,this.h=this.m=!1,this.H=this.F=this.l=this.i=this.g=this.s=null,Promise.resolve()},t.ua=function(){return this.h},t.Dd=function(){return this.W},t.init=function(){var e;this.L.length&&(x.chrome&&chrome.cast&&chrome.cast.isAvailable?(this.m=!0,this.j.hc(),e=new chrome.cast.SessionRequest(this.L),e=new chrome.cast.ApiConfig(e,function(e){for(var t=de(gl),n=t.next();!n.done;n=t.next())sl(n.value,e)},function(e){for(var t=de(gl),n=t.next();!n.done;n=t.next())n=n.value,fl="available"==e,n.j.hc()},"origin_scoped"),chrome.cast.initialize(e,function(){},function(){}),fl&&this.j.V(hl),(e=pl)&&e.status!=chrome.cast.SessionStatus.STOPPED?sl(this,e):pl=null):(x.__onGCastApiAvailable||(x.__onGCastApiAvailable=ml),x.__onGCastApiAvailable!=ml&&ae("A global Cast SDK hook is already installed! Shaka Player will be unable to receive a notification when the Cast SDK is ready.")))},t.Kd=function(e){this.s=e,this.h&&dl(this,{type:"appData",appData:this.s})},t.cast=function(t){var n=this;return ge(function(e){if(!n.m)throw new me(1,8,8e3);if(!fl)throw new me(1,8,8001);if(n.h)throw new me(1,8,8002);return n.l=new k,chrome.cast.requestSession(function(e){return al(n,t,e)},function(e){return ol(n,e)}),he(e,n.l,0)})},t.wb=function(){if(this.h){if(cl(this),pl){ul(this);try{pl.stop(function(){},function(){})}catch(e){}pl=null}ll(this)}},t.get=function(i,r){var a=this;if("video"==i){if(Ju.includes(r))return function(e){for(var t=[],n=0;ni.byteLength){i=[];break e}var a=S(i,e,r);n.push({type:t,value:a}),e+=r}i=n}return i}(e=vt(e.textContent)).filter(function(e){return e.type===sc})[0])&&ic(e=Pe(e.value,!0),"WRMHEADER"))for(var t=e,n=(t=de(t.getElementsByTagName("DATA"))).next();!n.done;n=t.next())for(var i=(n=de(n.value.childNodes)).next();!i.done;i=n.next())if((i=i.value)instanceof Element&&"LA_URL"==i.tagName)return i.textContent;return""}var sc=1,uc=(new Map).set("com.widevine.alpha",function(e){return(e=Kl(e.node,"urn:microsoft","laurl"))&&e.getAttribute("licenseUrl")||""}).set("com.microsoft.playready",oc).set("com.microsoft.playready.recommendation",oc).set("com.microsoft.playready.software",oc).set("com.microsoft.playready.hardware",oc);function lc(e,t,n,i,r){var a={RepresentationID:t,Number:n,Bandwidth:i,Time:r};return e.replace(/\$(RepresentationID|Number|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(e,t,n,i){if("$$"==e)return"$";var r=a[t];if(null==r)return e;switch("RepresentationID"==t&&(n=n&&void 0),"Time"==t&&(r=Math.round(r)),i){case void 0:case"d":case"i":case"u":e=r.toString();break;case"o":e=r.toString(8);break;case"x":e=r.toString(16);break;case"X":e=r.toString(16).toUpperCase();break;default:e=r.toString()}return n=x.parseInt(n,10)||1,Array(Math.max(0,n-e.length)+1).join("0")+e})}function cc(e,t){var n=1,i=((r=dc(e,t,"timescale"))&&(n=Zl(r)||1),dc(e,t,"duration")),r=Zl(i||""),a=((r="image"==e.K.contentType?tc(i||""):r)&&(r/=n),dc(e,t,"startNumber")),i=Number(dc(e,t,"presentationTimeOffset"))||0,o=ec(a||""),s=(null!=a&&null!=o||(o=1),hc(e,t,"SegmentTimeline"));if(a=null,s){for(var a=n,u=e.X.duration||1/0,l=C(s,"S"),s=[],c=-i,d=(l=de(Se(l))).next();!d.done;d=l.next()){var h=(d=d.value).item,f=d.next,p=R(h,"t",ec),g=(d=R(h,"d",ec),R(h,"r",Ql));if(null!=p&&(p-=i),!d)break;if(h=null!=p?p:c,(p=g||0)<0)if(f){if(null==(f=R(f,"t",ec)))break;if(f<=h)break;p=Math.ceil((f-h)/d)-1}else{if(1/0==u)break;if(u<=h/a)break;p=Math.ceil((u*a-h)/d)-1}for(0>>31,h&=2147483647,o.reader.N());if(o.reader.skip(4),1==c)throw new me(2,3,3006);s.push(new D(l/u+n,(l+f)/u+n,function(){return a},e,e+h-1,t,n,i,r)),l+=f,e+=h}return o.parser.stop(),s}(t,i,r,a,o,n,e)});if(e&&u.parse(e),s)return s;throw new me(2,3,3004)}function gc(e){this.h=Me(e),this.g=new w(this.h,0)}function mc(e){var t=vc(e);if(7u()&&!n.length?null:n})),Promise.resolve(E)}}):(i=u=null,e.ha.id&&e.K.id&&(i=e.ha.id+","+e.K.id,u=n[i]),l=function(e,t,n){var i=e.X.start,r=e.X.duration,a=i-t.Xa;r=r?i+r:1/0;for(var o=[],s={},u=de(Se(t.timeline)),l=u.next();!l.done;s={Vc:s.Vc,Yc:s.Yc,ad:s.ad,Sc:s.Sc,cd:s.cd,Tc:s.Tc},l=u.next()){var c=(l=l.value).item,d=c.start,h=c.Qf;c=c.end,s.ad=l.ga+t.Ib,s.cd=h+t.Sd,s.Yc=e.K.id,s.Sc=e.bandwidth||null,s.Vc=t.vd,s.Tc=e.K.Aa,o.push(new D(i+d,i+c,function(t){return function(){var e=lc(t.Vc,t.Yc,t.ad,t.Sc||null,t.cd);return vi(t.Tc,[e]).map(function(e){return e.toString()})}}(s),0,null,n,a,i,r))}return o}(I,C,M),h=e.X.start,c=1/0!=(d=e.X.duration?e.X.start+e.X.duration:1/0),u?(c&&new oe(l).ab(h,d,!0),u.Bb(l,e.presentationTimeline.Va())):(u=new oe(l),i&&e.fb&&(n[i]=u)),e.presentationTimeline.Db(l),c&&u.ab(h,d),{xb:function(){return Promise.resolve(u)}});throw new me(2,4,4002)}function Rc(e){return e.ec}function Nc(){this.l=[],this.g=[],this.h=[],this.j=[],this.i=[],this.m=new Set}function Pc(P,L,_){var j,O,U,B,F,H,V,K,G,q,z,X,W,Y,$,J,Q,Z,ee,te,ne,ie,re,ae,oe,se,ue,le,ce;return ge(function(e){switch(e.g){case 1:j=Ti;for(var t=L,n=(t=de(t)).next();!n.done;n=t.next()){n=n.value;for(var i=[],r=de(n.uc),a=r.next();!a.done;a=r.next()){a=a.value;for(var o=!1,s=de(i),u=s.next();!u.done;u=s.next())u=u.value,a.id!=u.id&&a.channelsCount==u.channelsCount&&a.language==u.language&&a.bandwidth==u.bandwidth&&a.label==u.label&&a.codecs==u.codecs&&a.mimeType==u.mimeType&&kt(a.roles,u.roles)&&a.audioSamplingRate==u.audioSamplingRate&&a.primary==u.primary&&(o=!0);o||i.push(a)}n.uc=i}for(var l=L,c=(l=de(l)).next();!c.done;c=l.next()){c=c.value;for(var d=[],h=de(c.Qc),f=h.next();!f.done;f=h.next()){f=f.value;for(var p=!1,g=de(d),m=g.next();!m.done;m=g.next())m=m.value,f.id!=m.id&&f.width==m.width&&f.frameRate==m.frameRate&&f.codecs==m.codecs&&f.mimeType==m.mimeType&&f.label==m.label&&kt(f.roles,m.roles)&&function(e,t){if(!e&&!t)return 1;if(!(e&&!t||t&&!e)&&e.size==t.size){for(var n=de(e),i=n.next();!i.done;i=n.next()){var i=(r=de(i.value)).next().value,r=r.next().value;if(!t.has(i))return;if((i=t.get(i))!=r||null==i)return}return 1}}(f.closedCaptions,m.closedCaptions)&&f.bandwidth==m.bandwidth&&(p=!0);p||d.push(f)}c.Qc=d}for(var v=L,y=(v=de(v)).next();!y.done;y=v.next()){y=y.value;for(var b=[],w=de(y.textStreams),T=w.next();!T.done;T=w.next()){T=T.value;for(var x=!1,S=de(b),E=S.next();!E.done;E=S.next())E=E.value,T.id!=E.id&&T.language==E.language&&T.label==E.label&&T.codecs==E.codecs&&T.mimeType==E.mimeType&&kt(T.roles,E.roles)&&(x=!0);x||b.push(T)}y.textStreams=b}for(var A=L,k=(A=de(A)).next();!k.done;k=A.next()){k=k.value;for(var I=[],M=de(k.imageStreams),C=M.next();!C.done;C=M.next()){C=C.value;for(var D=!1,R=de(I),N=R.next();!N.done;N=R.next())N=N.value,C.id!=N.id&&C.width==N.width&&C.codecs==N.codecs&&C.mimeType==N.mimeType&&(D=!0);D||I.push(C)}k.imageStreams=I}if(!_&&1==L.length){V=L[0],P.g=V.uc,P.h=V.Qc,P.j=V.textStreams,P.i=V.imageStreams,e.v(2);break}for(O=-1,U=de(Se(L)),B=U.next();!B.done;B=U.next())H=B.value,F=H.ga,H=H.item,P.m.has(H.id)||(P.m.add(H.id),-1==O&&(O=F));if(-1==O)return e.return();for(V=L.map(function(e){return e.uc}),K=L.map(function(e){return e.Qc}),G=L.map(function(e){return e.textStreams}),q=L.map(function(e){return e.imageStreams}),z=de(G),X=z.next();!X.done;X=z.next())X.value.push(Jc(j.ba));for(W=de(q),Y=W.next();!Y.done;Y=W.next())Y.value.push(Jc(j.pc));return he(e,_c(P.g,V,O,Uc,Fc),3);case 3:return he(e,_c(P.h,K,O,Uc,Fc),4);case 4:return he(e,_c(P.j,G,O,Uc,Fc),5);case 5:return he(e,_c(P.i,q,O,Uc,Fc),2);case 2:if($=0,J=[],P.h.length&&P.g.length)for(ie=de(P.g),re=ie.next();!re.done;re=ie.next())for(ae=re.value,oe=de(P.h),se=oe.next();!se.done;se=oe.next())ue=se.value,le=Fa(ae.drmInfos,ue.drmInfos),ae.drmInfos.length&&ue.drmInfos.length&&!le.length||(ce=$++,J.push({id:ce,language:ae.language,primary:ae.primary,audio:ae,video:ue,bandwidth:(ae.bandwidth||0)+(ue.bandwidth||0),drmInfos:le,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(Q=P.h.concat(P.g),Z=de(Q),ee=Z.next();!ee.done;ee=Z.next())te=ee.value,ne=$++,J.push({id:ne,language:te.language,primary:te.primary,audio:te.type==j.eb?te:null,video:te.type==j.Ra?te:null,bandwidth:te.bandwidth||0,drmInfos:te.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});P.l=J,fe(e)}})}function Lc(t){var n,i,r,a,o,s,u,l,c,d,h,f,p,g,m,v,y,b,w,T,x,S,E;return ge(function(e){switch(e.g){case 1:if(n=Ti,1==t.length)return e.return(t[0]);for(f=t.map(function(e){return e.filter(function(e){return e.type==n.eb})}),i=t.map(function(e){return e.filter(function(e){return e.type==n.Ra})}),r=t.map(function(e){return e.filter(function(e){return e.type==n.ba})}),a=t.map(function(e){return e.filter(function(e){return e.type==n.pc})}),o=de(r),s=o.next();!s.done;s=o.next())s.value.push($c(n.ba));for(u=de(a),l=u.next();!l.done;l=u.next())l.value.push($c(n.pc));return he(e,_c([],f,0,Bc,Hc),2);case 2:return c=e.h,he(e,_c([],i,0,Bc,Hc),3);case 3:return d=e.h,he(e,_c([],r,0,Bc,Hc),4);case 4:return h=e.h,he(e,_c([],a,0,Bc,Hc),5);case 5:if(f=e.h,p=0,d.length&&c.length)for(y=de(c),b=y.next();!b.done;b=y.next())for(w=b.value,T=de(d),x=T.next();!x.done;x=T.next())S=x.value,E=p++,S.variantIds.push(E),w.variantIds.push(E);else for(g=d.concat(c),m=de(g),v=m.next();!v.done;v=m.next())v.value.variantIds=[p++];return e.return(d.concat(c).concat(h).concat(f))}})}function _c(p,g,m,v,y){var b,w,T,x,S,E,A,k,I,M,C,D,R,N,P,L,_,j,O,U;return ge(function(e){switch(e.g){case 1:for(b=Ti,w=[],T=de(Se(g)),x=T.next();!x.done;x=T.next())E=x.value,S=E.ga,E=E.item,m<=S?w.push(new Set(E)):w.push(new Set);A=de(p),k=A.next();case 2:if(k.done){e.v(4);break}return C=k.value,he(e,(u=C,l=g,c=m,d=y,h=w,ge(function(e){return 1==e.g?(f=Vc(l,u))?he(e,jc(f),2):e.return(!1):(Oc(u,f,c,d,h),e.return(!0))})),5);case 5:if(!e.h)throw new me(2,4,4037);k=A.next(),e.v(2);break;case 4:I=de(w),M=I.next();case 6:if(M.done){e.v(8);break}C=M.value,D=de(C),R=D.next();case 9:if(R.done){M=I.next(),e.v(6);break}return N=R.value,he(e,(t=N,n=g,i=v,r=y,a=w,ge(function(e){return 1==e.g?(o=i(t),(s=Vc(n,o))?o.createSegmentIndex?he(e,jc(s),2):e.v(2):e.return(null)):(Oc(o,s,0,r,a),e.return(o))})),12);case 12:(N=e.h)&&p.push(N),R=D.next(),e.v(9);break;case 8:for(P=de(w),M=P.next();!M.done;M=P.next())for(L=M.value,_={},j=de(L),R=j.next();!R.done;_={Za:_.Za},R=j.next())if(_.Za=R.value,O=_.Za.type==b.ba&&!_.Za.language,U=_.Za.type==b.pc&&!_.Za.tilesLayout,!O&&!U&&p.some(function(t){return function(e){return e.mimeType==t.Za.mimeType&&Ni(e.codecs)==Ni(t.Za.codecs)}}(_)))throw new me(2,4,4037);return e.return(p)}var t,n,i,r,a,o,s,u,l,c,d,h,f})}function jc(e){for(var t=[],n=(e=de(e)).next();!n.done;n=e.next())n=n.value,t.push(n.createSegmentIndex()),n.trickModeVideo&&!n.trickModeVideo.segmentIndex&&t.push(n.trickModeVideo.createSegmentIndex());return Promise.all(t)}function Oc(e,t,n,i,r){for(var a=(t=de(Se(t))).next();!a.done;a=t.next()){var o,a=(s=a.value).ga,s=s.item;n<=a&&(i(e,s),o=!0,o=("audio"!=e.type||0!=cr(e.language,s.language))&&o)&&r[a].delete(s)}}function Uc(e){return(e=Object.assign({},e)).originalId=null,e.createSegmentIndex=function(){return Promise.resolve()},e.segmentIndex=new Eo,e.emsgSchemeIdUris=[],e.keyIds=new Set,e.closedCaptions=null,e.trickModeVideo=null,e}function Bc(e){return(e=Object.assign({},e)).keyIds=new Set,e.segments=[],e.variantIds=[],e.closedCaptions=null,e}function Fc(e,t){e.roles=Array.from(new Set(e.roles.concat(t.roles))),t.emsgSchemeIdUris&&(e.emsgSchemeIdUris=Array.from(new Set(e.emsgSchemeIdUris.concat(t.emsgSchemeIdUris))));var n=t.keyIds;if(n=new Set([].concat(ie(e.keyIds),ie(n))),e.keyIds=n,null==e.originalId?e.originalId=t.originalId:e.originalId+=","+(t.originalId||""),n=Fa(e.drmInfos,t.drmInfos),t.drmInfos.length&&e.drmInfos.length&&!n.length)throw new me(2,4,4038);if(e.drmInfos=n,e.encrypted=e.encrypted||t.encrypted,t.closedCaptions){e.closedCaptions||(e.closedCaptions=new Map);for(var i=(n=de(t.closedCaptions)).next();!i.done;i=n.next()){var i=(r=de(i.value)).next().value,r=r.next().value;e.closedCaptions.set(i,r)}}e.segmentIndex.j.push(t.segmentIndex),t.trickModeVideo?(e.trickModeVideo||(e.trickModeVideo=Uc(t.trickModeVideo),e.trickModeVideo.segmentIndex=e.segmentIndex.clone()),Fc(e.trickModeVideo,t.trickModeVideo)):e.trickModeVideo&&Fc(e.trickModeVideo,t)}function Hc(e,t){e.roles=Array.from(new Set(e.roles.concat(t.roles)));var n=t.keyIds;if(n=new Set([].concat(ie(e.keyIds),ie(n))),e.keyIds=n,e.encrypted=e.encrypted&&t.encrypted,e.segments.push.apply(e.segments,ie(t.segments)),t.closedCaptions){e.closedCaptions||(e.closedCaptions=new Map);for(var i=(n=de(t.closedCaptions)).next();!i.done;i=n.next()){var i=(r=de(i.value)).next().value,r=r.next().value;e.closedCaptions.set(i,r)}}}function Vc(e,t){for(var n=[],i=de(e),r=i.next();!r.done;r=i.next()){for(var a=t,o={audio:Kc,video:Kc,text:Gc,image:qc}[a.type],s={audio:zc,video:Xc,text:Wc,image:Yc}[a.type],u=null,l=(r=de(r.value)).next();!l.done;l=r.next())!o(a,l=l.value)||u&&!s(a,u,l)||(u=l);if(!(a=u))return null;n.push(a)}return n}function Kc(e,t){var n;return!(n=t.mimeType!=e.mimeType||Ni(t.codecs)!=Ni(e.codecs))&&(n=e.drmInfos)&&(n=e.drmInfos,e=t.drmInfos,n=!(!n.length||!e.length||0i.length||!(r.lengthi.length)return!0;if(r.lengthe.j)&&(e.j=c),o=function(x,S,e,t){S.ha=ud(t.node,null,e),S.X=t,S.ha.vb=S.vb,S.ha.id||(S.ha.id="__shaka_period_"+t.start);var n=C(t.node,"EventStream");e=S.presentationTimeline.Va();for(var i=(n=de(n)).next();!i.done;i=n.next())!function(e,t,n,i,r){for(var a=i.getAttribute("schemeIdUri")||"",o=i.getAttribute("value")||"",s=R(i,"timescale",ec)||1,u=(i=de(C(i,"Event"))).next();!u.done;u=i.next()){var l=R(u=u.value,"presentationTime",ec)||0,c=R(u,"duration",ec)||0;c=(l=l/s+t)+c/s,null!=n&&(l=Math.min(l,t+n),c=Math.min(c,t+n)),c>=1;return e;case"urn:mpeg:mpegB:cicp:ChannelConfiguration":if(t=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(n=parseInt(n,10))&&0>4)&&2!=l||r(),3==l&&(l=a.aa(),a.skip(l)),1==a.N()>>8))return a.skip(3),0!=(n=a.aa()>>6)&&1!=n||r(),0==a.aa()&&r(),n=a.aa(),l=a.Gb(),u=a.Gb(),(1073741824*((14&n)>>1)+((65534&l)<<14|(65534&u)>>1))/9e4;i()}}(n,f.uri,f.data));case 4:throw new me(2,4,4030,n)}})}function zd(e,t){var n=String(e).replace(/%7B/g,"{").replace(/%7D/g,"}"),i=n.match(/{\$\w*}/g);if(i)for(var r=(i=de(i)).next();!r.done;r=i.next()){var a=(r=r.value).slice(2,r.length-1),o=t.get(a);if(!o)throw new me(2,4,4039,a);n=n.replace(r,o)}return n}function Xd(e,t){e.j=t,e.g&&e.g.fc(e.j==Qd),e.j==Qd&&e.s.stop()}function Wd(e,t,n){if(e.C)return t=e.D.networkingEngine.request(n,t),ca(e.C,t),t.promise;throw new me(2,7,7001)}e("shaka.net.DataUriPlugin",Cd),da("data",Cd.parse=Dd),(t=Nd.prototype).configure=function(e){this.o=e},t.start=function(t,n){var i,r=this;return ge(function(e){var _,j,O,U,B,F,H,V,K,G,q,z,X,W,Y,$,J,Q,Z,ee,te,ne,ie,re,ae,oe,se,ue,le;return 1==e.g?(r.D=n,r.i=n.isLowLatencyMode(),he(e,Wd(r,ha([t],r.o.retryParameters),0),2)):3!=e.g?(i=e.h,r.L=i.uri,he(e,(_=r,j=i.data,ge(function(e){switch(e.g){case 1:if(0!=(Q=Ad(_.ea,j,_.L)).type)throw new me(2,4,4022);O=md(Q.Y,"EXT-X-DEFINE");for(var t=_,n=de(O),i=n.next();!i.done;i=n.next()){var r=i.value;i=we(r,"NAME"),r=we(r,"VALUE"),i&&r&&(t.u.has(i)||t.u.set(i,r))}O=md(Q.Y,"EXT-X-MEDIA"),U=md(Q.Y,"EXT-X-STREAM-INF");for(var a=_,o=de(U),s=o.next();!s.done;s=o.next()){var u,l=s.value,c=we(l,"AUDIO"),d=(s=we(l,"VIDEO"),we(l,"SUBTITLES"));l=_d(a,l),d&&(u=wi(ve,l),a.l.set(d,u),At(l,u)),c&&(d=bi("audio",l),a.l.set(c,d)),s&&(c=bi("video",l),a.l.set(s,c))}for(Q=md(Q.Y,"EXT-X-SESSION-DATA"),B=de(Q),F=B.next();!F.done;F=B.next())V=F.value,K=we(V,"DATA-ID"),G=we(V,"URI"),H=we(V,"LANGUAGE"),V=we(V,"VALUE"),K=(new Map).set("id",K),G&&K.set("uri",vi([_.L],[G])[0]),H&&K.set("language",H),V&&K.set("value",V),G=new ye("sessiondata",K),_.D&&_.D.onEvent(G);return he(e,(R=_,P=O,ge(function(e){return 1==e.g?(P=P.filter(function(e){var t=we(e,"URI")||"";return"SUBTITLES"!=we(e,"TYPE")&&""!=t})).length?he(e,Od(R,P[0]),2):e.v(2):(L=P.slice(1).map(function(e){return Od(R,e)}),he(e,Promise.all(L),0))})),2);case 2:for(var h=_,f=vd(O,"CLOSED-CAPTIONS"),p=(f=de(f)).next();!p.done;p=f.next()){var g=p.value,m=(p=jd(g),fd(g,"GROUP-ID"));g=fd(g,"INSTREAM-ID"),h.I.get(m)||h.I.set(m,new Map),h.I.get(m).set(g,p)}return he(e,(N=_,M=U,ge(function(e){return 1==e.g?(C=M.map(function(A){var k,I,M,C,D,R;return ge(function(e){if(1==e.g)return k=we(A,"FRAME-RATE"),I=Number(we(A,"AVERAGE-BANDWIDTH"))||Number(fd(A,"BANDWIDTH")),R=we(A,"RESOLUTION"),R=de(R?R.split("x"):[null,null]),M=R.next().value,C=R.next().value,D=we(A,"VIDEO-RANGE"),he(e,(d=N,h=A,ge(function(e){if(1==e.g)return f=Ti,p=_d(d,h),m=we(h,"AUDIO"),y=we(h,"VIDEO"),g=(g=m||y)&&d.m.has(g)?d.m.get(g):[],y=!(m={audio:m?g:[],video:y?g:[]}),b=fd(h,"URI"),w=m.audio.find(function(e){return e&&e.Pc==b}),T=wi(f.Ra,p),(x=wi(f.eb,p))&&!T?v=f.eb:!g.length&&x&&T?(v=f.Ra,p=[[T,x].join()]):m.audio.length&&w?(v=f.eb,y=!0):v=m.video.length?f.eb:f.Ra,y?e.v(2):he(e,(n=d,i=h,r=p,a=v,ge(function(e){var t;return 1==e.g?(o=zd(fd(i,"URI"),n.u),n.h.has(o)?e.return(n.h.get(o)):(t=we(i,"CLOSED-CAPTIONS"),s="video"==a&&t&&"NONE"!=t?n.I.get(t):null,u=bi(a,r),he(e,Ud(n,o,u,a,"und",!1,null,null,s,null,!1,!1),2))):null==(u=e.h)?e.return(null):n.h.has(o)?e.return(n.h.get(o)):(n.h.set(o,u),e.return(u))})),3);var n,i,r,a,o,s,u,t;if(S=2!=e.g?e.h:S)m[S.stream.type]=[S];else if(null===S)return e.return(null);for(var l=m,c=(l=de(l.audio.concat(l.video))).next();!c.done;c=l.next())(c=c.value)&&(t=(t=c.stream.codecs.split(",")).filter(function(e){return"mp4a.40.34"!=e}),c.stream.codecs=t.join(","));return e.return(m)})),2);var d,h,f,p,g,m,v,y,b,w,T,x,S;if(R=e.h){for(var t=e.return,n=R.audio,i=R.video,r=de(i),a=r.next();!a.done;a=r.next())(a=a.value.stream)&&(a.width=Number(M)||void 0,a.height=Number(C)||void 0,a.frameRate=Number(k)||void 0,a.hdr=D||void 0);for(r=N.o.disableAudio,n.length&&!r||(n=[null]),r=N.o.disableVideo,i.length&&!r||(i=[null]),r=[],a=(n=de(n)).next();!a.done;a=n.next())for(var a=a.value,o=de(i),s=o.next();!s.done;s=o.next()){var u=s.value,s=a?a.stream:null,l=u?u.stream:null,c=a?a.stream.drmInfos:null,E=u?u.stream.drmInfos:null,u=(u?u.Pc:"")+" - "+(a?a.Pc:"");s&&l&&c.length&&E.length&&!(0n,o&&s)return he(e,a.updateManifestExpiration(i.key(),n),3);e.v(3);break;case 3:return z(e),he(e,r.destroy(),10);case 10:X(e,0);break;case 2:pe(e),e.v(3)}})},Za["application/x-offline-manifest"]=function(){return new Hh},e("shaka.offline.OfflineScheme",Vh),da("offline",Vh.plugin=Kh),(t=Yh.prototype).destroy=function(){return this.J.destroy()},t.configure=function(e,t){return(e=2==arguments.length&&"string"==typeof e?cs(e,t):e).manifest&&e.manifest.dash&&"defaultPresentationDelay"in e.manifest.dash&&(He("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),e.manifest.defaultPresentationDelay=e.manifest.dash.defaultPresentationDelay,delete e.manifest.dash.defaultPresentationDelay),fs(this.o,e)},t.getConfiguration=function(){var e=hs();return fs(e,this.o,hs()),e},t.Vb=function(){return this.P},t.store=function(n,e,i){var C,D,R,N,P,L,_,j,O,U,B,F,H,V,K,t,r,a=this,o=this.getConfiguration(),s=new ph(this.P),u=(this.Cd.push(s),C=this,D=n,R=e||{},N=function(){var t;return ge(function(e){return 1==e.g?he(e,$a(n,a.P,o.manifest.retryParameters,i||null),2):(t=e.h,e.return(We(t)))})},P=o,L=s,new M(e=ge(function(e){switch(e.g){case 1:return Zh(),j=_=null,O=new Ih,B=U=null,ce(e,2,3),he(e,N(),5);case 5:return _=e.h,he(e,(t=C,n=D,i=_,A=P,ge(function(e){if(1==e.g)return k=null,M=t.P,M={networkingEngine:M,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(e){k=e},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){}},i.configure(A.manifest),Qh(t),he(e,i.start(n,M),2);if(3!=e.g)return I=e.h,Qh(t),M=tf(I),he(e,Promise.all(Te(M,function(e){return e.createSegmentIndex()})),3);if(Qh(t),k)throw k;return e.return(I)})),6);case 6:if(F=e.h,Qh(C),!F.presentationTimeline.Z()&&!F.presentationTimeline.mb())return he(e,(w=C,T=F,x=function(e){B=B||e},S=P,ge(function(e){switch(e.g){case 1:return(E=new Sa({Cb:w.P,onError:x,Ic:function(){},onExpirationUpdated:function(){},onEvent:function(){}})).configure(S.drm),he(e,(t=E,n=T.variants,i=S.offline.usePersistentLicense,r=S.useMediaCapabilities,t.qa=!0,t.C=[],t.F=i,Aa(t,n,!!r)),2);case 2:return he(e,ka(E),3);case 3:return he(e,Ia(E),4);case 4:return e.return(E)}var t,n,i,r})),7);throw new me(2,9,9005,D);case 7:if(j=e.h,Qh(C),B)throw B;return he(e,C.yc(F,j,P),8);case 8:return he(e,O.init(),9);case 9:return Qh(C),he(e,function(e){var i=null;if(e.g.forEach(function(e,n){e.getCells().forEach(function(e,t){e.hasFixedKeySpace()||(i=i||{path:{Ka:n,na:t},na:e})})}),i)return i;throw new me(2,9,9013,"Could not find a cell that supports add-operations")}(O),10);case 10:return U=e.h,Qh(C),he(e,(r=C,a=U.na,o=j,s=F,u=D,l=R,c=P,d=L,ge(function(e){switch(e.g){case 1:return i=l,h={offlineUri:null,originalManifestUri:u,duration:(n=s).presentationTimeline.getDuration(),size:0,expiration:1/0,tracks:n=zh(n),appMetadata:i},f=c.offline.progressCallback,p=function(e,t){h.size=t,f(h,e)},n=function(e,t){g&&c.offline.usePersistentLicense&&m==t&&Ma(o,"cenc",e)},(i=d).ge=p,i.fe=n,p=s.variants.some(function(e){var t=e.audio&&e.audio.encrypted;return e.video&&e.video.encrypted||t}),v=s.variants.some(function(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]).some(function(e){return e.initData&&e.initData.length})}),m=null,(g=p&&!v)&&(v=o.i,m=nf.get(v.keySystem)),q(e),y=v=function(e,t,n,i,r,a,o,s){for(var u=new Xh,l=de(r.variants),c=l.next();!c.done;c=l.next()){var d,h,f=u,p=(c=c.value).audio,g=c.video;p&&!g&&(f.g[p.id]=p.bandwidth||c.bandwidth),!p&&g&&(f.g[g.id]=g.bandwidth||c.bandwidth),p&&g&&(d=p.bandwidth||393216,(h=g.bandwidth||c.bandwidth-d)<=0&&(h=c.bandwidth),f.g[p.id]=d,f.g[g.id]=h)}for(l=de(r.textStreams),f=l.next();!f.done;f=l.next())u.g[f.value.id]=52;for(l=de(r.imageStreams),f=l.next();!f.done;f=l.next())f=f.value,u.g[f.id]=f.bandwidth||2048;for((f=new Map).set(null,Promise.resolve(null)),c=new Map,p=tf(r),l=new Map,p=de(p),g=p.next();!g.done;g=p.next())g=g.value,d=function(m,v,y,b,e,w,T,x,S){var E={id:w.id,originalId:w.originalId,primary:w.primary,type:w.type,mimeType:w.mimeType,codecs:w.codecs,frameRate:w.frameRate,pixelAspectRatio:w.pixelAspectRatio,hdr:w.hdr,kind:w.kind,language:w.language,label:w.label,width:w.width||null,height:w.height||null,encrypted:w.encrypted,keyIds:w.keyIds,segments:[],variantIds:[],roles:w.roles,forced:w.forced,channelsCount:w.channelsCount,audioSamplingRate:w.audioSamplingRate,spatialAudio:w.spatialAudio,closedCaptions:w.closedCaptions,tilesLayout:w.tilesLayout},A=w.id;return function(e,t,n){if(null!=(t=e.segmentIndex.find(t)))for(var i=e.segmentIndex.get(t);i;)n(i),i=e.segmentIndex.get(++t)}(w,e.presentationTimeline.Va(),function(i){o=m,t=v,n=A,f=w.id,s=y,u=b,l=i.h,d=T;var r,a,e,o,t,n,s,u,l,c,d,h,f,p=(c=x).has(l)?c.get(l):(d=_o(l.oa(),l.ka,l.fa,d.streaming.retryParameters),t=mh(t,n,d,.5*Wh(u,f),!0,function(t){var n;return ge(function(e){return 1==e.g?he(e,s.addSegments([{data:t}]),2):(n=e.h,o.Nc.push(n[0]),e.return(n[0]))})}),c.set(l,t),t),g=(r=m,n=v,d=A,u=w.id,a=y,f=b,c=T,l=S,e=[(t=i).oa()[0],t.ka,t.fa].join("-"),l.has(e)?l.get(e):(c=_o(t.oa(),t.ka,t.fa,c.streaming.retryParameters),n=mh(n,d,c,function(e,t,n){return n=n.endTime-n.startTime,Wh(e,t)*n}(f,u,t),!1,function(t){var n;return ge(function(e){return 1==e.g?he(e,a.addSegments([{data:t}]),2):(n=e.h,r.Nc.push(n[0]),e.return(n[0]))})}),l.set(e,n),n));d=A,h=function(){var t,n;return ge(function(e){return 1==e.g?he(e,p,2):3!=e.g?(t=e.h,he(e,g,3)):(n=e.h,E.segments.push({initSegmentKey:t,startTime:i.startTime,endTime:i.endTime,appendWindowStart:i.appendWindowStart,appendWindowEnd:i.appendWindowEnd,timestampOffset:i.timestampOffset,dataKey:n}),void fe(e))})},G((c=v).J),f=(c.g.get(d)||Promise.resolve()).then(function(){return ge(function(e){return he(e,h(),0)})}),c.g.set(d,f)}),E}(e,t,n,u,r,g,s,f,c),l.set(g.id,d);for(e=de(r.variants),c=e.next();!c.done;c=e.next())(t=c.value).audio&&l.get(t.audio.id).variantIds.push(t.id),t.video&&l.get(t.video.id).variantIds.push(t.id);return e=Array.from(l.values()),s=s.offline.usePersistentLicense,(t=i.i)&&s&&(t.initData=[]),{creationTime:Date.now(),originalManifestUri:a,duration:r.presentationTimeline.getDuration(),size:0,expiration:i.Ub(),streams:e,sessionIds:s?Na(i):[],drmInfo:t,appMetadata:o}}(r,d,a,o,s,u,l,c),he(e,(t=d,ge(function(e){return 1==e.g?he(e,Promise.all(t.g.values()),2):e.return(t.Pb.h)})),4);case 4:if(y.size=e.h,v.expiration=o.Ub(),b=Na(o),v.sessionIds=c.offline.usePersistentLicense?b:[],p&&c.offline.usePersistentLicense&&!b.length)throw new me(2,9,9007);return e.return(v);case 2:return z(e),he(e,d.destroy(),5);case 5:X(e,0)}var t,n,i})),11);case 11:if(H=e.h,Qh(C),B)throw B;return he(e,U.na.addManifests([H]),12);case 12:return V=e.h,Qh(C),V=new jh("manifest",U.path.Ka,U.path.na,V[0]),e.return(qh(V,H));case 3:return z(e),C.Nc=[],he(e,O.destroy(),13);case 13:if(_)return he(e,_.stop(),14);e.v(14);break;case 14:if(j)return he(e,j.destroy(),16);e.v(16);break;case 16:X(e,0);break;case 2:if(K=pe(e),U)return he(e,U.na.removeSegments(C.Nc,function(){}),18);e.v(18);break;case 18:throw B||K}var r,a,o,s,u,l,c,d,h,f,p,g,m,v,y,b,w,T,x,S,E,t,n,i,A,k,I,M}),function(){return gh(s)}));return u.finally(function(){At(a.Cd,s)}),u.then=function(e){return He("shaka.offline.Storage.store.then","Storage operations now return a shaka.util.AbortableOperation, rather than a promise. Please update to conform to this new API; you can use the |chain| method instead."),u.promise.then(e)},t=this,r=(e=u).promise,t.bc.push(r),e.finally(function(){At(t.bc,r)})},t.ef=function(){return He("shaka.offline.Storage.getStoreInProgress","Multiple concurrent downloads are now supported."),!1},t.yc=function(u,l,c){var d,h,f,p,g,m,v,y,b,w,T,x,S,E,A,k,I,M,C,D,R,N,P;return ge(function(e){switch(e.g){case 1:if(h={width:1/0,height:1/0},o=c.restrictions,s=h,u.variants=u.variants.filter(function(e){return mr(e,o,s)}),c.useMediaCapabilities)return he(e,br(u,c.offline.usePersistentLicense),2);wr(u),yr(u,l),e.v(2);break;case 2:for(d=[],h=c.preferredAudioChannelCount,pr(u,h),f=de(u.variants),p=f.next();!p.done;p=f.next())g=p.value,d.push(kr(g));for(m=de(u.textStreams),v=m.next();!v.done;v=m.next())y=v.value,d.push(Ir(y));for(b=de(u.imageStreams),w=b.next();!w.done;w=b.next())T=w.value,d.push(Mr(T));return he(e,c.offline.trackSelectionCallback(d),4);case 4:for(x=e.h,S=u.presentationTimeline.getDuration(),E=0,A=de(x),k=A.next();!k.done;k=A.next())I=k.value,I=I.bandwidth*S/8,E+=I;return ce(e,5),he(e,c.offline.downloadSizeCallback(E),7);case 7:if(!e.h)throw new me(2,9,9014);re(e,6);break;case 5:if((M=pe(e))instanceof me)throw M;throw new me(2,9,9015);case 6:for(C=new Set,D=new Set,R=new Set,N=de(x),k=N.next();!k.done;k=N.next())"variant"==(P=k.value).type&&C.add(P.id),"text"==P.type&&D.add(P.id),"image"==P.type&&R.add(P.id);u.variants=u.variants.filter(function(e){return C.has(e.id)}),u.textStreams=u.textStreams.filter(function(e){return D.has(e.id)}),u.imageStreams=u.imageStreams.filter(function(e){return R.has(e.id)});var t=u,n=(t.variants.map(function(e){return e.video}),new Set(t.variants.map(function(e){return e.audio})));t=t.textStreams;for(var i=de(n),r=i.next();!r.done;r=i.next())for(var a=(r=de(n)).next();!a.done;a=r.next());for(n=de(t),i=n.next();!i.done;i=n.next())for(i=de(t),r=i.next();!r.done;r=i.next());fe(e)}var o,s})},t.remove=function(e){return ef(this,(o=this,s=e,ge(function(e){switch(e.g){case 1:if(Zh(),null==(d=Oh(s))||"manifest"!=d.g)throw new me(2,9,9004,s);return d=d,h=new Ih,q(e),he(e,h.init(),4);case 4:return he(e,Mh(h,d.Ka(),d.na()),5);case 5:return he(e,(f=e.h).getManifests([d.key()]),6);case 6:return p=e.h,p=p[0],he(e,Promise.all([(u=o,l=p,c=h,ge(function(e){return he(e,(t=u.P,n=u.o.drm,i=c,r=l,ge(function(e){return 1==e.g?r.drmInfo?(a=function(e){var t=Array.from(e.g.keys());if(t.length)return e.g.get(t[0]).getEmeSessionCell();throw new me(2,9,9e3,"No supported storage mechanisms found")}(i),o=r.sessionIds.map(function(e){return{sessionId:e,keySystem:r.drmInfo.keySystem,licenseUri:r.drmInfo.licenseServerUri,serverCertificate:r.drmInfo.serverCertificate,audioCapabilities:Jh(r,!1),videoCapabilities:Jh(r,!0)}}),he(e,Gh(n,t,o),2)):e.return():3!=e.g?(s=e.h,he(e,a.remove(s),3)):he(e,a.add(o.filter(function(e){return!s.includes(e.sessionId)})),0)})),0);var t,n,i,r,a,o,s})),(n=f,i=d,a=function(e){for(var t=[],n=(e=de(e.streams)).next();!n.done;n=e.next())for(var i=(n=de(n.value.segments)).next();!i.done;i=n.next())null!=(i=i.value).initSegmentKey&&t.push(i.initSegmentKey),t.push(i.dataKey);return t}(r=p),qh(i,r),Promise.all([n.removeSegments(a,t),n.removeManifests([i.key()],t)]))]),2);case 2:return z(e),he(e,h.destroy(),8);case 8:X(e,0)}function t(){}var n,i,r,a,u,l,c})));var o,s,d,h,f,p},t.Bf=function(){return ef(this,(n=this,ge(function(e){switch(e.g){case 1:return Zh(),i=n.P,r=n.o.drm,a=new Ih,o=!1,q(e),he(e,a.init(),4);case 4:s=[],t=function(e){s.push(e)},a.g.forEach(function(e){t(e.getEmeSessionCell())}),u=de(s),l=u.next();case 5:if(l.done){e.v(2);break}return he(e,(c=l.value).getAll(),8);case 8:return d=e.h,he(e,Gh(r,i,d),9);case 9:return h=e.h,he(e,c.remove(h),10);case 10:h.length!=d.length&&(o=!0),l=u.next(),e.v(5);break;case 2:return z(e),he(e,a.destroy(),11);case 11:X(e,3);break;case 3:return e.return(!o)}var t})));var n,i,r,a,o,s,u,l,c,d,h},t.list=function(){return ef(this,ge(function(e){switch(e.g){case 1:return Zh(),r=[],t=new Ih,q(e),he(e,t.init(),4);case 4:return a=Promise.resolve(),i=function(n,t){a=a.then(function(){return ge(function(e){if(1==e.g)return he(e,t.getAllManifests(),2);e.h.forEach(function(e,t){t=qh(new jh("manifest",n.Ka,n.na,t),e);r.push(t)}),fe(e)})})},t.g.forEach(function(e,n){e.getCells().forEach(function(e,t){i({Ka:n,na:t},e)})}),he(e,a,2);case 2:return z(e),he(e,t.destroy(),6);case 6:X(e,3);break;case 3:return e.return(r)}var i}));var r,t,a},e("shaka.offline.Storage",Yh),Yh.deleteAll=function(){var r;return ge(function(e){return 1==e.g?(r=new Ih,q(e),he(e,(t=r,ge(function(e){return 1==e.g?(n=Array.from(t.g.values()),(i=0 tag.");if(!(r=a.getElementsByTagName("body")[0]))return[];var o=zl(a,ag,"frameRate"),s=zl(a,ag,"subFrameRate"),u=zl(a,ag,"frameRateMultiplier"),l=zl(a,ag,"tickRate"),c=zl(a,ag,"cellResolution"),e=a.getAttribute("xml:space")||"default",i=zl(a,og,"extent");if("default"!=e&&"preserve"!=e)throw new me(2,2,2005,"Invalid xml:space value: "+e);e="default"==e;for(var o=new zp(o,s,u,l),c=(c=c&&/^(\d+) (\d+)$/.exec(c))?{columns:parseInt(c[1],10),rows:parseInt(c[2],10)}:null,s=(s=a.getElementsByTagName("metadata")[0])?Array.from(s.childNodes).filter(function(e){return e instanceof Element}):[],u=Array.from(a.getElementsByTagName("style")),l=[],d=de(a=Array.from(a.getElementsByTagName("region"))),h=d.next();!h.done;h=d.next()){var f,p,g,m=h.value,h=new Gt,v=m.getAttribute("xml:id");v?(h.id=v,g=null,v=(g=i?Xp.exec(i)||$p.exec(i):g)?Number(g[1]):null,g=g?Number(g[2]):null,(f=Up(m,u,"extent"))&&null!=(f=(p=Xp.exec(f))||$p.exec(f))&&(h.width=Number(f[1]),h.height=Number(f[2]),p||(null!=v&&(h.width=100*h.width/v),null!=g&&(h.height=100*h.height/g)),h.widthUnits=p||null!=v?qt:0,h.heightUnits=p||null!=g?qt:0),(m=Up(m,u,"origin"))&&null!=(f=(p=Xp.exec(m))||$p.exec(m))&&(h.viewportAnchorX=Number(f[1]),h.viewportAnchorY=Number(f[2]),p||(null!=g&&(h.viewportAnchorY=100*h.viewportAnchorY/g),null!=v&&(h.viewportAnchorX=100*h.viewportAnchorX/v)),h.viewportAnchorUnits=p||null!=v?qt:0)):h=null,h&&l.push(h)}if(C(r,"p").length)throw new me(2,2,2001,"

can only be inside

in TTML");for(d=(i=de(C(r,"div"))).next();!d.done;d=i.next())if(C(d.value,"span").length)throw new me(2,2,2001," can only be inside

in TTML");(r=function e(t,n,i,r,a,o,s,u,l,c,d){var h=t.parentNode;if(t.nodeType==Node.COMMENT_NODE)return null;if(t.nodeType==Node.TEXT_NODE){if(!d)return null;var f=document.createElement("span");f.textContent=t.textContent}else f=t;for(var p=null,g=de(sg),m=g.next();!m.done&&!(p=Hp(f,"backgroundImage",r,"#",m.value)[0]);m=g.next());g=d;"p"!=t.nodeName&&!p||(d=!0);u="default"==(f.getAttribute("xml:space")||(u?"default":"preserve"));m=Array.from(f.childNodes).every(function(e){return e.nodeType==Node.TEXT_NODE});t=[];if(!m)for(var v=de(f.childNodes),y=v.next();!y.done;y=v.next())(y=e(y.value,n,i,r,a,o,s,u,l,f,d))&&t.push(y);r=null!=c;v=/\S/.test(f.textContent);var b=f.hasAttribute("begin")||f.hasAttribute("end")||f.hasAttribute("dur");if(!(b||v||"br"==f.tagName||0!=t.length||r&&!u))return null;y=Kp(f,i);v=y.start;for(y=y.end;h&&h.nodeType==Node.ELEMENT_NODE&&"tt"!=h.tagName;)y=Vp(h,i,v,y),v=y.start,y=y.end,h=h.parentNode;null==v&&(v=0);v+=n;y=null==y?1/0:y+n;if(!b&&0"+(e=function(e){for(var t=[],n=-1,i="",r=0;r",r);if(a<=r)return e;a=e.substring(r+1,a);var o=t.pop();if(!a||!o)return e;if(o===a)i+="/"+a+">";else{if(!o.startsWith("c.")||"c"!==a)return e;i+="/"+o+">"}r+=a.length+1}else"<"===e[r]?n=r+1:">"===e[r]&&0","span")){var i,r=[];if(1==(i=i.childNodes).length){var a=i[0];if(a.nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION_NODE)return void(t.payload=e)}for(i=(e=de(i)).next();!i.done;i=e.next())!function e(t,n,i,r){var a=n.clone();if(t.nodeType===Node.ELEMENT_NODE&&t.nodeName)for(var o=de(t.nodeName.split(/[ .]+/)),s=o.next();!s.done;s=o.next()){var u;switch(s=s.value,r.has(s)&&(u=r.get(s))&&(a.backgroundColor=hg(u.backgroundColor,a.backgroundColor),a.color=hg(u.color,a.color),a.fontFamily=hg(u.fontFamily,a.fontFamily),a.fontSize=hg(u.fontSize,a.fontSize),a.fontWeight=u.fontWeight,a.fontStyle=u.fontStyle,a.opacity=u.opacity,a.wrapLine=u.wrapLine),s){case"b":a.fontWeight=700;break;case"i":a.fontStyle="italic";break;case"u":a.textDecoration.push("underline")}}if(Wl(t))for(o=!0,r=de(t.textContent.split("\n")),t=r.next();!t.done;t=r.next())t=t.value,o||(o=n.clone(),o.lineBreak=!0,i.push(o)),0>8&255)+","+(e>>16&255)+","+(e>>24&255^255)/255+")":null}function xg(e){return 3600*((e=Mg.exec(e))[1]?parseInt(e[1].replace(":",""),10):0)+60*parseInt(e[2],10)+parseFloat(e[3])}Ui["application/ttml+xml"]=function(){return new Lp},ug.prototype.parseInit=function(e){var t=!1;if((new T).box("moov",b).box("trak",b).box("mdia",b).box("minf",b).box("stbl",b).T("stsd",Ye).box("stpp",function(e){t=!0,e.parser.stop()}).parse(e),!t)throw new me(2,2,2007)},ug.prototype.parseMedia=function(e,t){var n=this,i=!1,r=[];if((new T).box("mdat",$e(function(e){i=!0,r=r.concat(n.s.parseMedia(e,t))})).parse(e,!1),i)return r;throw new me(2,2,2007)},e("shaka.text.Mp4TtmlParser",ug),Ui['application/mp4; codecs="stpp"']=function(){return new ug},Ui['application/mp4; codecs="stpp.ttml"']=function(){return new ug},Ui['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new ug},Ui['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new ug},lg.prototype.parseInit=function(){},lg.prototype.parseMedia=function(e,t){var n=Ne(e),i=(n=n.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")).split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(i[0]))throw new me(2,2,2e3);if(n=t.periodStart,i[0].includes("X-TIMESTAMP-MAP")){var r=i[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),a=i[0].match(/MPEGTS:(\d+)/m);if(r&&a){if(null==(n=pg(new wd(r[1]))))throw new me(2,2,2e3);for(a=Number(a[1]),r=t.segmentStart;95443.7176888889<=r;)r-=95443.7176888889,a+=8589934592;n=t.periodStart+a/9e4-n}}for(var a=[],o=(r=de(i[0].split("\n"))).next();!o.done;o=r.next())if(o=o.value,/^Region:/.test(o)){var o=new wd(o),s=new Gt;Sd(o),Td(o);for(var u=Sd(o);u;){var l=s,c=u;(u=/^id=(.*)$/.exec(c))?l.id=u[1]:(u=/^width=(\d{1,2}|100)%$/.exec(c))?l.width=Number(u[1]):(u=/^lines=(\d+)$/.exec(c))?(l.height=Number(u[1]),l.heightUnits=2):(u=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(c))?(l.regionAnchorX=Number(u[1]),l.regionAnchorY=Number(u[2])):(u=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(c))?(l.viewportAnchorX=Number(u[1]),l.viewportAnchorY=Number(u[2])):/^scroll=up$/.exec(c)&&(l.scroll="up"),Td(o),u=Sd(o)}a.push(s)}for(cg(r=new Map),o=[],s=(i=de(i.slice(1))).next();!s.done;s=i.next()){if((1!=(s=s.value.split("\n")).length||s[0])&&!/^NOTE($|[ \t])/.test(s[0])&&"STYLE"==s[0]&&s[1].includes("::cue")){l="global",(u=s[1].match(/\((.*)\)/))&&(l=u.pop()),u=s.slice(2,-1),s[1].includes("}")&&(c=/\{(.*?)\}/.exec(s[1]))&&(u=c[1].split(";"));for(var c=new E(0,0,""),d=!1,h=0;h