(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3afac516"],{"016a":function(e,t,i){"use strict";var n=i("749d"),r=8589934592,a=4294967296,s="shared",o=function(e,t){var i=1;e>t&&(i=-1);while(Math.abs(t-e)>a)e+=i*r;return e},u=function(e){var t,i;u.prototype.init.call(this),this.type_=e||s,this.push=function(e){this.type_!==s&&e.type!==this.type_||(void 0===i&&(i=e.dts),e.dts=o(e.dts,i),e.pts=o(e.pts,i),t=e.dts,this.trigger("data",e))},this.flush=function(){i=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){i=void 0,t=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};u.prototype=new n,e.exports={TimestampRolloverStream:u,handleRollover:o}},"045f":function(e,t,i){"use strict";var n=i("d7d2"),r=i("a559"),a=i("8362"),s=function(e){var t={};return e?(e.trim().split("\n").forEach((function(e){var i=e.indexOf(":"),n=e.slice(0,i).trim().toLowerCase(),r=e.slice(i+1).trim();"undefined"===typeof t[n]?t[n]=r:Array.isArray(t[n])?t[n].push(r):t[n]=[t[n],r]})),t):t};function o(e,t){for(var i=0;i0&&(f=setTimeout((function(){if(!d){d=!0,p.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",a(e)}}),e.timeout)),p.setRequestHeader)for(l in y)y.hasOwnProperty(l)&&p.setRequestHeader(l,y[l]);else if(e.headers&&!u(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(p.responseType=e.responseType),"beforeSend"in e&&"function"===typeof e.beforeSend&&e.beforeSend(p),p.send(v||null),p}function h(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(i){}return null}function p(){}e.exports=c,e.exports.default=c,c.XMLHttpRequest=n.XMLHttpRequest||p,c.XDomainRequest="withCredentials"in new c.XMLHttpRequest?c.XMLHttpRequest:n.XDomainRequest,o(["get","put","post","patch","head","delete"],(function(e){c["delete"===e?"del":e]=function(t,i,n){return i=l(t,i,n),i.method=e.toUpperCase(),d(i)}}))},"0821":function(e,t,i){"use strict"; /*! @name @videojs/vhs-utils @version 2.3.0 @license MIT */var n=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var i=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(i,1),i>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var i=t.length,n=0;n1?i+s:e.byteLength,o===t[0]&&(1===t.length?c.push(e.subarray(i+8,u)):(l=a(e.subarray(i+8,u),t.slice(1)),l.length&&(c=c.concat(l)))),i=u;return c};e.exports=a},"24c1":function(e,t){var i=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3]),t};e.exports=i},2708:function(e,t,i){var n=i("3bce").toUnsigned,r=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4)),baseMediaDecodeTime:n(e[4]<<24|e[5]<<16|e[6]<<8|e[7])};return 1===t.version&&(t.baseMediaDecodeTime*=Math.pow(2,32),t.baseMediaDecodeTime+=n(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),t};e.exports=r},"28de":function(e,t,i){"use strict"; /*! @name @videojs/vhs-utils @version 2.3.0 @license MIT */function n(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}Object.defineProperty(t,"__esModule",{value:!0});var r=n(i("be09")),a={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},s=["video","audio","text"],o=["Video","Audio","Text"],u=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,i){var n=("00"+Number(t).toString(16)).slice(-2),r=("00"+Number(i).toString(16)).slice(-2);return"avc1."+n+"00"+r})):e},l=function(e){return e.map(u)},c=function(e){return e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e){return l([e])[0]}))},d=function(e){void 0===e&&(e="");var t=e.split(","),i={},n=[];return t.forEach((function(e){var t;e=e.trim(),s.forEach((function(n){var r=a[n].exec(e.toLowerCase());if(r&&!(r.length<=1)){t=n;var s=e.substring(0,r[1].length),o=e.replace(s,"");i[n]={type:s,details:o}}})),t||n.push(e)})),n.length&&(i.unknown=n),i},h=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var i=e.mediaGroups.AUDIO[t];if(!i)return null;for(var n in i){var r=i[n];if(r.default&&r.playlists)return d(r.playlists[0].attributes.CODECS)}return null},p=function(e){return void 0===e&&(e=""),a.video.test(e.trim().toLowerCase())},f=function(e){return void 0===e&&(e=""),a.audio.test(e.trim().toLowerCase())},m=function(e){return void 0===e&&(e=""),a.text.test(e.trim().toLowerCase())},g=function(e){if(e&&"string"===typeof e){var t=e.toLowerCase().split(",").map((function(e){return u(e.trim())})),i="video";1===t.length&&f(t[0])?i="audio":1===t.length&&m(t[0])&&(i="application");var n="mp4";return t.every((function(e){return a.mp4.test(e)}))?n="mp4":t.every((function(e){return a.webm.test(e)}))?n="webm":t.every((function(e){return a.ogg.test(e)}))&&(n="ogg"),i+"/"+n+';codecs="'+e+'"'}},v=function(e){return void 0===e&&(e=""),r.MediaSource&&r.MediaSource.isTypeSupported&&r.MediaSource.isTypeSupported(g(e))||!1},y=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every((function(e){e=e.trim();for(var t=0;t=t+i||t?new java.lang.String(e,t,i)+"":e}function l(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}n.prototype.parseFromString=function(e,t){var i=this.options,n=new c,s=i.domBuilder||new a,o=i.errorHandler,u=i.locator,l=i.xmlns||{},d={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return u&&s.setDocumentLocator(u),n.errorHandler=r(o,s,u),n.domBuilder=i.domBuilder||s,/\/x?html?$/.test(t)&&(d.nbsp=" ",d.copy="©",l[""]="http://www.w3.org/1999/xhtml"),l.xml=l.xml||"http://www.w3.org/XML/1998/namespace",e?n.parse(e,l,d):n.errorHandler.error("invalid doc source"),s.doc},a.prototype={startDocument:function(){this.doc=(new d).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,i,n){var r=this.doc,a=r.createElementNS(e,i||t),o=n.length;l(this,a),this.currentElement=a,this.locator&&s(this.locator,a);for(var u=0;u>>4>1&&(t+=e[4]+1),t},o=function(e,t){var i=r(e);return 0===i?"pat":i===t?"pmt":t?"pes":null},u=function(e){var t=a(e),i=4+s(e);return t&&(i+=e[i]+1),(31&e[i+10])<<8|e[i+11]},l=function(e){var t={},i=a(e),n=4+s(e);if(i&&(n+=e[n]+1),1&e[n+5]){var r,o,u;r=(15&e[n+1])<<8|e[n+2],o=3+r-4,u=(15&e[n+10])<<8|e[n+11];var l=12+u;while(l=e.byteLength)return null;var n,r=null;return n=e[i+7],192&n&&(r={},r.pts=(14&e[i+9])<<27|(255&e[i+10])<<20|(254&e[i+11])<<12|(255&e[i+12])<<5|(254&e[i+13])>>>3,r.pts*=4,r.pts+=(6&e[i+13])>>>1,r.dts=r.pts,64&n&&(r.dts=(14&e[i+14])<<27|(255&e[i+15])<<20|(254&e[i+16])<<12|(255&e[i+17])<<5|(254&e[i+18])>>>3,r.dts*=4,r.dts+=(6&e[i+18])>>>1)),r},h=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},p=function(e){for(var t,i=4+s(e),n=e.subarray(i),r=0,a=0,o=!1;a3&&(t=h(31&n[a+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(o=!0)),o};e.exports={parseType:o,parsePat:u,parsePmt:l,parsePayloadUnitStartIndicator:a,parsePesType:c,parsePesTime:d,videoPacketContainsKeyFrame:p}},"3bce":function(e,t){var i=function(e){return e>>>0},n=function(e){return("00"+e.toString(16)).slice(-2)};e.exports={toUnsigned:i,toHexString:n}},"3c96":function(e,t,i){function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}i("d9e2"),e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"4a4b":function(e,t,i){function n(t,i){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t,i)}i("1f68"),i("131a"),e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"55b5":function(e,t,i){var n=i("4a4b");function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,n(e,t)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"5fcf":function(e,t,i){"use strict"; /*! @name @videojs/vhs-utils @version 2.3.0 @license MIT */function n(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var r=n(i("d136")),a=n(i("be09")),s=function(e,t){return/^[a-z]+:/i.test(t)?t:(/\/\//i.test(e)||(e=r.buildAbsoluteURL(a.location&&a.location.href||"",e)),r.buildAbsoluteURL(e,t))};e.exports=s},6:function(e,t){},"67e1":function(e,t){var i,n,r,a,s,o,u,l=9e4;i=function(e){return e*l},n=function(e,t){return e*t},r=function(e){return e/l},a=function(e,t){return e/t},s=function(e,t){return i(a(e,t))},o=function(e,t){return n(r(e),t)},u=function(e,t,i){return r(i?e:e-t)},e.exports={ONE_SECOND_IN_TS:l,secondsToVideoTs:i,secondsToAudioTs:n,videoTsToSeconds:r,audioTsToSeconds:a,audioTsToVideoTs:s,videoTsToAudioTs:o,metadataTsToSeconds:u}},"6b9d":function(e,t,i){var n=i("6cdb"),r=function(e){var t,i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},r=new DataView(e.buffer,e.byteOffset,e.byteLength),a=1&i.flags[2],s=4&i.flags[2],o=1&i.flags[1],u=2&i.flags[1],l=4&i.flags[1],c=8&i.flags[1],d=r.getUint32(4),h=8;a&&(i.dataOffset=r.getInt32(h),h+=4),s&&d&&(t={flags:n(e.subarray(h,h+4))},h+=4,o&&(t.duration=r.getUint32(h),h+=4),u&&(t.size=r.getUint32(h),h+=4),c&&(1===i.version?t.compositionTimeOffset=r.getInt32(h):t.compositionTimeOffset=r.getUint32(h),h+=4),i.samples.push(t),d--);while(d--)t={},o&&(t.duration=r.getUint32(h),h+=4),u&&(t.size=r.getUint32(h),h+=4),l&&(t.flags=n(e.subarray(h,h+4)),h+=4),c&&(1===i.version?t.compositionTimeOffset=r.getInt32(h):t.compositionTimeOffset=r.getUint32(h),h+=4),i.samples.push(t);return i};e.exports=r},"6cdb":function(e,t){var i=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}};e.exports=i},"6f8f":function(e,t,i){function n(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(e.exports=n=function(){return!!t},e.exports.__esModule=!0,e.exports["default"]=e.exports)()}i("4ae1"),e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"704b":function(e,t,i){"use strict";e.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},"749c":function(e,t){function i(e,t){for(var i in e)t[i]=e[i]}function n(e,t){var n=e.prototype;if(Object.create){var r=Object.create(t.prototype);n.__proto__=r}if(!(n instanceof t)){function a(){}a.prototype=t.prototype,a=new a,i(n,a),e.prototype=n=a}n.constructor!=e&&("function"!=typeof e&&console.error("unknow Class:"+e),n.constructor=e)}var r="http://www.w3.org/1999/xhtml",a={},s=a.ELEMENT_NODE=1,o=a.ATTRIBUTE_NODE=2,u=a.TEXT_NODE=3,l=a.CDATA_SECTION_NODE=4,c=a.ENTITY_REFERENCE_NODE=5,d=a.ENTITY_NODE=6,h=a.PROCESSING_INSTRUCTION_NODE=7,p=a.COMMENT_NODE=8,f=a.DOCUMENT_NODE=9,m=a.DOCUMENT_TYPE_NODE=10,g=a.DOCUMENT_FRAGMENT_NODE=11,v=a.NOTATION_NODE=12,y={},_={},b=(y.INDEX_SIZE_ERR=(_[1]="Index size error",1),y.DOMSTRING_SIZE_ERR=(_[2]="DOMString size error",2),y.HIERARCHY_REQUEST_ERR=(_[3]="Hierarchy request error",3)),T=(y.WRONG_DOCUMENT_ERR=(_[4]="Wrong document",4),y.INVALID_CHARACTER_ERR=(_[5]="Invalid character",5),y.NO_DATA_ALLOWED_ERR=(_[6]="No data allowed",6),y.NO_MODIFICATION_ALLOWED_ERR=(_[7]="No modification allowed",7),y.NOT_FOUND_ERR=(_[8]="Not found",8)),S=(y.NOT_SUPPORTED_ERR=(_[9]="Not supported",9),y.INUSE_ATTRIBUTE_ERR=(_[10]="Attribute in use",10));y.INVALID_STATE_ERR=(_[11]="Invalid state",11),y.SYNTAX_ERR=(_[12]="Syntax error",12),y.INVALID_MODIFICATION_ERR=(_[13]="Invalid modification",13),y.NAMESPACE_ERR=(_[14]="Invalid namespace",14),y.INVALID_ACCESS_ERR=(_[15]="Invalid access",15);function k(e,t){if(t instanceof Error)var i=t;else i=this,Error.call(this,_[e]),this.message=_[e],Error.captureStackTrace&&Error.captureStackTrace(this,k);return i.code=e,t&&(this.message=this.message+": "+t),i}function C(){}function E(e,t){this._node=e,this._refresh=t,w(this)}function w(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);se(e,"length",n.length),i(n,e),e._inc=t}}function I(){}function A(e,t){var i=e.length;while(i--)if(e[i]===t)return i}function x(e,t,i,n){if(n?t[A(t,n)]=i:t[t.length++]=i,e){i.ownerElement=e;var r=e.ownerDocument;r&&(n&&U(r,e,n),R(r,e,i))}}function P(e,t,i){var n=A(t,i);if(!(n>=0))throw k(T,new Error(e.tagName+"@"+i));var r=t.length-1;while(n"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function N(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(N(e,t))return!0}while(e=e.nextSibling)}function M(){}function R(e,t,i){e&&e._inc++;var n=i.namespaceURI;"http://www.w3.org/2000/xmlns/"==n&&(t._nsMap[i.prefix?i.localName:""]=i.value)}function U(e,t,i,n){e&&e._inc++;var r=i.namespaceURI;"http://www.w3.org/2000/xmlns/"==r&&delete t._nsMap[i.prefix?i.localName:""]}function F(e,t,i){if(e&&e._inc){e._inc++;var n=t.childNodes;if(i)n[n.length++]=i;else{var r=t.firstChild,a=0;while(r)n[a++]=r,r=r.nextSibling;n.length=a}}}function B(e,t){var i=t.previousSibling,n=t.nextSibling;return i?i.nextSibling=n:e.firstChild=n,n?n.previousSibling=i:e.lastChild=i,F(e.ownerDocument,e),t}function j(e,t,i){var n=t.parentNode;if(n&&n.removeChild(t),t.nodeType===g){var r=t.firstChild;if(null==r)return t;var a=t.lastChild}else r=a=t;var s=i?i.previousSibling:e.lastChild;r.previousSibling=s,a.nextSibling=i,s?s.nextSibling=r:e.firstChild=r,null==i?e.lastChild=a:i.previousSibling=a;do{r.parentNode=e}while(r!==a&&(r=r.nextSibling));return F(e.ownerDocument||e,e),t.nodeType==g&&(t.firstChild=t.lastChild=null),t}function V(e,t){var i=t.parentNode;if(i){var n=e.lastChild;i.removeChild(t);n=e.lastChild}n=e.lastChild;return t.parentNode=e,t.previousSibling=n,t.nextSibling=null,n?n.nextSibling=t:e.firstChild=t,e.lastChild=t,F(e.ownerDocument,e,t),t}function H(){this._nsMap={}}function q(){}function W(){}function G(){}function z(){}function K(){}function X(){}function Y(){}function Q(){}function $(){}function J(){}function Z(){}function ee(){}function te(e,t){var i=[],n=9==this.nodeType?this.documentElement:this,r=n.prefix,a=n.namespaceURI;if(a&&null==r){r=n.lookupPrefix(a);if(null==r)var s=[{namespace:a,prefix:null}]}return ne(this,i,e,t,s),i.join("")}function ie(e,t,i){var n=e.prefix||"",r=e.namespaceURI;if(!n&&!r)return!1;if("xml"===n&&"http://www.w3.org/XML/1998/namespace"===r||"http://www.w3.org/2000/xmlns/"==r)return!1;var a=i.length;while(a--){var s=i[a];if(s.prefix==n)return s.namespace!=r}return!0}function ne(e,t,i,n,a){if(n){if(e=n(e),!e)return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case s:a||(a=[]);a.length;var d=e.attributes,v=d.length,y=e.firstChild,_=e.tagName;i=r===e.namespaceURI||i,t.push("<",_);for(var b=0;b"),i&&/^script$/i.test(_))while(y)y.data?t.push(y.data):ne(y,t,i,n,a),y=y.nextSibling;else while(y)ne(y,t,i,n,a),y=y.nextSibling;t.push("")}else t.push("/>");return;case f:case g:y=e.firstChild;while(y)ne(y,t,i,n,a),y=y.nextSibling;return;case o:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,L),'"');case u:return t.push(e.data.replace(/[<&]/g,L));case l:return t.push("");case p:return t.push("\x3c!--",e.data,"--\x3e");case m:var E=e.publicId,w=e.systemId;if(t.push("');else if(w&&"."!=w)t.push(' SYSTEM "',w,'">');else{var I=e.internalSubset;I&&t.push(" [",I,"]"),t.push(">")}return;case h:return t.push("");case c:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function re(e,t,i){var n;switch(t.nodeType){case s:n=t.cloneNode(!1),n.ownerDocument=e;case g:break;case o:i=!0;break}if(n||(n=t.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,i){var r=t.firstChild;while(r)n.appendChild(re(e,r,i)),r=r.nextSibling}return n}function ae(e,t,i){var n=new t.constructor;for(var r in t){var a=t[r];"object"!=typeof a&&a!=n[r]&&(n[r]=a)}switch(t.childNodes&&(n.childNodes=new C),n.ownerDocument=e,n.nodeType){case s:var u=t.attributes,l=n.attributes=new I,c=u.length;l._ownerElement=n;for(var d=0;d0},lookupPrefix:function(e){var t=this;while(t){var i=t._nsMap;if(i)for(var n in i)if(i[n]==e)return n;t=t.nodeType==o?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){var t=this;while(t){var i=t._nsMap;if(i&&e in i)return i[e];t=t.nodeType==o?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return null==t}},i(a,O),i(a,O.prototype),M.prototype={nodeName:"#document",nodeType:f,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==g){var i=e.firstChild;while(i){var n=i.nextSibling;this.insertBefore(i,t),i=n}return e}return null==this.documentElement&&e.nodeType==s&&(this.documentElement=e),j(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),B(this,e)},importNode:function(e,t){return re(this,e,t)},getElementById:function(e){var t=null;return N(this.documentElement,(function(i){if(i.nodeType==s&&i.getAttribute("id")==e)return t=i,!0})),t},createElement:function(e){var t=new H;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new C;var i=t.attributes=new I;return i._ownerElement=t,t},createDocumentFragment:function(){var e=new J;return e.ownerDocument=this,e.childNodes=new C,e},createTextNode:function(e){var t=new G;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new z;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new K;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var i=new Z;return i.ownerDocument=this,i.tagName=i.target=e,i.nodeValue=i.data=t,i},createAttribute:function(e){var t=new q;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new $;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var i=new H,n=t.split(":"),r=i.attributes=new I;return i.childNodes=new C,i.ownerDocument=this,i.nodeName=t,i.tagName=t,i.namespaceURI=e,2==n.length?(i.prefix=n[0],i.localName=n[1]):i.localName=t,r._ownerElement=i,i},createAttributeNS:function(e,t){var i=new q,n=t.split(":");return i.ownerDocument=this,i.nodeName=t,i.name=t,i.namespaceURI=e,i.specified=!0,2==n.length?(i.prefix=n[0],i.localName=n[1]):i.localName=t,i}},n(M,O),H.prototype={nodeType:s,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var i=this.ownerDocument.createAttribute(e);i.value=i.nodeValue=""+t,this.setAttributeNode(i)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===g?this.insertBefore(e,null):V(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var i=this.getAttributeNodeNS(e,t);i&&this.removeAttributeNode(i)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var i=this.getAttributeNodeNS(e,t);return i&&i.value||""},setAttributeNS:function(e,t,i){var n=this.ownerDocument.createAttributeNS(e,t);n.value=n.nodeValue=""+i,this.setAttributeNode(n)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new E(this,(function(t){var i=[];return N(t,(function(n){n===t||n.nodeType!=s||"*"!==e&&n.tagName!=e||i.push(n)})),i}))},getElementsByTagNameNS:function(e,t){return new E(this,(function(i){var n=[];return N(i,(function(r){r===i||r.nodeType!==s||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||n.push(r)})),n}))}},M.prototype.getElementsByTagName=H.prototype.getElementsByTagName,M.prototype.getElementsByTagNameNS=H.prototype.getElementsByTagNameNS,n(H,O),q.prototype.nodeType=o,n(q,O),W.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(_[b])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,i){var n=this.data.substring(0,e),r=this.data.substring(e+t);i=n+i+r,this.nodeValue=this.data=i,this.length=i.length}},n(W,O),G.prototype={nodeName:"#text",nodeType:u,splitText:function(e){var t=this.data,i=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(i);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},n(G,W),z.prototype={nodeName:"#comment",nodeType:p},n(z,W),K.prototype={nodeName:"#cdata-section",nodeType:l},n(K,W),X.prototype.nodeType=m,n(X,O),Y.prototype.nodeType=v,n(Y,O),Q.prototype.nodeType=d,n(Q,O),$.prototype.nodeType=c,n($,O),J.prototype.nodeName="#document-fragment",J.prototype.nodeType=g,n(J,O),Z.prototype.nodeType=h,n(Z,O),ee.prototype.serializeToString=function(e,t,i){return te.call(e,t,i)},O.prototype.toString=te;try{if(Object.defineProperty){function oe(e){switch(e.nodeType){case s:case g:var t=[];e=e.firstChild;while(e)7!==e.nodeType&&8!==e.nodeType&&t.push(oe(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(E.prototype,"length",{get:function(){return w(this),this.$$length}}),Object.defineProperty(O.prototype,"textContent",{get:function(){return oe(this)},set:function(e){switch(this.nodeType){case s:case g:while(this.firstChild)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),se=function(e,t,i){e["$$"+t]=i}}}catch(ue){}t.DOMImplementation=D,t.XMLSerializer=ee},"749d":function(e,t,i){"use strict";var n=function(){this.init=function(){var e={};this.on=function(t,i){e[t]||(e[t]=[]),e[t]=e[t].concat(i)},this.off=function(t,i){var n;return!!e[t]&&(n=e[t].indexOf(i),e[t]=e[t].slice(),e[t].splice(n,1),n>-1)},this.trigger=function(t){var i,n,r,a;if(i=e[t],i)if(2===arguments.length)for(r=i.length,n=0;n>4;return a?i+20:i+10},s=function e(t,i){return void 0===i&&(i=0),t=n(t),t.length-i<10||"ID3"!==r(t.subarray(i,i+3))?i:(i+=a(t,i),e(t,i))},o={aac:function(e){var t=s(e);return e.length>=t+2&&255===(255&e[t])&&224===(224&e[t+1])&&16===(22&e[t+1])},mp3:function(e){var t=s(e);return e.length>=t+2&&255===(255&e[t])&&224===(224&e[t+1])&&2===(6&e[t+1])},webm:function(e){return e.length>=4&&26===(255&e[0])&&69===(255&e[1])&&223===(255&e[2])&&163===(255&e[3])},mp4:function(e){return e.length>=8&&/^(f|s)typ$/.test(r(e.subarray(4,8)))&&!/^ftyp3g$/.test(r(e.subarray(4,10)))},"3gp":function(e){return e.length>=10&&/^ftyp3g$/.test(r(e.subarray(4,10)))},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];var t=0;while(t+188=4&&/^fLaC$/.test(r(e.subarray(0,4)))},ogg:function(e){return e.length>=4&&/^OggS$/.test(r(e.subarray(0,4)))}},u=Object.keys(o).filter((function(e){return"ts"!==e})).concat("ts");u.forEach((function(e){var t=o[e];o[e]=function(e){return t(n(e))}}));var l=function(e){e=n(e);for(var t=0;t>>0,a=r(e.subarray(t+4,t+8));if("moof"===a)return!0;0===i||i+t>e.length?t=e.length:t+=i}return!1};t.detectContainerForBytes=l,t.getId3Offset=s,t.id3Size=a,t.isLikely=o,t.isLikelyFmp4MediaSegment=c},8362:function(e,t){e.exports=n;var i=Object.prototype.toString;function n(e){if(!e)return!1;var t=i.call(e);return"[object Function]"===t||"function"===typeof e&&"[object RegExp]"!==t||"undefined"!==typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}},8507:function(e,t,i){"use strict";(function(t){/*! @name @videojs/vhs-utils @version 2.3.0 @license MIT */ function n(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var r=n(i("be09")),a=function(e){return r.atob?r.atob(e):t.from(e,"base64").toString("binary")};function s(e){for(var t=a(e),i=new Uint8Array(t.length),n=0;n100)throw new Error("Position must be between 0 and 100.");g=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return v},set:function(e){var t=s(e);t?(v=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return y},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");y=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return _},set:function(e){var t=s(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");_=t,this.hasBeenReset=!0}}}),this.displayState=void 0}o.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=o},b17c:function(e,t,i){i("14d9"),i("4ae1");var n=i("4a4b"),r=i("6f8f");function a(e,t,i){if(r())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var s=new(e.bind.apply(e,a));return i&&n(s,i.prototype),s}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},b2bd:function(e,t,i){"use strict"; /*! @name @videojs/vhs-utils @version 2.3.0 @license MIT */Object.defineProperty(t,"__esModule",{value:!0});var n=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,r=/^application\/dash\+xml/i,a=function(e){return n.test(e)?"hls":r.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null};t.simpleTypeFromSourceType=a},bd9c:function(e,t,i){"use strict";var n=i("704b"),r=i("016a").handleRollover,a={};a.ts=i("3938"),a.aac=i("ce32");var s=i("67e1").ONE_SECOND_IN_TS,o=188,u=71,l=function(e,t){var i,n,r=0,s=o;while(s=0)if(e[d]!==u||e[h]!==u&&h!==e.byteLength)d--,h--;else{switch(n=e.subarray(d,h),r=a.ts.parseType(n,t.pid),r){case"pes":s=a.ts.parsePesType(n,t.table),l=a.ts.parsePayloadUnitStartIndicator(n),"audio"===s&&l&&(c=a.ts.parsePesTime(n),c&&(c.type="audio",i.audio.push(c),p=!0));break;default:break}if(p)break;d-=o,h-=o}},d=function(e,t,i){var n,r,s,l,c,d,h,p,f=0,m=o,g=!1,v={data:[],size:0};while(m=0)if(e[f]!==u||e[m]!==u)f--,m--;else{switch(n=e.subarray(f,m),r=a.ts.parseType(n,t.pid),r){case"pes":s=a.ts.parsePesType(n,t.table),l=a.ts.parsePayloadUnitStartIndicator(n),"video"===s&&l&&(c=a.ts.parsePesTime(n),c&&(c.type="video",i.video.push(c),g=!0));break;default:break}if(g)break;f-=o,m-=o}},h=function(e,t){if(e.audio&&e.audio.length){var i=t;"undefined"===typeof i&&(i=e.audio[0].dts),e.audio.forEach((function(e){e.dts=r(e.dts,i),e.pts=r(e.pts,i),e.dtsTime=e.dts/s,e.ptsTime=e.pts/s}))}if(e.video&&e.video.length){var n=t;if("undefined"===typeof n&&(n=e.video[0].dts),e.video.forEach((function(e){e.dts=r(e.dts,n),e.pts=r(e.pts,n),e.dtsTime=e.dts/s,e.ptsTime=e.pts/s})),e.firstKeyFrame){var a=e.firstKeyFrame;a.dts=r(a.dts,n),a.pts=r(a.pts,n),a.dtsTime=a.dts/s,a.ptsTime=a.dts/s}}},p=function(e){var t,i=!1,n=0,r=null,o=null,u=0,l=0;while(e.length-l>=3){var c=a.aac.parseType(e,l);switch(c){case"timed-metadata":if(e.length-l<10){i=!0;break}if(u=a.aac.parseId3TagSize(e,l),u>e.length){i=!0;break}null===o&&(t=e.subarray(l,l+u),o=a.aac.parseAacTimestamp(t)),l+=u;break;case"audio":if(e.length-l<7){i=!0;break}if(u=a.aac.parseAdtsSize(e,l),u>e.length){i=!0;break}null===r&&(t=e.subarray(l,l+u),r=a.aac.parseSampleRate(t)),n++,l+=u;break;default:l++;break}if(i)return null}if(null===r||null===o)return null;var d=s/r,h={audio:[{type:"audio",dts:o,pts:o},{type:"audio",dts:o+1024*n*d,pts:o+1024*n*d}]};return h},f=function(e){var t={pid:null,table:null},i={};for(var r in l(e,t),t.table)if(t.table.hasOwnProperty(r)){var a=t.table[r];switch(a){case n.H264_STREAM_TYPE:i.video=[],d(e,t,i),0===i.video.length&&delete i.video;break;case n.ADTS_STREAM_TYPE:i.audio=[],c(e,t,i),0===i.audio.length&&delete i.audio;break;default:break}}return i},m=function(e,t){var i,n=a.aac.isLikelyAacData(e);return i=n?p(e):f(e),i&&(i.audio||i.video)?(h(i,t),i):null};e.exports={inspect:m,parseAudioPes_:c}},be07:function(e,t){var i=function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:i.getUint32(4)},r=1&n.flags[2],a=2&n.flags[2],s=8&n.flags[2],o=16&n.flags[2],u=32&n.flags[2],l=65536&n.flags[0],c=131072&n.flags[0];return t=8,r&&(t+=4,n.baseDataOffset=i.getUint32(12),t+=4),a&&(n.sampleDescriptionIndex=i.getUint32(t),t+=4),s&&(n.defaultSampleDuration=i.getUint32(t),t+=4),o&&(n.defaultSampleSize=i.getUint32(t),t+=4),u&&(n.defaultSampleFlags=i.getUint32(t)),l&&(n.durationIsEmpty=!0),!r&&c&&(n.baseDataOffsetIsMoof=!0),n};e.exports=i},be09:function(e,t,i){(function(t){var i;i="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},e.exports=i}).call(this,i("c8ba"))},c073:function(e,t,i){"use strict";i.r(t),i.d(t,"default",(function(){return Fs}));var n=i("be09"),r=i.n(n),a=i("ef34"),s=i.n(a),o=i("a559"),u=i.n(o),l=i("3c96"),c=i.n(l),d=i("55b5"),h=i.n(d),p=i("8c10"),f=i.n(p),m=i("df33"),g=i.n(m),v=i("045f"),y=i.n(v),_=i("2b8c2"),b=i.n(_),T=i("b17c"),S=i.n(T),k=i("ed6d"),C=i.n(k),E=i("5fcf"),w=i.n(E),I=i("0821"),A=i.n(I),x=i("8507"),P=i.n(x),D=function(e){function t(){var t;return t=e.call(this)||this,t.buffer="",t}h()(t,e);var i=t.prototype;return i.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(A.a),O=function(){var e="[^=]*",t='"[^"]*"|[^,]*',i="(?:"+e+")=(?:"+t+")";return new RegExp("(?:^|,)("+i+")")},L=function(e){var t,i=e.split(O()),n={},r=i.length;while(r--)""!==i[r]&&(t=/([^=]*)=(.*)/.exec(i[r]).slice(1),t[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),n[t[0]]=t[1]);return n},N=function(e){function t(){var t;return t=e.call(this)||this,t.customParsers=[],t.tagMappers=[],t}h()(t,e);var i=t.prototype;return i.push=function(e){var t,i,n=this;if(e=e.trim(),0!==e.length)if("#"===e[0]){var r=this.tagMappers.reduce((function(t,i){var n=i(e);return n===e?t:t.concat([n])}),[e]);r.forEach((function(e){for(var r=0;r0&&(s.duration=e.duration),0===e.duration&&(s.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=a},key:function(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if(e.attributes.KEYFORMAT===d){var t=["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"];return-1===t.indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?void(this.manifest.contentProtection={"com.widevine.alpha":{attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:P()(e.attributes.URI.split(",")[1])}}):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),n={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},"undefined"!==typeof e.attributes.IV&&(n.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else n=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,h=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){i={},e.uri&&(i.uri=e.uri),e.byterange&&(i.byterange=e.byterange)},"stream-inf":function(){this.manifest.playlists=a,this.manifest.mediaGroups=this.manifest.mediaGroups||l,e.attributes?(s.attributes||(s.attributes={}),u()(s.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||l,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var i=this.manifest.mediaGroups[e.attributes.TYPE];i[e.attributes["GROUP-ID"]]=i[e.attributes["GROUP-ID"]]||{},t=i[e.attributes["GROUP-ID"]],c={default:/yes/i.test(e.attributes.DEFAULT)},c.default?c.autoselect=!0:c.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(c.language=e.attributes.LANGUAGE),e.attributes.URI&&(c.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(c.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(c.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(c.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=c}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){h+=1,s.discontinuity=!0,this.manifest.discontinuityStarts.push(a.length)},"program-date-time":function(){"undefined"===typeof this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),s.dateTimeString=e.dateTimeString,s.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):this.manifest.targetDuration=e.duration},totalduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid total duration: "+e.duration}):this.manifest.totalDuration=e.duration},start:function(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){s.cueOut=e.data},"cue-out-cont":function(){s.cueOutCont=e.data},"cue-in":function(){s.cueIn=e.data}}[e.tagType]||o).call(r)},uri:function(){s.uri=e.uri,a.push(s),this.manifest.targetDuration&&!("duration"in s)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),s.duration=this.manifest.targetDuration),n&&(s.key=n),s.timeline=h,i&&(s.map=i),s={}},comment:function(){},custom:function(){e.segment?(s.custom=s.custom||{},s.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(r)})),t}h()(t,e);var i=t.prototype;return i.push=function(e){this.lineStream.push(e)},i.end=function(){this.lineStream.push("\n")},i.addParser=function(e){this.parseStream.addParser(e)},i.addTagMapper=function(e){this.parseStream.addTagMapper(e)},t}(A.a),R=i("b2bd"),U=i("29d8"),F=function(e){return!!e&&"object"===typeof e},B=function e(){for(var t=arguments.length,i=new Array(t),n=0;nn.attributes.bandwidth||(e[s]={language:a,autoselect:!0,default:"main"===r,playlists:ee([te(n)],t),uri:""},"undefined"===typeof i&&"main"===r&&(i=n,i.default=!0)),e}),{});if(!i){var r=Object.keys(n)[0];n[r].default=!0}return n},re=function(e,t){return void 0===t&&(t={}),e.reduce((function(e,i){var n=i.attributes.lang||"text";return e[n]||(e[n]={language:n,default:!1,autoselect:!1,playlists:ee([ie(i)],t),uri:""}),e}),{})},ae=function(e){var t,i=e.attributes,n=e.segments,r=e.sidx,a={attributes:(t={NAME:i.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:i.width,height:i.height},CODECS:i.codecs,BANDWIDTH:i.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===(i.type||"static"),timeline:i.periodIndex,resolvedUri:"",targetDuration:i.duration,segments:n,mediaSequence:n.length?n[0].number:1};return i.contentProtection&&(a.contentProtection=i.contentProtection),r&&(a.sidx=r),a},se=function(e,t,i){var n;if(void 0===i&&(i={}),!e.length)return{};var r=e[0].attributes,a=r.sourceDuration,s=r.type,o=void 0===s?"static":s,u=r.suggestedPresentationDelay,l=r.minimumUpdatePeriod,c=function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video"===t.contentType},d=function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio"===t.contentType},h=function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType},p=Z(e.filter(c)).map(ae),f=Z(e.filter(d)),m=e.filter(h),g={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(n={AUDIO:{},VIDEO:{}},n["CLOSED-CAPTIONS"]={},n.SUBTITLES={},n),uri:"",duration:a,playlists:ee(p,i)};return l>=0&&(g.minimumUpdatePeriod=1e3*l),t&&(g.locations=t),"dynamic"===o&&(g.suggestedPresentationDelay=u),f.length&&(g.mediaGroups.AUDIO.audio=ne(f,i)),m.length&&(g.mediaGroups.SUBTITLES.subs=re(m,i)),g},oe=function(e,t,i){var n=e.NOW,r=e.clientOffset,a=e.availabilityStartTime,s=e.timescale,o=void 0===s?1:s,u=e.start,l=void 0===u?0:u,c=e.minimumUpdatePeriod,d=void 0===c?0:c,h=(n+r)/1e3,p=a+l,f=h+d,m=f-p;return Math.ceil((m*o-t)/i)},ue=function(e,t){for(var i=e.type,n=void 0===i?"static":i,r=e.minimumUpdatePeriod,a=void 0===r?0:r,s=e.media,o=void 0===s?"":s,u=e.sourceDuration,l=e.timescale,c=void 0===l?1:l,d=e.startNumber,h=void 0===d?1:d,p=e.periodIndex,f=[],m=-1,g=0;gm&&(m=b);var T=void 0;if(_<0){var S=g+1;T=S===t.length?"dynamic"===n&&a>0&&o.indexOf("$Number$")>0?oe(e,m,y):(u*c-m)/y:(t[S].t-m)/y}else T=_+1;var k=h+f.length+T,C=h+f.length;while(C=r?a:""+new Array(r-a.length+1).join("0")+a)}},de=function(e,t){return e.replace(le,ce(t))},he=function(e,t){return e.duration||t?e.duration?Q(e):ue(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodIndex}]},pe=function(e,t){var i={RepresentationID:e.id,Bandwidth:e.bandwidth||0},n=e.initialization,r=void 0===n?{sourceURL:"",range:""}:n,a=z({baseUrl:e.baseUrl,source:de(r.sourceURL,i),range:r.range}),s=he(e,t);return s.map((function(t){i.Number=t.number,i.Time=t.time;var n=de(e.media||"",i);return{uri:n,timeline:t.timeline,duration:t.duration,resolvedUri:w()(e.baseUrl||"",n),map:a,number:t.number}}))},fe=function(e,t){var i=e.baseUrl,n=e.initialization,r=void 0===n?{}:n,a=z({baseUrl:i,source:r.sourceURL,range:r.range}),s=z({baseUrl:i,source:t.media,range:t.mediaRange});return s.map=a,s},me=function(e,t){var i=e.duration,n=e.segmentUrls,r=void 0===n?[]:n;if(!i&&!t||i&&t)throw new Error(G.SEGMENT_TIME_UNSPECIFIED);var a,s=r.map((function(t){return fe(e,t)}));i&&(a=Q(e)),t&&(a=ue(e,t));var o=a.map((function(e,t){if(s[t]){var i=s[t];return i.timeline=e.timeline,i.duration=e.duration,i.number=e.number,i}})).filter((function(e){return e}));return o},ge=function(e){var t,i,n=e.attributes,r=e.segmentInfo;r.template?(i=pe,t=B(n,r.template)):r.base?(i=$,t=B(n,r.base)):r.list&&(i=me,t=B(n,r.list));var a={attributes:n};if(!i)return a;var s=i(t,r.timeline);if(t.duration){var o=t,u=o.duration,l=o.timescale,c=void 0===l?1:l;t.duration=u/c}else s.length?t.duration=s.reduce((function(e,t){return Math.max(e,Math.ceil(t.duration))}),0):t.duration=0;return a.attributes=t,a.segments=s,r.base&&t.indexRange&&(a.sidx=s[0],a.segments=[]),a},ve=function(e){return e.map(ge)},ye=function(e,t){return q(e.childNodes).filter((function(e){var i=e.tagName;return i===t}))},_e=function(e){return e.textContent.trim()},be=function(e){var t=31536e3,i=2592e3,n=86400,r=3600,a=60,s=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/,o=s.exec(e);if(!o)return 0;var u=o.slice(1),l=u[0],c=u[1],d=u[2],h=u[3],p=u[4],f=u[5];return parseFloat(l||0)*t+parseFloat(c||0)*i+parseFloat(d||0)*n+parseFloat(h||0)*r+parseFloat(p||0)*a+parseFloat(f||0)},Te=function(e){var t=/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/;return t.test(e)&&(e+="Z"),Date.parse(e)},Se={mediaPresentationDuration:function(e){return be(e)},availabilityStartTime:function(e){return Te(e)/1e3},minimumUpdatePeriod:function(e){return be(e)},suggestedPresentationDelay:function(e){return be(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return be(e)},start:function(e){return be(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?be(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},ke=function(e){return e&&e.attributes?q(e.attributes).reduce((function(e,t){var i=Se[t.name]||Se.DEFAULT;return e[t.name]=i(t.value),e}),{}):{}},Ce={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},Ee=function(e,t){return t.length?H(e.map((function(e){return t.map((function(t){return w()(e,_e(t))}))}))):e},we=function(e){var t=ye(e,"SegmentTemplate")[0],i=ye(e,"SegmentList")[0],n=i&&ye(i,"SegmentURL").map((function(e){return B({tag:"SegmentURL"},ke(e))})),r=ye(e,"SegmentBase")[0],a=i||t,s=a&&ye(a,"SegmentTimeline")[0],o=i||r||t,u=o&&ye(o,"Initialization")[0],l=t&&ke(t);l&&u?l.initialization=u&&ke(u):l&&l.initialization&&(l.initialization={sourceURL:l.initialization});var c={template:l,timeline:s&&ye(s,"S").map((function(e){return ke(e)})),list:i&&B(ke(i),{segmentUrls:n,initialization:ke(u)}),base:r&&B(ke(r),{initialization:ke(u)})};return Object.keys(c).forEach((function(e){c[e]||delete c[e]})),c},Ie=function(e,t,i){return function(n){var r=ye(n,"BaseURL"),a=Ee(t,r),s=B(e,ke(n)),o=we(n);return a.map((function(e){return{segmentInfo:B(i,o),attributes:B(s,{baseUrl:e})}}))}},Ae=function(e){return e.reduce((function(e,t){var i=ke(t),n=Ce[i.schemeIdUri];if(n){e[n]={attributes:i};var r=ye(t,"cenc:pssh")[0];if(r){var a=_e(r),s=a&&P()(a);e[n].pssh=s}}return e}),{})},xe=function(e,t,i){return function(n){var r=ke(n),a=Ee(t,ye(n,"BaseURL")),s=ye(n,"Role")[0],o={role:ke(s)},u=B(e,r,o),l=Ae(ye(n,"ContentProtection"));Object.keys(l).length&&(u=B(u,{contentProtection:l}));var c=we(n),d=ye(n,"Representation"),h=B(i,c);return H(d.map(Ie(u,a,h)))}},Pe=function(e,t){return function(i,n){var a=Ee(t,ye(i,"BaseURL")),s=ke(i),o=parseInt(s.id,10),u=r.a.isNaN(o)?n:o,l=B(e,{periodIndex:u}),c=ye(i,"AdaptationSet"),d=we(i);return H(c.map(xe(l,a,d)))}},De=function(e,t){void 0===t&&(t={});var i=t,n=i.manifestUri,r=void 0===n?"":n,a=i.NOW,s=void 0===a?Date.now():a,o=i.clientOffset,u=void 0===o?0:o,l=ye(e,"Period");if(!l.length)throw new Error(G.INVALID_NUMBER_OF_PERIOD);var c=ye(e,"Location"),d=ke(e),h=Ee([r],ye(e,"BaseURL"));return d.sourceDuration=d.mediaPresentationDuration||0,d.NOW=s,d.clientOffset=u,c.length&&(d.locations=c.map(_e)),{locations:d.locations,representationInfo:H(l.map(Pe(d,h)))}},Oe=function(e){if(""===e)throw new Error(G.DASH_EMPTY_MANIFEST);var t=new U["DOMParser"],i=t.parseFromString(e,"application/xml"),n=i&&"MPD"===i.documentElement.tagName?i.documentElement:null;if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(G.DASH_INVALID_XML);return n},Le=function(e){var t=ye(e,"UTCTiming")[0];if(!t)return null;var i=ke(t);switch(i.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":i.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":i.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":i.method="DIRECT",i.value=Date.parse(i.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(G.UNSUPPORTED_UTC_TIMING_SCHEME)}return i},Ne=function(e,t){void 0===t&&(t={});var i=De(Oe(e),t),n=ve(i.representationInfo);return se(n,i.locations,t.sidxMapping)},Me=function(e){return Le(Oe(e))},Re=i("d139"),Ue=i.n(Re),Fe=i("764c"),Be=i("afea"),je=i("bd9c"),Ve=i.n(je),He=i("67e1"),qe=i("d258"),We=i.n(qe),Ge=i("28de"),ze="7.13.3",Ke=[],Xe=function(e,t){return function(i,n,a){var s=t.levels[n],o=new RegExp("^("+s+")$");if("log"!==i&&a.unshift(i.toUpperCase()+":"),a.unshift(e+":"),Ke){Ke.push([].concat(a));var u=Ke.length-1e3;Ke.splice(0,u>0?u:0)}if(r.a.console){var l=r.a.console[i];l||"debug"!==i||(l=r.a.console.info||r.a.console.log),l&&s&&o.test(i)&&l[Array.isArray(a)?"apply":"call"](r.a.console,a)}}};function Ye(e){var t,i="info",n=function(){for(var e=arguments.length,n=new Array(e),r=0;r1?t-1:0),n=1;n=0)throw new Error("class has illegal whitespace characters")}function ut(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}function lt(){return s.a===r.a.document}function ct(e){return nt(e)&&1===e.nodeType}function dt(){try{return r.a.parent!==r.a.self}catch(e){return!0}}function ht(e){return function(t,i){if(!st(t))return s.a[e](null);st(i)&&(i=s.a.querySelector(i));var n=ct(i)?i:s.a;return n[e]&&n[e](t)}}function pt(e,t,i,n){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===i&&(i={});var r=s.a.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var i=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(Qe.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+i+"."),r.setAttribute(e,i)):"textContent"===e?ft(r,i):r[e]!==i&&(r[e]=i)})),Object.getOwnPropertyNames(i).forEach((function(e){r.setAttribute(e,i[e])})),n&&Lt(r,n),r}function ft(e,t){return"undefined"===typeof e.textContent?e.innerText=t:e.textContent=t,e}function mt(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function gt(e,t){return ot(t),e.classList?e.classList.contains(t):ut(t).test(e.className)}function vt(e,t){return e.classList?e.classList.add(t):gt(e,t)||(e.className=(e.className+" "+t).trim()),e}function yt(e,t){return e.classList?e.classList.remove(t):(ot(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e}function _t(e,t,i){var n=gt(e,t);if("function"===typeof i&&(i=i(e,t)),"boolean"!==typeof i&&(i=!n),i!==n)return i?vt(e,t):yt(e,t),e}function bt(e,t){Object.getOwnPropertyNames(t).forEach((function(i){var n=t[i];null===n||"undefined"===typeof n||!1===n?e.removeAttribute(i):e.setAttribute(i,!0===n?"":n)}))}function Tt(e){var t={},i=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var n=e.attributes,r=n.length-1;r>=0;r--){var a=n[r].name,s=n[r].value;"boolean"!==typeof e[a]&&-1===i.indexOf(","+a+",")||(s=null!==s),t[a]=s}return t}function St(e,t){return e.getAttribute(t)}function kt(e,t,i){e.setAttribute(t,i)}function Ct(e,t){e.removeAttribute(t)}function Et(){s.a.body.focus(),s.a.onselectstart=function(){return!1}}function wt(){s.a.onselectstart=function(){return!0}}function It(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==t[e]&&(i[e]=t[e])})),i.height||(i.height=parseFloat(at(e,"height"))),i.width||(i.width=parseFloat(at(e,"width"))),i}}function At(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};var t=e.offsetWidth,i=e.offsetHeight,n=0,r=0;do{n+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent}while(e);return{left:n,top:r,width:t,height:i}}function xt(e,t){var i={},n=At(t.target),r=At(e),a=r.width,s=r.height,o=t.offsetY-(r.top-n.top),u=t.offsetX-(r.left-n.left);return t.changedTouches&&(u=t.changedTouches[0].pageX-r.left,o=t.changedTouches[0].pageY+r.top),i.y=1-Math.max(0,Math.min(1,o/s)),i.x=Math.max(0,Math.min(1,u/a)),i}function Pt(e){return nt(e)&&3===e.nodeType}function Dt(e){while(e.firstChild)e.removeChild(e.firstChild);return e}function Ot(e){return"function"===typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"===typeof e&&(e=e()),ct(e)||Pt(e)?e:"string"===typeof e&&/\S/.test(e)?s.a.createTextNode(e):void 0})).filter((function(e){return e}))}function Lt(e,t){return Ot(t).forEach((function(t){return e.appendChild(t)})),e}function Nt(e,t){return Lt(Dt(e),t)}function Mt(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}var Rt,Ut=ht("querySelector"),Ft=ht("querySelectorAll"),Bt=Object.freeze({__proto__:null,isReal:lt,isEl:ct,isInFrame:dt,createEl:pt,textContent:ft,prependTo:mt,hasClass:gt,addClass:vt,removeClass:yt,toggleClass:_t,setAttributes:bt,getAttributes:Tt,getAttribute:St,setAttribute:kt,removeAttribute:Ct,blockTextSelection:Et,unblockTextSelection:wt,getBoundingClientRect:It,findPosition:At,getPointerPosition:xt,isTextNode:Pt,emptyEl:Dt,normalizeContent:Ot,appendContent:Lt,insertContent:Nt,isSingleLeftClick:Mt,$:Ut,$$:Ft}),jt=!1,Vt=function(){if(lt()&&!1!==Rt.options.autoSetup){var e=Array.prototype.slice.call(s.a.getElementsByTagName("video")),t=Array.prototype.slice.call(s.a.getElementsByTagName("audio")),i=Array.prototype.slice.call(s.a.getElementsByTagName("video-js")),n=e.concat(t,i);if(n&&n.length>0)for(var r=0,a=n.length;r-1&&(r={passive:!0}),e.addEventListener(t,n.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,n.dispatcher)}function ri(e,t,i){if($t.has(e)){var n=$t.get(e);if(n.handlers){if(Array.isArray(t))return Zt(ri,e,t,i);var r=function(e,t){n.handlers[t]=[],Jt(e,t)};if(void 0!==t){var a=n.handlers[t];if(a)if(i){if(i.guid)for(var s=0;s=t&&(e.apply(void 0,arguments),i=n)};return n},pi=function(e,t,i,n){var a;void 0===n&&(n=r.a);var s=function(){n.clearTimeout(a),a=null},o=function(){var r=this,s=arguments,o=function(){a=null,o=null,i||e.apply(r,s)};!a&&i&&e.apply(r,s),n.clearTimeout(a),a=n.setTimeout(o,t)};return o.cancel=s,o},fi=function(){};fi.prototype.allowedEvents_={},fi.prototype.on=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},ni(this,e,t),this.addEventListener=i},fi.prototype.addEventListener=fi.prototype.on,fi.prototype.off=function(e,t){ri(this,e,t)},fi.prototype.removeEventListener=fi.prototype.off,fi.prototype.one=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},si(this,e,t),this.addEventListener=i},fi.prototype.any=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},oi(this,e,t),this.addEventListener=i},fi.prototype.trigger=function(e){var t=e.type||e;"string"===typeof e&&(e={type:t}),e=ei(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),ai(this,e)},fi.prototype.dispatchEvent=fi.prototype.trigger,fi.prototype.queueTrigger=function(e){var t=this;ui||(ui=new Map);var i=e.type||e,n=ui.get(this);n||(n=new Map,ui.set(this,n));var a=n.get(i);n["delete"](i),r.a.clearTimeout(a);var s=r.a.setTimeout((function(){0===n.size&&(n=null,ui["delete"](t)),t.trigger(e)}),0);n.set(i,s)};var mi=function(e){return e instanceof fi||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"===typeof e[t]}))},gi=function(e,t){mi(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))},vi=function(e){return"string"===typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},yi=function(e){if(!e.nodeName&&!mi(e))throw new Error("Invalid target; must be a DOM node or evented object.")},_i=function(e){if(!vi(e))throw new Error("Invalid event type; must be a non-empty string or array.")},bi=function(e){if("function"!==typeof e)throw new Error("Invalid listener; must be a function.")},Ti=function(e,t){var i,n,r,a=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return a?(i=e.eventBusEl_,t.length>=3&&t.shift(),n=t[0],r=t[1]):(i=t[0],n=t[1],r=t[2]),yi(i),_i(n),bi(r),r=di(e,r),{isTargetingSelf:a,target:i,type:n,listener:r}},Si=function(e,t,i,n){yi(e),e.nodeName?li[t](e,i,n):e[t](i,n)},ki={on:function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),$t.has(this.el_)&&$t["delete"](this.el_),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=Pi(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,i){return pt(e,t,i)},t.localize=function(e,t,i){void 0===i&&(i=e);var n=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),a=r&&r[n],s=n&&n.split("-")[0],o=r&&r[s],u=i;return a&&a[e]?u=a[e]:o&&o[e]&&(u=o[e]),t&&(u=u.replace(/\{(\d+)\}/g,(function(e,i){var n=t[i-1],r=n;return"undefined"===typeof n&&(r=e),r}))),u},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new Array(e),i=0;i=0;i--)if(this.children_[i]===e){t=!0,this.children_.splice(i,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Ai(e.name())]=null,this.childNameIndex_[Ii(e.name())]=null;var n=e.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,i=this.options_.children;if(i){var n,r=this.options_,a=function(e){var i=e.name,n=e.opts;if(void 0!==r[i]&&(n=r[i]),!1!==n){!0===n&&(n={}),n.playerOptions=t.options_.playerOptions;var a=t.addChild(i,n);a&&(t[i]=a)}},s=e.getComponent("Tech");n=Array.isArray(i)?i:Object.keys(i),n.concat(Object.keys(this.options_).filter((function(e){return!n.some((function(t){return"string"===typeof t?e===t:e===t.name}))}))).map((function(e){var n,r;return"string"===typeof e?(n=e,r=i[n]||t.options_[n]||{}):(n=e.name,r=e),{name:n,opts:r}})).filter((function(t){var i=e.getComponent(t.opts.componentClass||Ai(t.name));return i&&!s.isTech(i)})).forEach(a)}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},t.$=function(e,t){return Ut(e,t||this.contentEl())},t.$$=function(e,t){return Ft(e,t||this.contentEl())},t.hasClass=function(e){return gt(this.el_,e)},t.addClass=function(e){vt(this.el_,e)},t.removeClass=function(e){yt(this.el_,e)},t.toggleClass=function(e,t){_t(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return St(this.el_,e)},t.setAttribute=function(e,t){kt(this.el_,e,t)},t.removeAttribute=function(e){Ct(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,i){if(void 0!==t)return null!==t&&t===t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;var n=this.el_.style[e],r=n.indexOf("px");return-1!==r?parseInt(n.slice(0,r),10):parseInt(this.el_["offset"+Ai(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=at(this.el_,e),t=parseFloat(t),0===t||isNaN(t)){var i="offset"+Ai(e);t=this.el_[i]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,i=null,n=10,a=200;this.on("touchstart",(function(n){1===n.touches.length&&(i={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},t=r.a.performance.now(),e=!0)})),this.on("touchmove",(function(t){if(t.touches.length>1)e=!1;else if(i){var r=t.touches[0].pageX-i.pageX,a=t.touches[0].pageY-i.pageY,s=Math.sqrt(r*r+a*a);s>n&&(e=!1)}}));var s=function(){e=!1};this.on("touchleave",s),this.on("touchcancel",s),this.on("touchend",(function(n){if(i=null,!0===e){var s=r.a.performance.now()-t;s0&&l.map((function(e){return u[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=i,e.components_[Ii(t)]=i,i},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();Mi.prototype.supportsRaf_="function"===typeof r.a.requestAnimationFrame&&"function"===typeof r.a.cancelAnimationFrame,Mi.registerComponent("Component",Mi);var Ri=r.a.navigator&&r.a.navigator.userAgent||"",Ui=/AppleWebKit\/([\d.]+)/i.exec(Ri),Fi=Ui?parseFloat(Ui.pop()):null,Bi=/iPod/i.test(Ri),ji=function(){var e=Ri.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),Vi=/Android/i.test(Ri),Hi=function(){var e=Ri.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),i=e[2]&&parseFloat(e[2]);return t&&i?parseFloat(e[1]+"."+e[2]):t||null}(),qi=Vi&&Hi<5&&Fi<537,Wi=/Firefox/i.test(Ri),Gi=/Edg/i.test(Ri),zi=!Gi&&(/Chrome/i.test(Ri)||/CriOS/i.test(Ri)),Ki=function(){var e=Ri.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),Xi=function(){var e=/MSIE\s(\d+)\.\d/.exec(Ri),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(Ri)&&/rv:11.0/.test(Ri)&&(t=11),t}(),Yi=/Safari/i.test(Ri)&&!zi&&!Vi&&!Gi,Qi=/Windows/i.test(Ri),$i=lt()&&("ontouchstart"in r.a||r.a.navigator.maxTouchPoints||r.a.DocumentTouch&&r.a.document instanceof r.a.DocumentTouch),Ji=/iPad/i.test(Ri)||Yi&&$i&&!/iPhone/i.test(Ri),Zi=/iPhone/i.test(Ri)&&!Ji,en=Zi||Ji||Bi,tn=(Yi||en)&&!zi,nn=/QQBrowser/i.test(Ri),rn=Object.freeze({__proto__:null,IS_IPOD:Bi,IOS_VERSION:ji,IS_ANDROID:Vi,ANDROID_VERSION:Hi,IS_NATIVE_ANDROID:qi,IS_FIREFOX:Wi,IS_EDGE:Gi,IS_CHROME:zi,CHROME_VERSION:Ki,IE_VERSION:Xi,IS_SAFARI:Yi,IS_WINDOWS:Qi,TOUCH_ENABLED:$i,IS_IPAD:Ji,IS_IPHONE:Zi,IS_IOS:en,IS_ANY_SAFARI:tn,IS_QQ:nn});function an(e,t,i){if("number"!==typeof t||t<0||t>i)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+i+").")}function sn(e,t,i,n){return an(e,n,i.length-1),i[n][t]}function on(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:sn.bind(null,"start",0,e),end:sn.bind(null,"end",1,e)}}function un(e,t){return Array.isArray(e)?on(e):void 0===e||void 0===t?on():on([[e,t]])}function ln(e,t){var i,n,r=0;if(!t)return 0;e&&e.length||(e=un(0,0));for(var a=0;at&&(n=t),r+=n-i;return r/t}for(var cn,dn={prefixed:!0},hn=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],pn=hn[0],fn=0;fn=0;n--)if(t[n].enabled){An(t,t[n]);break}return i=e.call(this,t)||this,i.changing_=!1,i}h()(t,e);var i=t.prototype;return i.addTrack=function(t){var i=this;t.enabled&&An(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){i.changing_||(i.changing_=!0,An(i,t),i.changing_=!1,i.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},i.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(wn),Pn=function(e,t){for(var i=0;i=0;n--)if(t[n].selected){Pn(t,t[n]);break}return i=e.call(this,t)||this,i.changing_=!1,Object.defineProperty(c()(i),"selectedIndex",{get:function(){for(var e=0;e',i=n.firstChild,n.setAttribute("style","display:none; position:absolute;"),s.a.body.appendChild(n));for(var o={},u=0;ux',e=t.firstChild.href}return e},Hn=function(e){if("string"===typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/,i=t.exec(e);if(i)return i.pop().toLowerCase()}return""},qn=function(e,t){void 0===t&&(t=r.a.location);var i=jn(e),n=":"===i.protocol?t.protocol:i.protocol,a=n+i.host!==t.protocol+t.host;return a},Wn=Object.freeze({__proto__:null,parseUrl:jn,getAbsoluteURL:Vn,getFileExtension:Hn,isCrossOrigin:qn}),Gn=function(e,t){var i=new r.a.WebVTT.Parser(r.a,r.a.vttjs,r.a.WebVTT.StringDecoder()),n=[];i.oncue=function(e){t.addCue(e)},i.onparsingerror=function(e){n.push(e)},i.onflush=function(){t.trigger({type:"loadeddata",target:t})},i.parse(e),n.length>0&&(r.a.console&&r.a.console.groupCollapsed&&r.a.console.groupCollapsed("Text Track parsing errors for "+t.src),n.forEach((function(e){return Qe.error(e)})),r.a.console&&r.a.console.groupEnd&&r.a.console.groupEnd()),i.flush()},zn=function(e,t){var i={uri:e},n=qn(e);n&&(i.cors=n);var a="use-credentials"===t.tech_.crossOrigin();a&&(i.withCredentials=a),y()(i,di(this,(function(e,i,n){if(e)return Qe.error(e,i);t.loaded_=!0,"function"!==typeof r.a.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],(function(e){if("vttjserror"!==e.type)return Gn(n,t);Qe.error("vttjs failed to load, stopping trying to process "+t.src)})):Gn(n,t)})))},Kn=function(e){function t(t){var i;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var n=Pi(t,{kind:Un[t.kind]||"subtitles",language:t.language||t.srclang||""}),r=Fn[n.mode]||"disabled",a=n["default"];"metadata"!==n.kind&&"chapters"!==n.kind||(r="hidden"),i=e.call(this,n)||this,i.tech_=n.tech,i.cues_=[],i.activeCues_=[],i.preload_=!1!==i.tech_.preloadTextTracks;var s=new Nn(i.cues_),o=new Nn(i.activeCues_),u=!1,l=di(c()(i),(function(){this.activeCues=this.activeCues,u&&(this.trigger("cuechange"),u=!1)}));return"disabled"!==r&&i.tech_.ready((function(){i.tech_.on("timeupdate",l)}),!0),Object.defineProperties(c()(i),{default:{get:function(){return a},set:function(){}},mode:{get:function(){return r},set:function(e){var t=this;Fn[e]&&(r=e,this.preload_||"disabled"===r||0!==this.cues.length||zn(this.src,this),"disabled"!==r?this.tech_.ready((function(){t.tech_.on("timeupdate",l)}),!0):this.tech_.off("timeupdate",l),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?s:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return o;for(var e=this.tech_.currentTime(),t=[],i=0,n=this.cues.length;i=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(u=!1,t.length!==this.activeCues_.length)u=!0;else for(var a=0;a0)return void this.trigger("vttjsloaded");var t=s.a.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",(function(){t.onload=null,t.onerror=null})),r.a.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},i.emulateTextTracks=function(){var e=this,t=this.textTracks(),i=this.remoteTextTracks(),n=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};i.on("addtrack",n),i.on("removetrack",r),this.addWebVttScript_();var a=function(){return e.trigger("texttrackchange")},s=function(){a();for(var e=0;e=0;r--){var a=e[r];a[t]&&a[t](n,i)}}function br(e){or[e.id()]=null}function Tr(e,t){var i=or[e.id()],n=null;if(void 0===i||null===i)return n=t(e),or[e.id()]=[[t,n]],n;for(var r=0;r