UNPKG

zby_video_sdk

Version:

直播云视频SDK

1 lines 321 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.videoSdk=e():t.videoSdk=e()}(window,function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,n){"use strict";var o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":r(window))&&(o=window)}t.exports=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=function(t,e){if(s(e))throw"obj is empty";t.map(function(t){var n=t.split("|");if(n.length>1){if(!(n.filter(function(t){var n=t.replace(/(^\s*)|(\s*$)/g,""),o=i(n,e),r=o.value;o.path;return!s(r)}).length>0))throw"fields [ "+n.join(", ")+" ] are all null or undefined"}else{var o=i(t,e),r=o.value,a=o.path;if(s(r)){if(null===r)throw a+" is null";if(void 0===r)throw a+" is not defined"}}})},i=function(t,e){for(var n=t.split("."),o=e,r=0;r<n.length;r++){if(o=o[n[r]],r===n.length-1)return{value:o,path:t};if(r<n.length-1&&s(o))return{value:o,path:n.slice(0,r+1).join(".")}}},s=function(t){if(void 0===t)return!0;if("object"===(void 0===t?"undefined":o(t))){if(null===t)return!0;if(t instanceof Array&&0===t.length)return!0;if(t instanceof Object&&"{}"===JSON.stringify(t))return!0}return"string"==typeof t&&""===t};function a(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}e.extend=a,e.optionsValid=r,e.isNullOrEmpty=s,e.default={extend:a,optionsValid:r,isNullOrEmpty:s}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),r=l(n(3)),i=l(n(4)),s=n(1),a=l(n(5));function l(t){return t&&t.__esModule?t:{default:t}}var u=["id","urls","onVideoEvents","config","config.part_id","config.project_id","config.class_id","config.teacher_master_id"],c=!1,p=new r.default,f={},h={},d=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.initializer(e)}return o(t,[{key:"version",get:function(){return"1.0.0.8"}}]),o(t,[{key:"initializer",value:function(t){f=new a.default(this),this.streamData=f,h=t}},{key:"initVideo",value:function(){this._initVideo(h)}},{key:"_initVideo",value:function(t){var e=this;(0,s.optionsValid)(u,t);var n=this;this.events=this.events||p,this.on=p.on.bind(this.events),this.emit=p.emit.bind(this.events);var o=/msie/.test(navigator.userAgent.toLowerCase()),r=t.id,a=t.onVideoEvents,l=t.config,f=t.controls,h=void 0===f||f,d=t.autoplay,y=void 0!==d&&d,v=t.preload,m=void 0===v?"auto":v,g=t.loop,b=void 0!==g&&g,_=t.muted,j=void 0!==_&&_,T=t.techOrder,w=void 0===T?o?["flash"]:["html5","flash"]:T,k=t.width,E=void 0===k?500:k,O=t.height,x=void 0===O?300:O;document.getElementById(r)?"function"==typeof a?l instanceof Object?this.setDatas(t,function(){var o=void 0!==l.videotype?l.videotype:"live";c="live"==o;var s=void 0;e.video=(0,i.default)(r,{techOrder:w,width:E||"",height:x||"",controls:h,autoplay:y,preload:m,loop:b,muted:j,isFullscreen:!0}),e.options=t,e.video.ready(function(){console.log("是否数据上报:",c),c&&n.streamData.submitLog({action:"loadplayer"}),console.log("readyreadyreadyreadyreadyreadyready:",t.onVideoEvents),t.onVideoEvents("ready");var e=0;s=setInterval(function(){e++,(!n.streamData.isIpInit||e>12)&&(clearInterval(s),n.streamData.setSrc())},100),this.on("seeking",function(){t.onVideoEvents("seeking")}),this.on("seeked",function(){t.onVideoEvents("seeked")}),this.on("suspend",function(){t.onVideoEvents("suspend")}),this.on("progress",function(){t.onVideoEvents("progress")});var o=0,r=!1;this.on("timeupdate",function(e){t.onVideoEvents("timeupdate",n.video.currentTime()),Math.abs(n.video.currentTime()-o)>.1&&(r||(t.onVideoEvents("playing"),c&&n.streamData.bufferPlay(),r=!0,0),o=n.video.currentTime())}),this.on("loadstart",function(){r=!1,o=0,t.onVideoEvents("loadstart"),c&&n.streamData.startPlay()}),this.on("loadeddata",function(){t.onVideoEvents("loadeddata")}),this.on("rtmpconnected",function(){t.onVideoEvents("rtmpconnected")}),this.on("rtmpretry",function(){c&&n.streamData.retryFun()}),this.on("onsrcchange",function(){console.log("onsrcchange")}),this.on("ratechange",function(t){console.log("ratechange,",t)}),this.on("sourceset",function(t){console.log("sourceset,",t)}),this.on("loadedmetadata",function(e){t.onVideoEvents("loadedmetadata")}),this.on("canplay",function(){t.onVideoEvents("canplay")}),this.on("canplaythrough",function(){t.onVideoEvents("canplaythrough")}),this.on("play",function(){t.onVideoEvents("play"),c&&n.streamData.playFun()}),this.on("playing",function(){}),this.on("pause",function(){t.onVideoEvents("pause"),c&&n.streamData.pauseFun()}),this.on("waiting",function(){r=!1,t.onVideoEvents("waiting"),!n.streamData.initialize&&c&&n.streamData.bufferNull()}),this.on("ended",function(){t.onVideoEvents("ended"),c&&n.streamData.endedFun()}),this.on("ratechange",function(){t.onVideoEvents("ratechange")}),this.on("volumechange",function(){t.onVideoEvents("volumechange")}),this.on("durationchange",function(){t.onVideoEvents("durationchange")}),this.on("stalled",function(){t.onVideoEvents("stalled")}),this.on("emptied",function(){t.onVideoEvents("emptied")}),this.on("abort",function(){t.onVideoEvents("abort")});var i=0;this.on("error",function(e){window.console.log("errorerrorerror"),n.streamData.debounce(function(){t.onVideoEvents("error",e)},100)(),c&&n.streamData.submitLog({action:"playerror"}),"application/x-mpegURL"==n.video.currentType()&&(i&&clearTimeout(i),i=setTimeout(function(){n.streamData.autoRetryJoin(1)},2e3))})})}):console.log("参数options.config类型错误!"):console.log("参数options.onVideoEvents类型错误!"):console.log("未找到ID为"+r+"的DOM元素!")}},{key:"setStatus",value:function(t){var e=parseInt(t);f.setLessonStatus(e),3!=e||f.stopPlay()}},{key:"setDatas",value:function(t,e){if((0,s.isNullOrEmpty)(t.urls))return!1;f.initConfig(t),"function"==typeof e&&e(t)}},{key:"setStreamUrls",value:function(t){f.initialized||(h.urls=t,this.setDatas(h)),f.setUrls(t)}},{key:"src",value:function(t){void 0!==t&&t?0==t.indexOf("rtmp")?this.video.src({type:"rtmp/flv",src:t}):/\.flv/.test(t)?this.video.src({type:"video/flv",src:t}):/(\.m3u8)/.test(t)?this.video.src({type:"application/x-mpegURL",src:t}):this.video.src(t):console.log("缺少参数url!")}},{key:"playCurrent",value:function(){f.playCurrent()}},{key:"play",value:function(){this.video.play()}},{key:"pause",value:function(){this.video.pause()}},{key:"dispose",value:function(){this.video.dispose()}},{key:"width",value:function(t){this.video.width(t)}},{key:"height",value:function(t){this.video.height(t)}},{key:"el",value:function(){return this.video.el()}},{key:"show",value:function(){this.video.show()}},{key:"hide",value:function(){this.video.hide()}},{key:"requestFullscreen",value:function(){this.video.requestFullscreen()}},{key:"exitFullScreen",value:function(){this.video.exitFullscreen()}},{key:"currentTime",value:function(t){this.video.currentTime(t)}},{key:"changeLine",value:function(t){f.changeLineFun(t)}},{key:"changeStreamModel",value:function(t,e){f.setSrc(t),this.setStreamUrls(e),this.play()}}]),t}();e.default=d},function(t,e,n){"use strict";var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return"function"==typeof t}function s(t){return"object"===(void 0===t?"undefined":o(t))&&null!==t}function a(t){return void 0===t}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(t){if(!function(t){return"number"==typeof t}(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},r.prototype.emit=function(t){var e,n,o,r,l,u;if(this._events||(this._events={}),"error"===t&&(!this._events.error||s(this._events.error)&&!this._events.error.length)){if((e=arguments[1])instanceof Error)throw e;var c=new Error('Uncaught, unspecified "error" event. ('+e+")");throw c.context=e,c}if(a(n=this._events[t]))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:r=Array.prototype.slice.call(arguments,1),n.apply(this,r)}else if(s(n))for(r=Array.prototype.slice.call(arguments,1),o=(u=n.slice()).length,l=0;l<o;l++)u[l].apply(this,r);return!0},r.prototype.addListener=function(t,e){var n;if(!i(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,i(e.listener)?e.listener:e),this._events[t]?s(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,s(this._events[t])&&!this._events[t].warned&&(n=a(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[t].length>n&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(t,e){if(!i(e))throw TypeError("listener must be a function");var n=!1;function o(){this.removeListener(t,o),n||(n=!0,e.apply(this,arguments))}return o.listener=e,this.on(t,o),this},r.prototype.removeListener=function(t,e){var n,o,r,a;if(!i(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(r=(n=this._events[t]).length,o=-1,n===e||i(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(s(n)){for(a=r;a-- >0;)if(n[a]===e||n[a].listener&&n[a].listener===e){o=a;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},r.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(i(n=this._events[t]))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},r.prototype.listeners=function(t){return this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},r.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},r.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,n){(function(e){var n;t.exports=function t(e,o,r){function i(a,l){if(!o[a]){if(!e[a]){var u="function"==typeof n&&n;if(!l&&u)return n(a,!0);if(s)return s(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var p=o[a]={exports:{}};e[a][0].call(p.exports,function(t){var n=e[a][1][t];return i(n||t)},p,p.exports,t,e,o,r)}return o[a].exports}for(var s="function"==typeof n&&n,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(t,n,o){(function(e){var o=void 0!==e?e:"undefined"!=typeof window?window:{},r=t("min-document");if("undefined"!=typeof document)n.exports=document;else{var i=o["__GLOBAL_DOCUMENT_CACHE@4"];i||(i=o["__GLOBAL_DOCUMENT_CACHE@4"]=r),n.exports=i}}).call(this,void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"min-document":3}],2:[function(t,n,o){(function(t){"undefined"!=typeof window?n.exports=window:void 0!==t?n.exports=t:"undefined"!=typeof self?n.exports=self:n.exports={}}).call(this,void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(t,e,n){},{}],4:[function(t,e,n){var o=t("../internal/getNative"),r=o(Date,"now"),i=r||function(){return(new Date).getTime()};e.exports=i},{"../internal/getNative":20}],5:[function(t,e,n){var o=t("../lang/isObject"),r=t("../date/now"),i="Expected a function",s=Math.max;e.exports=function(t,e,n){var a,l,u,c,p,f,h,d=0,y=!1,v=!0;if("function"!=typeof t)throw new TypeError(i);if(e=e<0?0:+e||0,!0===n){var m=!0;v=!1}else o(n)&&(m=!!n.leading,y="maxWait"in n&&s(+n.maxWait||0,e),v="trailing"in n?!!n.trailing:v);function g(e,n){n&&clearTimeout(n),l=f=h=void 0,e&&(d=r(),u=t.apply(p,a),f||l||(a=p=void 0))}function b(){var t=e-(r()-c);t<=0||t>e?g(h,l):f=setTimeout(b,t)}function _(){g(v,f)}function j(){if(a=arguments,c=r(),p=this,h=v&&(f||!m),!1===y)var n=m&&!f;else{l||m||(d=c);var o=y-(c-d),i=o<=0||o>y;i?(l&&(l=clearTimeout(l)),d=c,u=t.apply(p,a)):l||(l=setTimeout(_,o))}return i&&f?f=clearTimeout(f):f||e===y||(f=setTimeout(b,e)),n&&(i=!0,u=t.apply(p,a)),!i||f||l||(a=p=void 0),u}return j.cancel=function(){f&&clearTimeout(f),l&&clearTimeout(l),d=0,l=f=h=void 0},j}},{"../date/now":4,"../lang/isObject":33}],6:[function(t,e,n){var o="Expected a function",r=Math.max;e.exports=function(t,e){if("function"!=typeof t)throw new TypeError(o);return e=r(void 0===e?t.length-1:+e||0,0),function(){for(var n=arguments,o=-1,i=r(n.length-e,0),s=Array(i);++o<i;)s[o]=n[e+o];switch(e){case 0:return t.call(this,s);case 1:return t.call(this,n[0],s);case 2:return t.call(this,n[0],n[1],s)}var a=Array(e+1);for(o=-1;++o<e;)a[o]=n[o];return a[e]=s,t.apply(this,a)}}},{}],7:[function(t,e,n){var o=t("./debounce"),r=t("../lang/isObject"),i="Expected a function";e.exports=function(t,e,n){var s=!0,a=!0;if("function"!=typeof t)throw new TypeError(i);return!1===n?s=!1:r(n)&&(s="leading"in n?!!n.leading:s,a="trailing"in n?!!n.trailing:a),o(t,e,{leading:s,maxWait:+e,trailing:a})}},{"../lang/isObject":33,"./debounce":5}],8:[function(t,e,n){e.exports=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e}},{}],9:[function(t,e,n){e.exports=function(t,e){for(var n=-1,o=t.length;++n<o&&!1!==e(t[n],n,t););return t}},{}],10:[function(t,e,n){e.exports=function(t,e,n){n||(n={});for(var o=-1,r=e.length;++o<r;){var i=e[o];n[i]=t[i]}return n}},{}],11:[function(t,e,n){var o=t("./createBaseFor"),r=o();e.exports=r},{"./createBaseFor":18}],12:[function(t,e,n){var o=t("./baseFor"),r=t("../object/keysIn");e.exports=function(t,e){return o(t,e,r)}},{"../object/keysIn":39,"./baseFor":11}],13:[function(t,e,n){var o=t("./arrayEach"),r=t("./baseMergeDeep"),i=t("../lang/isArray"),s=t("./isArrayLike"),a=t("../lang/isObject"),l=t("./isObjectLike"),u=t("../lang/isTypedArray"),c=t("../object/keys");e.exports=function t(e,n,p,f,h){if(!a(e))return e;var d=s(n)&&(i(n)||u(n)),y=d?void 0:c(n);return o(y||n,function(o,i){if(y&&(o=n[i=o]),l(o))f||(f=[]),h||(h=[]),r(e,n,i,t,p,f,h);else{var s=e[i],a=p?p(s,o,i,e,n):void 0,u=void 0===a;u&&(a=o),void 0===a&&(!d||i in e)||!u&&(a==a?a===s:s!=s)||(e[i]=a)}}),e}},{"../lang/isArray":30,"../lang/isObject":33,"../lang/isTypedArray":36,"../object/keys":38,"./arrayEach":9,"./baseMergeDeep":14,"./isArrayLike":21,"./isObjectLike":26}],14:[function(t,e,n){var o=t("./arrayCopy"),r=t("../lang/isArguments"),i=t("../lang/isArray"),s=t("./isArrayLike"),a=t("../lang/isPlainObject"),l=t("../lang/isTypedArray"),u=t("../lang/toPlainObject");e.exports=function(t,e,n,c,p,f,h){for(var d=f.length,y=e[n];d--;)if(f[d]==y)return void(t[n]=h[d]);var v=t[n],m=p?p(v,y,n,t,e):void 0,g=void 0===m;g&&(m=y,s(y)&&(i(y)||l(y))?m=i(v)?v:s(v)?o(v):[]:a(y)||r(y)?m=r(v)?u(v):a(v)?v:{}:g=!1),f.push(y),h.push(m),g?t[n]=c(m,y,p,f,h):(m==m?m!==v:v==v)&&(t[n]=m)}},{"../lang/isArguments":29,"../lang/isArray":30,"../lang/isPlainObject":34,"../lang/isTypedArray":36,"../lang/toPlainObject":37,"./arrayCopy":8,"./isArrayLike":21}],15:[function(t,e,n){var o=t("./toObject");e.exports=function(t){return function(e){return null==e?void 0:o(e)[t]}}},{"./toObject":28}],16:[function(t,e,n){var o=t("../utility/identity");e.exports=function(t,e,n){if("function"!=typeof t)return o;if(void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,o,r){return t.call(e,n,o,r)};case 4:return function(n,o,r,i){return t.call(e,n,o,r,i)};case 5:return function(n,o,r,i,s){return t.call(e,n,o,r,i,s)}}return function(){return t.apply(e,arguments)}}},{"../utility/identity":42}],17:[function(t,e,n){var o=t("./bindCallback"),r=t("./isIterateeCall"),i=t("../function/restParam");e.exports=function(t){return i(function(e,n){var i=-1,s=null==e?0:n.length,a=s>2?n[s-2]:void 0,l=s>2?n[2]:void 0,u=s>1?n[s-1]:void 0;for("function"==typeof a?(a=o(a,u,5),s-=2):s-=(a="function"==typeof u?u:void 0)?1:0,l&&r(n[0],n[1],l)&&(a=s<3?void 0:a,s=1);++i<s;){var c=n[i];c&&t(e,c,a)}return e})}},{"../function/restParam":6,"./bindCallback":16,"./isIterateeCall":24}],18:[function(t,e,n){var o=t("./toObject");e.exports=function(t){return function(e,n,r){for(var i=o(e),s=r(e),a=s.length,l=t?a:-1;t?l--:++l<a;){var u=s[l];if(!1===n(i[u],u,i))break}return e}}},{"./toObject":28}],19:[function(t,e,n){var o=t("./baseProperty"),r=o("length");e.exports=r},{"./baseProperty":15}],20:[function(t,e,n){var o=t("../lang/isNative");e.exports=function(t,e){var n=null==t?void 0:t[e];return o(n)?n:void 0}},{"../lang/isNative":32}],21:[function(t,e,n){var o=t("./getLength"),r=t("./isLength");e.exports=function(t){return null!=t&&r(o(t))}},{"./getLength":19,"./isLength":25}],22:[function(t,e,n){var o=function(){try{Object({toString:0}+"")}catch(t){return function(){return!1}}return function(t){return"function"!=typeof t.toString&&"string"==typeof(t+"")}}();e.exports=o},{}],23:[function(t,e,n){var o=/^\d+$/,r=9007199254740991;e.exports=function(t,e){return t="number"==typeof t||o.test(t)?+t:-1,e=null==e?r:e,t>-1&&t%1==0&&t<e}},{}],24:[function(t,e,n){var o=t("./isArrayLike"),r=t("./isIndex"),i=t("../lang/isObject");e.exports=function(t,e,n){if(!i(n))return!1;var s=typeof e;if("number"==s?o(n)&&r(e,n.length):"string"==s&&e in n){var a=n[e];return t==t?t===a:a!=a}return!1}},{"../lang/isObject":33,"./isArrayLike":21,"./isIndex":23}],25:[function(t,e,n){var o=9007199254740991;e.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}},{}],26:[function(t,e,n){e.exports=function(t){return!!t&&"object"==typeof t}},{}],27:[function(t,e,n){var o=t("../lang/isArguments"),r=t("../lang/isArray"),i=t("./isIndex"),s=t("./isLength"),a=t("../lang/isString"),l=t("../object/keysIn"),u=Object.prototype,c=u.hasOwnProperty;e.exports=function(t){for(var e=l(t),n=e.length,u=n&&t.length,p=!!u&&s(u)&&(r(t)||o(t)||a(t)),f=-1,h=[];++f<n;){var d=e[f];(p&&i(d,u)||c.call(t,d))&&h.push(d)}return h}},{"../lang/isArguments":29,"../lang/isArray":30,"../lang/isString":35,"../object/keysIn":39,"./isIndex":23,"./isLength":25}],28:[function(t,e,n){var o=t("../lang/isObject"),r=t("../lang/isString"),i=t("../support");e.exports=function(t){if(i.unindexedChars&&r(t)){for(var e=-1,n=t.length,s=Object(t);++e<n;)s[e]=t.charAt(e);return s}return o(t)?t:Object(t)}},{"../lang/isObject":33,"../lang/isString":35,"../support":41}],29:[function(t,e,n){var o=t("../internal/isArrayLike"),r=t("../internal/isObjectLike"),i=Object.prototype,s=i.hasOwnProperty,a=i.propertyIsEnumerable;e.exports=function(t){return r(t)&&o(t)&&s.call(t,"callee")&&!a.call(t,"callee")}},{"../internal/isArrayLike":21,"../internal/isObjectLike":26}],30:[function(t,e,n){var o=t("../internal/getNative"),r=t("../internal/isLength"),i=t("../internal/isObjectLike"),s=Object.prototype,a=s.toString,l=o(Array,"isArray"),u=l||function(t){return i(t)&&r(t.length)&&"[object Array]"==a.call(t)};e.exports=u},{"../internal/getNative":20,"../internal/isLength":25,"../internal/isObjectLike":26}],31:[function(t,e,n){var o=t("./isObject"),r="[object Function]",i=Object.prototype,s=i.toString;e.exports=function(t){return o(t)&&s.call(t)==r}},{"./isObject":33}],32:[function(t,e,n){var o=t("./isFunction"),r=t("../internal/isHostObject"),i=t("../internal/isObjectLike"),s=/^\[object .+?Constructor\]$/,a=Object.prototype,l=Function.prototype.toString,u=a.hasOwnProperty,c=RegExp("^"+l.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(t){return null!=t&&(o(t)?c.test(l.call(t)):i(t)&&(r(t)?c:s).test(t))}},{"../internal/isHostObject":22,"../internal/isObjectLike":26,"./isFunction":31}],33:[function(t,e,n){e.exports=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}},{}],34:[function(t,e,n){var o=t("../internal/baseForIn"),r=t("./isArguments"),i=t("../internal/isHostObject"),s=t("../internal/isObjectLike"),a=t("../support"),l="[object Object]",u=Object.prototype,c=u.hasOwnProperty,p=u.toString;e.exports=function(t){var e,n;return!(!s(t)||p.call(t)!=l||i(t)||r(t)||!(c.call(t,"constructor")||"function"!=typeof(e=t.constructor)||e instanceof e))&&(a.ownLast?(o(t,function(t,e,o){return n=c.call(o,e),!1}),!1!==n):(o(t,function(t,e){n=e}),void 0===n||c.call(t,n)))}},{"../internal/baseForIn":12,"../internal/isHostObject":22,"../internal/isObjectLike":26,"../support":41,"./isArguments":29}],35:[function(t,e,n){var o=t("../internal/isObjectLike"),r="[object String]",i=Object.prototype,s=i.toString;e.exports=function(t){return"string"==typeof t||o(t)&&s.call(t)==r}},{"../internal/isObjectLike":26}],36:[function(t,e,n){var o=t("../internal/isLength"),r=t("../internal/isObjectLike"),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1;var s=Object.prototype,a=s.toString;e.exports=function(t){return r(t)&&o(t.length)&&!!i[a.call(t)]}},{"../internal/isLength":25,"../internal/isObjectLike":26}],37:[function(t,e,n){var o=t("../internal/baseCopy"),r=t("../object/keysIn");e.exports=function(t){return o(t,r(t))}},{"../internal/baseCopy":10,"../object/keysIn":39}],38:[function(t,e,n){var o=t("../internal/getNative"),r=t("../internal/isArrayLike"),i=t("../lang/isObject"),s=t("../internal/shimKeys"),a=t("../support"),l=o(Object,"keys"),u=l?function(t){var e=null==t?void 0:t.constructor;return"function"==typeof e&&e.prototype===t||("function"==typeof t?a.enumPrototypes:r(t))?s(t):i(t)?l(t):[]}:s;e.exports=u},{"../internal/getNative":20,"../internal/isArrayLike":21,"../internal/shimKeys":27,"../lang/isObject":33,"../support":41}],39:[function(t,e,n){var o=t("../internal/arrayEach"),r=t("../lang/isArguments"),i=t("../lang/isArray"),s=t("../lang/isFunction"),a=t("../internal/isIndex"),l=t("../internal/isLength"),u=t("../lang/isObject"),c=t("../lang/isString"),p=t("../support"),f="[object Error]",h="[object Object]",d="[object String]",y=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],v=Error.prototype,m=Object.prototype,g=String.prototype,b=m.hasOwnProperty,_=m.toString,j={};j["[object Array]"]=j["[object Date]"]=j["[object Number]"]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},j["[object Boolean]"]=j[d]={constructor:!0,toString:!0,valueOf:!0},j[f]=j["[object Function]"]=j["[object RegExp]"]={constructor:!0,toString:!0},j[h]={constructor:!0},o(y,function(t){for(var e in j)if(b.call(j,e)){var n=j[e];n[t]=b.call(n,t)}}),e.exports=function(t){if(null==t)return[];u(t)||(t=Object(t));var e=t.length;e=e&&l(e)&&(i(t)||r(t)||c(t))&&e||0;for(var n=t.constructor,o=-1,T=s(n)&&n.prototype||m,w=T===t,k=Array(e),E=e>0,O=p.enumErrorProps&&(t===v||t instanceof Error),x=p.enumPrototypes&&s(t);++o<e;)k[o]=o+"";for(var C in t)x&&"prototype"==C||O&&("message"==C||"name"==C)||E&&a(C,e)||"constructor"==C&&(w||!b.call(t,C))||k.push(C);if(p.nonEnumShadows&&t!==m){var S=t===g?d:t===v?f:_.call(t),P=j[S]||j[h];for(S==h&&(T=m),e=y.length;e--;){C=y[e];var M=P[C];w&&M||(M?!b.call(t,C):t[C]===T[C])||k.push(C)}}return k}},{"../internal/arrayEach":9,"../internal/isIndex":23,"../internal/isLength":25,"../lang/isArguments":29,"../lang/isArray":30,"../lang/isFunction":31,"../lang/isObject":33,"../lang/isString":35,"../support":41}],40:[function(t,e,n){var o=t("../internal/baseMerge"),r=t("../internal/createAssigner"),i=r(o);e.exports=i},{"../internal/baseMerge":13,"../internal/createAssigner":17}],41:[function(t,e,n){var o=Array.prototype,r=Error.prototype,i=Object.prototype,s=i.propertyIsEnumerable,a=o.splice,l={};!function(t){var e=function(){this.x=1},n={0:1,length:1},o=[];for(var i in e.prototype={valueOf:1,y:1},new e)o.push(i);l.enumErrorProps=s.call(r,"message")||s.call(r,"name"),l.enumPrototypes=s.call(e,"prototype"),l.nonEnumShadows=!/valueOf/.test(o),l.ownLast="x"!=o[0],l.spliceObjects=(a.call(n,0,1),!n[0]),l.unindexedChars="x"[0]+Object("x")[0]!="xx"}(),e.exports=l},{}],42:[function(t,e,n){e.exports=function(t){return t}},{}],43:[function(t,e,n){var o=t("object-keys");e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test");if("string"==typeof e)return!1;for(e in t[e]=42,t)return!1;if(0!==o(t).length)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(t,e);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},{"object-keys":50}],44:[function(t,e,n){var o=t("object-keys"),r=t("function-bind"),i=t("./hasSymbols")(),s=Object,a=r.call(Function.call,Array.prototype.push),l=r.call(Function.call,Object.prototype.propertyIsEnumerable);e.exports=function(t,e){if(!function(t){return void 0!==t&&null!==t}(t))throw new TypeError("target must be an object");var n,r,u,c,p,f,h,d=s(t);for(n=1;n<arguments.length;++n){if(r=s(arguments[n]),c=o(r),i&&Object.getOwnPropertySymbols)for(p=Object.getOwnPropertySymbols(r),u=0;u<p.length;++u)h=p[u],l(r,h)&&a(c,h);for(u=0;u<c.length;++u)h=c[u],f=r[h],l(r,h)&&(d[h]=f)}return d}},{"./hasSymbols":43,"function-bind":49,"object-keys":50}],45:[function(t,e,n){var o=t("define-properties"),r=t("./implementation"),i=t("./polyfill"),s=t("./shim");o(r,{implementation:r,getPolyfill:i,shim:s}),e.exports=r},{"./implementation":44,"./polyfill":52,"./shim":53,"define-properties":46}],46:[function(t,e,n){var o=t("object-keys"),r=t("foreach"),i="function"==typeof Symbol&&"symbol"==typeof Symbol(),s=Object.prototype.toString,a=Object.defineProperty&&function(){var t={};try{for(var e in Object.defineProperty(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),l=function(t,e,n,o){(!(e in t)||function(t){return"function"==typeof t&&"[object Function]"===s.call(t)}(o)&&o())&&(a?Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},u=function(t,e){var n=arguments.length>2?arguments[2]:{},s=o(e);i&&(s=s.concat(Object.getOwnPropertySymbols(e))),r(s,function(o){l(t,o,e[o],n[o])})};u.supportsDescriptors=!!a,e.exports=u},{foreach:47,"object-keys":50}],47:[function(t,e,n){var o=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(t,e,n){if("[object Function]"!==r.call(e))throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var s=0;s<i;s++)e.call(n,t[s],s,t);else for(var a in t)o.call(t,a)&&e.call(n,t[a],a,t)}},{}],48:[function(t,e,n){var o=Array.prototype.slice,r=Object.prototype.toString;e.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==r.call(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var n,i=o.call(arguments,1),s=Math.max(0,e.length-i.length),a=[],l=0;l<s;l++)a.push("$"+l);if(n=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof n){var r=e.apply(this,i.concat(o.call(arguments)));return Object(r)===r?r:this}return e.apply(t,i.concat(o.call(arguments)))}),e.prototype){var u=function(){};u.prototype=e.prototype,n.prototype=new u,u.prototype=null}return n}},{}],49:[function(t,e,n){var o=t("./implementation");e.exports=Function.prototype.bind||o},{"./implementation":48}],50:[function(t,e,n){var o=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Array.prototype.slice,s=t("./isArguments"),a=Object.prototype.propertyIsEnumerable,l=!a.call({toString:null},"toString"),u=a.call(function(){},"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(t){var e=t.constructor;return e&&e.prototype===t},f={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!f["$"+t]&&o.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{p(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),d=function(t){var e=null!==t&&"object"==typeof t,n="[object Function]"===r.call(t),i=s(t),a=e&&"[object String]"===r.call(t),f=[];if(!e&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var d=u&&n;if(a&&t.length>0&&!o.call(t,0))for(var y=0;y<t.length;++y)f.push(String(y));if(i&&t.length>0)for(var v=0;v<t.length;++v)f.push(String(v));else for(var m in t)d&&"prototype"===m||!o.call(t,m)||f.push(String(m));if(l)for(var g=function(t){if("undefined"==typeof window||!h)return p(t);try{return p(t)}catch(t){return!1}}(t),b=0;b<c.length;++b)g&&"constructor"===c[b]||!o.call(t,c[b])||f.push(c[b]);return f};d.shim=function(){if(Object.keys){var t=function(){return 2===(Object.keys(arguments)||"").length}(1,2);if(!t){var e=Object.keys;Object.keys=function(t){return s(t)?e(i.call(t)):e(t)}}}else Object.keys=d;return Object.keys||d},e.exports=d},{"./isArguments":51}],51:[function(t,e,n){var o=Object.prototype.toString;e.exports=function(t){var e=o.call(t),n="[object Arguments]"===e;return n||(n="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===o.call(t.callee)),n}},{}],52:[function(t,e,n){var o=t("./implementation");e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),n={},o=0;o<e.length;++o)n[e[o]]=e[o];var r=Object.assign({},n),i="";for(var s in r)i+=s;return t!==i}()?o:function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch(e){return"y"===t[1]}}()?o:Object.assign:o}},{"./implementation":44}],53:[function(t,e,n){var o=t("define-properties"),r=t("./polyfill");e.exports=function(){var t=r();return o(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t}},{"./polyfill":52,"define-properties":46}],54:[function(t,e,n){e.exports=function(t,e){var n,o=null;try{n=JSON.parse(t,e)}catch(t){o=t}return[o,n]}},{}],55:[function(t,e,n){function o(t){return t.replace(/\n\r?\s*/g,"")}e.exports=function(t){for(var e="",n=0;n<arguments.length;n++)e+=o(t[n])+(arguments[n+1]||"");return e}},{}],56:[function(t,e,n){var o=t("global/window"),r=t("once"),i=t("is-function"),s=t("parse-headers"),a=t("xtend");function l(t,e,n){var o=t;return i(e)?(n=e,"string"==typeof t&&(o={uri:t})):o=a(e,{uri:t}),o.callback=n,o}function u(t,e,n){return c(e=l(t,e,n))}function c(t){var e=t.callback;if(void 0===e)throw new Error("callback argument missing");e=r(e);var n={body:void 0,headers:{},statusCode:0,method:h,url:f,rawRequest:c};function o(t){clearTimeout(p),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,e(t,n)}function i(){if(!l){var o;clearTimeout(p),o=t.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var r=n,i=null;0!==o?(r={body:function(){var t=void 0;if(c.response?t=c.response:"text"!==c.responseType&&c.responseType||(t=c.responseText||c.responseXML),m)try{t=JSON.parse(t)}catch(t){}return t}(),statusCode:o,method:h,headers:{},url:f,rawRequest:c},c.getAllResponseHeaders&&(r.headers=s(c.getAllResponseHeaders()))):i=new Error("Internal XMLHttpRequest Error"),e(i,r,r.body)}}var a,l,c=t.xhr||null;c||(c=t.cors||t.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var p,f=c.url=t.uri||t.url,h=c.method=t.method||"GET",d=t.body||t.data||null,y=c.headers=t.headers||{},v=!!t.sync,m=!1;if("json"in t&&(m=!0,y.accept||y.Accept||(y.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(y["content-type"]||y["Content-Type"]||(y["Content-Type"]="application/json"),d=JSON.stringify(t.json))),c.onreadystatechange=function(){4===c.readyState&&i()},c.onload=i,c.onerror=o,c.onprogress=function(){},c.ontimeout=o,c.open(h,f,!v,t.username,t.password),v||(c.withCredentials=!!t.withCredentials),!v&&t.timeout>0&&(p=setTimeout(function(){l=!0,c.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",o(t)},t.timeout)),c.setRequestHeader)for(a in y)y.hasOwnProperty(a)&&c.setRequestHeader(a,y[a]);else if(t.headers&&!function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(c.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(c),c.send(d),c}e.exports=u,u.XMLHttpRequest=o.XMLHttpRequest||function(){},u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:o.XDomainRequest,function(t,e){for(var n=0;n<t.length;n++)e(t[n])}(["get","put","post","patch","head","delete"],function(t){u["delete"===t?"del":t]=function(e,n,o){return(n=l(e,n,o)).method=t.toUpperCase(),c(n)}})},{"global/window":2,"is-function":57,once:58,"parse-headers":61,xtend:62}],57:[function(t,e,n){e.exports=function(t){var e=o.call(t);return"[object Function]"===e||"function"==typeof t&&"[object RegExp]"!==e||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var o=Object.prototype.toString},{}],58:[function(t,e,n){function o(t){var e=!1;return function(){if(!e)return e=!0,t.apply(this,arguments)}}e.exports=o,o.proto=o(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return o(this)},configurable:!0})})},{}],59:[function(t,e,n){var o=t("is-function");e.exports=function(t,e,n){if(!o(e))throw new TypeError("iterator must be a function");arguments.length<3&&(n=this),"[object Array]"===r.call(t)?function(t,e,n){for(var o=0,r=t.length;o<r;o++)i.call(t,o)&&e.call(n,t[o],o,t)}(t,e,n):"string"==typeof t?function(t,e,n){for(var o=0,r=t.length;o<r;o++)e.call(n,t.charAt(o),o,t)}(t,e,n):function(t,e,n){for(var o in t)i.call(t,o)&&e.call(n,t[o],o,t)}(t,e,n)};var r=Object.prototype.toString,i=Object.prototype.hasOwnProperty},{"is-function":57}],60:[function(t,e,n){(n=e.exports=function(t){return t.replace(/^\s*|\s*$/g,"")}).left=function(t){return t.replace(/^\s*/,"")},n.right=function(t){return t.replace(/\s*$/,"")}},{}],61:[function(t,e,n){var o=t("trim"),r=t("for-each");e.exports=function(t){if(!t)return{};var e={};return r(o(t).split("\n"),function(t){var n=t.indexOf(":"),r=o(t.slice(0,n)).toLowerCase(),i=o(t.slice(n+1));void 0===e[r]?e[r]=i:function(t){return"[object Array]"===Object.prototype.toString.call(t)}(e[r])?e[r].push(i):e[r]=[e[r],i]}),e}},{"for-each":59,trim:60}],62:[function(t,e,n){e.exports=function(){for(var t={},e=0;e<arguments.length;e++){var n=arguments[e];for(var r in n)o.call(n,r)&&(t[r]=n[r])}return t};var o=Object.prototype.hasOwnProperty},{}],63:[function(t,e,n){function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=t("./button.js"),i=o(r),s=t("./component.js"),a=o(s),l=function(t){function e(n,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,n,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-big-play-button"},e.prototype.handleClick=function(){this.player_.play()},e}(i.default);l.prototype.controlText_="Play Video",a.default.registerComponent("BigPlayButton",l),n.default=l,e.exports=n.default},{"./button.js":64,"./component.js":67}],64:[function(t,e,n){function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=t("./clickable-component.js"),s=r(i),a=t("./component"),l=r(a),u=t("./utils/events.js"),c=(o(u),t("./utils/fn.js")),p=(o(c),t("./utils/log.js")),f=r(p),h=t("global/document"),d=(r(h),t("object.assign")),y=r(d),v=function(t){function e(n,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,n,o)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var t=arguments.length<=0||void 0===arguments[0]?"button":arguments[0],e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];e=y.default({className:this.buildCSSClass()},e),"button"!==t&&(f.default.warn("Creating a Button with an HTML element of "+t+" is deprecated; use ClickableComponent instead."),e=y.default({tabIndex:0},e),n=y.default({role:"button"},n)),n=y.default({type:"button","aria-live":"polite"},n);var o=l.default.prototype.createEl.call(this,t,e,n);return this.createControlTextEl(o),o},e.prototype.addChild=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=this.constructor.name;return f.default.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),l.default.prototype.addChild.call(this,t,e)},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which||t.prototype.handleKeyPress.call(this,e)},e}(s.default);l.default.registerComponent("Button",v),n.default=v,e.exports=n.default},{"./clickable-component.js":65,"./component":67,"./utils/events.js":143,"./utils/fn.js":144,"./utils/log.js":147,"global/document":1,"object.assign":45}],65:[function(t,e,n){function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=t("./component"),s=r(i),a=t("./utils/dom.js"),l=o(a),u=t("./utils/events.js"),c=o(u),p=t("./utils/fn.js"),f=o(p),h=t("./utils/log.js"),d=r(h),y=t("global/document"),v=r(y),m=t("object.assign"),g=r(m),b=function(t){function e(n,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,n,o),this.emitTapEvents(),this.on("tap",this.handleClick),this.on("click",this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.createEl=function(){var e=arguments.length<=0||void 0===arguments[0]?"div":arguments[0],n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];n=g.default({className:this.buildCSSClass(),tabIndex:0},n),"button"===e&&d.default.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),o=g.default({role:"button","aria-live":"polite"},o);var r=t.prototype.createEl.call(this,e,n,o);return this.createControlTextEl(r),r},e.prototype.createControlTextEl=function(t){return this.controlTextEl_=l.createEl("span",{className:"vjs-control-text"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_},e.prototype.controlText=function(t){var e=arguments.length<=1||void 0===arguments[1]?this.el():arguments[1];if(!t)return this.controlText_||"Need Text";var n=this.localize(t);return this.controlText_=t,this.controlTextEl_.innerHTML=n,e.setAttribute("title",n),this},e.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},e.prototype.addChild=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return t.prototype.addChild.call(this,e,n)},e.prototype.enable=function(){return this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),this},e.prototype.disable=function(){return this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),this},e.prototype.handleClick=function(){},e.prototype.handleFocus=function(){c.on(v.default,"keydown",f.bind(this,this.handleKeyPress))},e.prototype.handleKeyPress=function(e){32===e.which||13===e.which?(e.preventDefault(),this.handleClick(e)):t.prototype.handleKeyPress&&t.prototype.handleKeyPress.call(this,e)},e.prototype.handleBlur=function(){c.off(v.default,"keydown",f.bind(this,this.handleKeyPress))},e}(s.default);s.default.registerComponent("ClickableComponent",b),n.default=b,e.exports=n.default},{"./component":67,"./utils/dom.js":142,"./utils/events.js":143,"./utils/fn.js":144,"./utils/log.js":147,"global/document":1,"object.assign":45}],66:[function(t,e,n){function o(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var r=t("./button"),i=o(r),s=t("./component"),a=o(s),l=function(t){function e(n,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),t.call(this,n,o),this.controlText(o&&o.controlText||this.localize("Close"))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.buildCSSClass=function(){return"vjs-close-button "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(){this.trigger({type:"close",bubbles:!1})},e}(i.default);a.default.registerComponent("CloseButton",l),n.default=l,e.exports=n.default},{"./button":64,"./component":67}],67:[function(t,e,n){function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0;var i=t("global/window"),s=r(i),a=t("./utils/dom.js"),l=o(a),u=t("./utils/fn.js"),c=o(u),p=t("./utils/guid.js"),f=o(p),h=t("./utils/events.js"),d=o(h),y=t("./utils/log.js"),v=r(y),m=t("./utils/to-title-case.js"),g=r(m),b=t("object.assign"),_=r(b),j=t("./utils/merge-options.js"),T=r(j),w=function(){function t(e,n,o){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!e&&this.play?this.player_=e=this:this.player_=e,this.options_=T.default({},this.options_),n=this.options_=T.default(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){var r=e&&e.id&&e.id()||"no_player";this.id_=r+"_component_"+f.newGUID()}this.name_=n.name||null,n.el?this.el_=n.el:!1!==n.createEl&&(this.el_=this.createEl()),this.children_=[],this.childIndex_={},this.childNameIndex_={},!1!==n.initChildren&&this.initChildren(),this.ready(o),!1!==n.reportTouchActivity&&this.enableTouchActivity()}return t.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),l.removeElData(this.el_),this.el_=null},t.prototype.player=function(){return this.player_},t.prototype.options=function(t){return v.default.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.options_=T.default(this.options_,t),this.options_):this.options_},t.prototype.el=function(){return this.el_},t.prototype.createEl=function(t,e,n){return l.createEl(t,e,n)},t.prototype.localize=function(t){var e=this.player_.language&&this.player_.language(),n=this.player_.languages&&this.player_.languages();if(!e||!n)return t;var o=n[e];if(o&&o[t])return o[t];var r=e.split("-")[0],i=n[r];return i&&i[t]?i[t]:t},t.prototype.contentEl=function(){return this.contentEl_||this.el_},t.prototype.id=function(){return this.id_},t.prototype.name=function(){return this.name_},t.prototype.children=function(){return this.children_},t.prototype.getChildById=function(t){return this.childIndex_[t]},t.prototype.getChild=function(t){return this.childNameIndex_[t]},t.prototype.addChild=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=arguments.length<=2||void 0===arguments[2]?this.children_.length:arguments[2],r=void 0,i=void 0;if("string"==typeof e){i=e,n||(n={}),!0===n&&(v.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`."),n={});var s=n.componentClass||g.default(i);n.name=i;var a=t.getComponent(s);if(!a)throw new Error("Component "+s+" does not exist");if("function"!=typeof a)return null;r=new a(this.player_||this,n)}else r=e;if(this.children_.splice(o,0,r),"function"==typeof r.id&&(this.childIndex_[r.id()]=r),(i=i||r.name&&r.name())&&(this.childNameIndex_[i]=r),"function"==typeof r.el&&r.el()){var l=this.contentEl().children,u=l[o]||null;this.contentEl().insertBefore(r.el(),u)}return r},t.prototype.removeChild=function(t){if("string"==typeof t&&(t=this.getChild(t)),t&&this.children_){for(var e=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===t){e=!0,this.children_.splice(n,1);break}if(e){this.childIndex_[t.id()]=null,this.childNameIndex_[t.name()]=null;var o=t.el();o&&o.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},t.prototype.initChildren=function(){var e=this,n=this.options_.children;n&&function(){var o=e.options_,r=void 0,i=t.getComponent("Tech");(r=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(e.options_).filter(function(t){return!r.some(function(e){return"string"==typeof e?t===e:t===e.name})})).map(function(t){var o=void 0,r=void 0;return"string"==typeof t?r=n[o=t]||e.options_[o]||{}:(o=t.name,r=t),{name:o,opts:r}}).filter(function(e){var n=t.getComponent(e.opts.componentClass||g.default(e.name));return n&&!i.isTech(n)}).forEach(function(t){var n=t.name,r=t.opts;if(void 0!==o[n]&&(r=o[n]),!1!==r){!0===r&&(r={}),r.playerOptions=e.options_.playerOptions;var i=e.addChild(n,r);i&&(e[n]=i)}})}()},t.prototype.buildCSSClass=function(){return""},t.prototype.on=function(t,e,n){var o=this;return"string"==typeof t||Array.isArray(t)?d.on(this.el_,t,c.bind(this,e)):function(){var r=t,i=e,s=c.bind(o,n),a=function(){return o.off(r,i,s)};a.guid=s.guid,o.on("dispose",a);var l=function(){return o.off("dispose",a)};l.guid=s.guid,t.nodeName?(d.on(r,i,s),d.on(r,"dispose",l)):"function"==typeof t.on&&(r.on(i,s),r.on("dispose",l))}(),this},t.prototype.off=fu