varClappr=function(){"use strict";functione(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}returnn}functiont(t){for(vari=1;i<arguments.length;i++){varr=null!=arguments[i]?arguments[i]:{};i%2?e(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}returnt}functionn(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functioni(e){return(i="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe})(e)}functionr(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functiona(e,t){for(varn=0;n<t.length;n++){vari=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"ini&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}functiono(e,t,n){returnt&&a(e.prototype,t),n&&a(e,n),e}functions(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functionl(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}returnn}functionu(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}functionc(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}functiond(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){returne.__proto__||Object.getPrototypeOf(e)})(e)}functionh(e,t){return(h=Object.setPrototypeOf||function(e,t){returne.__proto__=t,e})(e,t)}functionf(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}functionp(e,t){return!t||"object"!=typeoft&&"function"!=typeoft?f(e):t}functiong(e){vart=function(){if("undefined"==typeofReflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeofProxy)return!0;try{returnDate.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();returnfunction(){varn,i=d(e);if(t){varr=d(this).constructor;n=Reflect.construct(i,arguments,r)}elsen=i.apply(this,arguments);returnp(this,n)}}functionv(e,t,n){return(v="undefined"!=typeofReflect&&Reflect.get?Reflect.get:function(e,t,n){vari=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););returne}(e,t);if(i){varr=Object.getOwnPropertyDescriptor(i,t);returnr.get?r.get.call(n):r.value}})(e,t,n||e)}functionm(e,t){returnfunction(e){if(Array.isArray(e))returne}(e)||function(e,t){if("undefined"==typeofSymbol||!(Symbol.iteratorinObject(e)))return;varn=[],i=!0,r=!1,a=void0;try{for(varo,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{i||null==s.return||s.return()}finally{if(r)throwa}}returnn}(e,t)||A(e,t)||function(){thrownewTypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functiony(e){returnfunction(e){if(Array.isArray(e))returnb(e)}(e)||function(e){if("undefined"!=typeofSymbol&&Symbol.iteratorinObject(e))returnArray.from(e)}(e)||A(e)||function(){thrownewTypeE
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){vari=Object.prototype.hasOwnProperty,r="~";functiona(){}functiono(e,t,n){this.fn=e,this.context=t,this.once=n||!1}functions(e,t,n,i,a){if("function"!=typeofn)thrownewTypeError("The listener must be a function");vars=newo(n,i||e,a),l=r?r+t:t;returne._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}functionl(e,t){0==--e._eventsCount?e._events=newa:deletee._events[t]}functionu(){this._events=newa,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(newa).__proto__||(r=!1)),u.prototype.eventNames=function(){vare,t,n=[];if(0===this._eventsCount)returnn;for(tine=this._events)i.call(e,t)&&n.push(r?t.slice(1):t);returnObject.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},u.prototype.listeners=function(e){vart=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(vari=0,a=n.length,o=newArray(a);i<a;i++)o[i]=n[i].fn;returno},u.prototype.listenerCount=function(e){vart=r?r+e:e,n=this._events[t];returnn?n.fn?1:n.length:0},u.prototype.emit=function(e,t,n,i,a,o){vars=r?r+e:e;if(!this._events[s])return!1;varl,u,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void0,!0),d){case1:returnc.fn.call(c.context),!0;case2:returnc.fn.call(c.context,t),!0;case3:returnc.fn.call(c.context,t,n),!0;case4:returnc.fn.call(c.context,t,n,i),!0;case5:returnc.fn.call(c.context,t,n,i,a),!0;case6:returnc.fn.call(c.context,t,n,i,a,o),!0}for(u=1,l=newArray(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{varh,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void0,!0),d){case1:c[u].fn.call(c[u].context);break;case2:c[u].fn.call(c[u].context,t);break;case3:c[u].fn.call(c[u].context,t,n);break;case4:c[u].fn.call(c[u].context,t,n,i);break;default:if(!l)for(h=1,l=newArray(d-1);h<d;h++)l[h-1]=arguments[h];c[u].fn.apply(c[u].context,l)}}return!0},u.prototype.on=function(e,t,n){returns(this,e,t,n,!1)},u.prototype.once=function(e,t,n){returns(this,e,t,n,!0)},u.prototype.removeListener=function(e,t,n,i){vara=r?r+e:e;if(!this._events[a])returnthis;if(!t)returnl(this,a),this;varo=this._events[a];if(o.fn)o.fn!==t||i&&!o.once||n&&o.context!==n||l(this,a);else{for(vars=0,u=[],c=o.length;s<c;s++)(o[s].fn!==t||i&&!o[s].once||n&&o[s].context!==n)&&u.push(o[s]);u.length?this._events[a]=1===u.length?u[0]:u:l(this,a)}returnthis},u.prototype.removeAllListeners=function(e){vart;returne?(t=r?r+e:e,this._events[t]&&l(this,t)):(this._events=newa,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u},"./node_modules/url-toolkit/src/url-toolkit.js":
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){vari,r,a,o,s;i=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#.*)?$/,r=/^([^\/?#]*)(.*)$/,a=/(?:\/|^)\.(?=\/)/g,o=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)returne;vari=s.parseURL(e);if(!i)thrownewError("Error trying to parse base URL.");returni.path=s.normalizePath(i.path),s.buildURLFromParts(i)}vara=s.parseURL(t);if(!a)thrownewError("Error trying to parse relative URL.");if(a.scheme)returnn.alwaysNormalize?(a.path=s.normalizePath(a.path),s.buildURLFromParts(a)):t;varo=s.parseURL(e);if(!o)thrownewError("Error trying to parse base URL.");if(!o.netLoc&&o.path&&"/"!==o.path[0]){varl=r.exec(o.path);o.netLoc=l[1],o.path=l[2]}o.netLoc&&!o.path&&(o.path="/");varu={scheme:o.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(u.netLoc=o.netLoc,"/"!==a.path[0]))if(a.path){varc=o.path,d=c.substring(0,c.lastIndexOf("/")+1)+a.path;u.path=s.normalizePath(d)}elseu.path=o.path,a.params||(u.params=o.params,a.query||(u.query=o.query));returnnull===u.path&&(u.path=n.alwaysNormalize?s.normalizePath(a.path):a.path),s.buildURLFromParts(u)},parseURL:function(e){vart=i.exec(e);returnt?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(a,"");e.length!==(e=e.replace(o,"")).length;);returne.split("").reverse().join("")},buildURLFromParts:function(e){returne.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=s},"./node_modules/webworkify-webpack/index.js":
/*! ModuleConcatenation bailout: Cannot concat with ./src/errors.ts because of ./src/hls.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/events.js because of ./src/hls.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/get-self-scope.js because of ./src/hls.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/logger.js because of ./src/hls.ts */function(e,t,n){n.r(t);vari=function(){functione(e,t){this.subtle=e,this.aesIV=t}returne.prototype.decrypt=function(e,t){returnthis.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e)},e}(),r=function(){functione(e,t){this.subtle=e,this.key=t}returne.prototype.expandKey=function(){returnthis.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},e}(),a=function(){functione(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[newUint32Array(256),newUint32Array(256),newUint32Array(256),newUint32Array(256)],this.invSubMix=[newUint32Array(256),newUint32Array(256),newUint32Array(256),newUint32Array(256)],this.sBox=newUint32Array(256),this.invSBox=newUint32Array(256),this.key=newUint32Array(0),this.initTable()}vart=e.prototype;returnt.uint8ArrayToUint32Array_=function(e){for(vart=newDataView(e),n=newUint32Array(4),i=0;i<4;i++)n[i]=t.getUint32(4*i);returnn},t.initTable=function(){vare=this.sBox,t=this.invSBox,n=this.subMix,i=n[0],r=n[1],a=n[2],o=n[3],s=this.invSubMix,l=s[0],u=s[1],c=s[2],d=s[3],h=newUint32Array(256),f=0,p=0,g=0;for(g=0;g<256;g++)h[g]=g<128?g<<1:g<<1^283;for(g=0;g<256;g++){varv=p^p<<1^p<<2^p<<3^p<<4;v=v>>>8^255&v^99,e[f]=v,t[v]=f;varm=h[f],y=h[m],A=h[y],b=257*h[v]^16843008*v;i[f]=b<<24|b>>>8,r[f]=b<<16|b>>>16,a[f]=b<<8|b>>>24,o[f]=b,b=16843009*A^65537*y^257*m^16843008*f,l[v]=b<<24|b>>>8,u[v]=b<<16|b>>>16,c[v]=b<<8|b>>>24,d[v]=b,f?(f=m^h[h[h[A^m]]],p^=h[h[p]]):f=p=1}},t.expandKey=function(e){for(vart=this.uint8ArrayToUint32Array_(e),n=!0,i=0;i<t.length&&n;)n=t[i]===this.key[i],i++;if(!n){this.key=t;varr=this.keySize=t.length;if(4!==r&&6!==r&&8!==r)thrownewError("Invalid aes key size="+r);vara,o,s,l,u=this.ksRows=4*(r+6+1),c=this.keySchedule=newUint32Array(u),d=this.invKeySchedule=newUint32Array(u),h=this.sBox,f=this.rcon,p=this.invSubMix,g=p[0],v=p[1],m=p[2],y=p[3];for(a=0;a<u;a++)a<r?s=c[a]=t[a]:(l=s,a%r==0?(l=h[(l=l<<8|l>>>24)>>>24]<<24|h[l>>>16&255]<<16|h[l>>>8&255]<<8|h[255&l],l^=f[a/r|0]<<24):r>6&&a%r==4&&(l=h[l>>>24]<<24|h[l>>>16&255]<<16|h[l>>>8&255]<<8|h[255&l]),c[a]=s=(c[a-r]^l)>>>0);for(o=0;o<u;o++)a=u-o,l=3&o?c[a]:c[a-4],d[o]=o<4||a<=4?l:g[h[l>>>24]]^v[h[l>>>16&255]]^m[h[l>>>8&255]]^y[h[255&l]],d[o]=d[o]>>>0}},t.networkToHostOrderSwap=function(e){returne<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},t.decrypt=function(e,t,n,i){for(varr,a,o,s,l,u,c,d,h,f,p,g,v,m,y,A,b,E=this.keySize+6,T=this.invKeySchedule,k=this.invSBox,_=this.invSubMix,S=_[0],C=_[1],R=_[2],w=_[3],O=this.uint8ArrayToUint32Array_(n),L=O[0],D=O[1],I=O[2],P=O[3],x=newInt32Array(e),N=newInt32Array(x.length),M=this.networkToHostOrderSwap;t<x.length;){for(h=M(x[t]),f=M(x[t+1]),p=M(x[t+2]),g=M(x[t+3]),l=h^T[0],u=g^T[1],c=p^T[2],d=f^T[3],v=4,m=1;m<E;m++)r=S[l>>>24]^C[u>>16&255]^R[c>>8&255]^w[255&d]^T[v],a=S[u>>>24]^C[c>>16&255]^R[d>>8&255]^w[255&l]^T[v+1],o=S[c>>>24]^C[d>>16&255]^R[l>>8&255]^w[255&u]^T[v+2],s=S[d>>>24]^C[l>>16&255]^R[u>>8&255]^w[255&c]^T[v+3],l=r,u=a,c=o,d=s,v+=4;r=k[l>>>24]<<24^k[u>>16&255]<<16^k[c>>8&255]<<8^k[255&d]^T[v],a=k[u>>>24]<<24^k[c>>16&255]<<16^k[d>>8&255]<<8^k[255&l]^T[v+1],o=k[c>>>24]<<24^k[d>>16&255]<<16^k[l>>8&255]<<8^k[255&u]^T[v+2],s=k[d>>>24]<<24^k[l>>16&255]<<16^k[u>>8&255]<<8^k[255&c]^T[v+3],v+=3,N[t]=M(r^L),N[t+1]=M(s^D),N[t+2]=M(o^I),N[t+3]=M(a^P),L=h,D=f,I=p,P=g,t+=4}returni?(y=N.buffer,A=y.byteLength,(b=A&&newDataView(y).getUint8(A-1))?y.slice(0,A-b):y):N.buffer},t.destroy=function(){this.key=void0,this.keySize=void0,this.ksRows=void0,this.sBox=void0,this.invSBox=void0,this.subMix=void0,this.invSubMix=void0,this.keySchedule=void0,this.invKeySchedule=void0,this.rcon=void0},e}(),o=n("./src/errors.ts"),s=n("./src/utils/logger.js"),l=n("./src/events.js"),u=n("./src/utils/get-self-scope.js"),c=Object(u.getSelfScope)(),d=function(){functione(e,t,n){vari=(void0===n?{}:n).removePKCS7Padding,r=void0===i||i;if(this.logEnabled=!0,this.observer=e,this.config=t,this.removePKCS7Padding=r,r)try{vara=c.crypto;a&&(this.subtle=a.subtle||a.webkitSu
/*! ModuleConcatenation bailout: Cannot concat with ./src/crypt/decrypter.js because of ./src/hls.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/demux/id3.js because of ./src/hls.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/demux/mp4demuxer.js because of ./src/hls.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/errors.ts because of ./src/hls.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/events.js because of ./src/hls.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/polyfills/number.js because of ./src/hls.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/get-self-scope.js because of ./src/hls.ts */
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/logger.js because of ./src/hls.ts */function(e,t,n){n.r(t);vari=n("./src/events.js"),r=n("./src/errors.ts"),a=n("./src/crypt/decrypter.js"),o=n("./src/polyfills/number.js"),s=n("./src/utils/logger.js"),l=n("./src/utils/get-self-scope.js");functionu(e,t){return255===e[t]&&240==(246&e[t+1])}functionc(e,t){return1&e[t+1]?7:9}functiond(e,t){return(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5}functionh(e,t){return!!(t+1<e.length&&u(e,t))}functionf(e,t){if(h(e,t)){varn=c(e,t);if(t+n>=e.length)return!1;vari=d(e,t);if(i<=n)return!1;varr=t+i;if(r===e.length||r+1<e.length&&u(e,r))return!0}return!1}functionp(e,t,n,a,o){if(!e.samplerate){varl=function(e,t,n,a){varo,l,u,c,d,h=navigator.userAgent.toLowerCase(),f=a,p=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];if(o=1+((192&t[n+2])>>>6),!((l=(60&t[n+2])>>>2)>p.length-1))returnc=(1&t[n+2])<<2,c|=(192&t[n+3])>>>6,s.logger.log("manifest codec:"+a+",ADTS data:type:"+o+",sampleingIndex:"+l+"["+p[l]+"Hz],channelConfig:"+c),/firefox/i.test(h)?l>=6?(o=5,d=newArray(4),u=l-3):(o=2,d=newArray(2),u=l):-1!==h.indexOf("android")?(o=2,d=newArray(2),u=l):(o=5,d=newArray(4),a&&(-1!==a.indexOf("mp4a.40.29")||-1!==a.indexOf("mp4a.40.5"))||!a&&l>=6?u=l-3:((a&&-1!==a.indexOf("mp4a.40.2")&&(l>=6&&1===c||/vivaldi/i.test(h))||!a&&1===c)&&(o=2,d=newArray(2)),u=l)),d[0]=o<<3,d[0]|=(14&l)>>1,d[1]|=(1&l)<<7,d[1]|=c<<3,5===o&&(d[1]|=(14&u)>>1,d[2]=(1&u)<<7,d[2]|=8,d[3]=0),{config:d,samplerate:p[l],channelCount:c,codec:"mp4a.40."+o,manifestCodec:f};e.trigger(i.default.ERROR,{type:r.ErrorTypes.MEDIA_ERROR,details:r.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+l})}(t,n,a,o);e.config=l.config,e.samplerate=l.samplerate,e.channelCount=l.channelCount,e.codec=l.codec,e.manifestCodec=l.manifestCodec,s.logger.log("parsed codec:"+e.codec+",rate:"+l.samplerate+",nb channel:"+l.channelCount)}}functiong(e){return9216e4/e}functionv(e,t,n,i,r){vara=function(e,t,n,i,r){vara,o,s=e.length;if(a=c(e,t),o=d(e,t),(o-=a)>0&&t+a+o<=s)return{headerLength:a,frameLength:o,stamp:n+i*r}}(t,n,i,r,g(e.samplerate));if(a){varo=a.stamp,s=a.headerLength,l=a.frameLength,u={unit:t.subarray(n+s,n+s+l),pts:o,dts:o};returne.samples.push(u),{sample:u,length:l+s}}}varm=n("./src/demux/id3.js"),y=function(){functione(e,t,n){this.observer=e,this.config=n,this.remuxer=t}vart=e.prototype;returnt.resetInitSegment=function(e,t,n,i){this._audioTrack={container:"audio/adts",type:"audio",id:0,sequenceNumber:0,isAAC:!0,samples:[],len:0,manifestCodec:t,duration:i,inputTimeScale:9e4}},t.resetTimeStamp=function(){},e.probe=function(e){if(!e)return!1;for(vart=(m.default.getID3Data(e,0)||[]).length,n=e.length;t<n;t++)if(f(e,t))returns.logger.log("ADTS sync word found !"),!0;return!1},t.append=function(e,t,n,i){for(varr=this._audioTrack,a=m.default.getID3Data(e,0)||[],l=m.default.getTimeStamp(a),u=Object(o.isFiniteNumber)(l)?90*l:9e4*t,c=0,d=u,f=e.length,g=a.length,y=[{pts:d,dts:d,data:a}];g<f-1;)if(h(e,g)&&g+5<f){p(r,this.observer,e,g,r.manifestCodec);varA=v(r,e,g,u,c);if(!A){s.logger.log("Unable to parse AAC frame");break}g+=A.length,d=A.sample.pts,c++}elsem.default.isHeader(e,g)?(a=m.default.getID3Data(e,g),y.push({pts:d,dts:d,data:a}),g+=a.length):g++;this.remuxer.remux(r,{samples:[]},{samples:y,inputTimeScale:9e4},{samples:[]},t,n,i)},t.destroy=function(){},e}(),A=n("./src/demux/mp4demuxer.js"),b={BitratesMap:[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],SamplingRateMap:[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],SamplesCoefficients:[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],BytesInSlot:[0,1,1,4],appendFrame:function(e,t,n,i,r){if(!(n+24>t.length)){vara=this.parseHeader(t,n);if(a&&n+a.frameLength<=t.length){varo=i+r*(9e4*a.samplesPerFrame/a.sampleRate),s={unit:t.subarray(n,n+a.frameLength),pts:o,d
/*!*************************************!*\
!***./src/demux/demuxer-worker.js***!
\*************************************/
/*! exports provided: default */
/*! ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./src/demux/demuxer.js (referenced with require.resolve) */function(e,t,n){n.r(t);vari=n(/*! ../demux/demuxer-inline */"./src/demux/demuxer-inline.js"),r=n(/*! ../events */"./src/events.js"),a=n(/*! ../utils/logger */"./src/utils/logger.js"),o=n(/*! eventemitter3 */"./node_modules/eventemitter3/index.js");t.default=function(e){vart=newo.EventEmitter;t.trigger=function(e){for(varn=arguments.length,i=newArray(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t.emit.apply(t,[e,e].concat(i))},t.off=function(e){for(varn=arguments.length,i=newArray(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t.removeListener.apply(t,[e].concat(i))};varn=function(t,n){e.postMessage({event:t,data:n})};e.addEventListener("message",(function(r){varo=r.data;switch(o.cmd){case"init":vars=JSON.parse(o.config);e.demuxer=newi.default(t,o.typeSupported,s,o.vendor),Object(a.enableLogs)(s.debug),n("init",null);break;case"demux":e.demuxer.push(o.data,o.decryptdata,o.initSegment,o.audioCodec,o.videoCodec,o.timeOffset,o.discontinuity,o.trackSwitch,o.contiguous,o.duration,o.accurateTimeOffset,o.defaultInitPTS)}})),t.on(r.default.FRAG_DECRYPTED,n),t.on(r.default.FRAG_PARSING_INIT_SEGMENT,n),t.on(r.default.FRAG_PARSED,n),t.on(r.default.ERROR,n),t.on(r.default.FRAG_PARSING_METADATA,n),t.on(r.default.FRAG_PARSING_USERDATA,n),t.on(r.default.INIT_PTS_FOUND,n),t.on(r.default.FRAG_PARSING_DATA,(function(t,n){vari=[],r={event:t,data:n};n.data1&&(r.data1=n.data1.buffer,i.push(n.data1.buffer),deleten.data1),n.data2&&(r.data2=n.data2.buffer,i.push(n.data2.buffer),deleten.data2),e.postMessage(r,i)}))}},"./src/demux/id3.js":
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/url-toolkit/src/url-toolkit.js (<- Module is not an ECMAScript module) */function(e,t,n){n.r(t),n.d(t,"default",(function(){returnln}));vari={};n.r(i),n.d(i,"newCue",(function(){returnft}));varr,a,o=n("./node_modules/url-toolkit/src/url-toolkit.js"),s=n("./src/errors.ts"),l=n("./src/polyfills/number.js"),u=n("./src/events.js"),c=n("./src/utils/logger.js"),d={hlsEventGeneric:!0,hlsHandlerDestroying:!0,hlsHandlerDestroyed:!0},h=function(){functione(e){this.hls=void0,this.handledEvents=void0,this.useGenericHandler=void0,this.hls=e,this.onEvent=this.onEvent.bind(this);for(vart=arguments.length,n=newArray(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this.handledEvents=n,this.useGenericHandler=!0,this.registerListeners()}vart=e.prototype;returnt.destroy=function(){this.onHandlerDestroying(),this.unregisterListeners(),this.onHandlerDestroyed()},t.onHandlerDestroying=function(){},t.onHandlerDestroyed=function(){},t.isEventHandler=function(){return"object"==typeofthis.handledEvents&&this.handledEvents.length&&"function"==typeofthis.onEvent},t.registerListeners=function(){this.isEventHandler()&&this.handledEvents.forEach((function(e){if(d[e])thrownewError("Forbidden event-name: "+e);this.hls.on(e,this.onEvent)}),this)},t.unregisterListeners=function(){this.isEventHandler()&&this.handledEvents.forEach((function(e){this.hls.off(e,this.onEvent)}),this)},t.onEvent=function(e,t){this.onEventGeneric(e,t)},t.onEventGeneric=function(e,t){try{(function(e,t){varn="on"+e.replace("hls","");if("function"!=typeofthis[n])thrownewError("Event "+e+" has no generic handler in this "+this.constructor.name+" class (tried "+n+")");returnthis[n].bind(this,t)}).call(this,e,t).call()}catch(t){c.logger.error("An internal error happened while handling event "+e+'. Error message: "'+t.message+'". Here is a stacktrace:',t),this.hls.trigger(u.default.ERROR,{type:s.ErrorTypes.OTHER_ERROR,details:s.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:e,err:t})}},e}();!function(e){e.MANIFEST="manifest",e.LEVEL="level",e.AUDIO_TRACK="audioTrack",e.SUBTITLE_TRACK="subtitleTrack"}(r||(r={})),function(e){e.MAIN="main",e.AUDIO="audio",e.SUBTITLE="subtitle"}(a||(a={}));varf=n("./src/demux/mp4demuxer.js");functionp(e,t){for(varn=0;n<t.length;n++){vari=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"ini&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}varg,v=function(){functione(e,t){this._uri=null,this.baseuri=void0,this.reluri=void0,this.method=null,this.key=null,this.iv=null,this.baseuri=e,this.reluri=t}vart,n,i;returnt=e,(n=[{key:"uri",get:function(){return!this._uri&&this.reluri&&(this._uri=Object(o.buildAbsoluteURL)(this.baseuri,this.reluri,{alwaysNormalize:!0})),this._uri}}])&&p(t.prototype,n),i&&p(t,i),e}();functionm(e,t){for(varn=0;n<t.length;n++){vari=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"ini&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}!function(e){e.AUDIO="audio",e.VIDEO="video"}(g||(g={}));vary=function(){functione(){vare;this._url=null,this._byteRange=null,this._decryptdata=null,this._elementaryStreams=((e={})[g.AUDIO]=!1,e[g.VIDEO]=!1,e),this.deltaPTS=0,this.rawProgramDateTime=null,this.programDateTime=null,this.title=null,this.tagList=[],this.cc=void0,this.type=void0,this.relurl=void0,this.baseurl=void0,this.duration=void0,this.start=void0,this.sn=0,this.urlId=0,this.level=0,this.levelkey=void0,this.loader=void0}vart,n,i,r=e.prototype;returnr.setByteRange=function(e,t){varn=e.split("@",2),i=[];1===n.length?i[0]=t?t.byteRangeEndOffset:0:i[0]=parseInt(n[1]),i[1]=parseInt(n[0])+i[0],this._byteRange=i},r.addElementaryStream=function(e){this._elementaryStreams[e]=!0},r.hasElementaryStream=function(e){return!0===this._elementaryStreams[e]},r.createInitializationVector=function(e){for(vart=newUint8Array(16),n=12;n<16;n++)t[n]=e>>8*(15-n)&255;returnt},r.setDecryptDataFromLevelKey=function(e,t){varn=e;return(null==e?void0:e.method)&&e.uri&&!e.iv&&((n=newv(e.baseuri,e.reluri)).method=e.method,n.iv=this.create
/*! exports provided: enableLogs, logger */function(e,t,n){n.r(t),n.d(t,"enableLogs",(function(){returnc})),n.d(t,"logger",(function(){returnd}));vari=n(/*! ./get-self-scope */"./src/utils/get-self-scope.js");functionr(){}vara={trace:r,debug:r,log:r,warn:r,info:r,error:r},o=a;functions(e,t){returnt="["+e+"] > "+t}varl=Object(i.getSelfScope)();functionu(e){vart=l.console[e];returnt?function(){for(varn=arguments.length,i=newArray(n),r=0;r<n;r++)i[r]=arguments[r];i[0]&&(i[0]=s(e,i[0])),t.apply(l.console,i)}:r}varc=function(e){if(l.console&&!0===e||"object"==typeofe){!function(e){for(vart=arguments.length,n=newArray(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];n.forEach((function(t){o[t]=e[t]?e[t].bind(e):u(t)}))}(e,"debug","log","info","warn","error");try{o.log()}catch(e){o=a}}elseo=a},d=o}}).default},un.exports=cn());varhn=ln(dn.exports),fn=Q.now,pn=Q.assign,gn=Q.listContainsIgnoreCase;ue.register("PLAYBACK_FRAGMENT_CHANGED"),ue.register("PLAYBACK_FRAGMENT_PARSING_METADATA");varvn=function(e){!function(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tn(e,t)}(a,e);vart,n,i,r=rn(a);functiona(){vare;Zt(this,a);for(vart=arguments.length,n=newArray(t),i=0;i<t;i++)n[i]=arguments[i];return(e=r.call.apply(r,[this].concat(n))).options.playback=Xt(Xt({},e.options),e.options.playback),e.options.hlsPlayback=Xt(Xt({},e.defaultOptions),e.options.hlsPlayback),e._minDvrSize=void0===e.options.hlsMinimumDvrSize?60:e.options.hlsMinimumDvrSize,e._extrapolatedWindowNumSegments=e.options.playback&&void0!==e.options.playback.extrapolatedWindowNumSegments?e.options.playback.extrapolatedWindowNumSegments:2,e._playbackType=we.VOD,e._lastTimeUpdate={current:0,total:0},e._lastDuration=null,e._playableRegionStartTime=0,e._localStartTimeCorrelation=null,e._localEndTimeCorrelation=null,e._playableRegionDuration=0,e._programDateTime=0,e._durationExcludesAfterLiveSyncPoint=!1,e._segmentTargetDuration=null,e._playlistType=null,e._recoverAttemptsRemaining=e.options.hlsRecoverAttempts||16,e}returnt=a,i=[{key:"HLSJS",get:function(){returnhn}}],(n=[{key:"name",get:function(){return"hls"}},{key:"supportedVersion",get:function(){return{min:"0.4.18"}}},{key:"levels",get:function(){returnthis._levels||[]}},{key:"currentLevel",get:function(){returnnull===this._currentLevel||void0===this._currentLevel?-1:this._currentLevel},set:function(e){this._currentLevel=e,this.trigger(ue.PLAYBACK_LEVEL_SWITCH_START),this.options.playback.hlsUseNextLevel?this._hls.nextLevel=this._currentLevel:this._hls.currentLevel=this._currentLevel}},{key:"isReady",get:function(){returnthis._isReadyState}},{key:"_startTime",get:function(){returnthis._playbackType===we.LIVE&&"EVENT"!==this._playlistType?this._extrapolatedStartTime:this._playableRegionStartTime}},{key:"_now",get:function(){returnfn()}},{key:"_extrapolatedStartTime",get:function(){if(!this._localStartTimeCorrelation)returnthis._playableRegionStartTime;vare=this._localStartTimeCorrelation,t=this._now-e.local,n=(e.remote+t)/1e3;returnMath.min(n,this._playableRegionStartTime+this._extrapolatedWindowDuration)}},{key:"_extrapolatedEndTime",get:function(){vare=this._playableRegionStartTime+this._playableRegionDuration;if(!this._localEndTimeCorrelation)returne;vart=this._localEndTimeCorrelation,n=this._now-t.local,i=(t.remote+n)/1e3;returnMath.max(e-this._extrapolatedWindowDuration,Math.min(i,e))}},{key:"_duration",get:function(){returnthis._extrapolatedEndTime-this._startTime}},{key:"_extrapolatedWindowDuration",get:function(){returnnull===this._segmentTargetDuration?0:this._extrapolatedWindowNumSegments*this._segmentTargetDuration}},{key:"bandwidthEstimate",get:function(){returnthis._hls&&this._hls.bandwidthEstimate}},{key:"defaultOptions",get:function(){return{preload:!0}}},{key:"customListeners",get:function(){returnthis.options.hlsPlayback&&this.options.hlsPlayback.customListeners||[]}},{key:"_setup",value:function(){vare=this;