(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else{if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else{if(typeof global!=="undefined"){g=global}else{if(typeof self!=="undefined"){g=self}else{g=this}}}g.videojs=f()}}})(function(){var define,module,exports;return(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a){return a(o,!0)}if(i){return i(o,!0)}var f=new error("cannot find module '"+o+"'");throw f.code="module_not_found",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o0&&arguments[0]!==undefined?arguments[0]:"button";var props=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var attributes=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};props=(0,_obj.assign)({classname:this.buildcssclass()},props); if(tag!=="button"){_log2["default"].warn("creating a button with an html element of "+tag+" is deprecated; use clickablecomponent instead.");props=(0,_obj.assign)({tabindex:0},props);attributes=(0,_obj.assign)({role:"button"},attributes)}attributes=(0,_obj.assign)({"type":"button","aria-live":"polite"},attributes);var el=_component2["default"].prototype.createel.call(this,tag,props,attributes);this.createcontroltextel(el);return el};button.prototype.addchild=function addchild(child){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var classname=this.constructor.name;_log2["default"].warn("adding an actionable (user controllable) child to a button ("+classname+") is not supported; use a clickablecomponent instead.");return _component2["default"].prototype.addchild.call(this,child,options)};button.prototype.enable=function enable(){_clickablecomponent.prototype.enable.call(this);this.el_.removeattribute("disabled")};button.prototype.disable=function disable(){_clickablecomponent.prototype.disable.call(this);this.el_.setattribute("disabled","disabled")};button.prototype.handlekeypress=function handlekeypress(event){if(event.which===32||event.which===13){return}_clickablecomponent.prototype.handlekeypress.call(this,event)};return button}(_clickablecomponent2["default"]);_component2["default"].registercomponent("button",button);exports["default"]=button},{"3":3,"5":5,"86":86,"88":88}],3:[function(_dereq_,module,exports){exports.__esmodule=true;var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _dom=_dereq_(81);var dom=_interoprequirewildcard(_dom);var _events=_dereq_(82);var events=_interoprequirewildcard(_events);var _fn=_dereq_(83);var fn=_interoprequirewildcard(_fn);var _log=_dereq_(86);var _log2=_interoprequiredefault(_log);var _document=_dereq_(94);var _document2=_interoprequiredefault(_document);var _obj=_dereq_(88);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var clickablecomponent=function(_component){_inherits(clickablecomponent,_component);function clickablecomponent(player,options){_classcallcheck(this,clickablecomponent);var _this=_possibleconstructorreturn(this,_component.call(this,player,options));_this.emittapevents();_this.enable();return _this}clickablecomponent.prototype.createel=function createel(){var tag=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"div";var props=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var attributes=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};props=(0,_obj.assign)({classname:this.buildcssclass(),tabindex:0},props);if(tag==="button"){_log2["default"].error("creating a clickablecomponent with an html element of "+tag+" is not supported; use a button instead.")}attributes=(0,_obj.assign)({"role":"button","aria-live":"polite"},attributes);this.tabindex_=props.tabindex;var el=_component.prototype.createel.call(this,tag,props,attributes);this.createcontroltextel(el);return el};clickablecomponent.prototype.createcontroltextel=function createcontroltextel(el){this.controltextel_=dom.createel("span",{classname:"vjs-control-text"});if(el){el.appendchild(this.controltextel_)}this.controltext(this.controltext_,el);return this.controltextel_};clickablecomponent.prototype.controltext=function controltext(text){var el=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.el();if(!text){return this.controltext_||"need text"}var localizedtext=this.localize(text);this.controltext_=text;this.controltextel_.innerhtml=localizedtext;if(!this.noniconcontrol){el.setattribute("title",localizedtext)}return this};clickablecomponent.prototype.buildcssclass=function buildcssclass(){return"vjs-control vjs-button "+_component.prototype.buildcssclass.call(this)};clickablecomponent.prototype.enable=function enable(){this.removeclass("vjs-disabled");this.el_.setattribute("aria-disabled","false");if(typeof this.tabindex_!=="undefined"){this.el_.setattribute("tabindex",this.tabindex_) }this.off(["tap","click"],this.handleclick);this.off("focus",this.handlefocus);this.off("blur",this.handleblur);this.on(["tap","click"],this.handleclick);this.on("focus",this.handlefocus);this.on("blur",this.handleblur);return this};clickablecomponent.prototype.disable=function disable(){this.addclass("vjs-disabled");this.el_.setattribute("aria-disabled","true");if(typeof this.tabindex_!=="undefined"){this.el_.removeattribute("tabindex")}this.off(["tap","click"],this.handleclick);this.off("focus",this.handlefocus);this.off("blur",this.handleblur);return this};clickablecomponent.prototype.handleclick=function handleclick(event){};clickablecomponent.prototype.handlefocus=function handlefocus(event){events.on(_document2["default"],"keydown",fn.bind(this,this.handlekeypress))};clickablecomponent.prototype.handlekeypress=function handlekeypress(event){if(event.which===32||event.which===13){event.preventdefault();this.handleclick(event)}else{if(_component.prototype.handlekeypress){_component.prototype.handlekeypress.call(this,event)}}};clickablecomponent.prototype.handleblur=function handleblur(event){events.off(_document2["default"],"keydown",fn.bind(this,this.handlekeypress))};return clickablecomponent}(_component2["default"]);_component2["default"].registercomponent("clickablecomponent",clickablecomponent);exports["default"]=clickablecomponent},{"5":5,"81":81,"82":82,"83":83,"86":86,"88":88,"94":94}],4:[function(_dereq_,module,exports){exports.__esmodule=true;var _button=_dereq_(2);var _button2=_interoprequiredefault(_button);var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var closebutton=function(_button){_inherits(closebutton,_button);function closebutton(player,options){_classcallcheck(this,closebutton);var _this=_possibleconstructorreturn(this,_button.call(this,player,options));_this.controltext(options&&options.controltext||_this.localize("close"));return _this}closebutton.prototype.buildcssclass=function buildcssclass(){return"vjs-close-button "+_button.prototype.buildcssclass.call(this)};closebutton.prototype.handleclick=function handleclick(event){this.trigger({type:"close",bubbles:false})};return closebutton}(_button2["default"]);_component2["default"].registercomponent("closebutton",closebutton);exports["default"]=closebutton},{"2":2,"5":5}],5:[function(_dereq_,module,exports){exports.__esmodule=true;var _window=_dereq_(95);var _window2=_interoprequiredefault(_window);var _dom=_dereq_(81);var dom=_interoprequirewildcard(_dom);var _fn=_dereq_(83);var fn=_interoprequirewildcard(_fn);var _guid=_dereq_(85);var guid=_interoprequirewildcard(_guid);var _events=_dereq_(82);var events=_interoprequirewildcard(_events);var _log=_dereq_(86);var _log2=_interoprequiredefault(_log);var _totitlecase=_dereq_(91);var _totitlecase2=_interoprequiredefault(_totitlecase);var _mergeoptions=_dereq_(87);var _mergeoptions2=_interoprequiredefault(_mergeoptions);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}var component=function(){function component(player,options,ready){_classcallcheck(this,component);if(!player&&this.play){this.player_=player=this}else{this.player_=player}this.options_=(0,_mergeoptions2["default"])({},this.options_);options=this.options_=(0,_mergeoptions2["default"])(this.options_,options);this.id_=options.id||options.el&&options.el.id;if(!this.id_){var id=player&&player.id&&player.id()||"no_player";this.id_=id+"_component_"+guid.newguid()}this.name_=options.name||null;if(options.el){this.el_=options.el}else{if(options.createel!==false){this.el_=this.createel()}}this.children_=[];this.childindex_={};this.childnameindex_={};if(options.initchildren!==false){this.initchildren()}this.ready(ready); if(options.reporttouchactivity!==false){this.enabletouchactivity()}}component.prototype.dispose=function dispose(){this.trigger({type:"dispose",bubbles:false});if(this.children_){for(var i=this.children_.length-1;i>=0;i--){if(this.children_[i].dispose){this.children_[i].dispose()}}}this.children_=null;this.childindex_=null;this.childnameindex_=null;this.off();if(this.el_.parentnode){this.el_.parentnode.removechild(this.el_)}dom.removeeldata(this.el_);this.el_=null};component.prototype.player=function player(){return this.player_};component.prototype.options=function options(obj){_log2["default"].warn("this.options() has been deprecated and will be moved to the constructor in 6.0");if(!obj){return this.options_}this.options_=(0,_mergeoptions2["default"])(this.options_,obj);return this.options_};component.prototype.el=function el(){return this.el_};component.prototype.createel=function createel(tagname,properties,attributes){return dom.createel(tagname,properties,attributes)};component.prototype.localize=function localize(string){var code=this.player_.language&&this.player_.language();var languages=this.player_.languages&&this.player_.languages();if(!code||!languages){return string}var language=languages[code];if(language&&language[string]){return language[string]}var primarycode=code.split("-")[0];var primarylang=languages[primarycode];if(primarylang&&primarylang[string]){return primarylang[string]}return string};component.prototype.contentel=function contentel(){return this.contentel_||this.el_};component.prototype.id=function id(){return this.id_};component.prototype.name=function name(){return this.name_};component.prototype.children=function children(){return this.children_};component.prototype.getchildbyid=function getchildbyid(id){return this.childindex_[id]};component.prototype.getchild=function getchild(name){if(!name){return}name=(0,_totitlecase2["default"])(name);return this.childnameindex_[name]};component.prototype.addchild=function addchild(child){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var index=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this.children_.length;var component=void 0;var componentname=void 0;if(typeof child==="string"){componentname=(0,_totitlecase2["default"])(child);if(!options){options={}}if(options===true){_log2["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`.");options={}}var componentclassname=options.componentclass||componentname;options.name=componentname;var componentclass=component.getcomponent(componentclassname);if(!componentclass){throw new error("component "+componentclassname+" does not exist")}if(typeof componentclass!=="function"){return null}component=new componentclass(this.player_||this,options)}else{component=child}this.children_.splice(index,0,component);if(typeof component.id==="function"){this.childindex_[component.id()]=component}componentname=componentname||component.name&&(0,_totitlecase2["default"])(component.name());if(componentname){this.childnameindex_[componentname]=component}if(typeof component.el==="function"&&component.el()){var childnodes=this.contentel().children;var refnode=childnodes[index]||null;this.contentel().insertbefore(component.el(),refnode)}return component};component.prototype.removechild=function removechild(component){if(typeof component==="string"){component=this.getchild(component)}if(!component||!this.children_){return}var childfound=false;for(var i=this.children_.length-1;i>=0;i--){if(this.children_[i]===component){childfound=true;this.children_.splice(i,1);break}}if(!childfound){return}this.childindex_[component.id()]=null;this.childnameindex_[component.name()]=null;var compel=component.el();if(compel&&compel.parentnode===this.contentel()){this.contentel().removechild(component.el())}};component.prototype.initchildren=function initchildren(){var _this=this;var children=this.options_.children;if(children){var parentoptions=this.options_;var handleadd=function handleadd(child){var name=child.name;var opts=child.opts;if(parentoptions[name]!==undefined){opts=parentoptions[name]}if(opts===false){return}if(opts===true){opts={}}opts.playeroptions=_this.options_.playeroptions;var newchild=_this.addchild(name,opts);if(newchild){_this[name]=newchild}};var workingchildren=void 0;var tech=component.getcomponent("tech");if(array.isarray(children)){workingchildren=children}else{workingchildren=object.keys(children)}workingchildren.concat(object.keys(this.options_).filter(function(child){return !workingchildren.some(function(wchild){if(typeof wchild==="string"){return child===wchild}return child===wchild.name})})).map(function(child){var name=void 0;var opts=void 0;if(typeof child==="string"){name=child;opts=children[name]||_this.options_[name]||{}}else{name=child.name;opts=child}return{name:name,opts:opts}}).filter(function(child){var c=component.getcomponent(child.opts.componentclass||(0,_totitlecase2["default"])(child.name)); return c&&!tech.istech(c)}).foreach(handleadd)}};component.prototype.buildcssclass=function buildcssclass(){return""};component.prototype.on=function on(first,second,third){var _this2=this;if(typeof first==="string"||array.isarray(first)){events.on(this.el_,first,fn.bind(this,second))}else{var target=first;var type=second;var fn=fn.bind(this,third);var removeondispose=function removeondispose(){return _this2.off(target,type,fn)};removeondispose.guid=fn.guid;this.on("dispose",removeondispose);var cleanremover=function cleanremover(){return _this2.off("dispose",removeondispose)};cleanremover.guid=fn.guid;if(first.nodename){events.on(target,type,fn);events.on(target,"dispose",cleanremover)}else{if(typeof first.on==="function"){target.on(type,fn);target.on("dispose",cleanremover)}}}return this};component.prototype.off=function off(first,second,third){if(!first||typeof first==="string"||array.isarray(first)){events.off(this.el_,first,second)}else{var target=first;var type=second;var fn=fn.bind(this,third);this.off("dispose",fn);if(first.nodename){events.off(target,type,fn);events.off(target,"dispose",fn)}else{target.off(type,fn);target.off("dispose",fn)}}return this};component.prototype.one=function one(first,second,third){var _this3=this,_arguments=arguments;if(typeof first==="string"||array.isarray(first)){events.one(this.el_,first,fn.bind(this,second))}else{var target=first;var type=second;var fn=fn.bind(this,third);var newfunc=function newfunc(){_this3.off(target,type,newfunc);fn.apply(null,_arguments)};newfunc.guid=fn.guid;this.on(target,type,newfunc)}return this};component.prototype.trigger=function trigger(event,hash){events.trigger(this.el_,event,hash);return this};component.prototype.ready=function ready(fn){var sync=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(fn){if(this.isready_){if(sync){fn.call(this)}else{this.settimeout(fn,1)}}else{this.readyqueue_=this.readyqueue_||[];this.readyqueue_.push(fn)}}return this};component.prototype.triggerready=function triggerready(){this.isready_=true;this.settimeout(function(){var readyqueue=this.readyqueue_;this.readyqueue_=[];if(readyqueue&&readyqueue.length>0){readyqueue.foreach(function(fn){fn.call(this)},this)}this.trigger("ready")},1)};component.prototype.$=function $(selector,context){return dom.$(selector,context||this.contentel())};component.prototype.$$=function $$(selector,context){return dom.$$(selector,context||this.contentel())};component.prototype.hasclass=function hasclass(classtocheck){return dom.haselclass(this.el_,classtocheck)};component.prototype.addclass=function addclass(classtoadd){dom.addelclass(this.el_,classtoadd);return this};component.prototype.removeclass=function removeclass(classtoremove){dom.removeelclass(this.el_,classtoremove);return this};component.prototype.toggleclass=function toggleclass(classtotoggle,predicate){dom.toggleelclass(this.el_,classtotoggle,predicate);return this};component.prototype.show=function show(){this.removeclass("vjs-hidden");return this};component.prototype.hide=function hide(){this.addclass("vjs-hidden");return this};component.prototype.lockshowing=function lockshowing(){this.addclass("vjs-lock-showing");return this};component.prototype.unlockshowing=function unlockshowing(){this.removeclass("vjs-lock-showing");return this};component.prototype.getattribute=function getattribute(attribute){return dom.getattribute(this.el_,attribute)};component.prototype.setattribute=function setattribute(attribute,value){dom.setattribute(this.el_,attribute,value);return this};component.prototype.removeattribute=function removeattribute(attribute){dom.removeattribute(this.el_,attribute);return this};component.prototype.width=function width(num,skiplisteners){return this.dimension("width",num,skiplisteners)};component.prototype.height=function height(num,skiplisteners){return this.dimension("height",num,skiplisteners)};component.prototype.dimensions=function dimensions(width,height){return this.width(width,true).height(height)};component.prototype.dimension=function dimension(widthorheight,num,skiplisteners){if(num!==undefined){if(num===null||num!==num){num=0}if((""+num).indexof("%")!==-1||(""+num).indexof("px")!==-1){this.el_.style[widthorheight]=num}else{if(num==="auto"){this.el_.style[widthorheight]=""}else{this.el_.style[widthorheight]=num+"px"}}if(!skiplisteners){this.trigger("resize")}return this}if(!this.el_){return 0}var val=this.el_.style[widthorheight];var pxindex=val.indexof("px");if(pxindex!==-1){return parseint(val.slice(0,pxindex),10)}return parseint(this.el_["offset"+(0,_totitlecase2["default"])(widthorheight)],10)};component.prototype.currentdimension=function currentdimension(widthorheight){var computedwidthorheight=0;if(widthorheight!=="width"&&widthorheight!=="height"){throw new error("currentdimension only accepts width or height value")}if(typeof _window2["default"].getcomputedstyle==="function"){var computedstyle=_window2["default"].getcomputedstyle(this.el_);computedwidthorheight=computedstyle.getpropertyvalue(widthorheight)||computedstyle[widthorheight] }computedwidthorheight=parsefloat(computedwidthorheight);if(computedwidthorheight===0){var rule="offset"+(0,_totitlecase2["default"])(widthorheight);computedwidthorheight=this.el_[rule]}return computedwidthorheight};component.prototype.currentdimensions=function currentdimensions(){return{width:this.currentdimension("width"),height:this.currentdimension("height")}};component.prototype.currentwidth=function currentwidth(){return this.currentdimension("width")};component.prototype.currentheight=function currentheight(){return this.currentdimension("height")};component.prototype.focus=function focus(){this.el_.focus()};component.prototype.blur=function blur(){this.el_.blur()};component.prototype.emittapevents=function emittapevents(){var touchstart=0;var firsttouch=null;var tapmovementthreshold=10;var touchtimethreshold=200;var couldbetap=void 0;this.on("touchstart",function(event){if(event.touches.length===1){firsttouch={pagex:event.touches[0].pagex,pagey:event.touches[0].pagey};touchstart=new date().gettime();couldbetap=true}});this.on("touchmove",function(event){if(event.touches.length>1){couldbetap=false}else{if(firsttouch){var xdiff=event.touches[0].pagex-firsttouch.pagex;var ydiff=event.touches[0].pagey-firsttouch.pagey;var touchdistance=math.sqrt(xdiff*xdiff+ydiff*ydiff);if(touchdistance>tapmovementthreshold){couldbetap=false}}}});var notap=function notap(){couldbetap=false};this.on("touchleave",notap);this.on("touchcancel",notap);this.on("touchend",function(event){firsttouch=null;if(couldbetap===true){var touchtime=new date().gettime()-touchstart;if(touchtime0&&object.keys(player.players).map(function(playername){return player.players[playername]}).every(boolean)){throw new error("can not register player component after player has been created")}}component.components_[name]=comp;return comp};component.getcomponent=function getcomponent(name){if(!name){return}name=(0,_totitlecase2["default"])(name);if(component.components_&&component.components_[name]){return component.components_[name]}if(_window2["default"]&&_window2["default"].videojs&&_window2["default"].videojs[name]){_log2["default"].warn("the "+name+" component was added to the videojs object when it should be registered using videojs.registercomponent(name, component)");return _window2["default"].videojs[name]}};component.extend=function extend(props){props=props||{};_log2["default"].warn("component.extend({}) has been deprecated, "+" use videojs.extend(component, {}) instead");var init=props.init||props.init||this.prototype.init||this.prototype.init||function(){};var subobj=function subobj(){init.apply(this,arguments)};subobj.prototype=object.create(this.prototype);subobj.prototype.constructor=subobj;subobj.extend=component.extend;for(var name in props){if(props.hasownproperty(name)){subobj.prototype[name]=props[name]}}return subobj};return component}();component.registercomponent("component",component);exports["default"]=component},{"81":81,"82":82,"83":83,"85":85,"86":86,"87":87,"91":91,"95":95}],6:[function(_dereq_,module,exports){exports.__esmodule=true; var _trackbutton=_dereq_(36);var _trackbutton2=_interoprequiredefault(_trackbutton);var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _audiotrackmenuitem=_dereq_(7);var _audiotrackmenuitem2=_interoprequiredefault(_audiotrackmenuitem);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var audiotrackbutton=function(_trackbutton){_inherits(audiotrackbutton,_trackbutton);function audiotrackbutton(player){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classcallcheck(this,audiotrackbutton);options.tracks=player.audiotracks&&player.audiotracks();var _this=_possibleconstructorreturn(this,_trackbutton.call(this,player,options));_this.el_.setattribute("aria-label","audio menu");return _this}audiotrackbutton.prototype.buildcssclass=function buildcssclass(){return"vjs-audio-button "+_trackbutton.prototype.buildcssclass.call(this)};audiotrackbutton.prototype.createitems=function createitems(){var items=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];this.hidethreshold_=1;var tracks=this.player_.audiotracks&&this.player_.audiotracks();if(!tracks){return items}for(var i=0;i'+this.localize("stream type")+""+this.localize("live")},{"aria-live":"off"});el.appendchild(this.contentel_);return el};livedisplay.prototype.updateshowing=function updateshowing(event){if(this.player().duration()===infinity){this.show()}else{this.hide()}};return livedisplay}(_component2["default"]);_component2["default"].registercomponent("livedisplay",livedisplay);exports["default"]=livedisplay},{"5":5,"81":81}],11:[function(_dereq_,module,exports){exports.__esmodule=true;var _button=_dereq_(2);var _button2=_interoprequiredefault(_button);var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _dom=_dereq_(81);var dom=_interoprequirewildcard(_dom);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var mutetoggle=function(_button){_inherits(mutetoggle,_button);function mutetoggle(player,options){_classcallcheck(this,mutetoggle);var _this=_possibleconstructorreturn(this,_button.call(this,player,options));_this.on(player,"volumechange",_this.update);if(player.tech_&&player.tech_.featuresvolumecontrol===false){_this.addclass("vjs-hidden")}_this.on(player,"loadstart",function(){this.update();if(player.tech_.featuresvolumecontrol===false){this.addclass("vjs-hidden")}else{this.removeclass("vjs-hidden")}});return _this}mutetoggle.prototype.buildcssclass=function buildcssclass(){return"vjs-mute-control "+_button.prototype.buildcssclass.call(this)};mutetoggle.prototype.handleclick=function handleclick(event){this.player_.muted(this.player_.muted()?false:true)};mutetoggle.prototype.update=function update(event){var vol=this.player_.volume();var level=3;if(this.player_.muted()){level=0}else{if(vol<0.33){level=1}else{if(vol<0.67){level=2}}}var tomute=this.player_.muted()?"unmute":"mute";if(this.controltext()!==tomute){this.controltext(tomute)}for(var i=0;i<4;i++){dom.removeelclass(this.el_,"vjs-vol-"+i)}dom.addelclass(this.el_,"vjs-vol-"+level)};return mutetoggle}(_button2["default"]);mutetoggle.prototype.controltext_="mute";_component2["default"].registercomponent("mutetoggle",mutetoggle);exports["default"]=mutetoggle},{"2":2,"5":5,"81":81}],12:[function(_dereq_,module,exports){exports.__esmodule=true;var _button=_dereq_(2);var _button2=_interoprequiredefault(_button);var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass) }subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var playtoggle=function(_button){_inherits(playtoggle,_button);function playtoggle(player,options){_classcallcheck(this,playtoggle);var _this=_possibleconstructorreturn(this,_button.call(this,player,options));_this.on(player,"play",_this.handleplay);_this.on(player,"pause",_this.handlepause);return _this}playtoggle.prototype.buildcssclass=function buildcssclass(){return"vjs-play-control "+_button.prototype.buildcssclass.call(this)};playtoggle.prototype.handleclick=function handleclick(event){if(this.player_.paused()){this.player_.play()}else{this.player_.pause()}};playtoggle.prototype.handleplay=function handleplay(event){this.removeclass("vjs-paused");this.addclass("vjs-playing");this.controltext("pause")};playtoggle.prototype.handlepause=function handlepause(event){this.removeclass("vjs-playing");this.addclass("vjs-paused");this.controltext("play")};return playtoggle}(_button2["default"]);playtoggle.prototype.controltext_="play";_component2["default"].registercomponent("playtoggle",playtoggle);exports["default"]=playtoggle},{"2":2,"5":5}],13:[function(_dereq_,module,exports){exports.__esmodule=true;var _menubutton=_dereq_(47);var _menubutton2=_interoprequiredefault(_menubutton);var _menu=_dereq_(49);var _menu2=_interoprequiredefault(_menu);var _playbackratemenuitem=_dereq_(14);var _playbackratemenuitem2=_interoprequiredefault(_playbackratemenuitem);var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _dom=_dereq_(81);var dom=_interoprequirewildcard(_dom);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var playbackratemenubutton=function(_menubutton){_inherits(playbackratemenubutton,_menubutton);function playbackratemenubutton(player,options){_classcallcheck(this,playbackratemenubutton);var _this=_possibleconstructorreturn(this,_menubutton.call(this,player,options));_this.updatevisibility();_this.updatelabel();_this.on(player,"loadstart",_this.updatevisibility);_this.on(player,"ratechange",_this.updatelabel);return _this}playbackratemenubutton.prototype.createel=function createel(){var el=_menubutton.prototype.createel.call(this);this.labelel_=dom.createel("div",{classname:"vjs-playback-rate-value",innerhtml:1});el.appendchild(this.labelel_);return el};playbackratemenubutton.prototype.buildcssclass=function buildcssclass(){return"vjs-playback-rate "+_menubutton.prototype.buildcssclass.call(this)};playbackratemenubutton.prototype.createmenu=function createmenu(){var menu=new _menu2["default"](this.player());var rates=this.playbackrates();if(rates){for(var i=rates.length-1;i>=0;i--){menu.addchild(new _playbackratemenuitem2["default"](this.player(),{rate:rates[i]+"x"}))}}return menu};playbackratemenubutton.prototype.updateariaattributes=function updateariaattributes(){this.el().setattribute("aria-valuenow",this.player().playbackrate())};playbackratemenubutton.prototype.handleclick=function handleclick(event){var currentrate=this.player().playbackrate();var rates=this.playbackrates();var newrate=rates[0];for(var i=0;icurrentrate){newrate=rates[i];break}}this.player().playbackrate(newrate)};playbackratemenubutton.prototype.playbackrates=function playbackrates(){return this.options_.playbackrates||this.options_.playeroptions&&this.options_.playeroptions.playbackrates};playbackratemenubutton.prototype.playbackratesupported=function playbackratesupported(){return this.player().tech_&&this.player().tech_.featuresplaybackrate&&this.playbackrates()&&this.playbackrates().length>0};playbackratemenubutton.prototype.updatevisibility=function updatevisibility(event){if(this.playbackratesupported()){this.removeclass("vjs-hidden")}else{this.addclass("vjs-hidden") }};playbackratemenubutton.prototype.updatelabel=function updatelabel(event){if(this.playbackratesupported()){this.labelel_.innerhtml=this.player().playbackrate()+"x"}};return playbackratemenubutton}(_menubutton2["default"]);playbackratemenubutton.prototype.controltext_="playback rate";_component2["default"].registercomponent("playbackratemenubutton",playbackratemenubutton);exports["default"]=playbackratemenubutton},{"14":14,"47":47,"49":49,"5":5,"81":81}],14:[function(_dereq_,module,exports){exports.__esmodule=true;var _menuitem=_dereq_(48);var _menuitem2=_interoprequiredefault(_menuitem);var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var playbackratemenuitem=function(_menuitem){_inherits(playbackratemenuitem,_menuitem);function playbackratemenuitem(player,options){_classcallcheck(this,playbackratemenuitem);var label=options.rate;var rate=parsefloat(label,10);options.label=label;options.selected=rate===1;options.selectable=true;var _this=_possibleconstructorreturn(this,_menuitem.call(this,player,options));_this.label=label;_this.rate=rate;_this.on(player,"ratechange",_this.update);return _this}playbackratemenuitem.prototype.handleclick=function handleclick(event){_menuitem.prototype.handleclick.call(this);this.player().playbackrate(this.rate)};playbackratemenuitem.prototype.update=function update(event){this.selected(this.player().playbackrate()===this.rate)};return playbackratemenuitem}(_menuitem2["default"]);playbackratemenuitem.prototype.contenteltype="button";_component2["default"].registercomponent("playbackratemenuitem",playbackratemenuitem);exports["default"]=playbackratemenuitem},{"48":48,"5":5}],15:[function(_dereq_,module,exports){exports.__esmodule=true;var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _dom=_dereq_(81);var dom=_interoprequirewildcard(_dom);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var loadprogressbar=function(_component){_inherits(loadprogressbar,_component);function loadprogressbar(player,options){_classcallcheck(this,loadprogressbar);var _this=_possibleconstructorreturn(this,_component.call(this,player,options));_this.partels_=[];_this.on(player,"progress",_this.update);return _this}loadprogressbar.prototype.createel=function createel(){return _component.prototype.createel.call(this,"div",{classname:"vjs-load-progress",innerhtml:''+this.localize("loaded")+": 0%"})};loadprogressbar.prototype.update=function update(event){var buffered=this.player_.buffered();var duration=this.player_.duration();var bufferedend=this.player_.bufferedend();var children=this.partels_;var percentify=function percentify(time,end){var percent=time/end||0;return(percent>=1?1:percent)*100+"%"};this.el_.style.width=percentify(bufferedend,duration);for(var i=0;ibuffered.length;_i--){this.el_.removechild(children[_i-1])}children.length=buffered.length};return loadprogressbar}(_component2["default"]);_component2["default"].registercomponent("loadprogressbar",loadprogressbar);exports["default"]=loadprogressbar},{"5":5,"81":81}],16:[function(_dereq_,module,exports){exports.__esmodule=true;var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _dom=_dereq_(81);var dom=_interoprequirewildcard(_dom);var _fn=_dereq_(83);var fn=_interoprequirewildcard(_fn);var _formattime=_dereq_(84);var _formattime2=_interoprequiredefault(_formattime);var _computedstyle=_dereq_(80);var _computedstyle2=_interoprequiredefault(_computedstyle);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var mousetimedisplay=function(_component){_inherits(mousetimedisplay,_component);function mousetimedisplay(player,options){_classcallcheck(this,mousetimedisplay);var _this=_possibleconstructorreturn(this,_component.call(this,player,options));if(options.playeroptions&&options.playeroptions.controlbar&&options.playeroptions.controlbar.progresscontrol&&options.playeroptions.controlbar.progresscontrol.keeptooltipsinside){_this.keeptooltipsinside=options.playeroptions.controlbar.progresscontrol.keeptooltipsinside}if(_this.keeptooltipsinside){_this.tooltip=dom.createel("div",{classname:"vjs-time-tooltip"});_this.el().appendchild(_this.tooltip);_this.addclass("vjs-keep-tooltips-inside")}_this.update(0,0);player.on("ready",function(){_this.on(player.controlbar.progresscontrol.el(),"mousemove",fn.throttle(fn.bind(_this,_this.handlemousemove),25))});return _this}mousetimedisplay.prototype.createel=function createel(){return _component.prototype.createel.call(this,"div",{classname:"vjs-mouse-display"})};mousetimedisplay.prototype.handlemousemove=function handlemousemove(event){var duration=this.player_.duration();var newtime=this.calculatedistance(event)*duration;var position=event.pagex-dom.findelposition(this.el().parentnode).left;this.update(newtime,position)};mousetimedisplay.prototype.update=function update(newtime,position){var time=(0,_formattime2["default"])(newtime,this.player_.duration());this.el().style.left=position+"px";this.el().setattribute("data-current-time",time);if(this.keeptooltipsinside){var clampedposition=this.clampposition_(position);var difference=position-clampedposition+1;var tooltipwidth=parsefloat((0,_computedstyle2["default"])(this.tooltip,"width"));var tooltipwidthhalf=tooltipwidth/2;this.tooltip.innerhtml=time;this.tooltip.style.right="-"+(tooltipwidthhalf-difference)+"px"}};mousetimedisplay.prototype.calculatedistance=function calculatedistance(event){return dom.getpointerposition(this.el().parentnode,event).x};mousetimedisplay.prototype.clampposition_=function clampposition_(position){if(!this.keeptooltipsinside){return position}var playerwidth=parsefloat((0,_computedstyle2["default"])(this.player().el(),"width"));var tooltipwidth=parsefloat((0,_computedstyle2["default"])(this.tooltip,"width"));var tooltipwidthhalf=tooltipwidth/2;var actualposition=position;if(positionplayerwidth-tooltipwidthhalf){actualposition=math.floor(playerwidth-tooltipwidthhalf)}}return actualposition};return mousetimedisplay}(_component2["default"]);_component2["default"].registercomponent("mousetimedisplay",mousetimedisplay);exports["default"]=mousetimedisplay},{"5":5,"80":80,"81":81,"83":83,"84":84}],17:[function(_dereq_,module,exports){exports.__esmodule=true;var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _fn=_dereq_(83);var fn=_interoprequirewildcard(_fn);var _formattime=_dereq_(84);var _formattime2=_interoprequiredefault(_formattime);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key] }}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var playprogressbar=function(_component){_inherits(playprogressbar,_component);function playprogressbar(player,options){_classcallcheck(this,playprogressbar);var _this=_possibleconstructorreturn(this,_component.call(this,player,options));_this.updatedataattr();_this.on(player,"timeupdate",_this.updatedataattr);player.ready(fn.bind(_this,_this.updatedataattr));if(options.playeroptions&&options.playeroptions.controlbar&&options.playeroptions.controlbar.progresscontrol&&options.playeroptions.controlbar.progresscontrol.keeptooltipsinside){_this.keeptooltipsinside=options.playeroptions.controlbar.progresscontrol.keeptooltipsinside}if(_this.keeptooltipsinside){_this.addclass("vjs-keep-tooltips-inside")}return _this}playprogressbar.prototype.createel=function createel(){return _component.prototype.createel.call(this,"div",{classname:"vjs-play-progress vjs-slider-bar",innerhtml:''+this.localize("progress")+": 0%"})};playprogressbar.prototype.updatedataattr=function updatedataattr(event){var time=this.player_.scrubbing()?this.player_.getcache().currenttime:this.player_.currenttime();this.el_.setattribute("data-current-time",(0,_formattime2["default"])(time,this.player_.duration()))};return playprogressbar}(_component2["default"]);_component2["default"].registercomponent("playprogressbar",playprogressbar);exports["default"]=playprogressbar},{"5":5,"83":83,"84":84}],18:[function(_dereq_,module,exports){exports.__esmodule=true;var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);_dereq_(19);_dereq_(16);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var progresscontrol=function(_component){_inherits(progresscontrol,_component);function progresscontrol(){_classcallcheck(this,progresscontrol);return _possibleconstructorreturn(this,_component.apply(this,arguments))}progresscontrol.prototype.createel=function createel(){return _component.prototype.createel.call(this,"div",{classname:"vjs-progress-control vjs-control"})};return progresscontrol}(_component2["default"]);progresscontrol.prototype.options_={children:["seekbar"]};_component2["default"].registercomponent("progresscontrol",progresscontrol);exports["default"]=progresscontrol},{"16":16,"19":19,"5":5}],19:[function(_dereq_,module,exports){exports.__esmodule=true;var _slider=_dereq_(57);var _slider2=_interoprequiredefault(_slider);var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _fn=_dereq_(83);var fn=_interoprequirewildcard(_fn);var _formattime=_dereq_(84);var _formattime2=_interoprequiredefault(_formattime);var _computedstyle=_dereq_(80);var _computedstyle2=_interoprequiredefault(_computedstyle);_dereq_(15);_dereq_(17);_dereq_(20);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called") }return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var seekbar=function(_slider){_inherits(seekbar,_slider);function seekbar(player,options){_classcallcheck(this,seekbar);var _this=_possibleconstructorreturn(this,_slider.call(this,player,options));_this.on(player,"timeupdate",_this.updateprogress);_this.on(player,"ended",_this.updateprogress);player.ready(fn.bind(_this,_this.updateprogress));if(options.playeroptions&&options.playeroptions.controlbar&&options.playeroptions.controlbar.progresscontrol&&options.playeroptions.controlbar.progresscontrol.keeptooltipsinside){_this.keeptooltipsinside=options.playeroptions.controlbar.progresscontrol.keeptooltipsinside}if(_this.keeptooltipsinside){_this.tooltipprogressbar=_this.addchild("tooltipprogressbar")}return _this}seekbar.prototype.createel=function createel(){return _slider.prototype.createel.call(this,"div",{classname:"vjs-progress-holder"},{"aria-label":"progress bar"})};seekbar.prototype.updateprogress=function updateprogress(event){this.updateariaattributes(this.el_);if(this.keeptooltipsinside){this.updateariaattributes(this.tooltipprogressbar.el_);this.tooltipprogressbar.el_.style.width=this.bar.el_.style.width;var playerwidth=parsefloat((0,_computedstyle2["default"])(this.player().el(),"width"));var tooltipwidth=parsefloat((0,_computedstyle2["default"])(this.tooltipprogressbar.tooltip,"width"));var tooltipstyle=this.tooltipprogressbar.el().style;tooltipstyle.maxwidth=math.floor(playerwidth-tooltipwidth/2)+"px";tooltipstyle.minwidth=math.ceil(tooltipwidth/2)+"px";tooltipstyle.right="-"+tooltipwidth/2+"px"}};seekbar.prototype.updateariaattributes=function updateariaattributes(el){var time=this.player_.scrubbing()?this.player_.getcache().currenttime:this.player_.currenttime();el.setattribute("aria-valuenow",(this.getpercent()*100).tofixed(2));el.setattribute("aria-valuetext",(0,_formattime2["default"])(time,this.player_.duration()))};seekbar.prototype.getpercent=function getpercent(){var percent=this.player_.currenttime()/this.player_.duration();return percent>=1?1:percent};seekbar.prototype.handlemousedown=function handlemousedown(event){this.player_.scrubbing(true);this.videowasplaying=!this.player_.paused();this.player_.pause();_slider.prototype.handlemousedown.call(this,event)};seekbar.prototype.handlemousemove=function handlemousemove(event){var newtime=this.calculatedistance(event)*this.player_.duration();if(newtime===this.player_.duration()){newtime=newtime-0.1}this.player_.currenttime(newtime)};seekbar.prototype.handlemouseup=function handlemouseup(event){_slider.prototype.handlemouseup.call(this,event);this.player_.scrubbing(false);if(this.videowasplaying){this.player_.play()}};seekbar.prototype.stepforward=function stepforward(){this.player_.currenttime(this.player_.currenttime()+5)};seekbar.prototype.stepback=function stepback(){this.player_.currenttime(this.player_.currenttime()-5)};return seekbar}(_slider2["default"]);seekbar.prototype.options_={children:["loadprogressbar","mousetimedisplay","playprogressbar"],barname:"playprogressbar"};seekbar.prototype.playerevent="timeupdate";_component2["default"].registercomponent("seekbar",seekbar);exports["default"]=seekbar},{"15":15,"17":17,"20":20,"5":5,"57":57,"80":80,"83":83,"84":84}],20:[function(_dereq_,module,exports){exports.__esmodule=true;var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _fn=_dereq_(83);var fn=_interoprequirewildcard(_fn);var _formattime=_dereq_(84);var _formattime2=_interoprequiredefault(_formattime);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}}); if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var tooltipprogressbar=function(_component){_inherits(tooltipprogressbar,_component);function tooltipprogressbar(player,options){_classcallcheck(this,tooltipprogressbar);var _this=_possibleconstructorreturn(this,_component.call(this,player,options));_this.updatedataattr();_this.on(player,"timeupdate",_this.updatedataattr);player.ready(fn.bind(_this,_this.updatedataattr));return _this}tooltipprogressbar.prototype.createel=function createel(){var el=_component.prototype.createel.call(this,"div",{classname:"vjs-tooltip-progress-bar vjs-slider-bar",innerhtml:'
\n '+this.localize("progress")+": 0%"});this.tooltip=el.queryselector(".vjs-time-tooltip");return el};tooltipprogressbar.prototype.updatedataattr=function updatedataattr(event){var time=this.player_.scrubbing()?this.player_.getcache().currenttime:this.player_.currenttime();var formattedtime=(0,_formattime2["default"])(time,this.player_.duration());this.el_.setattribute("data-current-time",formattedtime);this.tooltip.innerhtml=formattedtime};return tooltipprogressbar}(_component2["default"]);_component2["default"].registercomponent("tooltipprogressbar",tooltipprogressbar);exports["default"]=tooltipprogressbar},{"5":5,"83":83,"84":84}],21:[function(_dereq_,module,exports){exports.__esmodule=true;var _spacer=_dereq_(22);var _spacer2=_interoprequiredefault(_spacer);var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var customcontrolspacer=function(_spacer){_inherits(customcontrolspacer,_spacer);function customcontrolspacer(){_classcallcheck(this,customcontrolspacer);return _possibleconstructorreturn(this,_spacer.apply(this,arguments))}customcontrolspacer.prototype.buildcssclass=function buildcssclass(){return"vjs-custom-control-spacer "+_spacer.prototype.buildcssclass.call(this)};customcontrolspacer.prototype.createel=function createel(){var el=_spacer.prototype.createel.call(this,{classname:this.buildcssclass()});el.innerhtml=" ";return el};return customcontrolspacer}(_spacer2["default"]);_component2["default"].registercomponent("customcontrolspacer",customcontrolspacer);exports["default"]=customcontrolspacer},{"22":22,"5":5}],22:[function(_dereq_,module,exports){exports.__esmodule=true;var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var spacer=function(_component){_inherits(spacer,_component);function spacer(){_classcallcheck(this,spacer);return _possibleconstructorreturn(this,_component.apply(this,arguments))}spacer.prototype.buildcssclass=function buildcssclass(){return"vjs-spacer "+_component.prototype.buildcssclass.call(this)};spacer.prototype.createel=function createel(){return _component.prototype.createel.call(this,"div",{classname:this.buildcssclass()})};return spacer}(_component2["default"]);_component2["default"].registercomponent("spacer",spacer);exports["default"]=spacer},{"5":5}],23:[function(_dereq_,module,exports){exports.__esmodule=true;var _texttrackmenuitem=_dereq_(31);var _texttrackmenuitem2=_interoprequiredefault(_texttrackmenuitem); var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var captionsettingsmenuitem=function(_texttrackmenuitem){_inherits(captionsettingsmenuitem,_texttrackmenuitem);function captionsettingsmenuitem(player,options){_classcallcheck(this,captionsettingsmenuitem);options.track={player:player,kind:options.kind,label:options.kind+" settings",selectable:false,"default":false,mode:"disabled"};options.selectable=false;var _this=_possibleconstructorreturn(this,_texttrackmenuitem.call(this,player,options));_this.addclass("vjs-texttrack-settings");_this.controltext(", opens "+options.kind+" settings dialog");return _this}captionsettingsmenuitem.prototype.handleclick=function handleclick(event){this.player().getchild("texttracksettings").show();this.player().getchild("texttracksettings").el_.focus()};return captionsettingsmenuitem}(_texttrackmenuitem2["default"]);_component2["default"].registercomponent("captionsettingsmenuitem",captionsettingsmenuitem);exports["default"]=captionsettingsmenuitem},{"31":31,"5":5}],24:[function(_dereq_,module,exports){exports.__esmodule=true;var _texttrackbutton=_dereq_(30);var _texttrackbutton2=_interoprequiredefault(_texttrackbutton);var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _captionsettingsmenuitem=_dereq_(23);var _captionsettingsmenuitem2=_interoprequiredefault(_captionsettingsmenuitem);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var captionsbutton=function(_texttrackbutton){_inherits(captionsbutton,_texttrackbutton);function captionsbutton(player,options,ready){_classcallcheck(this,captionsbutton);var _this=_possibleconstructorreturn(this,_texttrackbutton.call(this,player,options,ready));_this.el_.setattribute("aria-label","captions menu");return _this}captionsbutton.prototype.buildcssclass=function buildcssclass(){return"vjs-captions-button "+_texttrackbutton.prototype.buildcssclass.call(this)};captionsbutton.prototype.createitems=function createitems(){var items=[];if(!(this.player().tech_&&this.player().tech_.featuresnativetexttracks)){items.push(new _captionsettingsmenuitem2["default"](this.player_,{kind:this.kind_}));this.hidethreshold_+=1}return _texttrackbutton.prototype.createitems.call(this,items)};return captionsbutton}(_texttrackbutton2["default"]);captionsbutton.prototype.kind_="captions";captionsbutton.prototype.controltext_="captions";_component2["default"].registercomponent("captionsbutton",captionsbutton);exports["default"]=captionsbutton},{"23":23,"30":30,"5":5}],25:[function(_dereq_,module,exports){exports.__esmodule=true;var _texttrackbutton=_dereq_(30);var _texttrackbutton2=_interoprequiredefault(_texttrackbutton);var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _chapterstrackmenuitem=_dereq_(26);var _chapterstrackmenuitem2=_interoprequiredefault(_chapterstrackmenuitem);var _totitlecase=_dereq_(91);var _totitlecase2=_interoprequiredefault(_totitlecase);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called") }return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var chaptersbutton=function(_texttrackbutton){_inherits(chaptersbutton,_texttrackbutton);function chaptersbutton(player,options,ready){_classcallcheck(this,chaptersbutton);var _this=_possibleconstructorreturn(this,_texttrackbutton.call(this,player,options,ready));_this.el_.setattribute("aria-label","chapters menu");return _this}chaptersbutton.prototype.buildcssclass=function buildcssclass(){return"vjs-chapters-button "+_texttrackbutton.prototype.buildcssclass.call(this)};chaptersbutton.prototype.update=function update(event){if(!this.track_||event&&(event.type==="addtrack"||event.type==="removetrack")){this.settrack(this.findchapterstrack())}_texttrackbutton.prototype.update.call(this)};chaptersbutton.prototype.settrack=function settrack(track){if(this.track_===track){return}if(!this.updatehandler_){this.updatehandler_=this.update.bind(this)}if(this.track_){var remotetexttrackel=this.player_.remotetexttrackels().gettrackelementbytrack_(this.track_);if(remotetexttrackel){remotetexttrackel.removeeventlistener("load",this.updatehandler_)}this.track_=null}this.track_=track;if(this.track_){this.track_.mode="hidden";var _remotetexttrackel=this.player_.remotetexttrackels().gettrackelementbytrack_(this.track_);if(_remotetexttrackel){_remotetexttrackel.addeventlistener("load",this.updatehandler_)}}};chaptersbutton.prototype.findchapterstrack=function findchapterstrack(){var tracks=this.player_.texttracks()||[];for(var i=tracks.length-1;i>=0;i--){var track=tracks[i];if(track.kind===this.kind_){return track}}};chaptersbutton.prototype.getmenucaption=function getmenucaption(){if(this.track_&&this.track_.label){return this.track_.label}return this.localize((0,_totitlecase2["default"])(this.kind_))};chaptersbutton.prototype.createmenu=function createmenu(){this.options_.title=this.getmenucaption();return _texttrackbutton.prototype.createmenu.call(this)};chaptersbutton.prototype.createitems=function createitems(){var items=[];if(!this.track_){return items}var cues=this.track_.cues;if(!cues){return items}for(var i=0,l=cues.length;i1&&arguments[1]!==undefined?arguments[1]:{};_classcallcheck(this,texttrackbutton);options.tracks=player.texttracks();return _possibleconstructorreturn(this,_trackbutton.call(this,player,options))}texttrackbutton.prototype.createitems=function createitems(){var items=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];items.push(new _offtexttrackmenuitem2["default"](this.player_,{kind:this.kind_}));this.hidethreshold_+=1;var tracks=this.player_.texttracks();if(!tracks){return items}for(var i=0;icurrent time '+"0:00"},{"aria-live":"off"});el.appendchild(this.contentel_);return el};currenttimedisplay.prototype.updatecontent=function updatecontent(event){var time=this.player_.scrubbing()?this.player_.getcache().currenttime:this.player_.currenttime();var localizedtext=this.localize("current time");var formattedtime=(0,_formattime2["default"])(time,this.player_.duration());if(formattedtime!==this.formattedtime_){this.formattedtime_=formattedtime;this.contentel_.innerhtml=''+localizedtext+" "+formattedtime}};return currenttimedisplay}(_component2["default"]);_component2["default"].registercomponent("currenttimedisplay",currenttimedisplay);exports["default"]=currenttimedisplay},{"5":5,"81":81,"84":84}],33:[function(_dereq_,module,exports){exports.__esmodule=true;var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _dom=_dereq_(81);var dom=_interoprequirewildcard(_dom);var _formattime=_dereq_(84);var _formattime2=_interoprequiredefault(_formattime);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var durationdisplay=function(_component){_inherits(durationdisplay,_component);function durationdisplay(player,options){_classcallcheck(this,durationdisplay);var _this=_possibleconstructorreturn(this,_component.call(this,player,options));_this.on(player,"durationchange",_this.updatecontent);_this.on(player,"timeupdate",_this.updatecontent);_this.on(player,"loadedmetadata",_this.updatecontent);return _this}durationdisplay.prototype.createel=function createel(){var el=_component.prototype.createel.call(this,"div",{classname:"vjs-duration vjs-time-control vjs-control"});this.contentel_=dom.createel("div",{classname:"vjs-duration-display",innerhtml:''+this.localize("duration time")+" 0:00"},{"aria-live":"off"});el.appendchild(this.contentel_);return el};durationdisplay.prototype.updatecontent=function updatecontent(event){var duration=this.player_.duration();if(duration&&this.duration_!==duration){this.duration_=duration;var localizedtext=this.localize("duration time");var formattedtime=(0,_formattime2["default"])(duration);this.contentel_.innerhtml=''+localizedtext+" "+formattedtime}};return durationdisplay}(_component2["default"]);_component2["default"].registercomponent("durationdisplay",durationdisplay);exports["default"]=durationdisplay},{"5":5,"81":81,"84":84}],34:[function(_dereq_,module,exports){exports.__esmodule=true;var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _dom=_dereq_(81);var dom=_interoprequirewildcard(_dom);var _formattime=_dereq_(84);var _formattime2=_interoprequiredefault(_formattime);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass }}var remainingtimedisplay=function(_component){_inherits(remainingtimedisplay,_component);function remainingtimedisplay(player,options){_classcallcheck(this,remainingtimedisplay);var _this=_possibleconstructorreturn(this,_component.call(this,player,options));_this.on(player,"timeupdate",_this.updatecontent);_this.on(player,"durationchange",_this.updatecontent);return _this}remainingtimedisplay.prototype.createel=function createel(){var el=_component.prototype.createel.call(this,"div",{classname:"vjs-remaining-time vjs-time-control vjs-control"});this.contentel_=dom.createel("div",{classname:"vjs-remaining-time-display",innerhtml:''+this.localize("remaining time")+" -0:00"},{"aria-live":"off"});el.appendchild(this.contentel_);return el};remainingtimedisplay.prototype.updatecontent=function updatecontent(event){if(this.player_.duration()){var localizedtext=this.localize("remaining time");var formattedtime=(0,_formattime2["default"])(this.player_.remainingtime());if(formattedtime!==this.formattedtime_){this.formattedtime_=formattedtime;this.contentel_.innerhtml=''+localizedtext+" -"+formattedtime}}};return remainingtimedisplay}(_component2["default"]);_component2["default"].registercomponent("remainingtimedisplay",remainingtimedisplay);exports["default"]=remainingtimedisplay},{"5":5,"81":81,"84":84}],35:[function(_dereq_,module,exports){exports.__esmodule=true;var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var timedivider=function(_component){_inherits(timedivider,_component);function timedivider(){_classcallcheck(this,timedivider);return _possibleconstructorreturn(this,_component.apply(this,arguments))}timedivider.prototype.createel=function createel(){return _component.prototype.createel.call(this,"div",{classname:"vjs-time-control vjs-time-divider",innerhtml:"
/
"})};return timedivider}(_component2["default"]);_component2["default"].registercomponent("timedivider",timedivider);exports["default"]=timedivider},{"5":5}],36:[function(_dereq_,module,exports){exports.__esmodule=true;var _menubutton=_dereq_(47);var _menubutton2=_interoprequiredefault(_menubutton);var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _fn=_dereq_(83);var fn=_interoprequirewildcard(_fn);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var trackbutton=function(_menubutton){_inherits(trackbutton,_menubutton);function trackbutton(player,options){_classcallcheck(this,trackbutton);var tracks=options.tracks;var _this=_possibleconstructorreturn(this,_menubutton.call(this,player,options));if(_this.items.length<=1){_this.hide()}if(!tracks){return _possibleconstructorreturn(_this)}var updatehandler=fn.bind(_this,_this.update);tracks.addeventlistener("removetrack",updatehandler);tracks.addeventlistener("addtrack",updatehandler);_this.player_.on("dispose",function(){tracks.removeeventlistener("removetrack",updatehandler);tracks.removeeventlistener("addtrack",updatehandler) });return _this}return trackbutton}(_menubutton2["default"]);_component2["default"].registercomponent("trackbutton",trackbutton);exports["default"]=trackbutton},{"47":47,"5":5,"83":83}],37:[function(_dereq_,module,exports){exports.__esmodule=true;var _slider=_dereq_(57);var _slider2=_interoprequiredefault(_slider);var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _fn=_dereq_(83);var fn=_interoprequirewildcard(_fn);_dereq_(39);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var volumebar=function(_slider){_inherits(volumebar,_slider);function volumebar(player,options){_classcallcheck(this,volumebar);var _this=_possibleconstructorreturn(this,_slider.call(this,player,options));_this.on(player,"volumechange",_this.updateariaattributes);player.ready(fn.bind(_this,_this.updateariaattributes));return _this}volumebar.prototype.createel=function createel(){return _slider.prototype.createel.call(this,"div",{classname:"vjs-volume-bar vjs-slider-bar"},{"aria-label":"volume level"})};volumebar.prototype.handlemousemove=function handlemousemove(event){this.checkmuted();this.player_.volume(this.calculatedistance(event))};volumebar.prototype.checkmuted=function checkmuted(){if(this.player_.muted()){this.player_.muted(false)}};volumebar.prototype.getpercent=function getpercent(){if(this.player_.muted()){return 0}return this.player_.volume()};volumebar.prototype.stepforward=function stepforward(){this.checkmuted();this.player_.volume(this.player_.volume()+0.1)};volumebar.prototype.stepback=function stepback(){this.checkmuted();this.player_.volume(this.player_.volume()-0.1)};volumebar.prototype.updateariaattributes=function updateariaattributes(event){var volume=(this.player_.volume()*100).tofixed(2);this.el_.setattribute("aria-valuenow",volume);this.el_.setattribute("aria-valuetext",volume+"%")};return volumebar}(_slider2["default"]);volumebar.prototype.options_={children:["volumelevel"],barname:"volumelevel"};volumebar.prototype.playerevent="volumechange";_component2["default"].registercomponent("volumebar",volumebar);exports["default"]=volumebar},{"39":39,"5":5,"57":57,"83":83}],38:[function(_dereq_,module,exports){exports.__esmodule=true;var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);_dereq_(37);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var volumecontrol=function(_component){_inherits(volumecontrol,_component);function volumecontrol(player,options){_classcallcheck(this,volumecontrol);var _this=_possibleconstructorreturn(this,_component.call(this,player,options));if(player.tech_&&player.tech_.featuresvolumecontrol===false){_this.addclass("vjs-hidden")}_this.on(player,"loadstart",function(){if(player.tech_.featuresvolumecontrol===false){this.addclass("vjs-hidden")}else{this.removeclass("vjs-hidden")}});return _this}volumecontrol.prototype.createel=function createel(){return _component.prototype.createel.call(this,"div",{classname:"vjs-volume-control vjs-control"})};return volumecontrol}(_component2["default"]);volumecontrol.prototype.options_={children:["volumebar"]}; _component2["default"].registercomponent("volumecontrol",volumecontrol);exports["default"]=volumecontrol},{"37":37,"5":5}],39:[function(_dereq_,module,exports){exports.__esmodule=true;var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var volumelevel=function(_component){_inherits(volumelevel,_component);function volumelevel(){_classcallcheck(this,volumelevel);return _possibleconstructorreturn(this,_component.apply(this,arguments))}volumelevel.prototype.createel=function createel(){return _component.prototype.createel.call(this,"div",{classname:"vjs-volume-level",innerhtml:''})};return volumelevel}(_component2["default"]);_component2["default"].registercomponent("volumelevel",volumelevel);exports["default"]=volumelevel},{"5":5}],40:[function(_dereq_,module,exports){exports.__esmodule=true;var _fn=_dereq_(83);var fn=_interoprequirewildcard(_fn);var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _popup=_dereq_(54);var _popup2=_interoprequiredefault(_popup);var _popupbutton=_dereq_(53);var _popupbutton2=_interoprequiredefault(_popupbutton);var _mutetoggle=_dereq_(11);var _mutetoggle2=_interoprequiredefault(_mutetoggle);var _volumebar=_dereq_(37);var _volumebar2=_interoprequiredefault(_volumebar);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var volumemenubutton=function(_popupbutton){_inherits(volumemenubutton,_popupbutton);function volumemenubutton(player){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classcallcheck(this,volumemenubutton);if(options.inline===undefined){options.inline=true}if(options.vertical===undefined){if(options.inline){options.vertical=false}else{options.vertical=true}}options.volumebar=options.volumebar||{};options.volumebar.vertical=!!options.vertical;var _this=_possibleconstructorreturn(this,_popupbutton.call(this,player,options));_this.on(player,"volumechange",_this.volumeupdate);_this.on(player,"loadstart",_this.volumeupdate);function updatevisibility(){if(player.tech_&&player.tech_.featuresvolumecontrol===false){this.addclass("vjs-hidden")}else{this.removeclass("vjs-hidden")}}updatevisibility.call(_this);_this.on(player,"loadstart",updatevisibility);_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 _this}volumemenubutton.prototype.buildcssclass=function buildcssclass(){var orientationclass="";if(this.options_.vertical){orientationclass="vjs-volume-menu-button-vertical"}else{orientationclass="vjs-volume-menu-button-horizontal"}return"vjs-volume-menu-button "+_popupbutton.prototype.buildcssclass.call(this)+" "+orientationclass};volumemenubutton.prototype.createpopup=function createpopup(){var popup=new _popup2["default"](this.player_,{contenteltype:"div"}); var vb=new _volumebar2["default"](this.player_,this.options_.volumebar);popup.addchild(vb);this.menucontent=popup;this.volumebar=vb;this.attachvolumebarevents();return popup};volumemenubutton.prototype.handleclick=function handleclick(event){_mutetoggle2["default"].prototype.handleclick.call(this);_popupbutton.prototype.handleclick.call(this)};volumemenubutton.prototype.attachvolumebarevents=function attachvolumebarevents(){this.menucontent.on(["mousedown","touchdown"],fn.bind(this,this.handlemousedown))};volumemenubutton.prototype.handlemousedown=function handlemousedown(event){this.on(["mousemove","touchmove"],fn.bind(this.volumebar,this.volumebar.handlemousemove));this.on(this.el_.ownerdocument,["mouseup","touchend"],this.handlemouseup)};volumemenubutton.prototype.handlemouseup=function handlemouseup(event){this.off(["mousemove","touchmove"],fn.bind(this.volumebar,this.volumebar.handlemousemove))};return volumemenubutton}(_popupbutton2["default"]);volumemenubutton.prototype.volumeupdate=_mutetoggle2["default"].prototype.update;volumemenubutton.prototype.controltext_="mute";_component2["default"].registercomponent("volumemenubutton",volumemenubutton);exports["default"]=volumemenubutton},{"11":11,"37":37,"5":5,"53":53,"54":54,"83":83}],41:[function(_dereq_,module,exports){exports.__esmodule=true;var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _modaldialog=_dereq_(50);var _modaldialog2=_interoprequiredefault(_modaldialog);var _mergeoptions=_dereq_(87);var _mergeoptions2=_interoprequiredefault(_mergeoptions);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var errordisplay=function(_modaldialog){_inherits(errordisplay,_modaldialog);function errordisplay(player,options){_classcallcheck(this,errordisplay);var _this=_possibleconstructorreturn(this,_modaldialog.call(this,player,options));_this.on(player,"error",_this.open);return _this}errordisplay.prototype.buildcssclass=function buildcssclass(){return"vjs-error-display "+_modaldialog.prototype.buildcssclass.call(this)};errordisplay.prototype.content=function content(){var error=this.player().error();return error?this.localize(error.message):""};return errordisplay}(_modaldialog2["default"]);errordisplay.prototype.options_=(0,_mergeoptions2["default"])(_modaldialog2["default"].prototype.options_,{pauseonopen:false,fillalways:true,temporary:false,uncloseable:true});_component2["default"].registercomponent("errordisplay",errordisplay);exports["default"]=errordisplay},{"5":5,"50":50,"87":87}],42:[function(_dereq_,module,exports){exports.__esmodule=true;var _events=_dereq_(82);var events=_interoprequirewildcard(_events);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}var eventtarget=function eventtarget(){};eventtarget.prototype.allowedevents_={};eventtarget.prototype.on=function(type,fn){var ael=this.addeventlistener;this.addeventlistener=function(){};events.on(this,type,fn);this.addeventlistener=ael};eventtarget.prototype.addeventlistener=eventtarget.prototype.on;eventtarget.prototype.off=function(type,fn){events.off(this,type,fn)};eventtarget.prototype.removeeventlistener=eventtarget.prototype.off;eventtarget.prototype.one=function(type,fn){var ael=this.addeventlistener;this.addeventlistener=function(){};events.one(this,type,fn);this.addeventlistener=ael};eventtarget.prototype.trigger=function(event){var type=event.type||event;if(typeof event==="string"){event={type:type}}event=events.fixevent(event);if(this.allowedevents_[type]&&this["on"+type]){this["on"+type](event)}events.trigger(this,event)};eventtarget.prototype.dispatchevent=eventtarget.prototype.trigger;exports["default"]=eventtarget},{"82":82}],43:[function(_dereq_,module,exports){exports.__esmodule=true;var _typeof=typeof symbol==="function"&&typeof symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof symbol==="function"&&obj.constructor===symbol&&obj!==symbol.prototype?"symbol":typeof obj};var _log=_dereq_(86);var _log2=_interoprequiredefault(_log); var _obj=_dereq_(88);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}var _inherits=function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+(typeof superclass==="undefined"?"undefined":_typeof(superclass)))}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){subclass.super_=superclass}};var extendfn=function extendfn(superclass){var subclassmethods=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var subclass=function subclass(){superclass.apply(this,arguments)};var methods={};if((0,_obj.isobject)(subclassmethods)){if(typeof subclassmethods.init==="function"){_log2["default"].warn("constructor logic via init() is deprecated; please use constructor() instead.");subclassmethods.constructor=subclassmethods.init}if(subclassmethods.constructor!==object.prototype.constructor){subclass=subclassmethods.constructor}methods=subclassmethods}else{if(typeof subclassmethods==="function"){subclass=subclassmethods}}_inherits(subclass,superclass);for(var name in methods){if(methods.hasownproperty(name)){subclass.prototype[name]=methods[name]}}return subclass};exports["default"]=extendfn},{"86":86,"88":88}],44:[function(_dereq_,module,exports){exports.__esmodule=true;var _document=_dereq_(94);var _document2=_interoprequiredefault(_document);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}var fullscreenapi={};var apimap=[["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"]];var specapi=apimap[0];var browserapi=void 0;for(var i=0;i1&&arguments[1]!==undefined?arguments[1]:{};_classcallcheck(this,menubutton);var _this=_possibleconstructorreturn(this,_clickablecomponent.call(this,player,options));_this.update();_this.enabled_=true;_this.el_.setattribute("aria-haspopup","true");_this.el_.setattribute("role","menuitem");_this.on("keydown",_this.handlesubmenukeypress);return _this}menubutton.prototype.update=function update(){var menu=this.createmenu();if(this.menu){this.removechild(this.menu)}this.menu=menu;this.addchild(menu);this.buttonpressed_=false;this.el_.setattribute("aria-expanded","false");if(this.items&&this.items.length<=this.hidethreshold_){this.hide()}else{this.show()}};menubutton.prototype.createmenu=function createmenu(){var menu=new _menu2["default"](this.player_);this.hidethreshold_=0;if(this.options_.title){var title=dom.createel("li",{classname:"vjs-menu-title",innerhtml:(0,_totitlecase2["default"])(this.options_.title),tabindex:-1});this.hidethreshold_+=1;menu.children_.unshift(title);dom.insertelfirst(title,menu.contentel())}this.items=this.createitems();if(this.items){for(var i=0;i0&&arguments[0]!==undefined?arguments[0]:0;var children=this.children().slice();var havetitle=children.length&&children[0].classname&&/vjs-menu-title/.test(children[0].classname);if(havetitle){children.shift()}if(children.length>0){if(item<0){item=0}else{if(item>=children.length){item=children.length-1}}this.focusedchild_=item;children[item].el_.focus()}};return menu}(_component2["default"]);_component2["default"].registercomponent("menu",menu);exports["default"]=menu},{"5":5,"81":81,"82":82,"83":83}],50:[function(_dereq_,module,exports){exports.__esmodule=true;var _dom=_dereq_(81);var dom=_interoprequirewildcard(_dom);var _fn=_dereq_(83);var fn=_interoprequirewildcard(_fn);var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var modal_class_name="vjs-modal-dialog";var esc=27;var modaldialog=function(_component){_inherits(modaldialog,_component);function modaldialog(player,options){_classcallcheck(this,modaldialog);var _this=_possibleconstructorreturn(this,_component.call(this,player,options));_this.opened_=_this.hasbeenopened_=_this.hasbeenfilled_=false;_this.closeable(!_this.options_.uncloseable);_this.content(_this.options_.content);_this.contentel_=dom.createel("div",{classname:modal_class_name+"-content"},{role:"document"});_this.descel_=dom.createel("p",{classname:modal_class_name+"-description vjs-offscreen",id:_this.el().getattribute("aria-describedby")});dom.textcontent(_this.descel_,_this.description());_this.el_.appendchild(_this.descel_);_this.el_.appendchild(_this.contentel_);return _this}modaldialog.prototype.createel=function createel(){return _component.prototype.createel.call(this,"div",{classname:this.buildcssclass(),tabindex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),"role":"dialog"})};modaldialog.prototype.buildcssclass=function buildcssclass(){return modal_class_name+" vjs-hidden "+_component.prototype.buildcssclass.call(this)};modaldialog.prototype.handlekeypress=function handlekeypress(e){if(e.which===esc&&this.closeable()){this.close()}};modaldialog.prototype.label=function label(){return this.options_.label||this.localize("modal window")};modaldialog.prototype.description=function description(){var desc=this.options_.description||this.localize("this is a modal window.");if(this.closeable()){desc+=" "+this.localize("this modal can be closed by pressing the escape key or activating the close button.")}return desc};modaldialog.prototype.open=function open(){if(!this.opened_){var player=this.player();this.trigger("beforemodalopen");this.opened_=true;if(this.options_.fillalways||!this.hasbeenopened_&&!this.hasbeenfilled_){this.fill()}this.wasplaying_=!player.paused();if(this.options_.pauseonopen&&this.wasplaying_){player.pause()}if(this.closeable()){this.on(this.el_.ownerdocument,"keydown",fn.bind(this,this.handlekeypress))}player.controls(false);this.show();this.el().setattribute("aria-hidden","false");this.trigger("modalopen");this.hasbeenopened_=true}return this};modaldialog.prototype.opened=function opened(value){if(typeof value==="boolean"){this[value?"open":"close"]()}return this.opened_ };modaldialog.prototype.close=function close(){if(this.opened_){var player=this.player();this.trigger("beforemodalclose");this.opened_=false;if(this.wasplaying_&&this.options_.pauseonopen){player.play()}if(this.closeable()){this.off(this.el_.ownerdocument,"keydown",fn.bind(this,this.handlekeypress))}player.controls(true);this.hide();this.el().setattribute("aria-hidden","true");this.trigger("modalclose");if(this.options_.temporary){this.dispose()}}return this};modaldialog.prototype.closeable=function closeable(value){if(typeof value==="boolean"){var closeable=this.closeable_=!!value;var close=this.getchild("closebutton");if(closeable&&!close){var temp=this.contentel_;this.contentel_=this.el_;close=this.addchild("closebutton",{controltext:"close modal dialog"});this.contentel_=temp;this.on(close,"close",this.close)}if(!closeable&&close){this.off(close,"close",this.close);this.removechild(close);close.dispose()}}return this.closeable_};modaldialog.prototype.fill=function fill(){return this.fillwith(this.content())};modaldialog.prototype.fillwith=function fillwith(content){var contentel=this.contentel();var parentel=contentel.parentnode;var nextsiblingel=contentel.nextsibling;this.trigger("beforemodalfill");this.hasbeenfilled_=true;parentel.removechild(contentel);this.empty();dom.insertcontent(contentel,content);this.trigger("modalfill");if(nextsiblingel){parentel.insertbefore(contentel,nextsiblingel)}else{parentel.appendchild(contentel)}return this};modaldialog.prototype.empty=function empty(){this.trigger("beforemodalempty");dom.emptyel(this.contentel());this.trigger("modalempty");return this};modaldialog.prototype.content=function content(value){if(typeof value!=="undefined"){this.content_=value}return this.content_};return modaldialog}(_component2["default"]);modaldialog.prototype.options_={pauseonopen:true,temporary:true};_component2["default"].registercomponent("modaldialog",modaldialog);exports["default"]=modaldialog},{"5":5,"81":81,"83":83}],51:[function(_dereq_,module,exports){exports.__esmodule=true;var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _document=_dereq_(94);var _document2=_interoprequiredefault(_document);var _window=_dereq_(95);var _window2=_interoprequiredefault(_window);var _events=_dereq_(82);var events=_interoprequirewildcard(_events);var _dom=_dereq_(81);var dom=_interoprequirewildcard(_dom);var _fn=_dereq_(83);var fn=_interoprequirewildcard(_fn);var _guid=_dereq_(85);var guid=_interoprequirewildcard(_guid);var _browser=_dereq_(78);var browser=_interoprequirewildcard(_browser);var _log=_dereq_(86);var _log2=_interoprequiredefault(_log);var _totitlecase=_dereq_(91);var _totitlecase2=_interoprequiredefault(_totitlecase);var _timeranges=_dereq_(90);var _buffer=_dereq_(79);var _stylesheet=_dereq_(89);var stylesheet=_interoprequirewildcard(_stylesheet);var _fullscreenapi=_dereq_(44);var _fullscreenapi2=_interoprequiredefault(_fullscreenapi);var _mediaerror=_dereq_(46);var _mediaerror2=_interoprequiredefault(_mediaerror);var _tuple=_dereq_(97);var _tuple2=_interoprequiredefault(_tuple);var _obj=_dereq_(88);var _mergeoptions=_dereq_(87);var _mergeoptions2=_interoprequiredefault(_mergeoptions);var _texttracklistconverter=_dereq_(69);var _texttracklistconverter2=_interoprequiredefault(_texttracklistconverter);var _modaldialog=_dereq_(50);var _modaldialog2=_interoprequiredefault(_modaldialog);var _tech=_dereq_(62);var _tech2=_interoprequiredefault(_tech);var _audiotracklist=_dereq_(63);var _audiotracklist2=_interoprequiredefault(_audiotracklist);var _videotracklist=_dereq_(76);var _videotracklist2=_interoprequiredefault(_videotracklist);_dereq_(61);_dereq_(59);_dereq_(55);_dereq_(68);_dereq_(45);_dereq_(1);_dereq_(4);_dereq_(8);_dereq_(41);_dereq_(71);_dereq_(60);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var tech_events_retrigger=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"]; var player=function(_component){_inherits(player,_component);function player(tag,options,ready){_classcallcheck(this,player);tag.id=tag.id||"vjs_video_"+guid.newguid();options=(0,_obj.assign)(player.gettagsettings(tag),options);options.initchildren=false;options.createel=false;options.reporttouchactivity=false;if(!options.language){if(typeof tag.closest==="function"){var closest=tag.closest("[lang]");if(closest){options.language=closest.getattribute("lang")}}else{var element=tag;while(element&&element.nodetype===1){if(dom.getelattributes(element).hasownproperty("lang")){options.language=element.getattribute("lang");break}element=element.parentnode}}}var _this=_possibleconstructorreturn(this,_component.call(this,null,options,ready));if(!_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=tag;_this.tagattributes=tag&&dom.getelattributes(tag);_this.language(_this.options_.language);if(options.languages){var languagestolower={};object.getownpropertynames(options.languages).foreach(function(name){languagestolower[name.tolowercase()]=options.languages[name]});_this.languages_=languagestolower}else{_this.languages_=player.prototype.options_.languages}_this.cache_={};_this.poster_=options.poster||"";_this.controls_=!!options.controls;tag.controls=false;_this.scrubbing_=false;_this.el_=_this.createel();var playeroptionscopy=(0,_mergeoptions2["default"])(_this.options_);if(options.plugins){var plugins=options.plugins;object.getownpropertynames(plugins).foreach(function(name){if(typeof this[name]==="function"){this[name](plugins[name])}else{_log2["default"].error("unable to find plugin:",name)}},_this)}_this.options_.playeroptions=playeroptionscopy;_this.initchildren();_this.isaudio(tag.nodename.tolowercase()==="audio");if(_this.controls()){_this.addclass("vjs-controls-enabled")}else{_this.addclass("vjs-controls-disabled")}_this.el_.setattribute("role","region");if(_this.isaudio()){_this.el_.setattribute("aria-label","audio player")}else{_this.el_.setattribute("aria-label","video player")}if(_this.isaudio()){_this.addclass("vjs-audio")}if(_this.flexnotsupported_()){_this.addclass("vjs-no-flex")}if(!browser.is_ios){_this.addclass("vjs-workinghover")}player.players[_this.id_]=_this;var majorversion="5.20.2".split(".")[0];_this.addclass("vjs-v"+majorversion);_this.useractive(true);_this.reportuseractivity();_this.listenforuseractivity_();_this.on("fullscreenchange",_this.handlefullscreenchange_);_this.on("stageclick",_this.handlestageclick_);return _this}player.prototype.dispose=function dispose(){this.trigger("dispose");this.off("dispose");if(this.styleel_&&this.styleel_.parentnode){this.styleel_.parentnode.removechild(this.styleel_)}player.players[this.id_]=null;if(this.tag&&this.tag.player){this.tag.player=null}if(this.el_&&this.el_.player){this.el_.player=null}if(this.tech_){this.tech_.dispose()}_component.prototype.dispose.call(this)};player.prototype.createel=function createel(){var tag=this.tag;var el=void 0;var playerelingest=this.playerelingest_=tag.parentnode&&tag.parentnode.hasattribute&&tag.parentnode.hasattribute("data-vjs-player");if(playerelingest){el=this.el_=tag.parentnode}else{el=this.el_=_component.prototype.createel.call(this,"div")}tag.setattribute("tabindex","-1");tag.removeattribute("width");tag.removeattribute("height");var attrs=dom.getelattributes(tag);object.getownpropertynames(attrs).foreach(function(attr){if(attr==="class"){el.classname+=" "+attrs[attr]}else{el.setattribute(attr,attrs[attr])}});tag.playerid=tag.id;tag.id+="_html5_api";tag.classname="vjs-tech";tag.player=el.player=this;this.addclass("vjs-paused");if(_window2["default"].videojs_no_dynamic_style!==true){this.styleel_=stylesheet.createstyleelement("vjs-styles-dimensions");var defaultsstyleel=dom.$(".vjs-styles-defaults");var head=dom.$("head");head.insertbefore(this.styleel_,defaultsstyleel?defaultsstyleel.nextsibling:head.firstchild)}this.width(this.options_.width);this.height(this.options_.height);this.fluid(this.options_.fluid);this.aspectratio(this.options_.aspectratio);var links=tag.getelementsbytagname("a");for(var i=0;i=0){techel.width=_width}if(_height>=0){techel.height=_height}}return}var width=void 0;var height=void 0;var aspectratio=void 0;var idclass=void 0;if(this.aspectratio_!==undefined&&this.aspectratio_!=="auto"){aspectratio=this.aspectratio_}else{if(this.videowidth()>0){aspectratio=this.videowidth()+":"+this.videoheight()}else{aspectratio="16:9"}}var ratioparts=aspectratio.split(":");var ratiomultiplier=ratioparts[1]/ratioparts[0];if(this.width_!==undefined){width=this.width_}else{if(this.height_!==undefined){width=this.height_/ratiomultiplier}else{width=this.videowidth()||300}}if(this.height_!==undefined){height=this.height_}else{height=width*ratiomultiplier}if(/^[^a-za-z]/.test(this.id())){idclass="dimensions-"+this.id()}else{idclass=this.id()+"-dimensions"}this.addclass(idclass);stylesheet.settextcontent(this.styleel_,"\n ."+idclass+" {\n width: "+width+"px;\n height: "+height+"px;\n }\n\n ."+idclass+".vjs-fluid {\n padding-top: "+ratiomultiplier*100+"%;\n }\n ")};player.prototype.loadtech_=function loadtech_(techname,source){var _this2=this;if(this.tech_){this.unloadtech_()}if(techname!=="html5"&&this.tag){_tech2["default"].gettech("html5").disposemediaelement(this.tag);this.tag.player=null;this.tag=null}this.techname_=techname;this.isready_=false;var techoptions=(0,_obj.assign)({source:source,"nativecontrolsfortouch":this.options_.nativecontrolsfortouch,"playerid":this.id(),"techid":this.id()+"_"+techname+"_api","videotracks":this.videotracks_,"texttracks":this.texttracks_,"audiotracks":this.audiotracks_,"autoplay":this.options_.autoplay,"playsinline":this.options_.playsinline,"preload":this.options_.preload,"loop":this.options_.loop,"muted":this.options_.muted,"poster":this.poster(),"language":this.language(),"playerelingest":this.playerelingest_||false,"vtt.js":this.options_["vtt.js"]},this.options_[techname.tolowercase()]);if(this.tag){techoptions.tag=this.tag}if(source){this.currenttype_=source.type;if(source.src===this.cache_.src&&this.cache_.currenttime>0){techoptions.starttime=this.cache_.currenttime}this.cache_.sources=null;this.cache_.source=source;this.cache_.src=source.src}var techcomponent=_tech2["default"].gettech(techname);if(!techcomponent){techcomponent=_component2["default"].getcomponent(techname)}this.tech_=new techcomponent(techoptions);this.tech_.ready(fn.bind(this,this.handletechready_),true);_texttracklistconverter2["default"].jsontotexttracks(this.texttracksjson_||[],this.tech_);tech_events_retrigger.foreach(function(event){_this2.on(_this2.tech_,event,_this2["handletech"+(0,_totitlecase2["default"])(event)+"_"])});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_,"durationchange",this.handletechdurationchange_);this.on(this.tech_,"fullscreenchange",this.handletechfullscreenchange_);this.on(this.tech_,"error",this.handletecherror_);this.on(this.tech_,"loadedmetadata",this.updatestyleel_);this.on(this.tech_,"posterchange",this.handletechposterchange_);this.on(this.tech_,"textdata",this.handletechtextdata_);this.usingnativecontrols(this.techget_("controls"));if(this.controls()&&!this.usingnativecontrols()){this.addtechcontrolslisteners_()}if(this.tech_.el().parentnode!==this.el()&&(techname!=="html5"||!this.tag)){dom.insertelfirst(this.tech_.el(),this.el())}if(this.tag){this.tag.player=null;this.tag=null}};player.prototype.unloadtech_=function unloadtech_(){this.videotracks_=this.videotracks();this.texttracks_=this.texttracks();this.audiotracks_=this.audiotracks();this.texttracksjson_=_texttracklistconverter2["default"].texttrackstojson(this.tech_); this.isready_=false;this.tech_.dispose();this.tech_=false};player.prototype.tech=function tech(safety){if(safety&&safety.iwillnotusethisinplugins){return this.tech_}var errortext="\n please make sure that you are not using this inside of a plugin.\n to disable this alert and error, please pass in an object with\n `iwillnotusethisinplugins` to the `tech` method. see\n https://github.com/videojs/video.js/issues/2617 for more info.\n ";_window2["default"].alert(errortext);throw new error(errortext)};player.prototype.addtechcontrolslisteners_=function addtechcontrolslisteners_(){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_)};player.prototype.removetechcontrolslisteners_=function removetechcontrolslisteners_(){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_)};player.prototype.handletechready_=function handletechready_(){this.triggerready();if(this.cache_.volume){this.techcall_("setvolume",this.cache_.volume)}this.handletechposterchange_();this.handletechdurationchange_();if((this.src()||this.currentsrc())&&this.tag&&this.options_.autoplay&&this.paused()){try{delete this.tag.poster}catch(e){(0,_log2["default"])("deleting tag.poster throws in some browsers",e)}this.play()}};player.prototype.handletechloadstart_=function handletechloadstart_(){this.removeclass("vjs-ended");this.removeclass("vjs-seeking");this.error(null);if(!this.paused()){this.trigger("loadstart");this.trigger("firstplay")}else{this.hasstarted(false);this.trigger("loadstart")}};player.prototype.hasstarted=function hasstarted(_hasstarted){if(_hasstarted!==undefined){if(this.hasstarted_!==_hasstarted){this.hasstarted_=_hasstarted;if(_hasstarted){this.addclass("vjs-has-started");this.trigger("firstplay")}else{this.removeclass("vjs-has-started")}}return this}return !!this.hasstarted_};player.prototype.handletechplay_=function handletechplay_(){this.removeclass("vjs-ended");this.removeclass("vjs-paused");this.addclass("vjs-playing");this.hasstarted(true);this.trigger("play")};player.prototype.handletechwaiting_=function handletechwaiting_(){var _this3=this;this.addclass("vjs-waiting");this.trigger("waiting");this.one("timeupdate",function(){return _this3.removeclass("vjs-waiting")})};player.prototype.handletechcanplay_=function handletechcanplay_(){this.removeclass("vjs-waiting");this.trigger("canplay")};player.prototype.handletechcanplaythrough_=function handletechcanplaythrough_(){this.removeclass("vjs-waiting");this.trigger("canplaythrough")};player.prototype.handletechplaying_=function handletechplaying_(){this.removeclass("vjs-waiting");this.trigger("playing")};player.prototype.handletechseeking_=function handletechseeking_(){this.addclass("vjs-seeking");this.trigger("seeking")};player.prototype.handletechseeked_=function handletechseeked_(){this.removeclass("vjs-seeking");this.trigger("seeked")};player.prototype.handletechfirstplay_=function handletechfirstplay_(){if(this.options_.starttime){_log2["default"].warn("passing the `starttime` option to the player will be deprecated in 6.0");this.currenttime(this.options_.starttime)}this.addclass("vjs-has-started");this.trigger("firstplay")};player.prototype.handletechpause_=function handletechpause_(){this.removeclass("vjs-playing");this.addclass("vjs-paused");this.trigger("pause")};player.prototype.handletechended_=function handletechended_(){this.addclass("vjs-ended");if(this.options_.loop){this.currenttime(0);this.play()}else{if(!this.paused()){this.pause()}}this.trigger("ended")};player.prototype.handletechdurationchange_=function handletechdurationchange_(){this.duration(this.techget_("duration"))};player.prototype.handletechclick_=function handletechclick_(event){if(event.button!==0){return}if(this.controls()){if(this.paused()){this.play()}else{this.pause()}}};player.prototype.handletechtap_=function handletechtap_(){this.useractive(!this.useractive())};player.prototype.handletechtouchstart_=function handletechtouchstart_(){this.userwasactive=this.useractive()};player.prototype.handletechtouchmove_=function handletechtouchmove_(){if(this.userwasactive){this.reportuseractivity()}};player.prototype.handletechtouchend_=function handletechtouchend_(event){event.preventdefault()};player.prototype.handlefullscreenchange_=function handlefullscreenchange_(){if(this.isfullscreen()){this.addclass("vjs-fullscreen")}else{this.removeclass("vjs-fullscreen")}};player.prototype.handlestageclick_=function handlestageclick_(){this.reportuseractivity()};player.prototype.handletechfullscreenchange_=function handletechfullscreenchange_(event,data){if(data){this.isfullscreen(data.isfullscreen) }this.trigger("fullscreenchange")};player.prototype.handletecherror_=function handletecherror_(){var error=this.tech_.error();this.error(error)};player.prototype.handletechtextdata_=function handletechtextdata_(){var data=null;if(arguments.length>1){data=arguments[1]}this.trigger("textdata",data)};player.prototype.getcache=function getcache(){return this.cache_};player.prototype.techcall_=function techcall_(method,arg){if(this.tech_&&!this.tech_.isready_){this.tech_.ready(function(){this[method](arg)},true)}else{try{if(this.tech_){this.tech_[method](arg)}}catch(e){(0,_log2["default"])(e);throw e}}};player.prototype.techget_=function techget_(method){if(this.tech_&&this.tech_.isready_){try{return this.tech_[method]()}catch(e){if(this.tech_[method]===undefined){(0,_log2["default"])("video.js: "+method+" method not defined for "+this.techname_+" playback technology.",e)}else{if(e.name==="typeerror"){(0,_log2["default"])("video.js: "+method+" unavailable on "+this.techname_+" playback technology element.",e);this.tech_.isready_=false}else{(0,_log2["default"])(e)}}throw e}}return};player.prototype.play=function play(){if(this.src()||this.currentsrc()){this.techcall_("play")}else{this.tech_.one("loadstart",function(){this.play()})}return this};player.prototype.pause=function pause(){this.techcall_("pause");return this};player.prototype.paused=function paused(){return this.techget_("paused")===false?false:true};player.prototype.scrubbing=function scrubbing(isscrubbing){if(isscrubbing!==undefined){this.scrubbing_=!!isscrubbing;if(isscrubbing){this.addclass("vjs-scrubbing")}else{this.removeclass("vjs-scrubbing")}return this}return this.scrubbing_};player.prototype.currenttime=function currenttime(seconds){if(seconds!==undefined){this.techcall_("setcurrenttime",seconds);return this}this.cache_.currenttime=this.techget_("currenttime")||0;return this.cache_.currenttime};player.prototype.duration=function duration(seconds){if(seconds===undefined){return this.cache_.duration!==undefined?this.cache_.duration:nan}seconds=parsefloat(seconds);if(seconds<0){seconds=infinity}if(seconds!==this.cache_.duration){this.cache_.duration=seconds;if(seconds===infinity){this.addclass("vjs-live")}else{this.removeclass("vjs-live")}this.trigger("durationchange")}return this};player.prototype.remainingtime=function remainingtime(){return this.duration()-this.currenttime()};player.prototype.buffered=function buffered(){var buffered=this.techget_("buffered");if(!buffered||!buffered.length){buffered=(0,_timeranges.createtimerange)(0,0)}return buffered};player.prototype.bufferedpercent=function bufferedpercent(){return(0,_buffer.bufferedpercent)(this.buffered(),this.duration())};player.prototype.bufferedend=function bufferedend(){var buffered=this.buffered();var duration=this.duration();var end=buffered.end(buffered.length-1);if(end>duration){end=duration}return end};player.prototype.volume=function volume(percentasdecimal){var vol=void 0;if(percentasdecimal!==undefined){vol=math.max(0,math.min(1,parsefloat(percentasdecimal)));this.cache_.volume=vol;this.techcall_("setvolume",vol);return this}vol=parsefloat(this.techget_("volume"));return isnan(vol)?1:vol};player.prototype.muted=function muted(_muted){if(_muted!==undefined){this.techcall_("setmuted",_muted);return this}return this.techget_("muted")||false};player.prototype.supportsfullscreen=function supportsfullscreen(){return this.techget_("supportsfullscreen")||false};player.prototype.isfullscreen=function isfullscreen(isfs){if(isfs!==undefined){this.isfullscreen_=!!isfs;return this}return !!this.isfullscreen_};player.prototype.requestfullscreen=function requestfullscreen(){var fsapi=_fullscreenapi2["default"];this.isfullscreen(true);if(fsapi.requestfullscreen){events.on(_document2["default"],fsapi.fullscreenchange,fn.bind(this,function documentfullscreenchange(e){this.isfullscreen(_document2["default"][fsapi.fullscreenelement]);if(this.isfullscreen()===false){events.off(_document2["default"],fsapi.fullscreenchange,documentfullscreenchange)}this.trigger("fullscreenchange")}));this.el_[fsapi.requestfullscreen]()}else{if(this.tech_.supportsfullscreen()){this.techcall_("enterfullscreen")}else{this.enterfullwindow();this.trigger("fullscreenchange")}}return this};player.prototype.exitfullscreen=function exitfullscreen(){var fsapi=_fullscreenapi2["default"];this.isfullscreen(false);if(fsapi.requestfullscreen){_document2["default"][fsapi.exitfullscreen]()}else{if(this.tech_.supportsfullscreen()){this.techcall_("exitfullscreen")}else{this.exitfullwindow();this.trigger("fullscreenchange")}}return this};player.prototype.enterfullwindow=function enterfullwindow(){this.isfullwindow=true;this.docorigoverflow=_document2["default"].documentelement.style.overflow;events.on(_document2["default"],"keydown",fn.bind(this,this.fullwindowonesckey));_document2["default"].documentelement.style.overflow="hidden";dom.addelclass(_document2["default"].body,"vjs-full-window");this.trigger("enterfullwindow")};player.prototype.fullwindowonesckey=function fullwindowonesckey(event){if(event.keycode===27){if(this.isfullscreen()===true){this.exitfullscreen() }else{this.exitfullwindow()}}};player.prototype.exitfullwindow=function exitfullwindow(){this.isfullwindow=false;events.off(_document2["default"],"keydown",this.fullwindowonesckey);_document2["default"].documentelement.style.overflow=this.docorigoverflow;dom.removeelclass(_document2["default"].body,"vjs-full-window");this.trigger("exitfullwindow")};player.prototype.canplaytype=function canplaytype(type){var can=void 0;for(var i=0,j=this.options_.techorder;i0){inactivitytimeout=this.settimeout(function(){if(!this.useractivity_){this.useractive(false)}},timeout)}}},250)};player.prototype.playbackrate=function playbackrate(rate){if(rate!==undefined){this.techcall_("setplaybackrate",rate);return this}if(this.tech_&&this.tech_.featuresplaybackrate){return this.techget_("playbackrate")}return 1};player.prototype.isaudio=function isaudio(bool){if(bool!==undefined){this.isaudio_=!!bool;return this}return !!this.isaudio_};player.prototype.videotracks=function videotracks(){if(!this.tech_){this.videotracks_=this.videotracks_||new _videotracklist2["default"]();return this.videotracks_}return this.tech_.videotracks()};player.prototype.audiotracks=function audiotracks(){if(!this.tech_){this.audiotracks_=this.audiotracks_||new _audiotracklist2["default"]();return this.audiotracks_}return this.tech_.audiotracks()};player.prototype.texttracks=function texttracks(){if(this.tech_){return this.tech_.texttracks()}};player.prototype.remotetexttracks=function remotetexttracks(){if(this.tech_){return this.tech_.remotetexttracks()}};player.prototype.remotetexttrackels=function remotetexttrackels(){if(this.tech_){return this.tech_.remotetexttrackels()}};player.prototype.addtexttrack=function addtexttrack(kind,label,language){if(this.tech_){return this.tech_.addtexttrack(kind,label,language)}};player.prototype.addremotetexttrack=function addremotetexttrack(options,manualcleanup){if(this.tech_){return this.tech_.addremotetexttrack(options,manualcleanup)}};player.prototype.removeremotetexttrack=function removeremotetexttrack(){var _ref3=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_ref3$track=_ref3.track,track=_ref3$track===undefined?arguments[0]:_ref3$track; if(this.tech_){return this.tech_.removeremotetexttrack(track)}};player.prototype.getvideoplaybackquality=function getvideoplaybackquality(){return this.techget_("getvideoplaybackquality")};player.prototype.videowidth=function videowidth(){return this.tech_&&this.tech_.videowidth&&this.tech_.videowidth()||0};player.prototype.videoheight=function videoheight(){return this.tech_&&this.tech_.videoheight&&this.tech_.videoheight()||0};player.prototype.language=function language(code){if(code===undefined){return this.language_}this.language_=string(code).tolowercase();return this};player.prototype.languages=function languages(){return(0,_mergeoptions2["default"])(player.prototype.options_.languages,this.languages_)};player.prototype.tojson=function tojson(){var options=(0,_mergeoptions2["default"])(this.options_);var tracks=options.tracks;options.tracks=[];for(var i=0;i1&&arguments[1]!==undefined?arguments[1]:{};_classcallcheck(this,popupbutton);var _this=_possibleconstructorreturn(this,_clickablecomponent.call(this,player,options));_this.update();return _this}popupbutton.prototype.update=function update(){var popup=this.createpopup();if(this.popup){this.removechild(this.popup)}this.popup=popup;this.addchild(popup);if(this.items&&this.items.length===0){this.hide()}else{if(this.items&&this.items.length>1){this.show()}}};popupbutton.prototype.createpopup=function createpopup(){};popupbutton.prototype.createel=function createel(){return _clickablecomponent.prototype.createel.call(this,"div",{classname:this.buildcssclass()})};popupbutton.prototype.buildcssclass=function buildcssclass(){var menubuttonclass="vjs-menu-button";if(this.options_.inline===true){menubuttonclass+="-inline"}else{menubuttonclass+="-popup"}return"vjs-menu-button "+menubuttonclass+" "+_clickablecomponent.prototype.buildcssclass.call(this)};return popupbutton}(_clickablecomponent2["default"]);_component2["default"].registercomponent("popupbutton",popupbutton);exports["default"]=popupbutton},{"3":3,"5":5}],54:[function(_dereq_,module,exports){exports.__esmodule=true;var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _dom=_dereq_(81);var dom=_interoprequirewildcard(_dom);var _fn=_dereq_(83);var fn=_interoprequirewildcard(_fn);var _events=_dereq_(82);var events=_interoprequirewildcard(_events);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var popup=function(_component){_inherits(popup,_component);function popup(){_classcallcheck(this,popup);return _possibleconstructorreturn(this,_component.apply(this,arguments))}popup.prototype.additem=function additem(component){this.addchild(component);component.on("click",fn.bind(this,function(){this.unlockshowing()}))};popup.prototype.createel=function createel(){var contenteltype=this.options_.contenteltype||"ul";this.contentel_=dom.createel(contenteltype,{classname:"vjs-menu-content"});var el=_component.prototype.createel.call(this,"div",{append:this.contentel_,classname:"vjs-menu"});el.appendchild(this.contentel_);events.on(el,"click",function(event){event.preventdefault();event.stopimmediatepropagation()});return el};return popup}(_component2["default"]);_component2["default"].registercomponent("popup",popup);exports["default"]=popup},{"5":5,"81":81,"82":82,"83":83}],55:[function(_dereq_,module,exports){exports.__esmodule=true;var _clickablecomponent=_dereq_(3);var _clickablecomponent2=_interoprequiredefault(_clickablecomponent);var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _fn=_dereq_(83);var fn=_interoprequirewildcard(_fn);var _dom=_dereq_(81);var dom=_interoprequirewildcard(_dom);var _browser=_dereq_(78);var browser=_interoprequirewildcard(_browser);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}}); if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var posterimage=function(_clickablecomponent){_inherits(posterimage,_clickablecomponent);function posterimage(player,options){_classcallcheck(this,posterimage);var _this=_possibleconstructorreturn(this,_clickablecomponent.call(this,player,options));_this.update();player.on("posterchange",fn.bind(_this,_this.update));return _this}posterimage.prototype.dispose=function dispose(){this.player().off("posterchange",this.update);_clickablecomponent.prototype.dispose.call(this)};posterimage.prototype.createel=function createel(){var el=dom.createel("div",{classname:"vjs-poster",tabindex:-1});if(!browser.background_size_supported){this.fallbackimg_=dom.createel("img");el.appendchild(this.fallbackimg_)}return el};posterimage.prototype.update=function update(event){var url=this.player().poster();this.setsrc(url);if(url){this.show()}else{this.hide()}};posterimage.prototype.setsrc=function setsrc(url){if(this.fallbackimg_){this.fallbackimg_.src=url}else{var backgroundimage="";if(url){backgroundimage='url("'+url+'")'}this.el_.style.backgroundimage=backgroundimage}};posterimage.prototype.handleclick=function handleclick(event){if(!this.player_.controls()){return}if(this.player_.paused()){this.player_.play()}else{this.player_.pause()}};return posterimage}(_clickablecomponent2["default"]);_component2["default"].registercomponent("posterimage",posterimage);exports["default"]=posterimage},{"3":3,"5":5,"78":78,"81":81,"83":83}],56:[function(_dereq_,module,exports){exports.__esmodule=true;exports.hasloaded=exports.autosetuptimeout=exports.autosetup=undefined;var _dom=_dereq_(81);var dom=_interoprequirewildcard(_dom);var _events=_dereq_(82);var events=_interoprequirewildcard(_events);var _document=_dereq_(94);var _document2=_interoprequiredefault(_document);var _window=_dereq_(95);var _window2=_interoprequiredefault(_window);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}var _windowloaded=false;var videojs=void 0;var autosetup=function autosetup(){if(!dom.isreal()){return}var vids=_document2["default"].getelementsbytagname("video");var audios=_document2["default"].getelementsbytagname("audio");var mediaels=[];if(vids&&vids.length>0){for(var i=0,e=vids.length;i0){for(var _i=0,_e=audios.length;_i<_e;_i++){mediaels.push(audios[_i])}}if(mediaels&&mediaels.length>0){for(var _i2=0,_e2=mediaels.length;_i2<_e2;_i2++){var mediael=mediaels[_i2];if(mediael&&mediael.getattribute){if(mediael.player===undefined){var options=mediael.getattribute("data-setup");if(options!==null){videojs(mediael)}}}else{autosetuptimeout(1);break}}}else{if(!_windowloaded){autosetuptimeout(1)}}};function autosetuptimeout(wait,vjs){if(vjs){videojs=vjs}_window2["default"].settimeout(autosetup,wait)}if(dom.isreal()&&_document2["default"].readystate==="complete"){_windowloaded=true}else{events.one(_window2["default"],"load",function(){_windowloaded=true})}var hasloaded=function hasloaded(){return _windowloaded};exports.autosetup=autosetup;exports.autosetuptimeout=autosetuptimeout;exports.hasloaded=hasloaded},{"81":81,"82":82,"94":94,"95":95}],57:[function(_dereq_,module,exports){exports.__esmodule=true;var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _dom=_dereq_(81);var dom=_interoprequirewildcard(_dom);var _obj=_dereq_(88);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var slider=function(_component){_inherits(slider,_component);function slider(player,options){_classcallcheck(this,slider);var _this=_possibleconstructorreturn(this,_component.call(this,player,options)); _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(player,"controlsvisible",_this.update);_this.on(player,_this.playerevent,_this.update);return _this}slider.prototype.createel=function createel(type){var props=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var attributes=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};props.classname=props.classname+" vjs-slider";props=(0,_obj.assign)({tabindex:0},props);attributes=(0,_obj.assign)({"role":"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,"tabindex":0},attributes);return _component.prototype.createel.call(this,type,props,attributes)};slider.prototype.handlemousedown=function handlemousedown(event){var doc=this.bar.el_.ownerdocument;event.preventdefault();dom.blocktextselection();this.addclass("vjs-sliding");this.trigger("slideractive");this.on(doc,"mousemove",this.handlemousemove);this.on(doc,"mouseup",this.handlemouseup);this.on(doc,"touchmove",this.handlemousemove);this.on(doc,"touchend",this.handlemouseup);this.handlemousemove(event)};slider.prototype.handlemousemove=function handlemousemove(event){};slider.prototype.handlemouseup=function handlemouseup(){var doc=this.bar.el_.ownerdocument;dom.unblocktextselection();this.removeclass("vjs-sliding");this.trigger("sliderinactive");this.off(doc,"mousemove",this.handlemousemove);this.off(doc,"mouseup",this.handlemouseup);this.off(doc,"touchmove",this.handlemousemove);this.off(doc,"touchend",this.handlemouseup);this.update()};slider.prototype.update=function update(){if(!this.el_){return}var progress=this.getpercent();var bar=this.bar;if(!bar){return}if(typeof progress!=="number"||progress!==progress||progress<0||progress===infinity){progress=0}var percentage=(progress*100).tofixed(2)+"%";if(this.vertical()){bar.el().style.height=percentage}else{bar.el().style.width=percentage}};slider.prototype.calculatedistance=function calculatedistance(event){var position=dom.getpointerposition(this.el_,event);if(this.vertical()){return position.y}return position.x};slider.prototype.handlefocus=function handlefocus(){this.on(this.bar.el_.ownerdocument,"keydown",this.handlekeypress)};slider.prototype.handlekeypress=function handlekeypress(event){if(event.which===37||event.which===40){event.preventdefault();this.stepback()}else{if(event.which===38||event.which===39){event.preventdefault();this.stepforward()}}};slider.prototype.handleblur=function handleblur(){this.off(this.bar.el_.ownerdocument,"keydown",this.handlekeypress)};slider.prototype.handleclick=function handleclick(event){event.stopimmediatepropagation();event.preventdefault()};slider.prototype.vertical=function vertical(bool){if(bool===undefined){return this.vertical_||false}this.vertical_=!!bool;if(this.vertical_){this.addclass("vjs-slider-vertical")}else{this.addclass("vjs-slider-horizontal")}return this};return slider}(_component2["default"]);_component2["default"].registercomponent("slider",slider);exports["default"]=slider},{"5":5,"81":81,"88":88}],58:[function(_dereq_,module,exports){exports.__esmodule=true;function flashrtmpdecorator(flash){flash.streamingformats={"rtmp/mp4":"mp4","rtmp/flv":"flv"};flash.streamfromparts=function(connection,stream){return connection+"&"+stream};flash.streamtoparts=function(src){var parts={connection:"",stream:""};if(!src){return parts}var connend=src.search(/&(?!\w+=)/);var streambegin=void 0;if(connend!==-1){streambegin=connend+1}else{connend=streambegin=src.lastindexof("/")+1;if(connend===0){connend=streambegin=src.length}}parts.connection=src.substring(0,connend);parts.stream=src.substring(streambegin,src.length);return parts};flash.isstreamingtype=function(srctype){return srctype in flash.streamingformats};flash.rtmp_re=/^rtmp[set]?:\/\//i;flash.isstreamingsrc=function(src){return flash.rtmp_re.test(src)};flash.rtmpsourcehandler={};flash.rtmpsourcehandler.canplaytype=function(type){if(flash.isstreamingtype(type)){return"maybe"}return""};flash.rtmpsourcehandler.canhandlesource=function(source,options){var can=flash.rtmpsourcehandler.canplaytype(source.type);if(can){return can}if(flash.isstreamingsrc(source.src)){return"maybe"}return""};flash.rtmpsourcehandler.handlesource=function(source,tech,options){var srcparts=flash.streamtoparts(source.src);tech.setrtmpconnection(srcparts.connection);tech.setrtmpstream(srcparts.stream)};flash.registersourcehandler(flash.rtmpsourcehandler);return flash}exports["default"]=flashrtmpdecorator},{}],59:[function(_dereq_,module,exports){exports.__esmodule=true;var _tech=_dereq_(62);var _tech2=_interoprequiredefault(_tech);var _dom=_dereq_(81);var dom=_interoprequirewildcard(_dom);var _url=_dereq_(92);var url=_interoprequirewildcard(_url);var _timeranges=_dereq_(90);var _flashrtmp=_dereq_(58);var _flashrtmp2=_interoprequiredefault(_flashrtmp); var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _window=_dereq_(95);var _window2=_interoprequiredefault(_window);var _obj=_dereq_(88);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var navigator=_window2["default"].navigator;var flash=function(_tech){_inherits(flash,_tech);function flash(options,ready){_classcallcheck(this,flash);var _this=_possibleconstructorreturn(this,_tech.call(this,options,ready));if(options.source){_this.ready(function(){this.setsource(options.source)},true)}if(options.starttime){_this.ready(function(){this.load();this.play();this.currenttime(options.starttime)},true)}_window2["default"].videojs=_window2["default"].videojs||{};_window2["default"].videojs.flash=_window2["default"].videojs.flash||{};_window2["default"].videojs.flash.onready=flash.onready;_window2["default"].videojs.flash.onevent=flash.onevent;_window2["default"].videojs.flash.onerror=flash.onerror;_this.on("seeked",function(){this.lastseektarget_=undefined});return _this}flash.prototype.createel=function createel(){var options=this.options_;if(!options.swf){var ver="5.4.1";options.swf="//vjs.zencdn.net/swf/"+ver+"/video-js.swf"}var objid=options.techid;var flashvars=(0,_obj.assign)({readyfunction:"videojs.flash.onready",eventproxyfunction:"videojs.flash.onevent",erroreventproxyfunction:"videojs.flash.onerror",autoplay:options.autoplay,preload:options.preload,loop:options.loop,muted:options.muted},options.flashvars);var params=(0,_obj.assign)({wmode:"opaque",bgcolor:"#000000"},options.params);var attributes=(0,_obj.assign)({id:objid,name:objid,"class":"vjs-tech"},options.attributes);this.el_=flash.embed(options.swf,flashvars,params,attributes);this.el_.tech=this;return this.el_};flash.prototype.play=function play(){if(this.ended()){this.setcurrenttime(0)}this.el_.vjs_play()};flash.prototype.pause=function pause(){this.el_.vjs_pause()};flash.prototype.src=function src(_src){if(_src===undefined){return this.currentsrc()}return this.setsrc(_src)};flash.prototype.setsrc=function setsrc(src){var _this2=this;src=url.getabsoluteurl(src);this.el_.vjs_src(src);if(this.autoplay()){this.settimeout(function(){return _this2.play()},0)}};flash.prototype.seeking=function seeking(){return this.lastseektarget_!==undefined};flash.prototype.setcurrenttime=function setcurrenttime(time){var seekable=this.seekable();if(seekable.length){time=time>seekable.start(0)?time:seekable.start(0);time=time=0?duration:infinity};flash.prototype.load=function load(){this.el_.vjs_load()};flash.prototype.poster=function poster(){this.el_.vjs_getproperty("poster")};flash.prototype.setposter=function setposter(){};flash.prototype.seekable=function seekable(){var duration=this.duration();if(duration===0){return(0,_timeranges.createtimerange)()}return(0,_timeranges.createtimerange)(0,duration)};flash.prototype.buffered=function buffered(){var ranges=this.el_.vjs_getproperty("buffered");if(ranges.length===0){return(0,_timeranges.createtimerange)()}return(0,_timeranges.createtimerange)(ranges[0][0],ranges[0][1])};flash.prototype.supportsfullscreen=function supportsfullscreen(){return false};flash.prototype.enterfullscreen=function enterfullscreen(){return false};flash.prototype.getvideoplaybackquality=function getvideoplaybackquality(){var videoplaybackquality=this.el_.vjs_getproperty("getvideoplaybackquality"); if(_window2["default"].performance&&typeof _window2["default"].performance.now==="function"){videoplaybackquality.creationtime=_window2["default"].performance.now()}else{if(_window2["default"].performance&&_window2["default"].performance.timing&&typeof _window2["default"].performance.timing.navigationstart==="number"){videoplaybackquality.creationtime=_window2["default"].date.now()-_window2["default"].performance.timing.navigationstart}}return videoplaybackquality};return flash}(_tech2["default"]);var _api=flash.prototype;var _readwrite="rtmpconnection,rtmpstream,preload,defaultplaybackrate,playbackrate,autoplay,loop,mediagroup,controller,controls,volume,muted,defaultmuted".split(",");var _readonly="networkstate,readystate,initialtime,startoffsettime,paused,ended,videowidth,videoheight".split(",");function _createsetter(attr){var attrupper=attr.charat(0).touppercase()+attr.slice(1);_api["set"+attrupper]=function(val){return this.el_.vjs_setproperty(attr,val)}}function _creategetter(attr){_api[attr]=function(){return this.el_.vjs_getproperty(attr)}}for(var i=0;i<_readwrite.length;i++){_creategetter(_readwrite[i]);_createsetter(_readwrite[i])}for(var _i=0;_i<_readonly.length;_i++){_creategetter(_readonly[_i])}flash.issupported=function(){return flash.version()[0]>=10};_tech2["default"].withsourcehandlers(flash);flash.nativesourcehandler={};flash.nativesourcehandler.canplaytype=function(type){if(type in flash.formats){return"maybe"}return""};flash.nativesourcehandler.canhandlesource=function(source,options){var type=void 0;function guessmimetype(src){var ext=url.getfileextension(src);if(ext){return"video/"+ext}return""}if(!source.type){type=guessmimetype(source.src)}else{type=source.type.replace(/;.*/,"").tolowercase()}return flash.nativesourcehandler.canplaytype(type)};flash.nativesourcehandler.handlesource=function(source,tech,options){tech.setsrc(source.src)};flash.nativesourcehandler.dispose=function(){};flash.registersourcehandler(flash.nativesourcehandler);flash.formats={"video/flv":"flv","video/x-flv":"flv","video/mp4":"mp4","video/m4v":"mp4"};flash.onready=function(currswf){var el=dom.getel(currswf);var tech=el&&el.tech;if(tech&&tech.el()){flash.checkready(tech)}};flash.checkready=function(tech){if(!tech.el()){return}if(tech.el().vjs_getproperty){tech.triggerready()}else{this.settimeout(function(){flash.checkready(tech)},50)}};flash.onevent=function(swfid,eventname){var tech=dom.getel(swfid).tech;var args=array.prototype.slice.call(arguments,2);tech.settimeout(function(){tech.trigger(eventname,args)},1)};flash.onerror=function(swfid,err){var tech=dom.getel(swfid).tech;if(err==="srcnotfound"){return tech.error(4)}tech.error("flash: "+err)};flash.version=function(){var version="0,0,0";try{version=new _window2["default"].activexobject("shockwaveflash.shockwaveflash").getvariable("$version").replace(/\d+/g,",").match(/^,?(.+),?$/)[1]}catch(e){try{if(navigator.mimetypes["application/x-shockwave-flash"].enabledplugin){version=(navigator.plugins["shockwave flash 2.0"]||navigator.plugins["shockwave flash"]).description.replace(/\d+/g,",").match(/^,?(.+),?$/)[1]}}catch(err){}}return version.split(",")};flash.embed=function(swf,flashvars,params,attributes){var code=flash.getembedcode(swf,flashvars,params,attributes);var obj=dom.createel("div",{innerhtml:code}).childnodes[0];return obj};flash.getembedcode=function(swf,flashvars,params,attributes){var objtag=''});attributes=(0,_obj.assign)({data:swf,width:"100%",height:"100%"},attributes);object.getownpropertynames(attributes).foreach(function(key){attrsstring+=key+'="'+attributes[key]+'" '});return""+objtag+attrsstring+">"+paramsstring+""};(0,_flashrtmp2["default"])(flash);_component2["default"].registercomponent("flash",flash);_tech2["default"].registertech("flash",flash);exports["default"]=flash},{"5":5,"58":58,"62":62,"81":81,"88":88,"90":90,"92":92,"95":95}],60:[function(_dereq_,module,exports){exports.__esmodule=true;var _templateobject=_taggedtemplateliteralloose(["text tracks are being loaded from another origin but the crossorigin attribute isn't used.\n this may prevent text tracks from loading."],["text tracks are being loaded from another origin but the crossorigin attribute isn't used.\n this may prevent text tracks from loading."]);var _tech=_dereq_(62);var _tech2=_interoprequiredefault(_tech);var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _dom=_dereq_(81);var dom=_interoprequirewildcard(_dom);var _url=_dereq_(92);var url=_interoprequirewildcard(_url); var _fn=_dereq_(83);var fn=_interoprequirewildcard(_fn);var _log=_dereq_(86);var _log2=_interoprequiredefault(_log);var _tsml=_dereq_(98);var _tsml2=_interoprequiredefault(_tsml);var _browser=_dereq_(78);var browser=_interoprequirewildcard(_browser);var _document=_dereq_(94);var _document2=_interoprequiredefault(_document);var _window=_dereq_(95);var _window2=_interoprequiredefault(_window);var _obj=_dereq_(88);var _mergeoptions=_dereq_(87);var _mergeoptions2=_interoprequiredefault(_mergeoptions);var _totitlecase=_dereq_(91);var _totitlecase2=_interoprequiredefault(_totitlecase);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _taggedtemplateliteralloose(strings,raw){strings.raw=raw;return strings}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var html5=function(_tech){_inherits(html5,_tech);function html5(options,ready){_classcallcheck(this,html5);var _this=_possibleconstructorreturn(this,_tech.call(this,options,ready));var source=options.source;var crossorigintracks=false;if(source&&(_this.el_.currentsrc!==source.src||options.tag&&options.tag.initnetworkstate_===3)){_this.setsource(source)}else{_this.handlelateinit_(_this.el_)}if(_this.el_.haschildnodes()){var nodes=_this.el_.childnodes;var nodeslength=nodes.length;var removenodes=[];while(nodeslength--){var node=nodes[nodeslength];var nodename=node.nodename.tolowercase();if(nodename==="track"){if(!_this.featuresnativetexttracks){removenodes.push(node)}else{_this.remotetexttrackels().addtrackelement_(node);_this.remotetexttracks().addtrack_(node.track);if(!crossorigintracks&&!_this.el_.hasattribute("crossorigin")&&url.iscrossorigin(node.src)){crossorigintracks=true}}}}for(var i=0;i=0;i--){var attr=settingsattrs[i];var overwriteattrs={};if(typeof this.options_[attr]!=="undefined"){overwriteattrs[attr]=this.options_[attr]}dom.setelattributes(el,overwriteattrs)}return el};html5.prototype.handlelateinit_=function handlelateinit_(el){if(el.networkstate===0||el.networkstate===3){return}if(el.readystate===0){var loadstartfired=false;var setloadstartfired=function setloadstartfired(){loadstartfired=true};this.on("loadstart",setloadstartfired);var triggerloadstart=function triggerloadstart(){if(!loadstartfired){this.trigger("loadstart")}};this.on("loadedmetadata",triggerloadstart);this.ready(function(){this.off("loadstart",setloadstartfired);this.off("loadedmetadata",triggerloadstart);if(!loadstartfired){this.trigger("loadstart")}});return}var eventstotrigger=["loadstart"];eventstotrigger.push("loadedmetadata");if(el.readystate>=2){eventstotrigger.push("loadeddata")}if(el.readystate>=3){eventstotrigger.push("canplay")}if(el.readystate>=4){eventstotrigger.push("canplaythrough")}this.ready(function(){eventstotrigger.foreach(function(type){this.trigger(type)},this)})};html5.prototype.proxynativetexttracks_=function proxynativetexttracks_(){var tt=this.el().texttracks;if(tt){for(var i=0;i0){if(_this3.el_.duration===infinity){_this3.trigger("durationchange")}_this3.off("timeupdate",checkprogress)}};this.on("timeupdate",checkprogress);return nan}}return this.el_.duration||nan};html5.prototype.width=function width(){return this.el_.offsetwidth};html5.prototype.height=function height(){return this.el_.offsetheight};html5.prototype.proxywebkitfullscreen_=function proxywebkitfullscreen_(){var _this4=this;if(!("webkitdisplayingfullscreen" in this.el_)){return}var endfn=function endfn(){this.trigger("fullscreenchange",{isfullscreen:false})};var beginfn=function beginfn(){if("webkitpresentationmode" in this.el_&&this.el_.webkitpresentationmode!=="picture-in-picture"){this.one("webkitendfullscreen",endfn);this.trigger("fullscreenchange",{isfullscreen:true})}};this.on("webkitbeginfullscreen",beginfn);this.on("dispose",function(){_this4.off("webkitbeginfullscreen",beginfn);_this4.off("webkitendfullscreen",endfn)})};html5.prototype.supportsfullscreen=function supportsfullscreen(){if(typeof this.el_.webkitenterfullscreen==="function"){var useragent=_window2["default"].navigator&&_window2["default"].navigator.useragent||"";if(/android/.test(useragent)||!/chrome|mac os x 10.5/.test(useragent)){return true }}return false};html5.prototype.enterfullscreen=function enterfullscreen(){var video=this.el_;if(video.paused&&video.networkstate<=video.have_metadata){this.el_.play();this.settimeout(function(){video.pause();video.webkitenterfullscreen()},0)}else{video.webkitenterfullscreen()}};html5.prototype.exitfullscreen=function exitfullscreen(){this.el_.webkitexitfullscreen()};html5.prototype.src=function src(_src){if(_src===undefined){return this.el_.src}this.setsrc(_src)};html5.prototype.reset=function reset(){html5.resetmediaelement(this.el_)};html5.prototype.currentsrc=function currentsrc(){if(this.currentsource_){return this.currentsource_.src}return this.el_.currentsrc};html5.prototype.setcontrols=function setcontrols(val){this.el_.controls=!!val};html5.prototype.addtexttrack=function addtexttrack(kind,label,language){if(!this.featuresnativetexttracks){return _tech.prototype.addtexttrack.call(this,kind,label,language)}return this.el_.addtexttrack(kind,label,language)};html5.prototype.createremotetexttrack=function createremotetexttrack(options){if(!this.featuresnativetexttracks){return _tech.prototype.createremotetexttrack.call(this,options)}var htmltrackelement=_document2["default"].createelement("track");if(options.kind){htmltrackelement.kind=options.kind}if(options.label){htmltrackelement.label=options.label}if(options.language||options.srclang){htmltrackelement.srclang=options.language||options.srclang}if(options["default"]){htmltrackelement["default"]=options["default"]}if(options.id){htmltrackelement.id=options.id}if(options.src){htmltrackelement.src=options.src}return htmltrackelement};html5.prototype.addremotetexttrack=function addremotetexttrack(options,manualcleanup){var htmltrackelement=_tech.prototype.addremotetexttrack.call(this,options,manualcleanup);if(this.featuresnativetexttracks){this.el().appendchild(htmltrackelement)}return htmltrackelement};html5.prototype.removeremotetexttrack=function removeremotetexttrack(track){_tech.prototype.removeremotetexttrack.call(this,track);if(this.featuresnativetexttracks){var tracks=this.$$("track");var i=tracks.length;while(i--){if(track===tracks[i]||track===tracks[i].track){this.el().removechild(tracks[i])}}}};html5.prototype.playsinline=function playsinline(){return this.el_.hasattribute("playsinline")};html5.prototype.setplaysinline=function setplaysinline(value){if(value){this.el_.setattribute("playsinline","playsinline")}else{this.el_.removeattribute("playsinline")}};html5.prototype.getvideoplaybackquality=function getvideoplaybackquality(){if(typeof this.el().getvideoplaybackquality==="function"){return this.el().getvideoplaybackquality()}var videoplaybackquality={};if(typeof this.el().webkitdroppedframecount!=="undefined"&&typeof this.el().webkitdecodedframecount!=="undefined"){videoplaybackquality.droppedvideoframes=this.el().webkitdroppedframecount;videoplaybackquality.totalvideoframes=this.el().webkitdecodedframecount}if(_window2["default"].performance&&typeof _window2["default"].performance.now==="function"){videoplaybackquality.creationtime=_window2["default"].performance.now()}else{if(_window2["default"].performance&&_window2["default"].performance.timing&&typeof _window2["default"].performance.timing.navigationstart==="number"){videoplaybackquality.creationtime=_window2["default"].date.now()-_window2["default"].performance.timing.navigationstart}}return videoplaybackquality};return html5}(_tech2["default"]);if(dom.isreal()){html5.test_vid=_document2["default"].createelement("video");var track=_document2["default"].createelement("track");track.kind="captions";track.srclang="en";track.label="english";html5.test_vid.appendchild(track)}html5.issupported=function(){try{html5.test_vid.volume=0.5}catch(e){return false}return !!(html5.test_vid&&html5.test_vid.canplaytype)};html5.cancontrolvolume=function(){try{var volume=html5.test_vid.volume;html5.test_vid.volume=volume/2+0.1;return volume!==html5.test_vid.volume}catch(e){return false}};html5.cancontrolplaybackrate=function(){if(browser.is_android&&browser.is_chrome&&browser.chrome_version<58){return false}try{var playbackrate=html5.test_vid.playbackrate;html5.test_vid.playbackrate=playbackrate/2+0.1;return playbackrate!==html5.test_vid.playbackrate}catch(e){return false}};html5.supportsnativetexttracks=function(){return browser.is_any_safari};html5.supportsnativevideotracks=function(){return !!(html5.test_vid&&html5.test_vid.videotracks)};html5.supportsnativeaudiotracks=function(){return !!(html5.test_vid&&html5.test_vid.audiotracks)};html5.events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"];html5.prototype.featuresvolumecontrol=html5.cancontrolvolume();html5.prototype.featuresplaybackrate=html5.cancontrolplaybackrate();html5.prototype.movingmediaelementindom=!browser.is_ios;html5.prototype.featuresfullscreenresize=true; html5.prototype.featuresprogressevents=true;html5.prototype.featurestimeupdateevents=true;html5.prototype.featuresnativetexttracks=html5.supportsnativetexttracks();html5.prototype.featuresnativevideotracks=html5.supportsnativevideotracks();html5.prototype.featuresnativeaudiotracks=html5.supportsnativeaudiotracks();var canplaytype=html5.test_vid&&html5.test_vid.constructor.prototype.canplaytype;var mpegurlre=/^application\/(?:x-|vnd\.apple\.)mpegurl/i;var mp4re=/^video\/mp4/i;html5.patchcanplaytype=function(){if(browser.android_version>=4&&!browser.is_firefox){html5.test_vid.constructor.prototype.canplaytype=function(type){if(type&&mpegurlre.test(type)){return"maybe"}return canplaytype.call(this,type)}}else{if(browser.is_old_android){html5.test_vid.constructor.prototype.canplaytype=function(type){if(type&&mp4re.test(type)){return"maybe"}return canplaytype.call(this,type)}}}};html5.unpatchcanplaytype=function(){var r=html5.test_vid.constructor.prototype.canplaytype;html5.test_vid.constructor.prototype.canplaytype=canplaytype;return r};html5.patchcanplaytype();html5.disposemediaelement=function(el){if(!el){return}if(el.parentnode){el.parentnode.removechild(el)}while(el.haschildnodes()){el.removechild(el.firstchild)}el.removeattribute("src");if(typeof el.load==="function"){(function(){try{el.load()}catch(e){}})()}};html5.resetmediaelement=function(el){if(!el){return}var sources=el.queryselectorall("source");var i=sources.length;while(i--){el.removechild(sources[i])}el.removeattribute("src");if(typeof el.load==="function"){(function(){try{el.load()}catch(e){}})()}};["paused","currenttime","buffered","volume","muted","poster","preload","autoplay","controls","loop","error","seeking","seekable","ended","defaultmuted","playbackrate","played","networkstate","readystate","videowidth","videoheight"].foreach(function(prop){html5.prototype[prop]=function(){return this.el_[prop]}});["volume","muted","src","poster","preload","autoplay","loop","playbackrate"].foreach(function(prop){html5.prototype["set"+(0,_totitlecase2["default"])(prop)]=function(v){this.el_[prop]=v}});["pause","load"].foreach(function(prop){html5.prototype[prop]=function(){return this.el_[prop]()}});_tech2["default"].withsourcehandlers(html5);html5.nativesourcehandler={};html5.nativesourcehandler.canplaytype=function(type){try{return html5.test_vid.canplaytype(type)}catch(e){return""}};html5.nativesourcehandler.canhandlesource=function(source,options){if(source.type){return html5.nativesourcehandler.canplaytype(source.type)}else{if(source.src){var ext=url.getfileextension(source.src);return html5.nativesourcehandler.canplaytype("video/"+ext)}}return""};html5.nativesourcehandler.handlesource=function(source,tech,options){tech.setsrc(source.src)};html5.nativesourcehandler.dispose=function(){};html5.registersourcehandler(html5.nativesourcehandler);_component2["default"].registercomponent("html5",html5);_tech2["default"].registertech("html5",html5);exports["default"]=html5},{"5":5,"62":62,"78":78,"81":81,"83":83,"86":86,"87":87,"88":88,"91":91,"92":92,"94":94,"95":95,"98":98}],61:[function(_dereq_,module,exports){exports.__esmodule=true;var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _tech=_dereq_(62);var _tech2=_interoprequiredefault(_tech);var _totitlecase=_dereq_(91);var _totitlecase2=_interoprequiredefault(_totitlecase);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var medialoader=function(_component){_inherits(medialoader,_component);function medialoader(player,options,ready){_classcallcheck(this,medialoader);var _this=_possibleconstructorreturn(this,_component.call(this,player,options,ready));if(!options.playeroptions.sources||options.playeroptions.sources.length===0){for(var i=0,j=options.playeroptions.techorder;i4&&arguments[4]!==undefined?arguments[4]:{};var tracks=self.texttracks();options.kind=kind;if(label){options.label=label}if(language){options.language=language}options.tech=self;var track=new _texttrack2["default"](options);tracks.addtrack_(track);return track}var tech=function(_component){_inherits(tech,_component);function tech(){var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var ready=arguments.length>1&&arguments[1]!==undefined?arguments[1]:function(){};_classcallcheck(this,tech);options.reporttouchactivity=false;var _this=_possibleconstructorreturn(this,_component.call(this,null,options,ready));_this.hasstarted_=false;_this.on("playing",function(){this.hasstarted_=true});_this.on("loadstart",function(){this.hasstarted_=false});_this.texttracks_=options.texttracks;_this.videotracks_=options.videotracks;_this.audiotracks_=options.audiotracks;if(!_this.featuresprogressevents){_this.manualprogresson()}if(!_this.featurestimeupdateevents){_this.manualtimeupdateson()}["text","audio","video"].foreach(function(track){if(options["native"+track+"tracks"]===false){_this["featuresnative"+track+"tracks"]=false}});if(options.nativecaptions===false){_this.featuresnativetexttracks=false}if(!_this.featuresnativetexttracks){_this.emulatetexttracks()}_this.autoremotetexttracks_=new _texttracklist2["default"]();_this.inittexttracklisteners();_this.inittracklisteners();if(!options.nativecontrolsfortouch){_this.emittapevents()}if(_this.constructor){_this.name_=_this.constructor.name||"unknown tech"}return _this}tech.prototype.manualprogresson=function manualprogresson(){this.on("durationchange",this.ondurationchange);this.manualprogress=true;this.one("ready",this.trackprogress)};tech.prototype.manualprogressoff=function manualprogressoff(){this.manualprogress=false;this.stoptrackingprogress();this.off("durationchange",this.ondurationchange)};tech.prototype.trackprogress=function trackprogress(event){this.stoptrackingprogress();this.progressinterval=this.setinterval(fn.bind(this,function(){var numbufferedpercent=this.bufferedpercent();if(this.bufferedpercent_!==numbufferedpercent){this.trigger("progress")}this.bufferedpercent_=numbufferedpercent;if(numbufferedpercent===1){this.stoptrackingprogress()}}),500)};tech.prototype.ondurationchange=function ondurationchange(event){this.duration_=this.duration()};tech.prototype.buffered=function buffered(){return(0,_timeranges.createtimerange)(0,0)};tech.prototype.bufferedpercent=function bufferedpercent(){return(0,_buffer.bufferedpercent)(this.buffered(),this.duration_) };tech.prototype.stoptrackingprogress=function stoptrackingprogress(){this.clearinterval(this.progressinterval)};tech.prototype.manualtimeupdateson=function manualtimeupdateson(){this.manualtimeupdates=true;this.on("play",this.trackcurrenttime);this.on("pause",this.stoptrackingcurrenttime)};tech.prototype.manualtimeupdatesoff=function manualtimeupdatesoff(){this.manualtimeupdates=false;this.stoptrackingcurrenttime();this.off("play",this.trackcurrenttime);this.off("pause",this.stoptrackingcurrenttime)};tech.prototype.trackcurrenttime=function trackcurrenttime(){if(this.currenttimeinterval){this.stoptrackingcurrenttime()}this.currenttimeinterval=this.setinterval(function(){this.trigger({type:"timeupdate",target:this,manuallytriggered:true})},250)};tech.prototype.stoptrackingcurrenttime=function stoptrackingcurrenttime(){this.clearinterval(this.currenttimeinterval);this.trigger({type:"timeupdate",target:this,manuallytriggered:true})};tech.prototype.dispose=function dispose(){this.cleartracks(["audio","video","text"]);if(this.manualprogress){this.manualprogressoff()}if(this.manualtimeupdates){this.manualtimeupdatesoff()}_component.prototype.dispose.call(this)};tech.prototype.cleartracks=function cleartracks(types){var _this2=this;types=[].concat(types);types.foreach(function(type){var list=_this2[type+"tracks"]()||[];var i=list.length;while(i--){var track=list[i];if(type==="text"){_this2.removeremotetexttrack(track)}list.removetrack_(track)}})};tech.prototype.cleanupautotexttracks=function cleanupautotexttracks(){var list=this.autoremotetexttracks_||[];var i=list.length;while(i--){var track=list[i];this.removeremotetexttrack(track)}};tech.prototype.reset=function reset(){};tech.prototype.error=function error(err){if(err!==undefined){this.error_=new _mediaerror2["default"](err);this.trigger("error")}return this.error_};tech.prototype.played=function played(){if(this.hasstarted_){return(0,_timeranges.createtimerange)(0,0)}return(0,_timeranges.createtimerange)()};tech.prototype.setcurrenttime=function setcurrenttime(){if(this.manualtimeupdates){this.trigger({type:"timeupdate",target:this,manuallytriggered:true})}};tech.prototype.inittexttracklisteners=function inittexttracklisteners(){var texttracklistchanges=fn.bind(this,function(){this.trigger("texttrackchange")});var tracks=this.texttracks();if(!tracks){return}tracks.addeventlistener("removetrack",texttracklistchanges);tracks.addeventlistener("addtrack",texttracklistchanges);this.on("dispose",fn.bind(this,function(){tracks.removeeventlistener("removetrack",texttracklistchanges);tracks.removeeventlistener("addtrack",texttracklistchanges)}))};tech.prototype.inittracklisteners=function inittracklisteners(){var _this3=this;var tracktypes=["video","audio"];tracktypes.foreach(function(type){var tracklistchanges=function tracklistchanges(){_this3.trigger(type+"trackchange")};var tracks=_this3[type+"tracks"]();tracks.addeventlistener("removetrack",tracklistchanges);tracks.addeventlistener("addtrack",tracklistchanges);_this3.on("dispose",function(){tracks.removeeventlistener("removetrack",tracklistchanges);tracks.removeeventlistener("addtrack",tracklistchanges)})})};tech.prototype.addwebvttscript_=function addwebvttscript_(){var _this4=this;if(_window2["default"].webvtt){return}if(_document2["default"].body.contains(this.el())){var vtt=_dereq_(99);if(!this.options_["vtt.js"]&&(0,_obj.isplain)(vtt)&&object.keys(vtt).length>0){this.trigger("vttjsloaded");return}var script=_document2["default"].createelement("script");script.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js";script.onload=function(){_this4.trigger("vttjsloaded")};script.onerror=function(){_this4.trigger("vttjserror")};this.on("dispose",function(){script.onload=null;script.onerror=null});_window2["default"].webvtt=true;this.el().parentnode.appendchild(script)}else{this.ready(this.addwebvttscript_)}};tech.prototype.emulatetexttracks=function emulatetexttracks(){var _this5=this;var tracks=this.texttracks();if(!tracks){return}var remotetracks=this.remotetexttracks();var handleaddtrack=function handleaddtrack(e){return tracks.addtrack_(e.track)};var handleremovetrack=function handleremovetrack(e){return tracks.removetrack_(e.track)};remotetracks.on("addtrack",handleaddtrack);remotetracks.on("removetrack",handleremovetrack);this.addwebvttscript_();var updatedisplay=function updatedisplay(){return _this5.trigger("texttrackchange")};var texttrackschanges=function texttrackschanges(){updatedisplay();for(var i=0;i0&&arguments[0]!==undefined?arguments[0]:{};var manualcleanup=arguments[1];var htmltrackelement=this.createremotetexttrack(options);if(manualcleanup!==true&&manualcleanup!==false){_log2["default"].warn('calling addremotetexttrack without explicitly setting the "manualcleanup" parameter to `true` is deprecated and default to `false` in future version of video.js');manualcleanup=true}this.remotetexttrackels().addtrackelement_(htmltrackelement);this.remotetexttracks().addtrack_(htmltrackelement.track);if(manualcleanup!==true){this.autoremotetexttracks_.addtrack_(htmltrackelement.track)}return htmltrackelement};tech.prototype.removeremotetexttrack=function removeremotetexttrack(track){var trackelement=this.remotetexttrackels().gettrackelementbytrack_(track);this.remotetexttrackels().removetrackelement_(trackelement);this.remotetexttracks().removetrack_(track);this.autoremotetexttracks_.removetrack_(track)};tech.prototype.getvideoplaybackquality=function getvideoplaybackquality(){return{}};tech.prototype.setposter=function setposter(){};tech.prototype.playsinline=function playsinline(){};tech.prototype.setplaysinline=function setplaysinline(){};tech.prototype.canplaytype=function canplaytype(){return""};tech.istech=function istech(component){return component.prototype instanceof tech||component instanceof tech||component===tech};tech.registertech=function registertech(name,tech){if(!tech.techs_){tech.techs_={}}if(!tech.istech(tech)){throw new error("tech "+name+" must be a tech")}tech.techs_[name]=tech;return tech};tech.gettech=function gettech(name){if(tech.techs_&&tech.techs_[name]){return tech.techs_[name]}if(_window2["default"]&&_window2["default"].videojs&&_window2["default"].videojs[name]){_log2["default"].warn("the "+name+" tech was added to the videojs object when it should be registered using videojs.registertech(name, tech)");return _window2["default"].videojs[name]}};return tech}(_component2["default"]);tech.prototype.texttracks_;tech.prototype.audiotracks_;tech.prototype.videotracks_;tech.prototype.featuresvolumecontrol=true;tech.prototype.featuresfullscreenresize=false;tech.prototype.featuresplaybackrate=false;tech.prototype.featuresprogressevents=false;tech.prototype.featurestimeupdateevents=false;tech.prototype.featuresnativetexttracks=false;tech.withsourcehandlers=function(_tech){_tech.registersourcehandler=function(handler,index){var handlers=_tech.sourcehandlers;if(!handlers){handlers=_tech.sourcehandlers=[]}if(index===undefined){index=handlers.length}handlers.splice(index,0,handler)};_tech.canplaytype=function(type){var handlers=_tech.sourcehandlers||[];var can=void 0;for(var i=0;i0&&arguments[0]!==undefined?arguments[0]:[];_classcallcheck(this,audiotracklist);var list=void 0;for(var i=tracks.length-1;i>=0;i--){if(tracks[i].enabled){disableothers(tracks,tracks[i]);break}}if(browser.is_ie8){list=_document2["default"].createelement("custom");for(var prop in _tracklist2["default"].prototype){if(prop!=="constructor"){list[prop]=_tracklist2["default"].prototype[prop]}}for(var _prop in audiotracklist.prototype){if(_prop!=="constructor"){list[_prop]=audiotracklist.prototype[_prop]}}}list=(_this=_possibleconstructorreturn(this,_tracklist.call(this,tracks,list)),_this);list.changing_=false;return _ret=list,_possibleconstructorreturn(_this,_ret)}audiotracklist.prototype.addtrack_=function addtrack_(track){var _this2=this;if(track.enabled){disableothers(this,track)}_tracklist.prototype.addtrack_.call(this,track);if(!track.addeventlistener){return}track.addeventlistener("enabledchange",function(){if(_this2.changing_){return}_this2.changing_=true;disableothers(_this2,track);_this2.changing_=false;_this2.trigger("change")})};audiotracklist.prototype.addtrack=function addtrack(track){this.addtrack_(track)};audiotracklist.prototype.removetrack=function removetrack(track){_tracklist.prototype.removetrack_.call(this,track)};return audiotracklist}(_tracklist2["default"]);exports["default"]=audiotracklist},{"74":74,"78":78,"94":94}],64:[function(_dereq_,module,exports){exports.__esmodule=true;var _trackenums=_dereq_(73);var _track=_dereq_(75);var _track2=_interoprequiredefault(_track);var _mergeoptions=_dereq_(87);var _mergeoptions2=_interoprequiredefault(_mergeoptions);var _browser=_dereq_(78);var browser=_interoprequirewildcard(_browser); function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var audiotrack=function(_track){_inherits(audiotrack,_track);function audiotrack(){var _this,_ret;var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};_classcallcheck(this,audiotrack);var settings=(0,_mergeoptions2["default"])(options,{kind:_trackenums.audiotrackkind[options.kind]||""});var track=(_this=_possibleconstructorreturn(this,_track.call(this,settings)),_this);var enabled=false;if(browser.is_ie8){for(var prop in audiotrack.prototype){if(prop!=="constructor"){track[prop]=audiotrack.prototype[prop]}}}object.defineproperty(track,"enabled",{get:function get(){return enabled},set:function set(newenabled){if(typeof newenabled!=="boolean"||newenabled===enabled){return}enabled=newenabled;this.trigger("enabledchange")}});if(settings.enabled){track.enabled=settings.enabled}track.loaded_=true;return _ret=track,_possibleconstructorreturn(_this,_ret)}return audiotrack}(_track2["default"]);exports["default"]=audiotrack},{"73":73,"75":75,"78":78,"87":87}],65:[function(_dereq_,module,exports){exports.__esmodule=true;var _browser=_dereq_(78);var browser=_interoprequirewildcard(_browser);var _document=_dereq_(94);var _document2=_interoprequiredefault(_document);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}var htmltrackelementlist=function(){function htmltrackelementlist(){var trackelements=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];_classcallcheck(this,htmltrackelementlist);var list=this;if(browser.is_ie8){list=_document2["default"].createelement("custom");for(var prop in htmltrackelementlist.prototype){if(prop!=="constructor"){list[prop]=htmltrackelementlist.prototype[prop]}}}list.trackelements_=[];object.defineproperty(list,"length",{get:function get(){return this.trackelements_.length}});for(var i=0,length=trackelements.length;i0&&arguments[0]!==undefined?arguments[0]:{};_classcallcheck(this,htmltrackelement);var _this=_possibleconstructorreturn(this,_eventtarget.call(this));var readystate=void 0;var trackelement=_this;if(browser.is_ie8){trackelement=_document2["default"].createelement("custom");for(var prop in htmltrackelement.prototype){if(prop!=="constructor"){trackelement[prop]=htmltrackelement.prototype[prop]}}}var track=new _texttrack2["default"](options);trackelement.kind=track.kind;trackelement.src=track.src;trackelement.srclang=track.language;trackelement.label=track.label;trackelement["default"]=track["default"];object.defineproperty(trackelement,"readystate",{get:function get(){return readystate}});object.defineproperty(trackelement,"track",{get:function get(){return track}});readystate=none;track.addeventlistener("loadeddata",function(){readystate=loaded;trackelement.trigger({type:"load",target:trackelement})});if(browser.is_ie8){var _ret;return _ret=trackelement,_possibleconstructorreturn(_this,_ret)}return _this}return htmltrackelement}(_eventtarget2["default"]);htmltrackelement.prototype.allowedevents_={load:"load"};htmltrackelement.none=none;htmltrackelement.loading=loading;htmltrackelement.loaded=loaded;htmltrackelement.error=error;exports["default"]=htmltrackelement},{"42":42,"72":72,"78":78,"94":94}],67:[function(_dereq_,module,exports){exports.__esmodule=true;var _browser=_dereq_(78);var browser=_interoprequirewildcard(_browser);var _document=_dereq_(94);var _document2=_interoprequiredefault(_document);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}var texttrackcuelist=function(){function texttrackcuelist(cues){_classcallcheck(this,texttrackcuelist);var list=this;if(browser.is_ie8){list=_document2["default"].createelement("custom");for(var prop in texttrackcuelist.prototype){if(prop!=="constructor"){list[prop]=texttrackcuelist.prototype[prop]}}}texttrackcuelist.prototype.setcues_.call(list,cues);object.defineproperty(list,"length",{get:function get(){return this.length_}});if(browser.is_ie8){return list}}texttrackcuelist.prototype.setcues_=function setcues_(cues){var oldlength=this.length||0;var i=0;var l=cues.length;this.cues_=cues;this.length_=cues.length;var defineprop=function defineprop(index){if(!(""+index in this)){object.defineproperty(this,""+index,{get:function get(){return this.cues_[index]}})}};if(oldlength0&&arguments[0]!==undefined?arguments[0]:[];_classcallcheck(this,texttracklist);var list=void 0;if(browser.is_ie8){list=_document2["default"].createelement("custom");for(var prop in _tracklist2["default"].prototype){if(prop!=="constructor"){list[prop]=_tracklist2["default"].prototype[prop]}}for(var _prop in texttracklist.prototype){if(_prop!=="constructor"){list[_prop]=texttracklist.prototype[_prop]}}}list=(_this=_possibleconstructorreturn(this,_tracklist.call(this,tracks,list)),_this);return _ret=list,_possibleconstructorreturn(_this,_ret)}texttracklist.prototype.addtrack_=function addtrack_(track){_tracklist.prototype.addtrack_.call(this,track);track.addeventlistener("modechange",fn.bind(this,function(){this.trigger("change")}))};return texttracklist}(_tracklist2["default"]);exports["default"]=texttracklist},{"74":74,"78":78,"83":83,"94":94}],71:[function(_dereq_,module,exports){exports.__esmodule=true;var _window=_dereq_(95);var _window2=_interoprequiredefault(_window);var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _dom=_dereq_(81);var _fn=_dereq_(83);var fn=_interoprequirewildcard(_fn); var _obj=_dereq_(88);var obj=_interoprequirewildcard(_obj);var _log=_dereq_(86);var _log2=_interoprequiredefault(_log);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var local_storage_key="vjs-text-track-settings";var color_black=["#000","black"];var color_blue=["#00f","blue"];var color_cyan=["#0ff","cyan"];var color_green=["#0f0","green"];var color_magenta=["#f0f","magenta"];var color_red=["#f00","red"];var color_white=["#fff","white"];var color_yellow=["#ff0","yellow"];var opacity_opaque=["1","opaque"];var opacity_semi=["0.5","semi-transparent"];var opacity_trans=["0","transparent"];var selectconfigs={backgroundcolor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"color",options:[color_black,color_white,color_red,color_green,color_blue,color_yellow,color_magenta,color_cyan]},backgroundopacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"transparency",options:[opacity_opaque,opacity_semi,opacity_trans]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"color",options:[color_white,color_black,color_red,color_green,color_blue,color_yellow,color_magenta,color_cyan]},edgestyle:{selector:".vjs-edge-style > select",id:"%s",label:"text edge style",options:[["none","none"],["raised","raised"],["depressed","depressed"],["uniform","uniform"],["dropshadow","dropshadow"]]},fontfamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"font family",options:[["proportionalsansserif","proportional sans-serif"],["monospacesansserif","monospace sans-serif"],["proportionalserif","proportional serif"],["monospaceserif","monospace serif"],["casual","casual"],["script","script"],["small-caps","small caps"]]},fontpercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"font size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],"default":2,parser:function parser(v){return v==="1.00"?null:number(v)}},textopacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"transparency",options:[opacity_opaque,opacity_semi]},windowcolor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"color"},windowopacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"transparency",options:[opacity_trans,opacity_semi,opacity_opaque]}};selectconfigs.windowcolor.options=selectconfigs.backgroundcolor.options;function parseoptionvalue(value,parser){if(parser){value=parser(value)}if(value&&value!=="none"){return value}}function getselectedoptionvalue(el,parser){var value=el.options[el.options.selectedindex].value;return parseoptionvalue(value,parser)}function setselectedoption(el,value,parser){if(!value){return}for(var i=0;i0){if(_window2["default"].console&&_window2["default"].console.groupcollapsed){_window2["default"].console.groupcollapsed("text track parsing errors for "+track.src)}errors.foreach(function(error){return _log2["default"].error(error)});if(_window2["default"].console&&_window2["default"].console.groupend){_window2["default"].console.groupend()}}parser.flush()};var loadtrack=function loadtrack(src,track){var opts={uri:src};var crossorigin=(0,_url.iscrossorigin)(src);if(crossorigin){opts.cors=crossorigin}(0,_xhr2["default"])(opts,fn.bind(this,function(err,response,responsebody){if(err){return _log2["default"].error(err,response)}track.loaded_=true;if(typeof _window2["default"].webvtt!=="function"){if(track.tech_){var loadhandler=function loadhandler(){return parsecues(responsebody,track)};track.tech_.on("vttjsloaded",loadhandler);track.tech_.on("vttjserror",function(){_log2["default"].error("vttjs failed to load, stopping trying to process "+track.src);track.tech_.off("vttjsloaded",loadhandler)})}}else{parsecues(responsebody,track)}}))};var texttrack=function(_track){_inherits(texttrack,_track);function texttrack(){var _this,_ret;var options=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};_classcallcheck(this,texttrack);if(!options.tech){throw new error("a tech was not provided.")}var settings=(0,_mergeoptions2["default"])(options,{kind:_trackenums.texttrackkind[options.kind]||"subtitles",language:options.language||options.srclang||""});var mode=_trackenums.texttrackmode[settings.mode]||"disabled";var default_=settings["default"];if(settings.kind==="metadata"||settings.kind==="chapters"){mode="hidden"}var tt=(_this=_possibleconstructorreturn(this,_track.call(this,settings)),_this);tt.tech_=settings.tech;if(browser.is_ie8){for(var prop in texttrack.prototype){if(prop!=="constructor"){tt[prop]=texttrack.prototype[prop]}}}tt.cues_=[];tt.activecues_=[];var cues=new _texttrackcuelist2["default"](tt.cues_);var activecues=new _texttrackcuelist2["default"](tt.activecues_);var changed=false;var timeupdatehandler=fn.bind(tt,function(){this.activecues;if(changed){this.trigger("cuechange");changed=false}});if(mode!=="disabled"){tt.tech_.ready(function(){tt.tech_.on("timeupdate",timeupdatehandler)},true)}object.defineproperty(tt,"default",{get:function get(){return default_},set:function set(){}});object.defineproperty(tt,"mode",{get:function get(){return mode },set:function set(newmode){var _this2=this;if(!_trackenums.texttrackmode[newmode]){return}mode=newmode;if(mode==="showing"){this.tech_.ready(function(){_this2.tech_.on("timeupdate",timeupdatehandler)},true)}this.trigger("modechange")}});object.defineproperty(tt,"cues",{get:function get(){if(!this.loaded_){return null}return cues},set:function set(){}});object.defineproperty(tt,"activecues",{get:function get(){if(!this.loaded_){return null}if(this.cues.length===0){return activecues}var ct=this.tech_.currenttime();var active=[];for(var i=0,l=this.cues.length;i=ct){active.push(cue)}else{if(cue.starttime===cue.endtime&&cue.starttime<=ct&&cue.starttime+0.5>=ct){active.push(cue)}}}changed=false;if(active.length!==this.activecues_.length){changed=true}else{for(var _i=0;_i0&&arguments[0]!==undefined?arguments[0]:[];var _ret;var list=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;_classcallcheck(this,tracklist);var _this=_possibleconstructorreturn(this,_eventtarget.call(this));if(!list){list=_this;if(browser.is_ie8){list=_document2["default"].createelement("custom");for(var prop in tracklist.prototype){if(prop!=="constructor"){list[prop]=tracklist.prototype[prop]}}}}list.tracks_=[];object.defineproperty(list,"length",{get:function get(){return this.tracks_.length}});for(var i=0;i0&&arguments[0]!==undefined?arguments[0]:{};_classcallcheck(this,track);var _this=_possibleconstructorreturn(this,_eventtarget.call(this));var track=_this;if(browser.is_ie8){track=_document2["default"].createelement("custom");for(var prop in track.prototype){if(prop!=="constructor"){track[prop]=track.prototype[prop]}}}var trackprops={id:options.id||"vjs_track_"+guid.newguid(),kind:options.kind||"",label:options.label||"",language:options.language||""};var _loop=function _loop(key){object.defineproperty(track,key,{get:function get(){return trackprops[key]},set:function set(){}})};for(var key in trackprops){_loop(key)}return _ret=track,_possibleconstructorreturn(_this,_ret)}return track}(_eventtarget2["default"]);exports["default"]=track},{"42":42,"78":78,"85":85,"94":94}],76:[function(_dereq_,module,exports){exports.__esmodule=true;var _tracklist=_dereq_(74);var _tracklist2=_interoprequiredefault(_tracklist);var _browser=_dereq_(78);var browser=_interoprequirewildcard(_browser);var _document=_dereq_(94);var _document2=_interoprequiredefault(_document);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _classcallcheck(instance,constructor){if(!(instance instanceof constructor)){throw new typeerror("cannot call a class as a function")}}function _possibleconstructorreturn(self,call){if(!self){throw new referenceerror("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subclass,superclass){if(typeof superclass!=="function"&&superclass!==null){throw new typeerror("super expression must either be null or a function, not "+typeof superclass)}subclass.prototype=object.create(superclass&&superclass.prototype,{constructor:{value:subclass,enumerable:false,writable:true,configurable:true}});if(superclass){object.setprototypeof?object.setprototypeof(subclass,superclass):subclass.__proto__=superclass}}var disableothers=function disableothers(list,track){for(var i=0;i0&&arguments[0]!==undefined?arguments[0]:[];_classcallcheck(this,videotracklist);var list=void 0;for(var i=tracks.length-1;i>=0;i--){if(tracks[i].selected){disableothers(tracks,tracks[i]);break}}if(browser.is_ie8){list=_document2["default"].createelement("custom");for(var prop in _tracklist2["default"].prototype){if(prop!=="constructor"){list[prop]=_tracklist2["default"].prototype[prop]}}for(var _prop in videotracklist.prototype){if(_prop!=="constructor"){list[_prop]=videotracklist.prototype[_prop]}}}list=(_this=_possibleconstructorreturn(this,_tracklist.call(this,tracks,list)),_this);list.changing_=false;object.defineproperty(list,"selectedindex",{get:function get(){for(var _i=0;_i0&&arguments[0]!==undefined?arguments[0]:{};_classcallcheck(this,videotrack);var settings=(0,_mergeoptions2["default"])(options,{kind:_trackenums.videotrackkind[options.kind]||""});var track=(_this=_possibleconstructorreturn(this,_track.call(this,settings)),_this);var selected=false;if(browser.is_ie8){for(var prop in videotrack.prototype){if(prop!=="constructor"){track[prop]=videotrack.prototype[prop]}}}object.defineproperty(track,"selected",{get:function get(){return selected},set:function set(newselected){if(typeof newselected!=="boolean"||newselected===selected){return}selected=newselected;this.trigger("selectedchange")}});if(settings.selected){track.selected=settings.selected}return _ret=track,_possibleconstructorreturn(_this,_ret)}return videotrack}(_track2["default"]);exports["default"]=videotrack},{"73":73,"75":75,"78":78,"87":87}],78:[function(_dereq_,module,exports){exports.__esmodule=true;exports.background_size_supported=exports.touch_enabled=exports.is_any_safari=exports.is_safari=exports.ie_version=exports.is_ie8=exports.chrome_version=exports.is_chrome=exports.is_edge=exports.is_firefox=exports.is_native_android=exports.is_old_android=exports.android_version=exports.is_android=exports.ios_version=exports.is_ios=exports.is_ipod=exports.is_iphone=exports.is_ipad=undefined;var _dom=_dereq_(81);var dom=_interoprequirewildcard(_dom);var _window=_dereq_(95);var _window2=_interoprequiredefault(_window);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}var user_agent=_window2["default"].navigator&&_window2["default"].navigator.useragent||""; var webkitversionmap=/applewebkit\/([\d.]+)/i.exec(user_agent);var applewebkitversion=webkitversionmap?parsefloat(webkitversionmap.pop()):null;var is_ipad=exports.is_ipad=/ipad/i.test(user_agent);var is_iphone=exports.is_iphone=/iphone/i.test(user_agent)&&!is_ipad;var is_ipod=exports.is_ipod=/ipod/i.test(user_agent);var is_ios=exports.is_ios=is_iphone||is_ipad||is_ipod;var ios_version=exports.ios_version=function(){var match=user_agent.match(/os (\d+)_/i);if(match&&match[1]){return match[1]}return null}();var is_android=exports.is_android=/android/i.test(user_agent);var android_version=exports.android_version=function(){var match=user_agent.match(/android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!match){return null}var major=match[1]&&parsefloat(match[1]);var minor=match[2]&&parsefloat(match[2]);if(major&&minor){return parsefloat(match[1]+"."+match[2])}else{if(major){return major}}return null}();var is_old_android=exports.is_old_android=is_android&&/webkit/i.test(user_agent)&&android_version<2.3;var is_native_android=exports.is_native_android=is_android&&android_version<5&&applewebkitversion<537;var is_firefox=exports.is_firefox=/firefox/i.test(user_agent);var is_edge=exports.is_edge=/edge/i.test(user_agent);var is_chrome=exports.is_chrome=!is_edge&&/chrome/i.test(user_agent);var chrome_version=exports.chrome_version=function(){var match=user_agent.match(/chrome\/(\d+)/);if(match&&match[1]){return parsefloat(match[1])}return null}();var is_ie8=exports.is_ie8=/msie\s8\.0/.test(user_agent);var ie_version=exports.ie_version=function(){var result=/msie\s(\d+)\.\d/.exec(user_agent);var version=result&&parsefloat(result[1]);if(!version&&/trident\/7.0/i.test(user_agent)&&/rv:11.0/.test(user_agent)){version=11}return version}();var is_safari=exports.is_safari=/safari/i.test(user_agent)&&!is_chrome&&!is_android&&!is_edge;var is_any_safari=exports.is_any_safari=is_safari||is_ios;var touch_enabled=exports.touch_enabled=dom.isreal()&&("ontouchstart" in _window2["default"]||_window2["default"].documenttouch&&_window2["default"].document instanceof _window2["default"].documenttouch);var background_size_supported=exports.background_size_supported=dom.isreal()&&"backgroundsize" in _window2["default"].document.createelement("video").style},{"81":81,"95":95}],79:[function(_dereq_,module,exports){exports.__esmodule=true;exports.bufferedpercent=bufferedpercent;var _timeranges=_dereq_(90);function bufferedpercent(buffered,duration){var bufferedduration=0;var start=void 0;var end=void 0;if(!duration){return 0}if(!buffered||!buffered.length){buffered=(0,_timeranges.createtimerange)(0,0)}for(var i=0;iduration){end=duration}bufferedduration+=end-start}return bufferedduration/duration}},{"90":90}],80:[function(_dereq_,module,exports){exports.__esmodule=true;exports["default"]=computedstyle;var _window=_dereq_(95);var _window2=_interoprequiredefault(_window);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function computedstyle(el,prop){if(!el||!prop){return""}if(typeof _window2["default"].getcomputedstyle==="function"){var cs=_window2["default"].getcomputedstyle(el);return cs?cs[prop]:""}return el.currentstyle[prop]||""}},{"95":95}],81:[function(_dereq_,module,exports){exports.__esmodule=true;exports.$$=exports.$=undefined;var _templateobject=_taggedtemplateliteralloose(["setting attributes in the second argument of createel()\n has been deprecated. use the third argument instead.\n createel(type, properties, attributes). attempting to set "," to ","."],["setting attributes in the second argument of createel()\n has been deprecated. use the third argument instead.\n createel(type, properties, attributes). attempting to set "," to ","."]);exports.isreal=isreal;exports.isel=isel;exports.getel=getel;exports.createel=createel;exports.textcontent=textcontent;exports.insertelfirst=insertelfirst;exports.geteldata=geteldata;exports.haseldata=haseldata;exports.removeeldata=removeeldata;exports.haselclass=haselclass;exports.addelclass=addelclass;exports.removeelclass=removeelclass;exports.toggleelclass=toggleelclass;exports.setelattributes=setelattributes;exports.getelattributes=getelattributes;exports.getattribute=getattribute;exports.setattribute=setattribute;exports.removeattribute=removeattribute;exports.blocktextselection=blocktextselection;exports.unblocktextselection=unblocktextselection;exports.findelposition=findelposition;exports.getpointerposition=getpointerposition;exports.istextnode=istextnode;exports.emptyel=emptyel;exports.normalizecontent=normalizecontent;exports.appendcontent=appendcontent;exports.insertcontent=insertcontent;var _document=_dereq_(94);var _document2=_interoprequiredefault(_document);var _window=_dereq_(95);var _window2=_interoprequiredefault(_window);var _guid=_dereq_(85);var guid=_interoprequirewildcard(_guid);var _log=_dereq_(86);var _log2=_interoprequiredefault(_log); var _tsml=_dereq_(98);var _tsml2=_interoprequiredefault(_tsml);var _obj=_dereq_(88);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _taggedtemplateliteralloose(strings,raw){strings.raw=raw;return strings}function isnonblankstring(str){return typeof str==="string"&&/\s/.test(str)}function throwifwhitespace(str){if(/\s/.test(str)){throw new error("class has illegal whitespace characters")}}function classregexp(classname){return new regexp("(^|\\s)"+classname+"($|\\s)")}function isreal(){return(_document2["default"]===_window2["default"].document&&typeof _document2["default"].createelement!=="undefined")}function isel(value){return(0,_obj.isobject)(value)&&value.nodetype===1}function createquerier(method){return function(selector,context){if(!isnonblankstring(selector)){return _document2["default"][method](null)}if(isnonblankstring(context)){context=_document2["default"].queryselector(context)}var ctx=isel(context)?context:_document2["default"];return ctx[method]&&ctx[method](selector)}}function getel(id){if(id.indexof("#")===0){id=id.slice(1)}return _document2["default"].getelementbyid(id)}function createel(){var tagname=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"div";var properties=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var attributes=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var content=arguments[3];var el=_document2["default"].createelement(tagname);object.getownpropertynames(properties).foreach(function(propname){var val=properties[propname];if(propname.indexof("aria-")!==-1||propname==="role"||propname==="type"){_log2["default"].warn((0,_tsml2["default"])(_templateobject,propname,val));el.setattribute(propname,val)}else{if(propname==="textcontent"){textcontent(el,val)}else{el[propname]=val}}});object.getownpropertynames(attributes).foreach(function(attrname){el.setattribute(attrname,attributes[attrname])});if(content){appendcontent(el,content)}return el}function textcontent(el,text){if(typeof el.textcontent==="undefined"){el.innertext=text}else{el.textcontent=text}return el}function insertelfirst(child,parent){if(parent.firstchild){parent.insertbefore(child,parent.firstchild)}else{parent.appendchild(child)}}var eldata={};var elidattr="vdata"+new date().gettime();function geteldata(el){var id=el[elidattr];if(!id){id=el[elidattr]=guid.newguid()}if(!eldata[id]){eldata[id]={}}return eldata[id]}function haseldata(el){var id=el[elidattr];if(!id){return false}return !!object.getownpropertynames(eldata[id]).length}function removeeldata(el){var id=el[elidattr];if(!id){return}delete eldata[id];try{delete el[elidattr]}catch(e){if(el.removeattribute){el.removeattribute(elidattr)}else{el[elidattr]=null}}}function haselclass(element,classtocheck){throwifwhitespace(classtocheck);if(element.classlist){return element.classlist.contains(classtocheck)}return classregexp(classtocheck).test(element.classname)}function addelclass(element,classtoadd){if(element.classlist){element.classlist.add(classtoadd)}else{if(!haselclass(element,classtoadd)){element.classname=(element.classname+" "+classtoadd).trim()}}return element}function removeelclass(element,classtoremove){if(element.classlist){element.classlist.remove(classtoremove)}else{throwifwhitespace(classtoremove);element.classname=element.classname.split(/\s+/).filter(function(c){return c!==classtoremove}).join(" ")}return element}function toggleelclass(element,classtotoggle,predicate){var has=haselclass(element,classtotoggle);if(typeof predicate==="function"){predicate=predicate(element,classtotoggle)}if(typeof predicate!=="boolean"){predicate=!has}if(predicate===has){return}if(predicate){addelclass(element,classtotoggle)}else{removeelclass(element,classtotoggle)}return element}function setelattributes(el,attributes){object.getownpropertynames(attributes).foreach(function(attrname){var attrvalue=attributes[attrname];if(attrvalue===null||typeof attrvalue==="undefined"||attrvalue===false){el.removeattribute(attrname)}else{el.setattribute(attrname,attrvalue===true?"":attrvalue)}})}function getelattributes(tag){var obj={};var knownbooleans=","+"autoplay,controls,loop,muted,default"+",";if(tag&&tag.attributes&&tag.attributes.length>0){var attrs=tag.attributes;for(var i=attrs.length-1;i>=0;i--){var attrname=attrs[i].name;var attrval=attrs[i].value;if(typeof tag[attrname]==="boolean"||knownbooleans.indexof(","+attrname+",")!==-1){attrval=attrval!==null?true:false}obj[attrname]=attrval}}return obj}function getattribute(el,attribute){return el.getattribute(attribute)}function setattribute(el,attribute,value){el.setattribute(attribute,value)}function removeattribute(el,attribute){el.removeattribute(attribute)}function blocktextselection(){_document2["default"].body.focus(); _document2["default"].onselectstart=function(){return false}}function unblocktextselection(){_document2["default"].onselectstart=function(){return true}}function findelposition(el){var box=void 0;if(el.getboundingclientrect&&el.parentnode){box=el.getboundingclientrect()}if(!box){return{left:0,top:0}}var docel=_document2["default"].documentelement;var body=_document2["default"].body;var clientleft=docel.clientleft||body.clientleft||0;var scrollleft=_window2["default"].pagexoffset||body.scrollleft;var left=box.left+scrollleft-clientleft;var clienttop=docel.clienttop||body.clienttop||0;var scrolltop=_window2["default"].pageyoffset||body.scrolltop;var top=box.top+scrolltop-clienttop;return{left:math.round(left),top:math.round(top)}}function getpointerposition(el,event){var position={};var box=findelposition(el);var boxw=el.offsetwidth;var boxh=el.offsetheight;var boxy=box.top;var boxx=box.left;var pagey=event.pagey;var pagex=event.pagex;if(event.changedtouches){pagex=event.changedtouches[0].pagex;pagey=event.changedtouches[0].pagey}position.y=math.max(0,math.min(1,(boxy-pagey+boxh)/boxh));position.x=math.max(0,math.min(1,(pagex-boxx)/boxw));return position}function istextnode(value){return(0,_obj.isobject)(value)&&value.nodetype===3}function emptyel(el){while(el.firstchild){el.removechild(el.firstchild)}return el}function normalizecontent(content){if(typeof content==="function"){content=content()}return(array.isarray(content)?content:[content]).map(function(value){if(typeof value==="function"){value=value()}if(isel(value)||istextnode(value)){return value}if(typeof value==="string"&&/\s/.test(value)){return _document2["default"].createtextnode(value)}}).filter(function(value){return value})}function appendcontent(el,content){normalizecontent(content).foreach(function(node){return el.appendchild(node)});return el}function insertcontent(el,content){return appendcontent(emptyel(el),content)}var $=exports.$=createquerier("queryselector");var $$=exports.$$=createquerier("queryselectorall")},{"85":85,"86":86,"88":88,"94":94,"95":95,"98":98}],82:[function(_dereq_,module,exports){exports.__esmodule=true;exports.fixevent=fixevent;exports.on=on;exports.off=off;exports.trigger=trigger;exports.one=one;var _dom=_dereq_(81);var dom=_interoprequirewildcard(_dom);var _guid=_dereq_(85);var guid=_interoprequirewildcard(_guid);var _log=_dereq_(86);var _log2=_interoprequiredefault(_log);var _window=_dereq_(95);var _window2=_interoprequiredefault(_window);var _document=_dereq_(94);var _document2=_interoprequiredefault(_document);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _cleanupevents(elem,type){var data=dom.geteldata(elem);if(data.handlers[type].length===0){delete data.handlers[type];if(elem.removeeventlistener){elem.removeeventlistener(type,data.dispatcher,false)}else{if(elem.detachevent){elem.detachevent("on"+type,data.dispatcher)}}}if(object.getownpropertynames(data.handlers).length<=0){delete data.handlers;delete data.dispatcher;delete data.disabled}if(object.getownpropertynames(data).length===0){dom.removeeldata(elem)}}function _handlemultipleevents(fn,elem,types,callback){types.foreach(function(type){fn(elem,type,callback)})}function fixevent(event){function returntrue(){return true}function returnfalse(){return false}if(!event||!event.ispropagationstopped){var old=event||_window2["default"].event;event={};for(var key in old){if(key!=="layerx"&&key!=="layery"&&key!=="keylocation"&&key!=="webkitmovementx"&&key!=="webkitmovementy"){if(!(key==="returnvalue"&&old.preventdefault)){event[key]=old[key]}}}if(!event.target){event.target=event.srcelement||_document2["default"]}if(!event.relatedtarget){event.relatedtarget=event.fromelement===event.target?event.toelement:event.fromelement}event.preventdefault=function(){if(old.preventdefault){old.preventdefault()}event.returnvalue=false;old.returnvalue=false;event.defaultprevented=true};event.defaultprevented=false;event.stoppropagation=function(){if(old.stoppropagation){old.stoppropagation()}event.cancelbubble=true;old.cancelbubble=true;event.ispropagationstopped=returntrue};event.ispropagationstopped=returnfalse;event.stopimmediatepropagation=function(){if(old.stopimmediatepropagation){old.stopimmediatepropagation()}event.isimmediatepropagationstopped=returntrue;event.stoppropagation()};event.isimmediatepropagationstopped=returnfalse;if(event.clientx!==null&&event.clientx!==undefined){var doc=_document2["default"].documentelement;var body=_document2["default"].body;event.pagex=event.clientx+(doc&&doc.scrollleft||body&&body.scrollleft||0)-(doc&&doc.clientleft||body&&body.clientleft||0);event.pagey=event.clienty+(doc&&doc.scrolltop||body&&body.scrolltop||0)-(doc&&doc.clienttop||body&&body.clienttop||0)}event.which=event.charcode||event.keycode; if(event.button!==null&&event.button!==undefined){event.button=event.button&1?0:event.button&4?1:event.button&2?2:0}}return event}var _supportspassive=false;(function(){try{var opts=object.defineproperty({},"passive",{get:function get(){_supportspassive=true}});_window2["default"].addeventlistener("test",null,opts)}catch(e){}})();var passiveevents=["touchstart","touchmove"];function on(elem,type,fn){if(array.isarray(type)){return _handlemultipleevents(on,elem,type,fn)}var data=dom.geteldata(elem);if(!data.handlers){data.handlers={}}if(!data.handlers[type]){data.handlers[type]=[]}if(!fn.guid){fn.guid=guid.newguid()}data.handlers[type].push(fn);if(!data.dispatcher){data.disabled=false;data.dispatcher=function(event,hash){if(data.disabled){return}event=fixevent(event);var handlers=data.handlers[event.type];if(handlers){var handlerscopy=handlers.slice(0);for(var m=0,n=handlerscopy.length;m-1){options={passive:true}}elem.addeventlistener(type,data.dispatcher,options)}else{if(elem.attachevent){elem.attachevent("on"+type,data.dispatcher)}}}}function off(elem,type,fn){if(!dom.haseldata(elem)){return}var data=dom.geteldata(elem);if(!data.handlers){return}if(array.isarray(type)){return _handlemultipleevents(off,elem,type,fn)}var removetype=function removetype(t){data.handlers[t]=[];_cleanupevents(elem,t)};if(!type){for(var t in data.handlers){removetype(t)}return}var handlers=data.handlers[type];if(!handlers){return}if(!fn){removetype(type);return}if(fn.guid){for(var n=0;n=wait){fn.apply(undefined,arguments);last=now}};return throttled}},{"85":85}],84:[function(_dereq_,module,exports){exports.__esmodule=true;function formattime(seconds){var guide=arguments.length>1&&arguments[1]!==undefined?arguments[1]:seconds;seconds=seconds<0?0:seconds;var s=math.floor(seconds%60);var m=math.floor(seconds/60%60);var h=math.floor(seconds/3600);var gm=math.floor(guide/60%60);var gh=math.floor(guide/3600);if(isnan(seconds)||seconds===infinity){h=m=s="-"}h=h>0||gh>0?h+":":"";m=((h||gm>=10)&&m<10?"0"+m:m)+":";s=s<10?"0"+s:s;return h+m+s}exports["default"]=formattime},{}],85:[function(_dereq_,module,exports){exports.__esmodule=true;exports.newguid=newguid;var _guid=1;function newguid(){return _guid++}},{}],86:[function(_dereq_,module,exports){exports.__esmodule=true;exports.logbytype=undefined;var _window=_dereq_(95);var _window2=_interoprequiredefault(_window);var _browser=_dereq_(78);var _obj=_dereq_(88);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}var log=void 0;var logbytype=exports.logbytype=function logbytype(type,args){var stringify=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!!_browser.ie_version&&_browser.ie_version<11;if(type!=="log"){args.unshift(type.touppercase()+":")}log.history.push(args);args.unshift("videojs:");var fn=_window2["default"].console&&_window2["default"].console[type];if(!fn){return}if(stringify){args=args.map(function(a){if((0,_obj.isobject)(a)||array.isarray(a)){try{return json.stringify(a)}catch(x){return string(a)}}return string(a)}).join(" ")}if(!fn.apply){fn(args)}else{fn[array.isarray(args)?"apply":"call"](_window2["default"].console,args)}};log=function log(){for(var _len=arguments.length,args=array(_len),_key=0; _key<_len;_key++){args[_key]=arguments[_key]}logbytype("log",args)};log.history=[];log.error=function(){for(var _len2=arguments.length,args=array(_len2),_key2=0;_key2<_len2;_key2++){args[_key2]=arguments[_key2]}return logbytype("error",args)};log.warn=function(){for(var _len3=arguments.length,args=array(_len3),_key3=0;_key3<_len3;_key3++){args[_key3]=arguments[_key3]}return logbytype("warn",args)};exports["default"]=log},{"78":78,"88":88,"95":95}],87:[function(_dereq_,module,exports){exports.__esmodule=true;exports["default"]=mergeoptions;var _obj=_dereq_(88);function mergeoptions(){var result={};for(var _len=arguments.length,sources=array(_len),_key=0;_key<_len;_key++){sources[_key]=arguments[_key]}sources.foreach(function(source){if(!source){return}(0,_obj.each)(source,function(value,key){if(!(0,_obj.isplain)(value)){result[key]=value;return}if(!(0,_obj.isplain)(result[key])){result[key]={}}result[key]=mergeoptions(result[key],value)})});return result}},{"88":88}],88:[function(_dereq_,module,exports){exports.__esmodule=true;var _typeof=typeof symbol==="function"&&typeof symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof symbol==="function"&&obj.constructor===symbol&&obj!==symbol.prototype?"symbol":typeof obj};exports.each=each;exports.reduce=reduce;exports.assign=assign;exports.isobject=isobject;exports.isplain=isplain;var tostring=object.prototype.tostring;var keys=function keys(object){return isobject(object)?object.keys(object):[]};function each(object,fn){keys(object).foreach(function(key){return fn(object[key],key)})}function reduce(object,fn){var initial=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;return keys(object).reduce(function(accum,key){return fn(accum,object[key],key)},initial)}function assign(target){for(var _len=arguments.length,sources=array(_len>1?_len-1:0),_key=1;_key<_len;_key++){sources[_key-1]=arguments[_key]}if(object.assign){return object.assign.apply(object,[target].concat(sources))}sources.foreach(function(source){if(!source){return}each(source,function(value,key){target[key]=value})});return target}function isobject(value){return !!value&&(typeof value==="undefined"?"undefined":_typeof(value))==="object"}function isplain(value){return isobject(value)&&tostring.call(value)==="[object object]"&&value.constructor===object}},{}],89:[function(_dereq_,module,exports){exports.__esmodule=true;exports.settextcontent=exports.createstyleelement=undefined;var _document=_dereq_(94);var _document2=_interoprequiredefault(_document);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}var createstyleelement=exports.createstyleelement=function createstyleelement(classname){var style=_document2["default"].createelement("style");style.classname=classname;return style};var settextcontent=exports.settextcontent=function settextcontent(el,content){if(el.stylesheet){el.stylesheet.csstext=content}else{el.textcontent=content}}},{"94":94}],90:[function(_dereq_,module,exports){exports.__esmodule=true;exports.createtimerange=undefined;exports.createtimeranges=createtimeranges;var _log=_dereq_(86);var _log2=_interoprequiredefault(_log);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}function rangecheck(fnname,index,maxindex){if(index<0||index>maxindex){throw new error("failed to execute '"+fnname+"' on 'timeranges': the index provided ("+index+") is greater than or equal to the maximum bound ("+maxindex+").")}}function getrange(fnname,valueindex,ranges,rangeindex){if(rangeindex===undefined){_log2["default"].warn("deprecated: function '"+fnname+"' on 'timeranges' called without an index argument.");rangeindex=0}rangecheck(fnname,rangeindex,ranges.length-1);return ranges[rangeindex][valueindex]}function createtimerangesobj(ranges){if(ranges===undefined||ranges.length===0){return{length:0,start:function start(){throw new error("this timeranges object is empty")},end:function end(){throw new error("this timeranges object is empty")}}}return{length:ranges.length,start:getrange.bind(null,"start",0,ranges),end:getrange.bind(null,"end",1,ranges)}}function createtimeranges(start,end){if(array.isarray(start)){return createtimerangesobj(start)}else{if(start===undefined||end===undefined){return createtimerangesobj()}}return createtimerangesobj([[start,end]])}exports.createtimerange=createtimeranges},{"86":86}],91:[function(_dereq_,module,exports){exports.__esmodule=true;function totitlecase(string){if(typeof string!=="string"){return string}return string.charat(0).touppercase()+string.slice(1)}exports["default"]=totitlecase},{}],92:[function(_dereq_,module,exports){exports.__esmodule=true;exports.iscrossorigin=exports.getfileextension=exports.getabsoluteurl=exports.parseurl=undefined;var _document=_dereq_(94);var _document2=_interoprequiredefault(_document);var _window=_dereq_(95);var _window2=_interoprequiredefault(_window);function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj} }var parseurl=exports.parseurl=function parseurl(url){var props=["protocol","hostname","port","pathname","search","hash","host"];var a=_document2["default"].createelement("a");a.href=url;var addtobody=a.host===""&&a.protocol!=="file:";var div=void 0;if(addtobody){div=_document2["default"].createelement("div");div.innerhtml='';a=div.firstchild;div.setattribute("style","display:none; position:absolute;");_document2["default"].body.appendchild(div)}var details={};for(var i=0;ix';url=div.firstchild.href}return url};var getfileextension=exports.getfileextension=function getfileextension(path){if(typeof path==="string"){var splitpathre=/^(\/?)([\s\s]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i;var pathparts=splitpathre.exec(path);if(pathparts){return pathparts.pop().tolowercase()}}return""};var iscrossorigin=exports.iscrossorigin=function iscrossorigin(url){var winloc=_window2["default"].location;var urlinfo=parseurl(url);var srcprotocol=urlinfo.protocol===":"?winloc.protocol:urlinfo.protocol;var crossorigin=srcprotocol+urlinfo.host!==winloc.protocol+winloc.host;return crossorigin}},{"94":94,"95":95}],93:[function(_dereq_,module,exports){exports.__esmodule=true;var _typeof=typeof symbol==="function"&&typeof symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof symbol==="function"&&obj.constructor===symbol&&obj!==symbol.prototype?"symbol":typeof obj};var _window=_dereq_(95);var _window2=_interoprequiredefault(_window);var _document=_dereq_(94);var _document2=_interoprequiredefault(_document);var _browser=_dereq_(78);var browser=_interoprequirewildcard(_browser);var _dom=_dereq_(81);var dom=_interoprequirewildcard(_dom);var _setup=_dereq_(56);var setup=_interoprequirewildcard(_setup);var _stylesheet=_dereq_(89);var stylesheet=_interoprequirewildcard(_stylesheet);var _component=_dereq_(5);var _component2=_interoprequiredefault(_component);var _eventtarget=_dereq_(42);var _eventtarget2=_interoprequiredefault(_eventtarget);var _events=_dereq_(82);var events=_interoprequirewildcard(_events);var _player=_dereq_(51);var _player2=_interoprequiredefault(_player);var _plugins=_dereq_(52);var _plugins2=_interoprequiredefault(_plugins);var _mergeoptions2=_dereq_(87);var _mergeoptions3=_interoprequiredefault(_mergeoptions2);var _fn=_dereq_(83);var fn=_interoprequirewildcard(_fn);var _texttrack=_dereq_(72);var _texttrack2=_interoprequiredefault(_texttrack);var _audiotrack=_dereq_(64);var _audiotrack2=_interoprequiredefault(_audiotrack);var _videotrack=_dereq_(77);var _videotrack2=_interoprequiredefault(_videotrack);var _timeranges=_dereq_(90);var _formattime=_dereq_(84);var _formattime2=_interoprequiredefault(_formattime);var _log=_dereq_(86);var _log2=_interoprequiredefault(_log);var _url=_dereq_(92);var url=_interoprequirewildcard(_url);var _obj=_dereq_(88);var _computedstyle=_dereq_(80);var _computedstyle2=_interoprequiredefault(_computedstyle);var _extend=_dereq_(43);var _extend2=_interoprequiredefault(_extend);var _xhr=_dereq_(104);var _xhr2=_interoprequiredefault(_xhr);var _tech=_dereq_(62);var _tech2=_interoprequiredefault(_tech);function _interoprequirewildcard(obj){if(obj&&obj.__esmodule){return obj}else{var newobj={};if(obj!=null){for(var key in obj){if(object.prototype.hasownproperty.call(obj,key)){newobj[key]=obj[key]}}}newobj["default"]=obj;return newobj}}function _interoprequiredefault(obj){return obj&&obj.__esmodule?obj:{"default":obj}}if(typeof htmlvideoelement==="undefined"&&dom.isreal()){_document2["default"].createelement("video");_document2["default"].createelement("audio");_document2["default"].createelement("track")}function videojs(id,options,ready){var tag=void 0;if(typeof id==="string"){if(id.indexof("#")===0){id=id.slice(1)}if(videojs.getplayers()[id]){if(options){_log2["default"].warn('player "'+id+'" is already initialised. options will not be applied.')}if(ready){videojs.getplayers()[id].ready(ready)}return videojs.getplayers()[id]}tag=dom.getel(id)}else{tag=id}if(!tag||!tag.nodename){throw new typeerror("the element or id supplied is not valid. (videojs)")}if(tag.player||_player2["default"].players[tag.playerid]){return tag.player||_player2["default"].players[tag.playerid]}options=options||{};videojs.hooks("beforesetup").foreach(function(hookfunction){var opts=hookfunction(tag,(0,_mergeoptions3["default"])(options));if(!(0,_obj.isobject)(opts)||array.isarray(opts)){_log2["default"].error("please return an object in beforesetup hooks");return}options=(0,_mergeoptions3["default"])(options,opts) });var playercomponent=_component2["default"].getcomponent("player");var player=new playercomponent(tag,options,ready);videojs.hooks("setup").foreach(function(hookfunction){return hookfunction(player)});return player}videojs.hooks_={};videojs.hooks=function(type,fn){videojs.hooks_[type]=videojs.hooks_[type]||[];if(fn){videojs.hooks_[type]=videojs.hooks_[type].concat(fn)}return videojs.hooks_[type]};videojs.hook=function(type,fn){videojs.hooks(type,fn)};videojs.removehook=function(type,fn){var index=videojs.hooks(type).indexof(fn);if(index<=-1){return false}videojs.hooks_[type]=videojs.hooks_[type].slice();videojs.hooks_[type].splice(index,1);return true};if(_window2["default"].videojs_no_dynamic_style!==true&&dom.isreal()){var style=dom.$(".vjs-styles-defaults");if(!style){style=stylesheet.createstyleelement("vjs-styles-defaults");var head=dom.$("head");if(head){head.insertbefore(style,head.firstchild)}stylesheet.settextcontent(style,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}setup.autosetuptimeout(1,videojs);videojs.version="5.20.2";videojs.options=_player2["default"].prototype.options_;videojs.getplayers=function(){return _player2["default"].players};videojs.players=_player2["default"].players;videojs.getcomponent=_component2["default"].getcomponent;videojs.registercomponent=function(name,comp){if(_tech2["default"].istech(comp)){_log2["default"].warn("the "+name+" tech was registered as a component. it should instead be registered using videojs.registertech(name, tech)")}_component2["default"].registercomponent.call(_component2["default"],name,comp)};videojs.gettech=_tech2["default"].gettech;videojs.registertech=_tech2["default"].registertech;videojs.browser=browser;videojs.touch_enabled=browser.touch_enabled;videojs.extend=_extend2["default"];videojs.mergeoptions=_mergeoptions3["default"];videojs.bind=fn.bind;videojs.plugin=_plugins2["default"];videojs.addlanguage=function(code,data){var _mergeoptions;code=(""+code).tolowercase();videojs.options.languages=(0,_mergeoptions3["default"])(videojs.options.languages,(_mergeoptions={},_mergeoptions[code]=data,_mergeoptions));return videojs.options.languages[code]};videojs.log=_log2["default"];videojs.createtimerange=videojs.createtimeranges=_timeranges.createtimeranges;videojs.formattime=_formattime2["default"];videojs.parseurl=url.parseurl;videojs.iscrossorigin=url.iscrossorigin;videojs.eventtarget=_eventtarget2["default"];videojs.on=events.on;videojs.one=events.one;videojs.off=events.off;videojs.trigger=events.trigger;videojs.xhr=_xhr2["default"];videojs.texttrack=_texttrack2["default"];videojs.audiotrack=_audiotrack2["default"];videojs.videotrack=_videotrack2["default"];videojs.isel=dom.isel;videojs.istextnode=dom.istextnode;videojs.createel=dom.createel;videojs.hasclass=dom.haselclass;videojs.addclass=dom.addelclass;videojs.removeclass=dom.removeelclass;videojs.toggleclass=dom.toggleelclass;videojs.setattributes=dom.setelattributes;videojs.getattributes=dom.getelattributes;videojs.emptyel=dom.emptyel;videojs.appendcontent=dom.appendcontent;videojs.insertcontent=dom.insertcontent;videojs.computedstyle=_computedstyle2["default"];if(typeof define==="function"&&define.amd){define("videojs",[],function(){return videojs})}else{if((typeof exports==="undefined"?"undefined":_typeof(exports))==="object"&&(typeof module==="undefined"?"undefined":_typeof(module))==="object"){module.exports=videojs}}exports["default"]=videojs},{"104":104,"42":42,"43":43,"5":5,"51":51,"52":52,"56":56,"62":62,"64":64,"72":72,"77":77,"78":78,"80":80,"81":81,"82":82,"83":83,"84":84,"86":86,"87":87,"88":88,"89":89,"90":90,"92":92,"94":94,"95":95}],94:[function(_dereq_,module,exports){(function(global){var toplevel=typeof global!=="undefined"?global:typeof window!=="undefined"?window:{};var mindoc=_dereq_(96);if(typeof document!=="undefined"){module.exports=document}else{var doccy=toplevel["__global_document_cache@4"];if(!doccy){doccy=toplevel["__global_document_cache@4"]=mindoc}module.exports=doccy}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"96":96}],95:[function(_dereq_,module,exports){(function(global){if(typeof window!=="undefined"){module.exports=window}else{if(typeof global!=="undefined"){module.exports=global}else{if(typeof self!=="undefined"){module.exports=self}else{module.exports={}}}}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],96:[function(_dereq_,module,exports){},{}],97:[function(_dereq_,module,exports){module.exports=safeparsetuple;function safeparsetuple(obj,reviver){var json;var error=null;try{json=json.parse(obj,reviver)}catch(err){error=err}return[error,json]}},{}],98:[function(_dereq_,module,exports){function clean(s){return s.replace(/\n\r?\s*/g,"")}module.exports=function tsml(sa){var s="",i=0;for(;i59){return computeseconds(m[1],m[2],0,m[4])}else{return computeseconds(0,m[1],m[2],m[4])}}}function settings(){this.values=_objcreate(null)}settings.prototype={set:function(k,v){if(!this.get(k)&&v!==""){this.values[k]=v}},get:function(k,dflt,defaultkey){if(defaultkey){return this.has(k)?this.values[k]:dflt[defaultkey]}return this.has(k)?this.values[k]:dflt},has:function(k){return k in this.values},alt:function(k,v,a){for(var n=0;n=0&&v<=100){this.set(k,v);return true}}return false}};function parseoptions(input,callback,keyvaluedelim,groupdelim){var groups=groupdelim?input.split(groupdelim):[input];for(var i in groups){if(typeof groups[i]!=="string"){continue}var kv=groups[i].split(keyvaluedelim);if(kv.length!==2){continue}var k=kv[0];var v=kv[1];callback(k,v)}}function parsecue(input,cue,regionlist){var oinput=input;function consumetimestamp(){var ts=parsetimestamp(input);if(ts===null){throw new parsingerror(parsingerror.errors.badtimestamp,"malformed timestamp: "+oinput)}input=input.replace(/^[^\sa-za-z-]+/,"");return ts}function consumecuesettings(input,cue){var settings=new settings();parseoptions(input,function(k,v){switch(k){case"region":for(var i=regionlist.length-1;i>=0;i--){if(regionlist[i].id===v){settings.set(k,regionlist[i].region);break}}break;case"vertical":settings.alt(k,v,["rl","lr"]);break;case"line":var vals=v.split(","),vals0=vals[0];settings.integer(k,vals0);settings.percent(k,vals0)?settings.set("snaptolines",false):null;settings.alt(k,vals0,["auto"]);if(vals.length===2){settings.alt("linealign",vals[1],["start","middle","end"])}break;case"position":vals=v.split(",");settings.percent(k,vals[0]);if(vals.length===2){settings.alt("positionalign",vals[1],["start","middle","end"])}break;case"size":settings.percent(k,v);break;case"align":settings.alt(k,v,["start","middle","end","left","right"]);break}},/:/,/\s/);cue.region=settings.get("region",null);cue.vertical=settings.get("vertical","");cue.line=settings.get("line","auto");cue.linealign=settings.get("linealign","start");cue.snaptolines=settings.get("snaptolines",true);cue.size=settings.get("size",100);cue.align=settings.get("align","middle");cue.position=settings.get("position",{start:0,left:0,middle:50,end:100,right:100},cue.align);cue.positionalign=settings.get("positionalign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},cue.align)}function skipwhitespace(){input=input.replace(/^\s+/,"")}skipwhitespace();cue.starttime=consumetimestamp();skipwhitespace();if(input.substr(0,3)!=="-->"){throw new parsingerror(parsingerror.errors.badtimestamp,"malformed time stamp (time stamps must be separated by '-->'): "+oinput)}input=input.substr(3);skipwhitespace();cue.endtime=consumetimestamp();skipwhitespace();consumecuesettings(input,cue)}var escape={"&":"&","<":"<",">":">","‎":"\u200e","‏":"\u200f"," ":"\u00a0"};var tag_name={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"};var tag_annotation={v:"title",lang:"lang"};var needs_parent={rt:"ruby"};function parsecontent(window,input){function nexttoken(){if(!input){return null}function consume(result){input=input.substr(result.length);return result}var m=input.match(/^([^<]*)(<[^>]+>?)?/);return consume(m[1]?m[1]:m[2])}function unescape1(e){return escape[e]}function unescape(s){while((m=s.match(/&(amp|lt|gt|lrm|rlm|nbsp);/))){s=s.replace(m[0],unescape1) }return s}function shouldadd(current,element){return !needs_parent[element.localname]||needs_parent[element.localname]===current.localname}function createelement(type,annotation){var tagname=tag_name[type];if(!tagname){return null}var element=window.document.createelement(tagname);element.localname=tagname;var name=tag_annotation[type];if(name&&annotation){element[name]=annotation.trim()}return element}var rootdiv=window.document.createelement("div"),current=rootdiv,t,tagstack=[];while((t=nexttoken())!==null){if(t[0]==="<"){if(t[1]==="/"){if(tagstack.length&&tagstack[tagstack.length-1]===t.substr(2).replace(">","")){tagstack.pop();current=current.parentnode}continue}var ts=parsetimestamp(t.substr(1,t.length-2));var node;if(ts){node=window.document.createprocessinginstruction("timestamp",ts);current.appendchild(node);continue}var m=t.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!m){continue}node=createelement(m[1],m[3]);if(!node){continue}if(!shouldadd(current,node)){continue}if(m[2]){node.classname=m[2].substr(1).replace("."," ")}tagstack.push(m[1]);current.appendchild(node);current=node;continue}current.appendchild(window.document.createtextnode(unescape(t)))}return rootdiv}var strongrtlranges=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function isstrongrtlchar(charcode){for(var i=0;i=currentrange[0]&&charcode<=currentrange[1]){return true}}return false}function determinebidi(cuediv){var nodestack=[],text="",charcode;if(!cuediv||!cuediv.childnodes){return"ltr"}function pushnodes(nodestack,node){for(var i=node.childnodes.length-1;i>=0;i--){nodestack.push(node.childnodes[i])}}function nexttextnode(nodestack){if(!nodestack||!nodestack.length){return null}var node=nodestack.pop(),text=node.textcontent||node.innertext;if(text){var m=text.match(/^.*(\n|\r)/);if(m){nodestack.length=0;return m[0]}return text}if(node.tagname==="ruby"){return nexttextnode(nodestack)}if(node.childnodes){pushnodes(nodestack,node);return nexttextnode(nodestack)}}pushnodes(nodestack,cuediv);while((text=nexttextnode(nodestack))){for(var i=0;i=0&&cue.line<=100))){return cue.line}if(!cue.track||!cue.track.texttracklist||!cue.track.texttracklist.mediaelement){return -1}var track=cue.track,tracklist=track.texttracklist,count=0;for(var i=0;ib2.left&&this.topb2.top};boxposition.prototype.overlapsany=function(boxes){for(var i=0;i=container.top&&this.bottom<=container.bottom&&this.left>=container.left&&this.right<=container.right};boxposition.prototype.overlapsoppositeaxis=function(container,axis){switch(axis){case"+x":return this.leftcontainer.right;case"+y":return this.topcontainer.bottom}};boxposition.prototype.intersectpercentage=function(b2){var x=math.max(0,math.min(this.right,b2.right)-math.max(this.left,b2.left)),y=math.max(0,math.min(this.bottom,b2.bottom)-math.max(this.top,b2.top)),intersectarea=x*y;return intersectarea/(this.height*this.width)};boxposition.prototype.tocsscompatvalues=function(reference){return{top:this.top-reference.top,bottom:reference.bottom-this.bottom,left:this.left-reference.left,right:reference.right-this.right,height:this.height,width:this.width}};boxposition.getsimpleboxposition=function(obj){var height=obj.div?obj.div.offsetheight:obj.tagname?obj.offsetheight:0;var width=obj.div?obj.div.offsetwidth:obj.tagname?obj.offsetwidth:0;var top=obj.div?obj.div.offsettop:obj.tagname?obj.offsettop:0;obj=obj.div?obj.div.getboundingclientrect():obj.tagname?obj.getboundingclientrect():obj;var ret={left:obj.left,right:obj.right,top:obj.top||top,height:obj.height||height,bottom:obj.bottom||(top+(obj.height||height)),width:obj.width||width};return ret};function moveboxtolineposition(window,stylebox,containerbox,boxpositions){function findbestposition(b,axis){var bestposition,specifiedposition=new boxposition(b),percentage=1;for(var i=0;ip){bestposition=new boxposition(b);percentage=p}b=new boxposition(specifiedposition)}return bestposition||specifiedposition}var boxposition=new boxposition(stylebox),cue=stylebox.cue,linepos=computelinepos(cue),axis=[];if(cue.snaptolines){var size;switch(cue.vertical){case"":axis=["+y","-y"];size="height";break;case"rl":axis=["+x","-x"];size="width";break;case"lr":axis=["-x","+x"];size="width";break}var step=boxposition.lineheight,position=step*math.round(linepos),maxposition=containerbox[size]+step,initialaxis=axis[0];if(math.abs(position)>maxposition){position=position<0?-1:1;position*=math.ceil(maxposition/step)*step}if(linepos<0){position+=cue.vertical===""?containerbox.height:containerbox.width;axis=axis.reverse()}boxposition.move(initialaxis,position)}else{var calculatedpercentage=(boxposition.lineheight/containerbox.height)*100;switch(cue.linealign){case"middle":linepos-=(calculatedpercentage/2); break;case"end":linepos-=calculatedpercentage;break}switch(cue.vertical){case"":stylebox.applystyles({top:stylebox.formatstyle(linepos,"%")});break;case"rl":stylebox.applystyles({left:stylebox.formatstyle(linepos,"%")});break;case"lr":stylebox.applystyles({right:stylebox.formatstyle(linepos,"%")});break}axis=["+y","-x","+x","-y"];boxposition=new boxposition(stylebox)}var bestposition=findbestposition(boxposition,axis);stylebox.move(bestposition.tocsscompatvalues(containerbox))}function webvtt(){}webvtt.stringdecoder=function(){return{decode:function(data){if(!data){return""}if(typeof data!=="string"){throw new error("error - expected string data.")}return decodeuricomponent(encodeuricomponent(data))}}};webvtt.convertcuetodomtree=function(window,cuetext){if(!window||!cuetext){return null}return parsecontent(window,cuetext)};var font_size_percent=0.05;var font_style="sans-serif";var cue_background_padding="1.5%";webvtt.processcues=function(window,cues,overlay){if(!window||!cues||!overlay){return null}while(overlay.firstchild){overlay.removechild(overlay.firstchild)}var paddedoverlay=window.document.createelement("div");paddedoverlay.style.position="absolute";paddedoverlay.style.left="0";paddedoverlay.style.right="0";paddedoverlay.style.top="0";paddedoverlay.style.bottom="0";paddedoverlay.style.margin=cue_background_padding;overlay.appendchild(paddedoverlay);function shouldcompute(cues){for(var i=0;i")===-1){self.cue.id=line;continue}case"cue":try{parsecue(line,self.cue,self.regionlist)}catch(e){self.reportorthrowerror(e);self.cue=null;self.state="badcue";continue}self.state="cuetext";continue;case"cuetext":var hassubstring=line.indexof("-->")!==-1;if(!line||hassubstring&&(alreadycollectedline=true)){self.oncue&&self.oncue(self.cue);self.cue=null;self.state="id";continue}if(self.cue.text){self.cue.text+="\n"}self.cue.text+=line;continue;case"badcue":if(!line){self.state="id"}continue}}}catch(e){self.reportorthrowerror(e);if(self.state==="cuetext"&&self.cue&&self.oncue){self.oncue(self.cue)}self.cue=null;self.state=self.state==="initial"?"badwebvtt":"badcue"}return this},flush:function(){var self=this;try{self.buffer+=self.decoder.decode();if(self.cue||self.state==="header"){self.buffer+="\n\n";self.parse()}if(self.state==="initial"){throw new parsingerror(parsingerror.errors.badsignature)}}catch(e){self.reportorthrowerror(e)}self.onflush&&self.onflush();return this}};module.exports=webvtt},{}],101:[function(_dereq_,module,exports){var autokeyword="auto";var directionsetting={"":true,"lr":true,"rl":true};var alignsetting={"start":true,"middle":true,"end":true,"left":true,"right":true};function finddirectionsetting(value){if(typeof value!=="string"){return false}var dir=directionsetting[value.tolowercase()];return dir?value.tolowercase():false}function findalignsetting(value){if(typeof value!=="string"){return false}var align=alignsetting[value.tolowercase()];return align?value.tolowercase():false}function extend(obj){var i=1;for(;i100){throw new error("position must be between 0 and 100.")}_position=value;this.hasbeenreset=true}}));object.defineproperty(cue,"positionalign",extend({},baseobj,{get:function(){return _positionalign},set:function(value){var setting=findalignsetting(value);if(!setting){throw new syntaxerror("an invalid or illegal string was specified.")}_positionalign=setting;this.hasbeenreset=true}}));object.defineproperty(cue,"size",extend({},baseobj,{get:function(){return _size },set:function(value){if(value<0||value>100){throw new error("size must be between 0 and 100.")}_size=value;this.hasbeenreset=true}}));object.defineproperty(cue,"align",extend({},baseobj,{get:function(){return _align},set:function(value){var setting=findalignsetting(value);if(!setting){throw new syntaxerror("an invalid or illegal string was specified.")}_align=setting;this.hasbeenreset=true}}));cue.displaystate=undefined;if(isie8){return cue}}vttcue.prototype.getcueashtml=function(){return webvtt.convertcuetodomtree(window,this.text)};module.exports=vttcue},{}],102:[function(_dereq_,module,exports){var scrollsetting={"":true,"up":true};function findscrollsetting(value){if(typeof value!=="string"){return false}var scroll=scrollsetting[value.tolowercase()];return scroll?value.tolowercase():false}function isvalidpercentvalue(value){return typeof value==="number"&&(value>=0&&value<=100)}function vttregion(){var _width=100;var _lines=3;var _regionanchorx=0;var _regionanchory=100;var _viewportanchorx=0;var _viewportanchory=100;var _scroll="";object.defineproperties(this,{"width":{enumerable:true,get:function(){return _width},set:function(value){if(!isvalidpercentvalue(value)){throw new error("width must be between 0 and 100.")}_width=value}},"lines":{enumerable:true,get:function(){return _lines},set:function(value){if(typeof value!=="number"){throw new typeerror("lines must be set to a number.")}_lines=value}},"regionanchory":{enumerable:true,get:function(){return _regionanchory},set:function(value){if(!isvalidpercentvalue(value)){throw new error("regionanchorx must be between 0 and 100.")}_regionanchory=value}},"regionanchorx":{enumerable:true,get:function(){return _regionanchorx},set:function(value){if(!isvalidpercentvalue(value)){throw new error("regionanchory must be between 0 and 100.")}_regionanchorx=value}},"viewportanchory":{enumerable:true,get:function(){return _viewportanchory},set:function(value){if(!isvalidpercentvalue(value)){throw new error("viewportanchory must be between 0 and 100.")}_viewportanchory=value}},"viewportanchorx":{enumerable:true,get:function(){return _viewportanchorx},set:function(value){if(!isvalidpercentvalue(value)){throw new error("viewportanchorx must be between 0 and 100.")}_viewportanchorx=value}},"scroll":{enumerable:true,get:function(){return _scroll},set:function(value){var setting=findscrollsetting(value);if(setting===false){throw new syntaxerror("an invalid or illegal string was specified.")}_scroll=setting}}})}module.exports=vttregion},{}],103:[function(_dereq_,module,exports){(function(global){var win;if(typeof window!=="undefined"){win=window}else{if(typeof global!=="undefined"){win=global}else{if(typeof self!=="undefined"){win=self}else{win={}}}}module.exports=win}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],104:[function(_dereq_,module,exports){var window=_dereq_(95);var isfunction=_dereq_(105);var parseheaders=_dereq_(108);var xtend=_dereq_(109);module.exports=createxhr;createxhr.xmlhttprequest=window.xmlhttprequest||noop;createxhr.xdomainrequest="withcredentials" in (new createxhr.xmlhttprequest())?createxhr.xmlhttprequest:window.xdomainrequest;foreacharray(["get","put","post","patch","head","delete"],function(method){createxhr[method==="delete"?"del":method]=function(uri,options,callback){options=initparams(uri,options,callback);options.method=method.touppercase();return _createxhr(options)}});function foreacharray(array,iterator){for(var i=0;i0){timeouttimer=settimeout(function(){aborted=true;xhr.abort("timeout");var e=new error("xmlhttprequest timeout");e.code="etimedout";errorfunc(e)},options.timeout)}if(xhr.setrequestheader){for(key in headers){if(headers.hasownproperty(key)){xhr.setrequestheader(key,headers[key])}}}else{if(options.headers&&!isempty(options.headers)){throw new error("headers cannot be set on an xdomainrequest object")}}if("responsetype" in options){xhr.responsetype=options.responsetype}if("beforesend" in options&&typeof options.beforesend==="function"){options.beforesend(xhr)}xhr.send(body);return xhr}function getxml(xhr){if(xhr.responsetype==="document"){return xhr.responsexml}var firefoxbugtakeneffect=xhr.status===204&&xhr.responsexml&&xhr.responsexml.documentelement.nodename==="parsererror";if(xhr.responsetype===""&&!firefoxbugtakeneffect){return xhr.responsexml}return null}function noop(){}},{"105":105,"108":108,"109":109,"95":95}],105:[function(_dereq_,module,exports){module.exports=isfunction;var tostring=object.prototype.tostring;function isfunction(fn){var string=tostring.call(fn);return string==="[object function]"||(typeof fn==="function"&&string!=="[object regexp]")||(typeof window!=="undefined"&&(fn===window.settimeout||fn===window.alert||fn===window.confirm||fn===window.prompt))}},{}],106:[function(_dereq_,module,exports){var isfunction=_dereq_(105);module.exports=foreach;var tostring=object.prototype.tostring;var hasownproperty=object.prototype.hasownproperty;function foreach(list,iterator,context){if(!isfunction(iterator)){throw new typeerror("iterator must be a function")}if(arguments.length<3){context=this}if(tostring.call(list)==="[object array]"){foreacharray(list,iterator,context)}else{if(typeof list==="string"){foreachstring(list,iterator,context)}else{foreachobject(list,iterator,context)}}}function foreacharray(array,iterator,context){for(var i=0,len=array.length;i0.01||(f=b.location,g=b.videojs||{},a.src="//www.google-analytics.com/__utm.gif?utmwv=5.4.2&utmac=ua-16505296-3&utmn=1&utmhn="+d(f.hostname)+"&utmsr="+b.screen.availwidth+"x"+b.screen.availheight+"&utmul="+(c.language||c.userlanguage||"").tolowercase()+"&utmr="+d(f.href)+"&utmp="+d(f.hostname+f.pathname)+"&utmcc=__utma%3d1."+e.floor(10000000000*e.random())+".1.1.1.1%3b&utme=8(vjsv*cdnv)9("+g.version+"*"+g.cdn_version+")")) }(new image,window,navigator,encodeuricomponent,math)}();