23 lines
372 KiB
JavaScript
23 lines
372 KiB
JavaScript
|
import{q as we,c as Z,A as be,x as je,u as G,i as ue,d as xe,y as pe,z as me,a as K,e as z,t as J,r as ye,B as ae,n as Se,s as Xe,v as mt,o as yt,w as Q,T as at,F as Ce,G as Fe,h as Y,p as Ve,g as He,D as Et,a5 as It,aP as Ct,aQ as Tt,I as fe,S as Je,aR as ut,C as wt,b as xt,N as ee,a4 as st,W as St,E as bt,a9 as Ot,aS as Pt,U as Ft,ax as De,R as Ge,ay as dt,a8 as ct,aT as Mt,aU as Nt,aV as Bt,ap as Ut,aW as Gt,an as jt,ao as Kt,V as Vt,ai as Ht,ad as Wt,aB as Yt,at as qt,as as zt,aF as Xt,X as $t,Y as Qt,aa as Zt,aO as Jt,a0 as er,_ as tr}from"./index-4dcc0234.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{_ as rr}from"./index.vue_vue_type_script_setup_true_lang-9285296e.js";import{q as ir,r as nr,s as ar,t as sr,u as or,v as lr,w as ur,x as dr,y as cr}from"./sys-8ead7f22.js";var hr=Object.defineProperty,fr=Object.defineProperties,gr=Object.getOwnPropertyDescriptors,ht=Object.getOwnPropertySymbols,vr=Object.prototype.hasOwnProperty,pr=Object.prototype.propertyIsEnumerable,ft=(N,w,h)=>w in N?hr(N,w,{enumerable:!0,configurable:!0,writable:!0,value:h}):N[w]=h,ot=(N,w)=>{for(var h in w||(w={}))vr.call(w,h)&&ft(N,h,w[h]);if(ht)for(var h of ht(w))pr.call(w,h)&&ft(N,h,w[h]);return N},lt=(N,w)=>fr(N,gr(w));function gt(N,w,h,R){var T,A=!1,k=0;function I(){T&&clearTimeout(T)}function D(){for(var o=arguments.length,L=new Array(o),m=0;m<o;m++)L[m]=arguments[m];var f=this,S=Date.now()-k;function E(){k=Date.now(),h.apply(f,L)}function c(){T=void 0}A||(R&&!T&&E(),I(),R===void 0&&S>N?E():w!==!0&&(T=setTimeout(R?c:E,R===void 0?N-S:N)))}return typeof w!="boolean"&&(R=h,h=w,w=void 0),D.cancel=function(){I(),A=!0},D}function vt(N,w,h){return h===void 0?gt(N,w,!1):gt(N,h,w!==!1)}function mr(N){return N&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")?N.default:N}var Lt={exports:{}};typeof window<"u"&&(Lt.exports=function(N){var w={};function h(R){if(w[R])return w[R].exports;var T=w[R]={i:R,l:!1,exports:{}};return N[R].call(T.exports,T,T.exports,h),T.l=!0,T.exports}return h.m=N,h.c=w,h.d=function(R,T,A){h.o(R,T)||Object.defineProperty(R,T,{enumerable:!0,get:A})},h.r=function(R){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(R,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(R,"__esModule",{value:!0})},h.t=function(R,T){if(1&T&&(R=h(R)),8&T||4&T&&typeof R=="object"&&R&&R.__esModule)return R;var A=Object.create(null);if(h.r(A),Object.defineProperty(A,"default",{enumerable:!0,value:R}),2&T&&typeof R!="string")for(var k in R)h.d(A,k,function(I){return R[I]}.bind(null,k));return A},h.n=function(R){var T=R&&R.__esModule?function(){return R.default}:function(){return R};return h.d(T,"a",T),T},h.o=function(R,T){return Object.prototype.hasOwnProperty.call(R,T)},h.p="/dist/",h(h.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(N,w,h){var R=Object.prototype.hasOwnProperty,T="~";function A(){}function k(L,m,f){this.fn=L,this.context=m,this.once=f||!1}function I(L,m,f,S,E){if(typeof f!="function")throw new TypeError("The listener must be a function");var c=new k(f,S||L,E),e=T?T+m:m;return L._events[e]?L._events[e].fn?L._events[e]=[L._events[e],c]:L._events[e].push(c):(L._events[e]=c,L._eventsCount++),L}function D(L,m){--L._eventsCount==0?L._events=new A:delete L._events[m]}function o(){this._events=new A,this._eventsCount=0}Object.create&&(A.prototype=Object.create(null),new A().__proto__||(T=!1)),o.prototype.eventNames=function(){var L,m,f=[];if(this
|
||
|
`}),S=S+"new (("+R.toString().replace("ENTRY_MODULE",JSON.stringify(o))+")({"+f.main.map(function(a){return JSON.stringify(a)+": "+m.main[a].toString()}).join(",")+"}))(self);";var E=new window.Blob([S],{type:"text/javascript"});if(L.bare)return E;var c=(window.URL||window.webkitURL||window.mozURL||window.msURL).createObjectURL(E),e=new window.Worker(c);return e.objectURL=c,e}},"./src/config.ts":function(N,w,h){h.r(w),h.d(w,"hlsDefaultConfig",function(){return d}),h.d(w,"mergeConfig",function(){return p}),h.d(w,"enableStreamingMode",function(){return g});var R=h("./src/controller/abr-controller.ts"),T=h("./src/controller/audio-stream-controller.ts"),A=h("./src/controller/audio-track-controller.ts"),k=h("./src/controller/subtitle-stream-controller.ts"),I=h("./src/controller/subtitle-track-controller.ts"),D=h("./src/controller/buffer-controller.ts"),o=h("./src/controller/timeline-controller.ts"),L=h("./src/controller/cap-level-controller.ts"),m=h("./src/controller/fps-controller.ts"),f=h("./src/controller/eme-controller.ts"),S=h("./src/utils/xhr-loader.ts"),E=h("./src/utils/fetch-loader.ts"),c=h("./src/utils/cues.ts"),e=h("./src/utils/mediakeys-helper.ts"),a=h("./src/utils/logger.ts");function t(){return(t=Object.assign||function(v){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(v[u]=i[u])}return v}).apply(this,arguments)}function s(v,r){var i=Object.keys(v);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(v);r&&(u=u.filter(function(y){return Object.getOwnPropertyDescriptor(v,y).enumerable})),i.push.apply(i,u)}return i}function l(v){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?s(Object(i),!0).forEach(function(u){n(v,u,i[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach(function(u){Object.defineProperty(v,u,Object.getOwnPropertyDescriptor(i,u))})}return v}function n(v,r,i){return r in v?Object.defineProperty(v,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):v[r]=i,v}var d=l(l({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,maxBufferSize:6e7,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:S.default,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:R.default,bufferController:D.default,capLevelController:L.default,fpsController:m.default,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystemOptions:{},requestMediaKeySystemAccessFunc:e.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0},{cueHandler:c.default,enableCEA708Captions:!0,enableWebVTT:!0,enableIMSC1:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",
|
||
|
Current BW estimate: `+(Object(R.isFiniteNumber)(F)?(F/1024).toFixed(3):"Unknown")+` Kb/s
|
||
|
Estimated load time for current fragment: `+_.toFixed(3)+` s
|
||
|
Estimated load time for the next fragment: `+P.toFixed(3)+` s
|
||
|
Time to underbuffer: `+C.toFixed(3)+" s"),t.nextLoadLevel=O,this.bwEstimator.sample(g,d.loaded),this.clearTimer(),e.loader&&(this.fragCurrent=this.partCurrent=null,e.loader.abort()),t.trigger(A.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:e,part:a,stats:d})}}}}}},c.onFragLoaded=function(e,a){var t=a.frag,s=a.part;if(t.type===D.PlaylistLevelType.MAIN&&Object(R.isFiniteNumber)(t.sn)){var l=s?s.stats:t.stats,n=s?s.duration:t.duration;if(this.clearTimer(),this.lastLoadedFragLevel=t.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var d=this.hls.levels[t.level],p=(d.loaded?d.loaded.bytes:0)+l.loaded,g=(d.loaded?d.loaded.duration:0)+n;d.loaded={bytes:p,duration:g},d.realBitrate=Math.round(8*p/g)}if(t.bitrateTest){var v={stats:l,frag:t,part:s,id:t.type};this.onFragBuffered(A.Events.FRAG_BUFFERED,v),t.bitrateTest=!1}}},c.onFragBuffered=function(e,a){var t=a.frag,s=a.part,l=s?s.stats:t.stats;if(!l.aborted&&t.type===D.PlaylistLevelType.MAIN&&t.sn!=="initSegment"){var n=l.parsing.end-l.loading.start;this.bwEstimator.sample(n,l.loaded),l.bwEstimate=this.bwEstimator.getEstimate(),t.bitrateTest?this.bitrateTestDelay=n/1e3:this.bitrateTestDelay=0}},c.onError=function(e,a){switch(a.details){case I.ErrorDetails.FRAG_LOAD_ERROR:case I.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer()}},c.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},c.getNextABRAutoLevel=function(){var e=this.fragCurrent,a=this.partCurrent,t=this.hls,s=t.maxAutoLevel,l=t.config,n=t.minAutoLevel,d=t.media,p=a?a.duration:e?e.duration:0,g=d?d.currentTime:0,v=d&&d.playbackRate!==0?Math.abs(d.playbackRate):1,r=this.bwEstimator?this.bwEstimator.getEstimate():l.abrEwmaDefaultEstimate,i=(k.BufferHelper.bufferInfo(d,g,l.maxBufferHole).end-g)/v,u=this.findBestLevel(r,n,s,i,l.abrBandWidthFactor,l.abrBandWidthUpFactor);if(u>=0)return u;o.logger.trace((i?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var y=p?Math.min(p,l.maxStarvationDelay):l.maxStarvationDelay,b=l.abrBandWidthFactor,_=l.abrBandWidthUpFactor;if(!i){var x=this.bitrateTestDelay;x&&(y=(p?Math.min(p,l.maxLoadingDelay):l.maxLoadingDelay)-x,o.logger.trace("bitrate test took "+Math.round(1e3*x)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*y)+" ms"),b=_=1)}return u=this.findBestLevel(r,n,s,i+y,b,_),Math.max(u,0)},c.findBestLevel=function(e,a,t,s,l,n){for(var d,p=this.fragCurrent,g=this.partCurrent,v=this.lastLoadedFragLevel,r=this.hls.levels,i=r[v],u=!(i==null||(d=i.details)===null||d===void 0||!d.live),y=i==null?void 0:i.codecSet,b=g?g.duration:p?p.duration:0,_=t;_>=a;_--){var x=r[_];if(x&&(!y||x.codecSet===y)){var C=x.details,O=(g?C==null?void 0:C.partTarget:C==null?void 0:C.averagetargetduration)||b,P=void 0;P=_<=v?l*e:n*e;var F=r[_].maxBitrate,M=F*O/P;if(o.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+_+"/"+Math.round(P)+"/"+F+"/"+O+"/"+s+"/"+M),P>F&&(!M||u&&!this.bitrateTestDelay||M<s))return _}}return-1},S=f,(E=[{key:"nextAutoLevel",get:function(){var e=this._nextAutoLevel,a=this.bwEstimator;if(!(e===-1||a&&a.canEstimate()))return e;var t=this.getNextABRAutoLevel();return e!==-1&&(t=Math.min(e,t)),t},set:function(e){this._nextAutoLevel=e}}])&&L(S.prototype,E),f}();w.default=m},"./src/controller/audio-stream-controller.ts":function(N,w,h){h.r(w);var R=h("./src/polyfills/number.ts"),T=h("./src/controller/base-stream-controller.ts"),A=h("./src/events.ts"),k=h("./src/utils/buffer-helper.ts"),I=h("./src/controller/fragment-tracker.ts"),D=h("./src/types/level.ts"),o=h("./src/types/loader.ts"),L=h("./src/loader/fragment.ts"),m=h("./src/demux/chunk-cache.ts"),f=h("./src/demux/transmuxer-interface.ts"),S=h("./src/types/transmuxer.ts"),E=h("./src/controller/fragment-finders.ts"),c=h("./src/utils/discontinuities.ts"),e=h("./src/errors.ts"),a=h("./src/utils/logger.ts");function t(){return(t=Object.assign||function(n){for(var d=1;d<arguments.length;d++){var p=arguments[d];for(var g in p)Object.prototype.hasOwnProperty.call(p,g)&&(n[g]=p[g])}return n}).apply(this,arguments)}function s(n,d){return(s=Obje
|
||
|
discontinuity: `+b+`
|
||
|
trackSwitch: `+_+`
|
||
|
contiguous: `+O+`
|
||
|
accurateTimeOffset: `+n+`
|
||
|
timeOffset: `+i);var M=new A.TransmuxConfig(e,a,c,l,p);this.configureTransmuxer(M)}if(this.frag=t,this.part=s,r)r.postMessage({cmd:"demux",data:E,decryptdata:u,chunkMeta:d,state:F},E instanceof ArrayBuffer?[E]:[]);else if(v){var B=v.push(E,u,d,F);Object(A.isPromise)(B)?B.then(function(U){g.handleTransmuxComplete(U)}):this.handleTransmuxComplete(B)}},S.flush=function(E){var c=this;E.transmuxing.start=self.performance.now();var e=this.transmuxer,a=this.worker;if(a)a.postMessage({cmd:"flush",chunkMeta:E});else if(e){var t=e.flush(E);Object(A.isPromise)(t)?t.then(function(s){c.handleFlushResult(s,E)}):this.handleFlushResult(t,E)}},S.handleFlushResult=function(E,c){var e=this;E.forEach(function(a){e.handleTransmuxComplete(a)}),this.onFlush(c)},S.onWorkerMessage=function(E){var c=E.data,e=this.hls;switch(c.event){case"init":self.URL.revokeObjectURL(this.worker.objectURL);break;case"transmuxComplete":this.handleTransmuxComplete(c.data);break;case"flush":this.onFlush(c.data);break;default:c.data=c.data||{},c.data.frag=this.frag,c.data.id=this.id,e.trigger(c.event,c.data)}},S.configureTransmuxer=function(E){var c=this.worker,e=this.transmuxer;c?c.postMessage({cmd:"configure",config:E}):e&&e.configure(E)},S.handleTransmuxComplete=function(E){E.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(E)},f}()},"./src/demux/transmuxer-worker.ts":function(N,w,h){h.r(w),h.d(w,"default",function(){return I});var R=h("./src/demux/transmuxer.ts"),T=h("./src/events.ts"),A=h("./src/utils/logger.ts"),k=h("./node_modules/eventemitter3/index.js");function I(m){var f=new k.EventEmitter,S=function(E,c){m.postMessage({event:E,data:c})};f.on(T.Events.FRAG_DECRYPTED,S),f.on(T.Events.ERROR,S),m.addEventListener("message",function(E){var c=E.data;switch(c.cmd){case"init":var e=JSON.parse(c.config);m.transmuxer=new R.default(f,c.typeSupported,e,c.vendor,c.id),Object(A.enableLogs)(e.debug),S("init",null);break;case"configure":m.transmuxer.configure(c.config);break;case"demux":var a=m.transmuxer.push(c.data,c.decryptdata,c.chunkMeta,c.state);Object(R.isPromise)(a)?a.then(function(l){D(m,l)}):D(m,a);break;case"flush":var t=c.chunkMeta,s=m.transmuxer.flush(t);Object(R.isPromise)(s)?s.then(function(l){L(m,l,t)}):L(m,s,t)}})}function D(m,f){if((S=f.remuxResult).audio||S.video||S.text||S.id3||S.initSegment){var S,E=[],c=f.remuxResult,e=c.audio,a=c.video;e&&o(E,e),a&&o(E,a),m.postMessage({event:"transmuxComplete",data:f},E)}}function o(m,f){f.data1&&m.push(f.data1.buffer),f.data2&&m.push(f.data2.buffer)}function L(m,f,S){f.forEach(function(E){D(m,E)}),m.postMessage({event:"flush",data:S})}},"./src/demux/transmuxer.ts":function(N,w,h){h.r(w),h.d(w,"default",function(){return t}),h.d(w,"isPromise",function(){return l}),h.d(w,"TransmuxConfig",function(){return n}),h.d(w,"TransmuxState",function(){return d});var R,T=h("./src/events.ts"),A=h("./src/errors.ts"),k=h("./src/crypt/decrypter.ts"),I=h("./src/demux/aacdemuxer.ts"),D=h("./src/demux/mp4demuxer.ts"),o=h("./src/demux/tsdemuxer.ts"),L=h("./src/demux/mp3demuxer.ts"),m=h("./src/remux/mp4-remuxer.ts"),f=h("./src/remux/passthrough-remuxer.ts"),S=h("./src/demux/chunk-cache.ts"),E=h("./src/utils/mp4-tools.ts"),c=h("./src/utils/logger.ts");try{R=self.performance.now.bind(self.performance)}catch{c.logger.debug("Unable to use Performance API on this environment"),R=self.Date.now}var e=[{demux:o.default,remux:m.default},{demux:D.default,remux:f.default},{demux:I.default,remux:m.default},{demux:L.default,remux:m.default}],a=1024;e.forEach(function(p){var g=p.demux;a=Math.max(a,g.minProbeByteLength)});var t=function(){function p(v,r,i,u,y){this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.cache=new S.default,this.observer=v,this.typeSupported=r,this.config=i,this.vendor=u,this.id=y}var g=p.prototype;return g.configure=function(v){this.transmuxConfig=v,this.decrypter&&this.decr
|
||
|
`)),y},r.getTextAndFormat=function(){return this.rows},v}(),n=function(){function v(i,u,y){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=i,this.outputFilter=u,this.mode=null,this.verbose=0,this.displayedMemory=new l(y),this.nonDisplayedMemory=new l(y),this.lastOutputScreen=new l(y),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=y}var r=v.prototype;return r.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},r.getHandler=function(){return this.outputFilter},r.setHandler=function(i){this.outputFilter=i},r.setPAC=function(i){this.writeScreen.setPAC(i)},r.setBkgData=function(i){this.writeScreen.setBkgData(i)},r.setMode=function(i){i!==this.mode&&(this.mode=i,this.logger.log(R.INFO,"MODE="+i),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=i)},r.insertChars=function(i){for(var u=0;u<i.length;u++)this.writeScreen.insertChar(i[u]);var y=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(R.INFO,y+": "+this.writeScreen.getDisplayText(!0)),this.mode!=="MODE_PAINT-ON"&&this.mode!=="MODE_ROLL-UP"||(this.logger.log(R.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},r.ccRCL=function(){this.logger.log(R.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},r.ccBS=function(){this.logger.log(R.INFO,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},r.ccAOF=function(){},r.ccAON=function(){},r.ccDER=function(){this.logger.log(R.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},r.ccRU=function(i){this.logger.log(R.INFO,"RU("+i+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(i)},r.ccFON=function(){this.logger.log(R.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},r.ccRDC=function(){this.logger.log(R.INFO,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},r.ccTR=function(){this.logger.log(R.INFO,"TR"),this.setMode("MODE_TEXT")},r.ccRTD=function(){this.logger.log(R.INFO,"RTD"),this.setMode("MODE_TEXT")},r.ccEDM=function(){this.logger.log(R.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},r.ccCR=function(){this.logger.log(R.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},r.ccENM=function(){this.logger.log(R.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},r.ccEOC=function(){if(this.logger.log(R.INFO,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var i=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=i,this.writeScreen=this.nonDisplayedMemory,this.logger.log(R.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},r.ccTO=function(i){this.logger.log(R.INFO,"TO("+i+") - Tab Offset"),this.writeScreen.moveCursor(i)},r.ccMIDROW=function(i){var u={flash:!1};if(u.underline=i%2==1,u.italics=i>=46,u.italics)u.foreground="white";else{var y=Math.floor(i/2)-16;u.foreground=["white","green","blue","cyan","red","yellow","magenta"][y]}this.logger.log(R.INFO,"MIDROW: "+JSON.stringify(u)),this.writeScreen.setPen(u)},r.outputDataUpdate=function(i){i===void 0&&(i=!1);var u=this.logger.time;u!==null&&this.outputFilter&&(this.cueStartTime!==null||this.displayedMemory.isEmpty()?
|
||
|
`:(r=g.childNodes)!==null&&r!==void 0&&r.length?a(g,d):d?p+g.textContent.trim().replace(/\s+/g," "):p+g.textContent},"")}function t(n,d,p){return n.hasAttributeNS(d,p)?n.getAttributeNS(d,p):null}function s(n){return new Error("Could not parse ttml timestamp "+n)}function l(n,d){if(!n)return null;var p=Object(T.parseTimeStamp)(n);return p===null&&(m.test(n)?p=function(g,v){var r=m.exec(g),i=(0|r[4])+(0|r[5])/v.subFrameRate;return 3600*(0|r[1])+60*(0|r[2])+(0|r[3])+i/v.frameRate}(n,d):f.test(n)&&(p=function(g,v){var r=f.exec(g),i=Number(r[1]);switch(r[2]){case"h":return 3600*i;case"m":return 60*i;case"ms":return 1e3*i;case"f":return i/v.frameRate;case"t":return i/v.tickRate}return i}(n,d))),p}},"./src/utils/logger.ts":function(N,w,h){h.r(w),h.d(w,"enableLogs",function(){return I}),h.d(w,"logger",function(){return D});var R=function(){},T={trace:R,debug:R,log:R,warn:R,info:R,error:R},A=T;function k(o){var L=self.console[o];return L?L.bind(self.console,"["+o+"] >"):R}function I(o){if(self.console&&o===!0||typeof o=="object"){(function(L){for(var m=arguments.length,f=new Array(m>1?m-1:0),S=1;S<m;S++)f[S-1]=arguments[S];f.forEach(function(E){A[E]=L[E]?L[E].bind(L):k(E)})})(o,"debug","log","info","warn","error");try{A.log()}catch{A=T}}else A=T}var D=T},"./src/utils/mediakeys-helper.ts":function(N,w,h){var R,T;h.r(w),h.d(w,"KeySystems",function(){return R}),h.d(w,"requestMediaKeySystemAccess",function(){return A}),(T=R||(R={})).WIDEVINE="com.widevine.alpha",T.PLAYREADY="com.microsoft.playready";var A=typeof self<"u"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null},"./src/utils/mediasource-helper.ts":function(N,w,h){function R(){return self.MediaSource||self.WebKitMediaSource}h.r(w),h.d(w,"getMediaSource",function(){return R})},"./src/utils/mp4-tools.ts":function(N,w,h){h.r(w),h.d(w,"bin2str",function(){return I}),h.d(w,"readUint16",function(){return D}),h.d(w,"readUint32",function(){return o}),h.d(w,"writeUint32",function(){return L}),h.d(w,"findBox",function(){return m}),h.d(w,"parseSegmentIndex",function(){return f}),h.d(w,"parseInitSegment",function(){return S}),h.d(w,"getStartDTS",function(){return E}),h.d(w,"getDuration",function(){return c}),h.d(w,"computeRawDurationFromSamples",function(){return e}),h.d(w,"offsetStartDTS",function(){return a}),h.d(w,"segmentValidRange",function(){return t}),h.d(w,"appendUint8Array",function(){return s});var R=h("./src/utils/typed-array.ts"),T=h("./src/loader/fragment.ts"),A=Math.pow(2,32)-1,k=[].push;function I(l){return String.fromCharCode.apply(null,l)}function D(l,n){"data"in l&&(n+=l.start,l=l.data);var d=l[n]<<8|l[n+1];return d<0?65536+d:d}function o(l,n){"data"in l&&(n+=l.start,l=l.data);var d=l[n]<<24|l[n+1]<<16|l[n+2]<<8|l[n+3];return d<0?4294967296+d:d}function L(l,n,d){"data"in l&&(n+=l.start,l=l.data),l[n]=d>>24,l[n+1]=d>>16&255,l[n+2]=d>>8&255,l[n+3]=255&d}function m(l,n){var d,p,g,v=[];if(!n.length)return v;"data"in l?(d=l.data,p=l.start,g=l.end):(p=0,g=(d=l).byteLength);for(var r=p;r<g;){var i=o(d,r),u=i>1?r+i:g;if(I(d.subarray(r+4,r+8))===n[0])if(n.length===1)v.push({data:d,start:r+8,end:u});else{var y=m({data:d,start:r+8,end:u},n.slice(1));y.length&&k.apply(v,y)}r=u}return v}function f(l){var n=m(l,["moov"])[0],d=n?n.end:null,p=m(l,["sidx"]);if(!p||!p[0])return null;var g=[],v=p[0],r=v.data[0],i=r===0?8:16,u=o(v,i);i+=4,i+=r===0?8:16,i+=2;var y=v.end+0,b=D(v,i);i+=2;for(var _=0;_<b;_++){var x=i,C=o(v,x);x+=4;var O=2147483647&C;if((2147483648&C)>>>31==1)return console.warn("SIDX has hierarchical references (not supported)"),null;var P=o(v,x);x+=4,g.push({referenceSize:O,subsegmentDuration:P,info:{duration:P/u,start:y,end:y+O-1}}),y+=O,i=x+=4}return{earliestPresentationTime:0,timescale:u,version:r,referencesCount:b,references:g,moovEndOffset:d}}function S(l){for(var n=[],d=m(l,["moov","trak"]),p=0;p<d.length;p++){var g=d[p],v=m(g,["tkhd"])[0];if(v){var r=v.data[v.start],i=r===0?12:20,u=o(v,i),y=m(g,["mdia","mdhd"])[0];if(y){var b=o(y,i=(r=y.data[y.start])===0?12:20),_=m(g,["mdia","hdlr"])[0];if
|
||
|
`)}var f=function(){function S(){this.state="INITIAL",this.buffer="",this.decoder=new T,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}var E=S.prototype;return E.parse=function(c){var e=this;function a(){var d=e.buffer,p=0;for(d=m(d);p<d.length&&d[p]!=="\r"&&d[p]!==`
|
||
|
`;)++p;var g=d.substr(0,p);return d[p]==="\r"&&++p,d[p]===`
|
||
|
`&&++p,e.buffer=d.substr(p),g}c&&(e.buffer+=e.decoder.decode(c,{stream:!0}));try{var t="";if(e.state==="INITIAL"){if(!/\r\n|\n/.test(e.buffer))return this;var s=(t=a()).match(/^()?WEBVTT([ \t].*)?$/);if(!s||!s[0])throw new Error("Malformed WebVTT signature.");e.state="HEADER"}for(var l=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(l?l=!1:t=a(),e.state){case"HEADER":/:/.test(t)?I(t,function(d,p){},/:/):t||(e.state="ID");continue;case"NOTE":t||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(t)){e.state="NOTE";break}if(!t)continue;if(e.cue=new R.default(0,0,""),e.state="CUE",t.indexOf("-->")===-1){e.cue.id=t;continue}case"CUE":if(!e.cue){e.state="BADCUE";continue}try{L(t,e.cue,e.regionList)}catch{e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var n=t.indexOf("-->")!==-1;if(!t||n&&(l=!0)){e.oncue&&e.cue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}if(e.cue===null)continue;e.cue.text&&(e.cue.text+=`
|
||
|
`),e.cue.text+=t;continue;case"BADCUE":t||(e.state="ID")}}}catch{e.state==="CUETEXT"&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state=e.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},E.flush=function(){var c=this;try{if((c.cue||c.state==="HEADER")&&(c.buffer+=`
|
||
|
|
||
|
`,c.parse()),c.state==="INITIAL"||c.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(e){c.onparsingerror&&c.onparsingerror(e)}return c.onflush&&c.onflush(),this},S}()},"./src/utils/webvtt-parser.ts":function(N,w,h){h.r(w),h.d(w,"generateCueId",function(){return m}),h.d(w,"parseWebVTT",function(){return f});var R=h("./src/polyfills/number.ts"),T=h("./src/utils/vttparser.ts"),A=h("./src/demux/id3.ts"),k=h("./src/utils/timescale-conversion.ts"),I=h("./src/remux/mp4-remuxer.ts"),D=/\r\n|\n\r|\n|\r/g,o=function(S,E,c){return c===void 0&&(c=0),S.substr(c,E.length)===E},L=function(S){for(var E=5381,c=S.length;c;)E=33*E^S.charCodeAt(--c);return(E>>>0).toString()};function m(S,E,c){return L(S.toString())+L(E.toString())+L(c)}function f(S,E,c,e,a,t,s,l){var n,d=new T.VTTParser,p=Object(A.utf8ArrayToStr)(new Uint8Array(S)).trim().replace(D,`
|
||
|
`).split(`
|
||
|
`),g=[],v=Object(k.toMpegTsClockFromTimescale)(E,c),r="00:00.000",i=0,u=0,y=!0,b=!1;d.oncue=function(_){var x=e[a],C=e.ccOffset,O=(i-v)/9e4;if(x!=null&&x.new&&(u!==void 0?C=e.ccOffset=x.start:function(B,U,j){var V=B[U],W=B[V.prevCC];if(!W||!W.new&&V.new)return B.ccOffset=B.presentationOffset=V.start,void(V.new=!1);for(;(X=W)!==null&&X!==void 0&&X.new;){var X;B.ccOffset+=V.start-W.start,V.new=!1,W=B[(V=W).prevCC]}B.presentationOffset=j}(e,a,O)),O&&(C=O-e.presentationOffset),b){var P=_.endTime-_.startTime,F=Object(I.normalizePts)(9e4*(_.startTime+C-u),9e4*t)/9e4;_.startTime=F,_.endTime=F+P}var M=_.text.trim();_.text=decodeURIComponent(encodeURIComponent(M)),_.id||(_.id=m(_.startTime,_.endTime,M)),_.endTime>0&&g.push(_)},d.onparsingerror=function(_){n=_},d.onflush=function(){n?l(n):s(g)},p.forEach(function(_){if(y){if(o(_,"X-TIMESTAMP-MAP=")){y=!1,b=!0,_.substr(16).split(",").forEach(function(x){o(x,"LOCAL:")?r=x.substr(6):o(x,"MPEGTS:")&&(i=parseInt(x.substr(7)))});try{u=function(x){var C=parseInt(x.substr(-3)),O=parseInt(x.substr(-6,2)),P=parseInt(x.substr(-9,2)),F=x.length>9?parseInt(x.substr(0,x.indexOf(":"))):0;if(!(Object(R.isFiniteNumber)(C)&&Object(R.isFiniteNumber)(O)&&Object(R.isFiniteNumber)(P)&&Object(R.isFiniteNumber)(F)))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+x);return C+=1e3*O,(C+=6e4*P)+36e5*F}(r)/1e3}catch(x){b=!1,n=x}return}_===""&&(y=!1)}d.parse(_+`
|
||
|
`)}),d.flush()}},"./src/utils/xhr-loader.ts":function(N,w,h){h.r(w);var R=h("./src/utils/logger.ts"),T=h("./src/loader/load-stats.ts"),A=/^age:\s*[\d.]+\s*$/m,k=function(){function I(o){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=o?o.xhrSetup:null,this.stats=new T.LoadStats,this.retryDelay=0}var D=I.prototype;return D.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},D.abortInternal=function(){var o=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),o&&(o.onreadystatechange=null,o.onprogress=null,o.readyState!==4&&(this.stats.aborted=!0,o.abort()))},D.abort=function(){var o;this.abortInternal(),(o=this.callbacks)!==null&&o!==void 0&&o.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},D.load=function(o,L,m){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=o,this.config=L,this.callbacks=m,this.retryDelay=L.retryDelay,this.loadInternal()},D.loadInternal=function(){var o=this.config,L=this.context;if(o){var m=this.loader=new self.XMLHttpRequest,f=this.stats;f.loading.first=0,f.loaded=0;var S=this.xhrSetup;try{if(S)try{S(m,L.url)}catch{m.open("GET",L.url,!0),S(m,L.url)}m.readyState||m.open("GET",L.url,!0)}catch(E){return void this.callbacks.onError({code:m.status,text:E.message},L,m)}L.rangeEnd&&m.setRequestHeader("Range","bytes="+L.rangeStart+"-"+(L.rangeEnd-1)),m.onreadystatechange=this.readystatechange.bind(this),m.onprogress=this.loadprogress.bind(this),m.responseType=L.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),o.timeout),m.send()}},D.readystatechange=function(){var o=this.context,L=this.loader,m=this.stats;if(o&&L){var f=L.readyState,S=this.config;if(!m.aborted&&f>=2)if(self.clearTimeout(this.requestTimeout),m.loading.first===0&&(m.loading.first=Math.max(self.performance.now(),m.loading.start)),f===4){L.onreadystatechange=null,L.onprogress=null;var E=L.status;if(E>=200&&E<300){var c,e;if(m.loading.end=Math.max(self.performance.now(),m.loading.first),e=o.responseType==="arraybuffer"?(c=L.response).byteLength:(c=L.responseText).length,m.loaded=m.total=e,!this.callbacks)return;var a=this.callbacks.onProgress;if(a&&a(m,o,c,L),!this.callbacks)return;var t={url:L.responseURL,data:c};this.callbacks.onSuccess(t,m,o,L)}else m.retry>=S.maxRetry||E>=400&&E<499?(R.logger.error(E+" while loading "+o.url),this.callbacks.onError({code:E,text:L.statusText},o,L)):(R.logger.warn(E+" while loading "+o.url+", retrying in "+this.retryDelay+"..."),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,S.maxRetryDelay),m.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),S.timeout)}},D.loadtimeout=function(){R.logger.warn("timeout while loading "+this.context.url);var o=this.callbacks;o&&(this.abortInternal(),o.onTimeout(this.stats,this.context,this.loader))},D.loadprogress=function(o){var L=this.stats;L.loaded=o.loaded,o.lengthComputable&&(L.total=o.total)},D.getCacheAge=function(){var o=null;if(this.loader&&A.test(this.loader.getAllResponseHeaders())){var L=this.loader.getResponseHeader("age");o=L?parseFloat(L):null}return o},I}();w.default=k}}).default);var it=mr(Lt.exports);const yr={name:"d-icon"},Le=Object.assign(yr,{props:{icon:String,size:[Number,String]},setup:function(N){const w=N,h=we(()=>({fontSize:/^\d+$/.test(w.size)?w.size+"px":w.size}));return(R,T)=>(Y(),Z("i",{class:be(["d-icon iconfont",N.icon]),style:je(G(h))},null,6))}});Le.__scopeId="data-v-0c690e66";Ve("data-v-4cb76d59");const Er={class:"d-player-top"},Tr={class:"top-title"},Sr={class:"top-title"};He();const br={props:{title:{default:""}},setup(N){Dat
|