/**
* @license
* Video.js 7.2.4
* Copyright Brightcove, Inc.
* Available under Apache License Version 2.0
*
*
* Includes vtt.js
* Available under Apache License Version 2.0
*
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.videojs=e()}(this,function(){var p="7.2.4",t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var e,d="undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{},n={},r=Object.freeze({default:n}),i=r&&n||r,o="undefined"!=typeof t?t:"undefined"!=typeof window?window:{};"undefined"!=typeof document?e=document:(e=o["__GLOBAL_DOCUMENT_CACHE@4"])||(e=o["__GLOBAL_DOCUMENT_CACHE@4"]=i);var f=e,s=void 0,a="info",l=[],c=function(t,e){var n=s.levels[a],r=new RegExp("^("+n+")$");if("log"!==t&&e.unshift(t.toUpperCase()+":"),l&&l.push([].concat(e)),e.unshift("VIDEOJS:"),d.console){var i=d.console[t];i||"debug"!==t||(i=d.console.info||d.console.log),i&&n&&r.test(t)&&i[Array.isArray(e)?"apply":"call"](d.console,e)}};(s=function(){for(var t=arguments.length,e=Array(t),n=0;n',n=i.firstChild,i.setAttribute("style","display:none; position:absolute;"),f.body.appendChild(i));for(var o={},s=0;sx',t=e.firstChild.href}return t},tn=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(t);if(e)return e.pop().toLowerCase()}return""},en=function(t){var e=d.location,n=Qe(t);return(":"===n.protocol?e.protocol:n.protocol)+n.host!==e.protocol+e.host},nn=Object.freeze({parseUrl:Qe,getAbsoluteURL:Ze,getFileExtension:tn,isCrossOrigin:en}),rn=function(t){var e=on.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)},on=Object.prototype.toString;var sn,an=(function(t,e){(e=t.exports=function(t){return t.replace(/^\s*|\s*$/g,"")}).left=function(t){return t.replace(/^\s*/,"")},e.right=function(t){return t.replace(/\s*$/,"")}}(sn={exports:{}},sn.exports),sn.exports),ln=(an.left,an.right,function(t,e,n){if(!rn(e))throw new TypeError("iterator must be a function");arguments.length<3&&(n=this);"[object Array]"===cn.call(t)?function(t,e,n){for(var r=0,i=t.length;r=t?e.push(i):i.startTime===i.endTime&&i.startTime<=t&&i.startTime+.5>=t&&e.push(i)}if(a=!1,e.length!==this.activeCues_.length)a=!0;else for(var o=0;o',className:this.buildCSSClass(),tabIndex:0},e),"button"===t&&y.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),n=k({role:"button"},n),this.tabIndex_=e.tabIndex;var r=i.prototype.createEl.call(this,t,e,n);return this.createControlTextEl(r),r},r.prototype.dispose=function(){this.controlTextEl_=null,i.prototype.dispose.call(this)},r.prototype.createControlTextEl=function(t){return this.controlTextEl_=I("span",{className:"vjs-control-text"},{"aria-live":"polite"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_},r.prototype.controlText=function(t){var e=1',className:this.buildCSSClass()},e),n=k({type:"button"},n);var r=Xt.prototype.createEl.call(this,"button",e,n);return this.createControlTextEl(r),r},t.prototype.addChild=function(t){var e=1'+this.localize(this.labelText_)+" "});return this.contentEl_=I("span",{className:e+"-display"},{"aria-live":"off"}),this.updateTextNode_(),n.appendChild(this.contentEl_),n},i.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,r.prototype.dispose.call(this)},i.prototype.updateTextNode_=function(){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=f.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},i.prototype.formatTime_=function(t){return ir(t)},i.prototype.updateFormattedTime_=function(t){var e=this.formatTime_(t);e!==this.formattedTime_&&(this.formattedTime_=e,this.requestAnimationFrame(this.updateTextNode_))},i.prototype.updateContent=function(t){},i}(Xt);or.prototype.labelText_="Time",or.prototype.controlText_="Time",Xt.registerComponent("TimeDisplay",or);var sr=function(r){function i(t,e){g(this,i);var n=_(this,r.call(this,t,e));return n.on(t,"ended",n.handleEnded),n}return m(i,r),i.prototype.buildCSSClass=function(){return"vjs-current-time"},i.prototype.updateContent=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(e)},i.prototype.handleEnded=function(t){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},i}(or);sr.prototype.labelText_="Current Time",sr.prototype.controlText_="Current Time",Xt.registerComponent("CurrentTimeDisplay",sr);var ar=function(r){function i(t,e){g(this,i);var n=_(this,r.call(this,t,e));return n.on(t,"durationchange",n.updateContent),n.on(t,"loadedmetadata",n.throttledUpdateContent),n}return m(i,r),i.prototype.buildCSSClass=function(){return"vjs-duration"},i.prototype.updateContent=function(t){var e=this.player_.duration();e&&this.duration_!==e&&(this.duration_=e,this.updateFormattedTime_(e))},i}(or);ar.prototype.labelText_="Duration",ar.prototype.controlText_="Duration",Xt.registerComponent("DurationDisplay",ar);var lr=function(t){function e(){return g(this,e),_(this,t.apply(this,arguments))}return m(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"/
"})},e}(Xt);Xt.registerComponent("TimeDivider",lr);var cr=function(r){function i(t,e){g(this,i);var n=_(this,r.call(this,t,e));return n.on(t,"durationchange",n.throttledUpdateContent),n.on(t,"ended",n.handleEnded),n}return m(i,r),i.prototype.buildCSSClass=function(){return"vjs-remaining-time"},i.prototype.formatTime_=function(t){return"-"+r.prototype.formatTime_.call(this,t)},i.prototype.updateContent=function(t){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},i.prototype.handleEnded=function(t){this.player_.duration()&&this.updateFormattedTime_(0)},i}(or);cr.prototype.labelText_="Remaining Time",cr.prototype.controlText_="Remaining Time",Xt.registerComponent("RemainingTimeDisplay",cr);var ur=function(r){function i(t,e){g(this,i);var n=_(this,r.call(this,t,e));return n.updateShowing(),n.on(n.player(),"durationchange",n.updateShowing),n}return m(i,r),i.prototype.createEl=function(){var t=r.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=I("div",{className:"vjs-live-display",innerHTML:''+this.localize("Stream Type")+" "+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},i.prototype.dispose=function(){this.contentEl_=null,r.prototype.dispose.call(this)},i.prototype.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},i}(Xt);Xt.registerComponent("LiveDisplay",ur);var hr=function(r){function i(t,e){g(this,i);var n=_(this,r.call(this,t,e));return n.bar=n.getChild(n.options_.barName),n.vertical(!!n.options_.vertical),n.enable(),n}return m(i,r),i.prototype.enabled=function(){return this.enabled_},i.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},i.prototype.disable=function(){if(this.enabled()){var t=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},i.prototype.createEl=function(t){var e=1'+this.localize("Loaded")+": 0%"})},i.prototype.dispose=function(){this.partEls_=null,r.prototype.dispose.call(this)},i.prototype.update=function(t){var e=this.player_.buffered(),n=this.player_.duration(),r=this.player_.bufferedEnd(),i=this.partEls_,o=function(t,e){var n=t/e||0;return 100*(1<=n?1:n)+"%"};this.el_.style.width=o(r,n);for(var s=0;se.length;u--)this.el_.removeChild(i[u-1]);i.length=e.length},i}(Xt);Xt.registerComponent("LoadProgressBar",pr);var dr=function(t){function e(){return g(this,e),_(this,t.apply(this,arguments))}return m(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},e.prototype.update=function(t,e,n){var r=$(this.el_),i=$(this.player_.el()),o=t.width*e;if(i&&r){var s=t.left-i.left+o,a=t.width-o+(i.right-t.right),l=r.width/2;sr.width&&(l=r.width),this.el_.style.right="-"+l+"px",D(this.el_,n)}},e}(Xt);Xt.registerComponent("TimeTooltip",dr);var fr=function(t){function e(){return g(this,e),_(this,t.apply(this,arguments))}return m(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:''+this.localize("Progress")+": 0%"})},e.prototype.update=function(n,r){var i=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var t=ir(i.player_.scrubbing()?i.player_.getCache().currentTime:i.player_.currentTime(),i.player_.duration()),e=i.getChild("timeTooltip");e&&e.update(n,r,t)})},e}(Xt);fr.prototype.options_={children:[]},ie||se||fr.prototype.options_.children.push("timeTooltip"),Xt.registerComponent("PlayProgressBar",fr);var yr=function(r){function i(t,e){g(this,i);var n=_(this,r.call(this,t,e));return n.update=At(Pt(n,n.update),25),n}return m(i,r),i.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},i.prototype.update=function(n,r){var i=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var t=i.player_.duration(),e=ir(r*t,t);i.el_.style.left=n.width*r+"px",i.getChild("timeTooltip").update(n,r,e)})},i}(Xt);yr.prototype.options_={children:["timeTooltip"]},Xt.registerComponent("MouseTimeDisplay",yr);var vr=function(r){function i(t,e){g(this,i);var n=_(this,r.call(this,t,e));return n.setEventHandlers_(),n}return m(i,r),i.prototype.setEventHandlers_=function(){var t=this;this.update=At(Pt(this,this.update),30),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.updateInterval=null,this.on(this.player_,["playing"],function(){t.clearInterval(t.updateInterval),t.updateInterval=t.setInterval(function(){t.requestAnimationFrame(function(){t.update()})},30)}),this.on(this.player_,["ended","pause","waiting"],function(){t.clearInterval(t.updateInterval)}),this.on(this.player_,["timeupdate","ended"],this.update)},i.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},i.prototype.update_=function(t,e){var n=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*e).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[ir(t,n),ir(n,n)],"{1} of {2}")),this.bar.update($(this.el_),e)},i.prototype.update=function(t){var e=r.prototype.update.call(this);return this.update_(this.getCurrentTime_(),e),e},i.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},i.prototype.handleEnded=function(t){this.update_(this.player_.duration(),1)},i.prototype.getPercent=function(){var t=this.getCurrentTime_()/this.player_.duration();return 1<=t?1:t||0},i.prototype.handleMouseDown=function(t){nt(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),r.prototype.handleMouseDown.call(this,t))},i.prototype.handleMouseMove=function(t){if(nt(t)){var e=this.calculateDistance(t)*this.player_.duration();e===this.player_.duration()&&(e-=.1),this.player_.currentTime(e)}},i.prototype.enable=function(){r.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},i.prototype.disable=function(){r.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},i.prototype.handleMouseUp=function(t){r.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&Me(this.player_.play())},i.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},i.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},i.prototype.handleAction=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},i.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleAction(t)):r.prototype.handleKeyPress&&r.prototype.handleKeyPress.call(this,t)},i}(hr);vr.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},ie||se||vr.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),vr.prototype.playerEvent="timeupdate",Xt.registerComponent("SeekBar",vr);var gr=function(r){function i(t,e){g(this,i);var n=_(this,r.call(this,t,e));return n.handleMouseMove=At(Pt(n,n.handleMouseMove),25),n.throttledHandleMouseSeek=At(Pt(n,n.handleMouseSeek),25),n.enable(),n}return m(i,r),i.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},i.prototype.handleMouseMove=function(t){var e=this.getChild("seekBar");if(e){var n=e.getChild("mouseTimeDisplay"),r=e.el(),i=$(r),o=Y(r,t).x;1'})},e}(Xt);Xt.registerComponent("VolumeLevel",br);var Tr=function(r){function i(t,e){g(this,i);var n=_(this,r.call(this,t,e));return n.on("slideractive",n.updateLastVolume_),n.on(t,"volumechange",n.updateARIAAttributes),t.ready(function(){return n.updateARIAAttributes()}),n}return m(i,r),i.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},i.prototype.handleMouseDown=function(t){nt(t)&&r.prototype.handleMouseDown.call(this,t)},i.prototype.handleMouseMove=function(t){nt(t)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(t)))},i.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},i.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},i.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},i.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},i.prototype.updateARIAAttributes=function(t){var e=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",e),this.el_.setAttribute("aria-valuetext",e+"%")},i.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},i.prototype.updateLastVolume_=function(){var t=this,e=this.player_.volume();this.one("sliderinactive",function(){0===t.player_.volume()&&t.player_.lastVolume_(e)})},i}(hr);Tr.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Tr.prototype.playerEvent="volumechange",Xt.registerComponent("VolumeBar",Tr);var Cr=function(r){function i(t){var e=1=e.length&&(t=e.length-1),e[this.focusedChild_=t].el_.focus())},i}(Xt);Xt.registerComponent("Menu",wr);var xr=function(i){function o(t){var e=1