flowplayer-files
Version:
Flowplayer js and css files for v2.5.9 after the reboot of flowplayer
15 lines (13 loc) • 592 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):((e=e||self).flowplayer=e.flowplayer||{},e.flowplayer.dash=t())}(this,(function(){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var e=function(){return(e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function t(e){var t=document.createElement("a");t.href=e;var n=t.pathname&&t.pathname.split(".");return n.length>1&&n[n.length-1]}function n(e){switch(e){case"video/mpd":return"application/dash+xml";case"video/m3u8":return"application/x-mpegurl";default:return e}}var r=function(r){var i=r.src,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(r,["src"]);return[e({src:i,type:n("video/"+t(i))},a)]};function i(e){var t,i=e.split("{"),a=i[0],o=i[1];return o?(t=a,o.slice(0,-1).split(",").map((function(e){return{src:t+e,type:n("video/"+e)}}))):r({src:e})}function o(e,t){try{var n=t.exec(e)[1];return parseFloat(n,10)}catch(e){return console.error(e),0}}var u="com.widevine.alpha",l="com.microsoft.playready",c="org.w3.clearkey";var f=/\.mpd$/,d=["application/dash+xml"];function h(e){var t=e.split("?").shift();return t&&f.test(t)}function g(e){return"object"==typeof e}var p="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},m=function(e){try{return!!e()}catch(e){return!0}},E=!m((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),y=function(e){return"object"==typeof e?null!==e:"function"==typeof e},_=function(e){if(!y(e))throw TypeError(e+" is not an object!");return e};function v(e,t){return e(t={exports:{}},t.exports),t.exports}var T=v((function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)})),S=T.document,A=y(S)&&y(S.createElement),I=function(e){return A?S.createElement(e):{}},R=!E&&!m((function(){return 7!=Object.defineProperty(I("div"),"a",{get:function(){return 7}}).a})),b=function(e,t){if(!y(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!y(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!y(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!y(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},D=Object.defineProperty,C={f:E?Object.defineProperty:function(e,t,n){if(_(e),t=b(t,!0),_(n),R)try{return D(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},N=function(){var e=_(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};E&&"g"!=/./g.flags&&C.f(RegExp.prototype,"flags",{configurable:!0,get:N});var w=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},M=E?function(e,t,n){return C.f(e,t,w(1,n))}:function(e,t,n){return e[t]=n,e},O={}.hasOwnProperty,L=function(e,t){return O.call(e,t)},P=0,F=Math.random(),x=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++P+F).toString(36))},U=v((function(e){var t=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=t)})),B=(U.version,v((function(e){var t=T["__core-js_shared__"]||(T["__core-js_shared__"]={});(e.exports=function(e,n){return t[e]||(t[e]=void 0!==n?n:{})})("versions",[]).push({version:U.version,mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}))),k=B("native-function-to-string",Function.toString),G=v((function(e){var t=x("src"),n=(""+k).split("toString");U.inspectSource=function(e){return k.call(e)},(e.exports=function(e,r,i,a){var o="function"==typeof i;o&&(L(i,"name")||M(i,"name",r)),e[r]!==i&&(o&&(L(i,t)||M(i,t,e[r]?""+e[r]:n.join(String(r)))),e===T?e[r]=i:a?e[r]?e[r]=i:M(e,r,i):(delete e[r],M(e,r,i)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[t]||k.call(this)}))})),Y=/./.toString,q=function(e){G(RegExp.prototype,"toString",e,!0)};m((function(){return"/a/b"!=Y.call({source:"a",flags:"b"})}))?q((function(){var e=_(this);return"/".concat(e.source,"/","flags"in e?e.flags:!E&&e instanceof RegExp?N.call(e):void 0)})):"toString"!=Y.name&&q((function(){return Y.call(this)}));var K=Date.prototype,V=K.toString,H=K.getTime;new Date(NaN)+""!="Invalid Date"&&G(K,"toString",(function(){var e=H.call(this);return e==e?V.call(this):"Invalid Date"}));var j=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},z=function(e,t,n){if(j(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},W={}.toString,X=function(e){return W.call(e).slice(8,-1)},Q=v((function(e){var t=B("wks"),n=T.Symbol,r="function"==typeof n;(e.exports=function(e){return t[e]||(t[e]=r&&n[e]||(r?n:x)("Symbol."+e))}).store=t})),Z=Q("toStringTag"),$="Arguments"==X(function(){return arguments}()),J=function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),Z))?n:$?X(t):"Object"==(r=X(t))&&"function"==typeof t.callee?"Arguments":r},ee=function(e,t,n){var r,i,a,o,s=e&ee.F,u=e&ee.G,l=e&ee.S,c=e&ee.P,f=e&ee.B,d=u?T:l?T[t]||(T[t]={}):(T[t]||{}).prototype,h=u?U:U[t]||(U[t]={}),g=h.prototype||(h.prototype={});for(r in u&&(n=t),n)a=((i=!s&&d&&void 0!==d[r])?d:n)[r],o=f&&i?z(a,T):c&&"function"==typeof a?z(Function.call,a):a,d&&G(d,r,a,e&ee.U),h[r]!=a&&M(h,r,o),c&&g[r]!=a&&(g[r]=a)};T.core=U,ee.F=1,ee.G=2,ee.S=4,ee.P=8,ee.B=16,ee.W=32,ee.U=64,ee.R=128;var te,ne,re,ie=ee,ae=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e},oe=function(e,t,n,r){try{return r?t(_(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&_(i.call(e)),t}},se={},ue=Q("iterator"),le=Array.prototype,ce=function(e){return void 0!==e&&(se.Array===e||le[ue]===e)},fe=Math.ceil,de=Math.floor,he=function(e){return isNaN(e=+e)?0:(e>0?de:fe)(e)},ge=Math.min,pe=function(e){return e>0?ge(he(e),9007199254740991):0},me=Q("iterator"),Ee=U.getIteratorMethod=function(e){if(null!=e)return e[me]||e["@@iterator"]||se[J(e)]},ye=v((function(e){var t={},n={},r=e.exports=function(e,r,i,a,o){var s,u,l,c,f=o?function(){return e}:Ee(e),d=z(i,a,r?2:1),h=0;if("function"!=typeof f)throw TypeError(e+" is not iterable!");if(ce(f)){for(s=pe(e.length);s>h;h++)if((c=r?d(_(u=e[h])[0],u[1]):d(e[h]))===t||c===n)return c}else for(l=f.call(e);!(u=l.next()).done;)if((c=oe(l,d,u.value,r))===t||c===n)return c};r.BREAK=t,r.RETURN=n})),_e=Q("species"),ve=function(e,t){var n,r=_(e).constructor;return void 0===r||null==(n=_(r)[_e])?t:j(n)},Te=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)},Se=T.document,Ae=Se&&Se.documentElement,Ie=T.process,Re=T.setImmediate,be=T.clearImmediate,De=T.MessageChannel,Ce=T.Dispatch,Ne=0,we={},Me=function(){var e=+this;if(we.hasOwnProperty(e)){var t=we[e];delete we[e],t()}},Oe=function(e){Me.call(e.data)};Re&&be||(Re=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return we[++Ne]=function(){Te("function"==typeof e?e:Function(e),t)},te(Ne),Ne},be=function(e){delete we[e]},"process"==X(Ie)?te=function(e){Ie.nextTick(z(Me,e,1))}:Ce&&Ce.now?te=function(e){Ce.now(z(Me,e,1))}:De?(re=(ne=new De).port2,ne.port1.onmessage=Oe,te=z(re.postMessage,re,1)):T.addEventListener&&"function"==typeof postMessage&&!T.importScripts?(te=function(e){T.postMessage(e+"","*")},T.addEventListener("message",Oe,!1)):te="onreadystatechange"in I("script")?function(e){Ae.appendChild(I("script")).onreadystatechange=function(){Ae.removeChild(this),Me.call(e)}}:function(e){setTimeout(z(Me,e,1),0)});var Le={set:Re,clear:be},Pe=Le.set,Fe=T.MutationObserver||T.WebKitMutationObserver,xe=T.process,Ue=T.Promise,Be="process"==X(xe);function ke(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=j(t),this.reject=j(n)}var Ge={f:function(e){return new ke(e)}},Ye=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}},qe=T.navigator,Ke=qe&&qe.userAgent||"",Ve=function(e,t,n){for(var r in t)G(e,r,t[r],n);return e},He=C.f,je=Q("toStringTag"),ze=function(e,t,n){e&&!L(e=n?e:e.prototype,je)&&He(e,je,{configurable:!0,value:t})},We=Q("species"),Xe=function(e){var t=T[e];E&&t&&!t[We]&&C.f(t,We,{configurable:!0,get:function(){return this}})},Qe=Q("iterator"),Ze=!1;try{var $e=[7][Qe]();$e.return=function(){Ze=!0},Array.from($e,(function(){throw 2}))}catch(e){}var Je,et,tt,nt,rt=function(e,t){if(!t&&!Ze)return!1;var n=!1;try{var r=[7],i=r[Qe]();i.next=function(){return{done:n=!0}},r[Qe]=function(){return i},e(r)}catch(e){}return n},it=Le.set,at=function(){var e,t,n,r=function(){var r,i;for(Be&&(r=xe.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(Be)n=function(){xe.nextTick(r)};else if(!Fe||T.navigator&&T.navigator.standalone)if(Ue&&Ue.resolve){var i=Ue.resolve(void 0);n=function(){i.then(r)}}else n=function(){Pe.call(T,r)};else{var a=!0,o=document.createTextNode("");new Fe(r).observe(o,{characterData:!0}),n=function(){o.data=a=!a}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}(),ot=T.TypeError,st=T.process,ut=st&&st.versions,lt=ut&&ut.v8||"",ct=T.Promise,ft="process"==J(st),dt=function(){},ht=et=Ge.f,gt=!!function(){try{var e=ct.resolve(1),t=(e.constructor={})[Q("species")]=function(e){e(dt,dt)};return(ft||"function"==typeof PromiseRejectionEvent)&&e.then(dt)instanceof t&&0!==lt.indexOf("6.6")&&-1===Ke.indexOf("Chrome/66")}catch(e){}}(),pt=function(e){var t;return!(!y(e)||"function"!=typeof(t=e.then))&&t},mt=function(e,t){if(!e._n){e._n=!0;var n=e._c;at((function(){for(var r=e._v,i=1==e._s,a=0,o=function(t){var n,a,o,s=i?t.ok:t.fail,u=t.resolve,l=t.reject,c=t.domain;try{s?(i||(2==e._h&&_t(e),e._h=1),!0===s?n=r:(c&&c.enter(),n=s(r),c&&(c.exit(),o=!0)),n===t.promise?l(ot("Promise-chain cycle")):(a=pt(n))?a.call(n,u,l):u(n)):l(r)}catch(e){c&&!o&&c.exit(),l(e)}};n.length>a;)o(n[a++]);e._c=[],e._n=!1,t&&!e._h&&Et(e)}))}},Et=function(e){it.call(T,(function(){var t,n,r,i=e._v,a=yt(e);if(a&&(t=Ye((function(){ft?st.emit("unhandledRejection",i,e):(n=T.onunhandledrejection)?n({promise:e,reason:i}):(r=T.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=ft||yt(e)?2:1),e._a=void 0,a&&t.e)throw t.v}))},yt=function(e){return 1!==e._h&&0===(e._a||e._c).length},_t=function(e){it.call(T,(function(){var t;ft?st.emit("rejectionHandled",e):(t=T.onrejectionhandled)&&t({promise:e,reason:e._v})}))},vt=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),mt(t,!0))},Tt=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw ot("Promise can't be resolved itself");(t=pt(e))?at((function(){var r={_w:n,_d:!1};try{t.call(e,z(Tt,r,1),z(vt,r,1))}catch(e){vt.call(r,e)}})):(n._v=e,n._s=1,mt(n,!1))}catch(e){vt.call({_w:n,_d:!1},e)}}};gt||(ct=function(e){ae(this,ct,"Promise","_h"),j(e),Je.call(this);try{e(z(Tt,this,1),z(vt,this,1))}catch(e){vt.call(this,e)}},(Je=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=Ve(ct.prototype,{then:function(e,t){var n=ht(ve(this,ct));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=ft?st.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&mt(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),tt=function(){var e=new Je;this.promise=e,this.resolve=z(Tt,e,1),this.reject=z(vt,e,1)},Ge.f=ht=function(e){return e===ct||e===nt?new tt(e):et(e)}),ie(ie.G+ie.W+ie.F*!gt,{Promise:ct}),ze(ct,"Promise"),Xe("Promise"),nt=U.Promise,ie(ie.S+ie.F*!gt,"Promise",{reject:function(e){var t=ht(this);return(0,t.reject)(e),t.promise}}),ie(ie.S+ie.F*!gt,"Promise",{resolve:function(e){return function(e,t){if(_(e),y(t)&&t.constructor===e)return t;var n=Ge.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),ie(ie.S+ie.F*!(gt&&rt((function(e){ct.all(e).catch(dt)}))),"Promise",{all:function(e){var t=this,n=ht(t),r=n.resolve,i=n.reject,a=Ye((function(){var n=[],a=0,o=1;ye(e,!1,(function(e){var s=a++,u=!1;n.push(void 0),o++,t.resolve(e).then((function(e){u||(u=!0,n[s]=e,--o||r(n))}),i)})),--o||r(n)}));return a.e&&i(a.v),n.promise},race:function(e){var t=this,n=ht(t),r=n.reject,i=Ye((function(){ye(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}});var St={};St[Q("toStringTag")]="z",St+""!="[object z]"&&G(Object.prototype,"toString",(function(){return"[object "+J(this)+"]"}),!0);var At=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==X(e)?e.split(""):Object(e)},It=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},Rt=function(e){return At(It(e))},bt=Math.max,Dt=Math.min,Ct=function(e,t){return(e=he(e))<0?bt(e+t,0):Dt(e,t)},Nt=function(e){return function(t,n,r){var i,a=Rt(t),o=pe(a.length),s=Ct(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},wt=function(e,t){return!!e&&m((function(){t?e.call(null,(function(){}),1):e.call(null)}))},Mt=Nt(!1),Ot=[].indexOf,Lt=!!Ot&&1/[1].indexOf(1,-0)<0;ie(ie.P+ie.F*(Lt||!wt(Ot)),"Array",{indexOf:function(e){return Lt?Ot.apply(this,arguments)||0:Mt(this,e,arguments[1])}});var Pt={f:{}.propertyIsEnumerable},Ft=Object.getOwnPropertyDescriptor,xt={f:E?Ft:function(e,t){if(e=Rt(e),t=b(t,!0),R)try{return Ft(e,t)}catch(e){}if(L(e,t))return w(!Pt.f.call(e,t),e[t])}},Ut=function(e,t){if(_(e),!y(t)&&null!==t)throw TypeError(t+": can't set as prototype!")},Bt={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=z(Function.call,xt.f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return Ut(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):void 0),check:Ut}.set,kt=function(e,t,n){var r,i=t.constructor;return i!==n&&"function"==typeof i&&(r=i.prototype)!==n.prototype&&y(r)&&Bt&&Bt(e,r),e},Gt=B("keys"),Yt=function(e){return Gt[e]||(Gt[e]=x(e))},qt=Nt(!1),Kt=Yt("IE_PROTO"),Vt=function(e,t){var n,r=Rt(e),i=0,a=[];for(n in r)n!=Kt&&L(r,n)&&a.push(n);for(;t.length>i;)L(r,n=t[i++])&&(~qt(a,n)||a.push(n));return a},Ht="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),jt=Ht.concat("length","prototype"),zt={f:Object.getOwnPropertyNames||function(e){return Vt(e,jt)}},Wt="\t\n\v\f\r \u2028\u2029\ufeff",Xt="["+Wt+"]",Qt=RegExp("^"+Xt+Xt+"*"),Zt=RegExp(Xt+Xt+"*$"),$t=function(e,t,n){var r={},i=m((function(){return!!Wt[e]()||"
"!="
"[e]()})),a=r[e]=i?t(Jt):Wt[e];n&&(r[n]=a),ie(ie.P+ie.F*i,"String",r)},Jt=$t.trim=function(e,t){return e=String(It(e)),1&t&&(e=e.replace(Qt,"")),2&t&&(e=e.replace(Zt,"")),e},en=$t,tn=Object.keys||function(e){return Vt(e,Ht)},nn=E?Object.defineProperties:function(e,t){_(e);for(var n,r=tn(t),i=r.length,a=0;i>a;)C.f(e,n=r[a++],t[n]);return e},rn=Yt("IE_PROTO"),an=function(){},on=function(){var e,t=I("iframe"),n=Ht.length;for(t.style.display="none",Ae.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),on=e.F;n--;)delete on.prototype[Ht[n]];return on()},sn=Object.create||function(e,t){var n;return null!==e?(an.prototype=_(e),n=new an,an.prototype=null,n[rn]=e):n=on(),void 0===t?n:nn(n,t)},un=zt.f,ln=xt.f,cn=C.f,fn=en.trim,dn=T.Number,hn=dn,gn=dn.prototype,pn="Number"==X(sn(gn)),mn="trim"in String.prototype,En=function(e){var t=b(e,!1);if("string"==typeof t&&t.length>2){var n,r,i,a=(t=mn?t.trim():fn(t,3)).charCodeAt(0);if(43===a||45===a){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===a){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var o,s=t.slice(2),u=0,l=s.length;u<l;u++)if((o=s.charCodeAt(u))<48||o>i)return NaN;return parseInt(s,r)}}return+t};if(!dn(" 0o1")||!dn("0b1")||dn("+0x1")){dn=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof dn&&(pn?m((function(){gn.valueOf.call(n)})):"Number"!=X(n))?kt(new hn(En(t)),n,dn):En(t)};for(var yn,_n=E?un(hn):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),vn=0;_n.length>vn;vn++)L(hn,yn=_n[vn])&&!L(dn,yn)&&cn(dn,yn,ln(hn,yn));dn.prototype=gn,gn.constructor=dn,G(T,"Number",dn)}var Tn=function(e){return Object(It(e))},Sn=Array.isArray||function(e){return"Array"==X(e)},An=Q("species"),In=function(e,t){return new(function(e){var t;return Sn(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!Sn(t.prototype)||(t=void 0),y(t)&&null===(t=t[An])&&(t=void 0)),void 0===t?Array:t}(e))(t)},Rn=function(e,t){var n=1==e,r=2==e,i=3==e,a=4==e,o=6==e,s=5==e||o,u=t||In;return function(t,l,c){for(var f,d,h=Tn(t),g=At(h),p=z(l,c,3),m=pe(g.length),E=0,y=n?u(t,m):r?u(t,0):void 0;m>E;E++)if((s||E in g)&&(d=p(f=g[E],E,h),e))if(n)y[E]=d;else if(d)switch(e){case 3:return!0;case 5:return f;case 6:return E;case 2:y.push(f)}else if(a)return!1;return o?-1:i||a?a:y}},bn=Rn(1);ie(ie.P+ie.F*!wt([].map,!0),"Array",{map:function(e){return bn(this,e,arguments[1])}});var Dn=function(e,t,n,r,i){j(t);var a=Tn(e),o=At(a),s=pe(a.length),u=i?s-1:0,l=i?-1:1;if(n<2)for(;;){if(u in o){r=o[u],u+=l;break}if(u+=l,i?u<0:s<=u)throw TypeError("Reduce of empty array with no initial value")}for(;i?u>=0:s>u;u+=l)u in o&&(r=t(r,o[u],u,a));return r};ie(ie.P+ie.F*!wt([].reduce,!0),"Array",{reduce:function(e){return Dn(this,e,arguments.length,arguments[1],!1)}}),en("trim",(function(e){return function(){return e(this,3)}}));var Cn=/"/g,Nn=function(e,t,n,r){var i=String(It(e)),a="<"+t;return""!==n&&(a+=" "+n+'="'+String(r).replace(Cn,""")+'"'),a+">"+i+"</"+t+">"};!function(e,t){var n={};n[e]=t(Nn),ie(ie.P+ie.F*m((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}("italics",(function(e){return function(){return e(this,"i","","")}}));var wn=v((function(e,t){!function(e){var t={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},n=function(e){var n=e;return t.hasOwnProperty(e)&&(n=t[e]),String.fromCharCode(n)},r={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},i={17:2,18:4,21:6,22:8,23:10,19:13,20:15},a={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},o={25:2,26:4,29:6,30:8,31:10,27:13,28:15},s=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],u={verboseFilter:{DATA:3,DEBUG:3,INFO:2,WARNING:2,TEXT:1,ERROR:0},time:null,verboseLevel:0,setTime:function(e){this.time=e},log:function(e,t){var n=this.verboseFilter[e];this.verboseLevel>=n&&console.log(this.time+" ["+e+"] "+t)}},l=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toString(16));return t},c=function(e,t,n,r,i){this.foreground=e||"white",this.underline=t||!1,this.italics=n||!1,this.background=r||"black",this.flash=i||!1};c.prototype={reset:function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},setStyles:function(e){for(var t=["foreground","underline","italics","background","flash"],n=0;n<t.length;n++){var r=t[n];e.hasOwnProperty(r)&&(this[r]=e[r])}},isDefault:function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},equals:function(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash},copy:function(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash},toString:function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}};var f=function(e,t,n,r,i,a){this.uchar=e||" ",this.penState=new c(t,n,r,i,a)};f.prototype={reset:function(){this.uchar=" ",this.penState.reset()},setChar:function(e,t){this.uchar=e,this.penState.copy(t)},setPenState:function(e){this.penState.copy(e)},equals:function(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)},copy:function(e){this.uchar=e.uchar,this.penState.copy(e.penState)},isEmpty:function(){return" "===this.uchar&&this.penState.isDefault()}};var d=function(){this.chars=[];for(var e=0;e<32;e++)this.chars.push(new f);this.pos=0,this.currPenState=new c};d.prototype={equals:function(e){for(var t=!0,n=0;n<32;n++)if(!this.chars[n].equals(e.chars[n])){t=!1;break}return t},copy:function(e){for(var t=0;t<32;t++)this.chars[t].copy(e.chars[t])},isEmpty:function(){for(var e=!0,t=0;t<32;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e},setCursor:function(e){this.pos!==e&&(this.pos=e),this.pos<0?(u.log("ERROR","Negative cursor position "+this.pos),this.pos=0):this.pos>32&&(u.log("ERROR","Too large cursor position "+this.pos),this.pos=32)},moveCursor:function(e){var t=this.pos+e;if(e>1)for(var n=this.pos+1;n<t+1;n++)this.chars[n].setPenState(this.currPenState);this.setCursor(t)},backSpace:function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},insertChar:function(e){e>=144&&this.backSpace();var t=n(e);this.pos>=32?u.log("ERROR","Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1))},clearFromPos:function(e){var t;for(t=e;t<32;t++)this.chars[t].reset()},clear:function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},clearToEndOfRow:function(){this.clearFromPos(this.pos)},getTextString:function(){for(var e=[],t=!0,n=0;n<32;n++){var r=this.chars[n].uchar;" "!==r&&(t=!1),e.push(r)}return t?"":e.join("")},setPenStyles:function(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}};var h=function(){this.rows=[];for(var e=0;e<15;e++)this.rows.push(new d);this.currRow=14,this.nrRollUpRows=null,this.reset()};h.prototype={reset:function(){for(var e=0;e<15;e++)this.rows[e].clear();this.currRow=14},equals:function(e){for(var t=!0,n=0;n<15;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t},copy:function(e){for(var t=0;t<15;t++)this.rows[t].copy(e.rows[t])},isEmpty:function(){for(var e=!0,t=0;t<15;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e},backSpace:function(){this.rows[this.currRow].backSpace()},clearToEndOfRow:function(){this.rows[this.currRow].clearToEndOfRow()},insertChar:function(e){this.rows[this.currRow].insertChar(e)},setPen:function(e){this.rows[this.currRow].setPenStyles(e)},moveCursor:function(e){this.rows[this.currRow].moveCursor(e)},setCursor:function(e){u.log("INFO","setCursor: "+e),this.rows[this.currRow].setCursor(e)},setPAC:function(e){u.log("INFO","pacData = "+JSON.stringify(e));var t=e.row-1;this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.currRow=t;var n=this.rows[this.currRow];if(null!==e.indent){var r=e.indent,i=Math.max(r-1,0);n.setCursor(e.indent),e.color=n.chars[i].penState.foreground}var a={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(a)},setBkgData:function(e){u.log("INFO","bkgData = "+JSON.stringify(e)),this.backSpace(),this.setPen(e),this.insertChar(32)},setRollUpRows:function(e){this.nrRollUpRows=e},rollUp:function(){if(null!==this.nrRollUpRows){u.log("TEXT",this.getDisplayText());var e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),u.log("INFO","Rolling up")}else u.log("DEBUG","roll_up but nrRollUpRows not set yet")},getDisplayText:function(e){e=e||!1;for(var t=[],n="",r=-1,i=0;i<15;i++){var a=this.rows[i].getTextString();a&&(r=i+1,e?t.push("Row "+r+': "'+a+'"'):t.push(a.trim()))}return t.length>0&&(n=e?"["+t.join(" | ")+"]":t.join("\n")),n},getTextAndFormat:function(){return this.rows}};var g=function(e,t){this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new h,this.nonDisplayedMemory=new h,this.lastOutputScreen=new h,this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null};g.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(e){this.outputFilter=e},setPAC:function(e){this.writeScreen.setPAC(e)},setBkgData:function(e){this.writeScreen.setBkgData(e)},setMode:function(e){e!==this.mode&&(this.mode=e,u.log("INFO","MODE="+e),"MODE_POP-ON"==this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)},insertChars:function(e){for(var t=0;t<e.length;t++)this.writeScreen.insertChar(e[t]);var n=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";u.log("INFO",n+": "+this.writeScreen.getDisplayText(!0)),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(u.log("TEXT","DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},cc_RCL:function(){u.log("INFO","RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},cc_BS:function(){u.log("INFO","BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},cc_AOF:function(){},cc_AON:function(){},cc_DER:function(){u.log("INFO","DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},cc_RU:function(e){u.log("INFO","RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)},cc_FON:function(){u.log("INFO","FON - Flash On"),this.writeScreen.setPen({flash:!0})},cc_RDC:function(){u.log("INFO","RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")},cc_TR:function(){u.log("INFO","TR"),this.setMode("MODE_TEXT")},cc_RTD:function(){u.log("INFO","RTD"),this.setMode("MODE_TEXT")},cc_EDM:function(){u.log("INFO","EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate()},cc_CR:function(){u.log("CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate()},cc_ENM:function(){u.log("INFO","ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},cc_EOC:function(){if(u.log("INFO","EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,u.log("TEXT","DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate()},cc_TO:function(e){u.log("INFO","TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)},cc_MIDROW:function(e){var t={flash:!1};if(t.underline=e%2==1,t.italics=e>=46,t.italics)t.foreground="white";else{var n=Math.floor(e/2)-16;t.foreground=["white","green","blue","cyan","red","yellow","magenta"][n]}u.log("INFO","MIDROW: "+JSON.stringify(t)),this.writeScreen.setPen(t)},outputDataUpdate:function(){var e=u.time;null!==e&&this.outputFilter&&(this.outputFilter.updateData&&this.outputFilter.updateData(e,this.displayedMemory),null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))},cueSplitAtTime:function(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}};var p=function(e,t,n){this.field=e||1,this.outputs=[t,n],this.channels=[new g(1,t),new g(2,n)],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}};p.prototype={getHandler:function(e){return this.channels[e].getHandler()},setHandler:function(e,t){this.channels[e].setHandler(t)},addData:function(e,t){var n,r,i,a=!1;this.lastTime=e,u.setTime(e);for(var o=0;o<t.length;o+=2)if(r=127&t[o],i=127&t[o+1],r>=16&&r<=31&&r===this.lastCmdA&&i===this.lastCmdB)this.lastCmdA=null,this.lastCmdB=null,u.log("DEBUG","Repeated command ("+l([r,i])+") is dropped");else if(0!==r||0!==i){if(u.log("DATA","["+l([t[o],t[o+1]])+"] -> ("+l([r,i])+")"),(n=this.parseCmd(r,i))||(n=this.parseMidrow(r,i)),n||(n=this.parsePAC(r,i)),n||(n=this.parseBackgroundAttributes(r,i)),!n)if(a=this.parseChars(r,i))if(this.currChNr&&this.currChNr>=0)this.channels[this.currChNr-1].insertChars(a);else u.log("WARNING","No channel found yet. TEXT-MODE?");n?this.dataCounters.cmd+=2:a?this.dataCounters.char+=2:(this.dataCounters.other+=2,u.log("WARNING","Couldn't parse cleaned data "+l([r,i])+" orig: "+l([t[o],t[o+1]])))}else this.dataCounters.padding+=2},parseCmd:function(e,t){var n=null;if(!((20===e||21===e||28===e||29===e)&&32<=t&&t<=47)&&!((23===e||31===e)&&33<=t&&t<=35))return!1;n=20===e||21===e||23===e?1:2;var r=this.channels[n-1];return 20===e||21===e||28===e||29===e?32===t?r.cc_RCL():33===t?r.cc_BS():34===t?r.cc_AOF():35===t?r.cc_AON():36===t?r.cc_DER():37===t?r.cc_RU(2):38===t?r.cc_RU(3):39===t?r.cc_RU(4):40===t?r.cc_FON():41===t?r.cc_RDC():42===t?r.cc_TR():43===t?r.cc_RTD():44===t?r.cc_EDM():45===t?r.cc_CR():46===t?r.cc_ENM():47===t&&r.cc_EOC():r.cc_TO(t-32),this.lastCmdA=e,this.lastCmdB=t,this.currChNr=n,!0},parseMidrow:function(e,t){var n=null;if((17===e||25===e)&&32<=t&&t<=47){if((n=17===e?1:2)!==this.currChNr)return u.log("ERROR","Mismatch channel in midrow parsing"),!1;var r=this.channels[n-1];return r.insertChars([32]),r.cc_MIDROW(t),u.log("DEBUG","MIDROW ("+l([e,t])+")"),this.lastCmdA=e,this.lastCmdB=t,!0}return!1},parsePAC:function(e,t){var n,s=null;if(!((17<=e&&e<=23||25<=e&&e<=31)&&64<=t&&t<=127)&&!((16===e||24===e)&&64<=t&&t<=95))return!1;n=e<=23?1:2,s=64<=t&&t<=95?1===n?r[e]:a[e]:1===n?i[e]:o[e];var u=this.interpretPAC(s,t);return this.channels[n-1].setPAC(u),this.lastCmdA=e,this.lastCmdB=t,this.currChNr=n,!0},interpretPAC:function(e,t){var n=t,r={color:null,italics:!1,indent:null,underline:!1,row:e};return n=t>95?t-96:t-64,r.underline=1==(1&n),n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=4*Math.floor((n-16)/2),r},parseChars:function(e,t){var r=null,i=null,a=null;if(e>=25?(r=2,a=e-8):(r=1,a=e),17<=a&&a<=19){var o=t;o=17===a?t+80:18===a?t+112:t+144,u.log("INFO","Special char '"+n(o)+"' in channel "+r),i=[o],this.lastCmdA=e,this.lastCmdB=t}else 32<=e&&e<=127&&(i=0===t?[e]:[e,t],this.lastCmdA=null,this.lastCmdB=null);if(i){var s=l(i);u.log("DEBUG","Char codes = "+s.join(","))}return i},parseBackgroundAttributes:function(e,t){var n,r,i;return((16===e||24===e)&&32<=t&&t<=47||(23===e||31===e)&&45<=t&&t<=47)&&(n={},16===e||24===e?(r=Math.floor((t-32)/2),n.background=s[r],t%2==1&&(n.background=n.background+"_semi")):45===t?n.background="transparent":(n.foreground="black",47===t&&(n.underline=!0)),i=e<24?1:2,this.channels[i-1].setBkgData(n),this.lastCmdA=e,this.lastCmdB=t,!0)},reset:function(){for(var e=0;e<this.channels.length;e++)this.channels[e]&&this.channels[e].reset();this.lastCmdA=null,this.lastCmdB=null},cueSplitAtTime:function(e){for(var t=0;t<this.channels.length;t++)this.channels[t]&&this.channels[t].cueSplitAtTime(e)}};e.logger=u,e.PenState=c,e.CaptionScreen=h,e.Cea608Parser=p,e.findCea608Nalus=function(e,t,n){for(var r=0,i=t,a=[],o=function(e,t,n,r){if(4!==e||t<8)return null;var i=n.getUint8(r),a=n.getUint16(r+1),o=n.getUint32(r+3),s=n.getUint8(r+7);return 181==i&&49==a&&1195456820==o&&3==s};i<t+n;){if(r=e.getUint32(i),6===(31&e.getUint8(i+4)))for(var s=i+5,u=-1;s<i+4+r-1;){u=0;for(var l=255;255===l;)u+=l=e.getUint8(s),s++;var c=0;for(l=255;255===l;)c+=l=e.getUint8(s),s++;o(u,c,e,s)&&a.push([s,c]),s+=c}i+=r+4}return a},e.extractCea608DataFromRange=function(e,t){var n=t[0],r=[[],[]];n+=8;var i=31&e.getUint8(n);n+=2;for(var a=0;a<i;a++){var o=e.getUint8(n),s=4&o,u=3&o;n++;var l=e.getUint8(n);n++;var c=e.getUint8(n);n++,s&&(127&l)+(127&c)!=0&&(0===u?(r[0].push(l),r[0].push(c)):1===u&&(r[1].push(l),r[1].push(c)))}return r}}(t)}));var Mn=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};function On(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ln=function(e,t,n){return t&&On(e.prototype,t),n&&On(e,n),e},Pn=new(function(){function e(){Mn(this,e),this.init()}return Ln(e,[{key:"init",value:function(){this.STREAM="stream",this.VIDEO="video",this.AUDIO="audio",this.TEXT="text",this.FRAGMENTED_TEXT="fragmentedText",this.EMBEDDED_TEXT="embeddedText",this.MUXED="muxed",this.IMAGE="image",this.STPP="stpp",this.TTML="ttml",this.VTT="vtt",this.WVTT="wvtt",this.ABR_STRATEGY_DYNAMIC="abrDynamic",this.ABR_STRATEGY_BOLA="abrBola",this.ABR_STRATEGY_THROUGHPUT="abrThroughput",this.MOVING_AVERAGE_SLIDING_WINDOW="slidingWindow",this.MOVING_AVERAGE_EWMA="ewma",this.BAD_ARGUMENT_ERROR="Invalid Arguments",this.MISSING_CONFIG_ERROR="Missing config parameter(s)",this.LOCATION="Location",this.INITIALIZE="initialize",this.TEXT_SHOWING="showing",this.TEXT_HIDDEN="hidden",this.CC1="CC1",this.CC3="CC3",this.UTF8="utf-8",this.SCHEME_ID_URI="schemeIdUri",this.START_TIME="starttime",this.SERVICE_DESCRIPTION_LL_SCHEME="urn:dvb:dash:lowlatency:scope:2019",this.SUPPLEMENTAL_PROPERTY_LL_SCHEME="urn:dvb:dash:lowlatency:critical:2019",this.XML="XML",this.ARRAY_BUFFER="ArrayBuffer"}}]),e}()),Fn=new(function(){function e(){Mn(this,e),this.init()}return Ln(e,[{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.SUPPLEMENTAL_PROPERTY="SupplementalProperty",this.INBAND_EVENT_STREAM="InbandEventStream",this.ACCESSIBILITY="Accessibility",this.ROLE="Role",this.RATING="Rating",this.CONTENT_COMPONENT="ContentComponent",this.SUBSET="Subset",this.LANG="lang",this.VIEWPOINT="Viewpoint",this.ROLE_ASARRAY="Role_asArray",this.ACCESSIBILITY_ASARRAY="Accessibility_asArray",this.AUDIOCHANNELCONFIGURATION_ASARRAY="AudioChannelConfiguration_asArray",this.CONTENTPROTECTION_ASARRAY="ContentProtection_asArray",this.MAIN="main",this.DYNAMIC="dynamic",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.SUGGESTED_PRESENTATION_DELAY="suggestedPresentationDelay",this.SERVICE_DESCRIPTION="ServiceDescription",this.SERVICE_DESCRIPTION_SCOPE="Scope",this.SERVICE_DESCRIPTION_LATENCY="Latency",this.SERVICE_DESCRIPTION_PLAYBACK_RATE="PlaybackRate"}}]),e}()),xn=new(function(){function e(){Mn(this,e),this.init()}return Ln(e,[{key:"init",value:function(){this.TCP_CONNECTION="TcpList",this.HTTP_REQUEST="HttpList",this.TRACK_SWITCH="RepSwitchList",this.BUFFER_LEVEL="BufferLevel",this.BUFFER_LOADED="bufferLoaded",this.ABANDON_LOAD="abandonload",this.ALLOW_LOAD="allowload",this.BUFFER_EMPTY="bufferStalled",this.BUFFER_STATE="BufferState",this.DVR_INFO="DVRInfo",this.DROPPED_FRAMES="DroppedFrames",this.SCHEDULING_INFO="SchedulingInfo",this.REQUESTS_QUEUE="RequestsQueue",this.MANIFEST_UPDATE="ManifestUpdate",this.MANIFEST_UPDATE_STREAM_INFO="ManifestUpdatePeriodInfo",this.MANIFEST_UPDATE_TRACK_INFO="ManifestUpdateRepresentationInfo",this.PLAY_LIST="PlayList",this.DVB_ERRORS="DVBErrors"}}]),e}()),Un=Rn(0),Bn=wt([].forEach,!0);ie(ie.P+ie.F*!Bn,"Array",{forEach:function(e){return Un(this,e,arguments[1])}}),ie(ie.S,"Date",{now:function(){return(new Date).getTime()}});var kn=Rn(2);ie(ie.P+ie.F*!wt([].filter,!0),"Array",{filter:function(e){return kn(this,e,arguments[1])}});var Gn=Rn(3);ie(ie.P+ie.F*!wt([].some,!0),"Array",{some:function(e){return Gn(this,e,arguments[1])}});var Yn=C.f,qn=Function.prototype,Kn=/^\s*function ([^ (]*)/;"name"in qn||E&&Yn(qn,"name",{configurable:!0,get:function(){try{return(""+this).match(Kn)[1]}catch(e){return""}}});var Vn=function(){var e,t=[],n={},r={};function i(e,n){for(var r in t){var i=t[r];if(i.context===e&&i.name===n)return i.instance}return null}function a(e,t){return t[e]}function o(e,t,n){e in n&&(n[e]=t)}function s(t,n,r){var i,a=t.__dashjs_factory_name,o=n[a];if(o){var s=o.instance;if(!o.override)return s.apply({context:n,factory:e},r);for(var u in i=t.apply({context:n},r),s=s.apply({context:n,factory:e,parent:i},r))i.hasOwnProperty(u)&&(i[u]=s[u])}else i=t.apply({context:n},r);return i.getClassName=function(){return a},i}return e={extend:function(e,t,n,r){!r[e]&&t&&(r[e]={instance:t,override:n})},getSingletonInstance:i,setSingletonInstance:function(e,n,r){for(var i in t){var a=t[i];if(a.context===e&&a.name===n)return void(t[i].instance=r)}t.push({name:n,context:e,instance:r})},getSingletonFactory:function(e){var r=a(e.__dashjs_factory_name,n);return r||(r=function(n){var r;return void 0===n&&(n={}),{getInstance:function(){return r||(r=i(n,e.__dashjs_factory_name)),r||(r=s(e,n,arguments),t.push({name:e.__dashjs_factory_name,context:n,instance:r})),r}}},n[e.__dashjs_factory_name]=r),r},getSingletonFactoryByName:function(e){return a(e,n)},updateSingletonFactory:function(e,t){o(e,t,n)},getClassFactory:function(e){var t=a(e.__dashjs_factory_name,r);return t||(t=function(t){return void 0===t&&(t={}),{create:function(){return s(e,t,arguments)}}},r[e.__dashjs_factory_name]=t),t},getClassFactoryByName:function(e){return a(e,r)},updateClassFactory:function(e,t){o(e,t,r)}}}();function Hn(){var e={};function t(t,n,r){var i=-1;return e[t]?(e[t].some((function(e,t){if(e&&e.callback===n&&(!r||r===e.scope))return i=t,!0})),i):i}return{on:function(n,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!n)throw new Error("event type cannot be null or undefined");if(!r||"function"!=typeof r)throw new Error("listener must be a function: "+r);if(!(t(n,r,i)>=0)){e[n]=e[n]||[];var o={callback:r,scope:i,priority:a},s=e[n].some((function(t,r){if(t&&a>t.priority)return e[n].splice(r,0,o),!0}));s||e[n].push(o)}},off:function(n,r,i){if(n&&r&&e[n]){var a=t(n,r,i);a<0||(e[n][a]=null)}},trigger:function(t,n){if(t&&e[t]){if((n=n||{}).hasOwnProperty("type"))throw new Error("'type' is a reserved word for event dispatching");n.type=t,e[t]=e[t].filter((function(e){return e})),e[t].forEach((function(e){return e&&e.callback.call(e.scope,n)}))}},reset:function(){e={}}}}Hn.__dashjs_factory_name="EventBus";var jn=Vn.getSingletonFactory(Hn);jn.EVENT_PRIORITY_LOW=0,jn.EVENT_PRIORITY_HIGH=5e3,Vn.updateSingletonFactory(Hn.__dashjs_factory_name,jn);var zn=[].slice,Wn={},Xn=function(e,t,n){if(!(t in Wn)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";Wn[t]=Function("F,a","return new F("+r.join(",")+")")}return Wn[t](e,n)},Qn=Function.bind||function(e){var t=j(this),n=zn.call(arguments,1),r=function(){var i=n.concat(zn.call(arguments));return this instanceof r?Xn(t,i.length,i):Te(t,i,e)};return y(t.prototype)&&(r.prototype=t.prototype),r},Zn=(T.Reflect||{}).construct,$n=m((function(){function e(){}return!(Zn((function(){}),[],e)instanceof e)})),Jn=!m((function(){Zn((function(){}))}));ie(ie.S+ie.F*($n||Jn),"Reflect",{construct:function(e,t){j(e),_(t);var n=arguments.length<3?e:j(arguments[2]);if(Jn&&!$n)return Zn(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(Qn.apply(e,r))}var i=n.prototype,a=sn(y(i)?i:Object.prototype),o=Function.apply.call(e,a,t);return y(o)?o:a}});var er=v((function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(n,r)}e.exports=t}));var tr=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&er(e,t)},nr=v((function(e){function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t}));var rr=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};var ir=function(e,t){return!t||"object"!==nr(t)&&"function"!=typeof t?rr(e):t},ar=v((function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(n)}e.exports=t})),or=function(){function e(){Mn(this,e)}return Ln(e,[{key:"extend",value:function(e,t){if(e){var n=!!t&&t.override,r=!!t&&t.publicOnly;for(var i in e)!e.hasOwnProperty(i)||this[i]&&!n||r&&-1===e[i].indexOf("public_")||(this[i]=e[i])}}}]),e}();function sr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ar(e);if(t){var i=ar(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ir(this,n)}}function ur(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ar(e);if(t){var i=ar(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ir(this,n)}}var lr=new(function(e){tr(n,e);var t=ur(n);function n(){return Mn(this,n),t.apply(this,arguments)}return n}(function(e){tr(n,e);var t=sr(n);function n(){var e;return Mn(this,n),(e=t.call(this)).BUFFERING_COMPLETED="bufferingCompleted",e.BUFFER_CLEARED="bufferCleared",e.BUFFER_LEVEL_UPDATED="bufferLevelUpdated",e.BYTES_APPENDED="bytesAppended",e.BYTES_APPENDED_END_FRAGMENT="bytesAppendedEndFragment",e.CHECK_FOR_EXISTENCE_COMPLETED="checkForExistenceCompleted",e.CURRENT_TRACK_CHANGED="currentTrackChanged",e.DATA_UPDATE_COMPLETED="dataUpdateCompleted",e.DATA_UPDATE_STARTED="dataUpdateStarted",e.INBAND_EVENTS="inbandEvents",e.INITIALIZATION_LOADED="initializationLoaded",e.INIT_FRAGMENT_LOADED="initFragmentLoaded",e.INIT_REQUESTED="initRequested",e.INTERNAL_MANIFEST_LOADED="internalManifestLoaded",e.ORIGINAL_MANIFEST_LOADED="originalManifestLoaded",e.LIVE_EDGE_SEARCH_COMPLETED="liveEdgeSearchCompleted",e.LOADING_COMPLETED="loadingCompleted",e.LOADING_PROGRESS="loadingProgress",e.LOADING_DATA_PROGRESS="loadingDataProgress",e.LOADING_ABANDONED="loadingAborted",e.MANIFEST_UPDATED="manifestUpdated",e.MEDIA_FRAGMENT_LOADED="mediaFragmentLoaded",e.QUOTA_EXCEEDED="quotaExceeded",e.REPRESENTATION_UPDATE_STARTED="representationUpdateStarted",e.REPRESENTATION_UPDATE_COMPLETED="representationUpdateCompleted",e.SEGMENTS_LOADED="segmentsLoaded",e.SERVICE_LOCATION_BLACKLIST_ADD="serviceLocationBlacklistAdd",e.SERVICE_LOCATION_BLACKLIST_CHANGED="serviceLocationBlacklistChanged",e.SOURCEBUFFER_REMOVE_COMPLETED="sourceBufferRemoveCompleted",e.STREAMS_COMPOSED="streamsComposed",e.STREAM_BUFFERING_COMPLETED="streamBufferingCompleted",e.STREAM_COMPLETED="streamCompleted",e.TEXT_TRACKS_QUEUE_INITIALIZED="textTracksQueueInitialized",e.TIMED_TEXT_REQUESTED="timedTextRequested",e.TIME_SYNCHRONIZATION_COMPLETED="timeSynchronizationComplete",e.URL_RESOLUTION_FAILED="urlResolutionFailed",e.VIDEO_CHUNK_RECEIVED="videoChunkReceived",e.WALLCLOCK_TIME_UPDATED="wallclockTimeUpdated",e.XLINK_ELEMENT_LOADED="xlinkElementLoaded",e.XLINK_READY="xlinkReady",e.SEGMENTBASE_INIT_REQUEST_NEEDED="segmentBaseInitRequestNeeded",e.SEGMENTBASE_SEGMENTSLIST_REQUEST_NEEDED="segmentBaseSegmentsListRequestNeeded",e}return n}(or)));ie(ie.P,"Function",{bind:Qn});var cr=1,fr=2,dr=3,hr=4,gr=5;function pr(e){e=e||{};var t,n,r,i,a=this.context,o=jn(a).getInstance(),s=e.settings,u=[];function l(e){return e&&e.bind?e.bind(window.console):window.console.log.bind(window.console)}function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];p.apply(void 0,[cr,this].concat(t))}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];p.apply(void 0,[fr,this].concat(t))}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];p.apply(void 0,[dr,this].concat(t))}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];p.apply(void 0,[hr,this].concat(t))}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];p.apply(void 0,[gr,this].concat(t))}function p(e,t){var a="",l=null;n&&(l=(new Date).getTime(),a+="["+(l-i)+"]"),r&&t&&t.getClassName&&(a+="["+t.getClassName()+"]",t.getType&&(a+="["+t.getType()+"]")),a.length>0&&(a+=" ");for(var c=arguments.length,f=new Array(c>2?c-2:0),d=2;d<c;d++)f[d-2]=arguments[d];A