/** * @license * Video.js 5.8.7 * Copyright Brightcove, Inc. * Available under Apache License Version 2.0 * */(function(yt){if(typeof exports=="object"&&typeof module!="undefined")module.exports=yt();else if(typeof define=="function"&&define.amd)define([],yt);else{var t;t=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this,t.videojs=yt()}})(function(){var yt;return function t(w,e,c){function o(h,a){if(!e[h]){if(!w[h]){var f=typeof require=="function"&&require;if(!a&&f)return f(h,!0);if(m)return m(h,!0);var u=new Error("Cannot find module '"+h+"'");throw u.code="MODULE_NOT_FOUND",u}var r=e[h]={exports:{}};w[h][0].call(r.exports,function(n){var y=w[h][1][n];return o(y||n)},r,r.exports,t,w,e,c)}return e[h].exports}for(var m=typeof require=="function"&&require,g=0;g=T||T>a?r(j,l):s=setTimeout(n,T)}function y(){r(O,s)}function i(){if(p=arguments,d=o(),v=this,j=O&&(s||!b),C===!1)var T=b&&!s;else{l||b||(k=d);var P=C-(d-k),D=0>=P||P>C;D?(l&&(l=clearTimeout(l)),k=d,_=h.apply(v,p)):l||(l=setTimeout(y,P))}return D&&s?s=clearTimeout(s):s||a===C||(s=setTimeout(n,a)),T&&(D=!0,_=h.apply(v,p)),!D||s||l||(p=v=void 0),_}var p,l,_,d,v,s,j,k=0,C=!1,O=!0;if(typeof h!="function")throw new TypeError(m);if(a=0>a?0:+a||0,f===!0){var b=!0;O=!1}else c(f)&&(b=!!f.leading,C="maxWait"in f&&g(+f.maxWait||0,a),O="trailing"in f?!!f.trailing:O);return i.cancel=u,i}var c=t("../lang/isObject"),o=t("../date/now"),m="Expected a function",g=Math.max;w.exports=e},{"../date/now":4,"../lang/isObject":33}],6:[function(t,w){function e(m,g){if(typeof m!="function")throw new TypeError(c);return g=o(g===void 0?m.length-1:+g||0,0),function(){for(var h=arguments,a=-1,f=o(h.length-g,0),u=Array(f);++a2?a[u-2]:void 0,n=u>2?a[2]:void 0,y=u>1?a[u-1]:void 0;for(typeof r=="function"?(r=c(r,y,5),u-=2):(r=typeof y=="function"?y:void 0,u-=r?1:0),n&&o(a[0],a[1],n)&&(r=3>u?void 0:r,u=1);++f-1&&m%1==0&&g>m}var c=/^\d+$/,o=9007199254740991;w.exports=e},{}],24:[function(t,w){function e(g,h,a){if(!m(a))return!1;var f=typeof h;if(f=="number"?c(a)&&o(h,a.length):f=="string"&&h in a){var u=a[h];return g===g?g===u:u!==u}return!1}var c=t("./isArrayLike"),o=t("./isIndex"),m=t("../lang/isObject");w.exports=e},{"../lang/isObject":33,"./isArrayLike":21,"./isIndex":23}],25:[function(t,w){function e(o){return typeof o=="number"&&o>-1&&o%1==0&&c>=o}var c=9007199254740991;w.exports=e},{}],26:[function(t,w){function e(c){return!!c&&typeof c=="object"}w.exports=e},{}],27:[function(t,w){function e(r){for(var n=a(r),y=n.length,i=y&&r.length,p=!!i&&g(i)&&(o(r)||c(r)||h(r)),l=-1,_=[];++l0,M=r.enumErrorProps&&(D===k||D instanceof Error),$=r.enumPrototypes&&g(D);++A2?arguments[2]:{},i=e(n);o&&(i=i.concat(Object.getOwnPropertySymbols(n))),c(i,function(p){f(r,p,n[p],y[p])})};u.supportsDescriptors=!!a,w.exports=u},{foreach:47,"object-keys":50}],47:[function(t,w){var e=Object.prototype.hasOwnProperty,c=Object.prototype.toString;w.exports=function(o,m,g){if(c.call(m)!=="[object Function]")throw new TypeError("iterator must be a function");var h=o.length;if(h===+h)for(var a=0;h>a;a++)m.call(g,o[a],a,o);else for(var f in o)e.call(o,f)&&m.call(g,o[f],f,o)}},{}],48:[function(t,w){var e="Function.prototype.bind called on incompatible ",c=Array.prototype.slice,o=Object.prototype.toString,m="[object Function]";w.exports=function(g){var h=this;if(typeof h!="function"||o.call(h)!==m)throw new TypeError(e+h);for(var a,f=c.call(arguments,1),u=function(){if(this instanceof a){var p=h.apply(this,f.concat(c.call(arguments)));return Object(p)===p?p:this}return h.apply(g,f.concat(c.call(arguments)))},r=Math.max(0,h.length-f.length),n=[],y=0;r>y;y++)n.push("$"+y);if(a=Function("binder","return function ("+n.join(",")+"){ return binder.apply(this,arguments); }")(u),h.prototype){var i=function(){};i.prototype=h.prototype,a.prototype=new i,i.prototype=null}return a}},{}],49:[function(t,w){var e=t("./implementation");w.exports=Function.prototype.bind||e},{"./implementation":48}],50:[function(t,w){"use strict";var e=Object.prototype.hasOwnProperty,c=Object.prototype.toString,o=Array.prototype.slice,m=t("./isArguments"),g=!{toString:null}.propertyIsEnumerable("toString"),h=function(){}.propertyIsEnumerable("prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(i){var p=i.constructor;return p&&p.prototype===i},u={$console:!0,$frame:!0,$frameElement:!0,$frames:!0,$parent:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},r=function(){if(typeof window=="undefined")return!1;for(var i in window)try{if(!u["$"+i]&&e.call(window,i)&&window[i]!==null&&typeof window[i]=="object")try{f(window[i])}catch(p){return!0}}catch(p){return!0}return!1}(),n=function(i){if(typeof window=="undefined"||!r)return f(i);try{return f(i)}catch(p){return!1}},y=function(i){var p=i!==null&&typeof i=="object",l=c.call(i)==="[object Function]",_=m(i),d=p&&c.call(i)==="[object String]",v=[];if(!p&&!l&&!_)throw new TypeError("Object.keys called on a non-object");var s=h&&l;if(d&&i.length>0&&!e.call(i,0))for(var j=0;j0)for(var k=0;k=0&&e.call(c.callee)==="[object Function]"),m}},{}],52:[function(t,w){"use strict";var e=t("./implementation"),c=function(){if(!Object.assign)return!1;for(var m="abcdefghijklmnopqrst",g=m.split(""),h={},a=0;a0&&(C=setTimeout(function(){k=!0,s.abort("timeout");var N=new Error("XMLHttpRequest timeout");N.code="ETIMEDOUT",l(N)},y.timeout)),s.setRequestHeader)for(j in P)P.hasOwnProperty(j)&&s.setRequestHeader(j,P[j]);else if(y.headers&&!c(y.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in y&&(s.responseType=y.responseType),"beforeSend"in y&&typeof y.beforeSend=="function"&&y.beforeSend(s),s.send(T),s}function h(){}var a=t("global/window"),f=t("once"),u=t("is-function"),r=t("parse-headers"),n=t("xtend");w.exports=m,m.XMLHttpRequest=a.XMLHttpRequest||h,m.XDomainRequest="withCredentials"in new m.XMLHttpRequest?m.XMLHttpRequest:a.XDomainRequest,e(["get","put","post","patch","head","delete"],function(y){m[y==="delete"?"del":y]=function(i,p,l){return p=o(i,p,l),p.method=y.toUpperCase(),g(p)}})},{"global/window":2,"is-function":57,once:58,"parse-headers":61,xtend:62}],57:[function(t,w){function e(o){var m=c.call(o);return m==="[object Function]"||typeof o=="function"&&m!=="[object RegExp]"||typeof window!="undefined"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}w.exports=e;var c=Object.prototype.toString},{}],58:[function(t,w){function e(c){var o=!1;return function(){return o?void 0:(o=!0,c.apply(this,arguments))}}w.exports=e,e.proto=e(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return e(this)},configurable:!0})})},{}],59:[function(t,w){function e(f,u,r){if(!g(u))throw new TypeError("iterator must be a function");arguments.length<3&&(r=this),h.call(f)==="[object Array]"?c(f,u,r):typeof f=="string"?o(f,u,r):m(f,u,r)}function c(f,u,r){for(var n=0,y=f.length;y>n;n++)a.call(f,n)&&u.call(r,f[n],n,f)}function o(f,u,r){for(var n=0,y=f.length;y>n;n++)u.call(r,f.charAt(n),n,f)}function m(f,u,r){for(var n in f)a.call(f,n)&&u.call(r,f[n],n,f)}var g=t("is-function");w.exports=e;var h=Object.prototype.toString,a=Object.prototype.hasOwnProperty},{"is-function":57}],60:[function(t,w,e){function c(o){return o.replace(/^\s*|\s*$/g,"")}e=w.exports=c,e.left=function(o){return o.replace(/^\s*/,"")},e.right=function(o){return o.replace(/\s*$/,"")}},{}],61:[function(t,w){var e=t("trim"),c=t("for-each"),o=function(m){return Object.prototype.toString.call(m)==="[object Array]"};w.exports=function(m){if(!m)return{};var g={};return c(e(m).split(` `),function(h){var a=h.indexOf(":"),f=e(h.slice(0,a)).toLowerCase(),u=e(h.slice(a+1));typeof g[f]=="undefined"?g[f]=u:o(g[f])?g[f].push(u):g[f]=[g[f],u]}),g}},{"for-each":59,trim:60}],62:[function(t,w){function e(){for(var o={},m=0;m=0;T--)this.children_[T].dispose&&this.children_[T].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),f.removeElData(this.el_),this.el_=null},b.prototype.player=function(){return this.player_},b.prototype.options=function(T){return _.default.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),T?(this.options_=C.default(this.options_,T),this.options_):this.options_},b.prototype.el=function(){return this.el_},b.prototype.createEl=function(T,P,D){return f.createEl(T,P,D)},b.prototype.localize=function(T){var P=this.player_.language&&this.player_.language(),D=this.player_.languages&&this.player_.languages();if(!P||!D)return T;var F=D[P];if(F&&F[T])return F[T];var N=P.split("-")[0],A=D[N];return A&&A[T]?A[T]:T},b.prototype.contentEl=function(){return this.contentEl_||this.el_},b.prototype.id=function(){return this.id_},b.prototype.name=function(){return this.name_},b.prototype.children=function(){return this.children_},b.prototype.getChildById=function(T){return this.childIndex_[T]},b.prototype.getChild=function(T){return this.childNameIndex_[T]},b.prototype.addChild=function(T){var P=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],D=arguments.length<=2||arguments[2]===void 0?this.children_.length:arguments[2],F=void 0,N=void 0;if(typeof T=="string"){N=T,P||(P={}),P===!0&&(_.default.warn("Initializing a child component with `true` is deprecated. Children should be defined in an array when possible, but if necessary use an object instead of `true`."),P={});var A=P.componentClass||v.default(N);P.name=N;var I=b.getComponent(A);if(!I)throw new Error("Component "+A+" does not exist");if(typeof I!="function")return null;F=new I(this.player_||this,P)}else F=T;if(this.children_.splice(D,0,F),typeof F.id=="function"&&(this.childIndex_[F.id()]=F),N=N||F.name&&F.name(),N&&(this.childNameIndex_[N]=F),typeof F.el=="function"&&F.el()){var R=this.contentEl().children,E=R[D]||null;this.contentEl().insertBefore(F.el(),E)}return F},b.prototype.removeChild=function(T){if(typeof T=="string"&&(T=this.getChild(T)),T&&this.children_){for(var P=!1,D=this.children_.length-1;D>=0;D--)if(this.children_[D]===T){P=!0,this.children_.splice(D,1);break}if(P){this.childIndex_[T.id()]=null,this.childNameIndex_[T.name()]=null;var F=T.el();F&&F.parentNode===this.contentEl()&&this.contentEl().removeChild(T.el())}}},b.prototype.initChildren=function(){var T=this,P=this.options_.children;P&&function(){var D=T.options_,F=function(I){var R=I.name,E=I.opts;if(D[R]!==void 0&&(E=D[R]),E!==!1){E===!0&&(E={}),E.playerOptions=T.options_.playerOptions;var x=T.addChild(R,E);x&&(T[R]=x)}},N=void 0,A=b.getComponent("Tech");N=Array.isArray(P)?P:Object.keys(P),N.concat(Object.keys(T.options_).filter(function(I){return!N.some(function(R){return typeof R=="string"?I===R:I===R.name})})).map(function(I){var R=void 0,E=void 0;return typeof I=="string"?(R=I,E=P[R]||T.options_[R]||{}):(R=I.name,E=I),{name:R,opts:E}}).filter(function(I){var R=b.getComponent(I.opts.componentClass||v.default(I.name));return R&&!A.isTech(R)}).forEach(F)}()},b.prototype.buildCSSClass=function(){return""},b.prototype.on=function(T,P,D){var F=this;return typeof T=="string"||Array.isArray(T)?p.on(this.el_,T,r.bind(this,P)):function(){var N=T,A=P,I=r.bind(F,D),R=function(){return F.off(N,A,I)};R.guid=I.guid,F.on("dispose",R);var E=function(){return F.off("dispose",R)};E.guid=I.guid,T.nodeName?(p.on(N,A,I),p.on(N,"dispose",E)):typeof T.on=="function"&&(N.on(A,I),N.on("dispose",E))}(),this},b.prototype.off=function(T,P,D){if(!T||typeof T=="string"||Array.isArray(T))p.off(this.el_,T,P);else{var F=T,N=P,A=r.bind(this,D);this.off("dispose",A),T.nodeName?(p.off(F,N,A),p.off(F,"dispose",A)):(F.off(N,A),F.off("dispose",A))}return this},b.prototype.one=function(T,P,D){var F=this,N=arguments;return typeof T=="string"||Array.isArray(T)?p.one(this.el_,T,r.bind(this,P)):function(){var A=T,I=P,R=r.bind(F,D),E=function x(){F.off(A,I,x),R.apply(null,N)};E.guid=R.guid,F.on(A,I,E)}(),this},b.prototype.trigger=function(T,P){return p.trigger(this.el_,T,P),this},b.prototype.ready=function(T){var P=arguments.length<=1||arguments[1]===void 0?!1:arguments[1];return T&&(this.isReady_?P?T.call(this):this.setTimeout(T,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(T))),this},b.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var T=this.readyQueue_;this.readyQueue_=[],T&&T.length>0&&T.forEach(function(P){P.call(this)},this),this.trigger("ready")},1)},b.prototype.$=function(T,P){return f.$(T,P||this.contentEl())},b.prototype.$$=function(T,P){return f.$$(T,P||this.contentEl())},b.prototype.hasClass=function(T){return f.hasElClass(this.el_,T)},b.prototype.addClass=function(T){return f.addElClass(this.el_,T),this},b.prototype.removeClass=function(T){return f.removeElClass(this.el_,T),this},b.prototype.toggleClass=function(T,P){return f.toggleElClass(this.el_,T,P),this},b.prototype.show=function(){return this.removeClass("vjs-hidden"),this},b.prototype.hide=function(){return this.addClass("vjs-hidden"),this},b.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},b.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},b.prototype.width=function(T,P){return this.dimension("width",T,P)},b.prototype.height=function(T,P){return this.dimension("height",T,P)},b.prototype.dimensions=function(T,P){return this.width(T,!0).height(P)},b.prototype.dimension=function(T,P,D){if(P!==void 0)return(P===null||P!==P)&&(P=0),this.el_.style[T]=(""+P).indexOf("%")!==-1||(""+P).indexOf("px")!==-1?P:P==="auto"?"":P+"px",D||this.trigger("resize"),this;if(!this.el_)return 0;var F=this.el_.style[T],N=F.indexOf("px");return parseInt(N!==-1?F.slice(0,N):this.el_["offset"+v.default(T)],10)},b.prototype.emitTapEvents=function(){var T=0,P=null,D=10,F=200,N=void 0;this.on("touchstart",function(I){I.touches.length===1&&(P=j.default({},I.touches[0]),T=new Date().getTime(),N=!0)}),this.on("touchmove",function(I){if(I.touches.length>1)N=!1;else if(P){var R=I.touches[0].pageX-P.pageX,E=I.touches[0].pageY-P.pageY,x=Math.sqrt(R*R+E*E);x>D&&(N=!1)}});var A=function(){N=!1};this.on("touchleave",A),this.on("touchcancel",A),this.on("touchend",function(I){if(P=null,N===!0){var R=new Date().getTime()-T;F>R&&(I.preventDefault(),this.trigger("tap"))}})},b.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var T=r.bind(this.player(),this.player().reportUserActivity),P=void 0;this.on("touchstart",function(){T(),this.clearInterval(P),P=this.setInterval(T,250)});var D=function(){T(),this.clearInterval(P)};this.on("touchmove",T),this.on("touchend",D),this.on("touchcancel",D)}},b.prototype.setTimeout=function(T,P){T=r.bind(this,T);var D=h.default.setTimeout(T,P),F=function(){this.clearTimeout(D)};return F.guid="vjs-timeout-"+D,this.on("dispose",F),D},b.prototype.clearTimeout=function(T){h.default.clearTimeout(T);var P=function(){};return P.guid="vjs-timeout-"+T,this.off("dispose",P),T},b.prototype.setInterval=function(T,P){T=r.bind(this,T);var D=h.default.setInterval(T,P),F=function(){this.clearInterval(D)};return F.guid="vjs-interval-"+D,this.on("dispose",F),D},b.prototype.clearInterval=function(T){h.default.clearInterval(T);var P=function(){};return P.guid="vjs-interval-"+T,this.off("dispose",P),T},b.registerComponent=function(T,P){return b.components_||(b.components_={}),b.components_[T]=P,P},b.getComponent=function(T){return b.components_&&b.components_[T]?b.components_[T]:h.default&&h.default.videojs&&h.default.videojs[T]?(_.default.warn("The "+T+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),h.default.videojs[T]):void 0},b.extend=function(T){T=T||{},_.default.warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var P=T.init||T.init||this.prototype.init||this.prototype.init||function(){},D=function(){P.apply(this,arguments)};D.prototype=Object.create(this.prototype),D.prototype.constructor=D,D.extend=b.extend;for(var F in T)T.hasOwnProperty(F)&&(D.prototype[F]=T[F]);return D},b}();O.registerComponent("Component",O),e.default=O,w.exports=e.default},{"./utils/dom.js":132,"./utils/events.js":133,"./utils/fn.js":134,"./utils/guid.js":136,"./utils/log.js":137,"./utils/merge-options.js":138,"./utils/to-title-case.js":141,"global/window":2,"object.assign":45}],68:[function(t,w,e){"use strict";function c(b){return b&&b.__esModule?b:{default:b}}function o(b,T){if(!(b instanceof T))throw new TypeError("Cannot call a class as a function")}function m(b,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);b.prototype=Object.create(T&&T.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(b,T):b.__proto__=T)}e.__esModule=!0;var g=t("../component.js"),h=c(g),a=t("./play-toggle.js"),f=(c(a),t("./time-controls/current-time-display.js")),u=(c(f),t("./time-controls/duration-display.js")),r=(c(u),t("./time-controls/time-divider.js")),n=(c(r),t("./time-controls/remaining-time-display.js")),y=(c(n),t("./live-display.js")),i=(c(y),t("./progress-control/progress-control.js")),p=(c(i),t("./fullscreen-toggle.js")),l=(c(p),t("./volume-control/volume-control.js")),_=(c(l),t("./volume-menu-button.js")),d=(c(_),t("./mute-toggle.js")),v=(c(d),t("./text-track-controls/chapters-button.js")),s=(c(v),t("./text-track-controls/subtitles-button.js")),j=(c(s),t("./text-track-controls/captions-button.js")),k=(c(j),t("./playback-rate-menu/playback-rate-menu-button.js")),C=(c(k),t("./spacer-controls/custom-control-spacer.js")),O=(c(C),function(b){function T(){o(this,T),b.apply(this,arguments)}return m(T,b),T.prototype.createEl=function(){return b.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"},{role:"group"})},T}(h.default));O.prototype.options_={loadEvent:"play",children:["playToggle","volumeMenuButton","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","subtitlesButton","captionsButton","fullscreenToggle"]},h.default.registerComponent("ControlBar",O),e.default=O,w.exports=e.default},{"../component.js":67,"./fullscreen-toggle.js":69,"./live-display.js":70,"./mute-toggle.js":71,"./play-toggle.js":72,"./playback-rate-menu/playback-rate-menu-button.js":73,"./progress-control/progress-control.js":78,"./spacer-controls/custom-control-spacer.js":80,"./text-track-controls/captions-button.js":83,"./text-track-controls/chapters-button.js":84,"./text-track-controls/subtitles-button.js":87,"./time-controls/current-time-display.js":90,"./time-controls/duration-display.js":91,"./time-controls/remaining-time-display.js":92,"./time-controls/time-divider.js":93,"./volume-control/volume-control.js":95,"./volume-menu-button.js":97}],69:[function(t,w,e){"use strict";function c(r){return r&&r.__esModule?r:{default:r}}function o(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function m(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}e.__esModule=!0;var g=t("../button.js"),h=c(g),a=t("../component.js"),f=c(a),u=function(r){function n(){o(this,n),r.apply(this,arguments)}return m(n,r),n.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+r.prototype.buildCSSClass.call(this)},n.prototype.handleClick=function(){this.player_.isFullscreen()?(this.player_.exitFullscreen(),this.controlText("Fullscreen")):(this.player_.requestFullscreen(),this.controlText("Non-Fullscreen"))},n}(h.default);u.prototype.controlText_="Fullscreen",f.default.registerComponent("FullscreenToggle",u),e.default=u,w.exports=e.default},{"../button.js":64,"../component.js":67}],70:[function(t,w,e){"use strict";function c(n){if(n&&n.__esModule)return n;var y={};if(n!=null)for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(y[i]=n[i]);return y.default=n,y}function o(n){return n&&n.__esModule?n:{default:n}}function m(n,y){if(!(n instanceof y))throw new TypeError("Cannot call a class as a function")}function g(n,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);n.prototype=Object.create(y&&y.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(n,y):n.__proto__=y)}e.__esModule=!0;var h=t("../component"),a=o(h),f=t("../utils/dom.js"),u=c(f),r=function(n){function y(i,p){m(this,y),n.call(this,i,p),this.updateShowing(),this.on(this.player(),"durationchange",this.updateShowing)}return g(y,n),y.prototype.createEl=function(){var i=n.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=u.createEl("div",{className:"vjs-live-display",innerHTML:''+this.localize("Stream Type")+""+this.localize("LIVE")},{"aria-live":"off"}),i.appendChild(this.contentEl_),i},y.prototype.updateShowing=function(){this.player().duration()===1/0?this.show():this.hide()},y}(a.default);a.default.registerComponent("LiveDisplay",r),e.default=r,w.exports=e.default},{"../component":67,"../utils/dom.js":132}],71:[function(t,w,e){"use strict";function c(i){if(i&&i.__esModule)return i;var p={};if(i!=null)for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(p[l]=i[l]);return p.default=i,p}function o(i){return i&&i.__esModule?i:{default:i}}function m(i,p){if(!(i instanceof p))throw new TypeError("Cannot call a class as a function")}function g(i,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);i.prototype=Object.create(p&&p.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(i,p):i.__proto__=p)}e.__esModule=!0;var h=t("../button"),a=o(h),f=t("../component"),u=o(f),r=t("../utils/dom.js"),n=c(r),y=function(i){function p(l,_){m(this,p),i.call(this,l,_),this.on(l,"volumechange",this.update),l.tech_&&l.tech_.featuresVolumeControl===!1&&this.addClass("vjs-hidden"),this.on(l,"loadstart",function(){this.update(),l.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return g(p,i),p.prototype.buildCSSClass=function(){return"vjs-mute-control "+i.prototype.buildCSSClass.call(this)},p.prototype.handleClick=function(){this.player_.muted(!this.player_.muted())},p.prototype.update=function(){var l=this.player_.volume(),_=3;l===0||this.player_.muted()?_=0:.33>l?_=1:.67>l&&(_=2);var d=this.player_.muted()?"Unmute":"Mute";this.controlText()!==d&&this.controlText(d);for(var v=0;4>v;v++)n.removeElClass(this.el_,"vjs-vol-"+v);n.addElClass(this.el_,"vjs-vol-"+_)},p}(a.default);y.prototype.controlText_="Mute",u.default.registerComponent("MuteToggle",y),e.default=y,w.exports=e.default},{"../button":64,"../component":67,"../utils/dom.js":132}],72:[function(t,w,e){"use strict";function c(r){return r&&r.__esModule?r:{default:r}}function o(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function m(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}e.__esModule=!0;var g=t("../button.js"),h=c(g),a=t("../component.js"),f=c(a),u=function(r){function n(y,i){o(this,n),r.call(this,y,i),this.on(y,"play",this.handlePlay),this.on(y,"pause",this.handlePause)}return m(n,r),n.prototype.buildCSSClass=function(){return"vjs-play-control "+r.prototype.buildCSSClass.call(this)},n.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},n.prototype.handlePlay=function(){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.prototype.handlePause=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n}(h.default);u.prototype.controlText_="Play",f.default.registerComponent("PlayToggle",u),e.default=u,w.exports=e.default},{"../button.js":64,"../component.js":67}],73:[function(t,w,e){"use strict";function c(d){if(d&&d.__esModule)return d;var v={};if(d!=null)for(var s in d)Object.prototype.hasOwnProperty.call(d,s)&&(v[s]=d[s]);return v.default=d,v}function o(d){return d&&d.__esModule?d:{default:d}}function m(d,v){if(!(d instanceof v))throw new TypeError("Cannot call a class as a function")}function g(d,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);d.prototype=Object.create(v&&v.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(d,v):d.__proto__=v)}e.__esModule=!0;var h=t("../../menu/menu-button.js"),a=o(h),f=t("../../menu/menu.js"),u=o(f),r=t("./playback-rate-menu-item.js"),n=o(r),y=t("../../component.js"),i=o(y),p=t("../../utils/dom.js"),l=c(p),_=function(d){function v(s,j){m(this,v),d.call(this,s,j),this.updateVisibility(),this.updateLabel(),this.on(s,"loadstart",this.updateVisibility),this.on(s,"ratechange",this.updateLabel)}return g(v,d),v.prototype.createEl=function(){var s=d.prototype.createEl.call(this);return this.labelEl_=l.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),s.appendChild(this.labelEl_),s},v.prototype.buildCSSClass=function(){return"vjs-playback-rate "+d.prototype.buildCSSClass.call(this)},v.prototype.createMenu=function(){var s=new u.default(this.player()),j=this.playbackRates();if(j)for(var k=j.length-1;k>=0;k--)s.addChild(new n.default(this.player(),{rate:j[k]+"x"}));return s},v.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},v.prototype.handleClick=function(){for(var s=this.player().playbackRate(),j=this.playbackRates(),k=j[0],C=0;Cs){k=j[C];break}this.player().playbackRate(k)},v.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},v.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},v.prototype.updateVisibility=function(){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},v.prototype.updateLabel=function(){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},v}(a.default);_.prototype.controlText_="Playback Rate",i.default.registerComponent("PlaybackRateMenuButton",_),e.default=_,w.exports=e.default},{"../../component.js":67,"../../menu/menu-button.js":104,"../../menu/menu.js":106,"../../utils/dom.js":132,"./playback-rate-menu-item.js":74}],74:[function(t,w,e){"use strict";function c(r){return r&&r.__esModule?r:{default:r}}function o(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function m(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}e.__esModule=!0;var g=t("../../menu/menu-item.js"),h=c(g),a=t("../../component.js"),f=c(a),u=function(r){function n(y,i){o(this,n);var p=i.rate,l=parseFloat(p,10);i.label=p,i.selected=l===1,r.call(this,y,i),this.label=p,this.rate=l,this.on(y,"ratechange",this.update)}return m(n,r),n.prototype.handleClick=function(){r.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.prototype.update=function(){this.selected(this.player().playbackRate()===this.rate)},n}(h.default);u.prototype.contentElType="button",f.default.registerComponent("PlaybackRateMenuItem",u),e.default=u,w.exports=e.default},{"../../component.js":67,"../../menu/menu-item.js":105}],75:[function(t,w,e){"use strict";function c(n){if(n&&n.__esModule)return n;var y={};if(n!=null)for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(y[i]=n[i]);return y.default=n,y}function o(n){return n&&n.__esModule?n:{default:n}}function m(n,y){if(!(n instanceof y))throw new TypeError("Cannot call a class as a function")}function g(n,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);n.prototype=Object.create(y&&y.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(n,y):n.__proto__=y)}e.__esModule=!0;var h=t("../../component.js"),a=o(h),f=t("../../utils/dom.js"),u=c(f),r=function(n){function y(i,p){m(this,y),n.call(this,i,p),this.on(i,"progress",this.update)}return g(y,n),y.prototype.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:''+this.localize("Loaded")+": 0%"})},y.prototype.update=function(){var i=this.player_.buffered(),p=this.player_.duration(),l=this.player_.bufferedEnd(),_=this.el_.children,d=function(C,O){var b=C/O||0;return 100*(b>=1?1:b)+"%"};this.el_.style.width=d(l,p);for(var v=0;vi.length;v--)this.el_.removeChild(_[v-1])},y}(a.default);a.default.registerComponent("LoadProgressBar",r),e.default=r,w.exports=e.default},{"../../component.js":67,"../../utils/dom.js":132}],76:[function(t,w,e){"use strict";function c(d){if(d&&d.__esModule)return d;var v={};if(d!=null)for(var s in d)Object.prototype.hasOwnProperty.call(d,s)&&(v[s]=d[s]);return v.default=d,v}function o(d){return d&&d.__esModule?d:{default:d}}function m(d,v){if(!(d instanceof v))throw new TypeError("Cannot call a class as a function")}function g(d,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);d.prototype=Object.create(v&&v.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(d,v):d.__proto__=v)}e.__esModule=!0;var h=t("../../component.js"),a=o(h),f=t("../../utils/dom.js"),u=c(f),r=t("../../utils/fn.js"),n=c(r),y=t("../../utils/format-time.js"),i=o(y),p=t("lodash-compat/function/throttle"),l=o(p),_=function(d){function v(s,j){var k=this;m(this,v),d.call(this,s,j),this.update(0,0),s.on("ready",function(){k.on(s.controlBar.progressControl.el(),"mousemove",l.default(n.bind(k,k.handleMouseMove),25))})}return g(v,d),v.prototype.createEl=function(){return d.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},v.prototype.handleMouseMove=function(s){var j=this.player_.duration(),k=this.calculateDistance(s)*j,C=s.pageX-u.findElPosition(this.el().parentNode).left;this.update(k,C)},v.prototype.update=function(s,j){var k=i.default(s,this.player_.duration());this.el().style.left=j+"px",this.el().setAttribute("data-current-time",k)},v.prototype.calculateDistance=function(s){return u.getPointerPosition(this.el().parentNode,s).x},v}(a.default);a.default.registerComponent("MouseTimeDisplay",_),e.default=_,w.exports=e.default},{"../../component.js":67,"../../utils/dom.js":132,"../../utils/fn.js":134,"../../utils/format-time.js":135,"lodash-compat/function/throttle":7}],77:[function(t,w,e){"use strict";function c(i){if(i&&i.__esModule)return i;var p={};if(i!=null)for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(p[l]=i[l]);return p.default=i,p}function o(i){return i&&i.__esModule?i:{default:i}}function m(i,p){if(!(i instanceof p))throw new TypeError("Cannot call a class as a function")}function g(i,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);i.prototype=Object.create(p&&p.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(i,p):i.__proto__=p)}e.__esModule=!0;var h=t("../../component.js"),a=o(h),f=t("../../utils/fn.js"),u=c(f),r=t("../../utils/format-time.js"),n=o(r),y=function(i){function p(l,_){m(this,p),i.call(this,l,_),this.updateDataAttr(),this.on(l,"timeupdate",this.updateDataAttr),l.ready(u.bind(this,this.updateDataAttr))}return g(p,i),p.prototype.createEl=function(){return i.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:''+this.localize("Progress")+": 0%"})},p.prototype.updateDataAttr=function(){var l=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",n.default(l,this.player_.duration()))},p}(a.default);a.default.registerComponent("PlayProgressBar",y),e.default=y,w.exports=e.default},{"../../component.js":67,"../../utils/fn.js":134,"../../utils/format-time.js":135}],78:[function(t,w,e){"use strict";function c(r){return r&&r.__esModule?r:{default:r}}function o(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function m(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}e.__esModule=!0;var g=t("../../component.js"),h=c(g),a=t("./seek-bar.js"),f=(c(a),t("./mouse-time-display.js")),u=(c(f),function(r){function n(){o(this,n),r.apply(this,arguments)}return m(n,r),n.prototype.createEl=function(){return r.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n}(h.default));u.prototype.options_={children:["seekBar"]},h.default.registerComponent("ProgressControl",u),e.default=u,w.exports=e.default},{"../../component.js":67,"./mouse-time-display.js":76,"./seek-bar.js":79}],79:[function(t,w,e){"use strict";function c(v){if(v&&v.__esModule)return v;var s={};if(v!=null)for(var j in v)Object.prototype.hasOwnProperty.call(v,j)&&(s[j]=v[j]);return s.default=v,s}function o(v){return v&&v.__esModule?v:{default:v}}function m(v,s){if(!(v instanceof s))throw new TypeError("Cannot call a class as a function")}function g(v,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);v.prototype=Object.create(s&&s.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(v,s):v.__proto__=s)}e.__esModule=!0;var h=t("../../slider/slider.js"),a=o(h),f=t("../../component.js"),u=o(f),r=t("./load-progress-bar.js"),n=(o(r),t("./play-progress-bar.js")),y=(o(n),t("../../utils/fn.js")),i=c(y),p=t("../../utils/format-time.js"),l=o(p),_=t("object.assign"),d=(o(_),function(v){function s(j,k){m(this,s),v.call(this,j,k),this.on(j,"timeupdate",this.updateARIAAttributes),j.ready(i.bind(this,this.updateARIAAttributes))}return g(s,v),s.prototype.createEl=function(){return v.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"video progress bar"})},s.prototype.updateARIAAttributes=function(){var j=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),this.el_.setAttribute("aria-valuetext",l.default(j,this.player_.duration()))},s.prototype.getPercent=function(){var j=this.player_.currentTime()/this.player_.duration();return j>=1?1:j},s.prototype.handleMouseDown=function(j){v.prototype.handleMouseDown.call(this,j),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause()},s.prototype.handleMouseMove=function(j){var k=this.calculateDistance(j)*this.player_.duration();k===this.player_.duration()&&(k-=.1),this.player_.currentTime(k)},s.prototype.handleMouseUp=function(j){v.prototype.handleMouseUp.call(this,j),this.player_.scrubbing(!1),this.videoWasPlaying&&this.player_.play()},s.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},s.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},s}(a.default));d.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},d.prototype.playerEvent="timeupdate",u.default.registerComponent("SeekBar",d),e.default=d,w.exports=e.default},{"../../component.js":67,"../../slider/slider.js":114,"../../utils/fn.js":134,"../../utils/format-time.js":135,"./load-progress-bar.js":75,"./play-progress-bar.js":77,"object.assign":45}],80:[function(t,w,e){"use strict";function c(r){return r&&r.__esModule?r:{default:r}}function o(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function m(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}e.__esModule=!0;var g=t("./spacer.js"),h=c(g),a=t("../../component.js"),f=c(a),u=function(r){function n(){o(this,n),r.apply(this,arguments)}return m(n,r),n.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+r.prototype.buildCSSClass.call(this)},n.prototype.createEl=function(){var y=r.prototype.createEl.call(this,{className:this.buildCSSClass()});return y.innerHTML=" ",y},n}(h.default);f.default.registerComponent("CustomControlSpacer",u),e.default=u,w.exports=e.default},{"../../component.js":67,"./spacer.js":81}],81:[function(t,w,e){"use strict";function c(f){return f&&f.__esModule?f:{default:f}}function o(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")}function m(f,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);f.prototype=Object.create(u&&u.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(f,u):f.__proto__=u)}e.__esModule=!0;var g=t("../../component.js"),h=c(g),a=function(f){function u(){o(this,u),f.apply(this,arguments)}return m(u,f),u.prototype.buildCSSClass=function(){return"vjs-spacer "+f.prototype.buildCSSClass.call(this)},u.prototype.createEl=function(){return f.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},u}(h.default);h.default.registerComponent("Spacer",a),e.default=a,w.exports=e.default},{"../../component.js":67}],82:[function(t,w,e){"use strict";function c(r){return r&&r.__esModule?r:{default:r}}function o(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function m(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}e.__esModule=!0;var g=t("./text-track-menu-item.js"),h=c(g),a=t("../../component.js"),f=c(a),u=function(r){function n(y,i){o(this,n),i.track={kind:i.kind,player:y,label:i.kind+" settings",selectable:!1,default:!1,mode:"disabled"},i.selectable=!1,r.call(this,y,i),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+i.kind+" settings dialog")}return m(n,r),n.prototype.handleClick=function(){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").el_.focus()},n}(h.default);f.default.registerComponent("CaptionSettingsMenuItem",u),e.default=u,w.exports=e.default},{"../../component.js":67,"./text-track-menu-item.js":89}],83:[function(t,w,e){"use strict";function c(y){return y&&y.__esModule?y:{default:y}}function o(y,i){if(!(y instanceof i))throw new TypeError("Cannot call a class as a function")}function m(y,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);y.prototype=Object.create(i&&i.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(y,i):y.__proto__=i)}e.__esModule=!0;var g=t("./text-track-button.js"),h=c(g),a=t("../../component.js"),f=c(a),u=t("./caption-settings-menu-item.js"),r=c(u),n=function(y){function i(p,l,_){o(this,i),y.call(this,p,l,_),this.el_.setAttribute("aria-label","Captions Menu")}return m(i,y),i.prototype.buildCSSClass=function(){return"vjs-captions-button "+y.prototype.buildCSSClass.call(this)},i.prototype.update=function(){var p=2;y.prototype.update.call(this),this.player().tech_&&this.player().tech_.featuresNativeTextTracks&&(p=1),this.items&&this.items.length>p?this.show():this.hide()},i.prototype.createItems=function(){var p=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||p.push(new r.default(this.player_,{kind:this.kind_})),y.prototype.createItems.call(this,p)},i}(h.default);n.prototype.kind_="captions",n.prototype.controlText_="Captions",f.default.registerComponent("CaptionsButton",n),e.default=n,w.exports=e.default},{"../../component.js":67,"./caption-settings-menu-item.js":82,"./text-track-button.js":88}],84:[function(t,w,e){"use strict";function c(O){if(O&&O.__esModule)return O;var b={};if(O!=null)for(var T in O)Object.prototype.hasOwnProperty.call(O,T)&&(b[T]=O[T]);return b.default=O,b}function o(O){return O&&O.__esModule?O:{default:O}}function m(O,b){if(!(O instanceof b))throw new TypeError("Cannot call a class as a function")}function g(O,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);O.prototype=Object.create(b&&b.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(O,b):O.__proto__=b)}e.__esModule=!0;var h=t("./text-track-button.js"),a=o(h),f=t("../../component.js"),u=o(f),r=t("./text-track-menu-item.js"),n=o(r),y=t("./chapters-track-menu-item.js"),i=o(y),p=t("../../menu/menu.js"),l=o(p),_=t("../../utils/dom.js"),d=c(_),v=t("../../utils/fn.js"),s=(c(v),t("../../utils/to-title-case.js")),j=o(s),k=t("global/window"),C=(o(k),function(O){function b(T,P,D){m(this,b),O.call(this,T,P,D),this.el_.setAttribute("aria-label","Chapters Menu")}return g(b,O),b.prototype.buildCSSClass=function(){return"vjs-chapters-button "+O.prototype.buildCSSClass.call(this)},b.prototype.createItems=function(){var T=[],P=this.player_.textTracks();if(!P)return T;for(var D=0;DN;N++){var I=P[N];if(I.kind===this.kind_){D=I;break}}var R=this.menu;if(R===void 0){R=new l.default(this.player_);var E=d.createEl("li",{className:"vjs-menu-title",innerHTML:j.default(this.kind_),tabIndex:-1});R.children_.unshift(E),d.insertElFirst(E,R.contentEl())}if(D&&D.cues==null){D.mode="hidden";var x=this.player_.remoteTextTrackEls().getTrackElementByTrack_(D);x&&x.addEventListener("load",function(){return T.update()})}if(D&&D.cues&&D.cues.length>0){for(var M=D.cues,$=void 0,N=0,U=M.length;U>N;N++){$=M[N];var X=new i.default(this.player_,{track:D,cue:$});F.push(X),R.addChild(X)}this.addChild(R)}return this.items.length>0&&this.show(),R},b}(a.default));C.prototype.kind_="chapters",C.prototype.controlText_="Chapters",u.default.registerComponent("ChaptersButton",C),e.default=C,w.exports=e.default},{"../../component.js":67,"../../menu/menu.js":106,"../../utils/dom.js":132,"../../utils/fn.js":134,"../../utils/to-title-case.js":141,"./chapters-track-menu-item.js":85,"./text-track-button.js":88,"./text-track-menu-item.js":89,"global/window":2}],85:[function(t,w,e){"use strict";function c(i){if(i&&i.__esModule)return i;var p={};if(i!=null)for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(p[l]=i[l]);return p.default=i,p}function o(i){return i&&i.__esModule?i:{default:i}}function m(i,p){if(!(i instanceof p))throw new TypeError("Cannot call a class as a function")}function g(i,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);i.prototype=Object.create(p&&p.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(i,p):i.__proto__=p)}e.__esModule=!0;var h=t("../../menu/menu-item.js"),a=o(h),f=t("../../component.js"),u=o(f),r=t("../../utils/fn.js"),n=c(r),y=function(i){function p(l,_){m(this,p);var d=_.track,v=_.cue,s=l.currentTime();_.label=v.text,_.selected=v.startTime<=s&&sp;p++){var _=y[p];if(_.kind===this.track.kind&&_.mode==="showing"){i=!1;break}}this.selected(i)},n}(h.default);f.default.registerComponent("OffTextTrackMenuItem",u),e.default=u,w.exports=e.default},{"../../component.js":67,"./text-track-menu-item.js":89}],87:[function(t,w,e){"use strict";function c(r){return r&&r.__esModule?r:{default:r}}function o(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function m(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(r,n):r.__proto__=n)}e.__esModule=!0;var g=t("./text-track-button.js"),h=c(g),a=t("../../component.js"),f=c(a),u=function(r){function n(y,i,p){o(this,n),r.call(this,y,i,p),this.el_.setAttribute("aria-label","Subtitles Menu")}return m(n,r),n.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+r.prototype.buildCSSClass.call(this)},n}(h.default);u.prototype.kind_="subtitles",u.prototype.controlText_="Subtitles",f.default.registerComponent("SubtitlesButton",u),e.default=u,w.exports=e.default},{"../../component.js":67,"./text-track-button.js":88}],88:[function(t,w,e){"use strict";function c(d){if(d&&d.__esModule)return d;var v={};if(d!=null)for(var s in d)Object.prototype.hasOwnProperty.call(d,s)&&(v[s]=d[s]);return v.default=d,v}function o(d){return d&&d.__esModule?d:{default:d}}function m(d,v){if(!(d instanceof v))throw new TypeError("Cannot call a class as a function")}function g(d,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);d.prototype=Object.create(v&&v.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(d,v):d.__proto__=v)}e.__esModule=!0;var h=t("../../menu/menu-button.js"),a=o(h),f=t("../../component.js"),u=o(f),r=t("../../utils/fn.js"),n=c(r),y=t("./text-track-menu-item.js"),i=o(y),p=t("./off-text-track-menu-item.js"),l=o(p),_=function(d){function v(s,j){m(this,v),d.call(this,s,j);var k=this.player_.textTracks();if(this.items.length<=1&&this.hide(),k){var C=n.bind(this,this.update);k.addEventListener("removetrack",C),k.addEventListener("addtrack",C),this.player_.on("dispose",function(){k.removeEventListener("removetrack",C),k.removeEventListener("addtrack",C)})}}return g(v,d),v.prototype.createItems=function(){var s=arguments.length<=0||arguments[0]===void 0?[]:arguments[0];s.push(new l.default(this.player_,{kind:this.kind_}));var j=this.player_.textTracks();if(!j)return s;for(var k=0;kCurrent Time 0:00'},{"aria-live":"off"}),l.appendChild(this.contentEl_),l},p.prototype.updateContent=function(){var l=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),_=this.localize("Current Time"),d=n.default(l,this.player_.duration());d!==this.formattedTime_&&(this.formattedTime_=d,this.contentEl_.innerHTML=''+_+" "+d)},p}(a.default);a.default.registerComponent("CurrentTimeDisplay",y),e.default=y,w.exports=e.default},{"../../component.js":67,"../../utils/dom.js":132,"../../utils/format-time.js":135}],91:[function(t,w,e){"use strict";function c(i){if(i&&i.__esModule)return i;var p={};if(i!=null)for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(p[l]=i[l]);return p.default=i,p}function o(i){return i&&i.__esModule?i:{default:i}}function m(i,p){if(!(i instanceof p))throw new TypeError("Cannot call a class as a function")}function g(i,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);i.prototype=Object.create(p&&p.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(i,p):i.__proto__=p)}e.__esModule=!0;var h=t("../../component.js"),a=o(h),f=t("../../utils/dom.js"),u=c(f),r=t("../../utils/format-time.js"),n=o(r),y=function(i){function p(l,_){m(this,p),i.call(this,l,_),this.on(l,"timeupdate",this.updateContent),this.on(l,"loadedmetadata",this.updateContent)}return g(p,i),p.prototype.createEl=function(){var l=i.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=u.createEl("div",{className:"vjs-duration-display",innerHTML:''+this.localize("Duration Time")+" 0:00"},{"aria-live":"off"}),l.appendChild(this.contentEl_),l},p.prototype.updateContent=function(){var l=this.player_.duration();if(l&&this.duration_!==l){this.duration_=l;var _=this.localize("Duration Time"),d=n.default(l);this.contentEl_.innerHTML=''+_+" "+d}},p}(a.default);a.default.registerComponent("DurationDisplay",y),e.default=y,w.exports=e.default},{"../../component.js":67,"../../utils/dom.js":132,"../../utils/format-time.js":135}],92:[function(t,w,e){"use strict";function c(i){if(i&&i.__esModule)return i;var p={};if(i!=null)for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(p[l]=i[l]);return p.default=i,p}function o(i){return i&&i.__esModule?i:{default:i}}function m(i,p){if(!(i instanceof p))throw new TypeError("Cannot call a class as a function")}function g(i,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);i.prototype=Object.create(p&&p.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(i,p):i.__proto__=p)}e.__esModule=!0;var h=t("../../component.js"),a=o(h),f=t("../../utils/dom.js"),u=c(f),r=t("../../utils/format-time.js"),n=o(r),y=function(i){function p(l,_){m(this,p),i.call(this,l,_),this.on(l,"timeupdate",this.updateContent)}return g(p,i),p.prototype.createEl=function(){var l=i.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=u.createEl("div",{className:"vjs-remaining-time-display",innerHTML:''+this.localize("Remaining Time")+" -0:00"},{"aria-live":"off"}),l.appendChild(this.contentEl_),l},p.prototype.updateContent=function(){if(this.player_.duration()){var l=this.localize("Remaining Time"),_=n.default(this.player_.remainingTime());_!==this.formattedTime_&&(this.formattedTime_=_,this.contentEl_.innerHTML=''+l+" -"+_)}},p}(a.default);a.default.registerComponent("RemainingTimeDisplay",y),e.default=y,w.exports=e.default},{"../../component.js":67,"../../utils/dom.js":132,"../../utils/format-time.js":135}],93:[function(t,w,e){"use strict";function c(f){return f&&f.__esModule?f:{default:f}}function o(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")}function m(f,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);f.prototype=Object.create(u&&u.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(f,u):f.__proto__=u)}e.__esModule=!0;var g=t("../../component.js"),h=c(g),a=function(f){function u(){o(this,u),f.apply(this,arguments)}return m(u,f),u.prototype.createEl=function(){return f.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"
/
"})},u}(h.default);h.default.registerComponent("TimeDivider",a),e.default=a,w.exports=e.default},{"../../component.js":67}],94:[function(t,w,e){"use strict";function c(p){if(p&&p.__esModule)return p;var l={};if(p!=null)for(var _ in p)Object.prototype.hasOwnProperty.call(p,_)&&(l[_]=p[_]);return l.default=p,l}function o(p){return p&&p.__esModule?p:{default:p}}function m(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")}function g(p,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);p.prototype=Object.create(l&&l.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(p,l):p.__proto__=l)}e.__esModule=!0;var h=t("../../slider/slider.js"),a=o(h),f=t("../../component.js"),u=o(f),r=t("../../utils/fn.js"),n=c(r),y=t("./volume-level.js"),i=(o(y),function(p){function l(_,d){m(this,l),p.call(this,_,d),this.on(_,"volumechange",this.updateARIAAttributes),_.ready(n.bind(this,this.updateARIAAttributes))}return g(l,p),l.prototype.createEl=function(){return p.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})},l.prototype.handleMouseMove=function(_){this.checkMuted(),this.player_.volume(this.calculateDistance(_))},l.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},l.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},l.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},l.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},l.prototype.updateARIAAttributes=function(){var _=(100*this.player_.volume()).toFixed(2);this.el_.setAttribute("aria-valuenow",_),this.el_.setAttribute("aria-valuetext",_+"%")},l}(a.default));i.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},i.prototype.playerEvent="volumechange",u.default.registerComponent("VolumeBar",i),e.default=i,w.exports=e.default},{"../../component.js":67,"../../slider/slider.js":114,"../../utils/fn.js":134,"./volume-level.js":96}],95:[function(t,w,e){"use strict";function c(u){return u&&u.__esModule?u:{default:u}}function o(u,r){if(!(u instanceof r))throw new TypeError("Cannot call a class as a function")}function m(u,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);u.prototype=Object.create(r&&r.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(u,r):u.__proto__=r)}e.__esModule=!0;var g=t("../../component.js"),h=c(g),a=t("./volume-bar.js"),f=(c(a),function(u){function r(n,y){o(this,r),u.call(this,n,y),n.tech_&&n.tech_.featuresVolumeControl===!1&&this.addClass("vjs-hidden"),this.on(n,"loadstart",function(){n.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}return m(r,u),r.prototype.createEl=function(){return u.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},r}(h.default));f.prototype.options_={children:["volumeBar"]},h.default.registerComponent("VolumeControl",f),e.default=f,w.exports=e.default},{"../../component.js":67,"./volume-bar.js":94}],96:[function(t,w,e){"use strict";function c(f){return f&&f.__esModule?f:{default:f}}function o(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")}function m(f,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);f.prototype=Object.create(u&&u.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(f,u):f.__proto__=u)}e.__esModule=!0;var g=t("../../component.js"),h=c(g),a=function(f){function u(){o(this,u),f.apply(this,arguments)}return m(u,f),u.prototype.createEl=function(){return f.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:''})},u}(h.default);h.default.registerComponent("VolumeLevel",a),e.default=a,w.exports=e.default},{"../../component.js":67}],97:[function(t,w,e){"use strict";function c(k){return k&&k.__esModule?k:{default:k}}function o(k){if(k&&k.__esModule)return k;var C={};if(k!=null)for(var O in k)Object.prototype.hasOwnProperty.call(k,O)&&(C[O]=k[O]);return C.default=k,C}function m(k,C){if(!(k instanceof C))throw new TypeError("Cannot call a class as a function")}function g(k,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);k.prototype=Object.create(C&&C.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(k,C):k.__proto__=C)}e.__esModule=!0;var h=t("../utils/fn.js"),a=o(h),f=t("../component.js"),u=c(f),r=t("../popup/popup.js"),n=c(r),y=t("../popup/popup-button.js"),i=c(y),p=t("./mute-toggle.js"),l=c(p),_=t("./volume-control/volume-bar.js"),d=c(_),v=t("global/document"),s=c(v),j=function(k){function C(O){function b(){O.tech_&&O.tech_.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}var T=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];m(this,C),T.inline===void 0&&(T.inline=!0),T.vertical===void 0&&(T.vertical=!T.inline),T.volumeBar=T.volumeBar||{},T.volumeBar.vertical=!!T.vertical,k.call(this,O,T),this.on(O,"volumechange",this.volumeUpdate),this.on(O,"loadstart",this.volumeUpdate),b.call(this),this.on(O,"loadstart",b),this.on(this.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),this.on(this.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),this.on(this.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),this.on(this.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")})}return g(C,k),C.prototype.buildCSSClass=function(){var O="";return O=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+k.prototype.buildCSSClass.call(this)+" "+O},C.prototype.createPopup=function(){var O=new n.default(this.player_,{contentElType:"div"}),b=new d.default(this.player_,this.options_.volumeBar);return O.addChild(b),this.volumeBar=b,this.attachVolumeBarEvents(),O},C.prototype.handleClick=function(){l.default.prototype.handleClick.call(this),k.prototype.handleClick.call(this)},C.prototype.attachVolumeBarEvents=function(){this.on(["mousedown","touchdown"],this.handleMouseDown)},C.prototype.handleMouseDown=function(){this.on(["mousemove","touchmove"],a.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(s.default,["mouseup","touchend"],this.handleMouseUp)},C.prototype.handleMouseUp=function(){this.off(["mousemove","touchmove"],a.bind(this.volumeBar,this.volumeBar.handleMouseMove))},C}(i.default);j.prototype.volumeUpdate=l.default.prototype.update,j.prototype.controlText_="Mute",u.default.registerComponent("VolumeMenuButton",j),e.default=j,w.exports=e.default},{"../component.js":67,"../popup/popup-button.js":110,"../popup/popup.js":111,"../utils/fn.js":134,"./mute-toggle.js":71,"./volume-control/volume-bar.js":94,"global/document":1}],98:[function(t,w,e){"use strict";function c(p){if(p&&p.__esModule)return p;var l={};if(p!=null)for(var _ in p)Object.prototype.hasOwnProperty.call(p,_)&&(l[_]=p[_]);return l.default=p,l}function o(p){return p&&p.__esModule?p:{default:p}}function m(p,l){if(!(p instanceof l))throw new TypeError("Cannot call a class as a function")}function g(p,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);p.prototype=Object.create(l&&l.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(p,l):p.__proto__=l)}e.__esModule=!0;var h=t("./component"),a=o(h),f=t("./modal-dialog"),u=o(f),r=t("./utils/dom"),n=(c(r),t("./utils/merge-options")),y=o(n),i=function(p){function l(_,d){m(this,l),p.call(this,_,d),this.on(_,"error",this.open)}return g(l,p),l.prototype.buildCSSClass=function(){return"vjs-error-display "+p.prototype.buildCSSClass.call(this)},l.prototype.content=function(){var _=this.player().error();return _?this.localize(_.message):""},l}(u.default);i.prototype.options_=y.default(u.default.prototype.options_,{fillAlways:!0,temporary:!1,uncloseable:!0}),a.default.registerComponent("ErrorDisplay",i),e.default=i,w.exports=e.default},{"./component":67,"./modal-dialog":107,"./utils/dom":132,"./utils/merge-options":138}],99:[function(t,w,e){"use strict";function c(h){if(h&&h.__esModule)return h;var a={};if(h!=null)for(var f in h)Object.prototype.hasOwnProperty.call(h,f)&&(a[f]=h[f]);return a.default=h,a}e.__esModule=!0;var o=t("./utils/events.js"),m=c(o),g=function(){};g.prototype.allowedEvents_={},g.prototype.on=function(h,a){var f=this.addEventListener;this.addEventListener=Function.prototype,m.on(this,h,a),this.addEventListener=f},g.prototype.addEventListener=g.prototype.on,g.prototype.off=function(h,a){m.off(this,h,a)},g.prototype.removeEventListener=g.prototype.off,g.prototype.one=function(h,a){m.one(this,h,a)},g.prototype.trigger=function(h){var a=h.type||h;typeof h=="string"&&(h={type:a}),h=m.fixEvent(h),this.allowedEvents_[a]&&this["on"+a]&&this["on"+a](h),m.trigger(this,h)},g.prototype.dispatchEvent=g.prototype.trigger,e.default=g,w.exports=e.default},{"./utils/events.js":133}],100:[function(t,w,e){"use strict";function c(a){return a&&a.__esModule?a:{default:a}}e.__esModule=!0;var o=t("./utils/log"),m=c(o),g=function(a,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);a.prototype=Object.create(f&&f.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),f&&(a.super_=f)},h=function(a){var f=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=function(){a.apply(this,arguments)},r={};typeof f=="object"?(typeof f.init=="function"&&(m.default.warn("Constructor logic via init() is deprecated; please use constructor() instead."),f.constructor=f.init),f.constructor!==Object.prototype.constructor&&(u=f.constructor),r=f):typeof f=="function"&&(u=f),g(u,a);for(var n in r)r.hasOwnProperty(n)&&(u.prototype[n]=r[n]);return u};e.default=h,w.exports=e.default},{"./utils/log":137}],101:[function(t,w,e){"use strict";function c(r){return r&&r.__esModule?r:{default:r}}e.__esModule=!0;for(var o=t("global/document"),m=c(o),g={},h=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],a=h[0],f=void 0,u=0;u1&&this.show()},j.prototype.createMenu=function(){var k=new n.default(this.player_);if(this.options_.title){var C=i.createEl("li",{className:"vjs-menu-title",innerHTML:d.default(this.options_.title),tabIndex:-1});k.children_.unshift(C),i.insertElFirst(C,k.contentEl())}if(this.items=this.createItems(),this.items)for(var O=0;O0&&(0>d?d=0:d>=v.length&&(d=v.length-1),this.focusedChild_=d,v[d].el_.focus())},_}(a.default);a.default.registerComponent("Menu",p),e.default=p,w.exports=e.default},{"../component.js":67,"../utils/dom.js":132,"../utils/events.js":133,"../utils/fn.js":134}],107:[function(t,w,e){"use strict";function c(s){if(s&&s.__esModule)return s;var j={};if(s!=null)for(var k in s)Object.prototype.hasOwnProperty.call(s,k)&&(j[k]=s[k]);return j.default=s,j}function o(s){return s&&s.__esModule?s:{default:s}}function m(s,j){if(!(s instanceof j))throw new TypeError("Cannot call a class as a function")}function g(s,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);s.prototype=Object.create(j&&j.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(s,j):s.__proto__=j)}e.__esModule=!0;var h=t("global/document"),a=o(h),f=t("./utils/dom"),u=c(f),r=t("./utils/fn"),n=c(r),y=t("./utils/log"),i=(o(y),t("./component")),p=o(i),l=t("./close-button"),_=(o(l),"vjs-modal-dialog"),d=27,v=function(s){function j(k,C){m(this,j),s.call(this,k,C),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=u.createEl("div",{className:_+"-content"},{role:"document"}),this.descEl_=u.createEl("p",{className:_+"-description vjs-offscreen",id:this.el().getAttribute("aria-describedby")}),u.textContent(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}return g(j,s),j.prototype.createEl=function(){return s.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},j.prototype.buildCSSClass=function(){return _+" vjs-hidden "+s.prototype.buildCSSClass.call(this)},j.prototype.handleKeyPress=function(k){k.which===d&&this.closeable()&&this.close()},j.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},j.prototype.description=function(){var k=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(k+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),k},j.prototype.open=function(){if(!this.opened_){var k=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!k.paused(),this.wasPlaying_&&k.pause(),this.closeable()&&this.on(a.default,"keydown",n.bind(this,this.handleKeyPress)),k.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}return this},j.prototype.opened=function(k){return typeof k=="boolean"&&this[k?"open":"close"](),this.opened_},j.prototype.close=function(){if(this.opened_){var k=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&k.play(),this.closeable()&&this.off(a.default,"keydown",n.bind(this,this.handleKeyPress)),k.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.options_.temporary&&this.dispose()}return this},j.prototype.closeable=function(C){if(typeof C=="boolean"){var O=this.closeable_=!!C,b=this.getChild("closeButton");if(O&&!b){var T=this.contentEl_;this.contentEl_=this.el_,b=this.addChild("closeButton"),this.contentEl_=T,this.on(b,"close",this.close)}!O&&b&&(this.off(b,"close",this.close),this.removeChild(b),b.dispose())}return this.closeable_},j.prototype.fill=function(){return this.fillWith(this.content())},j.prototype.fillWith=function(k){var C=this.contentEl(),O=C.parentNode,b=C.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,O.removeChild(C),this.empty(),u.insertContent(C,k),this.trigger("modalfill"),b?O.insertBefore(C,b):O.appendChild(C),this},j.prototype.empty=function(){return this.trigger("beforemodalempty"),u.emptyEl(this.contentEl()),this.trigger("modalempty"),this},j.prototype.content=function(k){return typeof k!="undefined"&&(this.content_=k),this.content_},j}(p.default);v.prototype.options_={temporary:!0},p.default.registerComponent("ModalDialog",v),e.default=v,w.exports=e.default},{"./close-button":66,"./component":67,"./utils/dom":132,"./utils/fn":134,"./utils/log":137,"global/document":1}],108:[function(t,w,e){"use strict";function c(Y){if(Y&&Y.__esModule)return Y;var L={};if(Y!=null)for(var S in Y)Object.prototype.hasOwnProperty.call(Y,S)&&(L[S]=Y[S]);return L.default=Y,L}function o(Y){return Y&&Y.__esModule?Y:{default:Y}}function m(Y,L){if(!(Y instanceof L))throw new TypeError("Cannot call a class as a function")}function g(Y,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);Y.prototype=Object.create(L&&L.prototype,{constructor:{value:Y,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(Y,L):Y.__proto__=L)}e.__esModule=!0;var h=t("./component.js"),a=o(h),f=t("global/document"),u=o(f),r=t("global/window"),n=o(r),y=t("./utils/events.js"),i=c(y),p=t("./utils/dom.js"),l=c(p),_=t("./utils/fn.js"),d=c(_),v=t("./utils/guid.js"),s=c(v),j=t("./utils/browser.js"),k=c(j),C=t("./utils/log.js"),O=o(C),b=t("./utils/to-title-case.js"),T=o(b),P=t("./utils/time-ranges.js"),D=t("./utils/buffer.js"),F=t("./utils/stylesheet.js"),N=c(F),A=t("./fullscreen-api.js"),I=o(A),R=t("./media-error.js"),E=o(R),x=t("safe-json-parse/tuple"),M=o(x),$=t("object.assign"),U=o($),X=t("./utils/merge-options.js"),Z=o(X),rt=t("./tracks/text-track-list-converter.js"),ot=o(rt),at=t("./tech/loader.js"),ct=(o(at),t("./poster-image.js")),st=(o(ct),t("./tracks/text-track-display.js")),dt=(o(st),t("./loading-spinner.js")),ft=(o(dt),t("./big-play-button.js")),B=(o(ft),t("./control-bar/control-bar.js")),V=(o(B),t("./error-display.js")),G=(o(V),t("./tracks/text-track-settings.js")),q=(o(G),t("./modal-dialog")),tt=o(q),lt=t("./tech/tech.js"),z=o(lt),et=t("./tech/html5.js"),Q=(o(et),function(Y){function L(S,H,W){var K=this;if(m(this,L),S.id=S.id||"vjs_video_"+s.newGUID(),H=U.default(L.getTagSettings(S),H),H.initChildren=!1,H.createEl=!1,H.reportTouchActivity=!1,Y.call(this,null,H,W),!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");this.tag=S,this.tagAttributes=S&&l.getElAttributes(S),this.language(this.options_.language),H.languages?function(){var J={};Object.getOwnPropertyNames(H.languages).forEach(function(nt){J[nt.toLowerCase()]=H.languages[nt]}),K.languages_=J}():this.languages_=L.prototype.options_.languages,this.cache_={},this.poster_=H.poster||"",this.controls_=!!H.controls,S.controls=!1,this.scrubbing_=!1,this.el_=this.createEl();var ut=Z.default(this.options_);H.plugins&&function(){var J=H.plugins;Object.getOwnPropertyNames(J).forEach(function(nt){typeof this[nt]=="function"?this[nt](J[nt]):O.default.error("Unable to find plugin:",nt)},K)}(),this.options_.playerOptions=ut,this.initChildren(),this.isAudio(S.nodeName.toLowerCase()==="audio"),this.addClass(this.controls()?"vjs-controls-enabled":"vjs-controls-disabled"),this.isAudio()&&this.addClass("vjs-audio"),this.flexNotSupported_()&&this.addClass("vjs-no-flex"),k.IS_IOS||this.addClass("vjs-workinghover"),L.players[this.id_]=this,this.userActive(!0),this.reportUserActivity(),this.listenForUserActivity_(),this.on("fullscreenchange",this.handleFullscreenChange_),this.on("stageclick",this.handleStageClick_)}return g(L,Y),L.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_),L.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&this.tech_.dispose(),Y.prototype.dispose.call(this)},L.prototype.createEl=function(){var S=this.el_=Y.prototype.createEl.call(this,"div"),H=this.tag;H.removeAttribute("width"),H.removeAttribute("height");var W=l.getElAttributes(H);Object.getOwnPropertyNames(W).forEach(function(J){J==="class"?S.className=W[J]:S.setAttribute(J,W[J])}),H.playerId=H.id,H.id+="_html5_api",H.className="vjs-tech",H.player=S.player=this,this.addClass("vjs-paused"),this.styleEl_=N.createStyleElement("vjs-styles-dimensions");var K=l.$(".vjs-styles-defaults"),ut=l.$("head");return ut.insertBefore(this.styleEl_,K?K.nextSibling:ut.firstChild),this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),H.initNetworkState_=H.networkState,H.parentNode&&H.parentNode.insertBefore(S,H),l.insertElFirst(H,S),this.children_.unshift(H),this.el_=S,S},L.prototype.width=function(S){return this.dimension("width",S)},L.prototype.height=function(S){return this.dimension("height",S)},L.prototype.dimension=function(S,H){var W=S+"_";if(H===void 0)return this[W]||0;if(H==="")this[W]=void 0;else{var K=parseFloat(H);if(isNaN(K))return O.default.error('Improper value "'+H+'" supplied for for '+S),this;this[W]=K}return this.updateStyleEl_(),this},L.prototype.fluid=function(S){return S===void 0?!!this.fluid_:(this.fluid_=!!S,void(S?this.addClass("vjs-fluid"):this.removeClass("vjs-fluid")))},L.prototype.aspectRatio=function(S){if(S===void 0)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(S))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=S,this.fluid(!0),this.updateStyleEl_()},L.prototype.updateStyleEl_=function(){var S=void 0,H=void 0,W=void 0,K=void 0;W=this.aspectRatio_!==void 0&&this.aspectRatio_!=="auto"?this.aspectRatio_:this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9";var ut=W.split(":"),J=ut[1]/ut[0];S=this.width_!==void 0?this.width_:this.height_!==void 0?this.height_/J:this.videoWidth()||300,H=this.height_!==void 0?this.height_:S*J,K=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(K),N.setTextContent(this.styleEl_,` .`+K+` { width: `+S+`px; height: `+H+`px; } .`+K+`.vjs-fluid { padding-top: `+100*J+`%; } `)},L.prototype.loadTech_=function(S,H){this.tech_&&this.unloadTech_(),S!=="Html5"&&this.tag&&(z.default.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=S,this.isReady_=!1;var W=U.default({nativeControlsForTouch:this.options_.nativeControlsForTouch,source:H,playerId:this.id(),techId:this.id()+"_"+S+"_api",textTracks:this.textTracks_,autoplay:this.options_.autoplay,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),"vtt.js":this.options_["vtt.js"]},this.options_[S.toLowerCase()]);this.tag&&(W.tag=this.tag),H&&(this.currentType_=H.type,H.src===this.cache_.src&&this.cache_.currentTime>0&&(W.startTime=this.cache_.currentTime),this.cache_.src=H.src);var K=z.default.getTech(S);K||(K=a.default.getComponent(S)),this.tech_=new K(W),this.tech_.ready(d.bind(this,this.handleTechReady_),!0),ot.default.jsonToTextTracks(this.textTracksJson_||[],this.tech_),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"canplay",this.handleTechCanPlay_),this.on(this.tech_,"canplaythrough",this.handleTechCanPlayThrough_),this.on(this.tech_,"playing",this.handleTechPlaying_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"seeked",this.handleTechSeeked_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"progress",this.handleTechProgress_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"suspend",this.handleTechSuspend_),this.on(this.tech_,"abort",this.handleTechAbort_),this.on(this.tech_,"emptied",this.handleTechEmptied_),this.on(this.tech_,"stalled",this.handleTechStalled_),this.on(this.tech_,"loadedmetadata",this.handleTechLoadedMetaData_),this.on(this.tech_,"loadeddata",this.handleTechLoadedData_),this.on(this.tech_,"timeupdate",this.handleTechTimeUpdate_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.on(this.tech_,"volumechange",this.handleTechVolumeChange_),this.on(this.tech_,"texttrackchange",this.handleTechTextTrackChange_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||S==="Html5"&&this.tag||l.insertElFirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},L.prototype.unloadTech_=function(){this.textTracks_=this.textTracks(),this.textTracksJson_=ot.default.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},L.prototype.tech=function(S){if(S&&S.IWillNotUseThisInPlugins)return this.tech_;var H=` Please make sure that you are not using this inside of a plugin. To disable this alert and error, please pass in an object with \`IWillNotUseThisInPlugins\` to the \`tech\` method. See https://github.com/videojs/video.js/issues/2617 for more info. `;throw n.default.alert(H),new Error(H)},L.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},L.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},L.prototype.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),this.src()&&this.tag&&this.options_.autoplay&&this.paused()&&(delete this.tag.poster,this.play())},L.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},L.prototype.hasStarted=function(S){return S!==void 0?(this.hasStarted_!==S&&(this.hasStarted_=S,S?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},L.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},L.prototype.handleTechWaiting_=function(){var S=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return S.removeClass("vjs-waiting")})},L.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},L.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},L.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},L.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},L.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},L.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&this.currentTime(this.options_.starttime),this.addClass("vjs-has-started"),this.trigger("firstplay")},L.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},L.prototype.handleTechProgress_=function(){this.trigger("progress")},L.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},L.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},L.prototype.handleTechClick_=function(S){S.button===0&&this.controls()&&(this.paused()?this.play():this.pause())},L.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},L.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},L.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},L.prototype.handleTechTouchEnd_=function(S){S.preventDefault()},L.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},L.prototype.handleStageClick_=function(){this.reportUserActivity()},L.prototype.handleTechFullscreenChange_=function(S,H){H&&this.isFullscreen(H.isFullscreen),this.trigger("fullscreenchange")},L.prototype.handleTechError_=function(){var S=this.tech_.error();this.error(S&&S.code)},L.prototype.handleTechSuspend_=function(){this.trigger("suspend")},L.prototype.handleTechAbort_=function(){this.trigger("abort")},L.prototype.handleTechEmptied_=function(){this.trigger("emptied")},L.prototype.handleTechStalled_=function(){this.trigger("stalled")},L.prototype.handleTechLoadedMetaData_=function(){this.trigger("loadedmetadata")},L.prototype.handleTechLoadedData_=function(){this.trigger("loadeddata")},L.prototype.handleTechTimeUpdate_=function(){this.trigger("timeupdate")},L.prototype.handleTechRateChange_=function(){this.trigger("ratechange")},L.prototype.handleTechVolumeChange_=function(){this.trigger("volumechange")},L.prototype.handleTechTextTrackChange_=function(){this.trigger("texttrackchange")},L.prototype.getCache=function(){return this.cache_},L.prototype.techCall_=function(S,H){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[S](H)},!0);else try{this.tech_[S](H)}catch(W){throw O.default(W),W}},L.prototype.techGet_=function(S){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[S]()}catch(H){throw this.tech_[S]===void 0?O.default("Video.js: "+S+" method not defined for "+this.techName_+" playback technology.",H):H.name==="TypeError"?(O.default("Video.js: "+S+" unavailable on "+this.techName_+" playback technology element.",H),this.tech_.isReady_=!1):O.default(H),H}},L.prototype.play=function(){return this.techCall_("play"),this},L.prototype.pause=function(){return this.techCall_("pause"),this},L.prototype.paused=function(){return this.techGet_("paused")!==!1},L.prototype.scrubbing=function(S){return S!==void 0?(this.scrubbing_=!!S,S?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},L.prototype.currentTime=function(S){return S!==void 0?(this.techCall_("setCurrentTime",S),this):this.cache_.currentTime=this.techGet_("currentTime")||0},L.prototype.duration=function(S){return S===void 0?this.cache_.duration||0:(S=parseFloat(S)||0,0>S&&(S=1/0),S!==this.cache_.duration&&(this.cache_.duration=S,S===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},L.prototype.remainingTime=function(){return this.duration()-this.currentTime()},L.prototype.buffered=function(){var H=this.techGet_("buffered");return H&&H.length||(H=P.createTimeRange(0,0)),H},L.prototype.bufferedPercent=function(){return D.bufferedPercent(this.buffered(),this.duration())},L.prototype.bufferedEnd=function(){var S=this.buffered(),H=this.duration(),W=S.end(S.length-1);return W>H&&(W=H),W},L.prototype.volume=function(S){var H=void 0;return S!==void 0?(H=Math.max(0,Math.min(1,parseFloat(S))),this.cache_.volume=H,this.techCall_("setVolume",H),this):(H=parseFloat(this.techGet_("volume")),isNaN(H)?1:H)},L.prototype.muted=function(S){return S!==void 0?(this.techCall_("setMuted",S),this):this.techGet_("muted")||!1},L.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},L.prototype.isFullscreen=function(S){return S!==void 0?(this.isFullscreen_=!!S,this):!!this.isFullscreen_},L.prototype.requestFullscreen=function(){var S=I.default;return this.isFullscreen(!0),S.requestFullscreen?(i.on(u.default,S.fullscreenchange,d.bind(this,function H(){this.isFullscreen(u.default[S.fullscreenElement]),this.isFullscreen()===!1&&i.off(u.default,S.fullscreenchange,H),this.trigger("fullscreenchange")})),this.el_[S.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},L.prototype.exitFullscreen=function(){var S=I.default;return this.isFullscreen(!1),S.requestFullscreen?u.default[S.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},L.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=u.default.documentElement.style.overflow,i.on(u.default,"keydown",d.bind(this,this.fullWindowOnEscKey)),u.default.documentElement.style.overflow="hidden",l.addElClass(u.default.body,"vjs-full-window"),this.trigger("enterFullWindow")},L.prototype.fullWindowOnEscKey=function(S){S.keyCode===27&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},L.prototype.exitFullWindow=function(){this.isFullWindow=!1,i.off(u.default,"keydown",this.fullWindowOnEscKey),u.default.documentElement.style.overflow=this.docOrigOverflow,l.removeElClass(u.default.body,"vjs-full-window"),this.trigger("exitFullWindow")},L.prototype.canPlayType=function(S){for(var H=void 0,W=0,K=this.options_.techOrder;W0&&(pt=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},it))}},250)}},L.prototype.playbackRate=function(S){return S!==void 0?(this.techCall_("setPlaybackRate",S),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},L.prototype.isAudio=function(S){return S!==void 0?(this.isAudio_=!!S,this):!!this.isAudio_},L.prototype.networkState=function(){return this.techGet_("networkState")},L.prototype.readyState=function(){return this.techGet_("readyState")},L.prototype.textTracks=function(){return this.tech_&&this.tech_.textTracks()},L.prototype.remoteTextTracks=function(){return this.tech_&&this.tech_.remoteTextTracks()},L.prototype.remoteTextTrackEls=function(){return this.tech_&&this.tech_.remoteTextTrackEls()},L.prototype.addTextTrack=function(S,H,W){return this.tech_&&this.tech_.addTextTrack(S,H,W)},L.prototype.addRemoteTextTrack=function(S){return this.tech_&&this.tech_.addRemoteTextTrack(S)},L.prototype.removeRemoteTextTrack=function(S){this.tech_&&this.tech_.removeRemoteTextTrack(S)},L.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},L.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},L.prototype.language=function(S){return S===void 0?this.language_:(this.language_=(""+S).toLowerCase(),this)},L.prototype.languages=function(){return Z.default(L.prototype.options_.languages,this.languages_)},L.prototype.toJSON=function(){var S=Z.default(this.options_),H=S.tracks;S.tracks=[];for(var W=0;Wit;it++){var mt=pt[it],gt=mt.nodeName.toLowerCase();gt==="source"?H.sources.push(l.getElAttributes(mt)):gt==="track"&&H.tracks.push(l.getElAttributes(mt))}return H},L}(a.default));Q.players={};var ht=n.default.navigator;Q.prototype.options_={techOrder:["html5","flash"],html5:{},flash:{},defaultVolume:0,inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:u.default.getElementsByTagName("html")[0].getAttribute("lang")||ht.languages&&ht.languages[0]||ht.userLanguage||ht.language||"en",languages:{},notSupportedMessage:"No compatible source was found for this media."},Q.prototype.handleLoadedMetaData_,Q.prototype.handleLoadedData_,Q.prototype.handleUserActive_,Q.prototype.handleUserInactive_,Q.prototype.handleTimeUpdate_,Q.prototype.handleTechEnded_,Q.prototype.handleVolumeChange_,Q.prototype.handleError_,Q.prototype.flexNotSupported_=function(){var Y=u.default.createElement("i");return!("flexBasis"in Y.style||"webkitFlexBasis"in Y.style||"mozFlexBasis"in Y.style||"msFlexBasis"in Y.style||"msFlexOrder"in Y.style)},a.default.registerComponent("Player",Q),e.default=Q,w.exports=e.default},{"./big-play-button.js":63,"./component.js":67,"./control-bar/control-bar.js":68,"./error-display.js":98,"./fullscreen-api.js":101,"./loading-spinner.js":102,"./media-error.js":103,"./modal-dialog":107,"./poster-image.js":112,"./tech/html5.js":117,"./tech/loader.js":118,"./tech/tech.js":119,"./tracks/text-track-display.js":123,"./tracks/text-track-list-converter.js":125,"./tracks/text-track-settings.js":127,"./utils/browser.js":129,"./utils/buffer.js":130,"./utils/dom.js":132,"./utils/events.js":133,"./utils/fn.js":134,"./utils/guid.js":136,"./utils/log.js":137,"./utils/merge-options.js":138,"./utils/stylesheet.js":139,"./utils/time-ranges.js":140,"./utils/to-title-case.js":141,"global/document":1,"global/window":2,"object.assign":45,"safe-json-parse/tuple":54}],109:[function(t,w,e){"use strict";function c(h){return h&&h.__esModule?h:{default:h}}e.__esModule=!0;var o=t("./player.js"),m=c(o),g=function(h,a){m.default.prototype[h]=a};e.default=g,w.exports=e.default},{"./player.js":108}],110:[function(t,w,e){"use strict";function c(l){if(l&&l.__esModule)return l;var _={};if(l!=null)for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(_[d]=l[d]);return _.default=l,_}function o(l){return l&&l.__esModule?l:{default:l}}function m(l,_){if(!(l instanceof _))throw new TypeError("Cannot call a class as a function")}function g(l,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);l.prototype=Object.create(_&&_.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(l,_):l.__proto__=_)}e.__esModule=!0;var h=t("../clickable-component.js"),a=o(h),f=t("../component.js"),u=o(f),r=t("./popup.js"),n=(o(r),t("../utils/dom.js")),y=(c(n),t("../utils/fn.js")),i=(c(y),t("../utils/to-title-case.js")),p=(o(i),function(l){function _(d){var v=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];m(this,_),l.call(this,d,v),this.update()}return g(_,l),_.prototype.update=function(){var d=this.createPopup();this.popup&&this.removeChild(this.popup),this.popup=d,this.addChild(d),this.items&&this.items.length===0?this.hide():this.items&&this.items.length>1&&this.show()},_.prototype.createPopup=function(){},_.prototype.createEl=function(){return l.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},_.prototype.buildCSSClass=function(){var d="vjs-menu-button";return d+=this.options_.inline===!0?"-inline":"-popup","vjs-menu-button "+d+" "+l.prototype.buildCSSClass.call(this)},_}(a.default));u.default.registerComponent("PopupButton",p),e.default=p,w.exports=e.default},{"../clickable-component.js":65,"../component.js":67,"../utils/dom.js":132,"../utils/fn.js":134,"../utils/to-title-case.js":141,"./popup.js":111}],111:[function(t,w,e){"use strict";function c(l){if(l&&l.__esModule)return l;var _={};if(l!=null)for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(_[d]=l[d]);return _.default=l,_}function o(l){return l&&l.__esModule?l:{default:l}}function m(l,_){if(!(l instanceof _))throw new TypeError("Cannot call a class as a function")}function g(l,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);l.prototype=Object.create(_&&_.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(l,_):l.__proto__=_)}e.__esModule=!0;var h=t("../component.js"),a=o(h),f=t("../utils/dom.js"),u=c(f),r=t("../utils/fn.js"),n=c(r),y=t("../utils/events.js"),i=c(y),p=function(l){function _(){m(this,_),l.apply(this,arguments)}return g(_,l),_.prototype.addItem=function(d){this.addChild(d),d.on("click",n.bind(this,function(){this.unlockShowing()}))},_.prototype.createEl=function(){var d=this.options_.contentElType||"ul";this.contentEl_=u.createEl(d,{className:"vjs-menu-content"});var v=l.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return v.appendChild(this.contentEl_),i.on(v,"click",function(s){s.preventDefault(),s.stopImmediatePropagation()}),v},_}(a.default);a.default.registerComponent("Popup",p),e.default=p,w.exports=e.default},{"../component.js":67,"../utils/dom.js":132,"../utils/events.js":133,"../utils/fn.js":134}],112:[function(t,w,e){"use strict";function c(d){if(d&&d.__esModule)return d;var v={};if(d!=null)for(var s in d)Object.prototype.hasOwnProperty.call(d,s)&&(v[s]=d[s]);return v.default=d,v}function o(d){return d&&d.__esModule?d:{default:d}}function m(d,v){if(!(d instanceof v))throw new TypeError("Cannot call a class as a function")}function g(d,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);d.prototype=Object.create(v&&v.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(d,v):d.__proto__=v)}e.__esModule=!0;var h=t("./clickable-component.js"),a=o(h),f=t("./component.js"),u=o(f),r=t("./utils/fn.js"),n=c(r),y=t("./utils/dom.js"),i=c(y),p=t("./utils/browser.js"),l=c(p),_=function(d){function v(s,j){m(this,v),d.call(this,s,j),this.update(),s.on("posterchange",n.bind(this,this.update))}return g(v,d),v.prototype.dispose=function(){this.player().off("posterchange",this.update),d.prototype.dispose.call(this)},v.prototype.createEl=function(){var s=i.createEl("div",{className:"vjs-poster",tabIndex:-1});return l.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=i.createEl("img"),s.appendChild(this.fallbackImg_)),s},v.prototype.update=function(){var s=this.player().poster();this.setSrc(s),s?this.show():this.hide()},v.prototype.setSrc=function(s){if(this.fallbackImg_)this.fallbackImg_.src=s;else{var j="";s&&(j='url("'+s+'")'),this.el_.style.backgroundImage=j}},v.prototype.handleClick=function(){this.player_.paused()?this.player_.play():this.player_.pause()},v}(a.default);u.default.registerComponent("PosterImage",_),e.default=_,w.exports=e.default},{"./clickable-component.js":65,"./component.js":67,"./utils/browser.js":129,"./utils/dom.js":132,"./utils/fn.js":134}],113:[function(t,w,e){"use strict";function c(l){return l&&l.__esModule?l:{default:l}}function o(l){if(l&&l.__esModule)return l;var _={};if(l!=null)for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(_[d]=l[d]);return _.default=l,_}e.__esModule=!0;var m=t("./utils/events.js"),g=o(m),h=t("global/document"),a=c(h),f=t("global/window"),u=c(f),r=!1,n=void 0,y=function(){var l=a.default.getElementsByTagName("video"),_=a.default.getElementsByTagName("audio"),d=[];if(l&&l.length>0)for(var v=0,s=l.length;s>v;v++)d.push(l[v]);if(_&&_.length>0)for(var v=0,s=_.length;s>v;v++)d.push(_[v]);if(d&&d.length>0)for(var v=0,s=d.length;s>v;v++){var j=d[v];if(!j||!j.getAttribute){i(1);break}if(j.player===void 0){var k=j.getAttribute("data-setup");k!==null&&n(j)}}else r||i(1)},i=function(l,_){n=_,setTimeout(y,l)};a.default.readyState==="complete"?r=!0:g.one(u.default,"load",function(){r=!0});var p=function(){return r};e.autoSetup=y,e.autoSetupTimeout=i,e.hasLoaded=p},{"./utils/events.js":133,"global/document":1,"global/window":2}],114:[function(t,w,e){"use strict";function c(l){if(l&&l.__esModule)return l;var _={};if(l!=null)for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(_[d]=l[d]);return _.default=l,_}function o(l){return l&&l.__esModule?l:{default:l}}function m(l,_){if(!(l instanceof _))throw new TypeError("Cannot call a class as a function")}function g(l,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);l.prototype=Object.create(_&&_.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(l,_):l.__proto__=_)}e.__esModule=!0;var h=t("../component.js"),a=o(h),f=t("../utils/dom.js"),u=c(f),r=t("global/document"),n=o(r),y=t("object.assign"),i=o(y),p=function(l){function _(d,v){m(this,_),l.call(this,d,v),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),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(d,"controlsvisible",this.update),this.on(d,this.playerEvent,this.update)}return g(_,l),_.prototype.createEl=function(d){var v=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],s=arguments.length<=2||arguments[2]===void 0?{}:arguments[2];return v.className=v.className+" vjs-slider",v=i.default({tabIndex:0},v),s=i.default({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},s),l.prototype.createEl.call(this,d,v,s)},_.prototype.handleMouseDown=function(d){d.preventDefault(),u.blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(n.default,"mousemove",this.handleMouseMove),this.on(n.default,"mouseup",this.handleMouseUp),this.on(n.default,"touchmove",this.handleMouseMove),this.on(n.default,"touchend",this.handleMouseUp),this.handleMouseMove(d)},_.prototype.handleMouseMove=function(){},_.prototype.handleMouseUp=function(){u.unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(n.default,"mousemove",this.handleMouseMove),this.off(n.default,"mouseup",this.handleMouseUp),this.off(n.default,"touchmove",this.handleMouseMove),this.off(n.default,"touchend",this.handleMouseUp),this.update()},_.prototype.update=function(){if(this.el_){var d=this.getPercent(),v=this.bar;if(v){(typeof d!="number"||d!==d||0>d||d===1/0)&&(d=0);var s=(100*d).toFixed(2)+"%";this.vertical()?v.el().style.height=s:v.el().style.width=s}}},_.prototype.calculateDistance=function(d){var v=u.getPointerPosition(this.el_,d);return this.vertical()?v.y:v.x},_.prototype.handleFocus=function(){this.on(n.default,"keydown",this.handleKeyPress)},_.prototype.handleKeyPress=function(d){d.which===37||d.which===40?(d.preventDefault(),this.stepBack()):(d.which===38||d.which===39)&&(d.preventDefault(),this.stepForward())},_.prototype.handleBlur=function(){this.off(n.default,"keydown",this.handleKeyPress)},_.prototype.handleClick=function(d){d.stopImmediatePropagation(),d.preventDefault()},_.prototype.vertical=function(d){return d===void 0?this.vertical_||!1:(this.vertical_=!!d,this.addClass(this.vertical_?"vjs-slider-vertical":"vjs-slider-horizontal"),this)},_}(a.default);a.default.registerComponent("Slider",p),e.default=p,w.exports=e.default},{"../component.js":67,"../utils/dom.js":132,"global/document":1,"object.assign":45}],115:[function(t,w,e){"use strict";function c(o){return o.streamingFormats={"rtmp/mp4":"MP4","rtmp/flv":"FLV"},o.streamFromParts=function(m,g){return m+"&"+g},o.streamToParts=function(m){var g={connection:"",stream:""};if(!m)return g;var h=m.search(/&(?!\w+=)/),a=void 0;return h!==-1?a=h+1:(h=a=m.lastIndexOf("/")+1,h===0&&(h=a=m.length)),g.connection=m.substring(0,h),g.stream=m.substring(a,m.length),g},o.isStreamingType=function(m){return m in o.streamingFormats},o.RTMP_RE=/^rtmp[set]?:\/\//i,o.isStreamingSrc=function(m){return o.RTMP_RE.test(m)},o.rtmpSourceHandler={},o.rtmpSourceHandler.canPlayType=function(m){return o.isStreamingType(m)?"maybe":""},o.rtmpSourceHandler.canHandleSource=function(m){var g=o.rtmpSourceHandler.canPlayType(m.type);return g||(o.isStreamingSrc(m.src)?"maybe":"")},o.rtmpSourceHandler.handleSource=function(m,g){var h=o.streamToParts(m.src);g.setRtmpConnection(h.connection),g.setRtmpStream(h.stream)},o.registerSourceHandler(o.rtmpSourceHandler),o}e.__esModule=!0,e.default=c,w.exports=e.default},{}],116:[function(t,w,e){"use strict";function c(N){if(N&&N.__esModule)return N;var A={};if(N!=null)for(var I in N)Object.prototype.hasOwnProperty.call(N,I)&&(A[I]=N[I]);return A.default=N,A}function o(N){return N&&N.__esModule?N:{default:N}}function m(N,A){if(!(N instanceof A))throw new TypeError("Cannot call a class as a function")}function g(N,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);N.prototype=Object.create(A&&A.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(N,A):N.__proto__=A)}function h(N){var A=N.charAt(0).toUpperCase()+N.slice(1);T["set"+A]=function(I){return this.el_.vjs_setProperty(N,I)}}function a(N){T[N]=function(){return this.el_.vjs_getProperty(N)}}e.__esModule=!0;for(var f=t("./tech"),u=o(f),r=t("../utils/dom.js"),n=c(r),y=t("../utils/url.js"),i=c(y),p=t("../utils/time-ranges.js"),l=t("./flash-rtmp"),_=o(l),d=t("../component"),v=o(d),s=t("global/window"),j=o(s),k=t("object.assign"),C=o(k),O=j.default.navigator,b=function(N){function A(I,R){m(this,A),N.call(this,I,R),I.source&&this.ready(function(){this.setSource(I.source)},!0),I.startTime&&this.ready(function(){this.load(),this.play(),this.currentTime(I.startTime)},!0),j.default.videojs=j.default.videojs||{},j.default.videojs.Flash=j.default.videojs.Flash||{},j.default.videojs.Flash.onReady=A.onReady,j.default.videojs.Flash.onEvent=A.onEvent,j.default.videojs.Flash.onError=A.onError,this.on("seeked",function(){this.lastSeekTarget_=void 0})}return g(A,N),A.prototype.createEl=function(){var I=this.options_;I.swf||(I.swf="//vjs.zencdn.net/swf/5.0.1/video-js.swf");var R=I.techId,E=C.default({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:I.autoplay,preload:I.preload,loop:I.loop,muted:I.muted},I.flashVars),x=C.default({wmode:"opaque",bgcolor:"#000000"},I.params),M=C.default({id:R,name:R,class:"vjs-tech"},I.attributes);return this.el_=A.embed(I.swf,E,x,M),this.el_.tech=this,this.el_},A.prototype.play=function(){this.ended()&&this.setCurrentTime(0),this.el_.vjs_play()},A.prototype.pause=function(){this.el_.vjs_pause()},A.prototype.src=function(I){return I===void 0?this.currentSrc():this.setSrc(I)},A.prototype.setSrc=function(I){if(I=i.getAbsoluteURL(I),this.el_.vjs_src(I),this.autoplay()){var R=this;this.setTimeout(function(){R.play()},0)}},A.prototype.seeking=function(){return this.lastSeekTarget_!==void 0},A.prototype.setCurrentTime=function(I){var R=this.seekable();R.length&&(I=I>R.start(0)?I:R.start(0),I=I=10},u.default.withSourceHandlers(b),b.nativeSourceHandler={},b.nativeSourceHandler.canPlayType=function(N){return N in b.formats?"maybe":""},b.nativeSourceHandler.canHandleSource=function(N){function A(R){var E=i.getFileExtension(R);return E?"video/"+E:""}var I;return I=N.type?N.type.replace(/;.*/,"").toLowerCase():A(N.src),b.nativeSourceHandler.canPlayType(I)},b.nativeSourceHandler.handleSource=function(N,A){A.setSrc(N.src)},b.nativeSourceHandler.dispose=function(){},b.registerSourceHandler(b.nativeSourceHandler),b.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},b.onReady=function(N){var A=n.getEl(N),I=A&&A.tech;I&&I.el()&&b.checkReady(I)},b.checkReady=function(N){N.el()&&(N.el().vjs_getProperty?N.triggerReady():this.setTimeout(function(){b.checkReady(N)},50))},b.onEvent=function(N,A){var I=n.getEl(N).tech;I.trigger(A)},b.onError=function(N,A){var I=n.getEl(N).tech;return A==="srcnotfound"?I.error(4):void I.error("FLASH: "+A)},b.version=function(){var N="0,0,0";try{N=new j.default.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(A){try{O.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(N=(O.plugins["Shockwave Flash 2.0"]||O.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(I){}}return N.split(",")},b.embed=function(N,A,I,R){var E=b.getEmbedCode(N,A,I,R),x=n.createEl("div",{innerHTML:E}).childNodes[0];return x},b.getEmbedCode=function(N,A,I,R){var E=''}),R=C.default({data:N,width:"100%",height:"100%"},R),Object.getOwnPropertyNames(R).forEach(function(U){$+=U+'="'+R[U]+'" '}),""+E+$+">"+M+""},_.default(b),v.default.registerComponent("Flash",b),u.default.registerTech("Flash",b),e.default=b,w.exports=e.default},{"../component":67,"../utils/dom.js":132,"../utils/time-ranges.js":140,"../utils/url.js":142,"./flash-rtmp":115,"./tech":119,"global/window":2,"object.assign":45}],117:[function(t,w,e){"use strict";function c(E){if(E&&E.__esModule)return E;var x={};if(E!=null)for(var M in E)Object.prototype.hasOwnProperty.call(E,M)&&(x[M]=E[M]);return x.default=E,x}function o(E){return E&&E.__esModule?E:{default:E}}function m(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}function g(E,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);E.prototype=Object.create(x&&x.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(E,x):E.__proto__=x)}e.__esModule=!0;var h=t("./tech.js"),a=o(h),f=t("../component"),u=o(f),r=t("../utils/dom.js"),n=c(r),y=t("../utils/url.js"),i=c(y),p=t("../utils/fn.js"),l=c(p),_=t("../utils/log.js"),d=o(_),v=t("../utils/browser.js"),s=c(v),j=t("global/document"),k=o(j),C=t("global/window"),O=o(C),b=t("object.assign"),T=o(b),P=t("../utils/merge-options.js"),D=o(P),F=function(E){function x(M,$){m(this,x),E.call(this,M,$);var U=M.source;if(U&&(this.el_.currentSrc!==U.src||M.tag&&M.tag.initNetworkState_===3)?this.setSource(U):this.handleLateInit_(this.el_),this.el_.hasChildNodes()){for(var X=this.el_.childNodes,Z=X.length,rt=[];Z--;){var ot=X[Z],at=ot.nodeName.toLowerCase();at==="track"&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(ot),this.remoteTextTracks().addTrack_(ot.track)):rt.push(ot))}for(var ct=0;ct=0;rt--){var ot=Z[rt],at={};typeof this.options_[ot]!="undefined"&&(at[ot]=this.options_[ot]),n.setElAttributes(M,at)}return M},x.prototype.handleLateInit_=function(M){var $=this;if(M.networkState!==0&&M.networkState!==3){if(M.readyState===0){var U=function(){var Z=!1,rt=function(){Z=!0};$.on("loadstart",rt);var ot=function(){Z||this.trigger("loadstart")};return $.on("loadedmetadata",ot),$.ready(function(){this.off("loadstart",rt),this.off("loadedmetadata",ot),Z||this.trigger("loadstart")}),{v:void 0}}();if(typeof U=="object")return U.v}var X=["loadstart"];X.push("loadedmetadata"),M.readyState>=2&&X.push("loadeddata"),M.readyState>=3&&X.push("canplay"),M.readyState>=4&&X.push("canplaythrough"),this.ready(function(){X.forEach(function(Z){this.trigger(Z)},this)})}},x.prototype.proxyNativeTextTracks_=function(){var M=this.el().textTracks;if(M){for(var $=0;$0&&(E=typeof F.TEST_VID.textTracks[0].mode!="number"),E&&s.IS_FIREFOX&&(E=!1),!E||"onremovetrack"in F.TEST_VID.textTracks||(E=!1),E},F.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],F.prototype.featuresVolumeControl=F.canControlVolume(),F.prototype.featuresPlaybackRate=F.canControlPlaybackRate(),F.prototype.movingMediaElementInDOM=!s.IS_IOS,F.prototype.featuresFullscreenResize=!0,F.prototype.featuresProgressEvents=!0,F.prototype.featuresNativeTextTracks=F.supportsNativeTextTracks();var A=void 0,I=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,R=/^video\/mp4/i;F.patchCanPlayType=function(){s.ANDROID_VERSION>=4&&(A||(A=F.TEST_VID.constructor.prototype.canPlayType),F.TEST_VID.constructor.prototype.canPlayType=function(E){return E&&I.test(E)?"maybe":A.call(this,E)}),s.IS_OLD_ANDROID&&(A||(A=F.TEST_VID.constructor.prototype.canPlayType),F.TEST_VID.constructor.prototype.canPlayType=function(E){return E&&R.test(E)?"maybe":A.call(this,E)})},F.unpatchCanPlayType=function(){var E=F.TEST_VID.constructor.prototype.canPlayType;return F.TEST_VID.constructor.prototype.canPlayType=A,A=null,E},F.patchCanPlayType(),F.disposeMediaElement=function(E){if(E){for(E.parentNode&&E.parentNode.removeChild(E);E.hasChildNodes();)E.removeChild(E.firstChild);E.removeAttribute("src"),typeof E.load=="function"&&function(){try{E.load()}catch(x){}}()}},F.resetMediaElement=function(E){if(E){for(var x=E.querySelectorAll("source"),M=x.length;M--;)E.removeChild(x[M]);E.removeAttribute("src"),typeof E.load=="function"&&function(){try{E.load()}catch($){}}()}},u.default.registerComponent("Html5",F),a.default.registerTech("Html5",F),e.default=F,w.exports=e.default},{"../component":67,"../utils/browser.js":129,"../utils/dom.js":132,"../utils/fn.js":134,"../utils/log.js":137,"../utils/merge-options.js":138,"../utils/url.js":142,"./tech.js":119,"global/document":1,"global/window":2,"object.assign":45}],118:[function(t,w,e){"use strict";function c(i){return i&&i.__esModule?i:{default:i}}function o(i,p){if(!(i instanceof p))throw new TypeError("Cannot call a class as a function")}function m(i,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);i.prototype=Object.create(p&&p.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(i,p):i.__proto__=p)}e.__esModule=!0;var g=t("../component.js"),h=c(g),a=t("./tech.js"),f=c(a),u=t("global/window"),r=(c(u),t("../utils/to-title-case.js")),n=c(r),y=function(i){function p(l,_,d){if(o(this,p),i.call(this,l,_,d),_.playerOptions.sources&&_.playerOptions.sources.length!==0)l.src(_.playerOptions.sources);else for(var v=0,s=_.playerOptions.techOrder;vp;p++)y.addTrackElement_(n[p]);return h.IS_IE8?y:void 0}return r.prototype.addTrackElement_=function(n){this.trackElements_.push(n)},r.prototype.getTrackElementByTrack_=function(n){for(var y=void 0,i=0,p=this.trackElements_.length;p>i;i++)if(n===this.trackElements_[i].track){y=this.trackElements_[i];break}return y},r.prototype.removeTrackElement_=function(n){for(var y=0,i=this.trackElements_.length;i>y;y++)if(n===this.trackElements_[y]){this.trackElements_.splice(y,1);break}},r}();e.default=u,w.exports=e.default},{"../utils/browser.js":129,"global/document":1}],121:[function(t,w,e){"use strict";function c(s){return s&&s.__esModule?s:{default:s}}function o(s){if(s&&s.__esModule)return s;var j={};if(s!=null)for(var k in s)Object.prototype.hasOwnProperty.call(s,k)&&(j[k]=s[k]);return j.default=s,j}function m(s,j){if(!(s instanceof j))throw new TypeError("Cannot call a class as a function")}function g(s,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);s.prototype=Object.create(j&&j.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(s,j):s.__proto__=j)}e.__esModule=!0;var h=t("../utils/browser.js"),a=o(h),f=t("global/document"),u=c(f),r=t("../event-target"),n=c(r),y=t("../tracks/text-track"),i=c(y),p=0,l=1,_=2,d=3,v=function(s){function j(){var k=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];m(this,j),s.call(this);var C=void 0,O=this;if(a.IS_IE8){O=u.default.createElement("custom");for(var b in j.prototype)b!=="constructor"&&(O[b]=j.prototype[b])}var T=new i.default(k);return O.kind=T.kind,O.src=T.src,O.srclang=T.language,O.label=T.label,O.default=T.default,Object.defineProperty(O,"readyState",{get:function(){return C}}),Object.defineProperty(O,"track",{get:function(){return T}}),C=p,T.addEventListener("loadeddata",function(){C=_,O.trigger({type:"load",target:O})}),a.IS_IE8?O:void 0}return g(j,s),j}(n.default);v.prototype.allowedEvents_={load:"load"},v.NONE=p,v.LOADING=l,v.LOADED=_,v.ERROR=d,e.default=v,w.exports=e.default},{"../event-target":99,"../tracks/text-track":128,"../utils/browser.js":129,"global/document":1}],122:[function(t,w,e){"use strict";function c(r){return r&&r.__esModule?r:{default:r}}function o(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var y in r)Object.prototype.hasOwnProperty.call(r,y)&&(n[y]=r[y]);return n.default=r,n}function m(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var g=t("../utils/browser.js"),h=o(g),a=t("global/document"),f=c(a),u=function(){function r(n){m(this,r);var y=this;if(h.IS_IE8){y=f.default.createElement("custom");for(var i in r.prototype)i!=="constructor"&&(y[i]=r.prototype[i])}return r.prototype.setCues_.call(y,n),Object.defineProperty(y,"length",{get:function(){return this.length_}}),h.IS_IE8?y:void 0}return r.prototype.setCues_=function(n){var y=this.length||0,i=0,p=n.length;this.cues_=n,this.length_=n.length;var l=function(_){""+_ in this||Object.defineProperty(this,""+_,{get:function(){return this.cues_[_]}})};if(p>y)for(i=y;p>i;i++)l.call(this,i)},r.prototype.getCueById=function(n){for(var y=null,i=0,p=this.length;p>i;i++){var l=this[i];if(l.id===n){y=l;break}}return y},r}();e.default=u,w.exports=e.default},{"../utils/browser.js":129,"global/document":1}],123:[function(t,w,e){"use strict";function c(C){if(C&&C.__esModule)return C;var O={};if(C!=null)for(var b in C)Object.prototype.hasOwnProperty.call(C,b)&&(O[b]=C[b]);return O.default=C,O}function o(C){return C&&C.__esModule?C:{default:C}}function m(C,O){if(!(C instanceof O))throw new TypeError("Cannot call a class as a function")}function g(C,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);C.prototype=Object.create(O&&O.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(C,O):C.__proto__=O)}function h(C,O){return"rgba("+parseInt(C[1]+C[1],16)+","+parseInt(C[2]+C[2],16)+","+parseInt(C[3]+C[3],16)+","+O+")"}function a(C,O,b){try{C.style[O]=b}catch(T){}}e.__esModule=!0;var f=t("../component"),u=o(f),r=t("../menu/menu.js"),n=(o(r),t("../menu/menu-item.js")),y=(o(n),t("../menu/menu-button.js")),i=(o(y),t("../utils/fn.js")),p=c(i),l=t("global/document"),_=(o(l),t("global/window")),d=o(_),v="#222",s="#ccc",j={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},k=function(C){function O(b,T,P){m(this,O),C.call(this,b,T,P),b.on("loadstart",p.bind(this,this.toggleDisplay)),b.on("texttrackchange",p.bind(this,this.updateDisplay)),b.ready(p.bind(this,function(){if(b.tech_&&b.tech_.featuresNativeTextTracks)return void this.hide();b.on("fullscreenchange",p.bind(this,this.updateDisplay));for(var D=this.options_.playerOptions.tracks||[],F=0;Fj;j++)if(this[j]===v){s=this[j],s.off&&s.off(),this.tracks_.splice(j,1);break}s&&this.trigger({track:s,type:"removetrack"})},d.prototype.getTrackById=function(v){for(var s=null,j=0,k=this.length;k>j;j++){var C=this[j];if(C.id===v){s=C;break}}return s},d}(a.default);p.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(var l in p.prototype.allowedEvents_)p.prototype["on"+l]=null;e.default=p,w.exports=e.default},{"../event-target":99,"../utils/browser.js":129,"../utils/fn.js":134,"global/document":1}],127:[function(t,w,e){"use strict";function c(C){if(C&&C.__esModule)return C;var O={};if(C!=null)for(var b in C)Object.prototype.hasOwnProperty.call(C,b)&&(O[b]=C[b]);return O.default=C,O}function o(C){return C&&C.__esModule?C:{default:C}}function m(C,O){if(!(C instanceof O))throw new TypeError("Cannot call a class as a function")}function g(C,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);C.prototype=Object.create(O&&O.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(C,O):C.__proto__=O)}function h(C){var O=void 0;return C.selectedOptions?O=C.selectedOptions[0]:C.options&&(O=C.options[C.options.selectedIndex]),O.value}function a(C,O){if(O){var b=void 0;for(b=0;b
`;return C}e.__esModule=!0;var u=t("../component"),r=o(u),n=t("../utils/events.js"),y=c(n),i=t("../utils/fn.js"),p=c(i),l=t("../utils/log.js"),_=o(l),d=t("safe-json-parse/tuple"),v=o(d),s=t("global/window"),j=o(s),k=function(C){function O(b,T){m(this,O),C.call(this,b,T),this.hide(),T.persistTextTrackSettings===void 0&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),y.on(this.$(".vjs-done-button"),"click",p.bind(this,function(){this.saveSettings(),this.hide()})),y.on(this.$(".vjs-default-button"),"click",p.bind(this,function(){this.$(".vjs-fg-color > select").selectedIndex=0,this.$(".vjs-bg-color > select").selectedIndex=0,this.$(".window-color > select").selectedIndex=0,this.$(".vjs-text-opacity > select").selectedIndex=0,this.$(".vjs-bg-opacity > select").selectedIndex=0,this.$(".vjs-window-opacity > select").selectedIndex=0,this.$(".vjs-edge-style select").selectedIndex=0,this.$(".vjs-font-family select").selectedIndex=0,this.$(".vjs-font-percent select").selectedIndex=2,this.updateDisplay()})),y.on(this.$(".vjs-fg-color > select"),"change",p.bind(this,this.updateDisplay)),y.on(this.$(".vjs-bg-color > select"),"change",p.bind(this,this.updateDisplay)),y.on(this.$(".window-color > select"),"change",p.bind(this,this.updateDisplay)),y.on(this.$(".vjs-text-opacity > select"),"change",p.bind(this,this.updateDisplay)),y.on(this.$(".vjs-bg-opacity > select"),"change",p.bind(this,this.updateDisplay)),y.on(this.$(".vjs-window-opacity > select"),"change",p.bind(this,this.updateDisplay)),y.on(this.$(".vjs-font-percent select"),"change",p.bind(this,this.updateDisplay)),y.on(this.$(".vjs-edge-style select"),"change",p.bind(this,this.updateDisplay)),y.on(this.$(".vjs-font-family select"),"change",p.bind(this,this.updateDisplay)),this.options_.persistTextTrackSettings&&this.restoreSettings()}return g(O,C),O.prototype.createEl=function(){return C.prototype.createEl.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:f()})},O.prototype.getValues=function(){var b=h(this.$(".vjs-edge-style select")),T=h(this.$(".vjs-font-family select")),P=h(this.$(".vjs-fg-color > select")),D=h(this.$(".vjs-text-opacity > select")),F=h(this.$(".vjs-bg-color > select")),N=h(this.$(".vjs-bg-opacity > select")),A=h(this.$(".window-color > select")),I=h(this.$(".vjs-window-opacity > select")),R=j.default.parseFloat(h(this.$(".vjs-font-percent > select"))),E={backgroundOpacity:N,textOpacity:D,windowOpacity:I,edgeStyle:b,fontFamily:T,color:P,backgroundColor:F,windowColor:A,fontPercent:R};for(var x in E)(E[x]===""||E[x]==="none"||x==="fontPercent"&&E[x]===1)&&delete E[x];return E},O.prototype.setValues=function(b){a(this.$(".vjs-edge-style select"),b.edgeStyle),a(this.$(".vjs-font-family select"),b.fontFamily),a(this.$(".vjs-fg-color > select"),b.color),a(this.$(".vjs-text-opacity > select"),b.textOpacity),a(this.$(".vjs-bg-color > select"),b.backgroundColor),a(this.$(".vjs-bg-opacity > select"),b.backgroundOpacity),a(this.$(".window-color > select"),b.windowColor),a(this.$(".vjs-window-opacity > select"),b.windowOpacity);var T=b.fontPercent;T&&(T=T.toFixed(2)),a(this.$(".vjs-font-percent > select"),T)},O.prototype.restoreSettings=function(){var b=void 0,T=void 0;try{var P=v.default(j.default.localStorage.getItem("vjs-text-track-settings"));b=P[0],T=P[1],b&&_.default.error(b)}catch(D){_.default.warn(D)}T&&this.setValues(T)},O.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var b=this.getValues();try{Object.getOwnPropertyNames(b).length>0?j.default.localStorage.setItem("vjs-text-track-settings",JSON.stringify(b)):j.default.localStorage.removeItem("vjs-text-track-settings")}catch(T){_.default.warn(T)}}},O.prototype.updateDisplay=function(){var b=this.player_.getChild("textTrackDisplay");b&&b.updateDisplay()},O}(r.default);r.default.registerComponent("TextTrackSettings",k),e.default=k,w.exports=e.default},{"../component":67,"../utils/events.js":133,"../utils/fn.js":134,"../utils/log.js":137,"global/window":2,"safe-json-parse/tuple":54}],128:[function(t,w,e){"use strict";function c(A){if(A&&A.__esModule)return A;var I={};if(A!=null)for(var R in A)Object.prototype.hasOwnProperty.call(A,R)&&(I[R]=A[R]);return I.default=A,I}function o(A){return A&&A.__esModule?A:{default:A}}function m(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}function g(A,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);A.prototype=Object.create(I&&I.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(A,I):A.__proto__=I)}e.__esModule=!0;var h=t("./text-track-cue-list"),a=o(h),f=t("../utils/fn.js"),u=c(f),r=t("../utils/guid.js"),n=c(r),y=t("../utils/browser.js"),i=c(y),p=t("./text-track-enums"),l=c(p),_=t("../utils/log.js"),d=o(_),v=t("../event-target"),s=o(v),j=t("global/document"),k=o(j),C=t("global/window"),O=o(C),b=t("../utils/url.js"),T=t("xhr"),P=o(T),D=function(A,I){var R=new O.default.WebVTT.Parser(O.default,O.default.vttjs,O.default.WebVTT.StringDecoder());R.oncue=function(E){I.addCue(E)},R.onparsingerror=function(E){d.default.error(E)},R.onflush=function(){I.trigger({type:"loadeddata",target:I})},R.parse(A),R.flush()},F=function(A,I){var R={uri:A},E=b.isCrossOrigin(A);E&&(R.cors=E),P.default(R,u.bind(this,function(x,M,$){return x?d.default.error(x,M):(I.loaded_=!0,void(typeof O.default.WebVTT!="function"?I.tech_&&!function(){var U=function(){return D($,I)};I.tech_.on("vttjsloaded",U),I.tech_.on("vttjserror",function(){d.default.error("vttjs failed to load, stopping trying to process "+I.src),I.tech_.off("vttjsloaded",U)})}():D($,I)))}))},N=function(A){function I(){var R=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];if(m(this,I),A.call(this),!R.tech)throw new Error("A tech was not provided.");var E=this;if(i.IS_IE8){E=k.default.createElement("custom");for(var x in I.prototype)x!=="constructor"&&(E[x]=I.prototype[x])}E.tech_=R.tech;var M=l.TextTrackMode[R.mode]||"disabled",$=l.TextTrackKind[R.kind]||"subtitles",U=R.label||"",X=R.language||R.srclang||"",Z=R.id||"vjs_text_track_"+n.newGUID();($==="metadata"||$==="chapters")&&(M="hidden"),E.cues_=[],E.activeCues_=[];var rt=new a.default(E.cues_),ot=new a.default(E.activeCues_),at=!1,ct=u.bind(E,function(){this.activeCues,at&&(this.trigger("cuechange"),at=!1)});return M!=="disabled"&&E.tech_.on("timeupdate",ct),Object.defineProperty(E,"kind",{get:function(){return $},set:function(){}}),Object.defineProperty(E,"label",{get:function(){return U},set:function(){}}),Object.defineProperty(E,"language",{get:function(){return X},set:function(){}}),Object.defineProperty(E,"id",{get:function(){return Z},set:function(){}}),Object.defineProperty(E,"mode",{get:function(){return M},set:function(st){l.TextTrackMode[st]&&(M=st,M==="showing"&&this.tech_.on("timeupdate",ct),this.trigger("modechange"))}}),Object.defineProperty(E,"cues",{get:function(){return this.loaded_?rt:null},set:function(){}}),Object.defineProperty(E,"activeCues",{get:function(){if(!this.loaded_)return null;if(this.cues.length===0)return ot;for(var st=this.tech_.currentTime(),dt=[],ft=0,B=this.cues.length;B>ft;ft++){var V=this.cues[ft];(V.startTime<=st&&V.endTime>=st||V.startTime===V.endTime&&V.startTime<=st&&V.startTime+.5>=st)&&dt.push(V)}if(at=!1,dt.length!==this.activeCues_.length)at=!0;else for(var ft=0;ftx;x++){var $=this.cues_[x];$===R&&(this.cues_.splice(x,1),E=!0)}E&&this.cues.setCues_(this.cues_)},I}(s.default);N.prototype.allowedEvents_={cuechange:"cuechange"},e.default=N,w.exports=e.default},{"../event-target":99,"../utils/browser.js":129,"../utils/fn.js":134,"../utils/guid.js":136,"../utils/log.js":137,"../utils/url.js":142,"./text-track-cue-list":122,"./text-track-enums":124,"global/document":1,"global/window":2,xhr:56}],129:[function(t,w,e){"use strict";function c(b){return b&&b.__esModule?b:{default:b}}e.__esModule=!0;var o=t("global/document"),m=c(o),g=t("global/window"),h=c(g),a=h.default.navigator.userAgent,f=/AppleWebKit\/([\d.]+)/i.exec(a),u=f?parseFloat(f.pop()):null,r=/iPad/i.test(a);e.IS_IPAD=r;var n=/iPhone/i.test(a)&&!r;e.IS_IPHONE=n;var y=/iPod/i.test(a);e.IS_IPOD=y;var i=n||r||y;e.IS_IOS=i;var p=function(){var b=a.match(/OS (\d+)_/i);return b&&b[1]?b[1]:void 0}();e.IOS_VERSION=p;var l=/Android/i.test(a);e.IS_ANDROID=l;var _=function(){var b,T,P=a.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);return P?(b=P[1]&&parseFloat(P[1]),T=P[2]&&parseFloat(P[2]),b&&T?parseFloat(P[1]+"."+P[2]):b||null):null}();e.ANDROID_VERSION=_;var d=l&&/webkit/i.test(a)&&2.3>_;e.IS_OLD_ANDROID=d;var v=l&&5>_&&537>u;e.IS_NATIVE_ANDROID=v;var s=/Firefox/i.test(a);e.IS_FIREFOX=s;var j=/Chrome/i.test(a);e.IS_CHROME=j;var k=/MSIE\s8\.0/.test(a);e.IS_IE8=k;var C=!!("ontouchstart"in h.default||h.default.DocumentTouch&&m.default instanceof h.default.DocumentTouch);e.TOUCH_ENABLED=C;var O="backgroundSize"in m.default.createElement("video").style;e.BACKGROUND_SIZE_SUPPORTED=O},{"global/document":1,"global/window":2}],130:[function(t,w,e){"use strict";function c(m,g){var h,a,f=0;if(!g)return 0;m&&m.length||(m=o.createTimeRange(0,0));for(var u=0;ug&&(a=g),f+=a-h;return f/g}e.__esModule=!0,e.bufferedPercent=c;var o=t("./time-ranges.js")},{"./time-ranges.js":140}],131:[function(t,w,e){"use strict";function c(h){return h&&h.__esModule?h:{default:h}}e.__esModule=!0;var o=t("./log.js"),m=c(o),g={get:function(h,a){return h[a]},set:function(h,a,f){return h[a]=f,!0}};e.default=function(h){var a=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];if(typeof Proxy=="function"){var f=function(){var u={};return Object.keys(a).forEach(function(r){g.hasOwnProperty(r)&&(u[r]=function(){return m.default.warn(a[r]),g[r].apply(this,arguments)})}),{v:new Proxy(h,u)}}();if(typeof f=="object")return f.v}return h},w.exports=e.default},{"./log.js":137}],132:[function(t,w,e){"use strict";function c(B){if(B&&B.__esModule)return B;var V={};if(B!=null)for(var G in B)Object.prototype.hasOwnProperty.call(B,G)&&(V[G]=B[G]);return V.default=B,V}function o(B){return B&&B.__esModule?B:{default:B}}function m(B,V){return B.raw=V,B}function g(B){return typeof B=="string"&&/\S/.test(B)}function h(B){if(/\s/.test(B))throw new Error("class has illegal whitespace characters")}function a(B){return new RegExp("(^|\\s)"+B+"($|\\s)")}function f(B){return function(V,G){return g(V)?(g(G)&&(G=x.default.querySelector(G)),(P(G)?G:x.default)[B](V)):x.default[B](null)}}function u(B){return B.indexOf("#")===0&&(B=B.slice(1)),x.default.getElementById(B)}function r(){var B=arguments.length<=0||arguments[0]===void 0?"div":arguments[0],V=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],G=arguments.length<=2||arguments[2]===void 0?{}:arguments[2],q=x.default.createElement(B);return Object.getOwnPropertyNames(V).forEach(function(tt){var lt=V[tt];tt.indexOf("aria-")!==-1||tt==="role"||tt==="type"?(rt.default.warn(at.default(R,tt,lt)),q.setAttribute(tt,lt)):q[tt]=lt}),Object.getOwnPropertyNames(G).forEach(function(tt){G[tt],q.setAttribute(tt,G[tt])}),q}function n(B,V){typeof B.textContent=="undefined"?B.innerText=V:B.textContent=V}function y(B,V){V.firstChild?V.insertBefore(B,V.firstChild):V.appendChild(B)}function i(B){var V=B[st];return V||(V=B[st]=X.newGUID()),ct[V]||(ct[V]={}),ct[V]}function p(B){var V=B[st];return V?!!Object.getOwnPropertyNames(ct[V]).length:!1}function l(B){var V=B[st];if(V){delete ct[V];try{delete B[st]}catch(G){B.removeAttribute?B.removeAttribute(st):B[st]=null}}}function _(B,V){return B.classList?B.classList.contains(V):(h(V),a(V).test(B.className))}function d(B,V){return B.classList?B.classList.add(V):_(B,V)||(B.className=(B.className+" "+V).trim()),B}function v(B,V){return B.classList?B.classList.remove(V):(h(V),B.className=B.className.split(/\s+/).filter(function(G){return G!==V}).join(" ")),B}function s(B,V,G){var q=_(B,V);return typeof G=="function"&&(G=G(B,V)),typeof G!="boolean"&&(G=!q),G!==q?(G?d(B,V):v(B,V),B):void 0}function j(B,V){Object.getOwnPropertyNames(V).forEach(function(G){var q=V[G];q===null||typeof q=="undefined"||q===!1?B.removeAttribute(G):B.setAttribute(G,q===!0?"":q)})}function k(B){var V,G,q,tt,lt;if(V={},G=",autoplay,controls,loop,muted,default,",B&&B.attributes&&B.attributes.length>0){q=B.attributes;for(var z=q.length-1;z>=0;z--)tt=q[z].name,lt=q[z].value,(typeof B[tt]=="boolean"||G.indexOf(","+tt+",")!==-1)&&(lt=lt!==null),V[tt]=lt}return V}function C(){x.default.body.focus(),x.default.onselectstart=function(){return!1}}function O(){x.default.onselectstart=function(){return!0}}function b(B){var V=void 0;if(B.getBoundingClientRect&&B.parentNode&&(V=B.getBoundingClientRect()),!V)return{left:0,top:0};var G=x.default.documentElement,q=x.default.body,tt=G.clientLeft||q.clientLeft||0,lt=$.default.pageXOffset||q.scrollLeft,z=V.left+lt-tt,et=G.clientTop||q.clientTop||0,Q=$.default.pageYOffset||q.scrollTop,ht=V.top+Q-et;return{left:Math.round(z),top:Math.round(ht)}}function T(B,V){var G={},q=b(B),tt=B.offsetWidth,lt=B.offsetHeight,z=q.top,et=q.left,Q=V.pageY,ht=V.pageX;return V.changedTouches&&(ht=V.changedTouches[0].pageX,Q=V.changedTouches[0].pageY),G.y=Math.max(0,Math.min(1,(z-Q+lt)/lt)),G.x=Math.max(0,Math.min(1,(ht-et)/tt)),G}function P(B){return!!B&&typeof B=="object"&&B.nodeType===1}function D(B){return!!B&&typeof B=="object"&&B.nodeType===3}function F(B){for(;B.firstChild;)B.removeChild(B.firstChild);return B}function N(B){return typeof B=="function"&&(B=B()),(Array.isArray(B)?B:[B]).map(function(V){return typeof V=="function"&&(V=V()),P(V)||D(V)?V:typeof V=="string"&&/\S/.test(V)?x.default.createTextNode(V):void 0}).filter(function(V){return V})}function A(B,V){return N(V).forEach(function(G){return B.appendChild(G)}),B}function I(B,V){return A(F(B),V)}e.__esModule=!0,e.getEl=u,e.createEl=r,e.textContent=n,e.insertElFirst=y,e.getElData=i,e.hasElData=p,e.removeElData=l,e.hasElClass=_,e.addElClass=d,e.removeElClass=v,e.toggleElClass=s,e.setElAttributes=j,e.getElAttributes=k,e.blockTextSelection=C,e.unblockTextSelection=O,e.findElPosition=b,e.getPointerPosition=T,e.isEl=P,e.isTextNode=D,e.emptyEl=F,e.normalizeContent=N,e.appendContent=A,e.insertContent=I;var R=m([`Setting attributes in the second argument of createEl() has been deprecated. Use the third argument instead. createEl(type, properties, attributes). Attempting to set `," to ","."],[`Setting attributes in the second argument of createEl() has been deprecated. Use the third argument instead. createEl(type, properties, attributes). Attempting to set `," to ","."]),E=t("global/document"),x=o(E),M=t("global/window"),$=o(M),U=t("./guid.js"),X=c(U),Z=t("./log.js"),rt=o(Z),ot=t("tsml"),at=o(ot),ct={},st="vdata"+new Date().getTime(),dt=f("querySelector");e.$=dt;var ft=f("querySelectorAll");e.$$=ft},{"./guid.js":136,"./log.js":137,"global/document":1,"global/window":2,tsml:55}],133:[function(t,w,e){"use strict";function c(s){return s&&s.__esModule?s:{default:s}}function o(s){if(s&&s.__esModule)return s;var j={};if(s!=null)for(var k in s)Object.prototype.hasOwnProperty.call(s,k)&&(j[k]=s[k]);return j.default=s,j}function m(s,j,k){if(Array.isArray(j))return r(m,s,j,k);var C=y.getElData(s);C.handlers||(C.handlers={}),C.handlers[j]||(C.handlers[j]=[]),k.guid||(k.guid=p.newGUID()),C.handlers[j].push(k),C.dispatcher||(C.disabled=!1,C.dispatcher=function(O,b){if(!C.disabled){O=f(O);var T=C.handlers[O.type];if(T)for(var P=T.slice(0),D=0,F=P.length;F>D&&!O.isImmediatePropagationStopped();D++)P[D].call(s,O,b)}}),C.handlers[j].length===1&&(s.addEventListener?s.addEventListener(j,C.dispatcher,!1):s.attachEvent&&s.attachEvent("on"+j,C.dispatcher))}function g(s,j,k){if(y.hasElData(s)){var C=y.getElData(s);if(C.handlers){if(Array.isArray(j))return r(g,s,j,k);var O=function(D){C.handlers[D]=[],u(s,D)};if(j){var b=C.handlers[j];if(b){if(!k)return void O(j);if(k.guid)for(var T=0;To?0:o;var g=Math.floor(o%60),h=Math.floor(o/60%60),a=Math.floor(o/3600),f=Math.floor(m/60%60),u=Math.floor(m/3600);return(isNaN(o)||o===1/0)&&(a=h=g="-"),a=a>0||u>0?a+":":"",h=((a||f>=10)&&10>h?"0"+h:h)+":",g=10>g?"0"+g:g,a+h+g}()}e.__esModule=!0,e.default=c,w.exports=e.default},{}],136:[function(t,w,e){"use strict";function c(){return o++}e.__esModule=!0,e.newGUID=c;var o=1},{}],137:[function(t,w,e){"use strict";function c(a){return a&&a.__esModule?a:{default:a}}function o(a,f){var u=Array.prototype.slice.call(f),r=function(){},n=g.default.console||{log:r,warn:r,error:r};a?u.unshift(a.toUpperCase()+":"):a="log",h.history.push(u),u.unshift("VIDEOJS:"),n[a].apply?n[a].apply(n,u):n[a](u.join(" "))}e.__esModule=!0;var m=t("global/window"),g=c(m),h=function(){o(null,arguments)};h.history=[],h.error=function(){o("error",arguments)},h.warn=function(){o("warn",arguments)},e.default=h,w.exports=e.default},{"global/window":2}],138:[function(t,w,e){"use strict";function c(f){return f&&f.__esModule?f:{default:f}}function o(f){return!!f&&typeof f=="object"&&f.toString()==="[object Object]"&&f.constructor===Object}function m(){var f=Array.prototype.slice.call(arguments);return f.unshift({}),f.push(a),h.default.apply(null,f),f[0]}e.__esModule=!0,e.default=m;var g=t("lodash-compat/object/merge"),h=c(g),a=function(f,u){return o(u)?o(f)?void 0:m(u):u};w.exports=e.default},{"lodash-compat/object/merge":40}],139:[function(t,w,e){"use strict";function c(a){return a&&a.__esModule?a:{default:a}}e.__esModule=!0;var o=t("global/document"),m=c(o),g=function(a){var f=m.default.createElement("style");return f.className=a,f};e.createStyleElement=g;var h=function(a,f){a.styleSheet?a.styleSheet.cssText=f:a.textContent=f};e.setTextContent=h},{"global/document":1}],140:[function(t,w,e){"use strict";function c(u){return u&&u.__esModule?u:{default:u}}function o(u,r){return Array.isArray(u)?m(u):u===void 0||r===void 0?m():m([[u,r]])}function m(u){return u===void 0||u.length===0?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:u.length,start:g.bind(null,"start",0,u),end:g.bind(null,"end",1,u)}}function g(u,r,n,y){return y===void 0&&(f.default.warn("DEPRECATED: Function '"+u+"' on 'TimeRanges' called without an index argument."),y=0),h(u,y,n.length-1),n[y][r]}function h(u,r,n){if(0>r||r>n)throw new Error("Failed to execute '"+u+"' on 'TimeRanges': The index provided ("+r+") is greater than or equal to the maximum bound ("+n+").")}e.__esModule=!0,e.createTimeRanges=o;var a=t("./log.js"),f=c(a);e.createTimeRange=o},{"./log.js":137}],141:[function(t,w,e){"use strict";function c(o){return o.charAt(0).toUpperCase()+o.slice(1)}e.__esModule=!0,e.default=c,w.exports=e.default},{}],142:[function(t,w,e){"use strict";function c(n){return n&&n.__esModule?n:{default:n}}e.__esModule=!0;var o=t("global/document"),m=c(o),g=t("global/window"),h=c(g),a=function(n){var y=["protocol","hostname","port","pathname","search","hash","host"],i=m.default.createElement("a");i.href=n;var p=i.host===""&&i.protocol!=="file:",l=void 0;p&&(l=m.default.createElement("div"),l.innerHTML='',i=l.firstChild,l.setAttribute("style","display:none; position:absolute;"),m.default.body.appendChild(l));for(var _={},d=0;dx',n=y.firstChild.href}return n};e.getAbsoluteURL=f;var u=function(n){if(typeof n=="string"){var y=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,i=y.exec(n);if(i)return i.pop().toLowerCase()}return""};e.getFileExtension=u;var r=function(n){var y=h.default.location,i=a(n),p=i.protocol===":"?y.protocol:i.protocol,l=p+i.host!==y.protocol+y.host;return l};e.isCrossOrigin=r},{"global/document":1,"global/window":2}],143:[function(t,w,e){"use strict";function c(z){if(z&&z.__esModule)return z;var et={};if(z!=null)for(var Q in z)Object.prototype.hasOwnProperty.call(z,Q)&&(et[Q]=z[Q]);return et.default=z,et}function o(z){return z&&z.__esModule?z:{default:z}}e.__esModule=!0;{var m=t("global/document"),g=o(m),h=t("./setup"),a=c(h),f=t("./utils/stylesheet.js"),u=c(f),r=t("./component"),n=o(r),y=t("./event-target"),i=o(y),p=t("./utils/events.js"),l=c(p),_=t("./player"),d=o(_),v=t("./plugins.js"),s=o(v),j=t("../../src/js/utils/merge-options.js"),k=o(j),C=t("./utils/fn.js"),O=c(C),b=t("./tracks/text-track.js"),T=o(b),P=t("object.assign"),D=(o(P),t("./utils/time-ranges.js")),F=t("./utils/format-time.js"),N=o(F),A=t("./utils/log.js"),I=o(A),R=t("./utils/dom.js"),E=c(R),x=t("./utils/browser.js"),M=c(x),$=t("./utils/url.js"),U=c($),X=t("./extend.js"),Z=o(X),rt=t("lodash-compat/object/merge"),ot=o(rt),at=t("./utils/create-deprecation-proxy.js"),ct=o(at),st=t("xhr"),dt=o(st),ft=t("./tech/tech.js"),B=o(ft),V=t("./tech/html5.js"),G=(o(V),t("./tech/flash.js"));o(G)}typeof HTMLVideoElement=="undefined"&&(g.default.createElement("video"),g.default.createElement("audio"),g.default.createElement("track"));var q=function z(et,Q,ht){var Y=void 0;if(typeof et=="string"){if(et.indexOf("#")===0&&(et=et.slice(1)),z.getPlayers()[et])return Q&&I.default.warn('Player "'+et+'" is already initialised. Options will not be applied.'),ht&&z.getPlayers()[et].ready(ht),z.getPlayers()[et];Y=E.getEl(et)}else Y=et;if(!Y||!Y.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return Y.player||d.default.players[Y.playerId]||new d.default(Y,Q,ht)},tt=E.$(".vjs-styles-defaults");if(!tt){tt=u.createStyleElement("vjs-styles-defaults");var lt=E.$("head");lt.insertBefore(tt,lt.firstChild),u.setTextContent(tt,` .video-js { width: 300px; height: 150px; } .vjs-fluid { padding-top: 56.25% } `)}a.autoSetupTimeout(1,q),q.VERSION="5.8.7",q.options=d.default.prototype.options_,q.getPlayers=function(){return d.default.players},q.players=ct.default(d.default.players,{get:"Access to videojs.players is deprecated; use videojs.getPlayers instead",set:"Modification of videojs.players is deprecated"}),q.getComponent=n.default.getComponent,q.registerComponent=function(z,et){B.default.isTech(et)&&I.default.warn("The "+z+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),n.default.registerComponent.call(n.default,z,et)},q.getTech=B.default.getTech,q.registerTech=B.default.registerTech,q.browser=M,q.TOUCH_ENABLED=M.TOUCH_ENABLED,q.extend=Z.default,q.mergeOptions=k.default,q.bind=O.bind,q.plugin=s.default,q.addLanguage=function(z,et){var Q;return z=(""+z).toLowerCase(),ot.default(q.options.languages,(Q={},Q[z]=et,Q))[z]},q.log=I.default,q.createTimeRange=q.createTimeRanges=D.createTimeRanges,q.formatTime=N.default,q.parseUrl=U.parseUrl,q.isCrossOrigin=U.isCrossOrigin,q.EventTarget=i.default,q.on=l.on,q.one=l.one,q.off=l.off,q.trigger=l.trigger,q.xhr=dt.default,q.TextTrack=T.default,q.isEl=E.isEl,q.isTextNode=E.isTextNode,q.createEl=E.createEl,q.hasClass=E.hasElClass,q.addClass=E.addElClass,q.removeClass=E.removeElClass,q.toggleClass=E.toggleElClass,q.setAttributes=E.setElAttributes,q.getAttributes=E.getElAttributes,q.emptyEl=E.emptyEl,q.appendContent=E.appendContent,q.insertContent=E.insertContent,typeof yt=="function"&&yt.amd?yt("videojs",[],function(){return q}):typeof e=="object"&&typeof w=="object"&&(w.exports=q),e.default=q,w.exports=e.default},{"../../src/js/utils/merge-options.js":138,"./component":67,"./event-target":99,"./extend.js":100,"./player":108,"./plugins.js":109,"./setup":113,"./tech/flash.js":116,"./tech/html5.js":117,"./tech/tech.js":119,"./tracks/text-track.js":128,"./utils/browser.js":129,"./utils/create-deprecation-proxy.js":131,"./utils/dom.js":132,"./utils/events.js":133,"./utils/fn.js":134,"./utils/format-time.js":135,"./utils/log.js":137,"./utils/stylesheet.js":139,"./utils/time-ranges.js":140,"./utils/url.js":142,"global/document":1,"lodash-compat/object/merge":40,"object.assign":45,xhr:56}]},{},[143])(143)});