@eluvio/elv-player-js 2.1.21 → 2.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +15 -15
- package/dist/{dash.all.min-DcWAUYtf.js → dash.all.min-BhTw3qnn.js} +1 -1
- package/dist/{dash.all.min-5J8yNMod.mjs → dash.all.min-KTRipwDJ.mjs} +1 -1
- package/dist/elv-player-js.cjs.js +1 -1
- package/dist/elv-player-js.es.js +1 -1
- package/dist/{index-DGtOYjg1.mjs → index--Iphol1D.mjs} +2 -3
- package/dist/{index-Cy05VtkV.js → index-CSmHxZt0.js} +2 -2
- package/dist/{index-_P2w1dEo.js → index-CetFFgpq.js} +1 -1
- package/dist/{index-tPLClaAD.mjs → index-D1aPC0Rq.mjs} +1 -1
- package/lib/ui/Observers.js +0 -1
- package/package.json +1 -1
package/dist/.vite/manifest.json
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_dash.all.min-
|
|
3
|
-
"file": "dash.all.min-
|
|
2
|
+
"_dash.all.min-BhTw3qnn.js": {
|
|
3
|
+
"file": "dash.all.min-BhTw3qnn.js",
|
|
4
4
|
"name": "dash.all.min",
|
|
5
5
|
"isDynamicEntry": true,
|
|
6
6
|
"imports": [
|
|
7
|
-
"_index-
|
|
7
|
+
"_index-CSmHxZt0.js"
|
|
8
8
|
]
|
|
9
9
|
},
|
|
10
|
-
"_dash.all.min-
|
|
11
|
-
"file": "dash.all.min-
|
|
10
|
+
"_dash.all.min-KTRipwDJ.mjs": {
|
|
11
|
+
"file": "dash.all.min-KTRipwDJ.mjs",
|
|
12
12
|
"name": "dash.all.min",
|
|
13
13
|
"isDynamicEntry": true,
|
|
14
14
|
"imports": [
|
|
15
|
-
"_index
|
|
15
|
+
"_index--Iphol1D.mjs"
|
|
16
16
|
]
|
|
17
17
|
},
|
|
18
|
-
"_index
|
|
19
|
-
"file": "index
|
|
18
|
+
"_index--Iphol1D.mjs": {
|
|
19
|
+
"file": "index--Iphol1D.mjs",
|
|
20
20
|
"name": "index",
|
|
21
21
|
"dynamicImports": [
|
|
22
22
|
"node_modules/@eluvio/crypto/src/index.js",
|
|
23
23
|
"lib/player/Analytics.js",
|
|
24
24
|
"node_modules/hls.js/dist/hls.mjs",
|
|
25
|
-
"_dash.all.min-
|
|
25
|
+
"_dash.all.min-KTRipwDJ.mjs"
|
|
26
26
|
]
|
|
27
27
|
},
|
|
28
|
-
"_index-
|
|
29
|
-
"file": "index-
|
|
28
|
+
"_index-CSmHxZt0.js": {
|
|
29
|
+
"file": "index-CSmHxZt0.js",
|
|
30
30
|
"name": "index",
|
|
31
31
|
"dynamicImports": [
|
|
32
32
|
"node_modules/@eluvio/crypto/src/index.js",
|
|
33
33
|
"lib/player/Analytics.js",
|
|
34
34
|
"node_modules/hls.js/dist/hls.mjs",
|
|
35
|
-
"_dash.all.min-
|
|
35
|
+
"_dash.all.min-BhTw3qnn.js"
|
|
36
36
|
]
|
|
37
37
|
},
|
|
38
38
|
"lib/index.js": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"src": "lib/index.js",
|
|
42
42
|
"isEntry": true,
|
|
43
43
|
"imports": [
|
|
44
|
-
"_index-
|
|
44
|
+
"_index-CSmHxZt0.js"
|
|
45
45
|
]
|
|
46
46
|
},
|
|
47
47
|
"lib/player/Analytics.js": {
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
"isDynamicEntry": true
|
|
52
52
|
},
|
|
53
53
|
"node_modules/@eluvio/crypto/src/index.js": {
|
|
54
|
-
"file": "index-
|
|
54
|
+
"file": "index-CetFFgpq.js",
|
|
55
55
|
"name": "index",
|
|
56
56
|
"src": "node_modules/@eluvio/crypto/src/index.js",
|
|
57
57
|
"isDynamicEntry": true,
|
|
58
58
|
"imports": [
|
|
59
|
-
"_index-
|
|
59
|
+
"_index-CSmHxZt0.js"
|
|
60
60
|
]
|
|
61
61
|
},
|
|
62
62
|
"node_modules/hls.js/dist/hls.mjs": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const il=require("./index-
|
|
1
|
+
"use strict";const il=require("./index-CSmHxZt0.js");function al(qr,Ui){for(var Cr=0;Cr<Ui.length;Cr++){const ar=Ui[Cr];if(typeof ar!="string"&&!Array.isArray(ar)){for(const Bn in ar)if(Bn!=="default"&&!(Bn in qr)){const Dr=Object.getOwnPropertyDescriptor(ar,Bn);Dr&&Object.defineProperty(qr,Bn,Dr.get?Dr:{enumerable:!0,get:()=>ar[Bn]})}}}return Object.freeze(Object.defineProperty(qr,Symbol.toStringTag,{value:"Module"}))}var va={exports:{}};/*! For license information please see dash.all.min.js.LICENSE.txt */var Xo;function ol(){return Xo||(Xo=1,(function(qr,Ui){(function(Cr,ar){qr.exports=ar()})(self,(function(){return(function(){var Cr={8107:function(vt,Le){var M,ce,I,u,n,_=function(h){for(var g=[],r=0;r<h.length;++r){var m=h.charCodeAt(r);m<128?g.push(m):m<2048?(g.push(192|m>>6),g.push(128|63&m)):m<65536?(g.push(224|m>>12),g.push(128|63&m>>6),g.push(128|63&m)):(g.push(240|m>>18),g.push(128|63&m>>12),g.push(128|63&m>>6),g.push(128|63&m))}return g},y=function(h){for(var g=[],r=0;r<h.length;){var m=h[r++];m<128||(m<224?(m=(31&m)<<6,m|=63&h[r++]):m<240?(m=(15&m)<<12,m|=(63&h[r++])<<6,m|=63&h[r++]):(m=(7&m)<<18,m|=(63&h[r++])<<12,m|=(63&h[r++])<<6,m|=63&h[r++])),g.push(String.fromCharCode(m))}return g.join("")},i={};M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ce=function(h){for(var g=0,r=[],m=0|h.length/3;0<m--;){var d=(h[g]<<16)+(h[g+1]<<8)+h[g+2];g+=3,r.push(M.charAt(63&d>>18)),r.push(M.charAt(63&d>>12)),r.push(M.charAt(63&d>>6)),r.push(M.charAt(63&d))}return h.length-g==2?(d=(h[g]<<16)+(h[g+1]<<8),r.push(M.charAt(63&d>>18)),r.push(M.charAt(63&d>>12)),r.push(M.charAt(63&d>>6)),r.push("=")):h.length-g==1&&(d=h[g]<<16,r.push(M.charAt(63&d>>18)),r.push(M.charAt(63&d>>12)),r.push("==")),r.join("")},I=(function(){for(var h=[],g=0;g<64;++g)h[M.charCodeAt(g)]=g;return h[61]=0,h})(),u=function(h){for(var g=0,r=[],m=0|h.length/4;0<m--;){var d=(I[h.charCodeAt(g)]<<18)+(I[h.charCodeAt(g+1)]<<12)+(I[h.charCodeAt(g+2)]<<6)+I[h.charCodeAt(g+3)];r.push(255&d>>16),r.push(255&d>>8),r.push(255&d),g+=4}return r&&(h.charAt(g-2)=="="?(r.pop(),r.pop()):h.charAt(g-1)=="="&&r.pop()),r},n={encode:function(h){for(var g=[],r=0;r<h.length;++r)g.push(h.charCodeAt(r));return g},decode:function(h){for(var g=0;g<s.length;++g)a[g]=String.fromCharCode(a[g]);return a.join("")}},i.decodeArray=function(h){var g=u(h);return new Uint8Array(g)},i.encodeASCII=function(h){var g=n.encode(h);return ce(g)},i.decodeASCII=function(h){var g=u(h);return n.decode(g)},i.encode=function(h){var g=_(h);return ce(g)},i.decode=function(h){var g=u(h);return y(g)},Le.decode=i.decode,Le.decodeArray=i.decodeArray,Le.encode=i.encode,Le.encodeASCII=i.encodeASCII},4947:function(vt,Le){(function(M){var ce={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},I=function(O){var J=O;return ce.hasOwnProperty(O)&&(J=ce[O]),String.fromCharCode(J)},u=15,n=32,_={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},y={17:2,18:4,21:6,22:8,23:10,19:13,20:15},i={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},h={25:2,26:4,29:6,30:8,31:10,27:13,28:15},g=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],r={verboseFilter:{DATA:3,DEBUG:3,INFO:2,WARNING:2,TEXT:1,ERROR:0},time:null,verboseLevel:0,setTime:function(O){this.time=O},log:function(O,J){var pe=this.verboseFilter[O];this.verboseLevel>=pe&&console.log(this.time+" ["+O+"] "+J)}},m=function(O){for(var J=[],pe=0;pe<O.length;pe++)J.push(O[pe].toString(16));return J},d=function(O,J,pe,G,X){this.foreground=O||"white",this.underline=J||!1,this.italics=pe||!1,this.background=G||"black",this.flash=X||!1};d.prototype={reset:function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},setStyles:function(O){for(var J=["foreground","underline","italics","background","flash"],pe=0;pe<J.length;pe++){var G=J[pe];O.hasOwnProperty(G)&&(this[G]=O[G])}},isDefault:function(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash},equals:function(O){return this.foreground===O.foreground&&this.underline===O.underline&&this.italics===O.italics&&this.background===O.background&&this.flash===O.flash},copy:function(O){this.foreground=O.foreground,this.underline=O.underline,this.italics=O.italics,this.background=O.background,this.flash=O.flash},toString:function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}};var T=function(O,J,pe,G,X,re){this.uchar=O||" ",this.penState=new d(J,pe,G,X,re)};T.prototype={reset:function(){this.uchar=" ",this.penState.reset()},setChar:function(O,J){this.uchar=O,this.penState.copy(J)},setPenState:function(O){this.penState.copy(O)},equals:function(O){return this.uchar===O.uchar&&this.penState.equals(O.penState)},copy:function(O){this.uchar=O.uchar,this.penState.copy(O.penState)},isEmpty:function(){return this.uchar===" "&&this.penState.isDefault()}};var q=function(){this.chars=[];for(var O=0;O<n;O++)this.chars.push(new T);this.pos=0,this.currPenState=new d};q.prototype={equals:function(O){for(var J=!0,pe=0;pe<n;pe++)if(!this.chars[pe].equals(O.chars[pe])){J=!1;break}return J},copy:function(O){for(var J=0;J<n;J++)this.chars[J].copy(O.chars[J])},isEmpty:function(){for(var O=!0,J=0;J<n;J++)if(!this.chars[J].isEmpty()){O=!1;break}return O},setCursor:function(O){this.pos!==O&&(this.pos=O),this.pos<0?(r.log("ERROR","Negative cursor position "+this.pos),this.pos=0):this.pos>n&&(r.log("ERROR","Too large cursor position "+this.pos),this.pos=n)},moveCursor:function(O){var J=this.pos+O;if(O>1)for(var pe=this.pos+1;pe<J+1;pe++)this.chars[pe].setPenState(this.currPenState);this.setCursor(J)},backSpace:function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},insertChar:function(O){O>=144&&this.backSpace();var J=I(O);this.pos>=n?r.log("ERROR","Cannot insert "+O.toString(16)+" ("+J+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(J,this.currPenState),this.moveCursor(1))},clearFromPos:function(O){var J;for(J=O;J<n;J++)this.chars[J].reset()},clear:function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},clearToEndOfRow:function(){this.clearFromPos(this.pos)},getTextString:function(){for(var O=[],J=!0,pe=0;pe<n;pe++){var G=this.chars[pe].uchar;G!==" "&&(J=!1),O.push(G)}return J?"":O.join("")},setPenStyles:function(O){this.currPenState.setStyles(O),this.chars[this.pos].setPenState(this.currPenState)}};var W=function(){this.rows=[];for(var O=0;O<u;O++)this.rows.push(new q);this.currRow=14,this.nrRollUpRows=null,this.reset()};W.prototype={reset:function(){for(var O=0;O<u;O++)this.rows[O].clear();this.currRow=14},equals:function(O){for(var J=!0,pe=0;pe<u;pe++)if(!this.rows[pe].equals(O.rows[pe])){J=!1;break}return J},copy:function(O){for(var J=0;J<u;J++)this.rows[J].copy(O.rows[J])},isEmpty:function(){for(var O=!0,J=0;J<u;J++)if(!this.rows[J].isEmpty()){O=!1;break}return O},backSpace:function(){this.rows[this.currRow].backSpace()},clearToEndOfRow:function(){this.rows[this.currRow].clearToEndOfRow()},insertChar:function(O){this.rows[this.currRow].insertChar(O)},setPen:function(O){this.rows[this.currRow].setPenStyles(O)},moveCursor:function(O){this.rows[this.currRow].moveCursor(O)},setCursor:function(O){r.log("INFO","setCursor: "+O),this.rows[this.currRow].setCursor(O)},setPAC:function(O){r.log("INFO","pacData = "+JSON.stringify(O));var J=O.row-1;this.nrRollUpRows&&J<this.nrRollUpRows-1&&(J=this.nrRollUpRows-1),this.currRow=J;var pe=this.rows[this.currRow];if(O.indent!==null){var G=O.indent,X=Math.max(G-1,0);pe.setCursor(O.indent),O.color=pe.chars[X].penState.foreground}var re={foreground:O.color,underline:O.underline,italics:O.italics,background:"black",flash:!1};this.setPen(re)},setBkgData:function(O){r.log("INFO","bkgData = "+JSON.stringify(O)),this.backSpace(),this.setPen(O),this.insertChar(32)},setRollUpRows:function(O){this.nrRollUpRows=O},rollUp:function(){if(this.nrRollUpRows!==null){r.log("TEXT",this.getDisplayText());var O=this.currRow+1-this.nrRollUpRows,J=this.rows.splice(O,1)[0];J.clear(),this.rows.splice(this.currRow,0,J),r.log("INFO","Rolling up")}else r.log("DEBUG","roll_up but nrRollUpRows not set yet")},getDisplayText:function(O){O=O||!1;for(var J=[],pe="",G=-1,X=0;X<u;X++){var re=this.rows[X].getTextString();re&&(G=X+1,O?J.push("Row "+G+': "'+re+'"'):J.push(re.trim()))}return J.length>0&&(pe=O?"["+J.join(" | ")+"]":J.join(`
|
|
2
2
|
`)),pe},getTextAndFormat:function(){return this.rows}};var x=function(O,J){this.chNr=O,this.outputFilter=J,this.mode=null,this.verbose=0,this.displayedMemory=new W,this.nonDisplayedMemory=new W,this.lastOutputScreen=new W,this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null};x.prototype={modes:["MODE_ROLL-UP","MODE_POP-ON","MODE_PAINT-ON","MODE_TEXT"],reset:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.lastCueEndTime=null},getHandler:function(){return this.outputFilter},setHandler:function(O){this.outputFilter=O},setPAC:function(O){this.writeScreen.setPAC(O)},setBkgData:function(O){this.writeScreen.setBkgData(O)},setMode:function(O){O!==this.mode&&(this.mode=O,r.log("INFO","MODE="+O),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=O)},insertChars:function(O){for(var J=0;J<O.length;J++)this.writeScreen.insertChar(O[J]);var pe=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";r.log("INFO",pe+": "+this.writeScreen.getDisplayText(!0)),this.mode!=="MODE_PAINT-ON"&&this.mode!=="MODE_ROLL-UP"||(r.log("TEXT","DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},cc_RCL:function(){r.log("INFO","RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},cc_BS:function(){r.log("INFO","BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},cc_AOF:function(){},cc_AON:function(){},cc_DER:function(){r.log("INFO","DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},cc_RU:function(O){r.log("INFO","RU("+O+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(O)},cc_FON:function(){r.log("INFO","FON - Flash On"),this.writeScreen.setPen({flash:!0})},cc_RDC:function(){r.log("INFO","RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},cc_TR:function(){r.log("INFO","TR"),this.setMode("MODE_TEXT")},cc_RTD:function(){r.log("INFO","RTD"),this.setMode("MODE_TEXT")},cc_EDM:function(){r.log("INFO","EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate()},cc_CR:function(){r.log("CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate()},cc_ENM:function(){r.log("INFO","ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},cc_EOC:function(){if(r.log("INFO","EOC - End Of Caption"),this.mode==="MODE_POP-ON"){var O=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=O,this.writeScreen=this.nonDisplayedMemory,r.log("TEXT","DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate()},cc_TO:function(O){r.log("INFO","TO("+O+") - Tab Offset"),this.writeScreen.moveCursor(O)},cc_MIDROW:function(O){var J={flash:!1};if(J.underline=O%2==1,J.italics=O>=46,J.italics)J.foreground="white";else{var pe=Math.floor(O/2)-16;J.foreground=["white","green","blue","cyan","red","yellow","magenta"][pe]}r.log("INFO","MIDROW: "+JSON.stringify(J)),this.writeScreen.setPen(J)},outputDataUpdate:function(){var O=r.time;O!==null&&this.outputFilter&&(this.outputFilter.updateData&&this.outputFilter.updateData(O,this.displayedMemory),this.cueStartTime!==null||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,O,this.lastOutputScreen),this.cueStartTime=this.displayedMemory.isEmpty()?null:O):this.cueStartTime=O,this.lastOutputScreen.copy(this.displayedMemory))},cueSplitAtTime:function(O){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,O,this.displayedMemory),this.cueStartTime=O))}};var ne=function(O,J,pe){this.field=O||1,this.outputs=[J,pe],this.channels=[new x(1,J),new x(2,pe)],this.currChNr=-1,this.lastCmdA=null,this.lastCmdB=null,this.bufferedData=[],this.startTime=null,this.lastTime=null,this.dataCounters={padding:0,char:0,cmd:0,other:0}};ne.prototype={getHandler:function(O){return this.channels[O].getHandler()},setHandler:function(O,J){this.channels[O].setHandler(J)},addData:function(O,J){var pe,G,X,re=!1;this.lastTime=O,r.setTime(O);for(var be=0;be<J.length;be+=2)G=127&J[be],X=127&J[be+1],G>=16&&G<=31&&G===this.lastCmdA&&X===this.lastCmdB?(this.lastCmdA=null,this.lastCmdB=null,r.log("DEBUG","Repeated command ("+m([G,X])+") is dropped")):G!==0||X!==0?(r.log("DATA","["+m([J[be],J[be+1]])+"] -> ("+m([G,X])+")"),(pe=this.parseCmd(G,X))||(pe=this.parseMidrow(G,X)),pe||(pe=this.parsePAC(G,X)),pe||(pe=this.parseBackgroundAttributes(G,X)),pe||(re=this.parseChars(G,X))&&(this.currChNr&&this.currChNr>=0?this.channels[this.currChNr-1].insertChars(re):r.log("WARNING","No channel found yet. TEXT-MODE?")),pe?this.dataCounters.cmd+=2:re?this.dataCounters.char+=2:(this.dataCounters.other+=2,r.log("WARNING","Couldn't parse cleaned data "+m([G,X])+" orig: "+m([J[be],J[be+1]])))):this.dataCounters.padding+=2},parseCmd:function(O,J){var pe;if(!((O===20||O===21||O===28||O===29)&&32<=J&&J<=47||(O===23||O===31)&&33<=J&&J<=35))return!1;pe=O===20||O===21||O===23?1:2;var G=this.channels[pe-1];return O===20||O===21||O===28||O===29?J===32?G.cc_RCL():J===33?G.cc_BS():J===34?G.cc_AOF():J===35?G.cc_AON():J===36?G.cc_DER():J===37?G.cc_RU(2):J===38?G.cc_RU(3):J===39?G.cc_RU(4):J===40?G.cc_FON():J===41?G.cc_RDC():J===42?G.cc_TR():J===43?G.cc_RTD():J===44?G.cc_EDM():J===45?G.cc_CR():J===46?G.cc_ENM():J===47&&G.cc_EOC():G.cc_TO(J-32),this.lastCmdA=O,this.lastCmdB=J,this.currChNr=pe,!0},parseMidrow:function(O,J){var pe=null;if((O===17||O===25)&&32<=J&&J<=47){if((pe=O===17?1:2)!==this.currChNr)return r.log("ERROR","Mismatch channel in midrow parsing"),!1;var G=this.channels[pe-1];return G.insertChars([32]),G.cc_MIDROW(J),r.log("DEBUG","MIDROW ("+m([O,J])+")"),this.lastCmdA=O,this.lastCmdB=J,!0}return!1},parsePAC:function(O,J){var pe,G;if(!((17<=O&&O<=23||25<=O&&O<=31)&&64<=J&&J<=127||(O===16||O===24)&&64<=J&&J<=95))return!1;pe=O<=23?1:2,G=64<=J&&J<=95?pe===1?_[O]:i[O]:pe===1?y[O]:h[O];var X=this.interpretPAC(G,J);return this.channels[pe-1].setPAC(X),this.lastCmdA=O,this.lastCmdB=J,this.currChNr=pe,!0},interpretPAC:function(O,J){var pe,G={color:null,italics:!1,indent:null,underline:!1,row:O};return pe=J>95?J-96:J-64,G.underline=!(1&~pe),pe<=13?G.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(pe/2)]:pe<=15?(G.italics=!0,G.color="white"):G.indent=4*Math.floor((pe-16)/2),G},parseChars:function(O,J){var pe=null,G=null,X=null;if(O>=25?(pe=2,X=O-8):(pe=1,X=O),17<=X&&X<=19){var re;re=X===17?J+80:X===18?J+112:J+144,r.log("INFO","Special char '"+I(re)+"' in channel "+pe),G=[re],this.lastCmdA=O,this.lastCmdB=J}else 32<=O&&O<=127&&(G=J===0?[O]:[O,J],this.lastCmdA=null,this.lastCmdB=null);if(G){var be=m(G);r.log("DEBUG","Char codes = "+be.join(","))}return G},parseBackgroundAttributes:function(O,J){var pe,G,X;return((O===16||O===24)&&32<=J&&J<=47||(O===23||O===31)&&45<=J&&J<=47)&&(pe={},O===16||O===24?(G=Math.floor((J-32)/2),pe.background=g[G],J%2==1&&(pe.background=pe.background+"_semi")):J===45?pe.background="transparent":(pe.foreground="black",J===47&&(pe.underline=!0)),X=O<24?1:2,this.channels[X-1].setBkgData(pe),this.lastCmdA=O,this.lastCmdB=J,!0)},reset:function(){for(var O=0;O<this.channels.length;O++)this.channels[O]&&this.channels[O].reset();this.lastCmdA=null,this.lastCmdB=null},cueSplitAtTime:function(O){for(var J=0;J<this.channels.length;J++)this.channels[J]&&this.channels[J].cueSplitAtTime(O)}},M.logger=r,M.PenState=d,M.CaptionScreen=W,M.Cea608Parser=ne,M.findCea608Nalus=function(O,J,pe){for(var G=0,X=J,re=[],be=function(Se,Ne,He,it){if(Se!==4||Ne<8)return null;var Ie=He.getUint8(it),Oe=He.getUint16(it+1),ft=He.getUint32(it+3),At=He.getUint8(it+7);return Ie==181&&Oe==49&&ft==1195456820&&At==3};X<J+pe;){if(G=O.getUint32(X),(31&O.getUint8(X+4))==6)for(var Ue=X+5,me=-1;Ue<X+4+G-1;){me=0;for(var le=255;le===255;)me+=le=O.getUint8(Ue),Ue++;var je=0;for(le=255;le===255;)je+=le=O.getUint8(Ue),Ue++;be(me,je,O,Ue)&&re.push([Ue,je]),Ue+=je}X+=G+4}return re},M.extractCea608DataFromRange=function(O,J){var pe=J[0],G=[[],[]];pe+=8;var X=31&O.getUint8(pe);pe+=2;for(var re=0;re<X;re++){var be=O.getUint8(pe),Ue=4&be,me=3&be;pe++;var le=O.getUint8(pe);pe++;var je=O.getUint8(pe);pe++,Ue&&(127&le)+(127&je)!=0&&(me===0?(G[0].push(le),G[0].push(je)):me===1&&(G[1].push(le),G[1].push(je)))}return G}})(Le)},1229:function(vt,Le,M){var ce=M(4716),I=M(5742),u=M(4413),n=M(6558),_=(M(8175),typeof window<"u"&&window||M.g),y=_.dashjs;y||(y=_.dashjs={}),y.MediaPlayer=ce.A,y.FactoryMaker=I.A,y.Debug=u.A,y.Version=(0,n.i)()},4413:function(vt,Le,M){var ce=M(8366),I=M(4865),u=M(5742),n=1,_=2,y=3,i=4,h=5;function g(m){m=m||{};var d,T,q,W,x=this.context,ne=(0,ce.A)(x).getInstance(),O=m.settings,J=[];function pe(le){return le&&le.bind?le.bind(window.console):window.console.log.bind(window.console)}function G(){for(var le=arguments.length,je=new Array(le),Se=0;Se<le;Se++)je[Se]=arguments[Se];me.apply(void 0,[n,this].concat(je))}function X(){for(var le=arguments.length,je=new Array(le),Se=0;Se<le;Se++)je[Se]=arguments[Se];me.apply(void 0,[_,this].concat(je))}function re(){for(var le=arguments.length,je=new Array(le),Se=0;Se<le;Se++)je[Se]=arguments[Se];me.apply(void 0,[y,this].concat(je))}function be(){for(var le=arguments.length,je=new Array(le),Se=0;Se<le;Se++)je[Se]=arguments[Se];me.apply(void 0,[i,this].concat(je))}function Ue(){for(var le=arguments.length,je=new Array(le),Se=0;Se<le;Se++)je[Se]=arguments[Se];me.apply(void 0,[h,this].concat(je))}function me(le,je){var Se="",Ne=null;T&&(Ne=new Date().getTime(),Se+="["+(Ne-W)+"]"),q&&je&&je.getClassName&&(Se+="["+je.getClassName()+"]",je.getType&&(Se+="["+je.getType()+"]")),Se.length>0&&(Se+=" ");for(var He=arguments.length,it=new Array(He>2?He-2:0),Ie=2;Ie<He;Ie++)it[Ie-2]=arguments[Ie];Array.apply(null,it).forEach((function(Oe){Se+=Oe+" "})),J[le]&&O&&O.get().debug.logLevel>=le&&J[le](Se),O&&O.get().debug.dispatchEvent&&ne.trigger(I.A.LOG,{message:Se,level:le})}return d={getLogger:function(le){return{fatal:G.bind(le),error:X.bind(le),warn:re.bind(le),info:be.bind(le),debug:Ue.bind(le)}},setLogTimestampVisible:function(le){T=le},setCalleeNameVisible:function(le){q=le}},T=!0,q=!0,W=new Date().getTime(),typeof window<"u"&&window.console&&(J[n]=pe(window.console.error),J[_]=pe(window.console.error),J[y]=pe(window.console.warn),J[i]=pe(window.console.info),J[h]=pe(window.console.debug)),d}g.__dashjs_factory_name="Debug";var r=u.A.getSingletonFactory(g);r.LOG_LEVEL_NONE=0,r.LOG_LEVEL_FATAL=n,r.LOG_LEVEL_ERROR=_,r.LOG_LEVEL_WARNING=y,r.LOG_LEVEL_INFO=i,r.LOG_LEVEL_DEBUG=h,u.A.updateSingletonFactory(g.__dashjs_factory_name,r),Le.A=r},8366:function(vt,Le,M){var ce=M(5742),I=M(7547);function u(){var _={};function y(h,g,r){var m=-1;return _[h]&&_[h].some((function(d,T){if(d&&d.callback===g&&(!r||r===d.scope))return m=T,!0})),m}var i={on:function(h,g,r){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(!h)throw new Error("event type cannot be null or undefined");if(!g||typeof g!="function")throw new Error("listener must be a function: "+g);var d=m.priority||0;if(!(y(h,g,r)>=0)){_[h]=_[h]||[];var T={callback:g,scope:r,priority:d};r&&r.getStreamId&&(T.streamId=r.getStreamId()),r&&r.getType&&(T.mediaType=r.getType()),m&&m.mode&&(T.mode=m.mode),_[h].some((function(q,W){if(q&&d>q.priority)return _[h].splice(W,0,T),!0}))||_[h].push(T)}},off:function(h,g,r){if(h&&g&&_[h]){var m=y(h,g,r);m<0||(_[h][m]=null)}},trigger:function(h){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(h&&_[h]){if((g=g||{}).hasOwnProperty("type"))throw new Error("'type' is a reserved word for event dispatching");g.type=h,r.streamId&&(g.streamId=r.streamId),r.mediaType&&(g.mediaType=r.mediaType),_[h].filter((function(m){return!(!m||r.streamId&&m.streamId&&m.streamId!==r.streamId||r.mediaType&&m.mediaType&&m.mediaType!==r.mediaType||r.mode&&m.mode&&m.mode!==r.mode||!m.mode&&r.mode&&r.mode===I.A.EVENT_MODE_ON_RECEIVE)})).forEach((function(m){return m&&m.callback.call(m.scope,g)}))}},reset:function(){_={}}};return i}u.__dashjs_factory_name="EventBus";var n=ce.A.getSingletonFactory(u);n.EVENT_PRIORITY_LOW=0,n.EVENT_PRIORITY_HIGH=5e3,ce.A.updateSingletonFactory(u.__dashjs_factory_name,n),Le.A=n},5742:function(vt,Le){var M=(function(){var ce,I=[],u={},n={};function _(g,r){for(var m in I){var d=I[m];if(d.context===g&&d.name===r)return d.instance}return null}function y(g,r){return r[g]}function i(g,r,m){g in m&&(m[g]=r)}function h(g,r,m){var d,T=g.__dashjs_factory_name,q=r[T];if(q){var W=q.instance;if(!q.override)return W.apply({context:r,factory:ce},m);for(var x in d=g.apply({context:r},m),W=W.apply({context:r,factory:ce,parent:d},m))d.hasOwnProperty(x)&&(d[x]=W[x])}else d=g.apply({context:r},m);return d.getClassName=function(){return T},d}return ce={extend:function(g,r,m,d){!d[g]&&r&&(d[g]={instance:r,override:m})},getSingletonInstance:_,setSingletonInstance:function(g,r,m){for(var d in I){var T=I[d];if(T.context===g&&T.name===r)return void(I[d].instance=m)}I.push({name:r,context:g,instance:m})},deleteSingletonInstances:function(g){I=I.filter((function(r){return r.context!==g}))},getSingletonFactory:function(g){var r=y(g.__dashjs_factory_name,u);return r||(r=function(m){var d;return m===void 0&&(m={}),{getInstance:function(){return d||(d=_(m,g.__dashjs_factory_name)),d||(d=h(g,m,arguments),I.push({name:g.__dashjs_factory_name,context:m,instance:d})),d}}},u[g.__dashjs_factory_name]=r),r},getSingletonFactoryByName:function(g){return y(g,u)},updateSingletonFactory:function(g,r){i(g,r,u)},getClassFactory:function(g){var r=y(g.__dashjs_factory_name,n);return r||(r=function(m){return m===void 0&&(m={}),{create:function(){return h(g,m,arguments)}}},n[g.__dashjs_factory_name]=r),r},getClassFactoryByName:function(g){return y(g,n)},updateClassFactory:function(g,r){i(g,r,n)}},ce})();Le.A=M},1657:function(vt,Le,M){var ce=M(5742),I=M(1739),u=M(4413),n=M(7256),_=M(2756),y=M(8366),i=M(4865);function h(d){return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},h(d)}function g(d,T,q){return(T=(function(W){var x=(function(ne){if(h(ne)!="object"||!ne)return ne;var O=ne[Symbol.toPrimitive];if(O!==void 0){var J=O.call(ne,"string");if(h(J)!="object")return J;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ne)})(W);return h(x)=="symbol"?x:x+""})(T))in d?Object.defineProperty(d,T,{value:q,enumerable:!0,configurable:!0,writable:!0}):d[T]=q,d}function r(){var d=this.context,T=(0,y.A)(d).getInstance(),q={"streaming.delay.liveDelay":i.A.SETTING_UPDATED_LIVE_DELAY,"streaming.delay.liveDelayFragmentCount":i.A.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT,"streaming.liveCatchup.enabled":i.A.SETTING_UPDATED_CATCHUP_ENABLED,"streaming.liveCatchup.playbackRate.min":i.A.SETTING_UPDATED_PLAYBACK_RATE_MIN,"streaming.liveCatchup.playbackRate.max":i.A.SETTING_UPDATED_PLAYBACK_RATE_MAX},W={debug:{logLevel:u.A.LOG_LEVEL_WARNING,dispatchEvent:!1},streaming:{abandonLoadTimeout:1e4,wallclockTimeUpdateInterval:100,manifestUpdateRetryInterval:100,liveUpdateTimeThresholdInMilliseconds:0,cacheInitSegments:!1,applyServiceDescription:!0,applyProducerReferenceTime:!0,applyContentSteering:!0,eventControllerRefreshDelay:100,enableManifestDurationMismatchFix:!0,parseInbandPrft:!1,enableManifestTimescaleMismatchFix:!1,capabilities:{filterUnsupportedEssentialProperties:!0,useMediaCapabilitiesApi:!1},timeShiftBuffer:{calcFromSegmentTimeline:!1,fallbackToSegmentTimeline:!0},metrics:{maxListDepth:100},delay:{liveDelayFragmentCount:NaN,liveDelay:NaN,useSuggestedPresentationDelay:!0},protection:{keepProtectionMediaKeys:!1,ignoreEmeEncryptedEvent:!1,detectPlayreadyMessageFormat:!0},buffer:{enableSeekDecorrelationFix:!1,fastSwitchEnabled:!0,flushBufferAtTrackSwitch:!1,reuseExistingSourceBuffers:!0,bufferPruningInterval:10,bufferToKeep:20,bufferTimeAtTopQuality:30,bufferTimeAtTopQualityLongForm:60,initialBufferLevel:NaN,stableBufferTime:12,longFormContentDurationThreshold:600,stallThreshold:.3,useAppendWindow:!0,setStallState:!0,avoidCurrentTimeRangePruning:!1,useChangeTypeForTrackSwitch:!0,mediaSourceDurationInfinity:!0,resetSourceBuffersForTrackSwitch:!1},gaps:{jumpGaps:!0,jumpLargeGaps:!0,smallGapLimit:1.5,threshold:.3,enableSeekFix:!0,enableStallFix:!1,stallSeek:.1},utcSynchronization:{enabled:!0,useManifestDateHeaderTimeSource:!0,backgroundAttempts:2,timeBetweenSyncAttempts:30,maximumTimeBetweenSyncAttempts:600,minimumTimeBetweenSyncAttempts:2,timeBetweenSyncAttemptsAdjustmentFactor:2,maximumAllowedDrift:100,enableBackgroundSyncAfterSegmentDownloadError:!0,defaultTimingSource:{scheme:"urn:mpeg:dash:utc:http-xsdate:2014",value:"https://time.akamai.com/?iso&ms"}},scheduling:{defaultTimeout:500,lowLatencyTimeout:0,scheduleWhilePaused:!0},text:{defaultEnabled:!0,dispatchForManualRendering:!1,extendSegmentedCues:!0,imsc:{displayForcedOnlyMode:!1,enableRollUp:!0},webvtt:{customRenderingEnabled:!1}},liveCatchup:{maxDrift:NaN,playbackRate:{min:NaN,max:NaN},playbackBufferMin:.5,enabled:null,mode:n.A.LIVE_CATCHUP_MODE_DEFAULT},lastBitrateCachingInfo:{enabled:!0,ttl:36e4},lastMediaSettingsCachingInfo:{enabled:!0,ttl:36e4},saveLastMediaSettingsForCurrentStreamingSession:!0,cacheLoadThresholds:{video:50,audio:5},trackSwitchMode:{audio:n.A.TRACK_SWITCH_MODE_ALWAYS_REPLACE,video:n.A.TRACK_SWITCH_MODE_NEVER_REPLACE},selectionModeForInitialTrack:n.A.TRACK_SELECTION_MODE_HIGHEST_SELECTION_PRIORITY,fragmentRequestTimeout:2e4,fragmentRequestProgressTimeout:-1,manifestRequestTimeout:1e4,retryIntervals:g(g(g(g(g(g(g(g(g(g({},_.G.MPD_TYPE,500),_.G.XLINK_EXPANSION_TYPE,500),_.G.MEDIA_SEGMENT_TYPE,1e3),_.G.INIT_SEGMENT_TYPE,1e3),_.G.BITSTREAM_SWITCHING_SEGMENT_TYPE,1e3),_.G.INDEX_SEGMENT_TYPE,1e3),_.G.MSS_FRAGMENT_INFO_SEGMENT_TYPE,1e3),_.G.LICENSE,1e3),_.G.OTHER_TYPE,1e3),"lowLatencyReductionFactor",10),retryAttempts:g(g(g(g(g(g(g(g(g(g({},_.G.MPD_TYPE,3),_.G.XLINK_EXPANSION_TYPE,1),_.G.MEDIA_SEGMENT_TYPE,3),_.G.INIT_SEGMENT_TYPE,3),_.G.BITSTREAM_SWITCHING_SEGMENT_TYPE,3),_.G.INDEX_SEGMENT_TYPE,3),_.G.MSS_FRAGMENT_INFO_SEGMENT_TYPE,3),_.G.LICENSE,3),_.G.OTHER_TYPE,3),"lowLatencyMultiplyFactor",5),abr:{movingAverageMethod:n.A.MOVING_AVERAGE_SLIDING_WINDOW,ABRStrategy:n.A.ABR_STRATEGY_DYNAMIC,additionalAbrRules:{insufficientBufferRule:!0,switchHistoryRule:!0,droppedFramesRule:!0,abandonRequestsRule:!0},abrRulesParameters:{abandonRequestsRule:{graceTimeThreshold:500,abandonMultiplier:1.8,minLengthToAverage:5}},bandwidthSafetyFactor:.9,useDefaultABRRules:!0,useDeadTimeLatency:!0,limitBitrateByPortal:!1,usePixelRatioInLimitBitrateByPortal:!1,maxBitrate:{audio:-1,video:-1},minBitrate:{audio:-1,video:-1},maxRepresentationRatio:{audio:1,video:1},initialBitrate:{audio:-1,video:-1},initialRepresentationRatio:{audio:-1,video:-1},autoSwitchBitrate:{audio:!0,video:!0},fetchThroughputCalculationMode:n.A.ABR_FETCH_THROUGHPUT_CALCULATION_MOOF_PARSING},cmcd:{enabled:!1,sid:null,cid:null,rtp:null,rtpSafetyFactor:5,mode:n.A.CMCD_MODE_QUERY,enabledKeys:["br","d","ot","tb","bl","dl","mtp","nor","nrr","su","bs","rtp","cid","pr","sf","sid","st","v"]},cmsd:{enabled:!1,abr:{applyMb:!1,etpWeightRatio:0}}},errors:{recoverAttempts:{mediaErrorDecode:5}}},x=I.A.clone(W);function ne(O,J,pe){for(var G in O)O.hasOwnProperty(G)&&(J.hasOwnProperty(G)?h(O[G])!=="object"||O[G]instanceof Array||O[G]===null?(J[G]=I.A.clone(O[G]),q[pe+G]&&T.trigger(q[pe+G])):ne(O[G],J[G],pe.slice()+G+"."):console.error("Settings parameter "+pe+G+" is not supported"))}return{get:function(){return x},update:function(O){h(O)==="object"&&ne(O,x,"")},reset:function(){x=I.A.clone(W)}}}r.__dashjs_factory_name="Settings";var m=ce.A.getSingletonFactory(r);Le.A=m},1739:function(vt,Le,M){var ce=M(5684),I=M.n(ce),u=M(3785);function n(h){return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},n(h)}function _(h,g){for(var r=0;r<g.length;r++){var m=g[r];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(h,y(m.key),m)}}function y(h){var g=(function(r){if(n(r)!="object"||!r)return r;var m=r[Symbol.toPrimitive];if(m!==void 0){var d=m.call(r,"string");if(n(d)!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)})(h);return n(g)=="symbol"?g:g+""}var i=(function(){function h(){(function(m,d){if(!(m instanceof d))throw new TypeError("Cannot call a class as a function")})(this,h)}return g=h,r=[{key:"mixin",value:function(m,d,T){var q,W={};if(m)for(var x in d)d.hasOwnProperty(x)&&(q=d[x],x in m&&(m[x]===q||x in W&&W[x]===q)||(n(m[x])==="object"&&m[x]!==null?m[x]=h.mixin(m[x],q,T):m[x]=T(q)));return m}},{key:"clone",value:function(m){if(!m||n(m)!=="object")return m;var d;if(m instanceof Array){d=[];for(var T=0,q=m.length;T<q;++T)T in m&&d.push(h.clone(m[T]))}else d={};return h.mixin(d,m,h.clone)}},{key:"addAditionalQueryParameterToUrl",value:function(m,d){try{if(!d||d.length===0)return m;var T=new URL(m);return d.forEach((function(q){q.key&&q.value&&T.searchParams.set(q.key,q.value)})),T.href}catch{return m}}},{key:"parseHttpHeaders",value:function(m){var d={};if(!m)return d;for(var T=m.trim().split(`\r
|
|
3
3
|
`),q=0,W=T.length;q<W;q++){var x=T[q],ne=x.indexOf(": ");ne>0&&(d[x.substring(0,ne)]=x.substring(ne+2))}return d}},{key:"generateUuid",value:function(){var m=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(d){var T=(m+16*Math.random())%16|0;return m=Math.floor(m/16),(d=="x"?T:3&T|8).toString(16)}))}},{key:"generateHashCode",value:function(m){var d=0;if(m.length===0)return d;for(var T=0;T<m.length;T++)d=(d<<5)-d+m.charCodeAt(T),d|=0;return d}},{key:"getRelativeUrl",value:function(m,d){try{var T=new URL(m),q=new URL(d);if(T.protocol=q.protocol,T.origin!==q.origin)return d;var W=I().relative(T.pathname.substr(0,T.pathname.lastIndexOf("/")),q.pathname.substr(0,q.pathname.lastIndexOf("/"))),x=W.length===0?1:0;return W+=q.pathname.substr(q.pathname.lastIndexOf("/")+x,q.pathname.length-1),q.pathname.length<W.length?q.pathname:W}catch{return d}}},{key:"parseUserAgent",value:function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;try{var d=m===null&&typeof navigator<"u"?navigator.userAgent.toLowerCase():"";return(0,u.UAParser)(d)}catch{return{}}}},{key:"stringHasProtocol",value:function(m){return/(http(s?)):\/\//i.test(m)}}],r&&_(g,r),Object.defineProperty(g,"prototype",{writable:!1}),g;var g,r})();Le.A=i},6558:function(vt,Le,M){M.d(Le,{i:function(){return I}});var ce="4.7.4";function I(){return ce}},1840:function(vt,Le){function M(n){return M=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},M(n)}function ce(n,_){for(var y=0;y<_.length;y++){var i=_[y];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,I(i.key),i)}}function I(n){var _=(function(y){if(M(y)!="object"||!y)return y;var i=y[Symbol.toPrimitive];if(i!==void 0){var h=i.call(y,"string");if(M(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(y)})(n);return M(_)=="symbol"?_:_+""}var u=(function(){return n=function y(){(function(i,h){if(!(i instanceof h))throw new TypeError("Cannot call a class as a function")})(this,y)},(_=[{key:"extend",value:function(y,i){if(y){var h=!!i&&i.override,g=!!i&&i.publicOnly;for(var r in y)!y.hasOwnProperty(r)||this[r]&&!h||g&&y[r].indexOf("public_")===-1||(this[r]=y[r])}}}])&&ce(n.prototype,_),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,_})();Le.A=u},3426:function(vt,Le,M){function ce(i){return ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},ce(i)}function I(i,h,g){return h=n(h),(function(r,m){if(m&&(ce(m)=="object"||typeof m=="function"))return m;if(m!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d})(r)})(i,u()?Reflect.construct(h,[],n(i).constructor):h.apply(i,g))}function u(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(u=function(){return!!i})()}function n(i){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(h){return h.__proto__||Object.getPrototypeOf(h)},n(i)}function _(i,h){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(g,r){return g.__proto__=r,g},_(i,h)}var y=(function(i){function h(){var r;return(function(m,d){if(!(m instanceof d))throw new TypeError("Cannot call a class as a function")})(this,h),(r=I(this,h)).ATTEMPT_BACKGROUND_SYNC="attemptBackgroundSync",r.BUFFERING_COMPLETED="bufferingCompleted",r.BUFFER_CLEARED="bufferCleared",r.BYTES_APPENDED_END_FRAGMENT="bytesAppendedEndFragment",r.BUFFER_REPLACEMENT_STARTED="bufferReplacementStarted",r.CHECK_FOR_EXISTENCE_COMPLETED="checkForExistenceCompleted",r.CMSD_STATIC_HEADER="cmsdStaticHeader",r.CURRENT_TRACK_CHANGED="currentTrackChanged",r.DATA_UPDATE_COMPLETED="dataUpdateCompleted",r.INBAND_EVENTS="inbandEvents",r.INITIAL_STREAM_SWITCH="initialStreamSwitch",r.INIT_FRAGMENT_LOADED="initFragmentLoaded",r.INIT_FRAGMENT_NEEDED="initFragmentNeeded",r.INTERNAL_MANIFEST_LOADED="internalManifestLoaded",r.ORIGINAL_MANIFEST_LOADED="originalManifestLoaded",r.LOADING_COMPLETED="loadingCompleted",r.LOADING_PROGRESS="loadingProgress",r.LOADING_DATA_PROGRESS="loadingDataProgress",r.LOADING_ABANDONED="loadingAborted",r.MANIFEST_UPDATED="manifestUpdated",r.MEDIA_FRAGMENT_LOADED="mediaFragmentLoaded",r.MEDIA_FRAGMENT_NEEDED="mediaFragmentNeeded",r.QUOTA_EXCEEDED="quotaExceeded",r.SEGMENT_LOCATION_BLACKLIST_ADD="segmentLocationBlacklistAdd",r.SEGMENT_LOCATION_BLACKLIST_CHANGED="segmentLocationBlacklistChanged",r.SERVICE_LOCATION_BASE_URL_BLACKLIST_ADD="serviceLocationBlacklistAdd",r.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED="serviceLocationBlacklistChanged",r.SERVICE_LOCATION_LOCATION_BLACKLIST_ADD="serviceLocationLocationBlacklistAdd",r.SERVICE_LOCATION_LOCATION_BLACKLIST_CHANGED="serviceLocationLocationBlacklistChanged",r.SET_FRAGMENTED_TEXT_AFTER_DISABLED="setFragmentedTextAfterDisabled",r.SET_NON_FRAGMENTED_TEXT="setNonFragmentedText",r.SOURCE_BUFFER_ERROR="sourceBufferError",r.STREAMS_COMPOSED="streamsComposed",r.STREAM_BUFFERING_COMPLETED="streamBufferingCompleted",r.STREAM_REQUESTING_COMPLETED="streamRequestingCompleted",r.TEXT_TRACKS_QUEUE_INITIALIZED="textTracksQueueInitialized",r.TIME_SYNCHRONIZATION_COMPLETED="timeSynchronizationComplete",r.UPDATE_TIME_SYNC_OFFSET="updateTimeSyncOffset",r.URL_RESOLUTION_FAILED="urlResolutionFailed",r.VIDEO_CHUNK_RECEIVED="videoChunkReceived",r.WALLCLOCK_TIME_UPDATED="wallclockTimeUpdated",r.XLINK_ELEMENT_LOADED="xlinkElementLoaded",r.XLINK_READY="xlinkReady",r.SEEK_TARGET="seekTarget",r.SETTING_UPDATED_LIVE_DELAY="settingUpdatedLiveDelay",r.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT="settingUpdatedLiveDelayFragmentCount",r.SETTING_UPDATED_CATCHUP_ENABLED="settingUpdatedCatchupEnabled",r.SETTING_UPDATED_PLAYBACK_RATE_MIN="settingUpdatedPlaybackRateMin",r.SETTING_UPDATED_PLAYBACK_RATE_MAX="settingUpdatedPlaybackRateMax",r}return(function(r,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(m&&m.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),m&&_(r,m)})(h,i),g=h,Object.defineProperty(g,"prototype",{writable:!1}),g;var g})(M(9656).A);Le.A=y},4865:function(vt,Le,M){function ce(h){return ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},ce(h)}function I(h,g,r){return g=n(g),(function(m,d){if(d&&(ce(d)=="object"||typeof d=="function"))return d;if(d!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T})(m)})(h,u()?Reflect.construct(g,r||[],n(h).constructor):g.apply(h,r))}function u(){try{var h=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(u=function(){return!!h})()}function n(h){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(g){return g.__proto__||Object.getPrototypeOf(g)},n(h)}function _(h,g){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,m){return r.__proto__=m,r},_(h,g)}var y=(function(h){function g(){return(function(m,d){if(!(m instanceof d))throw new TypeError("Cannot call a class as a function")})(this,g),I(this,g,arguments)}return(function(m,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(d&&d.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),d&&_(m,d)})(g,h),r=g,Object.defineProperty(r,"prototype",{writable:!1}),r;var r})(M(3426).A),i=new y;Le.A=i},9656:function(vt,Le){function M(n){return M=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},M(n)}function ce(n,_){for(var y=0;y<_.length;y++){var i=_[y];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,I(i.key),i)}}function I(n){var _=(function(y){if(M(y)!="object"||!y)return y;var i=y[Symbol.toPrimitive];if(i!==void 0){var h=i.call(y,"string");if(M(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(y)})(n);return M(_)=="symbol"?_:_+""}var u=(function(){return n=function y(){(function(i,h){if(!(i instanceof h))throw new TypeError("Cannot call a class as a function")})(this,y)},(_=[{key:"extend",value:function(y,i){if(y){var h=!!i&&i.override,g=!!i&&i.publicOnly;for(var r in y)!y.hasOwnProperty(r)||this[r]&&!h||g&&y[r].indexOf("public_")===-1||(this[r]=y[r])}}}])&&ce(n.prototype,_),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,_})();Le.A=u},2945:function(vt,Le,M){var ce=M(2686),I=M(2756),u=M(5742),n=M(7547),_=M(284),y=M(5810);function i(h){var g,r,m,d,T,q=(h=h||{}).eventBus,W=h.debug,x=h.urlUtils,ne=h.type,O=h.streamInfo,J=h.segmentsController,pe=h.timelineConverter,G=h.baseURLController;function X(){return ne}function re(){m=null}function be(Se,Ne,He){var it,Ie,Oe=G.resolve(He.path),ft={};return Oe&&Ne!==Oe.url&&x.isRelative(Ne)?(it=Oe.url,Ie=Oe.serviceLocation,ft=Oe.queryParams,Ne&&(it=x.resolve(Ne,it))):it=Ne,!x.isRelative(it)&&(Se.url=it,Se.serviceLocation=Ie,Se.queryParams=ft,!0)}function Ue(Se,Ne){if(Ne==null)return null;var He=new ce.A,it=Ne.representation,Ie=it.adaptation.period.mpd.manifest.Period_asArray[it.adaptation.period.index].AdaptationSet_asArray[it.adaptation.index].Representation_asArray[it.index].bandwidth,Oe=Ne.media;return Oe=(0,_.XX)(Oe,"Number",Ne.replacementNumber),Oe=(0,_.XX)(Oe,"Time",Ne.replacementTime),Oe=(0,_.XX)(Oe,"Bandwidth",Ie),Oe=(0,_.dD)(Oe,it.id),Oe=(0,_.Dr)(Oe),He.mediaType=X(),He.type=I.G.MEDIA_SEGMENT_TYPE,He.range=Ne.mediaRange,He.startTime=Ne.presentationStartTime,He.mediaStartTime=Ne.mediaStartTime,He.duration=Ne.duration,He.timescale=it.timescale,He.availabilityStartTime=Ne.availabilityStartTime,He.availabilityEndTime=Ne.availabilityEndTime,He.availabilityTimeComplete=it.availabilityTimeComplete,He.wallStartTime=Ne.wallStartTime,He.quality=it.index,He.index=Ne.index,He.mediaInfo=Se,He.adaptationIndex=it.adaptation.index,He.representationId=it.id,be(He,Oe,it)?He:void 0}function me(Se,Ne,He){var it=null;if(!Ne||!Ne.segmentInfoType)return it;var Ie=J.getSegmentByTime(Ne,He);return Ie&&(m=Ie,r.debug("Index for time "+He+" is "+Ie.index),it=Ue(Se,Ie)),it}function le(Se,Ne,He){var it=null,Ie=J.getSegmentByIndex(Ne,He,m?m.mediaStartTime:-1);if(Ie)it=Ue(Se,Ie),m=Ie;else{if(d&&!T)return r.debug(X()+" No segment found at index: "+He+". Wait for next loop"),null;T=!0}return it}function je(){r.debug("Dynamic stream complete"),T=!0}return g={getCurrentIndex:function(){return m?m.index:-1},getInitRequest:function(Se,Ne){return Ne?(function(He,it,Ie){var Oe=new ce.A,ft=it.adaptation.period,At=ft.start;if(Oe.mediaType=Ie,Oe.type=I.G.INIT_SEGMENT_TYPE,Oe.range=it.range,Oe.availabilityStartTime=pe.calcAvailabilityStartTimeFromPresentationTime(At,it,d),Oe.availabilityEndTime=pe.calcAvailabilityEndTimeFromPresentationTime(At+ft.duration,it,d),Oe.quality=it.index,Oe.mediaInfo=He,Oe.representationId=it.id,be(Oe,it.initialization,it))return Oe.url=(0,_.XX)(Oe.url,"Bandwidth",it.bandwidth),Oe})(Se,Ne,X()):null},getNextSegmentRequest:function(Se,Ne){return Ne&&Ne.segmentInfoType?le(Se,Ne,m?m.index+1:0):null},getNextSegmentRequestIdempotent:function(Se,Ne){var He=m?m.index+1:0,it=J.getSegmentByIndex(Ne,He,m?m.mediaStartTime:-1);return it?Ue(Se,it):null},getSegmentRequestForTime:me,getStreamId:function(){return O.id},getStreamInfo:function(){return O},getType:X,getValidTimeAheadOfTargetTime:function(Se,Ne,He,it){try{if(isNaN(Se)||!Ne||!He)return NaN;if(Se<0&&(Se=0),isNaN(it)&&(it=.5),me(Ne,He,Se))return Se;if(He.adaptation.period.start+He.adaptation.period.duration<Se)return NaN;for(var Ie=isFinite(He.adaptation.period.duration)?He.adaptation.period.start+He.adaptation.period.duration:Se+30,Oe=Math.min(Se+it,Ie),ft=NaN,At=null;Oe<=Ie;){var Rt=null;if(Oe<=Ie&&(Rt=me(Ne,He,Oe)),Rt){ft=Oe,At=Rt;break}Oe+=it}if(At){var Pt=At.startTime+At.duration;return Se>At.startTime&&Pt-Se>it?Se:!isNaN(At.startTime)&&Se<At.startTime&&ft>At.startTime?At.startTime+.001:Math.min(Pt-it,ft)}return ft}catch{return NaN}},initialize:function(Se){d=Se,T=!1,J.initialize(Se)},isLastSegmentRequested:function(Se,Ne){return!Se||!m?!1:T?!0:!isFinite(Se.adaptation.period.duration)||m.presentationStartTime+m.duration>Ne?!1:Se.mediaFinishedInformation&&!isNaN(Se.mediaFinishedInformation.numberOfSegments)&&!isNaN(m.index)&&m.index>=Se.mediaFinishedInformation.numberOfSegments-1&&(!d||Se.segmentInfoType===y.A.SEGMENT_TEMPLATE||d&&Se.segmentInfoType===y.A.SEGMENT_LIST&&Se.adaptation.period.nextPeriodId)?!0:!!(d&&Se.adaptation.period.nextPeriodId&&Se.segmentInfoType===y.A.SEGMENT_TIMELINE&&Se.mediaFinishedInformation&&!isNaN(Se.mediaFinishedInformation.mediaTimeOfLastSignaledSegment)&&m&&!isNaN(m.mediaStartTime)&&!isNaN(m.duration)&&m.mediaStartTime+m.duration>=Se.mediaFinishedInformation.mediaTimeOfLastSignaledSegment-.05)},repeatSegmentRequest:function(Se,Ne){return Ne&&Ne.segmentInfoType?le(Se,Ne,m?m.index:0):null},reset:function(){re(),q.off(n.A.DYNAMIC_TO_STATIC,je,g)}},r=W.getLogger(g),re(),q.on(n.A.DYNAMIC_TO_STATIC,je,g),g}i.__dashjs_factory_name="DashHandler",Le.A=u.A.getClassFactory(i)},5810:function(vt,Le){function M(n){return M=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_){return typeof _}:function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},M(n)}function ce(n,_){for(var y=0;y<_.length;y++){var i=_[y];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,I(i.key),i)}}function I(n){var _=(function(y){if(M(y)!="object"||!y)return y;var i=y[Symbol.toPrimitive];if(i!==void 0){var h=i.call(y,"string");if(M(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(y)})(n);return M(_)=="symbol"?_:_+""}var u=new((function(){return n=function y(){(function(i,h){if(!(i instanceof h))throw new TypeError("Cannot call a class as a function")})(this,y),this.init()},(_=[{key:"init",value:function(){this.BASE_URL="BaseURL",this.SEGMENT_BASE="SegmentBase",this.SEGMENT_TEMPLATE="SegmentTemplate",this.SEGMENT_LIST="SegmentList",this.SEGMENT_URL="SegmentURL",this.SEGMENT_TIMELINE="SegmentTimeline",this.SEGMENT_PROFILES="segmentProfiles",this.ADAPTATION_SET="AdaptationSet",this.REPRESENTATION="Representation",this.REPRESENTATION_INDEX="RepresentationIndex",this.SUB_REPRESENTATION="SubRepresentation",this.INITIALIZATION="Initialization",this.INITIALIZATION_MINUS="initialization",this.MPD="MPD",this.PERIOD="Period",this.ASSET_IDENTIFIER="AssetIdentifier",this.EVENT_STREAM="EventStream",this.ID="id",this.PROFILES="profiles",this.SERVICE_LOCATION="serviceLocation",this.RANGE="range",this.INDEX="index",this.MEDIA="media",this.BYTE_RANGE="byteRange",this.INDEX_RANGE="indexRange",this.MEDIA_RANGE="mediaRange",this.VALUE="value",this.CONTENT_TYPE="contentType",this.MIME_TYPE="mimeType",this.BITSTREAM_SWITCHING="BitstreamSwitching",this.BITSTREAM_SWITCHING_MINUS="bitstreamSwitching",this.CODECS="codecs",this.DEPENDENCY_ID="dependencyId",this.MEDIA_STREAM_STRUCTURE_ID="mediaStreamStructureId",this.METRICS="Metrics",this.METRICS_MINUS="metrics",this.REPORTING="Reporting",this.WIDTH="width",this.HEIGHT="height",this.SAR="sar",this.FRAMERATE="frameRate",this.AUDIO_SAMPLING_RATE="audioSamplingRate",this.MAXIMUM_SAP_PERIOD="maximumSAPPeriod",this.START_WITH_SAP="startWithSAP",this.MAX_PLAYOUT_RATE="maxPlayoutRate",this.CODING_DEPENDENCY="codingDependency",this.SCAN_TYPE="scanType",this.FRAME_PACKING="FramePacking",this.AUDIO_CHANNEL_CONFIGURATION="AudioChannelConfiguration",this.CONTENT_PROTECTION="ContentProtection",this.ESSENTIAL_PROPERTY="EssentialProperty",this.ESSENTIAL_PROPERTY_ASARRAY="EssentialProperty_asArray",this.SUPPLEMENTAL_PROPERTY="SupplementalProperty",this.SUPPLEMENTAL_PROPERTY_ASARRAY="SupplementalProperty_asArray",this.INBAND_EVENT_STREAM="InbandEventStream",this.PRODUCER_REFERENCE_TIME="ProducerReferenceTime",this.INBAND="inband",this.TYPE="type",this.ACCESSIBILITY="Accessibility",this.ROLE="Role",this.RATING="Rating",this.CONTENT_COMPONENT="ContentComponent",this.SUBSET="Subset",this.LANG="lang",this.VIEWPOINT="Viewpoint",this.VIEWPOINT_ASARRAY="Viewpoint_asArray",this.ROLE_ASARRAY="Role_asArray",this.REPRESENTATION_ASARRAY="Representation_asArray",this.PRODUCERREFERENCETIME_ASARRAY="ProducerReferenceTime_asArray",this.ACCESSIBILITY_ASARRAY="Accessibility_asArray",this.AUDIOCHANNELCONFIGURATION_ASARRAY="AudioChannelConfiguration_asArray",this.CONTENTPROTECTION_ASARRAY="ContentProtection_asArray",this.MAIN="main",this.DYNAMIC="dynamic",this.STATIC="static",this.MEDIA_PRESENTATION_DURATION="mediaPresentationDuration",this.MINIMUM_UPDATE_PERIOD="minimumUpdatePeriod",this.CODEC_PRIVATE_DATA="codecPrivateData",this.BANDWITH="bandwidth",this.SOURCE_URL="sourceURL",this.TIMESCALE="timescale",this.DURATION="duration",this.START_NUMBER="startNumber",this.PRESENTATION_TIME_OFFSET="presentationTimeOffset",this.AVAILABILITY_START_TIME="availabilityStartTime",this.AVAILABILITY_END_TIME="availabilityEndTime",this.TIMESHIFT_BUFFER_DEPTH="timeShiftBufferDepth",this.MAX_SEGMENT_DURATION="maxSegmentDuration",this.PRESENTATION_TIME="presentationTime",this.MIN_BUFFER_TIME="minBufferTime",this.MAX_SUBSEGMENT_DURATION="maxSubsegmentDuration",this.START="start",this.AVAILABILITY_TIME_OFFSET="availabilityTimeOffset",this.AVAILABILITY_TIME_COMPLETE="availabilityTimeComplete",this.CENC_DEFAULT_KID="cenc:default_KID",this.DVB_PRIORITY="dvb:priority",this.DVB_WEIGHT="dvb:weight",this.DVB_URL="dvb:url",this.DVB_MIMETYPE="dvb:mimeType",this.DVB_FONTFAMILY="dvb:fontFamily",this.SUGGESTED_PRESENTATION_DELAY="suggestedPresentationDelay",this.SERVICE_DESCRIPTION="ServiceDescription",this.SERVICE_DESCRIPTION_SCOPE="Scope",this.SERVICE_DESCRIPTION_LATENCY="Latency",this.SERVICE_DESCRIPTION_PLAYBACK_RATE="PlaybackRate",this.SERVICE_DESCRIPTION_OPERATING_QUALITY="OperatingQuality",this.SERVICE_DESCRIPTION_OPERATING_BANDWIDTH="OperatingBandwidth",this.PATCH_LOCATION="PatchLocation",this.PATCH_LOCATION_AS_ARRAY="PatchLocation_asArray",this.LOCATION="Location",this.LOCATION_AS_ARRAY="Location_asArray",this.PUBLISH_TIME="publishTime",this.ORIGINAL_PUBLISH_TIME="originalPublishTime",this.ORIGINAL_MPD_ID="mpdId",this.WALL_CLOCK_TIME="wallClockTime",this.PRESENTATION_TIME="presentationTime",this.LABEL="Label",this.GROUP_LABEL="GroupLabel",this.CONTENT_STEERING="ContentSteering",this.CONTENT_STEERING_AS_ARRAY="ContentSteering_asArray",this.DEFAULT_SERVICE_LOCATION="defaultServiceLocation",this.QUERY_BEFORE_START="queryBeforeStart",this.CLIENT_REQUIREMENT="clientRequirement",this.TTL="ttl",this.CONTENT_STEERING_RESPONSE={VERSION:"VERSION",TTL:"TTL",RELOAD_URI:"RELOAD-URI",PATHWAY_PRIORITY:"PATHWAY-PRIORITY",PATHWAY_CLONES:"PATHWAY-CLONES",BASE_ID:"BASE-ID",ID:"ID",URI_REPLACEMENT:"URI-REPLACEMENT",HOST:"HOST",PARAMS:"PARAMS"},this.PRODUCER_REFERENCE_TIME_TYPE={ENCODER:"encoder",CAPTURED:"captured",APPLICATION:"application"},this.SEGMENT_ALIGNMENT="segmentAlignment",this.SUB_SEGMENT_ALIGNMENT="subsegmentAlignment"}}])&&ce(n.prototype,_),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,_})());Le.A=u},6849:function(vt,Le,M){var ce=M(5742),I=M(9569),u=M(9032),n=M(8610),_=M(8396);function y(h){h=h||{};var g,r,m=this.context,d=h.dashConstants,T=h.type,q=h.segmentBaseController;function W(x){return x?x.segments?r[d.SEGMENT_BASE]:r[x.segmentInfoType]:null}return g={initialize:function(x){r[d.SEGMENT_TIMELINE]=(0,I.A)(m).create(h,x),r[d.SEGMENT_TEMPLATE]=(0,u.A)(m).create(h,x),r[d.SEGMENT_LIST]=(0,n.A)(m).create(h,x),r[d.SEGMENT_BASE]=(0,_.A)(m).create(h,x)},updateInitData:function(x,ne){return ne?Promise.resolve():q.getSegmentBaseInitSegment({representation:x,mediaType:T})},updateSegmentData:function(x,ne){return ne?Promise.resolve():q.getSegmentList({mimeType:x.mimeType,representation:x,mediaType:T})},getSegmentByIndex:function(x,ne,O){var J=W(x);return J?J.getSegmentByIndex(x,ne,O):null},getSegmentByTime:function(x,ne){var O=W(x);return O?O.getSegmentByTime(x,ne):null},getMediaFinishedInformation:function(x){var ne=W(x);return ne?ne.getMediaFinishedInformation(x):{numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN}}},r={},g}y.__dashjs_factory_name="SegmentsController";var i=ce.A.getClassFactory(y);Le.A=i},8610:function(vt,Le,M){var ce=M(5742),I=M(7256),u=M(284);function n(y,i){var h=(y=y||{}).timelineConverter;function g(){if(!h||!h.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(I.A.MISSING_CONFIG_ERROR)}function r(m,d){if(g(),!m)return null;var T=m.adaptation.period.mpd.manifest.Period_asArray[m.adaptation.period.index].AdaptationSet_asArray[m.adaptation.index].Representation_asArray[m.index].SegmentList,q=T.SegmentURL_asArray.length,W=m&&!isNaN(m.startNumber)?m.startNumber:1,x=Math.max(W-1,0),ne=Math.max(d-x,0),O=null;if(ne<q){var J=T.SegmentURL_asArray[ne];(O=(0,u.L$)(h,i,m,d))&&(O.replacementTime=(W+d-1)*m.segmentDuration,O.media=J.media?J.media:"",O.mediaRange=J.mediaRange,O.indexRange=J.indexRange)}return O}return{getSegmentByIndex:r,getSegmentByTime:function(m,d){if(g(),!m)return null;var T=m.segmentDuration;if(isNaN(T))return null;var q=h.calcPeriodRelativeTimeFromMpdRelativeTime(m,d);return r(m,Math.floor(q/T))},getMediaFinishedInformation:function(m){var d={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN};if(!m)return d;var T=m.adaptation.period.mpd.manifest.Period_asArray[m.adaptation.period.index].AdaptationSet_asArray[m.adaptation.index].Representation_asArray[m.index].SegmentList,q=m&&!isNaN(m.startNumber)?m.startNumber:1,W=Math.max(q-1,0);return d.numberOfSegments=W+T.SegmentURL_asArray.length,d}}}n.__dashjs_factory_name="ListSegmentsGetter";var _=ce.A.getClassFactory(n);Le.A=_},8396:function(vt,Le,M){var ce=M(5742),I=M(7256);function u(_){var y=(_=_||{}).timelineConverter;function i(){if(!y||!y.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(I.A.MISSING_CONFIG_ERROR)}function h(g,r){if(i(),!g)return null;var m,d=g.segments?g.segments.length:-1;if(r<d&&(m=g.segments[r])&&m.index===r)return m;for(var T=0;T<d;T++)if((m=g.segments[T])&&m.index===r)return m;return null}return{getSegmentByIndex:h,getSegmentByTime:function(g,r){i();var m=(function(d,T){if(!d)return-1;var q,W,x,ne,O,J=d.segments,pe=J?J.length:null,G=-1;if(J&&pe>0){for(O=0;O<pe;O++)if(x=(W=J[O]).presentationStartTime,T+(q=(ne=W.duration)/2)>=x&&T-q<x+ne){G=W.index;break}}return G})(g,r);return h(g,m)},getMediaFinishedInformation:function(g){var r={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN};return g&&g.segments&&(r.numberOfSegments=g.segments.length),r}}}u.__dashjs_factory_name="SegmentBaseGetter";var n=ce.A.getClassFactory(u);Le.A=n},284:function(vt,Le,M){M.d(Le,{Dr:function(){return u},L$:function(){return h},W$:function(){return g},XX:function(){return _},dD:function(){return n}});var ce=M(5708);function I(r,m){for(;r.length<m;)r="0"+r;return r}function u(r){return r&&r.split("$$").join("$")}function n(r,m){if(!m||!r||r.indexOf("$RepresentationID$")===-1)return r;var d=m.toString();return r.split("$RepresentationID$").join(d)}function _(r,m,d){var T,q,W,x,ne,O,J=m.length;if(!r)return r;for(;;){if((T=r.indexOf("$"+m))<0||(q=r.indexOf("$",T+J))<0)return r;if((W=r.indexOf("%0",T+J))>T&&W<q)switch(x=r.charAt(q-1),ne=parseInt(r.substring(W+2,q-1),10),x){case"d":case"i":case"u":O=I(d.toString(),ne);break;case"x":O=I(d.toString(16),ne);break;case"X":O=I(d.toString(16),ne).toUpperCase();break;case"o":O=I(d.toString(8),ne);break;default:return r}else O=d;r=r.substring(0,T)+O+r.substring(q+1)}}function y(r,m,d,T,q,W,x,ne){var O,J=new ce.A;return J.representation=r,J.duration=m,J.presentationStartTime=d,J.mediaStartTime=T,J.availabilityStartTime=q.calcAvailabilityStartTimeFromPresentationTime(W,r,x),J.availabilityEndTime=q.calcAvailabilityEndTimeFromPresentationTime(W+m,r,x),J.wallStartTime=q.calcWallTimeForSegment(J,x),J.replacementNumber=(O=ne,J.representation.startNumber+O),J.index=ne,J}function i(r,m,d,T){var q=m.adaptation.period;if(isFinite(q.duration)&&q.start+q.duration<=d.presentationStartTime)return!1;if(T){if(m.availabilityTimeOffset==="INF")return!0;var W=r.getClientReferenceTime();return d.availabilityStartTime.getTime()<=W&&(!isFinite(d.availabilityEndTime)||d.availabilityEndTime.getTime()>=W)}return!0}function h(r,m,d,T){var q,W,x;q=d.segmentDuration,isNaN(q)&&(q=d.adaptation.period.duration),W=parseFloat((d.adaptation.period.start+T*q).toFixed(5)),x=parseFloat((W+q).toFixed(5));var ne=y(d,q,W,r.calcMediaTimeFromPresentationTime(W,d),r,x,m,T);return i(r,d,ne,m)?ne:null}function g(r,m,d,T,q,W,x,ne,O,J){var pe,G,X=T/W,re=q/W;return pe=r.calcPresentationTimeFromMediaTime(X,d),i(r,d,G=y(d,re,pe,X,r,pe+re,m,O),m)?(G.replacementTime=J||T,x=_(x,"Number",G.replacementNumber),x=_(x,"Time",G.replacementTime),G.media=x,G.mediaRange=ne,G):null}},9032:function(vt,Le,M){var ce=M(5742),I=M(7256),u=M(284);function n(y,i){var h=(y=y||{}).timelineConverter;function g(){if(!h||!h.hasOwnProperty("calcPeriodRelativeTimeFromMpdRelativeTime"))throw new Error(I.A.MISSING_CONFIG_ERROR)}function r(m,d){if(g(),!m)return null;var T=m.adaptation.period.mpd.manifest.Period_asArray[m.adaptation.period.index].AdaptationSet_asArray[m.adaptation.index].Representation_asArray[m.index].SegmentTemplate;d=Math.max(d,0);var q=(0,u.L$)(h,i,m,d);if(q){q.replacementTime=Math.round((d-1)*m.segmentDuration*m.timescale,10);var W=T.media;W=(0,u.XX)(W,"Number",q.replacementNumber),W=(0,u.XX)(W,"Time",q.replacementTime),q.media=W}return q}return{getSegmentByIndex:r,getSegmentByTime:function(m,d){if(g(),!m)return null;var T=m.segmentDuration;if(isNaN(T))return null;var q=h.calcPeriodRelativeTimeFromMpdRelativeTime(m,d);return r(m,Math.floor(q/T))},getMediaFinishedInformation:function(m){var d={numberOfSegments:0,mediaTimeOfLastSignaledSegment:NaN};if(!m)return d;var T=m.segmentDuration;return isNaN(T)?d.numberOfSegments=1:d.numberOfSegments=Math.ceil(m.adaptation.period.duration/T),d}}}n.__dashjs_factory_name="TemplateSegmentsGetter";var _=ce.A.getClassFactory(n);Le.A=_},9569:function(vt,Le,M){var ce=M(5742),I=M(7256),u=M(284);function n(y,i){var h=(y=y||{}).timelineConverter,g=y.dashMetrics;function r(){if(!h)throw new Error(I.A.MISSING_CONFIG_ERROR)}function m(T,q){var W,x,ne,O,J,pe,G,X=T.adaptation.period.mpd.manifest.Period_asArray[T.adaptation.period.index].AdaptationSet_asArray[T.adaptation.index].Representation_asArray[T.index].SegmentTemplate||T.adaptation.period.mpd.manifest.Period_asArray[T.adaptation.period.index].AdaptationSet_asArray[T.adaptation.index].Representation_asArray[T.index].SegmentList,re=X.SegmentTimeline,be=X.SegmentURL_asArray,Ue=0,me=-1;G=T.timescale;var le=!1;for(ne=0,O=(W=re.S_asArray).length;ne<O&&!le;ne++)for(pe=0,(x=W[ne]).hasOwnProperty("r")&&(pe=x.r),x.hasOwnProperty("t")&&(Ue=x.t),pe<0&&(pe=d(T,W[ne+1],x,G,Ue/G)),J=0;J<=pe&&!le;J++)(le=q(Ue,X,be,x,G,++me,ne))&&(T.segmentDuration=x.d/G),Ue+=x.d}function d(T,q,W,x,ne){var O;if(q&&q.hasOwnProperty("t"))O=q.t/x;else try{var J=0;if(isNaN(T.adaptation.period.start)||isNaN(T.adaptation.period.duration)||!isFinite(T.adaptation.period.duration)){var pe=g.getCurrentDVRInfo();J=isNaN(pe.end)?0:pe.end}else J=T.adaptation.period.start+T.adaptation.period.duration;O=h.calcMediaTimeFromPresentationTime(J,T),T.segmentDuration=W.d/x}catch{O=0}return Math.max(Math.ceil((O-ne)/(W.d/x))-1,0)}return{getSegmentByIndex:function(T,q,W){if(r(),!T)return null;var x=null,ne=!1;return m(T,(function(O,J,pe,G,X,re,be){if(ne||W<0){var Ue=J.media,me=G.mediaRange;return pe&&(Ue=pe[be].media||"",me=pe[be].mediaRange),x=(0,u.W$)(h,i,T,O,G.d,X,Ue,me,re,G.tManifest),!0}return O>=W*X-.5*G.d&&(ne=!0),!1})),x},getSegmentByTime:function(T,q){if(r(),!T)return null;q===void 0&&(q=null);var W=null,x=h.calcMediaTimeFromPresentationTime(q,T);return m(T,(function(ne,O,J,pe,G,X,re){var be=parseFloat((x*G).toPrecision(15));if(be<ne+pe.d&&be>=ne){var Ue=O.media,me=pe.mediaRange;return J&&(Ue=J[re].media||"",me=J[re].mediaRange),W=(0,u.W$)(h,i,T,ne,pe.d,G,Ue,me,X,pe.tManifest),!0}return!1})),W},getMediaFinishedInformation:function(T){if(!T)return 0;var q,W,x,ne,O,J,pe,G=(T.adaptation.period.mpd.manifest.Period_asArray[T.adaptation.period.index].AdaptationSet_asArray[T.adaptation.index].Representation_asArray[T.index].SegmentTemplate||T.adaptation.period.mpd.manifest.Period_asArray[T.adaptation.period.index].AdaptationSet_asArray[T.adaptation.index].Representation_asArray[T.index].SegmentList).SegmentTimeline,X=0,re=0,be=0;for(pe=T.timescale,ne=(q=G.S_asArray).length,x=0;x<ne;x++)for(J=0,(W=q[x]).hasOwnProperty("r")&&(J=W.r),W.hasOwnProperty("t")&&(re=(X=W.t)/pe),J<0&&(J=d(T,q[x+1],W,pe,re)),O=0;O<=J;O++)be++,re=(X+=W.d)/pe;return{numberOfSegments:be,mediaTimeOfLastSignaledSegment:re}}}}n.__dashjs_factory_name="TimelineSegmentsGetter";var _=ce.A.getClassFactory(n);Le.A=_},5708:function(vt,Le){function M(I,u,n){return Object.defineProperty(I,"prototype",{writable:!1}),I}var ce=M((function I(){(function(u,n){if(!(u instanceof n))throw new TypeError("Cannot call a class as a function")})(this,I),this.indexRange=null,this.index=null,this.mediaRange=null,this.media=null,this.duration=NaN,this.replacementTime=null,this.replacementNumber=NaN,this.mediaStartTime=NaN,this.presentationStartTime=NaN,this.availabilityStartTime=NaN,this.availabilityEndTime=NaN,this.wallStartTime=NaN,this.representation=null}));Le.A=ce},289:function(vt,Le){function M(I,u,n){return Object.defineProperty(I,"prototype",{writable:!1}),I}var ce=M((function I(){(function(u,n){if(!(u instanceof n))throw new TypeError("Cannot call a class as a function")})(this,I),this.schemeIdUri="",this.value=""}));Le.A=ce},4716:function(vt,Le,M){M.d(Le,{A:function(){return rl}});var ce=M(4947),I=M.n(ce),u=M(7256),n=M(5810),_=M(1991),y=M(8366),i=M(4865),h=M(5742),g=M(4413),r=M(7547);function m(){var t,e,o,l,p,C,b,F,U,H,B,w,j,k,se,ie,he,oe,te,Z,K,z,f,N,S,L=this.context,R=(0,y.A)(L).getInstance();function V(){$(),k=!1,H=0,B=0,he=0,f=!1,oe=!0,te=!1,N=!1,Z=NaN,ie=NaN,b&&(R.off(i.A.DATA_UPDATE_COMPLETED,ct,t),R.off(i.A.LOADING_PROGRESS,Fe,t),R.off(i.A.MANIFEST_UPDATED,lt,t),R.off(i.A.STREAMS_COMPOSED,ye,t),R.off(r.A.PLAYBACK_ENDED,Zt,t),R.off(r.A.STREAM_INITIALIZING,xe,t),R.off(r.A.REPRESENTATION_SWITCH,Ge,t),R.off(r.A.BUFFER_LEVEL_STATE_CHANGED,ht,t),Pe(),b.removeEventListener("canplay",Ke),b.removeEventListener("canplaythrough",yt),b.removeEventListener("play",dt),b.removeEventListener("waiting",qt),b.removeEventListener("playing",Yt),b.removeEventListener("pause",sn),b.removeEventListener("error",pt),b.removeEventListener("seeking",ln),b.removeEventListener("seeked",ke),b.removeEventListener("timeupdate",ut),b.removeEventListener("progress",tt),b.removeEventListener("ratechange",gt),b.removeEventListener("loadedmetadata",Dt),b.removeEventListener("loadeddata",Vt),b.removeEventListener("stalled",st),b.removeEventListener("ended",Gt),b.removeEventListener("volumechange",Kt)),U=null,b=null,w=null,j=null}function de(){return parseFloat((ue(arguments.length>0&&arguments[0]!==void 0?arguments[0]:null)-fe()).toFixed(5))}function ue(Te){var We=Te||w;return We.start+We.duration}function P(){var Te=arguments.length>0&&arguments[0]!==void 0&&arguments[0];w&&b&&b.getElement()?(Te&&j&&ve(fe()),b.play()):k=!0}function $(){w&&b&&b.pause()}function Y(Te){var We=arguments.length>1&&arguments[1]!==void 0&&arguments[1],wt=arguments.length>2&&arguments[2]!==void 0&&arguments[2],jt=arguments.length>3&&arguments[3]!==void 0&&arguments[3];w&&b&&b.getElement()&&Te!==(isNaN(Z)?b.getTime():Z)&&((K=wt===!0)||(Z=Te),e.info("Requesting seek to time: "+Te+(K?" (internal)":"")),j&&jt&&ve(Te),b.setCurrentTime(Te,We))}function ge(){if(w&&b&&j){var Te=o&&o.hasVideoTrack()?u.A.VIDEO:u.A.AUDIO,We=p.getCurrentDVRInfo(Te);return We&&We.range?We.range.end:0}}function ve(Te){var We=new Date(F.getClientReferenceTime()),wt=C.getRegularPeriods()[0],jt=F.calcPresentationTimeFromWallTime(We,wt);H=jt-Te}function fe(){return w&&b?b.getTime():null}function Ce(){return w&&b?b.isPaused():null}function Me(){return w&&b?b.isSeeking():null}function Qe(){return w&&b?b.isStalled():null}function $e(){return w&&b?b.getPlaybackRate():null}function Ze(){return w&&b?b.getEnded():null}function at(){return j}function Nt(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(!Ce()&&j&&b.getReadyState()!==0&&!Me()&&!f){Te||(Te=o.hasVideoTrack()?u.A.VIDEO:u.A.AUDIO);var We=fe(),wt=(function(jt,hn){var En=p.getCurrentDVRInfo(hn),dn=En?En.range:null;return dn?jt>dn.end?Math.max(dn.end-H,dn.start):jt>0&&jt+.25<dn.start&&Math.abs(jt-dn.start)<31536e4?te?Math.max(dn.end-H,dn.start):dn.start:jt:NaN})(We,Te);!isNaN(wt)&&wt!==We&&!Me()&&(Qe()||z||b.getReadyState()===1)&&(e.debug("UpdateCurrentTime: Seek to actual time: ".concat(wt," from currentTime: ").concat(We)),Y(wt,!1,!1))}}function Ee(){U===null&&(U=setInterval((function(){(function(){if(R.trigger(i.A.WALLCLOCK_TIME_UPDATED,{isDynamic:j,time:new Date}),at()){var Te=Date.now();(isNaN(ie)||Te>ie+S.get().streaming.liveUpdateTimeThresholdInMilliseconds)&&(o.addDVRMetric(),Ce()?(function(){var We=Date.now();(!se||We>se+500)&&(se=We,ut())})():Nt(),ie=Te)}})()}),S.get().streaming.wallclockTimeUpdateInterval))}function Pe(){clearInterval(U),U=null}function ct(Te){var We=C.convertRepresentationToRepresentationInfo(Te.currentRepresentation),wt=We?We.mediaInfo.streamInfo:null;wt!==null&&w.id===wt.id&&(w=wt)}function Ke(){R.trigger(i.A.CAN_PLAY)}function yt(){R.trigger(i.A.CAN_PLAY_THROUGH)}function ht(Te){Te.streamId===o.getActiveStreamInfo().id&&(z=Te.state===_.A.BUFFER_EMPTY,S.get().streaming.buffer.setStallState&&b.setStallState(Te.mediaType,Te.state===_.A.BUFFER_EMPTY))}function dt(){e.info("Native video element event: play"),Nt(),Ee(),R.trigger(i.A.PLAYBACK_STARTED,{startTime:fe()})}function qt(){e.info("Native video element event: waiting"),R.trigger(i.A.PLAYBACK_WAITING,{playingTime:fe()})}function Yt(){e.info("Native video element event: playing"),K=!1,R.trigger(i.A.PLAYBACK_PLAYING,{playingTime:fe()})}function sn(){e.info("Native video element event: pause"),R.trigger(i.A.PLAYBACK_PAUSED,{ended:Ze()})}function ln(){if(!K){var Te=fe();isNaN(Z)||Z===Te||(Te=Z),Z=NaN,e.info("Seeking to: "+Te),Ee(),R.trigger(i.A.PLAYBACK_SEEKING,{seekTime:Te,streamId:w.id})}}function ke(){e.info("Native video element event: seeked"),K=!1,R.trigger(i.A.PLAYBACK_SEEKED)}function ut(){w&&R.trigger(i.A.PLAYBACK_TIME_UPDATED,{timeToEnd:de(),time:fe(),streamId:w.id})}function tt(){R.trigger(i.A.PLAYBACK_PROGRESS,{streamId:w.id})}function gt(){var Te=$e();e.info("Native video element event: ratechange: ",Te),R.trigger(i.A.PLAYBACK_RATE_CHANGED,{playbackRate:Te})}function Dt(){e.info("Native video element event: loadedmetadata"),R.trigger(i.A.PLAYBACK_METADATA_LOADED),Ee()}function Vt(){e.info("Native video element event: loadeddata"),R.trigger(i.A.PLAYBACK_LOADED_DATA)}function Gt(){e.info("Native video element event: ended"),$(),Pe();var Te=o?o.getActiveStreamInfo():null;Te&&R.trigger(i.A.PLAYBACK_ENDED,{isLast:Te.isLast})}function Kt(){R.trigger(i.A.PLAYBACK_VOLUME_CHANGED)}function Zt(Te){if(U&&Te.isLast){e.info("onPlaybackEnded -- PLAYBACK_ENDED but native video element didn't fire ended");var We=Te.seekTime?Te.seekTime:ue();b.setCurrentTime(We),$(),Pe()}}function pt(Te){var We=Te.target||Te.srcElement;R.trigger(i.A.PLAYBACK_ERROR,{error:We.error})}function Ot(){j=!1}function Fe(Te){if(Te.stream===!1&&te&&!isNaN(Te.request.duration)){var We=1.2*Te.request.duration;We>H&&(e.warn("Browser does not support fetch API with StreamReader. Increasing live delay to be 20% higher than segment duration:",We.toFixed(2)),H=We,B=We)}}function st(Te){R.trigger(i.A.PLAYBACK_STALLED,{e:Te})}function xe(Te){var We;(We=Te.mediaInfo)&&We.supplementalProperties&&We.supplementalProperties[u.A.SUPPLEMENTAL_PROPERTY_DVB_LL_SCHEME]&&We.supplementalProperties[u.A.SUPPLEMENTAL_PROPERTY_DVB_LL_SCHEME].value==="true"&&(e.debug("Low Latency critical SupplementalProperty set: Enabling low Latency"),te=!0)}function Ge(Te){var We=o.getActiveStreamInfo();Te&&We&&Te.currentRepresentation&&Te.streamId&&Te.streamId===We.id&&Te.mediaType&&(Te.mediaType===u.A.VIDEO||Te.mediaType===u.A.AUDIO)&&(oe=Te.currentRepresentation.availabilityTimeComplete,(te=!oe)&&!N&&(N=!0))}function lt(){f=!0}function ye(){f=!1}return t={initialize:function(Te,We){w=Te,We!==!0&&(b.addEventListener("canplay",Ke),b.addEventListener("canplaythrough",yt),b.addEventListener("play",dt),b.addEventListener("waiting",qt),b.addEventListener("playing",Yt),b.addEventListener("pause",sn),b.addEventListener("error",pt),b.addEventListener("seeking",ln),b.addEventListener("seeked",ke),b.addEventListener("timeupdate",ut),b.addEventListener("progress",tt),b.addEventListener("ratechange",gt),b.addEventListener("loadedmetadata",Dt),b.addEventListener("loadeddata",Vt),b.addEventListener("stalled",st),b.addEventListener("ended",Gt),b.addEventListener("volumechange",Kt),j=w.manifestInfo.isDynamic,z=!1,K=!1,R.on(i.A.DATA_UPDATE_COMPLETED,ct,t),R.on(i.A.LOADING_PROGRESS,Fe,t),R.on(i.A.MANIFEST_UPDATED,lt,t),R.on(i.A.STREAMS_COMPOSED,ye,t),R.on(r.A.PLAYBACK_ENDED,Zt,t,{priority:y.A.EVENT_PRIORITY_HIGH}),R.on(r.A.STREAM_INITIALIZING,xe,t),R.on(r.A.REPRESENTATION_SWITCH,Ge,t),R.on(r.A.BUFFER_LEVEL_STATE_CHANGED,ht,t),R.on(r.A.DYNAMIC_TO_STATIC,Ot,t),k&&(k=!1,P()))},setConfig:function(Te){Te&&(Te.streamController&&(o=Te.streamController),Te.serviceDescriptionController&&(l=Te.serviceDescriptionController),Te.dashMetrics&&(p=Te.dashMetrics),Te.adapter&&(C=Te.adapter),Te.videoModel&&(b=Te.videoModel),Te.timelineConverter&&(F=Te.timelineConverter),Te.settings&&(S=Te.settings))},getTimeToStreamEnd:de,getBufferLevel:function(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,We=null;return o.getActiveStreamProcessors().forEach((function(wt){if(!Te||Te.length===0||Te.indexOf(wt.getType())===-1){var jt=wt.getBufferLevel();We=We===null?jt:Math.min(We,jt)}})),We},getPlaybackStalled:function(){return z},getTime:fe,getLowLatencyModeEnabled:function(){return te},getInitialCatchupModeActivated:function(){return N},getIsManifestUpdateInProgress:function(){return f},getPlaybackRate:$e,getPlayedRanges:function(){return w&&b?b.getPlayedRanges():null},getEnded:Ze,getIsDynamic:at,getStreamController:function(){return o},computeAndSetLiveDelay:function(Te,We){var wt,jt,hn,En=!isNaN(Te)&&isFinite(Te)?Te:NaN,dn=C.getSuggestedPresentationDelay(),qn=l.getServiceDescriptionSettings();return wt=isNaN(S.get().streaming.delay.liveDelay)?S.get().streaming.delay.liveDelayFragmentCount===null||isNaN(S.get().streaming.delay.liveDelayFragmentCount)||isNaN(En)?qn&&!isNaN(qn.liveDelay)&&qn.liveDelay>0?qn.liveDelay:S.get().streaming.delay.useSuggestedPresentationDelay===!0&&dn!==null&&!isNaN(dn)&&dn>0?dn:isNaN(En)?We&&!isNaN(We.minBufferTime)?4*We.minBufferTime:4*w.manifestInfo.minBufferTime:4*En:En*S.get().streaming.delay.liveDelayFragmentCount:S.get().streaming.delay.liveDelay,(hn=C.getAvailabilityStartTime())!==null&&(he=hn),jt=We&&We.dvrWindowSize>0?Math.min(wt,We.dvrWindowSize):wt,H=jt,B=jt,jt},getLiveDelay:function(){return H},getOriginalLiveDelay:function(){return B},getCurrentLiveLatency:function(){if(!j||isNaN(he))return NaN;var Te=fe();if(isNaN(Te)||Te===0)return 0;var We=new Date().getTime()+1e3*F.getClientTimeOffset();return Math.max(((We-he-1e3*Te)/1e3).toFixed(3),0)},play:P,isPaused:Ce,isStalled:Qe,pause:$,isSeeking:Me,getStreamEndTime:ue,seek:Y,seekToOriginalLive:function(){var Te=arguments.length>0&&arguments[0]!==void 0&&arguments[0],We=arguments.length>1&&arguments[1]!==void 0&&arguments[1],wt=arguments.length>2&&arguments[2]!==void 0&&arguments[2],jt=ge();jt!==0&&Y(jt-(H=B),Te,We,wt)},seekToCurrentLive:function(){var Te=arguments.length>0&&arguments[0]!==void 0&&arguments[0],We=arguments.length>1&&arguments[1]!==void 0&&arguments[1],wt=arguments.length>2&&arguments[2]!==void 0&&arguments[2],jt=ge();jt!==0&&Y(jt-H,Te,We,wt)},reset:V,updateCurrentTime:Nt,getAvailabilityStartTime:function(){return he}},e=(0,g.A)(L).getInstance().getLogger(t),V(),t}m.__dashjs_factory_name="PlaybackController";var d=h.A.getSingletonFactory(m),T=M(2686),q="loading",W="executed",x="failed";function ne(t){var e,o,l,p,C=(t=t||{}).eventBus,b=t.events,F=t.dashMetrics,U=t.fragmentLoader,H=t.debug,B=t.streamInfo,w=t.type;function j(f){var N;return!!f&&(N=!1,l.some((function(S){if(L=f,R=S,!isNaN(L.index)&&L.startTime===R.startTime&&L.adaptationIndex===R.adaptationIndex&&L.type===R.type||(function(V,de){return isNaN(V.index)&&isNaN(de.index)&&V.quality===de.quality})(f,S)||(function(V,de){return V.action===T.A.ACTION_COMPLETE&&V.action===de.action})(f,S))return N=!0;var L,R})),N)}function k(f){return isNaN(f.duration)?.25:Math.min(f.duration/8,.5)}function se(f){l=l.filter((function(N){var S=k(N);return isNaN(N.startTime)||f!==void 0&&N.startTime>=f-S}))}function ie(f,N){N<=f+.5||(l=l.filter((function(S){var L=k(S);return isNaN(S.startTime)||S.startTime>=N-L||isNaN(S.duration)||S.startTime+S.duration<=f+L})))}function he(f,N,S){for(var L=f.length-1;L>=0;L--){var R=f[L],V=R.startTime,de=V+R.duration;if(S=isNaN(S)?k(R):S,!isNaN(V)&&!isNaN(de)&&N+S>=V&&N-S<de||isNaN(V)&&isNaN(N))return R}return null}function oe(f,N){F.addSchedulingInfo(f,N),F.addRequestsQueue(f.mediaType,p,l)}function te(f){f.sender===U&&(p.splice(p.indexOf(f.request),1),f.response&&!f.error&&l.push(f.request),oe(f.request,f.error?x:W),C.trigger(b.FRAGMENT_LOADING_COMPLETED,{request:f.request,response:f.response,error:f.error,sender:this},{streamId:B.id,mediaType:w}))}function Z(f){f.sender===U&&C.trigger(b.FRAGMENT_LOADING_PROGRESS,{request:f.request,response:f.response,error:f.error,sender:this},{streamId:B.id,mediaType:w})}function K(f){f.sender===U&&C.trigger(b.FRAGMENT_LOADING_ABANDONED,{request:f.request},{streamId:B.id,mediaType:w})}function z(){l=[],p=[]}return e={getStreamId:function(){return B.id},getType:function(){return w},getRequests:function(f){var N=f?f.state instanceof Array?f.state:[f.state]:[],S=[];return N.forEach((function(L){var R=(function(V){var de;switch(V){case q:de=p;break;case W:de=l;break;default:de=[]}return de})(L);S=S.concat((function(V,de){return de.hasOwnProperty("time")?[he(V,de.time,de.threshold)]:V.filter((function(ue){for(var P in de)if(P!=="state"&&de.hasOwnProperty(P)&&ue[P]!=de[P])return!1;return!0}))})(R,f))})),S},isFragmentLoaded:j,isFragmentLoadedOrPending:function(f){var N,S=!1,L=0;if(!(S=j(f)))for(L=0;L<p.length;L++)N=p[L],f.url===N.url&&f.startTime===N.startTime&&(S=!0);return S},removeExecutedRequestsBeforeTime:se,removeExecutedRequestsAfterTime:function(f){l=l.filter((function(N){return isNaN(N.startTime)||f!==void 0&&N.startTime<f}))},syncExecutedRequestsWithBufferedRange:function(f,N){if(f&&f.length!==0){for(var S=0,L=0,R=f.length;L<R;L++)ie(S,f.start(L)),S=f.end(L);N>0&&ie(S,N)}else se()},abortRequests:function(){o.debug("abort requests"),U.abort(),p=[]},executeRequest:function(f){f.action===T.A.ACTION_DOWNLOAD?(oe(f,q),p.push(f),(function(N){C.trigger(b.FRAGMENT_LOADING_STARTED,{request:N},{streamId:B.id,mediaType:w}),U.load(N)})(f)):o.warn("Unknown request action.")},reset:function(){C.off(b.LOADING_COMPLETED,te,this),C.off(b.LOADING_DATA_PROGRESS,Z,this),C.off(b.LOADING_ABANDONED,K,this),U&&U.reset(),z()},resetInitialSettings:z,addExecutedRequest:function(f){l.push(f)}},o=H.getLogger(e),z(),C.on(b.LOADING_COMPLETED,te,e),C.on(b.LOADING_DATA_PROGRESS,Z,e),C.on(b.LOADING_ABANDONED,K,e),e}ne.__dashjs_factory_name="FragmentModel";var O=h.A.getClassFactory(ne);O.FRAGMENT_MODEL_LOADING=q,O.FRAGMENT_MODEL_EXECUTED=W,O.FRAGMENT_MODEL_CANCELED="canceled",O.FRAGMENT_MODEL_FAILED=x,h.A.updateClassFactory(ne.__dashjs_factory_name,O);var J=O,pe=M(8324);function G(t){return G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(t)}function X(t,e,o){return e=be(e),(function(l,p){if(p&&(G(p)=="object"||typeof p=="function"))return p;if(p!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C})(l)})(t,re()?Reflect.construct(e,[],be(t).constructor):e.apply(t,o))}function re(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(re=function(){return!!t})()}function be(t){return be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},be(t)}function Ue(t,e){return Ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,l){return o.__proto__=l,o},Ue(t,e)}var me=new((function(t){function e(){var l;return(function(p,C){if(!(p instanceof C))throw new TypeError("Cannot call a class as a function")})(this,e),(l=X(this,e)).MANIFEST_LOADER_PARSING_FAILURE_ERROR_CODE=10,l.MANIFEST_LOADER_LOADING_FAILURE_ERROR_CODE=11,l.XLINK_LOADER_LOADING_FAILURE_ERROR_CODE=12,l.SEGMENT_BASE_LOADER_ERROR_CODE=15,l.TIME_SYNC_FAILED_ERROR_CODE=16,l.FRAGMENT_LOADER_LOADING_FAILURE_ERROR_CODE=17,l.FRAGMENT_LOADER_NULL_REQUEST_ERROR_CODE=18,l.URL_RESOLUTION_FAILED_GENERIC_ERROR_CODE=19,l.APPEND_ERROR_CODE=20,l.REMOVE_ERROR_CODE=21,l.DATA_UPDATE_FAILED_ERROR_CODE=22,l.CAPABILITY_MEDIASOURCE_ERROR_CODE=23,l.CAPABILITY_MEDIAKEYS_ERROR_CODE=24,l.DOWNLOAD_ERROR_ID_MANIFEST_CODE=25,l.DOWNLOAD_ERROR_ID_SIDX_CODE=26,l.DOWNLOAD_ERROR_ID_CONTENT_CODE=27,l.DOWNLOAD_ERROR_ID_INITIALIZATION_CODE=28,l.DOWNLOAD_ERROR_ID_XLINK_CODE=29,l.MANIFEST_ERROR_ID_PARSE_CODE=31,l.MANIFEST_ERROR_ID_NOSTREAMS_CODE=32,l.TIMED_TEXT_ERROR_ID_PARSE_CODE=33,l.MANIFEST_ERROR_ID_MULTIPLEXED_CODE=34,l.MEDIASOURCE_TYPE_UNSUPPORTED_CODE=35,l.MANIFEST_LOADER_PARSING_FAILURE_ERROR_MESSAGE="parsing failed for ",l.MANIFEST_LOADER_LOADING_FAILURE_ERROR_MESSAGE="Failed loading manifest: ",l.XLINK_LOADER_LOADING_FAILURE_ERROR_MESSAGE="Failed loading Xlink element: ",l.SEGMENTS_UPDATE_FAILED_ERROR_MESSAGE="Segments update failed",l.SEGMENTS_UNAVAILABLE_ERROR_MESSAGE="no segments are available yet",l.SEGMENT_BASE_LOADER_ERROR_MESSAGE="error loading segment ranges from sidx",l.TIME_SYNC_FAILED_ERROR_MESSAGE="Failed to synchronize client and server time",l.FRAGMENT_LOADER_NULL_REQUEST_ERROR_MESSAGE="request is null",l.URL_RESOLUTION_FAILED_GENERIC_ERROR_MESSAGE="Failed to resolve a valid URL",l.APPEND_ERROR_MESSAGE="chunk is not defined",l.REMOVE_ERROR_MESSAGE="Removing data from the SourceBuffer",l.DATA_UPDATE_FAILED_ERROR_MESSAGE="Data update failed",l.CAPABILITY_MEDIASOURCE_ERROR_MESSAGE="mediasource is not supported",l.CAPABILITY_MEDIAKEYS_ERROR_MESSAGE="mediakeys is not supported",l.TIMED_TEXT_ERROR_MESSAGE_PARSE="parsing error :",l.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE="Error creating source buffer of type : ",l}return(function(l,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(p&&p.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),Object.defineProperty(l,"prototype",{writable:!1}),p&&Ue(l,p)})(e,t),o=e,Object.defineProperty(o,"prototype",{writable:!1}),o;var o})(M(1840).A)),le=M(1657),je=M(2756);function Se(t){var e,o,l,p,C,b,F=this.context,U=(0,le.A)(F).getInstance(),H=t.textController,B=t.eventBus,w=[],j=[],k=!1,se=t.mediaSource,ie=null;function he(R){return new Promise((function(V){L((function(){p.changeType&&p.changeType(R),V()}))}))}function oe(R){return p=H.getTextSourceBuffer(R),Promise.resolve()}function te(){if(typeof p.addEventListener=="function")try{p.addEventListener("updateend",N,!1),p.addEventListener("error",S,!1),p.addEventListener("abort",S,!1)}catch{b=setInterval(N,50)}else b=setInterval(N,50)}function Z(R){return new Promise((function(V){p&&U.get().streaming.buffer.useAppendWindow?L((function(){try{if(!p)return void V();var de=se.duration,ue=0;R&&!isNaN(R.start)&&!isNaN(R.duration)&&isFinite(R.duration)&&(de=R.start+R.duration),R&&!isNaN(R.start)&&(ue=R.start),p.appendWindowEnd===de&&p.appendWindowStart===ue||(p.appendWindowStart=0,p.appendWindowEnd=de+.01,p.appendWindowStart=Math.max(ue-.1,0),l.debug("Updated append window for ".concat(C.type,". Set start to ").concat(p.appendWindowStart," and end to ").concat(p.appendWindowEnd))),V()}catch{l.warn("Failed to set append window"),V()}})):V()}))}function K(R){return new Promise((function(V){p?L((function(){try{p.timestampOffset===R||isNaN(R)||(p.timestampOffset=R,l.debug("Set MSE timestamp offset to ".concat(R))),V()}catch{V()}})):V()}))}function z(){if(!k&&j.length>0){k=!0;var R=j[0];j.splice(0,1);var V=function(){k=!1,j.length>0&&z.call(this),R&&R.data&&R.data.segmentType&&R.data.segmentType!==je.G.INIT_SEGMENT_TYPE&&delete R.data.bytes,R.promise.resolve({chunk:R.data})};try{ie=R.request,R.data.bytes.byteLength===0?V.call(this):(p.appendBuffer?p.appendBuffer(R.data.bytes):p.append(R.data.bytes,R.data),L(V.bind(this)))}catch(de){l.fatal('SourceBuffer append failed "'+de+'"'),j.length>0?z():k=!1,delete R.data.bytes,R.promise.reject({chunk:R.data,error:new pe.A(de.code,de.message)})}}}function f(){w.length>0&&(p.updating||(w.shift()(),f()))}function N(){p.updating||f()}function S(R){var V,de,ue=R.target||{};V=i.A.SOURCE_BUFFER_ERROR,de={error:ue,lastRequestAppended:ie},B.trigger(V,de,{streamId:C.streamInfo.id,mediaType:o})}function L(R){w.push(R),p.updating||f()}return e={getType:function(){return o},getAllBufferRanges:function(){try{return p.buffered}catch(R){return l.error("getAllBufferRanges exception: "+R.message),null}},getBuffer:function(){return p},append:function(R){var V=this,de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return new Promise((function(ue,P){R?(j.push({data:R,promise:{resolve:ue,reject:P},request:de}),L(z.bind(V))):P({chunk:R,error:new pe.A(me.APPEND_ERROR_CODE,me.APPEND_ERROR_MESSAGE)})}))},remove:function(R){return new Promise((function(V,de){var ue=R.start,P=R.end;ue>=0&&P>ue?L((function(){try{p.remove(ue,P),L((function(){V({from:ue,to:P,unintended:!1}),R.resolve&&R.resolve()}))}catch($){de({from:ue,to:P,unintended:!1,error:new pe.A(me.REMOVE_ERROR_CODE,me.REMOVE_ERROR_MESSAGE)}),R.reject&&R.reject($)}})):V()}))},abort:function(){return new Promise((function(R){try{j=[],se.readyState==="open"?L((function(){try{p&&p.abort(),R()}catch{R()}})):(p&&p.setTextTrack&&se.readyState==="ended"&&p.abort(),R())}catch{R()}}))},reset:function(){if(p){try{w=[],(function(){try{typeof p.removeEventListener=="function"&&(p.removeEventListener("updateend",N,!1),p.removeEventListener("error",S,!1),p.removeEventListener("abort",S,!1)),clearInterval(b)}catch(R){l.error(R)}})(),k=!1,j=[],p.getClassName&&p.getClassName()==="TextSourceBuffer"||(l.debug("Removing sourcebuffer from media source"),se.removeSourceBuffer(p))}catch{}p=null}ie=null},updateTimestampOffset:K,initializeForStreamSwitch:function(R,V,de){o=(C=R).type;var ue=C.codec;(function($){p=$.getBuffer()})(de),te();var P=[];return P.push(new Promise((function($){L((function(){var Y=p.appendWindowStart,ge=p.appendWindowEnd;p&&(p.abort(),p.appendWindowStart=Y,p.appendWindowEnd=ge),$()}))}))),P.push(Z(C.streamInfo)),U.get().streaming.buffer.useChangeTypeForTrackSwitch&&P.push(he(ue)),V&&V.MSETimeOffset!==void 0&&P.push(K(V.MSETimeOffset)),Promise.all(P)},initializeForFirstUse:function(R,V,de){o=(C=V).type;var ue=C.codec;try{if(ue.match(/application\/mp4;\s*codecs="(stpp|wvtt).*"/i))return oe(R);p=se.addSourceBuffer(ue),te();var P=[];return P.push(Z(C.streamInfo)),de&&de.MSETimeOffset!==void 0&&P.push(K(de.MSETimeOffset)),Promise.all(P)}catch($){return C.type==u.A.TEXT&&!C.isFragmented||ue.indexOf('codecs="stpp')!==-1||ue.indexOf('codecs="vtt')!==-1||ue.indexOf("text/vtt")!==-1?oe(R):Promise.reject($)}},updateAppendWindow:Z,changeType:he},l=(0,g.A)(F).getInstance().getLogger(e),e}Se.__dashjs_factory_name="SourceBufferSink";var Ne=h.A.getClassFactory(Se);function He(t){var e,o,l,p=this.context,C=[],b=t;function F(U,H){return C=C.filter((function(B){return!((isNaN(H)||B.start<H)&&(isNaN(U)||B.end>U))})),Promise.resolve()}return e={getAllBufferRanges:function(){for(var U=[],H=0;H<C.length;H++){var B=C[H];U.length===0||B.start>U[U.length-1].end?U.push({start:B.start,end:B.end}):U[U.length-1].end=B.end}var w={start:function(j){return U[j].start},end:function(j){return U[j].end}};return Object.defineProperty(w,"length",{get:function(){return U.length}}),w},append:function(U){return U.segmentType!=="InitializationSegment"?(C.push(U),C.sort((function(H,B){return H.start-B.start})),l=null):l=U,o.debug("PreBufferSink appended chunk s: "+U.start+"; e: "+U.end),b&&b({chunk:U}),Promise.resolve()},remove:F,abort:function(){return Promise.resolve()},discharge:function(U,H){var B=(function(w,j){return C.filter((function(k){return(isNaN(j)||k.start<j)&&(isNaN(w)||k.end>w)}))})(U,H);return l&&(B.push(l),l=null),F(U,H),B},reset:function(){C=[],l=null,b=null},updateTimestampOffset:function(){return Promise.resolve()},waitForUpdateEnd:function(U){U()},getBuffer:function(){return this}},o=(0,g.A)(p).getInstance().getLogger(e),e}He.__dashjs_factory_name="PreBufferSink";var it=h.A.getClassFactory(He);function Ie(){var t={};return{save:function(e){var o=e.streamId,l=e.representationId;t[o]=t[o]||{},t[o][l]=e},extract:function(e,o){return t&&t[e]&&t[e][o]?t[e][o]:null},reset:function(){t={}}}}Ie.__dashjs_factory_name="InitCache";var Oe=h.A.getSingletonFactory(Ie),ft=.01,At="BufferController";function Rt(t){t=t||{};var e,o,l,p,C,b,F,U,H,B,w,j,k,se,ie,he,oe,te,Z,K,z,f=this.context,N=(0,y.A)(f).getInstance(),S=t.errHandler,L=t.fragmentModel,R=t.representationController,V=t.adapter,de=t.textController,ue=t.abrController,P=t.playbackController,$=t.streamInfo,Y=t.type,ge=t.settings;function ve(xe){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return new Promise((function(lt,ye){b=xe,H&&Ge&&typeof H.discharge=="function"?(B=H,Ce(Ge).then((function(){lt()})).catch((function(Te){ye(Te)}))):lt()}))}function fe(xe){return V.convertRepresentationToRepresentationInfo(R.getRepresentationForQuality(xe))}function Ce(xe){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return new Promise((function(lt,ye){te&&xe?b?(w=!1,(function(Te,We){return new Promise((function(wt,jt){var hn=ue.getQualityFor(Y,$.id);H=Ne(f).create({mediaSource:b,textController:de,eventBus:N}),(function(En,dn,qn){var Pn=fe(qn);return dn&&dn[Y]&&(Y===u.A.VIDEO||Y===u.A.AUDIO)?H.initializeForStreamSwitch(En,Pn,dn[Y]):H.initializeForFirstUse($,En,Pn)})(Te,We,hn).then((function(){return gt(fe(hn))})).then((function(){wt(H)})).catch((function(En){o.fatal("Caught error on create SourceBuffer: "+En),S.error(new pe.A(me.MEDIASOURCE_TYPE_UNSUPPORTED_CODE,me.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE+Y)),jt(En)}))}))})(xe,Ge).then((function(Te){lt(Te)})).catch((function(Te){ye(Te)}))):(w=!0,(function(){var Te=this;return new Promise((function(We,wt){var jt=ue.getQualityFor(Y,$.id);H=it(f).create(at.bind(Te)),gt(fe(jt)).then((function(){We(H)})).catch((function(){wt()}))}))})().then((function(Te){lt(Te)})).catch((function(Te){ye(Te)}))):lt(null)}))}function Me(xe){ge.get().streaming.cacheInitSegments&&(o.info("Init fragment finished loading saving to",Y+"'s init cache"),te.save(xe.chunk)),o.debug("Append Init fragment",Y," with representationId:",xe.chunk.representationId," and quality:",xe.chunk.quality,", data size:",xe.chunk.bytes.byteLength),$e(xe.chunk)}function Qe(xe){$e(xe.chunk,xe.request)}function $e(xe){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;H&&(H.append(xe,Ge).then((function(lt){at(lt)})).catch((function(lt){at(lt)})),xe.mediaInfo.type===u.A.VIDEO&&Fe(i.A.VIDEO_CHUNK_RECEIVED,{chunk:xe}))}function Ze(xe){if(xe&&xe.length>0)for(var Ge=0,lt=xe.length;Ge<lt;Ge++)o.debug("Buffered range: "+xe.start(Ge)+" - "+xe.end(Ge)+", currentTime = ",P.getTime())}function at(xe){if(xe.error)return xe.error.code===22&&(function(){if(oe=!0,C=.8*Zt(),o.warn("Quota exceeded, Critical Buffer: "+C),C>0){var ye=Math.max(.2*C,1),Te=C-ye,We=Math.min(ge.get().streaming.buffer.bufferTimeAtTopQuality,.9*Te),wt=Math.min(ge.get().streaming.buffer.bufferTimeAtTopQualityLongForm,.9*Te),jt={streaming:{buffer:{bufferToKeep:parseFloat(ye.toFixed(5)),bufferTimeAtTopQuality:parseFloat(We.toFixed(5)),bufferTimeAtTopQualityLongForm:parseFloat(wt.toFixed(5))}}};ge.update(jt)}})(),void(xe.error.code!==22&&Ot()||(o.warn("Clearing playback buffer to overcome quota exceed situation"),Fe(i.A.QUOTA_EXCEEDED,{criticalBufferLevel:C,quotaExceededTime:xe.chunk.start}),ke(ln())));if(H&&(ht(),oe=!1,(se=xe.chunk)&&se.endFragment)){se&&!isNaN(se.index)&&(F=Math.max(se.index,F),dt());var Ge=H.getAllBufferRanges();se.segmentType===je.G.MEDIA_SEGMENT_TYPE&&(Ze(Ge),Pe(),(function(){if(!isNaN(z)&&!w)if(Y===u.A.AUDIO||Y===u.A.VIDEO){var ye=P.getTime(),Te=yt(ye,0),We=yt(z,0);if(Te&&We&&Te.start===We.start)z=NaN;else{var wt=R.getCurrentRepresentation().segmentDuration,jt=yt(z,wt);jt&&(ge.get().streaming.buffer.enableSeekDecorrelationFix&&Math.abs(ye-z)>wt?z<=jt.end&&P.seek(Math.max(z,jt.start),!1,!0):ye<jt.start&&P.seek(jt.start,!1,!0))}}else z=NaN})());var lt=!1;j&&(j.indexOf(se)>0&&(lt=!0),j=null),se&&!lt&&Fe(i.A.BYTES_APPENDED_END_FRAGMENT,{quality:se.quality,startTime:se.start,index:se.index,bufferedRanges:Ge,segmentType:se.segmentType,mediaType:Y})}}function Nt(){return new Promise((function(xe,Ge){var lt=Ee();if(!lt||lt.length===0)return Pe(),void xe();ke(lt).then((function(){xe()})).catch((function(ye){Ge(ye)}))}))}function Ee(xe){var Ge=[],lt=H.getAllBufferRanges();if(!lt||lt.length===0)return Ge;if(!xe&&xe!==0||isNaN(xe))Ge.push({start:lt.start(0),end:lt.end(lt.length-1)+.5});else{var ye=(function(We,wt){var jt=ge.get().streaming.buffer.bufferToKeep,hn=wt.start(0);if(We-hn>jt){var En=Math.max(0,We-jt),dn=L.getRequests({state:J.FRAGMENT_MODEL_EXECUTED,time:We,threshold:ft})[0];if(dn&&(En=Math.min(dn.startTime,En)),En>0)return{start:hn,end:En}}return null})(xe,lt),Te=(function(We,wt){var jt=wt.end(wt.length-1)+.5,hn=pt(We),En=$.manifestInfo.duration>=ge.get().streaming.buffer.longFormContentDurationThreshold?ge.get().streaming.buffer.bufferTimeAtTopQualityLongForm:ge.get().streaming.buffer.bufferTimeAtTopQuality,dn=isNaN(hn)?We:Math.min(hn,We+En);if(dn>=wt.end(wt.length-1))return null;var qn=L.getRequests({state:J.FRAGMENT_MODEL_EXECUTED,time:We,threshold:ft})[0];if(qn&&(dn=Math.max(qn.startTime+qn.duration,dn)),ge.get().streaming.buffer.avoidCurrentTimeRangePruning){for(var Pn=0;Pn<wt.length;Pn++)if(wt.start(Pn)<=We&&We<=wt.end(Pn)&&wt.start(Pn)<=dn&&dn<=wt.end(Pn)){var Zn=dn;dn=Pn+1<wt.length?wt.start(Pn+1):wt.end(Pn)+1,o.debug("Buffered range ["+wt.start(Pn)+", "+wt.end(Pn)+"] overlaps with targetTime "+We+" and range to be pruned ["+Zn+", "+jt+"], using ["+dn+", "+jt+"] instead"+(dn<jt?"":" (no actual pruning)"));break}}return dn<wt.end(wt.length-1)?{start:dn,end:jt}:null})(xe,lt);ye&&Ge.push(ye),Te&&Ge.push(Te)}return Ge}function Pe(){(!K||Y===u.A.TEXT&&de.isTextEnabled())&&ht()}function ct(){qt()}function Ke(){qt(),z=NaN}function yt(xe,Ge){if(!H)return null;var lt,ye,Te=H.getAllBufferRanges(),We=0,wt=0,jt=null,hn=null,En=0,dn=isNaN(Ge)?.15:Ge;if(Te!=null){for(ye=0,lt=Te.length;ye<lt;ye++)if(We=Te.start(ye),wt=Te.end(ye),jt===null)En=Math.abs(We-xe),(xe>=We&&xe<wt||En<=dn)&&(jt=We,hn=wt);else{if(!((En=We-hn)<=dn))break;hn=wt}if(jt!==null)return{start:jt,end:hn}}return null}function ht(){if(P){var xe=P.getTime()||0;w&&(xe=isNaN(z)?0:z);var Ge=ge.get().streaming.gaps.jumpGaps&&!isNaN(ge.get().streaming.gaps.smallGapLimit)?ge.get().streaming.gaps.smallGapLimit:NaN;p=Math.max((function(lt,ye){var Te;return ge.get().streaming.gaps.jumpGaps&&(ye=ge.get().streaming.gaps.smallGapLimit),(Te=yt(lt,ye))===null?0:Te.end-lt})(xe,Ge),0),Fe(i.A.BUFFER_LEVEL_UPDATED,{mediaType:Y,bufferLevel:p}),qt()}}function dt(){var xe=F>=U-1,Ge=P.getTimeToStreamEnd($)-p<1e-5;!xe&&!Ge||l||(Kt(!0),o.debug("checkIfBufferingCompleted trigger BUFFERING_COMPLETED for stream id ".concat($.id," and type ").concat(Y)))}function qt(){Y!==u.A.AUDIO&&Y!==u.A.VIDEO||((!P.getLowLatencyModeEnabled()&&p<ge.get().streaming.buffer.stallThreshold||p===0)&&!l?Yt(_.A.BUFFER_EMPTY):(l||p>=ge.get().streaming.buffer.stallThreshold||P.getLowLatencyModeEnabled()&&p>0)&&Yt(_.A.BUFFER_LOADED))}function Yt(xe){k===xe||xe===_.A.BUFFER_EMPTY&&P.getTime()===0||Y===u.A.TEXT&&!de.isTextEnabled()||(k=xe,Fe(i.A.BUFFER_LEVEL_STATE_CHANGED,{state:xe}),Fe(xe===_.A.BUFFER_LOADED?i.A.BUFFER_LOADED:i.A.BUFFER_EMPTY),o.debug(xe===_.A.BUFFER_LOADED?"Got enough buffer to start":"Waiting for more buffer before starting playback"))}function sn(){H&&Y!==u.A.TEXT&&(l||ke(ln()))}function ln(){var xe=[],Ge=H.getAllBufferRanges();if(!Ge||Ge.length===0)return xe;var lt=P.getTime(),ye=Math.max(0,lt-ge.get().streaming.buffer.bufferToKeep),Te=L.getRequests({state:J.FRAGMENT_MODEL_EXECUTED,time:lt,threshold:ft})[0];if(Te)ye=Math.min(Te.startTime,ye);else if(lt===0&&P.getIsDynamic())return[];if(Ge.start(0)<=ye){for(var We={start:0,end:ye},wt=0;wt<Ge.length&&Ge.end(wt)<=ye;wt++)We.end=Ge.end(wt);We.start<We.end&&xe.push(We)}return xe}function ke(xe){return new Promise((function(Ge,lt){if(xe&&H&&xe.length!==0){var ye=[];xe.forEach((function(Te){ye.push((function(We){return new Promise((function(wt,jt){We.resolve=wt,We.reject=jt,Z.push(We)}))})(Te))})),he||ut(),Promise.all(ye).then((function(){Ge()})).catch((function(Te){lt(Te)}))}else Ge()}))}function ut(){try{if(Z.length===0||!H)return o.debug("Nothing to prune, halt pruning"),Z=[],void(he=!1);var xe=H.getBuffer();if(!xe||!xe.buffered||xe.buffered.length===0)return o.debug("SourceBuffer is empty (or does not exist), halt pruning"),Z=[],void(he=!1);var Ge=Z.shift();o.debug("".concat(Y,": Removing buffer from: ").concat(Ge.start," to ").concat(Ge.end)),he=!0,P.getTime()<Ge.end&&Kt(!1),H.remove(Ge).then((function(lt){tt(lt)})).catch((function(lt){tt(lt)}))}catch{he=!1}}function tt(xe){o.debug("onRemoved buffer from:",xe.from,"to",xe.to),H&&(Ze(H.getAllBufferRanges()),Z.length===0&&(he=!1,ht()),xe.unintended&&(o.warn("Detected unintended removal from:",xe.from,"to",xe.to,"setting streamprocessor time to",xe.from),Fe(i.A.SEEK_TARGET,{time:xe.from})),he?ut():(K?K=!1:ht(),Fe(i.A.BUFFER_CLEARED,{from:xe.from,to:xe.to,unintended:xe.unintended,hasEnoughSpaceToAppend:Ot(),quotaExceeded:oe})))}function gt(xe){return new Promise((function(Ge){xe&&xe.MSETimeOffset!==void 0&&H&&H.updateTimestampOffset?H.updateTimestampOffset(xe.MSETimeOffset).then((function(){Ge()})).catch((function(){Ge()})):Ge()}))}function Dt(){return H&&!l?H.updateAppendWindow($):Promise.resolve()}function Vt(){++ie*(ge.get().streaming.wallclockTimeUpdateInterval/1e3)>=ge.get().streaming.buffer.bufferPruningInterval&&(ie=0,sn())}function Gt(){qt()}function Kt(xe){(l=xe)?Fe(i.A.BUFFERING_COMPLETED):U=Number.POSITIVE_INFINITY}function Zt(){try{var xe,Ge,lt=H.getAllBufferRanges(),ye=0;if(!lt)return ye;for(Ge=0,xe=lt.length;Ge<xe;Ge++)ye+=lt.end(Ge)-lt.start(Ge);return ye}catch{return 0}}function pt(xe){try{var Ge=xe,lt=H.getAllBufferRanges();if(!lt||lt.length===0)return NaN;for(var ye=0;Ge===xe&&ye<lt.length;){var Te=lt.start(ye),We=lt.end(ye);Ge>=Te&&Ge<=We&&(Ge=We),ye+=1}return Ge===xe?NaN:Ge}catch{}}function Ot(){var xe=Zt();return isNaN(xe)||xe<C}function Fe(xe,Ge){var lt=Ge||{};N.trigger(xe,lt,{streamId:$.id,mediaType:Y})}function st(xe,Ge){if(C=Number.POSITIVE_INFINITY,k=void 0,U=Number.POSITIVE_INFINITY,F=0,se=null,l=!1,he=!1,oe=!1,p=0,ie=0,Z=[],z=NaN,w=!1,H){var lt=H;H=null,xe||Ge||lt.abort().then((function(){lt.reset(Ge),lt=null}))}K=!1}return e={initialize:function(xe){ve(xe),N.on(i.A.INIT_FRAGMENT_LOADED,Me,e),N.on(i.A.MEDIA_FRAGMENT_LOADED,Qe,e),N.on(i.A.WALLCLOCK_TIME_UPDATED,Vt,e),N.on(r.A.PLAYBACK_PLAYING,Ke,e),N.on(r.A.PLAYBACK_PROGRESS,Pe,e),N.on(r.A.PLAYBACK_TIME_UPDATED,Pe,e),N.on(r.A.PLAYBACK_RATE_CHANGED,Gt,e),N.on(r.A.PLAYBACK_STALLED,ct,e)},getStreamId:function(){return $.id},getType:function(){return Y},getBufferControllerType:function(){return At},createBufferSink:Ce,dischargePreBuffer:function(){if(H&&B&&typeof B.discharge=="function"){var xe=B.getAllBufferRanges();if(xe.length>0){for(var Ge="Beginning "+Y+"PreBuffer discharge, adding buffer for:",lt=0;lt<xe.length;lt++)Ge+=" start: "+xe.start(lt)+", end: "+xe.end(lt)+";";o.debug(Ge)}else o.debug("PreBuffer discharge requested, but there were no media segments in the PreBuffer.");j=[];for(var ye=B.discharge(),Te=null,We=0;We<ye.length;We++){var wt=ye[We];if(wt.segmentType!==je.G.INIT_SEGMENT_TYPE){var jt=te.extract(wt.streamId,wt.representationId);jt&&Te!==jt&&(j.push(jt),H.append(jt),Te=jt)}j.push(wt),H.append(wt)}B.reset(),B=null}},getBuffer:function(){return H},getBufferLevel:function(){return p},getRangeAt:yt,hasBufferAtTime:function(xe){try{var Ge=H.getAllBufferRanges();if(!Ge||Ge.length===0)return!1;for(var lt=0;lt<Ge.length;){var ye=Ge.start(lt),Te=Ge.end(lt);if(xe>=ye&&xe<=Te)return!0;lt+=1}return!1}catch(We){return o.error(We),!1}},pruneBuffer:sn,setMediaSource:ve,getMediaSource:function(){return b},appendInitSegmentFromCache:function(xe){var Ge=te.extract($.id,xe);return!!Ge&&(o.info("Append Init fragment",Y," with representationId:",Ge.representationId," and quality:",Ge.quality,", data size:",Ge.bytes.byteLength),$e(Ge),!0)},getIsBufferingCompleted:function(){return l},setIsBufferingCompleted:Kt,getIsPruningInProgress:function(){return he},reset:function(xe,Ge){N.off(i.A.INIT_FRAGMENT_LOADED,Me,this),N.off(i.A.MEDIA_FRAGMENT_LOADED,Qe,this),N.off(i.A.WALLCLOCK_TIME_UPDATED,Vt,this),N.off(r.A.PLAYBACK_PLAYING,Ke,this),N.off(r.A.PLAYBACK_PROGRESS,Pe,this),N.off(r.A.PLAYBACK_TIME_UPDATED,Pe,this),N.off(r.A.PLAYBACK_RATE_CHANGED,Gt,this),N.off(r.A.PLAYBACK_STALLED,ct,this),st(xe,Ge)},prepareForPlaybackSeek:function(){return l&&Kt(!1),H.abort()},prepareForReplacementTrackSwitch:function(xe){return new Promise((function(Ge,lt){H.abort().then((function(){return Dt()})).then((function(){return ge.get().streaming.buffer.useChangeTypeForTrackSwitch?H.changeType(xe):Promise.resolve()})).then((function(){return Nt()})).then((function(){Kt(!1),Ge()})).catch((function(ye){lt(ye)}))}))},prepareForNonReplacementTrackSwitch:function(xe){return new Promise((function(Ge,lt){Dt().then((function(){return ge.get().streaming.buffer.useChangeTypeForTrackSwitch?H.changeType(xe):Promise.resolve()})).then((function(){Ge()})).catch((function(ye){lt(ye)}))}))},prepareForForceReplacementQualitySwitch:function(xe){return new Promise((function(Ge,lt){H.abort().then((function(){return Dt()})).then((function(){return Nt()})).then((function(){return gt(xe)})).then((function(){Kt(!1),Ge()})).catch((function(ye){lt(ye)}))}))},updateAppendWindow:Dt,getAllRangesWithSafetyFactor:Ee,getContinuousBufferTimeForTargetTime:pt,clearBuffers:ke,pruneAllSafely:Nt,updateBufferTimestampOffset:gt,setSeekTarget:function(xe){z=xe},segmentRequestingCompleted:function(xe){isNaN(xe)||(U=xe,dt())}},o=(0,g.A)(f).getInstance().getLogger(e),te=Oe(f).getInstance(),st(),e}Rt.__dashjs_factory_name=At;var Pt=h.A.getClassFactory(Rt),ee="NotFragmentedTextBufferController";function ae(t){t=t||{};var e,o,l,p,C,b,F=this.context,U=(0,y.A)(F).getInstance(),H=t.textController,B=t.errHandler,w=t.streamInfo,j=t.type;function k(he){p=he}function se(he){var oe,te;o!==he&&(o=he)&&(oe=i.A.BUFFERING_COMPLETED,te={},U.trigger(oe,te,{streamId:w.id,mediaType:j}))}function ie(he){he.chunk.bytes&&!o&&(b.save(he.chunk),C.append(he.chunk),se(!0))}return e={initialize:function(he){k(he)},getStreamId:function(){return w.id},getType:function(){return j},getBufferControllerType:function(){return ee},createBufferSink:function(he){return new Promise((function(oe,te){try{(C=Ne(F).create({mediaSource:p,textController:H,eventBus:U})).initializeForFirstUse(w,he),l||(C.getBuffer()&&typeof C.getBuffer().initialize=="function"&&C.getBuffer().initialize(),l=!0),oe(C)}catch(Z){B.error(new pe.A(me.MEDIASOURCE_TYPE_UNSUPPORTED_CODE,me.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE+j)),te(Z)}}))},dischargePreBuffer:function(){},getBuffer:function(){return C},getBufferLevel:function(){return 0},getRangeAt:function(){return null},pruneBuffer:function(){},hasBufferAtTime:function(){return!0},getAllRangesWithSafetyFactor:function(){return[]},getContinuousBufferTimeForTargetTime:function(){return Number.POSITIVE_INFINITY},setMediaSource:k,getMediaSource:function(){return p},appendInitSegmentFromCache:function(he){return b.extract(w.id,he)!==null},getIsBufferingCompleted:function(){return o},setIsBufferingCompleted:se,getIsPruningInProgress:function(){return!1},reset:function(he){U.off(i.A.INIT_FRAGMENT_LOADED,ie,e),!he&&C&&(C.abort(),C.reset(),C=null)},clearBuffers:function(){return Promise.resolve()},prepareForPlaybackSeek:function(){return Promise.resolve()},prepareForReplacementTrackSwitch:function(){return o=!1,Promise.resolve()},setSeekTarget:function(){},updateAppendWindow:function(){return Promise.resolve()},pruneAllSafely:function(){return Promise.resolve()},updateBufferTimestampOffset:function(){return Promise.resolve()},segmentRequestingCompleted:function(){}},l=!1,p=null,o=!1,b=Oe(F).getInstance(),U.on(i.A.INIT_FRAGMENT_LOADED,ie,e),e}ae.__dashjs_factory_name=ee;var qe=h.A.getClassFactory(ae);function v(t){t=t||{};var e,o,l,p,C,b,F,U,H,B,w,j,k,se=this.context,ie=(0,y.A)(se).getInstance(),he=t.dashMetrics,oe=t.mediaPlayerModel,te=t.fragmentModel,Z=t.abrController,K=t.playbackController,z=t.textController,f=t.type,N=t.bufferController,S=t.representationController,L=t.settings;function R(){j=!0}function V(){j=!1}function de(Qe){if(!N.getIsBufferingCompleted()){ue();var $e=isNaN(Qe)?0:Qe;C=setTimeout(P,$e)}}function ue(){C&&(clearTimeout(C),C=null)}function P(){try{if((function(){try{return f===u.A.TEXT&&!z.isTextEnabled()||K.isPaused()&&(!K.getStreamController().getInitialPlayback()||!K.getStreamController().getAutoPlay())&&!L.get().streaming.scheduling.scheduleWhilePaused}catch{return!1}})())return void ue();if((function(){try{return!!j&&S.getCurrentRepresentationInfo()&&(isNaN(H)||B||(Ze=o.id,at=Z.getMaxAllowedIndexFor(f,Ze),!(!isNaN(U)&&U==at||(l.info("Top quality "+f+" index has changed from "+U+" to "+at),U=at,0)))||(function(){var Nt=S.getCurrentRepresentationInfo();return!f||!Nt||he.getCurrentBufferLevel(f)<$()})())}catch{return!1}var Ze,at})()){var Qe=!1;k&&(Qe=Z.checkPlaybackQuality(f,o.id)),Qe||($e=S.getCurrentRepresentationInfo(),w||$e.quality!==H||B?(B?(l.debug("Switch track for "+f+", representation id = "+$e.id),B=!1):l.debug("Quality has changed, get init request for representationid = "+$e.id),ie.trigger(i.A.INIT_FRAGMENT_NEEDED,{representationId:$e.id,sender:e},{streamId:o.id,mediaType:f}),k=!1,w=!1):(l.debug("Media segment needed for ".concat(f," and stream id ").concat(o.id)),ie.trigger(i.A.MEDIA_FRAGMENT_NEEDED,{},{streamId:o.id,mediaType:f}),k=!0))}else de(K.getLowLatencyModeEnabled()?L.get().streaming.scheduling.lowLatencyTimeout:L.get().streaming.scheduling.defaultTimeout)}catch{de(K.getLowLatencyModeEnabled()?L.get().streaming.scheduling.lowLatencyTimeout:L.get().streaming.scheduling.defaultTimeout)}var $e}function $(){var Qe=NaN,$e=S.getCurrentRepresentationInfo();return f&&$e&&(Qe=f===u.A.TEXT?(function(){try{if(z.isTextEnabled()){var Ze=S.getCurrentRepresentationInfo();if(isNaN(Ze.fragmentDuration)){var at=he.getCurrentSchedulingInfo(_.A.SCHEDULING_INFO);return at?at.duration:0}return Ze.fragmentDuration}return 0}catch{return 0}})():f===u.A.AUDIO&&b?(function(){try{var Ze=he.getCurrentBufferLevel(u.A.VIDEO),at=S.getCurrentRepresentationInfo();return isNaN(at.fragmentDuration)?Ze+1:Math.max(Ze+1,at.fragmentDuration)}catch{return 0}})():(function(){try{var Ze=S.getCurrentRepresentationInfo().mediaInfo.streamInfo;return Z.isPlayingAtTopQuality(Ze)?Ze.manifestInfo.duration>=L.get().streaming.buffer.longFormContentDurationThreshold?L.get().streaming.buffer.bufferTimeAtTopQualityLongForm:L.get().streaming.buffer.bufferTimeAtTopQuality:oe.getStableBufferTime()}catch{return oe.getStableBufferTime()}})()),Qe}function Y(){ge(!0)}function ge(Qe){if(K&&te){var $e=te.getRequests({state:J.FRAGMENT_MODEL_EXECUTED,time:K.getTime(),threshold:0})[0];$e&&K.getTime()>=$e.startTime&&((!F.mediaInfo||$e.mediaInfo.type===F.mediaInfo.type&&$e.mediaInfo.index!==F.mediaInfo.index)&&Qe&&ie.trigger(i.A.TRACK_CHANGE_RENDERED,{mediaType:f,oldMediaInfo:F.mediaInfo,newMediaInfo:$e.mediaInfo,streamId:o.id}),$e.quality===F.quality&&$e.adaptationIndex===F.adaptationIndex||!Qe||(l.debug("Quality change rendered for streamId ".concat(o.id," and type ").concat(f)),ie.trigger(i.A.QUALITY_CHANGE_RENDERED,{mediaType:f,oldQuality:F.quality,newQuality:$e.quality,streamId:o.id})),F={mediaInfo:$e.mediaInfo,quality:$e.quality,adaptationIndex:$e.adaptationIndex})}}function ve(){te.abortRequests(),ue()}function fe(){L.get().streaming.scheduling.scheduleWhilePaused||de()}function Ce(Qe){he.updatePlayListTraceMetrics({playbackspeed:Qe.playbackRate.toString()})}function Me(){k=!0,p=0,H=NaN,F={mediaInfo:void 0,quality:NaN,adaptationIndex:NaN},U=NaN,B=!1,w=!1,j=!0}return e={initialize:function(Qe){b=Qe,ie.on(i.A.URL_RESOLUTION_FAILED,ve,e),ie.on(r.A.PLAYBACK_STARTED,fe,e),ie.on(r.A.PLAYBACK_RATE_CHANGED,Ce,e),ie.on(r.A.PLAYBACK_TIME_UPDATED,Y,e),ie.on(r.A.MANAGED_MEDIA_SOURCE_START_STREAMING,R,e),ie.on(r.A.MANAGED_MEDIA_SOURCE_END_STREAMING,V,e)},getType:function(){return f},getStreamId:function(){return o.id},setTimeToLoadDelay:function(Qe){p=Qe},getTimeToLoadDelay:function(){return p},setSwitchTrack:function(Qe){B=Qe},getSwitchTrack:function(){return B},startScheduleTimer:de,clearScheduleTimer:ue,reset:function(){ie.off(i.A.URL_RESOLUTION_FAILED,ve,e),ie.off(r.A.PLAYBACK_STARTED,fe,e),ie.off(r.A.PLAYBACK_RATE_CHANGED,Ce,e),ie.off(r.A.PLAYBACK_TIME_UPDATED,Y,e),ie.off(r.A.MANAGED_MEDIA_SOURCE_START_STREAMING,R,e),ie.off(r.A.MANAGED_MEDIA_SOURCE_END_STREAMING,V,e),ue(),ge(!1),Me(),o=null},getBufferTarget:$,getPlaybackController:function(){return K},setCheckPlaybackQuality:function(Qe){k=Qe},setInitSegmentRequired:function(Qe){w=Qe},setLastInitializedQuality:function(Qe){H=Qe}},l=(0,g.A)(se).getInstance().getLogger(e),Me(),o=t.streamInfo,e}v.__dashjs_factory_name="ScheduleController";var A=h.A.getClassFactory(v),c=M(284);function E(t){var e,o,l,p,C,b,F=(t=t||{}).eventBus,U=t.events,H=t.abrController,B=t.dashMetrics,w=t.playbackController,j=t.timelineConverter,k=t.type,se=t.streamInfo,ie=t.dashConstants,he=t.segmentsController,oe=t.isDynamic,te=t.adapter;function Z(){return k}function K(){return l}function z(){return b}function f(){o=null,l=!0,p=[],C=null}function N(ue){return new Promise((function(P,$){var Y=ue.hasInitialization(),ge=ue.hasSegments(),ve=[];ve.push(he.updateInitData(ue,Y)),ve.push(he.updateSegmentData(ue,ge)),Promise.all(ve).then((function(fe){var Ce;fe[0]&&!fe[0].error&&(ue=(function(Me,Qe){return Qe&&!Qe.error&&Qe.representation?Qe.representation:Me})(ue,fe[0])),fe[1]&&!fe[1].error&&(ue=(function(Me,Qe){if(Qe&&!Qe.error){var $e,Ze,at,Nt,Ee=Qe.segments,Pe=[],ct=0;for($e=0,Ze=Ee?Ee.length:0;$e<Ze;$e++)at=Ee[$e],(Nt=(0,c.W$)(j,oe,Me,at.startTime,at.duration,at.timescale,at.media,at.mediaRange,ct))&&(Pe.push(Nt),Nt=null,ct++);return Pe.length>0&&(Me.segments=Pe),Me}})(ue,fe[1])),(Ce=ue).mediaFinishedInformation=he.getMediaFinishedInformation(Ce),(function(Me){if(K()){var Qe,$e,Ze=B.getCurrentManifestUpdate(),at=!1;if(Ze){for(var Nt=0;Nt<Ze.representationInfo.length;Nt++)if((Qe=Ze.representationInfo[Nt]).index===Me.index&&Qe.mediaType===Z()){at=!0;break}at||B.addManifestUpdateRepresentationInfo(Me,Z())}if((function(){for(var Pe=0,ct=p.length;Pe<ct;Pe++){var Ke=p[Pe].segmentInfoType;if(!p[Pe].hasInitialization()||(Ke===ie.SEGMENT_BASE||Ke===ie.BASE_URL)&&!p[Pe].segments)return!1}return!0})()){H.setPlaybackQuality(k,se,($e=b,p.indexOf($e)));var Ee=B.getCurrentDVRInfo(k);Ee&&B.updateManifestUpdateInfo({latency:Ee.range.end-w.getTime()}),B.getCurrentRepresentationSwitch(z().adaptation.type)||S(),R()}}})(ue),P()})).catch((function(fe){$(fe)}))}))}function S(){(function(){if(!(H&&B&&w&&j))throw new Error(u.A.MISSING_CONFIG_ERROR)})();var ue=new Date,P=z(),$=1e3*w.getTime();P&&B.addRepresentationSwitch(P.adaptation.type,ue,$,P.id),F.trigger(r.A.REPRESENTATION_SWITCH,{mediaType:k,streamId:se.id,currentRepresentation:P,numberOfRepresentations:p.length},{streamId:se.id,mediaType:k})}function L(ue){return ue==null||ue>=p.length?null:p[ue]}function R(ue){l=!1,F.trigger(U.DATA_UPDATE_COMPLETED,{data:o,currentRepresentation:b,error:ue},{streamId:se.id,mediaType:k})}function V(ue){b=ue,C=te.convertRepresentationToRepresentationInfo(b)}function de(ue){if(ue.newDuration){var P=z();P&&P.adaptation.period&&(P.adaptation.period.duration=ue.newDuration)}}return e={getStreamId:function(){return se.id},getType:Z,getData:function(){return o},isUpdating:K,updateData:function(ue,P,$,Y,ge){return new Promise((function(ve,fe){if(l=!0,p=P,o=ue,V(L(ge)),$!==u.A.VIDEO&&$!==u.A.AUDIO&&($!==u.A.TEXT||!Y))return R(),void ve();for(var Ce=[],Me=0,Qe=p.length;Me<Qe;Me++){var $e=p[Me];Ce.push(N($e))}Promise.all(Ce).then((function(){V(L(ge)),ve()})).catch((function(Ze){fe(Ze)}))}))},getCurrentRepresentation:z,getCurrentRepresentationInfo:function(){return C},getRepresentationForQuality:L,prepareQualityChange:function(ue){V(L(ue)),S()},reset:function(){F.off(r.A.MANIFEST_VALIDITY_CHANGED,de,e),f()}},f(),F.on(r.A.MANIFEST_VALIDITY_CHANGED,de,e),e}E.__dashjs_factory_name="RepresentationController";var Q=h.A.getClassFactory(E),D=M(7652),Be=M(2945),De=M(9913),Ae=M(2187);function Re(t,e,o){return Object.defineProperty(t,"prototype",{writable:!1}),t}function _e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Ye=Re((function t(){_e(this,t),this.start=null,this.mstart=null,this.starttype=null,this.trace=[]}));Ye.INITIAL_PLAYOUT_START_REASON="initial_playout",Ye.SEEK_START_REASON="seek",Ye.RESUME_FROM_PAUSE_START_REASON="resume",Ye.METRICS_COLLECTION_START_REASON="metrics_collection_start";var Ve=Re((function t(){_e(this,t),this.representationid=null,this.subreplevel=null,this.start=null,this.mstart=null,this.duration=null,this.playbackspeed=null,this.stopreason=null}));Ve.REPRESENTATION_SWITCH_STOP_REASON="representation_switch",Ve.REBUFFERING_REASON="rebuffering",Ve.USER_REQUEST_STOP_REASON="user_request",Ve.END_OF_PERIOD_STOP_REASON="end_of_period",Ve.END_OF_CONTENT_STOP_REASON="end_of_content",Ve.METRICS_COLLECTION_STOP_REASON="metrics_collection_end",Ve.FAILURE_STOP_REASON="failure";var Xe=M(6849);function nt(){return{ntpToUTC:function(t){var e=new Date(Date.UTC(1900,0,1,0,0,0));return new Date(e.getTime()+t).getTime()}}}nt.__dashjs_factory_name="TimeUtils";var Tt=h.A.getSingletonFactory(nt);function mt(t){t=t||{};var e,o,l,p,C,b,F,U,H,B,w,j,k,se,ie,he=this.context,oe=(0,y.A)(he).getInstance(),te=t.streamInfo,Z=t.type,K=t.errHandler,z=t.mimeType,f=t.timelineConverter,N=t.adapter,S=t.manifestModel,L=t.mediaPlayerModel,R=t.fragmentModel,V=t.abrController,de=t.playbackController,ue=t.mediaController,P=t.textController,$=t.dashMetrics,Y=t.settings,ge=t.boxParser,ve=t.segmentBlacklistController;function fe(){return te.id}function Ce(){return Z}function Me(){return N.getIsTextTrack(U.getData())}function Qe(){C=[],p=null,se=0,H=!1,B=!1,w=!1,ie=null}function $e(Fe){return!isNaN(Fe)&&!isNaN(te.duration)&&isFinite(te.duration)&&Fe>=te.start+te.duration}function Ze(Fe){var st=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];if(Fe.sender){if(de.getIsManifestUpdateInProgress())Nt();else if((!Me()||P.isTextEnabled())&&b&&Fe.representationId&&!b.appendInitSegmentFromCache(Fe.representationId)){var xe=U.getCurrentRepresentation();if(xe.range===0)return void at();var Ge=j?j.getInitRequest(p,xe):null;Ge?R.executeRequest(Ge):st&&(F.setInitSegmentRequired(!0),Nt())}}}function at(Fe){var st=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];if(de.getIsManifestUpdateInProgress()||b.getIsPruningInProgress())Nt();else{var xe=(function(){var Ge,lt=gt();if(isNaN(se)||Ce()===u.A.TEXT&&!P.isTextEnabled())return null;if(j){var ye=U&<?U.getRepresentationForQuality(lt.quality):null;Ge=H?j.getSegmentRequestForTime(p,ye,se):B?j.repeatSegmentRequest(p,ye):j.getNextSegmentRequest(p,ye)}return Ge})();xe?(H=!1,B=!1,(function(Ge){isNaN(Ge.startTime+Ge.duration)||(se=Ge.startTime+Ge.duration),Ge.delayLoadingTime=new Date().getTime()+F.getTimeToLoadDelay(),F.setTimeToLoadDelay(0),(function(lt){var ye=lt.url;return lt.range&&(ye=ye.concat("_",lt.range)),ve.contains(ye)})(Ge)?(o.warn("Fragment request url ".concat(Ge.url," for stream id ").concat(te.id," and media type ").concat(Z," is on the ignore list and will be skipped")),Nt()):(o.debug("Next fragment request url for stream id ".concat(te.id," and media type ").concat(Z," is ").concat(Ge.url)),R.executeRequest(Ge))})(xe)):(function(Ge){var lt,ye=U.getCurrentRepresentation();if(Y.get().streaming.gaps.enableSeekFix&&(H||de.getTime()===0)&&(l?l&&ye.segmentInfoType===n.A.SEGMENT_TIMELINE&&(lt=j.getValidTimeAheadOfTargetTime(se,p,ye,Y.get().streaming.gaps.threshold)):lt=j.getValidTimeAheadOfTargetTime(se,p,ye,Y.get().streaming.gaps.threshold),!isNaN(lt)&<!==se))return void(de.isSeeking()||de.getTime()===0?(o.warn("Adjusting playback time ".concat(lt," because of gap in the manifest. Seeking by ").concat(lt-se)),de.seek(lt,!1,!1)):(o.warn("Adjusting buffering time ".concat(lt," because of gap in the manifest. Adjusting time by ").concat(lt-se)),Ot(lt),Ge&&Nt()));if(j.isLastSegmentRequested(ye,se)){var Te=j.getCurrentIndex();return o.debug("Segment requesting for stream ".concat(te.id," has finished")),oe.trigger(i.A.STREAM_REQUESTING_COMPLETED,{segmentIndex:Te},{streamId:te.id,mediaType:Z}),b.segmentRequestingCompleted(Te),void F.clearScheduleTimer()}Ge&&Nt()})(st)}}function Nt(){F.startScheduleTimer(de.getLowLatencyModeEnabled()?Y.get().streaming.scheduling.lowLatencyTimeout:Y.get().streaming.scheduling.defaultTimeout)}function Ee(Fe){Fe.error||b.getIsBufferingCompleted()||b.updateBufferTimestampOffset(Fe.currentRepresentation)}function Pe(Fe){$.addBufferState(Z,Fe.state,F.getBufferTarget()),Fe.state!==_.A.BUFFER_EMPTY||de.isSeeking()||(o.info("Buffer is empty! Stalling!"),$.pushPlayListTraceMetrics(new Date,Ve.REBUFFERING_REASON))}function ct(Fe){R.syncExecutedRequestsWithBufferedRange(b.getBuffer().getAllBufferRanges(),te.duration),Fe.quotaExceeded&&Fe.from>de.getTime()&&Ot(Fe.from),Fe.hasEnoughSpaceToAppend&&Fe.quotaExceeded&&F.startScheduleTimer()}function Ke(Fe){if(Fe&&Fe.lastRequestAppended&&Fe.lastRequestAppended.url){var st=Fe.lastRequestAppended.url;Fe.lastRequestAppended.range&&(st=st.concat("_",Fe.lastRequestAppended.range)),o.warn("Blacklisting segment with url ".concat(st)),ve.add(st)}}function yt(Fe){if(o.debug("Appended bytes for ".concat(Fe.mediaType," and stream id ").concat(Fe.streamId)),Fe.segmentType===je.G.INIT_SEGMENT_TYPE){var st=Fe.quality;F.setLastInitializedQuality(st),o.info("["+Z+"] lastInitializedRepresentationInfo changed to "+Fe.quality)}ie?ht(ie):F.startScheduleTimer(0)}function ht(Fe){var st=R.getRequests({state:J.FRAGMENT_MODEL_LOADING});if(st&&st.length>0)return o.debug("Preparing for default quality switch: Waiting for ongoing segment request to be finished before applying switch."),void(ie=Fe);b.updateBufferTimestampOffset(Fe).then((function(){F.setCheckPlaybackQuality(!1),p.segmentAlignment||p.subSegmentAlignment?F.startScheduleTimer():Zt(),ie=null,w=!1})).catch((function(){ie=null,w=!1}))}function dt(Fe){o.info("onFragmentLoadingAbandoned request: "+Fe.request.url+" has been aborted"),de.isSeeking()||F.getSwitchTrack()||w||(o.info("onFragmentLoadingAbandoned request: "+Fe.request.url+" has to be downloaded again, origin is not seeking process or switch track call"),Fe.request&&Fe.request.isInitializationRequest()?F.setInitSegmentRequired(!0):Ot(Fe.request.startTime+Fe.request.duration/2),F.startScheduleTimer(0))}function qt(Fe){o.info("OnFragmentLoadingCompleted for stream id "+te.id+" and media type "+Z+" - Url:",Fe.request?Fe.request.url:"undefined",Fe.request.range?", Range:"+Fe.request.range:""),Me()&&F.startScheduleTimer(0),Fe.error&&Fe.request.serviceLocation&&(function(st){o.info("Fragment loading completed with an error"),st&&st.request&&st.request.type&&(st.request.type===je.G.INIT_SEGMENT_TYPE?Ze({representationId:st.request.representationId,sender:{}},!1):st.request.type===je.G.MEDIA_SEGMENT_TYPE&&(Ot(st.request.startTime+st.request.duration/2),at({},!1)))})(Fe)}function Yt(){Ot(de.getTime()),tt().startScheduleTimer()}function sn(Fe){var st=Fe.currentTrackInfo;if(st){var xe=C.find((function(Ge){return Ge.index===st.index&&Ge.lang===st.lang}));xe&&ut(xe).then((function(){b.setIsBufferingCompleted(!1),Ot(de.getTime()),F.setInitSegmentRequired(!0),F.startScheduleTimer()}))}}function ln(Fe){Ot(Fe.quotaExceededTime),F.clearScheduleTimer()}function ke(){return b?b.getBuffer():null}function ut(Fe){Fe===p||Fe&&p&&Fe.type!==p.type||(p=Fe);var st=N.getRealAdaptation(te,p),xe=N.getVoRepresentations(p);if(U){var Ge,lt=U.getData(),ye=V.getMaxAllowedIndexFor(Z,te.id),Te=V.getMinAllowedIndexFor(Z,te.id),We=null;return lt!==null&<.id===st.id||Z===u.A.TEXT?Ge=V.getQualityFor(Z,te.id):(We=V.getThroughputHistory().getAverageThroughput(Z,l)||V.getInitialBitrateFor(Z,te.id),Ge=V.getQualityForBitrate(p,We,te.id)),Te!==void 0&&Ge<Te&&(Ge=Te),Ge>ye&&(Ge=ye),U.updateData(st,xe,Z,p.isFragmented,Ge)}return Promise.resolve()}function tt(){return F}function gt(Fe){var st;return Fe!==void 0?((0,D.zQ)(Fe),st=U?U.getRepresentationForQuality(Fe):null):st=U?U.getCurrentRepresentation():null,N.convertRepresentationToRepresentationInfo(st)}function Dt(){return!!b&&b.getIsBufferingCompleted()}function Vt(Fe){if(Y.get().streaming.enableManifestTimescaleMismatchFix){var st=Fe.chunk,xe=st.bytes,Ge=gt(st.quality),lt=U&&Ge?U.getRepresentationForQuality(Ge.quality):null;Ge&<&&(lt.timescale=ge.getMediaTimescaleFromMoov(xe))}}function Gt(Fe){var st=Fe.chunk,xe=st.bytes,Ge=st.quality,lt=gt(Ge),ye=U&<?U.getRepresentationForQuality(lt.quality):null;if(lt&&ye){var Te;if(Y.get().streaming.parseInbandPrft&&Fe.request.type===je.G.MEDIA_SEGMENT_TYPE){var We=(function(dn,qn){var Pn=dn.getBoxes("prft"),Zn=[];return Pn.forEach((function(Rr){Zn.push((function(ir,fr){var er="unknown";switch(ir.flags){case 0:er=n.A.PRODUCER_REFERENCE_TIME_TYPE.ENCODER;break;case 16:er=n.A.PRODUCER_REFERENCE_TIME_TYPE.APPLICATION;break;case 24:er=n.A.PRODUCER_REFERENCE_TIME_TYPE.CAPTURED}var wr=1e3*ir.ntp_timestamp_sec+ir.ntp_timestamp_frac/Math.pow(2,32)*1e3;return{type:er,ntpTimestamp:wr=Tt(he).getInstance().ntpToUTC(wr),mediaTime:ir.media_time/fr}})(Rr,qn))})),Zn})(Te=Te||ge.parse(xe),ye.timescale);We&&We.length&&oe.trigger(r.A.INBAND_PRFT,{data:We},{streamId:te.id,mediaType:Z})}var wt=N.getEventsFor(lt.mediaInfo,null,te),jt=N.getEventsFor(lt,ye,te);if(wt&&wt.length>0||jt&&jt.length>0){var hn=R.getRequests({state:J.FRAGMENT_MODEL_EXECUTED,quality:Ge,index:st.index})[0],En=(function(dn,qn,Pn,Zn){try{for(var Rr={},ir=[],fr=Pn.concat(Zn),er=0,wr=fr.length;er<wr;er++)Rr[fr[er].schemeIdUri+"/"+fr[er].value]=fr[er];var dr=dn.getBoxes("emsg");if(!dr||dr.length===0)return ir;for(var pr=dn.getBox("sidx"),Li=!pr||isNaN(pr.earliest_presentation_time)||isNaN(pr.timescale)?qn&&!isNaN(qn.mediaStartTime)?qn.mediaStartTime:0:pr.earliest_presentation_time/pr.timescale,Ar=Math.max(Li,0),fi=U.getCurrentRepresentation(),jr=0,Fi=dr.length;jr<Fi;jr++){var Nr=N.getEvent(dr[jr],Rr,Ar,fi);Nr&&ir.push(Nr)}return ir}catch{return[]}})(Te=Te||ge.parse(xe),hn,wt,jt);oe.trigger(i.A.INBAND_EVENTS,{events:En},{streamId:te.id})}}}function Kt(){var Fe=de.getTime();Y.get().streaming.buffer.flushBufferAtTrackSwitch&&de.seek(Fe+.001,!1,!0),Ot(Fe),b.setSeekTarget(Fe),F.startScheduleTimer()}function Zt(){var Fe=de.getTime(),st=b.getContinuousBufferTimeForTargetTime(Fe);Ot(isNaN(st)?Fe:st),F.startScheduleTimer()}function pt(Fe){Fe&&!isNaN(Fe.time)&&(Ot(Fe.time),b.setSeekTarget(Fe.time))}function Ot(Fe){se=Fe,H=!0}return e={initialize:function(Fe,st,xe){k=(0,Xe.A)(he).create({events:i.A,eventBus:oe,streamInfo:te,timelineConverter:f,dashConstants:n.A,segmentBaseController:t.segmentBaseController,type:Z}),j=(0,Be.A)(he).create({streamInfo:te,type:Z,timelineConverter:f,dashMetrics:$,mediaPlayerModel:L,baseURLController:t.baseURLController,errHandler:K,segmentsController:k,settings:Y,boxParser:ge,events:i.A,eventBus:oe,errors:me,debug:(0,g.A)(he).getInstance(),requestModifier:(0,De.A)(he).getInstance(),dashConstants:n.A,constants:u.A,urlUtils:(0,Ae.A)(he).getInstance()}),l=te.manifestInfo.isDynamic,j.initialize(l),V.registerStreamType(Z,e),U=Q(he).create({streamInfo:te,type:Z,abrController:V,dashMetrics:$,playbackController:de,timelineConverter:f,dashConstants:n.A,events:i.A,eventBus:oe,errors:me,isDynamic:l,adapter:N,segmentsController:k}),b=(function(Ge,lt){return Ge?Ge!==u.A.TEXT||lt?Pt(he).create({streamInfo:te,type:Ge,mediaPlayerModel:L,manifestModel:S,fragmentModel:R,errHandler:K,mediaController:ue,representationController:U,adapter:N,textController:P,abrController:V,playbackController:de,settings:Y}):qe(he).create({streamInfo:te,type:Ge,mimeType:z,fragmentModel:R,textController:P,errHandler:K,settings:Y}):(K.error(new pe.A(me.MEDIASOURCE_TYPE_UNSUPPORTED_CODE,me.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE+"not properly defined")),null)})(Z,xe),b&&b.initialize(Fe),(F=A(he).create({streamInfo:te,type:Z,mimeType:z,adapter:N,dashMetrics:$,mediaPlayerModel:L,fragmentModel:R,abrController:V,playbackController:de,textController:P,mediaController:ue,bufferController:b,representationController:U,settings:Y})).initialize(st),se=0,H=!1,B=!1},getStreamId:fe,getType:Ce,isUpdating:function(){return!!U&&U.isUpdating()},getBufferController:function(){return b},dischargePreBuffer:function(){b.dischargePreBuffer()},getFragmentModel:function(){return R},getScheduleController:tt,getRepresentationController:function(){return U},getRepresentationInfo:gt,getBufferLevel:function(){return b?b.getBufferLevel():0},isBufferingCompleted:Dt,createBufferSinks:function(Fe){var st=ke();return st?Promise.resolve(st):b?b.createBufferSink(p,Fe):Promise.resolve(null)},updateStreamInfo:function(Fe){return te=Fe,Dt()?Promise.resolve():b.updateAppendWindow()},getStreamInfo:function(){return te},selectMediaInfo:ut,clearMediaInfoArray:function(){C=[]},addMediaInfo:function(Fe){C.indexOf(Fe)===-1&&C.push(Fe)},prepareTrackSwitch:function(){return new Promise((function(Fe){o.debug("Preparing track switch for type ".concat(Z));var st=Z===u.A.TEXT||Y.get().streaming.trackSwitchMode[Z]===u.A.TRACK_SWITCH_MODE_ALWAYS_REPLACE&&de.getTimeToStreamEnd(te)>Y.get().streaming.buffer.stallThreshold;if(b.getIsBufferingCompleted()&&!st)return b.prepareForNonReplacementTrackSwitch(p.codec).then((function(){oe.trigger(i.A.BUFFERING_COMPLETED,{},{streamId:te.id,mediaType:Z})})).catch((function(){oe.trigger(i.A.BUFFERING_COMPLETED,{},{streamId:te.id,mediaType:Z})})),void Fe();F.clearScheduleTimer(),F.setSwitchTrack(!0),st?(oe.trigger(i.A.BUFFER_REPLACEMENT_STARTED,{mediaType:Z,streamId:te.id},{mediaType:Z,streamId:te.id}),R.abortRequests(),b.prepareForReplacementTrackSwitch(p.codec).then((function(){var xe=gt();return b.updateBufferTimestampOffset(xe)})).then((function(){Kt(),Fe()})).catch((function(){Kt(),Fe()}))):b.prepareForNonReplacementTrackSwitch(p.codec).then((function(){Zt(),Fe()})).catch((function(){Zt(),Fe()}))}))},prepareQualityChange:function(Fe){ie&&o.warn("Canceling queued representation switch to ".concat(ie.quality," for ").concat(Z)),o.debug("Preparing quality switch for type ".concat(Z));var st=Fe.newQuality;w=!0,F.clearScheduleTimer(),U.prepareQualityChange(st);var xe=gt(st);Fe.reason&&Fe.reason.forceReplace?(function(Ge){R.abortRequests(),oe.trigger(i.A.BUFFER_REPLACEMENT_STARTED,{mediaType:Z,streamId:te.id},{mediaType:Z,streamId:te.id}),F.setCheckPlaybackQuality(!1),b.prepareForForceReplacementQualitySwitch(Ge).then((function(){Kt(),ie=null,w=!1})).catch((function(){Kt(),ie=null,w=!1}))})(xe):Fe&&Fe.reason&&Fe.reason.forceAbandon?(function(Ge){b.updateBufferTimestampOffset(Ge).then((function(){R.abortRequests(),B=!0,F.setCheckPlaybackQuality(!1),F.startScheduleTimer(),w=!1,ie=null})).catch((function(){ie=null,w=!1}))})(xe):Y.get().streaming.buffer.fastSwitchEnabled?(function(Ge){var lt=de.getTime(),ye=1.5*(isNaN(Ge.fragmentDuration)?1:Ge.fragmentDuration),Te=R.getRequests({state:J.FRAGMENT_MODEL_EXECUTED,time:lt+ye,threshold:0})[0];if(Te&&!Me()){var We=b.getBufferLevel(),wt=V.getAbandonmentStateFor(te.id,Z);Te.quality<Ge.quality&&We>=ye&&wt!==_.A.ABANDON_LOAD?b.updateBufferTimestampOffset(Ge).then((function(){R.abortRequests(),Ot(lt+ye),F.setCheckPlaybackQuality(!1),F.startScheduleTimer(),w=!1})).catch((function(){w=!1})):ht(Ge)}else ht(Ge)})(xe):ht(xe),$.pushPlayListTraceMetrics(new Date,Ve.REPRESENTATION_SWITCH_STOP_REASON),$.createPlaylistTraceMetrics(xe.id,1e3*de.getTime(),de.getPlaybackRate())},getMediaInfo:function(){return p},getMediaSource:function(){return b.getMediaSource()},setMediaSource:function(Fe){return b.setMediaSource(Fe,p)},getBuffer:ke,setExplicitBufferingTime:Ot,finalisePlayList:function(Fe,st){$.pushPlayListTraceMetrics(Fe,st)},probeNextRequest:function(){var Fe=gt(),st=U&&Fe?U.getRepresentationForQuality(Fe.quality):null;return j.getNextSegmentRequestIdempotent(p,st)},prepareInnerPeriodPlaybackSeeking:function(Fe){return new Promise((function(st){if(b.hasBufferAtTime(Fe.seekTime))return b.pruneBuffer(),$e(b.getContinuousBufferTimeForTargetTime(Fe.seekTime))&&b.setIsBufferingCompleted(!0),void st();F.clearScheduleTimer(),R.abortRequests(),b.prepareForPlaybackSeek().then((function(){var xe=b.getAllRangesWithSafetyFactor(Fe.seekTime);return b.clearBuffers(xe)})).then((function(){var xe=b.getContinuousBufferTimeForTargetTime(Fe.seekTime);if($e(xe))b.setIsBufferingCompleted(!0),st();else{var Ge=isNaN(xe)?Fe.seekTime:xe;Ot(Ge),b.setSeekTarget(Ge);var lt=[];lt.push(b.updateAppendWindow());var ye=gt();lt.push(b.updateBufferTimestampOffset(ye)),Promise.all(lt).then((function(){F.setInitSegmentRequired(!0),F.setCheckPlaybackQuality(!1),F.startScheduleTimer(),st()}))}})).catch((function(xe){o.error(xe)}))}))},prepareOuterPeriodPlaybackSeeking:function(){return new Promise((function(Fe,st){try{F.clearScheduleTimer(),R.abortRequests(),b.prepareForPlaybackSeek().then((function(){return b.pruneAllSafely()})).then((function(){Fe()}))}catch(xe){st(xe)}}))},reset:function(Fe,st){j&&j.reset(),b&&(b.reset(Fe,st),b=null),F&&(F.reset(),F=null),U&&(U.reset(),U=null),k&&(k=null),V&&V.unRegisterStreamType(fe(),Z),oe.off(i.A.DATA_UPDATE_COMPLETED,Ee,e),oe.off(i.A.INIT_FRAGMENT_NEEDED,Ze,e),oe.off(i.A.MEDIA_FRAGMENT_NEEDED,at,e),oe.off(i.A.INIT_FRAGMENT_LOADED,Vt,e),oe.off(i.A.MEDIA_FRAGMENT_LOADED,Gt,e),oe.off(i.A.BUFFER_LEVEL_STATE_CHANGED,Pe,e),oe.off(i.A.BUFFER_CLEARED,ct,e),oe.off(i.A.SEEK_TARGET,pt,e),oe.off(i.A.FRAGMENT_LOADING_ABANDONED,dt,e),oe.off(i.A.FRAGMENT_LOADING_COMPLETED,qt,e),oe.off(i.A.SET_FRAGMENTED_TEXT_AFTER_DISABLED,Yt,e),oe.off(i.A.SET_NON_FRAGMENTED_TEXT,sn,e),oe.off(i.A.QUOTA_EXCEEDED,ln,e),oe.off(i.A.SOURCE_BUFFER_ERROR,Ke,e),oe.off(i.A.BYTES_APPENDED_END_FRAGMENT,yt,e),Qe(),Z=null,te=null}},o=(0,g.A)(he).getInstance().getLogger(e),Qe(),oe.on(i.A.DATA_UPDATE_COMPLETED,Ee,e,{priority:y.A.EVENT_PRIORITY_HIGH}),oe.on(i.A.INIT_FRAGMENT_NEEDED,Ze,e),oe.on(i.A.MEDIA_FRAGMENT_NEEDED,at,e),oe.on(i.A.INIT_FRAGMENT_LOADED,Vt,e),oe.on(i.A.MEDIA_FRAGMENT_LOADED,Gt,e),oe.on(i.A.BUFFER_LEVEL_STATE_CHANGED,Pe,e),oe.on(i.A.BUFFER_CLEARED,ct,e),oe.on(i.A.SEEK_TARGET,pt,e),oe.on(i.A.FRAGMENT_LOADING_ABANDONED,dt,e),oe.on(i.A.FRAGMENT_LOADING_COMPLETED,qt,e),oe.on(i.A.QUOTA_EXCEEDED,ln,e),oe.on(i.A.SET_FRAGMENTED_TEXT_AFTER_DISABLED,Yt,e),oe.on(i.A.SET_NON_FRAGMENTED_TEXT,sn,e),oe.on(i.A.SOURCE_BUFFER_ERROR,Ke,e),oe.on(i.A.BYTES_APPENDED_END_FRAGMENT,yt,e),e}mt.__dashjs_factory_name="StreamProcessor";var Ut=h.A.getClassFactory(mt);function Mt(t,e,o){return Object.defineProperty(t,"prototype",{writable:!1}),t}var zt=Mt((function t(){(function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")})(this,t),this.streamId=null,this.mediaInfo=null,this.segmentType=null,this.quality=NaN,this.index=NaN,this.bytes=null,this.start=NaN,this.end=NaN,this.duration=NaN,this.representationId=null,this.endFragment=null})),Qt=M(2930);function nn(t,e){if(t){if(typeof t=="string")return yn(t,e);var o={}.toString.call(t).slice(8,-1);return o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set"?Array.from(t):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?yn(t,e):void 0}}function yn(t,e){(e==null||e>t.length)&&(e=t.length);for(var o=0,l=Array(e);o<e;o++)l[o]=t[o];return l}function xn(t){t=t||{};var e,o,l=this.context,p=t.requestModifier,C=t.lowLatencyThroughputModel,b=t.boxParser,F=(0,le.A)(l).getInstance();function U(w){var j,k=new Date,se=w.request,ie=new Headers;if(se.range&&ie.append("Range","bytes="+se.range),w.headers)for(var he in w.headers){var oe=w.headers[he];oe&&ie.append(he,oe)}se.requestStartDate||(se.requestStartDate=k),p&&p.modifyRequestHeader&&p.modifyRequestHeader({setRequestHeader:function(f,N){ie.append(f,N)}},{url:w.url}),typeof window.AbortController=="function"&&(j=new AbortController,w.abortController=j,j.signal.onabort=w.onabort);var te={method:w.method,headers:ie,credentials:w.withCredentials?"include":void 0,signal:j?j.signal:void 0},Z=F.get().streaming.abr.fetchThroughputCalculationMode,K=Date.now(),z=0;new Promise((function(f){if(Z===u.A.ABR_FETCH_THROUGHPUT_CALCULATION_AAST&&C&&(z=C.getThroughputCapacityDelayMS(se,1e3*o.getCurrentBufferLevel(se.mediaType))))return setTimeout(f,z);f()})).then((function(){var f=Date.now();fetch(w.url,te).then((function(N){w.response||(w.response={}),w.response.status=N.status,w.response.statusText=N.statusText,w.response.responseURL=N.url,N.ok||w.onerror();var S,L="",R=(function(yt){var ht=typeof Symbol<"u"&&yt[Symbol.iterator]||yt["@@iterator"];if(!ht){if(Array.isArray(yt)||(ht=nn(yt))){ht&&(yt=ht);var dt=0,qt=function(){};return{s:qt,n:function(){return dt>=yt.length?{done:!0}:{done:!1,value:yt[dt++]}},e:function(ke){throw ke},f:qt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Yt,sn=!0,ln=!1;return{s:function(){ht=ht.call(yt)},n:function(){var ke=ht.next();return sn=ke.done,ke},e:function(ke){ln=!0,Yt=ke},f:function(){try{sn||ht.return==null||ht.return()}finally{if(ln)throw Yt}}}})(N.headers.keys());try{for(R.s();!(S=R.n()).done;){var V=S.value;L+=V+": "+N.headers.get(V)+`\r
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CSmHxZt0.js");exports.EluvioPlayerParameters=e.PlayerParameters;exports.InitializeEluvioPlayer=e.Initialize;
|
package/dist/elv-player-js.es.js
CHANGED
|
@@ -50038,7 +50038,7 @@ function VP() {
|
|
|
50038
50038
|
ElvCrypto: async () => {
|
|
50039
50039
|
try {
|
|
50040
50040
|
if (!a.elvCrypto) {
|
|
50041
|
-
const s = (await import("./index-
|
|
50041
|
+
const s = (await import("./index-D1aPC0Rq.mjs")).default;
|
|
50042
50042
|
a.elvCrypto = await new s().init();
|
|
50043
50043
|
}
|
|
50044
50044
|
return a.elvCrypto;
|
|
@@ -67379,7 +67379,7 @@ class Kw {
|
|
|
67379
67379
|
}
|
|
67380
67380
|
}
|
|
67381
67381
|
async __InitializeDash({ playoutUrl: e, authorizationToken: t, drm: a, drms: s }) {
|
|
67382
|
-
this.Dash = (await import("./dash.all.min-
|
|
67382
|
+
this.Dash = (await import("./dash.all.min-KTRipwDJ.mjs").then((c) => c.d)).default;
|
|
67383
67383
|
const u = this.Dash.MediaPlayer().create(), o = this.playerOptions.dashjsOptions || {};
|
|
67384
67384
|
if (u.updateSettings({
|
|
67385
67385
|
...o,
|
|
@@ -68097,7 +68097,6 @@ const F_ = ({ element: r, Hide: e }) => {
|
|
|
68097
68097
|
"mousemove",
|
|
68098
68098
|
"touchmove",
|
|
68099
68099
|
"blur",
|
|
68100
|
-
"mouseout",
|
|
68101
68100
|
"fullscreenchange"
|
|
68102
68101
|
];
|
|
68103
68102
|
return c.forEach((p) => r.target.addEventListener(p, u)), () => {
|