(function(){var g={}; var _ = _ || {}
var f=function(window){var JR="Full MP4 box must have flags defined",KR="clpp.smooth.SmoothMP4Processor",LR="codecPrivateData",MR=function(a,b){var c=Math.floor(b/Math.pow(2,32)),d=b-c*Math.pow(2,32);_.V(a,c);_.V(a,d)},NR=function(a,b){try{a.f.setUint8(a.a,b),a.a+=1}catch(c){_.cn()}},OR=function(a,b){NR(a,b>>16&255);NR(a,b>>8&255);NR(a,b&255)},PR=function(a,b){try{a.f.setUint16(a.a,b,a.h),a.a+=2}catch(c){_.cn()}},QR=function(a,b){try{a.f.setInt32(a.a,b,a.h),a.a+=4}catch(c){_.cn()}},RR=function(a,b){try{a.f.setInt16(a.a,
b,a.h),a.a+=2}catch(c){_.cn()}},SR=function(a,b){if(void 0!==b){for(var c=new Uint8Array(b),d=Math.min(a.length,b),e=0;e<d;++e)c[e]=a.charCodeAt(e);for(;e<b;e++)c[e]=0;return c}c=new Uint8Array(a.length);for(d=0;d<a.length;++d)c[d]=a.charCodeAt(d);return c},TR=function(a){this.type=a;this.size=this.start=0;this.parent=null;this.w=!1;this.entries=[];this.children=[]},Z=function(a,b,c){TR.call(this,a);this.version=b;this.flags=c},UR=function(a,b,c){TR.call(this,a);this.f=b;this.offset=c},VR=function(a,
b,c,d,e){Z.call(this,a,b,c);this.f=d;this.offset=e},WR=function(a,b,c){TR.call(this,"ftyp");this.h=a;this.Di=b;this.f=c},YR=function(){TR.call(this,_.Ne)},ZR=function(){TR.call(this,_.tg)},$R=function(a,b,c){Z.call(this,"mvhd",1,0);this.timescale=a;this.duration=b;this.volume=256;this.h=c+1;this.f=[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0]},aS=function(){TR.call(this,"mvex")},bS=function(a){Z.call(this,"trex",0,0);this.f=a},cS=function(a,b,c,d,e){Z.call(this,"tkhd",
1,7);this.h=a;this.duration=b;this.timescale=c;this.width=d;this.height=e;this.volume=1;this.f=[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0]},dS=function(a,b){Z.call(this,"mdhd",1,0);this.timescale=a;this.duration=b;this.language=21956},eS=function(a){Z.call(this,"hdlr",0,0);this.f=a},fS=function(){Z.call(this,"vmhd",0,1);this.f=new Uint8Array([0,0,0,0,0,0])},gS=function(a){TR.call(this,a);this.w=!0},hS=function(a){gS.call(this,a);this.height=this.width=0;this.depth=24},
iS=function(a,b,c,d){gS.call(this,a);this.channelCount=b;this.sampleSize=c;this.sampleRate=d},jS=function(a,b){hS.call(this,"avc1");this.width=a;this.height=b},kS=function(a,b){jS.call(this,a,b);this.type="encv"},lS=function(a,b,c){iS.call(this,"mp4a",a,b,c)},mS=function(a,b,c){lS.call(this,a,b,c);this.type="enca"},nS=function(a,b){TR.call(this,"avcC");this.gb=a;this.tc=b;this.version=1;this.f=this.gb[0][1];this.h=this.gb[0][2];this.level=this.gb[0][3]},oS=function(a){Z.call(this,"esds",0,0);this.oc=
a},pS=function(a){a=void 0===a?"":a;Z.call(this,"url ",0,1);this.location=a},qS=function(){Z.call(this,"dref",0,0)},rS=function(){TR.call(this,_.dg)},sS=function(){Z.call(this,_.fg,0,0)},tS=function(){Z.call(this,"stts",0,0)},uS=function(){Z.call(this,"stsc",0,0)},vS=function(){Z.call(this,"stco",0,0)},wS=function(){Z.call(this,"stsz",0,0)},xS=function(){Z.call(this,"smhd",0,0)},yS=function(){TR.call(this,"dinf")},zS=function(){TR.call(this,_.Le)},AS=function(){TR.call(this,_.He)},BS=function(a,b){Z.call(this,
"tfdt",a,0);this.baseMediaDecodeTime=b},CS=function(){Z.call(this,"mfhd",0,0);this.f=0},DS=function(a,b){Z.call(this,"trun",a,b);this.l=this.j=this.f=0;this.o=[];this.sampleSize=[];this.A=[];this.h=[]},ES=function(a,b){Z.call(this,"tfhd",a,b);this.f=255;this.l=this.o=this.j=this.A=this.h=0},FS=function(){TR.call(this,"traf")},GS=function(){TR.call(this,"moof")},HS=function(){TR.call(this,_.Ge);this.f=new Uint8Array(0)},IS=function(){Z.call(this,"tenc",0,0);this.f=1;this.h=8;this.l="";this.j=[]},JS=
function(a,b){Z.call(this,"schm",0,0);this.f=a;this.h=b;this.jc=""},KS=function(a){TR.call(this,"frma");this.f=a},LS=function(){Z.call(this,"saio",0,0);this.offset=[0]},MS=function(a,b,c){Z.call(this,"saiz",0,0);this.f=a;this.j=b;this.h=c},NS=function(a,b){Z.call(this,"senc",a,b);this.h=0;this.j=8;this.f=[]},OS=function(a){var b=a.split("/");return b[b.length-1].toLowerCase().match("manifest(\\(.+\\))?")?a:a+"/Manifest"},PS=function(a,b,c,d){c=b.Wh[c];b=b.Mo;a=a.replace("Manifest","");b=b.replace("{bitrate}",
String(d.bitrate)).replace("{Bitrate}",String(d.bitrate)).replace("{start time}",String(c.t)).replace("{start_time}",String(c.t));return _.JD([a],[b])[0]},QS=function(a,b){if(a.type!==b.type)return!1;var c=[];a.type===_.Jg?c=["maxWidth","maxHeight","bitrate",LR,"fourCC"]:a.type===_.Pc&&(c=["bitrate",LR,"channels","bitsPerSample","samplingRate","fourCC"]);return _.L.pa(a,b,c,["id","segmentIndex"])},RS=function(a,b,c){var d=c.Ve.split("00000001");a={id:1,type:c.type,duration:a/b,timescale:b,gb:null,
tc:null,width:NaN,height:NaN,oc:null,Ae:NaN,sampleSize:NaN,channelCount:NaN};switch(c.type){case _.Jg:a.gb=[_.Om(d[1])];a.tc=[_.Om(d[2])];a.width=c.maxWidth;a.height=c.maxHeight;break;case _.Pc:a.oc=_.Om(c.Ve),a.sampleSize=c.Oj||16,a.Ae=c.Ae,a.channelCount=c.uh}return a},SS=function(a,b){return a.filter(function(c){return c.type===b})},TS=function(a,b){var c=a.exec(b);return null==c||""===c[0]?null:(Number(c[4])||0)/1E3+(Number(c[3])||0)+60*(Number(c[2])||0)+3600*(Number(c[1])||0)},$S=function(a,
b,c){var d=null;if(US.test(a)){a=US.exec(a);d=Number(a[1]);var e=Number(a[2]),f=Number(a[3]),g=Number(a[4]);g+=(Number(a[5])||0)/c.f;f+=g/c.frameRate;d=f+60*e+3600*d}else VS.test(a)?d=TS(VS,a):WS.test(a)?d=TS(WS,a):XS.test(a)?(a=XS.exec(a),d=Number(a[1])/c.frameRate):YS.test(a)?(a=YS.exec(a),d=Number(a[1])/c.a):ZS.test(a)&&(d=TS(ZS,a));d+=b;b=Math.floor(d/3600);c=Math.floor((d-3600*b)/60);a=Math.floor(d-3600*b-60*c);d-=a;10>b&&(b="0"+b);10>c&&(c="0"+c);10>a&&(a="0"+a);0===d?d="000":d=Math.round(1E3*
d);return b+":"+c+":"+a+"."+d},aT=function(a,b,c,d){this.frameRate=Number(a)||30;this.f=Number(b)||1;this.a=Number(d);0===this.a&&(this.a=a?this.frameRate*this.f:1);c&&(a=/^(\d+) (\d+)$/g.exec(c))&&(this.frameRate*=parseInt(a[1],10)/parseInt(a[2],10))},cT=function(a){this.a=a;this.f=bT(this)},bT=function(a){for(var b=0,c=0;c<a.a.length;c++)b+=a.a[c].a();return new _.bn(b)},dT=function(a,b,c){a:{var d=_.u([_.Gd,_.Ed]);for(var e=d.next();!e.done;e=d.next())if((e=c.af(e.value))&&e.keyId){d=e.keyId;break a}_.Jh(KR,
"Could not get default Key ID for DRM init data!");d=null}c=new TR("xxxx");a.type===_.Jg?c=new kS(a.width,a.height):c=new mS(a.channelCount,a.sampleSize,a.Ae);a=new IS;a.f=1;a.h=8;a.l=d||"00000000000000000000000000000000";a=(new TR("schi")).append([a]);b=(new TR(_.Yf)).append([new KS(b),new JS(_.hd,65536),a]);c.append([b]);return c},eT=function(a,b){var c=b.df(),d=new $R(a.timescale,a.duration,a.id),e=(new aS).append([new bS(a.id)]),f=new cS(a.id,a.duration,a.timescale,a.width,a.height),g=new dS(a.timescale,
a.duration),h=new eS(a.type),l=null,m=new qS;m.entries=[new pS];var n=new sS;switch(a.type){case _.Jg:var p=new nS(a.gb,a.tc);c?(l=dT(a,"avc1",b),l.append([p]),n.entries=[l]):(l=(new jS(a.width,a.height)).append([p]),n.entries=[l]);l=new fS;break;case _.Pc:p=new oS(a.oc),c?(l=dT(a,"mp4a",b),l.append([p]),n.entries=[l]):(l=(new lS(a.channelCount,a.sampleSize,a.Ae)).append([p]),n.entries=[l]),l=new xS}n=(new rS).append([n,new tS,new uS,new wS,new vS]);m=(new yS).append([m]);m=(new zS).append([l,m,n]);
g=(new AS).append([g,h,m]);f=(new ZR).append([f,g]);d=(new YR).append([d,f,e]);e=new WR("dash",0,["iso6","mp41","avc1"]);c&&(c=b.af(_.Ed),f=b.af(_.Gd),c&&d.append([new UR("pssh",c.initData,8)]),f&&d.append([new UR("pssh",f.initData,8)]),c||f||_.Jh(KR,"Could not get PSSH init data!"));c=new cT([e,d]);return _.Oj(c.write())},gT=function(a,b){var c,d,e,f,g,h;(new _.pn).M("moof",_.qn).aa("mfhd",function(m){var n=new CS;n.f=_.kn(m.reader);c=n}).M("traf",_.qn).aa("tfhd",function(m){var n=m.reader.Ta();
if(null===m.flags)throw new _.N(_.O,3,3019,JR);var p=new ES(m.version||0,m.flags||0);p.f=_.kn(m.reader);0<n-m.reader.getPosition()&&m.flags&1&&(p.h=_.mn(m.reader));0<n-m.reader.getPosition()&&m.flags&2&&(p.A=_.kn(m.reader));0<n-m.reader.getPosition()&&m.flags&8&&(p.j=_.kn(m.reader));0<n-m.reader.getPosition()&&m.flags&16&&(p.o=_.kn(m.reader));0<n-m.reader.getPosition()&&m.flags&32&&(p.l=_.kn(m.reader));d=p}).aa("trun",function(m){var n=m.reader.Ta();if(null===m.flags)throw new _.N(_.O,3,3019,JR);
var p=new DS(m.version||0,m.flags||0);p.f=_.kn(m.reader);0<n-m.reader.getPosition()&&m.flags&1&&(p.j=_.ln(m.reader));0<n-m.reader.getPosition()&&m.flags&4&&(p.l=_.kn(m.reader));if(0<n-m.reader.getPosition())for(n=0;n<p.f;n++)m.flags&256&&p.o.push(_.kn(m.reader)),m.flags&512&&p.sampleSize.push(_.kn(m.reader)),m.flags&1024&&p.A.push(_.kn(m.reader)),m.flags&2048&&(0===m.version?p.h.push(_.kn(m.reader)):p.h.push(_.ln(m.reader)));e=p}).aa("sdtp",function(m){var n=_.on(m.reader,m.reader.Ta());f=new VR("sdtp",
m.version||0,m.flags||0,n,0)}).M("uuid",function(m){var n=_.on(m.reader,16);if(_.Qm(n,fT)){n=_.kn(m.reader);m.version=n>>>24;m.flags=n&16777215;n=new NS(m.version,m.flags);n.h=_.kn(m.reader);m.flags&1&&(n.j=_.hn(m.reader));for(var p=0;p<n.h;p++){var q={ni:_.on(m.reader,8),Ed:0,Qg:[]};if(m.flags&2){q.Ed=_.jn(m.reader);for(var t=0;t<q.Ed;t++){var v={qh:0,rh:0};v.qh=_.jn(m.reader);v.rh=_.kn(m.reader);q.Qg.push(v)}}n.f.push(q)}g=n}}).M(_.Ge,function(m){var n=new HS;0<m.reader.Ta()?n.f=_.on(m.reader,m.reader.Ta()):
(_.Jh(KR,"mdat box is empty!"),n.f=new Uint8Array(0));h=n}).parse(a,!1);if(!h)return null;var l=(new FS).append([d,e]);f&&l.append([f]);b.df()&&g&&l.append([g]);l=(new GS).append([c,l]);return new cT([l,h])},hT=function(a,b,c,d){var e=d.df(),f=parseInt(c*b,10);b=a.data||new ArrayBuffer(0);var g=gT(b,d);if(null===g)return a.request.contentType===_.pj?a.data:g;d=g.get(_.Ge);if(a.request.contentType===_.pj){e=d.f.buffer;if(c){e=_.Q.de(e);if((e=(new DOMParser).parseFromString(e,_.lg))&&"tt"===e.documentElement.tagName.toLowerCase())var h=
e.documentElement;if(h&&(d=new aT(h.getAttribute("ttp:frameRate"),h.getAttribute("ttp:subFrameRate"),h.getAttribute("ttp:frameRateMultiplier"),h.getAttribute("ttp:tickRate")),h=h.getElementsByTagName("body")[0]))for(h=h.getElementsByTagName("p"),a=0,b=h.length;a<b;a++){f=h[a];g=c;for(var l=["begin",_.ge],m=0,n=l.length;m<n;m++){b:{var p=f;var q=l[m],t=new RegExp("\\w+:"+q),v=0;if(p.hasAttribute(q))p=p.getAttribute(q);else{q=p.attributes;for(var z=q.length;v<z;v++){var A=q[v].name;if(A=A.match(t)){p=
p.getAttribute(A[0]);break b}}p=null}}f.setAttribute(l[m],$S(p||"",g,d))}}e=(new XMLSerializer).serializeToString(e);c=_.Q.hb(e).buffer}else c=e;return c}h=new GS;a=g.get("mfhd");b=new FS;l=g.get("tfhd");m=new BS(1,f);f=g.get("trun");n=g.get("sdtp");c=g.get("senc");l.f=1;l.flags&=16777214;l.flags|=131072;b.append([l,m,f]);n&&b.append([n]);if(e){g=0;l=[];if(c.flags&2)for(l=[],m=0;m<c.h;m++)l.push(10+6*c.f[m].Ed);else g=8;b.append([c,new LS,new MS(g,l,c.h)])}h.append([a,b]);f.flags|=1;f.j=h.a()+8;d=
new cT([h,d]);h=d.write();e&&(e=d.get("saio"),d=d.f,e.offset[0]=c.start+16,d.seek(e.start),e.write(d),h=d.buffer);return h},iT=function(a,b,c){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[b],keyIds:c,periodId:null}},jT=function(a,b,c){a=_.Yo(a);c&&a.version!==c&&(a=_.yD(a,c));return{initData:_.wD(a),initDataType:_.hd,keyId:b,periodId:null}},lT=function(){this.A=this.j=this.f=
this.F=null;this.h=1;this.P=0;this.o="";this.C=this.a=null;this.g=new _.J("clpp.smooth.SmoothParser");this.K=!1;this.l=this.B=null;this.N=kT;this.I=0;this.G=this.J=Infinity;this.w=[];this.L=this.ho.bind(this);this.H=new Map},mT=function(a,b){var c,d,e;return _.H(function(f){if(1==f.a)return c=_.ck(b),c.timeout=a.f.attemptParameters.timeout,c.maxAttempts=Math.max(a.f.attemptParameters.maxAttempts,b.length),c.baseDelay=a.f.attemptParameters.baseDelay,c.backoffFactor=a.f.attemptParameters.backoffFactor,
c.fuzzFactor=a.f.attemptParameters.fuzzFactor,c.type=1,d=a.F.networkingEngine.fetch(c),_.x(f,d.S,2);e=f.f;a.o=e.uri;return f["return"](e)})},tT=function(a,b){var c=_.To,d=null;try{var e=_.Q.de(b);d=c.we(e,_.Lb)}catch(DY){}if(!d)throw a.g.error("Unable to parse manifest"),new _.N(_.O,4,4033,a.o);var f=+nT(a,d,"MajorVersion"),g=+nT(a,d,"MinorVersion"),h=+d.getAttribute("TimeScale")||1E7,l=+nT(a,d,"Duration"),m="TRUE"===d.getAttribute("IsLive"),n=+d.getAttribute("LookAheadCount"),p=+d.getAttribute("DVRWindowLength")||
Infinity,q=c.$(d,"Protection")[0];if(!1===/^[2].[0-2]$/.test(""+f+"."+g))throw a.g.error("Smooth Streaming version must be 2.0, 2.1 or 2.2"),new _.N(_.O,4,4036,a.o);m?(oT(a,pT),a.B=typeof a.f.liveRefreshPeriod===_.k?1E3*a.f.liveRefreshPeriod:Math.min(1E3*a.I,1E4),l=Infinity):oT(a,kT);a.a={startTime:0,delay:0,duration:l/h,dg:p/h,se:0};if(q){var t=a.f.playreadyVersion,v=_.To,z=[],A=v.$(q,"ProtectionHeader")[0],D=_.Nm(v.ra(A)||""),G=_.Yo(D).a;z.push(iT(_.Gd,{initData:_.wD(_.Qo(G)),initDataType:_.hd,
keyId:G,periodId:null},[G]));z.push(iT(_.Ed,jT(D,G,t),[G]));a.w=z}var B=[],F=_.To.$(d,"StreamIndex");if(!F.length)throw a.g.error("No streams found!"),new _.N(_.O,4,4034,a.o);for(var M=0;M<F.length;M++){for(var R,ka=a,U=F[M],qa=nT(ka,U,"Type"),Ba=+U.getAttribute("Chunks"),Ca=U.getAttribute("Subtype")||"",Da=U.getAttribute("Language")||_.wg,Na=_.Cj(Da),zb=U.getAttribute("Name")||"",me=+U.getAttribute(_.fb),Cf=+U.getAttribute(_.eb),Fg=nT(ka,U,"Url"),Pu=+U.getAttribute("TimeScale")||null,od=[],Ln=_.To.$(U,
_.Ab),Ev=0;Ev<Ln.length;Ev++){var Ef=void 0,yc=void 0,Fv=void 0,Ff=ka,Od=Ln[Ev],Gv=qa,gX=+Od.getAttribute("Index"),hX=+nT(Ff,Od,"Bitrate"),uJ=NaN,vJ=NaN,Io=NaN,Hv=NaN,wJ=NaN,xJ=NaN,yJ=NaN,zJ=Od.getAttribute("FourCC")||"";switch(Gv){case _.Jg:uJ=+nT(Ff,Od,_.eb);vJ=+nT(Ff,Od,_.fb);break;case _.Pc:Hv=+Od.getAttribute("Channels")||2,Io=+nT(Ff,Od,"SamplingRate"),xJ=+nT(Ff,Od,"AudioTag"),wJ=+nT(Ff,Od,"BitsPerSample"),yJ=+nT(Ff,Od,"PacketSize")}var Iv=String(Od.getAttribute("CodecPrivateData"));if(Gv===
_.Pc&&!Iv){var AJ=Hv,BJ={96E3:0,88200:1,64E3:2,48E3:3,44100:4,32E3:5,24E3:6,22050:7,16E3:8,12E3:9,11025:10,8E3:11,7350:12},Jo=BJ[Io];if("AACH"===zJ){yc=new Uint8Array(4);var CJ=BJ[2*Io];yc[0]=40|Jo>>1;yc[1]=Jo<<7|AJ<<3|CJ>>1;yc[2]=CJ<<7|8;yc[3]=0;Ef=new Uint16Array(2);Ef[0]=(yc[0]<<8)+yc[1];Ef[1]=(yc[2]<<8)+yc[3];Fv=Ef[0].toString(16)+Ef[1].toString(16)}else yc=new Uint8Array(2),yc[0]=16|Jo>>1,yc[1]=Jo<<7|AJ<<3,Ef=new Uint16Array(1),Ef[0]=(yc[0]<<8)+yc[1],Fv=Ef[0].toString(16);Iv=Fv.toUpperCase()}var iX=
{id:Ff.P++,type:Gv,index:gX,bitrate:hX,Ve:Iv,maxHeight:uJ,maxWidth:vJ,Ae:Io,uh:Hv,cp:xJ,Oj:wJ,up:yJ,Kl:zJ,segmentIndex:null};od.push(iX)}R=od;for(var Me=[],DJ=_.To.$(U,"c"),Ak=0;Ak<DJ.length;Ak++){var Jv=DJ[Ak],ne=parseInt(Jv.getAttribute("t"),10),hi=parseInt(Jv.getAttribute("d"),10),Kv=parseInt(Jv.getAttribute("r"),10),Bk=0;if(isNaN(ne)&&isNaN(hi))throw ka.g.error("Either one or both FragmentDuration and FragmentTime field MUST be present in StreamFragmentElement"),new _.N(_.O,4,4037,ka.o);0===Ak&&
isNaN(ne)&&(Bk=ne=0);if(0<Ak){var Ig=Me[Me.length-1];Bk=Ig.n+1;Ig.d||(Ig.d=ne-Ig.t);ne||(ne=Ig.t+Ig.d);hi||(hi=ne-Ig.t)}Me.push({n:Bk,d:hi,t:ne});if(Kv){Kv--;for(var EJ=0;EJ<Kv;EJ++){var Ko=Me[Me.length-1];Bk=Ko.n+1;ne=Ko.t+Ko.d;hi=Ko.d;Me.push({n:Bk,d:hi,t:ne})}}}ka.Vd()||Me.length===Ba||ka.g.warn("Number of fragments ("+Ba+") differs from number of chunks ("+Me.length+").");B.push({type:qa,ip:Ba,xo:Ca,language:Na,yd:Da,name:zb,maxWidth:me,maxHeight:Cf,Mo:Fg,tracks:R,Wh:Me,timescale:Pu})}var Gf=
{sp:f,Di:g,timescale:h,duration:l,isLive:m,rp:n,dg:p,kg:!1,streams:B};if(a.j&&a.A)return qT(a,Gf),Promise.resolve();a.H.clear();var Lv=Gf.timescale,Lo=Gf.duration,kX=SS(Gf.streams,_.Pc),lX=SS(Gf.streams,_.Jg),mX=SS(Gf.streams,_.pj),FJ=[],Mo=rT(a,Lo,Lv,kX),No=rT(a,Lo,Lv,lX),nX=rT(a,Lo,Lv,mX);Mo.length||(Mo=[null]);No.length||(No=[null]);for(var Nv=0;Nv<No.length;Nv++)for(var Ov=0;Ov<Mo.length;Ov++)FJ.push(sT(a,No[Nv],Mo[Ov]));var GJ={id:"ID",configurationId:void 0,startTime:0,endTime:Lo,variants:FJ,
textStreams:nX,thumbStreams:[]};var pX=Gf.streams,Pv=a.a.startTime,HJ=a.a.delay,Qv=a.J,IJ=Math.min(a.a.duration||Infinity,Qv),Rv=a.Vd(),qX=a.a.dg,rX=a.a.se,JJ=a.I,KJ=isFinite(a.G)?a.G:0;if(Rv)IJ=Infinity,Pv=Date.now()/1E3-rX,a.a.startTime=Pv,HJ=3*JJ;else for(var sX=isFinite(Qv)?Qv:a.a.duration,LJ=_.u(pX),Sv=LJ.next();!Sv.done;Sv=LJ.next())for(var MJ=_.u(Sv.value.tracks),Tv=MJ.next();!Tv.done;Tv=MJ.next()){var NJ=Tv.value;NJ.segmentIndex.offset(-KJ);_.lE(NJ.segmentIndex,sX)}var OJ=a.f.timeline||{};
OJ.type=void 0;a.C=new _.tE(OJ,Pv,HJ,!Rv,!0);a.C.f=IJ;_.BE(a.C,JJ);a.C.A=qX;Rv||a.C.offset(-KJ);a.F.filterAllPeriods([GJ]);a.j={presentationTimeline:a.C,periods:[GJ],minBufferTime:0,cues:[]};Promise.resolve();a.K||(a.F.networkingEngine.fd(a.L),a.K=!0);a.A=Gf;return Promise.resolve()},qT=function(a,b){for(var c=0;c<a.A.streams.length;c++)for(var d=b.streams[c],e={},f=_.u(a.A.streams[c].tracks),g=f.next();!g.done;e={nc:e.nc},g=f.next())if(e.nc=g.value,g=d.tracks.find(function(l){return function(m){return m.type===
l.nc.type&&m.bitrate===l.nc.bitrate}}(e))){QS(e.nc,g)||a.g.warn("The current stream is updated with a stream that seems to have different base properties!");var h=uT(a,a.A.timescale,d,g);g=e.nc.segmentIndex;g.ta(h);(h=a.a.dg)&&_.RE(g,_.QE(g)-h).forEach(function(l){l.cb().forEach(function(m){a.H["delete"](m)})})}else a.g.warn("Cannot find satisfying update for "+e.nc.type+" track with bitrate "+(e.nc.bitrate+". Skipping update."))},rT=function(a,b,c,d){for(var e=[],f={$c:0};f.$c<d.length;f={$c:f.$c},
f.$c++){var g=d[f.$c].tracks.map(function(h){return function(l){var m=d[h.$c],n=uT(a,c,m,l);n=new _.PE(n);var p=null;m.type!==_.pj&&(p=vT(a,b,c,m,l));l.segmentIndex=n;var q=_.hL++,t=Promise.resolve.bind(Promise),v=n.ld.bind(n),z=n.get.bind(n),A=n.Nd.bind(n),D=n.getDuration.bind(n),G=wT[m.type],B="";switch(m.type){case _.Jg:B=l.Ve;var F=/00000001[0-9]7/.exec(B);B="avc1."+(F&&F[0]?B.substr(B.indexOf(F[0])+10,6):"42c00c");a.g.debug("VIDEO CODECS: ",B);break;case _.Pc:B=l.Ve,F=2,"AACH"===l.Kl?F=5:B&&
(F=(parseInt(B.substr(0,2),16)&248)>>3),B="mp4a.40."+F,a.g.debug("AUDIO CODECS: ",B)}F=m.type===_.pj?xT[m.xo]:void 0;return{id:q,originalId:null,xp:null,createSegmentIndex:t,findSegmentPosition:v,getSegmentReference:z,adjustSegmentDurations:A,getDuration:D,segmentIndex:n,segmentLookupStrategy:_.hD,initSegmentReference:p,mimeType:G,codecs:B,frameRate:void 0,bandwidth:l.bitrate,width:l.maxWidth||void 0,height:l.maxHeight||void 0,kind:F,encrypted:a.ng(),keyId:null,language:m.language,originalLanguage:m.yd,
label:m.name,type:m.type,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:l.uh||null,spatialAudio:!1,closedCaptions:null}}}(f));e=e.concat(g)}return e},uT=function(a,b,c,d){var e=0,f=[],g=c.timescale||b;c.Wh.forEach(function(h,l){var m=h.d/g;if(0===l){var n=h.t/g;a.G=Math.min(a.G,n)}else n=f[l-1].endTime;var p=n+m,q=PS(a.o,c,l,d);a.I=Math.max(a.I,m);f.push(new _.zj(l,n,p,function(){return[q]},0,null,0,null,!0,g));a.H.set(q,n);e+=m});if(c.type===_.Jg||c.type===_.Pc)b=f[f.length-
1],a.J=Math.min(a.J,e),0===a.a.se?a.a.se=b.endTime:a.a.se=Math.min(a.a.se,b.endTime);return f},vT=function(a,b,c,d,e){b=RS(b,d.timescale||c,e);c={isLive:a.Vd.bind(a),df:a.ng.bind(a),Tl:function(){return 1},af:a.ai.bind(a)};d=new Uint8Array(0);try{d=eT(b,c)}catch(g){throw a.g.error("Failed to generate initialization segment."),new _.N(_.O,3,4035,g);}var f="data:text/plain;base64,"+_.Mm(d);return new _.LD(function(){return[f]},0,null,null,!0)},sT=function(a,b,c){var d=(c?c.bandwidth:0)+(b?b.bandwidth:
0),e=c?c.language:_.wg;return c||b?{id:a.h++,language:e,primary:!1,audio:c,video:b,bandwidth:d,drmInfos:a.w,allowedByApplication:!0,allowedByKeySystem:!0}:null},nT=function(a,b,c){if(b=b.getAttribute(c))return b;a.g.error("required attribute not provided: "+c);throw new _.N(_.O,4,4038,a.o,c);},yT=function(a,b){null!=a.B&&null!=b&&(a.l=window.setTimeout(a.hc.bind(a),b))},oT=function(a,b){var c=b===kT;a.j&&a.j.presentationTimeline&&_.wE(a.j.presentationTimeline,c);c&&null!=a.l&&(window.clearTimeout(a.l),
a.l=null,a.B=null);a.N=b},zT=function(){};TR.prototype.append=function(a){a=void 0===a?[]:a;for(var b=0;b<a.length;b++)this.children.push(a[b]),a[b].parent=this;return this};TR.prototype.get=function(a){if(this.type===a)return this;for(var b=0;b<this.children.length;b++){if(this.children[b].type===a)return this.children[b];var c=this.children[b].get(a);if(c)return c}return null};
TR.prototype.a=function(){var a=Math.pow(2,32)-1;var b=4+this.type.length;"uuid"===this.type&&(b+=16);if(0<this.children.length)for(var c=0;c<this.children.length;c++)b+=this.children[c].a();this.size>a&&(b+=8);return b};
TR.prototype.write=function(a){var b=Math.pow(2,32)-1;this.start=a.getPosition();this.size=this.a();this.size>b?_.V(a,1):_.V(a,this.size);_.dn(a,SR(this.type));this.size>b&&MR(a,this.size);"uuid"===this.type&&_.dn(a,null);if(0<this.children.length&&!this.w)for(b=0;b<this.children.length;b++)this.children[b].write(a),this.children[b].a(),a.getPosition()};_.w(Z,TR);Z.prototype.a=function(){return 4+TR.prototype.a.call(this)};
Z.prototype.write=function(a){TR.prototype.write.call(this,a);NR(a,this.version);OR(a,this.flags)};_.w(UR,TR);UR.prototype.a=function(){return this.f.byteLength+TR.prototype.a.call(this)-this.offset};UR.prototype.write=function(a){TR.prototype.write.call(this,a);_.dn(a,this.f,this.offset);a.getPosition()};_.w(VR,Z);VR.prototype.a=function(){return this.f.byteLength+Z.prototype.a.call(this)-this.offset};VR.prototype.write=function(a){Z.prototype.write.call(this,a);_.dn(a,this.f,this.offset);a.getPosition()};
_.w(WR,TR);WR.prototype.a=function(){var a=this.h.length;a=a+4+this.f.join("").length;return a+TR.prototype.a.call(this)};WR.prototype.write=function(a){TR.prototype.write.call(this,a);_.dn(a,SR(this.h));_.V(a,this.Di);_.dn(a,SR(this.f.join("")));a.getPosition()};_.w(YR,TR);_.w(ZR,TR);_.w($R,Z);$R.prototype.a=function(){var a=0;a=1===this.version?a+28:a+16;a=a+44+this.f.length;return a+=Z.prototype.a.call(this)};
$R.prototype.write=function(a){Z.prototype.write.call(this,a);1===this.version?(MR(a,0),MR(a,0),_.V(a,this.timescale),MR(a,this.duration*this.timescale)):(_.V(a,0),_.V(a,0),_.V(a,this.timescale),_.V(a,this.duration*this.timescale));_.V(a,65536);PR(a,this.volume);PR(a,0);_.V(a,0);_.V(a,0);for(var b=0;b<this.f.length;b++)NR(a,this.f[b]);_.V(a,0);_.V(a,0);_.V(a,0);_.V(a,0);_.V(a,0);_.V(a,0);_.V(a,this.h);a.getPosition()};_.w(aS,TR);_.w(bS,Z);bS.prototype.a=function(){return 20+Z.prototype.a.call(this)};
bS.prototype.write=function(a){Z.prototype.write.call(this,a);_.V(a,this.f);_.V(a,1);_.V(a,0);_.V(a,0);_.V(a,0);a.getPosition()};_.w(cS,Z);cS.prototype.a=function(){var a=0;a=1===this.version?a+32:a+20;a=a+24+this.f.length;return a+Z.prototype.a.call(this)};
cS.prototype.write=function(a){Z.prototype.write.call(this,a);1===this.version?(MR(a,0),MR(a,0),_.V(a,this.h),_.V(a,0),MR(a,this.duration*this.timescale)):(_.V(a,0),_.V(a,0),_.V(a,this.h),_.V(a,0),_.V(a,this.duration*this.timescale));_.V(a,0);_.V(a,0);PR(a,0);PR(a,0);PR(a,this.volume);PR(a,0);for(var b=0;b<this.f.length;b++)NR(a,this.f[b]);PR(a,this.width);PR(a,0);PR(a,this.height);PR(a,0);a.getPosition()};_.w(dS,Z);dS.prototype.a=function(){var a=0;a=1===this.version?a+28:a+16;return a+4+Z.prototype.a.call(this)};
dS.prototype.write=function(a){Z.prototype.write.call(this,a);1===this.version?(MR(a,0),MR(a,0),_.V(a,this.timescale),MR(a,this.duration*this.timescale)):(_.V(a,0),_.V(a,0),_.V(a,this.timescale),_.V(a,this.duration*this.timescale));PR(a,this.language);PR(a,0);a.getPosition()};_.w(eS,Z);eS.prototype.a=function(){return 33+Z.prototype.a.call(this)};
eS.prototype.write=function(a){Z.prototype.write.call(this,a);_.V(a,0);this.f===_.Jg?_.dn(a,SR("vide")):_.dn(a,SR("soun"));_.V(a,0);_.V(a,0);_.V(a,0);this.f===_.Jg?_.dn(a,SR("VideoHandler\x00")):_.dn(a,SR("SoundHandler\x00"));a.getPosition()};_.w(fS,Z);fS.prototype.a=function(){return 2+this.f.byteLength+Z.prototype.a.call(this)};fS.prototype.write=function(a){Z.prototype.write.call(this,a);PR(a,0);_.dn(a,this.f);a.getPosition()};_.w(gS,TR);gS.prototype.a=function(){return 8+TR.prototype.a.call(this)};
gS.prototype.write=function(a){TR.prototype.write.call(this,a);_.V(a,0);PR(a,0);PR(a,1)};_.w(hS,gS);hS.prototype.a=function(){return 70+gS.prototype.a.call(this)};hS.prototype.write=function(a){gS.prototype.write.call(this,a);PR(a,0);PR(a,0);_.V(a,0);_.V(a,0);_.V(a,0);PR(a,this.width);PR(a,this.height);_.V(a,4718592);_.V(a,4718592);_.V(a,0);PR(a,1);NR(a,10);_.dn(a,SR("AVC Coding",31));PR(a,this.depth);RR(a,-1)};_.w(iS,gS);iS.prototype.a=function(){return 20+gS.prototype.a.call(this)};
iS.prototype.write=function(a){gS.prototype.write.call(this,a);_.V(a,0);_.V(a,0);PR(a,this.channelCount);PR(a,this.sampleSize);RR(a,0);PR(a,0);PR(a,this.sampleRate);PR(a,0)};_.w(jS,hS);jS.prototype.write=function(a){hS.prototype.write.call(this,a);for(var b=0;b<this.children.length;b++)this.children[b].write(a);a.getPosition()};_.w(kS,jS);_.w(lS,iS);lS.prototype.write=function(a){iS.prototype.write.call(this,a);for(var b=0;b<this.children.length;b++)this.children[b].write(a);a.getPosition()};
_.w(mS,lS);_.w(nS,TR);nS.prototype.a=function(){for(var a=7,b=0;b<this.gb.length;b++)a+=2,a+=this.gb[b].byteLength;for(b=0;b<this.gb.length;b++)a+=2,a+=this.tc[b].byteLength;return a+TR.prototype.a.call(this)};
nS.prototype.write=function(a){TR.prototype.write.call(this,a);NR(a,this.version);NR(a,this.f);NR(a,this.h);NR(a,this.level);NR(a,255);NR(a,224|this.gb.length);for(var b=0;b<this.gb.length;b++)PR(a,this.gb[b].length),_.dn(a,this.gb[b]);NR(a,this.tc.length);for(b=0;b<this.tc.length;b++)PR(a,this.tc[b].length),_.dn(a,this.tc[b]);a.getPosition()};_.w(oS,Z);oS.prototype.a=function(){return 22+(this.oc.byteLength+3)+Z.prototype.a.call(this)};
oS.prototype.write=function(a){Z.prototype.write.call(this,a);NR(a,3);NR(a,23+this.oc.byteLength);PR(a,1);NR(a,0);NR(a,4);NR(a,15+this.oc.byteLength);NR(a,64);NR(a,21);OR(a,0);_.V(a,0);_.V(a,0);NR(a,5);NR(a,this.oc.byteLength);_.dn(a,this.oc);_.dn(a,new Uint8Array([6,1,2]));a.getPosition()};_.w(pS,Z);pS.prototype.a=function(){return this.location.length+Z.prototype.a.call(this)};pS.prototype.write=function(a){Z.prototype.write.call(this,a);0<this.location.length&&_.dn(a,SR(this.location));a.getPosition()};
_.w(qS,Z);qS.prototype.a=function(){for(var a=4,b=0;b<this.entries.length;b++)a+=this.entries[b].a();return a+Z.prototype.a.call(this)};qS.prototype.write=function(a){Z.prototype.write.call(this,a);_.V(a,this.entries.length);for(var b=0;b<this.entries.length;b++)this.entries[b].write(a);a.getPosition()};_.w(rS,TR);_.w(sS,Z);sS.prototype.a=function(){for(var a=4,b=0;b<this.entries.length;b++)a+=this.entries[b].a();return a+Z.prototype.a.call(this)};
sS.prototype.write=function(a){Z.prototype.write.call(this,a);_.V(a,this.entries.length);for(var b=0;b<this.entries.length;b++)this.entries[b].write(a);a.getPosition()};_.w(tS,Z);tS.prototype.a=function(){for(var a=4,b=0;b<this.entries.length;b++)a+=this.entries[b].a();return a+Z.prototype.a.call(this)};tS.prototype.write=function(a){Z.prototype.write.call(this,a);_.V(a,this.entries.length);for(var b=0;b<this.entries.length;b++)this.entries[b].write(a);a.getPosition()};_.w(uS,Z);
uS.prototype.a=function(){for(var a=4,b=0;b<this.entries.length;b++)a+=this.entries[b].a();return a+Z.prototype.a.call(this)};uS.prototype.write=function(a){Z.prototype.write.call(this,a);_.V(a,this.entries.length);for(var b=0;b<this.entries.length;b++)this.entries[b].write(a);a.getPosition()};_.w(vS,Z);vS.prototype.a=function(){for(var a=4,b=0;b<this.entries.length;b++)a+=this.entries[b].a();return a+Z.prototype.a.call(this)};
vS.prototype.write=function(a){Z.prototype.write.call(this,a);_.V(a,this.entries.length);for(var b=0;b<this.entries.length;b++)this.entries[b].write(a);a.getPosition()};_.w(wS,Z);wS.prototype.a=function(){return 8+Z.prototype.a.call(this)};wS.prototype.write=function(a){Z.prototype.write.call(this,a);_.V(a,0);_.V(a,0);a.getPosition()};_.w(xS,Z);xS.prototype.a=function(){return 4+Z.prototype.a.call(this)};xS.prototype.write=function(a){Z.prototype.write.call(this,a);RR(a,0);PR(a,0);a.getPosition()};
_.w(yS,TR);_.w(zS,TR);_.w(AS,TR);_.w(BS,Z);BS.prototype.a=function(){var a=0;a=1===this.version?a+8:a+4;return a+Z.prototype.a.call(this)};BS.prototype.write=function(a){Z.prototype.write.call(this,a);1===this.version?MR(a,this.baseMediaDecodeTime):_.V(a,this.baseMediaDecodeTime);a.getPosition()};_.w(CS,Z);CS.prototype.a=function(){return 4+Z.prototype.a.call(this)};CS.prototype.write=function(a){Z.prototype.write.call(this,a);_.V(a,this.f);a.getPosition()};_.w(DS,Z);
DS.prototype.a=function(){var a=4;this.flags&AT&&(a+=4);this.flags&BT&&(a+=4);for(var b=0;b<this.f;b++)this.flags&CT&&(a+=4),this.flags&DT&&(a+=4),this.flags&ET&&(a+=4),this.flags&FT&&(a+=4);return a+Z.prototype.a.call(this)};
DS.prototype.write=function(a){Z.prototype.write.call(this,a);_.V(a,this.f);this.flags&AT&&(a.getPosition(),QR(a,this.j));this.flags&BT&&_.V(a,this.l);for(var b=0;b<this.f;b++)this.flags&CT&&_.V(a,this.o[b]),this.flags&DT&&_.V(a,this.sampleSize[b]),this.flags&ET&&_.V(a,this.A[b]),this.flags&FT&&(0===this.version?_.V(a,this.h[b]):QR(a,this.h[b]));a.getPosition()};var AT=1,BT=4,CT=256,DT=512,ET=1024,FT=2048;_.w(ES,Z);
ES.prototype.a=function(){var a=4;this.flags&GT&&(a+=8);this.flags&HT&&(a+=4);this.flags&IT&&(a+=4);this.flags&JT&&(a+=4);this.flags&KT&&(a+=4);return a+Z.prototype.a.call(this)};ES.prototype.write=function(a){Z.prototype.write.call(this,a);_.V(a,this.f);this.flags&GT&&MR(a,this.h);this.flags&HT&&_.V(a,this.A);this.flags&IT&&_.V(a,this.j);this.flags&JT&&_.V(a,this.o);this.flags&KT&&_.V(a,this.l);a.getPosition()};var GT=1,HT=2,IT=8,JT=16,KT=32;_.w(FS,TR);_.w(GS,TR);_.w(HS,TR);
HS.prototype.a=function(){return this.f.byteLength+TR.prototype.a.call(this)};HS.prototype.write=function(a){TR.prototype.write.call(this,a);0<this.f.byteLength&&_.dn(a,this.f)};_.w(IS,Z);IS.prototype.a=function(){var a=20;1===this.f&&0===this.h&&(a=a+1+this.j.length);return a+Z.prototype.a.call(this)};
IS.prototype.write=function(a){Z.prototype.write.call(this,a);NR(a,0);0===this.version?NR(a,0):NR(a,0);NR(a,this.f);NR(a,this.h);_.dn(a,_.Om(this.l));if(1===this.f&&0===this.h){NR(a,0);for(var b=0;b<this.j.length;b++)NR(a,this.j[b])}a.getPosition()};_.w(JS,Z);JS.prototype.a=function(){var a=8;this.flags&1&&(a+=SR(this.jc).byteLength);return a+Z.prototype.a.call(this)};JS.prototype.write=function(a){Z.prototype.write.call(this,a);_.dn(a,SR(this.f));_.V(a,this.h);this.flags&1&&_.dn(a,SR(this.jc));a.getPosition()};
_.w(KS,TR);KS.prototype.a=function(){return SR(this.f).byteLength+TR.prototype.a.call(this)};KS.prototype.write=function(a){TR.prototype.write.call(this,a);_.dn(a,SR(this.f));a.getPosition()};_.w(LS,Z);LS.prototype.a=function(){var a=0;this.flags&1&&(a+=8);a+=4;for(var b=0;1>b;b++)a=0===this.version?a+4:a+8;return a+Z.prototype.a.call(this)};
LS.prototype.write=function(a){Z.prototype.write.call(this,a);this.flags&1&&(_.V(a,0),_.V(a,0));_.V(a,1);for(var b=0;1>b;b++)0===this.version?_.V(a,this.offset[b]):MR(a,this.offset[b]);a.getPosition()};_.w(MS,Z);MS.prototype.a=function(){var a=0;this.flags&1&&(a+=8);a+=5;0===this.f&&(a+=this.j.length);return a+Z.prototype.a.call(this)};
MS.prototype.write=function(a){Z.prototype.write.call(this,a);this.flags&1&&(_.V(a,0),_.V(a,0));NR(a,this.f);_.V(a,this.h);if(0===this.f)for(var b=0;b<this.h;b++)NR(a,this.j[b]);a.getPosition()};_.w(NS,Z);NS.prototype.a=function(){var a=4;this.flags&1&&(a+=1);for(var b=0;b<this.h;b++)if(a+=this.f[b].ni.byteLength,this.flags&2){a+=2;for(var c=0;c<this.f[b].Ed;c++)a+=2,a+=4}return a+Z.prototype.a.call(this)};
NS.prototype.write=function(a){Z.prototype.write.call(this,a);_.V(a,this.h);this.flags&1&&NR(a,this.j);for(var b=0;b<this.h;b++)if(_.dn(a,this.f[b].ni),this.flags&2){PR(a,this.f[b].Ed);for(var c=0;c<this.f[b].Ed;c++)PR(a,this.f[b].Qg[c].qh),_.V(a,this.f[b].Qg[c].rh)}a.getPosition()};var US=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,VS=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,WS=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,XS=/^(\d*\.?\d*)f$/,YS=/^(\d*\.?\d*)t$/,ZS=/^(?:(\d*\.?\d*)h)?(?:(\d*\.?\d*)m)?(?:(\d*\.?\d*)s)?(?:(\d*\.?\d*)ms)?$/;cT.prototype.get=function(a){for(var b=0;b<this.a.length;b++){var c=this.a[b].get(a);if(c)return c}return null};cT.prototype.write=function(){this.f=bT(this);for(var a=0;a<this.a.length;a++)this.a[a].write(this.f);return this.f.buffer};var fT=new Uint8Array([162,57,79,82,90,155,79,20,162,68,108,66,124,100,141,244]);_.r=lT.prototype;_.r.configure=function(a){this.f=a};_.r.start=function(a,b){var c=this;this.F=b;var d=_.gh(new Set([a,OS(a)])).concat();return mT(this,d).then(function(e){return tT(c,e.data).then(function(){yT(c,c.B);return c.j})})};_.r.requestStop=function(){};_.r.stop=function(){this.F&&this.F.networkingEngine.ye(this.L);this.B=this.A=this.j=this.f=this.F=null;this.l&&(clearTimeout(this.l),this.l=null);this.K=!1;this.J=this.G=Infinity;return Promise.resolve()};
_.r.update=function(){var a=this;if(this.Vd())return mT(this,[this.o]).then(function(b){return tT(a,b.data).then(function(){return a.j})})["catch"](function(b){if(a.F)a.F.onError(b)})};_.r.setCurrentVariant=function(){};_.r.hc=function(){var a=this;this.g.debug(_.ZC);this.F&&(this.l=null,this.update().then(function(){yT(a,a.B)})["catch"](function(b){a.F&&(a.F.onError(b),1===b.severity&&yT(a,100))}))};_.r.Vd=function(){return this.N===pT};_.r.ng=function(){return 0<this.w.length};
_.r.ai=function(a){var b=null;if(this.w.length)for(var c=0;c<this.w.length;c++)if(this.w[c].keySystem===a){b=this.w[c].initData[0];break}return b};
_.r.ho=function(a){if(2!==a.request.type||a.uri.startsWith("data:"))return Promise.resolve(a);var b=a.request.timescale||this.A.timescale,c={isLive:this.Vd.bind(this),df:this.ng.bind(this),Tl:function(){return 1},af:this.ai.bind(this)},d=!1,e=new _.N(_.O,3,4035,null),f=null;try{var g=this.H.get(a.request.uris[a.request.uriIndex])||a.request.startTime||0;g!==a.request.startTime&&this.g.debug("Using base media decode time "+g+" instead of segment reference time "+a.request.startTime);f=hT(a,b,g,c)}catch(h){d=
!0,e.data=h,3E3===h.code&&(e.code=4039)}if(d||!f)return Promise.reject(e);a.data=f;return Promise.resolve(a)};_.r.loadVariant=function(a){return _.H(function(b){return b["return"](a)})};_.r.loadTextStream=function(a,b){var c=this,d,e;return _.H(function(f){(e=c.j.periods.find(function(g){return g.id===b}))&&(d=e.textStreams.find(function(g){return g.id===a})||null);if(!d)throw new _.Zi(_.PC+a);return f["return"](d)})};var wT={video:_.Lg,audio:_.Tc,text:_.Mc},kT=_.Wb,pT="LIVE",xT={Po:_.dd,Wo:_.hg};_.w(zT,_.Bu);zT.prototype.f=function(){_.dv.ism=lT;_.bv[_.Nc]=lT};zT.prototype.a=function(){_.sF("ism");_.tF(_.Nc)};zT.prototype.id=function(){return _.Zf};_.I("clpp.smooth.SmoothComponent",zT);};
if(typeof(module)!="undefined"&&module.exports){var x=require("./cl.core.js");_ = x._;(f.call(g,this));module.exports=g;}
else if (typeof(define)!="undefined"&&define.amd) {define(["./cl.core"], function(c){_=c._;(f.call(g,this));return g;});}
else{_=this.clpp._;(f.call(g,this));}
})();