From fc74d197ae57d9311b24a1821854ab28da01b7b4 Mon Sep 17 00:00:00 2001 From: Iqbal Ahmed Date: Wed, 26 Apr 2017 17:09:54 +0100 Subject: [PATCH] New api integration (#12) * Integrate the new semantics API endpoint. Adjust the analytics we record * Add better handling of flash, especially on firefox * Do API switch over to new endpoint Add sovrn ad tags * Update logs and analytics --- .eslintrc.json | 5 +- public/bundle.js | 20 ------ src/App.jsx | 157 +++++++++++++++++++++-------------------- src/main.jsx | 8 +-- src/modernizr-flash.js | 3 + 5 files changed, 92 insertions(+), 101 deletions(-) delete mode 100644 public/bundle.js create mode 100644 src/modernizr-flash.js diff --git a/.eslintrc.json b/.eslintrc.json index 7c90ab1..28c5602 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -3,10 +3,13 @@ "env": { "browser": true }, + "globals": { + "Modernizr": false + }, "rules": { "no-use-before-define": ["error", "nofunc"], "padded-blocks": ["off", "always"], - "no-underscore-dangle": ["error", { "allow": ["_score", "el_"]} ], + "no-underscore-dangle": ["off", "always" ], "no-unused-expressions": ["error", { "allowTernary": true }] } } diff --git a/public/bundle.js b/public/bundle.js deleted file mode 100644 index b074e14..0000000 --- a/public/bundle.js +++ /dev/null @@ -1,20 +0,0 @@ -!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=127)}([function(t,e,n){"use strict";function r(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 o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var a=n(7),s=o(a),u=n(5),l=r(u),c=n(4),p=r(c),d=n(29),f=r(d),h=n(20),v=r(h),y=n(13),m=o(y),g=n(30),_=o(g),b=n(19),w=o(b),T=function(){function t(e,n,r){if(i(this,t),!e&&this.play?this.player_=e=this:this.player_=e,this.options_=(0,w.default)({},this.options_),n=this.options_=(0,w.default)(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){var o=e&&e.id&&e.id()||"no_player";this.id_=o+"_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(r),!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 m.default.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),t?(this.options_=(0,w.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 r=n[e];if(r&&r[t])return r[t];var o=e.split("-")[0],i=n[o];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){if(t)return t=(0,_.default)(t),this.childNameIndex_[t]},t.prototype.addChild=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,o=void 0,i=void 0;if("string"==typeof e){i=(0,_.default)(e),n||(n={}),!0===n&&(m.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 a=n.componentClass||i;n.name=i;var s=t.getComponent(a);if(!s)throw new Error("Component "+a+" does not exist");if("function"!=typeof s)return null;o=new s(this.player_||this,n)}else o=e;if(this.children_.splice(r,0,o),"function"==typeof o.id&&(this.childIndex_[o.id()]=o),i=i||o.name&&(0,_.default)(o.name()),i&&(this.childNameIndex_[i]=o),"function"==typeof o.el&&o.el()){var u=this.contentEl().children,l=u[r]||null;this.contentEl().insertBefore(o.el(),l)}return o},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 r=t.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}}},t.prototype.initChildren=function(){var e=this,n=this.options_.children;if(n){var r=this.options_,o=function(t){var n=t.name,o=t.opts;if(void 0!==r[n]&&(o=r[n]),!1!==o){!0===o&&(o={}),o.playerOptions=e.options_.playerOptions;var i=e.addChild(n,o);i&&(e[n]=i)}},i=void 0,a=t.getComponent("Tech");i=Array.isArray(n)?n:Object.keys(n),i.concat(Object.keys(this.options_).filter(function(t){return!i.some(function(e){return"string"==typeof e?t===e:t===e.name})})).map(function(t){var r=void 0,o=void 0;return"string"==typeof t?(r=t,o=n[r]||e.options_[r]||{}):(r=t.name,o=t),{name:r,opts:o}}).filter(function(e){var n=t.getComponent(e.opts.componentClass||(0,_.default)(e.name));return n&&!a.isTech(n)}).forEach(o)}},t.prototype.buildCSSClass=function(){return""},t.prototype.on=function(t,e,n){var r=this;if("string"==typeof t||Array.isArray(t))v.on(this.el_,t,p.bind(this,e));else{var o=t,i=e,a=p.bind(this,n),s=function(){return r.off(o,i,a)};s.guid=a.guid,this.on("dispose",s);var u=function(){return r.off("dispose",s)};u.guid=a.guid,t.nodeName?(v.on(o,i,a),v.on(o,"dispose",u)):"function"==typeof t.on&&(o.on(i,a),o.on("dispose",u))}return this},t.prototype.off=function(t,e,n){if(!t||"string"==typeof t||Array.isArray(t))v.off(this.el_,t,e);else{var r=t,o=e,i=p.bind(this,n);this.off("dispose",i),t.nodeName?(v.off(r,o,i),v.off(r,"dispose",i)):(r.off(o,i),r.off("dispose",i))}return this},t.prototype.one=function(t,e,n){var r=this,o=arguments;if("string"==typeof t||Array.isArray(t))v.one(this.el_,t,p.bind(this,e));else{var i=t,a=e,s=p.bind(this,n),u=function t(){r.off(i,a,t),s.apply(null,o)};u.guid=s.guid,this.on(i,a,u)}return this},t.prototype.trigger=function(t,e){return v.trigger(this.el_,t,e),this},t.prototype.ready=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t&&(this.isReady_?e?t.call(this):this.setTimeout(t,1):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(t))),this},t.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach(function(t){t.call(this)},this),this.trigger("ready")},1)},t.prototype.$=function(t,e){return l.$(t,e||this.contentEl())},t.prototype.$$=function(t,e){return l.$$(t,e||this.contentEl())},t.prototype.hasClass=function(t){return l.hasElClass(this.el_,t)},t.prototype.addClass=function(t){return l.addElClass(this.el_,t),this},t.prototype.removeClass=function(t){return l.removeElClass(this.el_,t),this},t.prototype.toggleClass=function(t,e){return l.toggleElClass(this.el_,t,e),this},t.prototype.show=function(){return this.removeClass("vjs-hidden"),this},t.prototype.hide=function(){return this.addClass("vjs-hidden"),this},t.prototype.lockShowing=function(){return this.addClass("vjs-lock-showing"),this},t.prototype.unlockShowing=function(){return this.removeClass("vjs-lock-showing"),this},t.prototype.getAttribute=function(t){return l.getAttribute(this.el_,t)},t.prototype.setAttribute=function(t,e){return l.setAttribute(this.el_,t,e),this},t.prototype.removeAttribute=function(t){return l.removeAttribute(this.el_,t),this},t.prototype.width=function(t,e){return this.dimension("width",t,e)},t.prototype.height=function(t,e){return this.dimension("height",t,e)},t.prototype.dimensions=function(t,e){return this.width(t,!0).height(e)},t.prototype.dimension=function(t,e,n){if(void 0!==e)return null!==e&&e===e||(e=0),-1!==(""+e).indexOf("%")||-1!==(""+e).indexOf("px")?this.el_.style[t]=e:this.el_.style[t]="auto"===e?"":e+"px",n||this.trigger("resize"),this;if(!this.el_)return 0;var r=this.el_.style[t],o=r.indexOf("px");return-1!==o?parseInt(r.slice(0,o),10):parseInt(this.el_["offset"+(0,_.default)(t)],10)},t.prototype.currentDimension=function(t){var e=0;if("width"!==t&&"height"!==t)throw new Error("currentDimension only accepts width or height value");if("function"==typeof s.default.getComputedStyle){var n=s.default.getComputedStyle(this.el_);e=n.getPropertyValue(t)||n[t]}if(0===(e=parseFloat(e))){var r="offset"+(0,_.default)(t);e=this.el_[r]}return e},t.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.prototype.currentWidth=function(){return this.currentDimension("width")},t.prototype.currentHeight=function(){return this.currentDimension("height")},t.prototype.focus=function(){this.el_.focus()},t.prototype.blur=function(){this.el_.blur()},t.prototype.emitTapEvents=function(){var t=0,e=null,n=void 0;this.on("touchstart",function(r){1===r.touches.length&&(e={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},t=(new Date).getTime(),n=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)n=!1;else if(e){var r=t.touches[0].pageX-e.pageX,o=t.touches[0].pageY-e.pageY,i=Math.sqrt(r*r+o*o);i>10&&(n=!1)}});var r=function(){n=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",function(r){if(e=null,!0===n){(new Date).getTime()-t<200&&(r.preventDefault(),this.trigger("tap"))}})},t.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var t=p.bind(this.player(),this.player().reportUserActivity),e=void 0;this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.prototype.setTimeout=function(t,e){t=p.bind(this,t);var n=s.default.setTimeout(t,e),r=function(){this.clearTimeout(n)};return r.guid="vjs-timeout-"+n,this.on("dispose",r),n},t.prototype.clearTimeout=function(t){s.default.clearTimeout(t);var e=function(){};return e.guid="vjs-timeout-"+t,this.off("dispose",e),t},t.prototype.setInterval=function(t,e){t=p.bind(this,t);var n=s.default.setInterval(t,e),r=function(){this.clearInterval(n)};return r.guid="vjs-interval-"+n,this.on("dispose",r),n},t.prototype.clearInterval=function(t){s.default.clearInterval(t);var e=function(){};return e.guid="vjs-interval-"+t,this.off("dispose",e),t},t.registerComponent=function(e,n){if(e){if(e=(0,_.default)(e),t.components_||(t.components_={}),"Player"===e&&t.components_[e]){var r=t.components_[e];if(r.players&&Object.keys(r.players).length>0&&Object.keys(r.players).map(function(t){return r.players[t]}).every(Boolean))throw new Error("Can not register Player component after player has been created")}return t.components_[e]=n,n}},t.getComponent=function(e){if(e)return e=(0,_.default)(e),t.components_&&t.components_[e]?t.components_[e]:s.default&&s.default.videojs&&s.default.videojs[e]?(m.default.warn("The "+e+" component was added to the videojs object when it should be registered using videojs.registerComponent(name, component)"),s.default.videojs[e]):void 0},t.extend=function(e){e=e||{},m.default.warn("Component.extend({}) has been deprecated, use videojs.extend(Component, {}) instead");var n=e.init||e.init||this.prototype.init||this.prototype.init||function(){},r=function(){n.apply(this,arguments)};r.prototype=Object.create(this.prototype),r.prototype.constructor=r,r.extend=t.extend;for(var o in e)e.hasOwnProperty(o)&&(r.prototype[o]=e[o]);return r},t}();T.registerComponent("Component",T),e.default=T},function(t,e,n){"use strict";function r(t,e,n,r,i,a,s,u){if(o(e),!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,s,u],p=0;l=new Error(e.replace(/%s/g,function(){return c[p++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var o=function(t){};t.exports=r},function(t,e,n){"use strict";var r=n(14),o=r;t.exports=o},function(t,e,n){"use strict";function r(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,r=0;r=e&&(t.apply(void 0,arguments),n=r)}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){return"string"==typeof t&&/\S/.test(t)}function i(t){if(/\s/.test(t))throw new Error("class has illegal whitespace characters")}function a(t){return new RegExp("(^|\\s)"+t+"($|\\s)")}function s(){return L.default===V.default.document&&void 0!==L.default.createElement}function u(t){return(0,Y.isObject)(t)&&1===t.nodeType}function l(t){return function(e,n){if(!o(e))return L.default[t](null);o(n)&&(n=L.default.querySelector(n));var r=u(n)?n:L.default;return r[t]&&r[t](e)}}function c(t){return 0===t.indexOf("#")&&(t=t.slice(1)),L.default.getElementById(t)}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments[3],o=L.default.createElement(t);return Object.getOwnPropertyNames(e).forEach(function(t){var n=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?(W.default.warn((0,q.default)(R,t,n)),o.setAttribute(t,n)):"textContent"===t?d(o,n):o[t]=n}),Object.getOwnPropertyNames(n).forEach(function(t){o.setAttribute(t,n[t])}),r&&I(o,r),o}function d(t,e){return void 0===t.textContent?t.innerText=e:t.textContent=e,t}function f(t,e){e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}function h(t){var e=t[K];return e||(e=t[K]=B.newGUID()),X[e]||(X[e]={}),X[e]}function v(t){var e=t[K];return!!e&&!!Object.getOwnPropertyNames(X[e]).length}function y(t){var e=t[K];if(e){delete X[e];try{delete t[K]}catch(e){t.removeAttribute?t.removeAttribute(K):t[K]=null}}}function m(t,e){return i(e),t.classList?t.classList.contains(e):a(e).test(t.className)}function g(t,e){return t.classList?t.classList.add(e):m(t,e)||(t.className=(t.className+" "+e).trim()),t}function _(t,e){return t.classList?t.classList.remove(e):(i(e),t.className=t.className.split(/\s+/).filter(function(t){return t!==e}).join(" ")),t}function b(t,e,n){var r=m(t,e);if("function"==typeof n&&(n=n(t,e)),"boolean"!=typeof n&&(n=!r),n!==r)return n?g(t,e):_(t,e),t}function w(t,e){Object.getOwnPropertyNames(e).forEach(function(n){var r=e[n];null===r||void 0===r||!1===r?t.removeAttribute(n):t.setAttribute(n,!0===r?"":r)})}function T(t){var e={};if(t&&t.attributes&&t.attributes.length>0)for(var n=t.attributes,r=n.length-1;r>=0;r--){var o=n[r].name,i=n[r].value;"boolean"!=typeof t[o]&&-1===",autoplay,controls,loop,muted,default,".indexOf(","+o+",")||(i=null!==i),e[o]=i}return e}function E(t,e){return t.getAttribute(e)}function C(t,e,n){t.setAttribute(e,n)}function k(t,e){t.removeAttribute(e)}function S(){L.default.body.focus(),L.default.onselectstart=function(){return!1}}function A(){L.default.onselectstart=function(){return!0}}function x(t){var e=void 0;if(t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var n=L.default.documentElement,r=L.default.body,o=n.clientLeft||r.clientLeft||0,i=V.default.pageXOffset||r.scrollLeft,a=e.left+i-o,s=n.clientTop||r.clientTop||0,u=V.default.pageYOffset||r.scrollTop,l=e.top+u-s;return{left:Math.round(a),top:Math.round(l)}}function O(t,e){var n={},r=x(t),o=t.offsetWidth,i=t.offsetHeight,a=r.top,s=r.left,u=e.pageY,l=e.pageX;return e.changedTouches&&(l=e.changedTouches[0].pageX,u=e.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(a-u+i)/i)),n.x=Math.max(0,Math.min(1,(l-s)/o)),n}function P(t){return(0,Y.isObject)(t)&&3===t.nodeType}function j(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}function M(t){return"function"==typeof t&&(t=t()),(Array.isArray(t)?t:[t]).map(function(t){return"function"==typeof t&&(t=t()),u(t)||P(t)?t:"string"==typeof t&&/\S/.test(t)?L.default.createTextNode(t):void 0}).filter(function(t){return t})}function I(t,e){return M(e).forEach(function(e){return t.appendChild(e)}),t}function N(t,e){return I(j(t),e)}e.__esModule=!0,e.$$=e.$=void 0;var R=function(t,e){return t.raw=e,t}(["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 ","."]);e.isReal=s,e.isEl=u,e.getEl=c,e.createEl=p,e.textContent=d,e.insertElFirst=f,e.getElData=h,e.hasElData=v,e.removeElData=y,e.hasElClass=m,e.addElClass=g,e.removeElClass=_,e.toggleElClass=b,e.setElAttributes=w,e.getElAttributes=T,e.getAttribute=E,e.setAttribute=C,e.removeAttribute=k,e.blockTextSelection=S,e.unblockTextSelection=A,e.findElPosition=x,e.getPointerPosition=O,e.isTextNode=P,e.emptyEl=j,e.normalizeContent=M,e.appendContent=I,e.insertContent=N;var D=n(8),L=r(D),F=n(7),V=r(F),U=n(29),B=function(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}(U),H=n(13),W=r(H),z=n(106),q=r(z),Y=n(11),X={},K="vdata"+(new Date).getTime();e.$=l("querySelector"),e.$$=l("querySelectorAll")},function(t,e,n){"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}/* -object-assign -(c) Sindre Sorhus -@license MIT -*/ -var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,u=r(t),l=1;l2&&void 0!==arguments[2]?arguments[2]:0;return c(t).reduce(function(n,r){return e(n,t[r],r)},n)}function i(t){for(var e=arguments.length,n=Array(e>1?e-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:!!i.IE_VERSION&&i.IE_VERSION<11;"log"!==t&&e.unshift(t.toUpperCase()+":"),s.history.push(e),e.unshift("VIDEOJS:");var r=o.default.console&&o.default.console[t];r&&(n&&(e=e.map(function(t){if((0,a.isObject)(t)||Array.isArray(t))try{return JSON.stringify(t)}catch(e){return String(t)}return String(t)}).join(" ")),r.apply?r[Array.isArray(e)?"apply":"call"](o.default.console,e):r(e))};s=function(){for(var t=arguments.length,e=Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:t;t=t<0?0:t;var n=Math.floor(t%60),r=Math.floor(t/60%60),o=Math.floor(t/3600),i=Math.floor(e/60%60),a=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(o=r=n="-"),o=o>0||a>0?o+":":"",r=((o||i>=10)&&r<10?"0"+r:r)+":",n=n<10?"0"+n:n,o+r+n}e.__esModule=!0,e.default=r},function(t,e,n){"use strict";var r=n(3),o=(n(1),function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)}),i=function(t,e){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,t,e),r}return new n(t,e)},a=function(t,e,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,t,e,n),o}return new r(t,e,n)},s=function(t,e,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,t,e,n,r),i}return new o(t,e,n,r)},u=function(t){var e=this;t instanceof e||r("25"),t.destructor(),e.instancePool.length1){for(var h=Array(f),v=0;v1){for(var m=Array(y),g=0;g0&&void 0!==arguments[0]?arguments[0]:"button",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e=(0,f.assign)({className:this.buildCSSClass()},e),"button"!==t&&(d.default.warn("Creating a Button with an HTML element of "+t+" is deprecated; use ClickableComponent instead."),e=(0,f.assign)({tabIndex:0},e),n=(0,f.assign)({role:"button"},n)),n=(0,f.assign)({type:"button","aria-live":"polite"},n);var r=c.default.prototype.createEl.call(this,t,e,n);return this.createControlTextEl(r),r},e.prototype.addChild=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.constructor.name;return d.default.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),c.default.prototype.addChild.call(this,t,e)},e.prototype.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},e.prototype.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},e.prototype.handleKeyPress=function(e){32!==e.which&&13!==e.which&&t.prototype.handleKeyPress.call(this,e)},e}(u.default);c.default.registerComponent("Button",h),e.default=h},function(t,e,n){"use strict";function r(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 o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(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.__esModule=!0;var u=n(0),l=o(u),c=n(5),p=r(c),d=n(20),f=r(d),h=n(4),v=r(h),y=n(13),m=o(y),g=n(8),_=o(g),b=n(11),w=function(t){function e(n,r){i(this,e);var o=a(this,t.call(this,n,r));return o.emitTapEvents(),o.enable(),o}return s(e,t),e.prototype.createEl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=(0,b.assign)({className:this.buildCSSClass(),tabIndex:0},n),"button"===e&&m.default.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),r=(0,b.assign)({role:"button","aria-live":"polite"},r),this.tabIndex_=n.tabIndex;var o=t.prototype.createEl.call(this,e,n,r);return this.createControlTextEl(o),o},e.prototype.createControlTextEl=function(t){return this.controlTextEl_=p.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]?arguments[1]:this.el();if(!t)return this.controlText_||"Need Text";var n=this.localize(t);return this.controlText_=t,this.controlTextEl_.innerHTML=n,this.nonIconControl||e.setAttribute("title",n),this},e.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+t.prototype.buildCSSClass.call(this)},e.prototype.enable=function(){return this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on("tap",this.handleClick),this.on("click",this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this},e.prototype.disable=function(){return this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("tap",this.handleClick),this.off("click",this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this},e.prototype.handleClick=function(t){},e.prototype.handleFocus=function(t){f.on(_.default,"keydown",v.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(t){f.off(_.default,"keydown",v.bind(this,this.handleKeyPress))},e}(l.default);l.default.registerComponent("ClickableComponent",w),e.default=w},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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)}function s(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},i=t.textTracks();o.kind=e,n&&(o.label=n),r&&(o.language=r),o.tech=t;var a=new m.default(o);return i.addTrack_(a),a}e.__esModule=!0;var u=n(0),l=r(u),c=n(268),p=r(c),d=n(267),f=r(d),h=n(19),v=r(h),y=n(70),m=r(y),g=n(272),_=r(g),b=n(117),w=r(b),T=n(116),E=r(T),C=n(4),k=function(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}(C),S=n(13),A=r(S),x=n(39),O=n(118),P=n(110),j=r(P),M=n(7),I=r(M),N=n(8),R=r(N),D=n(11),L=function(t){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};o(this,e),n.reportTouchActivity=!1;var a=i(this,t.call(this,null,n,r));return a.hasStarted_=!1,a.on("playing",function(){this.hasStarted_=!0}),a.on("loadstart",function(){this.hasStarted_=!1}),a.textTracks_=n.textTracks,a.videoTracks_=n.videoTracks,a.audioTracks_=n.audioTracks,a.featuresProgressEvents||a.manualProgressOn(),a.featuresTimeupdateEvents||a.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(t){!1===n["native"+t+"Tracks"]&&(a["featuresNative"+t+"Tracks"]=!1)}),!1===n.nativeCaptions&&(a.featuresNativeTextTracks=!1),a.featuresNativeTextTracks||a.emulateTextTracks(),a.autoRemoteTextTracks_=new _.default,a.initTextTrackListeners(),a.initTrackListeners(),n.nativeControlsForTouch||a.emitTapEvents(),a.constructor&&(a.name_=a.constructor.name||"Unknown Tech"),a}return a(e,t),e.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},e.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},e.prototype.trackProgress=function(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(k.bind(this,function(){var t=this.bufferedPercent();this.bufferedPercent_!==t&&this.trigger("progress"),this.bufferedPercent_=t,1===t&&this.stopTrackingProgress()}),500)},e.prototype.onDurationChange=function(t){this.duration_=this.duration()},e.prototype.buffered=function(){return(0,x.createTimeRange)(0,0)},e.prototype.bufferedPercent=function(){return(0,O.bufferedPercent)(this.buffered(),this.duration_)},e.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},e.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},e.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},e.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},e.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.dispose=function(){this.clearTracks(["audio","video","text"]),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),t.prototype.dispose.call(this)},e.prototype.clearTracks=function(t){var e=this;t=[].concat(t),t.forEach(function(t){for(var n=e[t+"Tracks"]()||[],r=n.length;r--;){var o=n[r];"text"===t&&e.removeRemoteTextTrack(o),n.removeTrack_(o)}})},e.prototype.cleanupAutoTextTracks=function(){for(var t=this.autoRemoteTextTracks_||[],e=t.length;e--;){var n=t[e];this.removeRemoteTextTrack(n)}},e.prototype.reset=function(){},e.prototype.error=function(t){return void 0!==t&&(this.error_=new j.default(t),this.trigger("error")),this.error_},e.prototype.played=function(){return this.hasStarted_?(0,x.createTimeRange)(0,0):(0,x.createTimeRange)()},e.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.prototype.initTextTrackListeners=function(){var t=k.bind(this,function(){this.trigger("texttrackchange")}),e=this.textTracks();e&&(e.addEventListener("removetrack",t),e.addEventListener("addtrack",t),this.on("dispose",k.bind(this,function(){e.removeEventListener("removetrack",t),e.removeEventListener("addtrack",t)})))},e.prototype.initTrackListeners=function(){var t=this;["video","audio"].forEach(function(e){var n=function(){t.trigger(e+"trackchange")},r=t[e+"Tracks"]();r.addEventListener("removetrack",n),r.addEventListener("addtrack",n),t.on("dispose",function(){r.removeEventListener("removetrack",n),r.removeEventListener("addtrack",n)})})},e.prototype.addWebVttScript_=function(){var t=this;if(!I.default.WebVTT)if(R.default.body.contains(this.el())){var e=n(280);if(!this.options_["vtt.js"]&&(0,D.isPlain)(e)&&Object.keys(e).length>0)return void this.trigger("vttjsloaded");var r=R.default.createElement("script");r.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.3/vtt.min.js",r.onload=function(){t.trigger("vttjsloaded")},r.onerror=function(){t.trigger("vttjserror")},this.on("dispose",function(){r.onload=null,r.onerror=null}),I.default.WebVTT=!0,this.el().parentNode.appendChild(r)}else this.ready(this.addWebVttScript_)},e.prototype.emulateTextTracks=function(){var t=this,e=this.textTracks();if(e){var n=this.remoteTextTracks(),r=function(t){return e.addTrack_(t.track)},o=function(t){return e.removeTrack_(t.track)};n.on("addtrack",r),n.on("removetrack",o),this.addWebVttScript_();var i=function(){return t.trigger("texttrackchange")},a=function(){i();for(var t=0;t0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1],n=this.createRemoteTextTrack(t);return!0!==e&&!1!==e&&(A.default.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),e=!0),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack_(n.track),!0!==e&&this.autoRemoteTextTracks_.addTrack_(n.track),n},e.prototype.removeRemoteTextTrack=function(t){var e=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack_(t),this.autoRemoteTextTracks_.removeTrack_(t)},e.prototype.setPoster=function(){},e.prototype.canPlayType=function(){return""},e.isTech=function(t){return t.prototype instanceof e||t instanceof e||t===e},e.registerTech=function(t,n){if(e.techs_||(e.techs_={}),!e.isTech(n))throw new Error("Tech "+t+" must be a Tech");return e.techs_[t]=n,n},e.getTech=function(t){return e.techs_&&e.techs_[t]?e.techs_[t]:I.default&&I.default.videojs&&I.default.videojs[t]?(A.default.warn("The "+t+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),I.default.videojs[t]):void 0},e}(l.default);L.prototype.textTracks_,L.prototype.audioTracks_,L.prototype.videoTracks_,L.prototype.featuresVolumeControl=!0,L.prototype.featuresFullscreenResize=!1,L.prototype.featuresPlaybackRate=!1,L.prototype.featuresProgressEvents=!1,L.prototype.featuresTimeupdateEvents=!1,L.prototype.featuresNativeTextTracks=!1,L.withSourceHandlers=function(t){t.registerSourceHandler=function(e,n){var r=t.sourceHandlers;r||(r=t.sourceHandlers=[]),void 0===n&&(n=r.length),r.splice(n,0,e)},t.canPlayType=function(e){for(var n=t.sourceHandlers||[],r=void 0,o=0;on)throw new Error("Failed to execute '"+t+"' on 'TimeRanges': The index provided ("+e+") is greater than or equal to the maximum bound ("+n+").")}function o(t,e,n,o){return void 0===o&&(u.default.warn("DEPRECATED: Function '"+t+"' on 'TimeRanges' called without an index argument."),o=0),r(t,o,n.length-1),n[o][e]}function i(t){return void 0===t||0===t.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:t.length,start:o.bind(null,"start",0,t),end:o.bind(null,"end",1,t)}}function a(t,e){return Array.isArray(t)?i(t):void 0===t||void 0===e?i():i([[t,e]])}e.__esModule=!0,e.createTimeRange=void 0,e.createTimeRanges=a;var s=n(13),u=function(t){return t&&t.__esModule?t:{default:t}}(s);e.createTimeRange=a},function(t,e,n){"use strict";(function(t){function r(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 o(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){var r=void 0;if("string"==typeof t){if(0===t.indexOf("#")&&(t=t.slice(1)),i.getPlayers()[t])return e&&V.default.warn('Player "'+t+'" is already initialised. Options will not be applied.'),n&&i.getPlayers()[t].ready(n),i.getPlayers()[t];r=B.getEl(t)}else r=t;if(!r||!r.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");if(r.player||T.default.players[r.playerId])return r.player||T.default.players[r.playerId];e=e||{},i.hooks("beforesetup").forEach(function(t){var n=t(r,(0,S.default)(e));if(!(0,Y.isObject)(n)||Array.isArray(n))return void V.default.error("please return an object in beforesetup hooks");e=(0,S.default)(e,n)});var o=y.default.getComponent("Player"),a=new o(r,e,n);return i.hooks("setup").forEach(function(t){return t(a)}),a}e.__esModule=!0;var a="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},s=n(7),u=o(s),l=n(8),c=o(l),p=n(261),d=r(p),f=n(119),h=r(f),v=n(0),y=o(v),m=n(47),g=o(m),_=n(20),b=r(_),w=n(114),T=o(w),E=n(257),C=o(E),k=n(19),S=o(k),A=n(4),x=r(A),O=n(70),P=o(O),j=n(266),M=o(j),I=n(274),N=o(I),R=n(39),D=n(21),L=o(D),F=n(13),V=o(F),U=n(5),B=r(U),H=n(10),W=r(H),z=n(49),q=r(z),Y=n(11),X=n(74),K=o(X),G=n(254),$=o(G),J=n(122),Q=o(J),Z=n(38),tt=o(Z);if("undefined"==typeof HTMLVideoElement&&B.isReal()&&(c.default.createElement("video"),c.default.createElement("audio"),c.default.createElement("track")),i.hooks_={},i.hooks=function(t,e){return i.hooks_[t]=i.hooks_[t]||[],e&&(i.hooks_[t]=i.hooks_[t].concat(e)),i.hooks_[t]},i.hook=function(t,e){i.hooks(t,e)},i.removeHook=function(t,e){var n=i.hooks(t).indexOf(e);return!(n<=-1)&&(i.hooks_[t]=i.hooks_[t].slice(),i.hooks_[t].splice(n,1),!0)},!0!==u.default.VIDEOJS_NO_DYNAMIC_STYLE&&B.isReal()){var et=B.$(".vjs-styles-defaults");if(!et){et=h.createStyleElement("vjs-styles-defaults");var nt=B.$("head");nt&&nt.insertBefore(et,nt.firstChild),h.setTextContent(et,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}d.autoSetupTimeout(1,i),i.VERSION="5.19.1",i.options=T.default.prototype.options_,i.getPlayers=function(){return T.default.players},i.players=T.default.players,i.getComponent=y.default.getComponent,i.registerComponent=function(t,e){tt.default.isTech(e)&&V.default.warn("The "+t+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),y.default.registerComponent.call(y.default,t,e)},i.getTech=tt.default.getTech,i.registerTech=tt.default.registerTech,i.browser=W,i.TOUCH_ENABLED=W.TOUCH_ENABLED,i.extend=$.default,i.mergeOptions=S.default,i.bind=x.bind,i.plugin=C.default,i.addLanguage=function(t,e){var n;return t=(""+t).toLowerCase(),i.options.languages=(0,S.default)(i.options.languages,(n={},n[t]=e,n)),i.options.languages[t]},i.log=V.default,i.createTimeRange=i.createTimeRanges=R.createTimeRanges,i.formatTime=L.default,i.parseUrl=q.parseUrl,i.isCrossOrigin=q.isCrossOrigin,i.EventTarget=g.default,i.on=b.on,i.one=b.one,i.off=b.off,i.trigger=b.trigger,i.xhr=Q.default,i.TextTrack=P.default,i.AudioTrack=M.default,i.VideoTrack=N.default,i.isEl=B.isEl,i.isTextNode=B.isTextNode,i.createEl=B.createEl,i.hasClass=B.hasElClass,i.addClass=B.addElClass,i.removeClass=B.removeElClass,i.toggleClass=B.toggleElClass,i.setAttributes=B.setElAttributes,i.getAttributes=B.getElAttributes,i.emptyEl=B.emptyEl,i.appendContent=B.appendContent,i.insertContent=B.insertContent,i.computedStyle=K.default,"function"==typeof define&&define.amd?define("videojs",[],function(){return i}):"object"===a(e)&&"object"===a(t)&&(t.exports=i),e.default=i}).call(e,n(286)(t))},function(t,e,n){"use strict";function r(t){return Object.prototype.hasOwnProperty.call(t,v)||(t[v]=f++,p[t[v]]={}),p[t[v]]}var o,i=n(6),a=n(53),s=n(171),u=n(92),l=n(204),c=n(64),p={},d=!1,f=0,h={topAbort:"abort",topAnimationEnd:l("animationend")||"animationend",topAnimationIteration:l("animationiteration")||"animationiteration",topAnimationStart:l("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:l("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},v="_reactListenersID"+String(Math.random()).slice(2),y=i({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(t){t.setHandleTopLevel(y.handleTopLevel),y.ReactEventListener=t}},setEnabled:function(t){y.ReactEventListener&&y.ReactEventListener.setEnabled(t)},isEnabled:function(){return!(!y.ReactEventListener||!y.ReactEventListener.isEnabled())},listenTo:function(t,e){for(var n=e,o=r(n),i=a.registrationNameDependencies[t],s=0;s]/;t.exports=o},function(t,e,n){"use strict";var r,o=n(12),i=n(52),a=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,u=n(60),l=u(function(t,e){if(t.namespaceURI!==i.svg||"innerHTML"in t)t.innerHTML=e;else{r=r||document.createElement("div"),r.innerHTML=""+e+"";for(var n=r.firstChild;n.firstChild;)t.appendChild(n.firstChild)}});if(o.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(l=function(t,e){if(t.parentNode&&t.parentNode.replaceChild(t,t),a.test(e)||"<"===e[0]&&s.test(e)){t.innerHTML=String.fromCharCode(65279)+e;var n=t.firstChild;1===n.data.length?t.removeChild(n):n.deleteData(0,1)}else t.innerHTML=e}),c=null}t.exports=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s=n(108),u=r(s),l=n(0),c=r(l),p=n(69),d=r(p),f=n(244),h=r(f),v=function(t){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,e),r.tracks=n.textTracks(),i(this,t.call(this,n,r))}return a(e,t),e.prototype.createItems=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.push(new h.default(this.player_,{kind:this.kind_})),this.hideThreshold_+=1;var e=this.player_.textTracks();if(!e)return t;for(var n=0;n',n=o.firstChild,o.setAttribute("style","display:none; position:absolute;"),i.default.body.appendChild(o));for(var a={},s=0;sx',t=e.firstChild.href}return t},e.getFileExtension=function(t){if("string"==typeof t){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,n=e.exec(t);if(n)return n.pop().toLowerCase()}return""},e.isCrossOrigin=function(t){var e=s.default.location,n=u(t);return(":"===n.protocol?e.protocol:n.protocol)+n.host!==e.protocol+e.host}},function(t,e,n){"use strict";function r(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!==t&&e!==e}function o(t,e){if(r(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(var a=0;a-1||a("96",t),!l.plugins[n]){e.extractEvents||a("97",t),l.plugins[n]=e;var r=e.eventTypes;for(var i in r)o(r[i],e,i)||a("98",i,t)}}}function o(t,e,n){l.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),l.eventNameDispatchConfigs[n]=t;var r=t.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];i(s,e,n)}return!0}return!!t.registrationName&&(i(t.registrationName,e,n),!0)}function i(t,e,n){l.registrationNameModules[t]&&a("100",t),l.registrationNameModules[t]=e,l.registrationNameDependencies[t]=e.eventTypes[n].dependencies}var a=n(3),s=(n(1),null),u={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(t){s&&a("101"),s=Array.prototype.slice.call(t),r()},injectEventPluginsByName:function(t){var e=!1;for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];u.hasOwnProperty(n)&&u[n]===o||(u[n]&&a("102",n),u[n]=o,e=!0)}e&&r()},getPluginModuleForEvent:function(t){var e=t.dispatchConfig;if(e.registrationName)return l.registrationNameModules[e.registrationName]||null;if(void 0!==e.phasedRegistrationNames){var n=e.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=l.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){s=null;for(var t in u)u.hasOwnProperty(t)&&delete u[t];l.plugins.length=0;var e=l.eventNameDispatchConfigs;for(var n in e)e.hasOwnProperty(n)&&delete e[n];var r=l.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};t.exports=l},function(t,e,n){"use strict";function r(t){return"topMouseUp"===t||"topTouchEnd"===t||"topTouchCancel"===t}function o(t){return"topMouseMove"===t||"topTouchMove"===t}function i(t){return"topMouseDown"===t||"topTouchStart"===t}function a(t,e,n,r){var o=t.type||"unknown-event";t.currentTarget=m.getNodeFromInstance(r),e?v.invokeGuardedCallbackWithCatch(o,n,t):v.invokeGuardedCallback(o,n,t),t.currentTarget=null}function s(t,e){var n=t._dispatchListeners,r=t._dispatchInstances;if(Array.isArray(n))for(var o=0;o0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(t,e){var n=s.get(t);if(!n){return null}return n}var a=n(3),s=(n(18),n(34)),u=(n(15),n(16)),l=(n(1),n(2),{isMounted:function(t){var e=s.get(t);return!!e&&!!e._renderedComponent},enqueueCallback:function(t,e,n){l.validateCallback(e,n);var o=i(t);if(!o)return null;o._pendingCallbacks?o._pendingCallbacks.push(e):o._pendingCallbacks=[e],r(o)},enqueueCallbackInternal:function(t,e){t._pendingCallbacks?t._pendingCallbacks.push(e):t._pendingCallbacks=[e],r(t)},enqueueForceUpdate:function(t){var e=i(t,"forceUpdate");e&&(e._pendingForceUpdate=!0,r(e))},enqueueReplaceState:function(t,e){var n=i(t,"replaceState");n&&(n._pendingStateQueue=[e],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(t,e){var n=i(t,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(e),r(n)}},enqueueElementInternal:function(t,e,n){t._pendingElement=e,t._context=n,r(t)},validateCallback:function(t,e){t&&"function"!=typeof t&&a("122",e,o(t))}});t.exports=l},function(t,e,n){"use strict";var r=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,r,o){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,o)})}:t};t.exports=r},function(t,e,n){"use strict";function r(t){var e,n=t.keyCode;return"charCode"in t?0===(e=t.charCode)&&13===n&&(e=13):e=n,e>=32||13===e?e:0}t.exports=r},function(t,e,n){"use strict";function r(t){var e=this,n=e.nativeEvent;if(n.getModifierState)return n.getModifierState(t);var r=i[t];return!!r&&!!n[r]}function o(t){return r}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=o},function(t,e,n){"use strict";function r(t){var e=t.target||t.srcElement||window;return e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}t.exports=r},function(t,e,n){"use strict";/** - * Checks if an event is supported in the current execution environment. - * - * NOTE: This will not work correctly for non-generic events such as `change`, - * `reset`, `load`, `error`, and `select`. - * - * Borrows from Modernizr. - * - * @param {string} eventNameSuffix Event name, e.g. "click". - * @param {?boolean} capture Check if the capture phase is supported. - * @return {boolean} True if the event is supported. - * @internal - * @license Modernizr 3.0.0pre (Custom Build) | MIT - */ -function r(t,e){if(!i.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===t&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=n(12);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),t.exports=r},function(t,e,n){"use strict";function r(t,e){var n=null===t||!1===t,r=null===e||!1===e;if(n||r)return n===r;var o=typeof t,i=typeof e;return"string"===o||"number"===o?"string"===i||"number"===i:"object"===i&&t.type===e.type&&t.key===e.key}t.exports=r},function(t,e,n){"use strict";var r=(n(6),n(14)),o=(n(2),r);t.exports=o},function(t,e,n){"use strict";function r(t,e,n){this.props=t,this.context=e,this.refs=a,this.updater=n||i}var o=n(28),i=n(68),a=(n(104),n(31));n(1),n(2);r.prototype.isReactComponent={},r.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t&&o("85"),this.updater.enqueueSetState(this,t),e&&this.updater.enqueueCallback(this,e,"setState")},r.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this),t&&this.updater.enqueueCallback(this,t,"forceUpdate")};t.exports=r},function(t,e,n){"use strict";var r=(n(2),{isMounted:function(t){return!1},enqueueCallback:function(t,e){},enqueueForceUpdate:function(t){},enqueueReplaceState:function(t,e){},enqueueSetState:function(t,e){}});t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s="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},u=n(48),l=r(u),c=n(0),p=r(c),d=n(4),f=function(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}(d),h=n(7),v=r(h),y=n(8),m=r(y),g=function(t){function e(n,r){o(this,e);var a=r.track,u=n.textTracks();r.label=a.label||a.language||"Unknown",r.selected=a.default||"showing"===a.mode;var l=i(this,t.call(this,n,r));if(l.track=a,u){var c=f.bind(l,l.handleTracksChange);n.on(["loadstart","texttrackchange"],c),u.addEventListener("change",c),l.on("dispose",function(){u.removeEventListener("change",c)})}if(u&&void 0===u.onchange){var p=void 0;l.on(["tap","click"],function(){if("object"!==s(v.default.Event))try{p=new v.default.Event("change")}catch(t){}p||(p=m.default.createEvent("Event"),p.initEvent("change",!0,!0)),u.dispatchEvent(p)})}return l}return a(e,t),e.prototype.handleClick=function(e){var n=this.track.kind,r=this.player_.textTracks();if(t.prototype.handleClick.call(this,e),r)for(var o=0;o0&&(y.default.console&&y.default.console.groupCollapsed&&y.default.console.groupCollapsed("Text Track parsing errors for "+e.src),r.forEach(function(t){return h.default.error(t)}),y.default.console&&y.default.console.groupEnd&&y.default.console.groupEnd()),n.flush()},A=function(t,e){var n={uri:t},r=(0,_.isCrossOrigin)(t);r&&(n.cors=r),(0,w.default)(n,p.bind(this,function(t,n,r){if(t)return h.default.error(t,n);if(e.loaded_=!0,"function"!=typeof y.default.WebVTT){if(e.tech_){var o=function(){return S(r,e)};e.tech_.on("vttjsloaded",o),e.tech_.on("vttjserror",function(){h.default.error("vttjs failed to load, stopping trying to process "+e.src),e.tech_.off("vttjsloaded",o)})}}else S(r,e)}))},x=function(t){function e(){var n,r,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(i(this,e),!o.tech)throw new Error("A tech was not provided.");var s=(0,E.default)(o,{kind:d.TextTrackKind[o.kind]||"subtitles",language:o.language||o.srclang||""}),u=d.TextTrackMode[s.mode]||"disabled",c=s.default;"metadata"!==s.kind&&"chapters"!==s.kind||(u="hidden");var f=n=a(this,t.call(this,s));if(f.tech_=s.tech,k.IS_IE8)for(var h in e.prototype)"constructor"!==h&&(f[h]=e.prototype[h]);f.cues_=[],f.activeCues_=[];var v=new l.default(f.cues_),y=new l.default(f.activeCues_),m=!1,g=p.bind(f,function(){this.activeCues,m&&(this.trigger("cuechange"),m=!1)});return"disabled"!==u&&f.tech_.ready(function(){f.tech_.on("timeupdate",g)},!0),Object.defineProperty(f,"default",{get:function(){return c},set:function(){}}),Object.defineProperty(f,"mode",{get:function(){return u},set:function(t){var e=this;d.TextTrackMode[t]&&(u=t,"showing"===u&&this.tech_.ready(function(){e.tech_.on("timeupdate",g)},!0),this.trigger("modechange"))}}),Object.defineProperty(f,"cues",{get:function(){return this.loaded_?v:null},set:function(){}}),Object.defineProperty(f,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return y;for(var t=this.tech_.currentTime(),e=[],n=0,r=this.cues.length;n=t?e.push(o):o.startTime===o.endTime&&o.startTime<=t&&o.startTime+.5>=t&&e.push(o)}if(m=!1,e.length!==this.activeCues_.length)m=!0;else for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;o(this,e);var s=i(this,t.call(this));if(!a&&(a=s,c.IS_IE8)){a=d.default.createElement("custom");for(var u in e.prototype)"constructor"!==u&&(a[u]=e.prototype[u])}a.tracks_=[],Object.defineProperty(a,"length",{get:function(){return this.tracks_.length}});for(var l=0;l0&&void 0!==arguments[0]?arguments[0]:{};i(this,e);var o=a(this,t.call(this)),s=o;if(l.IS_IE8){s=p.default.createElement("custom");for(var u in e.prototype)"constructor"!==u&&(s[u]=e.prototype[u])}var c={id:r.id||"vjs_track_"+f.newGUID(),kind:r.kind||"",label:r.label||"",language:r.language||""};for(var d in c)!function(t){Object.defineProperty(s,t,{get:function(){return c[t]},set:function(){}})}(d);return n=s,a(o,n)}return s(e,t),e}(v.default);e.default=y},function(t,e,n){"use strict";function r(t,e){if(!t||!e)return"";if("function"==typeof i.default.getComputedStyle){var n=i.default.getComputedStyle(t);return n?n[e]:""}return t.currentStyle[e]||""}e.__esModule=!0,e.default=r;var o=n(7),i=function(t){return t&&t.__esModule?t:{default:t}}(o)},function(t,e,n){"use strict";t.exports=n(26)},function(t,e,n){"use strict";var r=n(14),o={listen:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}}):t.attachEvent?(t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}):void 0},capture:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!0),{remove:function(){t.removeEventListener(e,n,!0)}}):{remove:r}},registerDefault:function(){}};t.exports=o},function(t,e,n){"use strict";function r(t){try{t.focus()}catch(t){}}t.exports=r},function(t,e,n){"use strict";function r(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}t.exports=r},function(t,e){function n(t){var e=r.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)}t.exports=n;var r=Object.prototype.toString},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function i(t){if(p===clearTimeout)return clearTimeout(t);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(t);try{return p(t)}catch(e){try{return p.call(null,t)}catch(e){return p.call(this,t)}}}function a(){v&&f&&(v=!1,f.length?h=f.concat(h):y=-1,h.length&&s())}function s(){if(!v){var t=o(a);v=!0;for(var e=h.length;e;){for(f=h,h=[];++y1)for(var n=1;n.":"function"==typeof e?" Instead of passing a class like Foo, pass React.createElement(Foo) or .":null!=e&&void 0!==e.props?" This may be caused by unintentionally loading two independent copies of React.":"");var a,s=y.createElement(F,{child:e});if(t){var u=T.get(t);a=u._processChildContext(u._context)}else a=A;var c=d(n);if(c){var p=c._currentElement,h=p.props.child;if(P(h,e)){var v=c._renderedComponent.getPublicInstance(),m=r&&function(){r.call(v)};return V._updateRootComponent(c,s,a,n,m),v}V.unmountComponentAtNode(n)}var g=o(n),_=g&&!!i(g),b=l(n),w=_&&!c&&!b,E=V._renderNewRootComponent(s,n,w,a)._renderedComponent.getPublicInstance();return r&&r.call(E),E},render:function(t,e,n){return V._renderSubtreeIntoContainer(null,t,e,n)},unmountComponentAtNode:function(t){c(t)||f("40");var e=d(t);if(!e){l(t),1===t.nodeType&&t.hasAttribute(M);return!1}return delete D[e._instance.rootID],S.batchedUpdates(u,e,t,!1),!0},_mountImageIntoNode:function(t,e,n,i,a){if(c(e)||f("41"),i){var s=o(e);if(E.canReuseMarkup(t,s))return void g.precacheNode(n,s);var u=s.getAttribute(E.CHECKSUM_ATTR_NAME);s.removeAttribute(E.CHECKSUM_ATTR_NAME);var l=s.outerHTML;s.setAttribute(E.CHECKSUM_ATTR_NAME,u);var p=t,d=r(p,l),v=" (client) "+p.substring(d-20,d+20)+"\n (server) "+l.substring(d-20,d+20);e.nodeType===N&&f("42",v)}if(e.nodeType===N&&f("43"),a.useCreateElement){for(;e.lastChild;)e.removeChild(e.lastChild);h.insertTreeBefore(e,t,null)}else O(e,t),g.precacheNode(n,e.firstChild)}};t.exports=V},function(t,e,n){"use strict";var r=n(3),o=n(26),i=(n(1),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(t){return null===t||!1===t?i.EMPTY:o.isValidElement(t)?"function"==typeof t.type?i.COMPOSITE:i.HOST:void r("26",t)}});t.exports=i},function(t,e,n){"use strict";var r={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(t){r.currentScrollLeft=t.x,r.currentScrollTop=t.y}};t.exports=r},function(t,e,n){"use strict";function r(t,e){return null==e&&o("30"),null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}var o=n(3);n(1);t.exports=r},function(t,e,n){"use strict";function r(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}t.exports=r},function(t,e,n){"use strict";function r(t){for(var e;(e=t._renderedNodeType)===o.COMPOSITE;)t=t._renderedComponent;return e===o.HOST?t._renderedComponent:e===o.EMPTY?null:void 0}var o=n(91);t.exports=r},function(t,e,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(12),i=null;t.exports=r},function(t,e,n){"use strict";function r(t){if(t){var e=t.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(t){return"function"==typeof t&&void 0!==t.prototype&&"function"==typeof t.prototype.mountComponent&&"function"==typeof t.prototype.receiveComponent}function i(t,e){var n;if(null===t||!1===t)n=l.create(i);else if("object"==typeof t){var s=t,u=s.type;if("function"!=typeof u&&"string"!=typeof u){var d="";d+=r(s._owner),a("130",null==u?u:typeof u,d)}"string"==typeof s.type?n=c.createInternalComponent(s):o(s.type)?(n=new s.type(s),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new p(s)}else"string"==typeof t||"number"==typeof t?n=c.createInstanceForText(t):a("131",typeof t);return n._mountIndex=0,n._mountImage=null,n}var a=n(3),s=n(6),u=n(155),l=n(86),c=n(88),p=(n(202),n(1),n(2),function(t){this.construct(t)});s(p.prototype,u,{_instantiateReactComponent:i}),t.exports=i},function(t,e,n){"use strict";function r(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!o[t.type]:"textarea"===e}var o={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};t.exports=r},function(t,e,n){"use strict";var r=n(12),o=n(44),i=n(45),a=function(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e};r.canUseDOM&&("textContent"in document.documentElement||(a=function(t,e){if(3===t.nodeType)return void(t.nodeValue=e);i(t,o(e))})),t.exports=a},function(t,e,n){"use strict";function r(t,e){return t&&"object"==typeof t&&null!=t.key?l.escape(t.key):e.toString(36)}function o(t,e,n,i){var d=typeof t;if("undefined"!==d&&"boolean"!==d||(t=null),null===t||"string"===d||"number"===d||"object"===d&&t.$$typeof===s)return n(i,t,""===e?c+r(t,0):e),1;var f,h,v=0,y=""===e?c:e+p;if(Array.isArray(t))for(var m=0;m1&&void 0!==arguments[1]?arguments[1]:{};i(this,e);var o=a(this,t.call(this,n,r));return o.update(),o.enabled_=!0,o.el_.setAttribute("aria-haspopup","true"),o.el_.setAttribute("role","menuitem"),o.on("keydown",o.handleSubmenuKeyPress),o}return s(e,t),e.prototype.update=function(){var t=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},e.prototype.createMenu=function(){var t=new f.default(this.player_);if(this.hideThreshold_=0,this.options_.title){var e=v.createEl("li",{className:"vjs-menu-title",innerHTML:(0,_.default)(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,t.children_.unshift(e),v.insertElFirst(e,t.contentEl())}if(this.items=this.createItems(),this.items)for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:0,e=this.children().slice();e.length&&e[0].className&&/vjs-menu-title/.test(e[0].className)&&e.shift(),e.length>0&&(t<0?t=0:t>=e.length&&(t=e.length-1),this.focusedChild_=t,e[t].el_.focus())},e}(u.default);u.default.registerComponent("Menu",v),e.default=v},function(t,e,n){"use strict";function r(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 o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s=n(5),u=r(s),l=n(4),c=r(l),p=n(0),d=function(t){return t&&t.__esModule?t:{default:t}}(p),f="vjs-modal-dialog",h=function(t){function e(n,r){o(this,e);var a=i(this,t.call(this,n,r));return a.opened_=a.hasBeenOpened_=a.hasBeenFilled_=!1,a.closeable(!a.options_.uncloseable),a.content(a.options_.content),a.contentEl_=u.createEl("div",{className:f+"-content"},{role:"document"}),a.descEl_=u.createEl("p",{className:f+"-description vjs-offscreen",id:a.el().getAttribute("aria-describedby")}),u.textContent(a.descEl_,a.description()),a.el_.appendChild(a.descEl_),a.el_.appendChild(a.contentEl_),a}return a(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},e.prototype.buildCSSClass=function(){return f+" vjs-hidden "+t.prototype.buildCSSClass.call(this)},e.prototype.handleKeyPress=function(t){27===t.which&&this.closeable()&&this.close()},e.prototype.label=function(){return this.options_.label||this.localize("Modal Window")},e.prototype.description=function(){var t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t},e.prototype.open=function(){if(!this.opened_){var t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!t.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&t.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",c.bind(this,this.handleKeyPress)),t.controls(!1),this.show(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}return this},e.prototype.opened=function(t){return"boolean"==typeof t&&this[t?"open":"close"](),this.opened_},e.prototype.close=function(){if(this.opened_){var t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&t.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",c.bind(this,this.handleKeyPress)),t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.options_.temporary&&this.dispose()}return this},e.prototype.closeable=function(t){if("boolean"==typeof t){var e=this.closeable_=!!t,n=this.getChild("closeButton");if(e&&!n){var r=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(n,"close",this.close)}!e&&n&&(this.off(n,"close",this.close),this.removeChild(n),n.dispose())}return this.closeable_},e.prototype.fill=function(){return this.fillWith(this.content())},e.prototype.fillWith=function(t){var e=this.contentEl(),n=e.parentNode,r=e.nextSibling;return this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(e),this.empty(),u.insertContent(e,t),this.trigger("modalfill"),r?n.insertBefore(e,r):n.appendChild(e),this},e.prototype.empty=function(){return this.trigger("beforemodalempty"),u.emptyEl(this.contentEl()),this.trigger("modalempty"),this},e.prototype.content=function(t){return void 0!==t&&(this.content_=t),this.content_},e}(d.default);h.prototype.options_={pauseOnOpen:!0,temporary:!0},d.default.registerComponent("ModalDialog",h),e.default=h},function(t,e,n){"use strict";function r(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 o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(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.__esModule=!0;var u=n(0),l=o(u),c=n(8),p=o(c),d=n(7),f=o(d),h=n(20),v=r(h),y=n(5),m=r(y),g=n(4),_=r(g),b=n(29),w=r(b),T=n(10),E=r(T),C=n(13),k=o(C),S=n(30),A=o(S),x=n(39),O=n(118),P=n(119),j=r(P),M=n(255),I=o(M),N=n(110),R=o(N),D=n(218),L=o(D),F=n(11),V=n(19),U=o(V),B=n(271),H=o(B),W=n(113),z=o(W),q=n(38),Y=o(q),X=n(116),K=o(X),G=n(117),$=o(G);n(265),n(263),n(260),n(270),n(256),n(221),n(222),n(225),n(253),n(273),n(264);var J=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","ratechange","volumechange","texttrackchange"],Q=function(t){function e(n,r,o){if(i(this,e),n.id=n.id||"vjs_video_"+w.newGUID(),r=(0,F.assign)(e.getTagSettings(n),r),r.initChildren=!1,r.createEl=!1,r.reportTouchActivity=!1,!r.language)if("function"==typeof n.closest){var s=n.closest("[lang]");s&&(r.language=s.getAttribute("lang"))}else for(var u=n;u&&1===u.nodeType;){if(m.getElAttributes(u).hasOwnProperty("lang")){r.language=u.getAttribute("lang");break}u=u.parentNode}var l=a(this,t.call(this,null,r,o));if(!l.options_||!l.options_.techOrder||!l.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(l.tag=n,l.tagAttributes=n&&m.getElAttributes(n),l.language(l.options_.language),r.languages){var c={};Object.getOwnPropertyNames(r.languages).forEach(function(t){c[t.toLowerCase()]=r.languages[t]}),l.languages_=c}else l.languages_=e.prototype.options_.languages;l.cache_={},l.poster_=r.poster||"",l.controls_=!!r.controls,n.controls=!1,l.scrubbing_=!1,l.el_=l.createEl();var p=(0,U.default)(l.options_);if(r.plugins){var d=r.plugins;Object.getOwnPropertyNames(d).forEach(function(t){"function"==typeof this[t]?this[t](d[t]):k.default.error("Unable to find plugin:",t)},l)}return l.options_.playerOptions=p,l.initChildren(),l.isAudio("audio"===n.nodeName.toLowerCase()),l.controls()?l.addClass("vjs-controls-enabled"):l.addClass("vjs-controls-disabled"),l.el_.setAttribute("role","region"),l.isAudio()?l.el_.setAttribute("aria-label","audio player"):l.el_.setAttribute("aria-label","video player"),l.isAudio()&&l.addClass("vjs-audio"),l.flexNotSupported_()&&l.addClass("vjs-no-flex"),E.IS_IOS||l.addClass("vjs-workinghover"),e.players[l.id_]=l,l.userActive(!0),l.reportUserActivity(),l.listenForUserActivity_(),l.on("fullscreenchange",l.handleFullscreenChange_),l.on("stageclick",l.handleStageClick_),l}return s(e,t),e.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&this.styleEl_.parentNode.removeChild(this.styleEl_),e.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&this.tech_.dispose(),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var e=this.tag,n=void 0,r=this.playerElIngest_=e.parentNode&&e.parentNode.hasAttribute&&e.parentNode.hasAttribute("data-vjs-player");n=this.el_=r?e.parentNode:t.prototype.createEl.call(this,"div"),e.setAttribute("tabindex","-1"),e.removeAttribute("width"),e.removeAttribute("height");var o=m.getElAttributes(e);if(Object.getOwnPropertyNames(o).forEach(function(t){"class"===t?n.className+=" "+o[t]:n.setAttribute(t,o[t])}),e.playerId=e.id,e.id+="_html5_api",e.className="vjs-tech",e.player=n.player=this,this.addClass("vjs-paused"),!0!==f.default.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=j.createStyleElement("vjs-styles-dimensions");var i=m.$(".vjs-styles-defaults"),a=m.$("head");a.insertBefore(this.styleEl_,i?i.nextSibling:a.firstChild)}this.width(this.options_.width),this.height(this.options_.height),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var s=e.getElementsByTagName("a"),u=0;u=0&&(n.width=t),e>=0&&(n.height=e)))}var r=void 0,o=void 0,i=void 0,a=void 0;i=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";var s=i.split(":"),u=s[1]/s[0];r=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/u:this.videoWidth()||300,o=void 0!==this.height_?this.height_:r*u,a=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(a),j.setTextContent(this.styleEl_,"\n ."+a+" {\n width: "+r+"px;\n height: "+o+"px;\n }\n\n ."+a+".vjs-fluid {\n padding-top: "+100*u+"%;\n }\n ")},e.prototype.loadTech_=function(t,e){var n=this;this.tech_&&this.unloadTech_(),"Html5"!==t&&this.tag&&(Y.default.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=t,this.isReady_=!1;var r=(0,F.assign)({source:e,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+t+"_api",videoTracks:this.videoTracks_,textTracks:this.textTracks_,audioTracks:this.audioTracks_,autoplay:this.options_.autoplay,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"]},this.options_[t.toLowerCase()]);this.tag&&(r.tag=this.tag),e&&(this.currentType_=e.type,e.src===this.cache_.src&&this.cache_.currentTime>0&&(r.startTime=this.cache_.currentTime),this.cache_.sources=null,this.cache_.source=e,this.cache_.src=e.src);var o=Y.default.getTech(t);o||(o=l.default.getComponent(t)),this.tech_=new o(r),this.tech_.ready(_.bind(this,this.handleTechReady_),!0),H.default.jsonToTextTracks(this.textTracksJson_||[],this.tech_),J.forEach(function(t){n.on(n.tech_,t,n["handleTech"+(0,A.default)(t)+"_"])}),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")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===t&&this.tag||m.insertElFirst(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},e.prototype.unloadTech_=function(){this.videoTracks_=this.videoTracks(),this.textTracks_=this.textTracks(),this.audioTracks_=this.audioTracks(),this.textTracksJson_=H.default.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1},e.prototype.tech=function(t){if(t&&t.IWillNotUseThisInPlugins)return this.tech_;var e="\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 ";throw f.default.alert(e),new Error(e)},e.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},e.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},e.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused()){try{delete this.tag.poster}catch(t){(0,k.default)("deleting tag.poster throws in some browsers",t)}this.play()}},e.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay"))},e.prototype.hasStarted=function(t){return void 0!==t?(this.hasStarted_!==t&&(this.hasStarted_=t,t?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):!!this.hasStarted_},e.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},e.prototype.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return t.removeClass("vjs-waiting")})},e.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},e.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},e.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},e.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},e.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},e.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&(k.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")},e.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},e.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},e.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},e.prototype.handleTechClick_=function(t){0===t.button&&this.controls()&&(this.paused()?this.play():this.pause())},e.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},e.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},e.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},e.prototype.handleTechTouchEnd_=function(t){t.preventDefault()},e.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},e.prototype.handleStageClick_=function(){this.reportUserActivity()},e.prototype.handleTechFullscreenChange_=function(t,e){e&&this.isFullscreen(e.isFullscreen),this.trigger("fullscreenchange")},e.prototype.handleTechError_=function(){var t=this.tech_.error();this.error(t)},e.prototype.handleTechTextData_=function(){var t=null;arguments.length>1&&(t=arguments[1]),this.trigger("textdata",t)},e.prototype.getCache=function(){return this.cache_},e.prototype.techCall_=function(t,e){if(this.tech_&&!this.tech_.isReady_)this.tech_.ready(function(){this[t](e)},!0);else try{this.tech_&&this.tech_[t](e)}catch(t){throw(0,k.default)(t),t}},e.prototype.techGet_=function(t){if(this.tech_&&this.tech_.isReady_)try{return this.tech_[t]()}catch(e){throw void 0===this.tech_[t]?(0,k.default)("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e):"TypeError"===e.name?((0,k.default)("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1):(0,k.default)(e),e}},e.prototype.play=function(){return this.src()||this.currentSrc()?this.techCall_("play"):this.tech_.one("loadstart",function(){this.play()}),this},e.prototype.pause=function(){return this.techCall_("pause"),this},e.prototype.paused=function(){return!1!==this.techGet_("paused")},e.prototype.scrubbing=function(t){return void 0!==t?(this.scrubbing_=!!t,t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing"),this):this.scrubbing_},e.prototype.currentTime=function(t){return void 0!==t?(this.techCall_("setCurrentTime",t),this):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},e.prototype.duration=function(t){return void 0===t?this.cache_.duration||0:(t=parseFloat(t)||0,t<0&&(t=1/0),t!==this.cache_.duration&&(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange")),this)},e.prototype.remainingTime=function(){return this.duration()-this.currentTime()},e.prototype.buffered=function(){var t=this.techGet_("buffered");return t&&t.length||(t=(0,x.createTimeRange)(0,0)),t},e.prototype.bufferedPercent=function(){return(0,O.bufferedPercent)(this.buffered(),this.duration())},e.prototype.bufferedEnd=function(){var t=this.buffered(),e=this.duration(),n=t.end(t.length-1);return n>e&&(n=e),n},e.prototype.volume=function(t){var e=void 0;return void 0!==t?(e=Math.max(0,Math.min(1,parseFloat(t))),this.cache_.volume=e,this.techCall_("setVolume",e),this):(e=parseFloat(this.techGet_("volume")),isNaN(e)?1:e)},e.prototype.muted=function(t){return void 0!==t?(this.techCall_("setMuted",t),this):this.techGet_("muted")||!1},e.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},e.prototype.isFullscreen=function(t){return void 0!==t?(this.isFullscreen_=!!t,this):!!this.isFullscreen_},e.prototype.requestFullscreen=function(){var t=I.default;return this.isFullscreen(!0),t.requestFullscreen?(v.on(p.default,t.fullscreenchange,_.bind(this,function e(n){this.isFullscreen(p.default[t.fullscreenElement]),!1===this.isFullscreen()&&v.off(p.default,t.fullscreenchange,e),this.trigger("fullscreenchange")})),this.el_[t.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},e.prototype.exitFullscreen=function(){var t=I.default;return this.isFullscreen(!1),t.requestFullscreen?p.default[t.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange")),this},e.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=p.default.documentElement.style.overflow,v.on(p.default,"keydown",_.bind(this,this.fullWindowOnEscKey)),p.default.documentElement.style.overflow="hidden",m.addElClass(p.default.body,"vjs-full-window"),this.trigger("enterFullWindow")},e.prototype.fullWindowOnEscKey=function(t){27===t.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},e.prototype.exitFullWindow=function(){this.isFullWindow=!1,v.off(p.default,"keydown",this.fullWindowOnEscKey),p.default.documentElement.style.overflow=this.docOrigOverflow,m.removeElClass(p.default.body,"vjs-full-window"),this.trigger("exitFullWindow")},e.prototype.canPlayType=function(t){for(var e=void 0,n=0,r=this.options_.techOrder;n0&&(s=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},t))}},250)},e.prototype.playbackRate=function(t){return void 0!==t?(this.techCall_("setPlaybackRate",t),this):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("playbackRate"):1},e.prototype.isAudio=function(t){return void 0!==t?(this.isAudio_=!!t,this):!!this.isAudio_},e.prototype.videoTracks=function(){return this.tech_?this.tech_.videoTracks():(this.videoTracks_=this.videoTracks_||new $.default,this.videoTracks_)},e.prototype.audioTracks=function(){return this.tech_?this.tech_.audioTracks():(this.audioTracks_=this.audioTracks_||new K.default,this.audioTracks_)},e.prototype.textTracks=function(){if(this.tech_)return this.tech_.textTracks()},e.prototype.remoteTextTracks=function(){if(this.tech_)return this.tech_.remoteTextTracks()},e.prototype.remoteTextTrackEls=function(){if(this.tech_)return this.tech_.remoteTextTrackEls()},e.prototype.addTextTrack=function(t,e,n){if(this.tech_)return this.tech_.addTextTrack(t,e,n)},e.prototype.addRemoteTextTrack=function(t,e){if(this.tech_)return this.tech_.addRemoteTextTrack(t,e)},e.prototype.removeRemoteTextTrack=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.track,n=void 0===e?arguments[0]:e;if(this.tech_)return this.tech_.removeRemoteTextTrack(n)},e.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},e.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},e.prototype.language=function(t){return void 0===t?this.language_:(this.language_=String(t).toLowerCase(),this)},e.prototype.languages=function(){return(0,U.default)(e.prototype.options_.languages,this.languages_)},e.prototype.toJSON=function(){var t=(0,U.default)(this.options_),e=t.tracks;t.tracks=[];for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.className=n.className+" vjs-slider",n=(0,c.assign)({tabIndex:0},n),r=(0,c.assign)({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),t.prototype.createEl.call(this,e,n,r)},e.prototype.handleMouseDown=function(t){var e=this.bar.el_.ownerDocument;t.preventDefault(),l.blockTextSelection(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(e,"mousemove",this.handleMouseMove),this.on(e,"mouseup",this.handleMouseUp),this.on(e,"touchmove",this.handleMouseMove),this.on(e,"touchend",this.handleMouseUp),this.handleMouseMove(t)},e.prototype.handleMouseMove=function(t){},e.prototype.handleMouseUp=function(){var t=this.bar.el_.ownerDocument;l.unblockTextSelection(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchmove",this.handleMouseMove),this.off(t,"touchend",this.handleMouseUp),this.update()},e.prototype.update=function(){if(this.el_){var t=this.getPercent(),e=this.bar;if(e){("number"!=typeof t||t!==t||t<0||t===1/0)&&(t=0);var n=(100*t).toFixed(2)+"%";this.vertical()?e.el().style.height=n:e.el().style.width=n}}},e.prototype.calculateDistance=function(t){var e=l.getPointerPosition(this.el_,t);return this.vertical()?e.y:e.x},e.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleKeyPress=function(t){37===t.which||40===t.which?(t.preventDefault(),this.stepBack()):38!==t.which&&39!==t.which||(t.preventDefault(),this.stepForward())},e.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},e.prototype.handleClick=function(t){t.stopImmediatePropagation(),t.preventDefault()},e.prototype.vertical=function(t){return void 0===t?this.vertical_||!1:(this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal"),this)},e}(s.default);s.default.registerComponent("Slider",p),e.default=p},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s=n(72),u=r(s),l=n(10),c=function(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}(l),p=n(8),d=r(p),f=function(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];o(this,e);for(var s=void 0,l=a.length-1;l>=0;l--)if(a[l].enabled){f(a,a[l]);break}if(c.IS_IE8){s=d.default.createElement("custom");for(var p in u.default.prototype)"constructor"!==p&&(s[p]=u.default.prototype[p]);for(var h in e.prototype)"constructor"!==h&&(s[h]=e.prototype[h])}return s=n=i(this,t.call(this,a,s)),s.changing_=!1,r=s,i(n,r)}return a(e,t),e.prototype.addTrack_=function(e){var n=this;e.enabled&&f(this,e),t.prototype.addTrack_.call(this,e),e.addEventListener&&e.addEventListener("enabledchange",function(){n.changing_||(n.changing_=!0,f(n,e),n.changing_=!1,n.trigger("change"))})},e.prototype.addTrack=function(t){this.addTrack_(t)},e.prototype.removeTrack=function(e){t.prototype.removeTrack_.call(this,e)},e}(u.default);e.default=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s=n(72),u=r(s),l=n(10),c=function(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}(l),p=n(8),d=r(p),f=function(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];o(this,e);for(var s=void 0,l=a.length-1;l>=0;l--)if(a[l].selected){f(a,a[l]);break}if(c.IS_IE8){s=d.default.createElement("custom");for(var p in u.default.prototype)"constructor"!==p&&(s[p]=u.default.prototype[p]);for(var h in e.prototype)"constructor"!==h&&(s[h]=e.prototype[h])}return s=n=i(this,t.call(this,a,s)),s.changing_=!1,Object.defineProperty(s,"selectedIndex",{get:function(){for(var t=0;te&&(i=e),n+=i-r;return n/e}e.__esModule=!0,e.bufferedPercent=r;var o=n(39)},function(t,e,n){"use strict";e.__esModule=!0,e.setTextContent=e.createStyleElement=void 0;var r=n(8),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.createStyleElement=function(t){var e=o.default.createElement("style");return e.className=t,e},e.setTextContent=function(t,e){t.styleSheet?t.styleSheet.cssText=e:t.textContent=e}},function(t,e,n){"use strict";e.__esModule=!0,e.setup=e.reset=void 0;var r=n(7),o=function(t){return t&&t.__esModule?t:{default:t}}(r),i=function(t){return"number"==typeof t&&!isNaN(t)&&t>=0&&t<1/0},a=function(t){t.playlist.autoadvance_.timeout&&o.default.clearTimeout(t.playlist.autoadvance_.timeout),t.playlist.autoadvance_.trigger&&t.off("ended",t.playlist.autoadvance_.trigger),t.playlist.autoadvance_.timeout=null,t.playlist.autoadvance_.trigger=null},s=function(t,e){a(t),i(e)&&(t.playlist.autoadvance_.trigger=function(){t.playlist.autoadvance_.timeout=o.default.setTimeout(function(){a(t),t.playlist.next()},1e3*e)},t.one("ended",t.playlist.autoadvance_.trigger))};e.reset=a,e.setup=s},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";function r(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function o(t,e,n){var r=t;return c(e)?(n=e,"string"==typeof t&&(r={uri:t})):r=d(e,{uri:t}),r.callback=n,r}function i(t,e,n){return e=o(t,e,n),a(e)}function a(t){function e(){4===d.readyState&&a()}function n(){var t=void 0;if(t=d.response?d.response:d.responseText||s(d),w)try{t=JSON.parse(t)}catch(t){}return t}function o(t){return clearTimeout(v),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,l(t,c)}function a(){if(!h){var e;clearTimeout(v),e=t.useXDR&&void 0===d.status?200:1223===d.status?204:d.status;var r=c,o=null;return 0!==e?(r={body:n(),statusCode:e,method:m,headers:{},url:y,rawRequest:d},d.getAllResponseHeaders&&(r.headers=p(d.getAllResponseHeaders()))):o=new Error("Internal XMLHttpRequest Error"),l(o,r,r.body)}}if(void 0===t.callback)throw new Error("callback argument missing");var u=!1,l=function(e,n,r){u||(u=!0,t.callback(e,n,r))},c={body:void 0,headers:{},statusCode:0,method:m,url:y,rawRequest:d},d=t.xhr||null;d||(d=t.cors||t.useXDR?new i.XDomainRequest:new i.XMLHttpRequest);var f,h,v,y=d.url=t.uri||t.url,m=d.method=t.method||"GET",g=t.body||t.data||null,_=d.headers=t.headers||{},b=!!t.sync,w=!1;if("json"in t&&(w=!0,_.accept||_.Accept||(_.Accept="application/json"),"GET"!==m&&"HEAD"!==m&&(_["content-type"]||_["Content-Type"]||(_["Content-Type"]="application/json"),g=JSON.stringify(t.json))),d.onreadystatechange=e,d.onload=a,d.onerror=o,d.onprogress=function(){},d.ontimeout=o,d.open(m,y,!b,t.username,t.password),b||(d.withCredentials=!!t.withCredentials),!b&&t.timeout>0&&(v=setTimeout(function(){h=!0,d.abort("timeout");var t=new Error("XMLHttpRequest timeout");t.code="ETIMEDOUT",o(t)},t.timeout)),d.setRequestHeader)for(f in _)_.hasOwnProperty(f)&&d.setRequestHeader(f,_[f]);else if(t.headers&&!r(t.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in t&&(d.responseType=t.responseType),"beforeSend"in t&&"function"==typeof t.beforeSend&&t.beforeSend(d),d.send(g),d}function s(t){if("document"===t.responseType)return t.responseXML;var e=204===t.status&&t.responseXML&&"parsererror"===t.responseXML.documentElement.nodeName;return""!==t.responseType||e?null:t.responseXML}function u(){}var l=n(7),c=n(79),p=n(142),d=n(288);t.exports=i,i.XMLHttpRequest=l.XMLHttpRequest||u,i.XDomainRequest="withCredentials"in new i.XMLHttpRequest?i.XMLHttpRequest:l.XDomainRequest,function(t,e){for(var n=0;n=0&&e.left>=0&&e.bottom<=(window.innerHeight||n.clientHeight)&&e.right<=(window.innerWidth||n.clientWidth)}},{key:"getAdTag",value:function(t){var n=window.tmgAdsBuildAd;return"cityam"===y?t(null,"https://ad.360yield.com/advast?p=1023878&w=16&h=9"):"spectator"===y?t(null,"https://ad.360yield.com/advast?p=1021575&w=4&h=3"):"prospectmagazine"===y?t(null,"https://ad.360yield.com/advast?p=1021574&w=4&h=3"):"londontheinside"===y?t(null,"https://ad.360yield.com/advast?p=1023718&w=4&h=3"):"bristol-sport"===y?t(null,"https://ad.360yield.com/advast?p=1024744&w=16&h=9"):"beautyandthedirt"===y?t(null,"https://ad.360yield.com/advast?p=1026408&w=4&h=3"):"proactiveinvestors"===y?t(null,"https://ad.360yield.com/advast?p=1026983&w=4&h=3"):"advfn"===y?t(null,"https://ad.360yield.com/advast?p=1021571&w=4&h=3"):"hospitalitytrends"===y?t(null,"https://ad.360yield.com/advast?p=1028636&w=4&h=3"):"sovrn"===y?t(null,"https://ap.lijit.com/www/delivery/vst.php?zoneid=458676"):"hitc"===y?t(null,"https://ad.360yield.com/advast?p=1034241&w=4&h=3"):"telegraph"===y&&n?e.getPlaylistAdTag(n("advert_body_vid","","","").fetchUrl(),t):t(null,"https://ad.360yield.com/advast?p=1023878&w=16&h=9")}},{key:"getPlaylistAdTag",value:function(t,e){fetch(t).then(function(t){return t.text()}).then(function(t){return t.match(/CDATA\[(.*)]]>/)[1]}).then(function(t){return e(null,t)})}}]),v(e,[{key:"componentDidMount",value:function(){var t=this,n=window.location.href,r="telegraph"===y?e.getClientVideos(n):e.getVideos(n),o={controls:!0,preload:"auto",loop:!1,muted:!0,width:640,height:264};this.player=l()(this.videoNode,o,function(){t.plugins(),r.then(function(e){console.log("DELTASTV: DATA",e),t.setVideos(e);var n=document.getElementById("suggestvdeltaplayer"),r=document.getElementById("deltaplayercontainer");n?(n.appendChild(r),t.videoJsInit(t.state.videos),t.videoNode.muted=!0):(console.log("DELTASTV: No player found"),t.player.dispose())}).catch(function(e){console.log("DELTASTV: Promise Error",e),t.player.dispose()})}),window.addEventListener("scroll",this.handleScroll.bind(this)),window.addEventListener("touchmove",this.handleScroll.bind(this))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("touchmove",this.handleScroll),this.player&&this.player.dispose()}},{key:"setVideos",value:function(t){function e(t){n=t.state.spectator,"localhost"===y&&(n=t.state.telegraph),"telegraph"===y&&(n=t.state.telegraph),"londontheinside"===y&&(n=t.state.londontheinside),"beautyandthedirt"===y&&(n=t.state.londontheinside),"bristol-sport"===y&&(n=t.state.bristolsport),"proactiveinvestors"===y&&(n=t.state.itn),console.log("DELTASTV: videos arr [default] ",n),t.setState({videos:n,videoss:"defaultplaylist"})}var n=[],r="telegraph"===y?7:25;this.setState({query:t.query}),null!==t&&t.results&&t.results.hits&&0!==t.results.hits.hit.length?(console.log("DELTASTV: set videos",t),t.results.hits.hit.slice(0,4).forEach(function(t){var e=[],o=t.highlights,i=t.fields,a=/\*(\S[\s\S]*?)\*/g;e="telegraph"===y?e.concat(o.extra_one.match(a)||[]).concat(o.description.match(a)||[]).concat(o.keywords.match(a)||[]).concat(o.thumbnail_alt.match(a)||[]).concat(o.thumbnail_alt_small.match(a)||[]):e.concat(o.descriptions_default.match(a)||[]).concat(o.descriptions_long.match(a)||[]).concat(o.title.match(a)||[]).concat(o.slug.match(a)||[]).concat(o.thumbnails_large_alttext.match(a)||[]).concat(o.thumbnails_small_alttext.match(a)||[]).concat(o.published.match(a)||[]);var s=[];e.map(function(t){return t.toLowerCase()}).forEach(function(t){-1===s.indexOf(t)&&s.push(t)}),Number(i._score[0])>r&&s.length>=1&&n.push({sources:[{src:"telegraph"===y?i.video_url[0]:i.videos_hd_uri[0],type:"video/mp4"}],poster:"telegraph"===y?i.thumbnail_url[0]:i.thumbnails_large_src[0],title:"telegraph"===y?i.extra_one[0]:i.title[0]})}),0!==n.length?(console.log("DELTASTV: videos arr [actual] ",n),this.setState({videos:n,videoss:"semanticsearch"})):(console.log("DELTASTV: none of the videos matched enough keywords or have big enough score"),e(this))):e(this)}},{key:"handleScroll",value:function(){e.isInViewport(this.videoNode)&&this.videoNode&&!this.state.firstPlay&&this.state.videoLoaded&&("cityam"===y||"beautyandthedirt"===y?console.log("DELTASTV: click-to-play"):(this.player.play(),console.log("START PLAYING")),window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("touchmove",this.handleScroll),this.setState({firstPlay:!0}))}},{key:"plugins",value:function(){var t=this;l.a.plugin("adform",function(){function n(t){o.poster(i.state.adLoadingPoster),e.getAdTag(function(e,n){console.log("DELTASTV: AdTag = ",n),i.setState({adTag:n}),t(e,n)})}function r(t,e,n){console.log("DELTASTV: vast event - ",n);var r=e[n];t.setState({adStart:t.state.adStart+","+n}),r&&fetch(r[0].uri).then(function(t){return t.json()}).then(function(t){return console.log("DELTASTV: vast."+n,t)})}var o=t.player,i=t,a={getAdTag:n,playAdAlways:!0,adCancelTimeout:7e3,adsEnabled:!0,vpaidFlashLoaderPath:"https://delta.sugges.tv/assets/VPAIDFlash.swf",verbosity:0,preferredTech:"html5"};console.log("DELTASTV: vastOptions",a);var s=o.vastClient(a);o.on("vast.adStart",function(){console.log("DELTASTV: start ad",s,o),t.setState({adStart:t.state.adStart?t.state.adStart+",adStart":"adStart",adError:"N/A",adSrc:0!==o.vast.vastResponse.mediaFiles.length?o.vast.vastResponse.mediaFiles[0].src:"N/A"}),document.querySelectorAll(".delta-overlay").forEach(function(t){t.style.display="none"})}),o.on("vast.adError",function(e){console.log("DELTASTV: error ad",e),t.setState({adStart:"N/A",adSrc:"N/A",adError:e.error.message})}),o.on("vast.contentStart",function(){document.querySelectorAll(".delta-overlay").forEach(function(t){t.style.display=""}),fetch("https://content.sugges.tv",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({adstart:t.state.adStart,aderror:t.state.adError,adsrc:t.state.adSrc,adtag:t.state.adTag,scripttag:"https://delta.sugges.tv/test/bundle.js",player:"delta",player_settings:"cityam"===y||"beautyandthedirt"===y?"muted,click-to-play":"muted,autoplay-in-view",player_type:"article",keywords:t.state.query,videoss:t.state.videoss,player_height:Math.ceil(o.el_.clientHeight),player_width:Math.ceil(o.el_.clientWidth),player_duration:Math.ceil(o.duration()),player_src:o.currentSrc(),player_poster:o.poster(),title:o.playlist()[o.playlist.currentItem()].title,website_url:window.location.href,website_domain:window.location.hostname,useragent:navigator.userAgent,browser_language:navigator.language,browser_languages:navigator.languages.join(","),platform:navigator.platform})}).then(function(t){return t.json()}).then(function(t){console.log("DELTASTV: contentStart DATA back",t)})}),o.on("vpaid.AdPaused",function(){t.setState({adStart:t.state.adStart+",AdPaused"}),document.querySelectorAll(".delta-overlay").forEach(function(t){t.style.display="none"})}),o.on("vast.impression",function(){return r(t,o.vast.vastResponse.trackingEvents,"impression")}),o.on("vast.creativeView",function(){return r(t,o.vast.vastResponse.trackingEvents,"creativeView")}),o.on("vast.start",function(){return r(t,o.vast.vastResponse.trackingEvents,"start")}),o.on("vast.firstQuartile",function(){return r(t,o.vast.vastResponse.trackingEvents,"firstQuartile")}),o.on("vast.midpoint",function(){return r(t,o.vast.vastResponse.trackingEvents,"midpoint")}),o.on("vast.thirdQuartile",function(){return r(t,o.vast.vastResponse.trackingEvents,"thirdQuartile")}),o.on("vast.complete",function(){return r(t,o.vast.vastResponse.trackingEvents,"complete")}),o.on("vast.pause",function(){return r(t,o.vast.vastResponse.trackingEvents,"pause")}),o.on("vast.resume",function(){return r(t,o.vast.vastResponse.trackingEvents,"resume")}),o.on("vast.fullscreen",function(){return r(t,o.vast.vastResponse.trackingEvents,"fullscreen")}),o.on("vast.exitFullscreen",function(){return r(t,o.vast.vastResponse.trackingEvents,"exitFullscreen")}),o.on("vast.mute",function(){return r(t,o.vast.vastResponse.trackingEvents,"mute")}),o.on("vast.unmute",function(){return r(t,o.vast.vastResponse.trackingEvents,"unmute")}),o.on("vast.adclick",function(){return r(t,o.vast.vastResponse.trackingEvents,"adclick")}),o.on("vast.contentEnd",function(){return l()(t.videoNode).playlist.next()})}),this.player.adform()}},{key:"playlist",value:function(t){console.log("DELTASTV: Do playlist -",t),this.player.playlist(t),this.player.playlist.autoadvance(0)}},{key:"overlay",value:function(t){this.player.overlay({content:"Video has been paused",debug:!1,overlays:[{content:"

"+t.substr(0,60)+"...

",showBackground:!1,class:"delta-overlay",start:"pause",end:"playing"}]})}},{key:"videoJsInit",value:function(t){var e=this;console.log("DELTASTV: Do videojs",t),console.log("DELTASTV: Do videojs",this.state),this.playlist(this.state.videos);var n=this.player;n.muted(!0),this.player.on("loadstart",function(){var t=n.playlist(),r=n.playlist.currentItem(),o=t[r<0?0:r].title;n.on("touchend",function(){n.paused()?n.play():n.pause()}),n.controlBar.volumeMenuButton.show(),n.addClass("telegraph-player"),e.overlay(o)}),this.setState({videoLoaded:!0})}},{key:"render",value:function(){var t=this;return s.a.createElement("div",{"data-vjs-player":!0},s.a.createElement("video",{playsInline:!0,ref:function(e){return t.videoNode=e},className:"video-js vjs-default-skin vjs-16-9 vjs-big-play-centered"}))}}]),e}(s.a.Component);e.a=m},function(t,e){},function(t,e){},function(t,e,n){"use strict";t.exports=n(156)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(75),o=n.n(r),i=n(126),a=n.n(i),s=n(123);n(125),n(124);var u=document.createElement("div");u.id="deltaplayercontainer",document.body.appendChild(u),["https://vjs.zencdn.net/5.19.1/video-js.css","https://delta.sugges.tv/videojs-overlay.css","https://cdnjs.cloudflare.com/ajax/libs/videojs-vast-vpaid/2.0.2/videojs.vast.vpaid.min.css","https://delta.sugges.tv/test/telegraph-player.css"].forEach(function(t){var e=document.createElement("link");e.href=t,e.rel="stylesheet",document.head.appendChild(e)}),console.log("running"),a.a.render(o.a.createElement(s.a,null),document.getElementById("deltaplayercontainer"))},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o}),n.d(e,"c",function(){return i}),n.d(e,"d",function(){return a}),n.d(e,"e",function(){return s});var r=[{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/c648b1b9-1056-4893-a052-5bcc35f2f38d/27255151b3ba0ca44840000cb112d9d3.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/c648b1b9-1056-4893-a052-5bcc35f2f38d/aeb2a6436072a5961007183dd2ddcd5a-1280x720.png ",title:"ITV and ITN celebrate 60 years on air"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/1e78393e-7f52-4933-87b6-d5d609c831c0/901f4496855cf8db8d91b7f96d093f60.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/1e78393e-7f52-4933-87b6-d5d609c831c0/7123a2ae5dbb578049617d7df8964459-1280x720.png",title:"Amateur video captures tornado touching down in Ohio"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/f8ca127e-6002-47a3-92b5-c5c56d5578dc/f1cc13cb0f47d37d94e5f5d938aaa7af.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/f8ca127e-6002-47a3-92b5-c5c56d5578dc/965644cbcdb577138bfbb4d2d9505e75-1280x720.png",title:"Time-lapse video of the Aurora Borealis in Minnesota"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/e34e6fe7-442e-4f76-b5fb-e81803953f46/77f948bf561b33a50ee2d688f2fdccad.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/e34e6fe7-442e-4f76-b5fb-e81803953f46/cb128c8e24c9c2cca9e3d41f5312125c-1280x720.png",title:"Video of racoon riding a scooter goes viral"}],o=[{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/3d890945-9f28-472a-b568-4c349991638a/21fcf8b8165d4a480087b4d156b7c7af.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/3d890945-9f28-472a-b568-4c349991638a/a683b5206fd45c94d78546e0901b9cc4-1280x720.png",title:"Nickelodeon Kids' Choice 2015 Sports Awards"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/0bb3f3c3-8f1f-4256-8ca3-812ed74d436e/3d33b409fe58f842d364546b1d4dc089.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/0bb3f3c3-8f1f-4256-8ca3-812ed74d436e/3afcd7b07cd8a72c6d5e7820dc9ba778-1280x720.png",title:"10 Pretty Weird Sports"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/bec309ef-d345-4af3-865c-a65462de6434/bc97e402f5ee3fb09dfa600113d3253d.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/bec309ef-d345-4af3-865c-a65462de6434/67a03c0657df7bdc15473e6c8a6851d3_1.jpg",title:"10 Biggest Sporting Rivalries"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/36c38533-6ea3-4c4c-9e2f-98cf0e1f6f0f/1b8b322350ea41caad3f4059c3727538.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/36c38533-6ea3-4c4c-9e2f-98cf0e1f6f0f/31b868ba73e9f72827c4e3c6325efcf5_1.jpg",title:"10 Brutal Ancient Sports"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/4c7e375f-710b-43fe-8978-0e032d77cc58/985aa6d28873952f9643de9c82954a5f.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/4c7e375f-710b-43fe-8978-0e032d77cc58/0d42b23193b84c4f1b5da6c67fd77ba6-1280x720.png",title:"Famous Sporting Wives & Girlfriends"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/15e93e94-b88f-4f2f-a6b4-8b65c027ed4c/0fb4839b91a85f75fe10845bbf0b0bdb.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/15e93e94-b88f-4f2f-a6b4-8b65c027ed4c/36d8a00a46a65d26b05d68174264c0c3-1280x720.png",title:"China's gruelling sports schools"}],i=[{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/100715ce-44d2-48dd-bd25-4234c434f7a8/58b6261f76a9822a08a617de6be56260.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/100715ce-44d2-48dd-bd25-4234c434f7a8/1a6ba68aa83927bb4f22438ff29a7479-1280x720.png",title:"The beauty and the pigs: An unconditional love story"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/4b5be471-4665-4d06-acb6-a902525ecc81/8941b5cf87104a67bf469d85094e6f25.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/4b5be471-4665-4d06-acb6-a902525ecc81/b8a0fd8dac6a2fe12ffbae8deb2e4b8c-1280x720.png",title:"Brazilian beauty Adriana Lima covers Vogue Olympics"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/deb54697-e356-4a37-bbce-1b5605634727/e7bb5c43c460f0d74aa172ab6dd889de.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/deb54697-e356-4a37-bbce-1b5605634727/b811e19b0f1c70b6f61ffab82b1d4f56_1.jpg",title:"The new beauty consumers"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/025d7a48-8106-4328-a1f8-abe6172a05f6/69a5c1dd1beececaf9804cfe052e1362.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/025d7a48-8106-4328-a1f8-abe6172a05f6/8ac6b39b6a8de0b42102d1f6940db82c_1.jpg",title:"#Hashtag: Instagram comes to life in NYC beauty store"},{sources:[{src:"https://s3.amazonaws.com/egamitv-videos/videoelephant/96f86069-8db0-4bad-ade4-4738ac606f0b/098b60d15529b8784441f70d93ea2c13.mp4",type:"video/mp4"}],poster:"https://s3.amazonaws.com/egamitv-videos/videoelephant/96f86069-8db0-4bad-ade4-4738ac606f0b/b598fd21b0f7b81d12378c21723d65ff_1.jpg",title:"Miss Undertaker: World's most bizarre beauty title?"},{sources:[{src:"https://cdn-videos.akamaized.net/m/NzA1MTk5NQ/MjM2NjkzNg/Marchionne0307d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/idKnV8f7YxQ8/v5/640x-1.jpg",title:"Ferrari's Marchionne Hopes for U.S. Border Tax Exemption"}],a=[{sources:[{src:"https://cdn-videos.akamaized.net/m/NzA2MTk1MQ/MjM3MDE4OQ/bmKirkpatrick031717d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iLTNElrqdVZ0/v5/640x-1.jpg",title:"Apple Plans to Expand in China as iPhone Sales Slow"},{sources:[{src:"https://cdn-videos.akamaized.net/m/NzA2MTkwNA/MjM3MDE1NQ/intvkenny0317d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iij3ER5mSADc/v5/640x-1.jpg",title:"Irish PM Kenny on Trump Meeting, Brexit Talks and Trade"},{sources:[{src:"https://cdn-videos.akamaized.net/m/NzA1MTkzMA/MjM2NjkyMg/Zellmer0307d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iPeY2kz8.bKg/v5/640x-1.jpg",title:"Porsche Pushing Toward Electric and Driverless Cars"},{sources:[{src:"https://dh85o37ztyzo0.cloudfront.net/m/NzA2MDg0MA/MjM2OTgyNQ/intvreiss0316d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iZXr_PfeXgB8/v5/640x-1.jpg",title:"Canada Goose CEO Sees Opportunities in Europe and China"},{sources:[{src:"https://cdn-videos.akamaized.net/m/NzA2MDcyMg/MjM2OTc3NQ/barinka14550316d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iA6E_g6FtawU/v5/640x-1.jpg",title:"Canada Goose Shares Soar in Trading Debut"},{sources:[{src:"https://cdn-videos.akamaized.net/m/NzA1MTgxOQ/MjM2Njg0Mw/Fiotakisx0307d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/ii0swWho50RM/v5/640x-1.jpg",title:"UBS's Fiotakis Says Greek, IMF Incentives Have Changed"},{sources:[{src:"https://cdn-videos.akamaized.net/m/NzA1MTcxNA/MjM2Njc5OA/intvkirsten0306d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/i0JniPATs15A/v5/640x-1.jpg",title:"Vonovia's CFO Says Berlin Is Not a Cheap Market Anymore"},{sources:[{src:"https://cdn-videos.akamaized.net/m/NzA1MjEwNQ/MjM2Njk5OA/intvzetsche0307d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iRZ3gr1XgdLI/v5/640x-1.jpg",title:"Daimler CEO Dieter Zetsche Is Bullish on Global Sales"},{sources:[{src:"https://cdn-videos.akamaized.net/m/NzA1MTk5NQ/MjM2NjkzNg/Marchionne0307d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/idKnV8f7YxQ8/v5/640x-1.jpg",title:"Ferrari's Marchionne Hopes for U.S. Border Tax Exemption"},{sources:[{src:"https://cdn-videos.akamaized.net/m/NzA1NDE5MQ/MjM2NzY0NA/intvzeybekci0309d_1800.mp4",type:"video/mp4"}],poster:"https://assets.bwbx.io/images/users/iqjWHBFdfxIU/iP4r1U0k4o1s/v5/640x-1.jpg",title:"Turkey's Zeybekci Says Economy Must Grow at Least 5.5%"}],s=[{sources:[{src:"http://17909.cdx.c.ooyala.com/dwNmdoYTE61D6obD2E3SqRuchixJHj4R/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/dwNmdoYTE61D6obD2E3SqRuchixJHj4R/promo314626431",title:"Three-year-old 'actress' can cry on demand"},{sources:[{src:"http://17909.cdx.c.ooyala.com/VlYmdoYTE6gHpb2W6IZ0MKSSCPtFNG7N/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/VlYmdoYTE6gHpb2W6IZ0MKSSCPtFNG7N/promo314626998",title:"Lost student survives for five days alone in desert"},{sources:[{src:"http://17909.cdx.c.ooyala.com/VxN2doYTE6_T_c61xo7MleGDK6Wbh9_M/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/VxN2doYTE6_T_c61xo7MleGDK6Wbh9_M/promo314627996",title:"Transforming KYC compliance through process automation"},{sources:[{src:"http://17909.cdx.c.ooyala.com/JsMGVoYTE6Zyro4dbErrr7jE5n7XU8ak/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/JsMGVoYTE6Zyro4dbErrr7jE5n7XU8ak/promo314613444",title:"Father draws moustache and eyebrows on baby while mum is away"},{sources:[{src:"http://17909.cdx.c.ooyala.com/BrZWRoYTE6Io_soFShiukBn1ELK_1pAr/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/BrZWRoYTE6Io_soFShiukBn1ELK_1pAr/promo314611399",title:"Man Creates His Own Tiny World in Melbourne"},{sources:[{src:"http://17909.cdx.c.ooyala.com/JteGNoYTE6azt-zbmshw-Vg6iOhH6ilX/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/JteGNoYTE6azt-zbmshw-Vg6iOhH6ilX/promo314609716",title:"Boyfriend's Drone Records Romantic Proposal"},{sources:[{src:"http://17909.cdx.c.ooyala.com/l1ZDhoYTE6nEnaYIOEqYSo4KFbqc9Ds7/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/l1ZDhoYTE6nEnaYIOEqYSo4KFbqc9Ds7/promo314589151",title:"Dogs On Dates Video Compilation 2017"},{sources:[{src:"http://17909.cdx.c.ooyala.com/RnNzhoYTE6BiB6HZHAEx0E0G4fqIrddL/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/RnNzhoYTE6BiB6HZHAEx0E0G4fqIrddL/promo314588588",title:"Guy Juggles Golf Ball Before Making Hole in One"},{sources:[{src:"http://17909.cdx.c.ooyala.com/5nNzZoYTE6VfIaJ9BSgx2f3-iqhSVP7-/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/5nNzZoYTE6VfIaJ9BSgx2f3-iqhSVP7-/promo314581288",title:"Paralyzed Guy Performs Backflip on Motorbike"},{sources:[{src:"http://17909.cdx.c.ooyala.com/ZvNzJoYTE66kM65rNTbn4nFYfOQ9_0eu/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/ZvNzJoYTE66kM65rNTbn4nFYfOQ9_0eu/promo314569620",title:"Fitness Enthusiast Falls Off Box"},{sources:[{src:"http://17909.cdx.c.ooyala.com/htNzJoYTE62Td7VRYkHGbHT_eiPaRhQy/DOcJ-FxaFrRg4gtDEwOjM3MjowODE7YH",type:"video/mp4"}],poster:"http://17909.cdx.c.ooyala.com/htNzJoYTE62Td7VRYkHGbHT_eiPaRhQy/promo314569613",title:"Guy Catches Fish With Bare Hands"}]},function(t,e,n){"use strict";function r(t){return t.replace(o,function(t,e){return e.toUpperCase()})}var o=/-(.)/g;t.exports=r},function(t,e,n){"use strict";function r(t){return o(t.replace(i,"ms-"))}var o=n(129),i=/^-ms-/;t.exports=r},function(t,e,n){"use strict";function r(t,e){return!(!t||!e)&&(t===e||!o(t)&&(o(e)?r(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var o=n(139);t.exports=r},function(t,e,n){"use strict";function r(t){var e=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&a(!1),"number"!=typeof e&&a(!1),0===e||e-1 in t||a(!1),"function"==typeof t.callee&&a(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var n=Array(e),r=0;r":"<"+t+">",s[t]=!a.firstChild),s[t]?d[t]:null}var o=n(12),i=n(1),a=o.canUseDOM?document.createElement("div"):null,s={},u=[1,'"],l=[1,"","
"],c=[3,"","
"],p=[1,'',""],d={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:u,option:u,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(t){d[t]=p,s[t]=!0}),t.exports=r},function(t,e,n){"use strict";function r(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}t.exports=r},function(t,e,n){"use strict";function r(t){return t.replace(o,"-$1").toLowerCase()}var o=/([A-Z])/g;t.exports=r},function(t,e,n){"use strict";function r(t){return o(t).replace(i,"-ms-")}var o=n(136),i=/^ms-/;t.exports=r},function(t,e,n){"use strict";function r(t){var e=t?t.ownerDocument||t:document,n=e.defaultView||window;return!(!t||!("function"==typeof n.Node?t instanceof n.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}t.exports=r},function(t,e,n){"use strict";function r(t){return o(t)&&3==t.nodeType}var o=n(138);t.exports=r},function(t,e,n){"use strict";function r(t){var e={};return function(n){return e.hasOwnProperty(n)||(e[n]=t.call(this,n)),e[n]}}t.exports=r},function(t,e,n){function r(t,e,n){if(!s(e))throw new TypeError("iterator must be a function");arguments.length<3&&(n=this),"[object Array]"===u.call(t)?o(t,e,n):"string"==typeof t?i(t,e,n):a(t,e,n)}function o(t,e,n){for(var r=0,o=t.length;r8&&b<=11),E=32,C=String.fromCharCode(E),k={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},S=!1,A=null,x={eventTypes:k,extractEvents:function(t,e,n,r){return[u(t,e,n,r),p(t,e,n,r)]}};t.exports=x},function(t,e,n){"use strict";var r=n(81),o=n(12),i=(n(15),n(130),n(197)),a=n(137),s=n(140),u=(n(2),s(function(t){return a(t)})),l=!1,c="cssFloat";if(o.canUseDOM){var p=document.createElement("div").style;try{p.font=""}catch(t){l=!0}void 0===document.documentElement.style.cssFloat&&(c="styleFloat")}var d={createMarkupForStyles:function(t,e){var n="";for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];null!=o&&(n+=u(r)+":",n+=i(r,o,e)+";")}return n||null},setValueForStyles:function(t,e,n){var o=t.style;for(var a in e)if(e.hasOwnProperty(a)){var s=i(a,e[a],n);if("float"!==a&&"cssFloat"!==a||(a=c),s)o[a]=s;else{var u=l&&r.shorthandPropertyExpansions[a];if(u)for(var p in u)o[p]="";else o[a]=""}}}};t.exports=d},function(t,e,n){"use strict";function r(t){var e=t.nodeName&&t.nodeName.toLowerCase();return"select"===e||"input"===e&&"file"===t.type}function o(t){var e=E.getPooled(A.change,O,t,C(t));_.accumulateTwoPhaseDispatches(e),T.batchedUpdates(i,e)}function i(t){g.enqueueEvents(t),g.processEventQueue(!1)}function a(t,e){x=t,O=e,x.attachEvent("onchange",o)}function s(){x&&(x.detachEvent("onchange",o),x=null,O=null)}function u(t,e){if("topChange"===t)return e}function l(t,e,n){"topFocus"===t?(s(),a(e,n)):"topBlur"===t&&s()}function c(t,e){x=t,O=e,P=t.value,j=Object.getOwnPropertyDescriptor(t.constructor.prototype,"value"),Object.defineProperty(x,"value",N),x.attachEvent?x.attachEvent("onpropertychange",d):x.addEventListener("propertychange",d,!1)}function p(){x&&(delete x.value,x.detachEvent?x.detachEvent("onpropertychange",d):x.removeEventListener("propertychange",d,!1),x=null,O=null,P=null,j=null)}function d(t){if("value"===t.propertyName){var e=t.srcElement.value;e!==P&&(P=e,o(t))}}function f(t,e){if("topInput"===t)return e}function h(t,e,n){"topFocus"===t?(p(),c(e,n)):"topBlur"===t&&p()}function v(t,e){if(("topSelectionChange"===t||"topKeyUp"===t||"topKeyDown"===t)&&x&&x.value!==P)return P=x.value,O}function y(t){return t.nodeName&&"input"===t.nodeName.toLowerCase()&&("checkbox"===t.type||"radio"===t.type)}function m(t,e){if("topClick"===t)return e}var g=n(32),_=n(33),b=n(12),w=n(9),T=n(16),E=n(17),C=n(63),k=n(64),S=n(98),A={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},x=null,O=null,P=null,j=null,M=!1;b.canUseDOM&&(M=k("change")&&(!document.documentMode||document.documentMode>8));var I=!1;b.canUseDOM&&(I=k("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return j.get.call(this)},set:function(t){P=""+t,j.set.call(this,t)}},R={eventTypes:A,extractEvents:function(t,e,n,o){var i,a,s=e?w.getNodeFromInstance(e):window;if(r(s)?M?i=u:a=l:S(s)?I?i=f:(i=v,a=h):y(s)&&(i=m),i){var c=i(t,e);if(c){var p=E.getPooled(A.change,c,n,o);return p.type="change",_.accumulateTwoPhaseDispatches(p),p}}a&&a(t,s,e)}};t.exports=R},function(t,e,n){"use strict";var r=n(3),o=n(23),i=n(12),a=n(133),s=n(14),u=(n(1),{dangerouslyReplaceNodeWithMarkup:function(t,e){if(i.canUseDOM||r("56"),e||r("57"),"HTML"===t.nodeName&&r("58"),"string"==typeof e){var n=a(e,s)[0];t.parentNode.replaceChild(n,t)}else o.replaceChildWithTree(t,e)}});t.exports=u},function(t,e,n){"use strict";var r=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];t.exports=r},function(t,e,n){"use strict";var r=n(33),o=n(9),i=n(42),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},s={eventTypes:a,extractEvents:function(t,e,n,s){if("topMouseOver"===t&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==t&&"topMouseOver"!==t)return null;var u;if(s.window===s)u=s;else{var l=s.ownerDocument;u=l?l.defaultView||l.parentWindow:window}var c,p;if("topMouseOut"===t){c=e;var d=n.relatedTarget||n.toElement;p=d?o.getClosestInstanceFromNode(d):null}else c=null,p=e;if(c===p)return null;var f=null==c?u:o.getNodeFromInstance(c),h=null==p?u:o.getNodeFromInstance(p),v=i.getPooled(a.mouseLeave,c,n,s);v.type="mouseleave",v.target=f,v.relatedTarget=h;var y=i.getPooled(a.mouseEnter,p,n,s);return y.type="mouseenter",y.target=h,y.relatedTarget=f,r.accumulateEnterLeaveDispatches(v,y,c,p),[v,y]}};t.exports=s},function(t,e,n){"use strict";function r(t){this._root=t,this._startText=this.getText(),this._fallbackText=null}var o=n(6),i=n(22),a=n(96);o(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var t,e,n=this._startText,r=n.length,o=this.getText(),i=o.length;for(t=0;t1?1-e:void 0;return this._fallbackText=o.slice(t,s),this._fallbackText}}),i.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";var r=n(24),o=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,a=r.injection.HAS_NUMERIC_VALUE,s=r.injection.HAS_POSITIVE_NUMERIC_VALUE,u=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,l={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:o|i,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:u,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:o|i,muted:o|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:s,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:o|i,shape:0,size:s,sizes:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};t.exports=l},function(t,e,n){"use strict";(function(e){function r(t,e,n,r){var o=void 0===t[n];null!=e&&o&&(t[n]=i(e,!0))}var o=n(25),i=n(97),a=(n(55),n(65)),s=n(100);n(2);void 0!==e&&e.env;var u={instantiateChildren:function(t,e,n,o){if(null==t)return null;var i={};return s(t,r,i),i},updateChildren:function(t,e,n,r,s,u,l,c,p){if(e||t){var d,f;for(d in e)if(e.hasOwnProperty(d)){f=t&&t[d];var h=f&&f._currentElement,v=e[d];if(null!=f&&a(h,v))o.receiveComponent(f,v,s,c),e[d]=f;else{f&&(r[d]=o.getHostNode(f),o.unmountComponent(f,!1));var y=i(v,!0);e[d]=y;var m=o.mountComponent(y,s,u,l,c,p);n.push(m)}}for(d in t)!t.hasOwnProperty(d)||e&&e.hasOwnProperty(d)||(f=t[d],r[d]=o.getHostNode(f),o.unmountComponent(f,!1))}},unmountChildren:function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];o.unmountComponent(r,e)}}};t.exports=u}).call(e,n(80))},function(t,e,n){"use strict";var r=n(51),o=n(161),i={processChildrenUpdates:o.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};t.exports=i},function(t,e,n){"use strict";function r(t){}function o(t){return!(!t.prototype||!t.prototype.isReactComponent)}function i(t){return!(!t.prototype||!t.prototype.isPureReactComponent)}var a=n(3),s=n(6),u=n(26),l=n(57),c=n(18),p=n(58),d=n(34),f=(n(15),n(91)),h=n(25),v=n(31),y=(n(1),n(50)),m=n(65),g=(n(2),{ImpureClass:0,PureClass:1,StatelessFunctional:2});r.prototype.render=function(){var t=d.get(this)._currentElement.type,e=t(this.props,this.context,this.updater);return e};var _=1,b={construct:function(t){this._currentElement=t,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(t,e,n,s){this._context=s,this._mountOrder=_++,this._hostParent=e,this._hostContainerInfo=n;var l,c=this._currentElement.props,p=this._processContext(s),f=this._currentElement.type,h=t.getUpdateQueue(),y=o(f),m=this._constructComponent(y,c,p,h);y||null!=m&&null!=m.render?i(f)?this._compositeType=g.PureClass:this._compositeType=g.ImpureClass:(l=m,null===m||!1===m||u.isValidElement(m)||a("105",f.displayName||f.name||"Component"),m=new r(f),this._compositeType=g.StatelessFunctional);m.props=c,m.context=p,m.refs=v,m.updater=h,this._instance=m,d.set(m,this);var b=m.state;void 0===b&&(m.state=b=null),("object"!=typeof b||Array.isArray(b))&&a("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var w;return w=m.unstable_handleError?this.performInitialMountWithErrorHandling(l,e,n,t,s):this.performInitialMount(l,e,n,t,s),m.componentDidMount&&t.getReactMountReady().enqueue(m.componentDidMount,m),w},_constructComponent:function(t,e,n,r){return this._constructComponentWithoutOwner(t,e,n,r)},_constructComponentWithoutOwner:function(t,e,n,r){var o=this._currentElement.type;return t?new o(e,n,r):o(e,n,r)},performInitialMountWithErrorHandling:function(t,e,n,r,o){var i,a=r.checkpoint();try{i=this.performInitialMount(t,e,n,r,o)}catch(s){r.rollback(a),this._instance.unstable_handleError(s),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=r.checkpoint(),this._renderedComponent.unmountComponent(!0),r.rollback(a),i=this.performInitialMount(t,e,n,r,o)}return i},performInitialMount:function(t,e,n,r,o){var i=this._instance,a=0;i.componentWillMount&&(i.componentWillMount(),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===t&&(t=this._renderValidatedComponent());var s=f.getType(t);this._renderedNodeType=s;var u=this._instantiateReactComponent(t,s!==f.EMPTY);this._renderedComponent=u;var l=h.mountComponent(u,r,e,n,this._processChildContext(o),a);return l},getHostNode:function(){return h.getHostNode(this._renderedComponent)},unmountComponent:function(t){if(this._renderedComponent){var e=this._instance;if(e.componentWillUnmount&&!e._calledComponentWillUnmount)if(e._calledComponentWillUnmount=!0,t){var n=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(n,e.componentWillUnmount.bind(e))}else e.componentWillUnmount();this._renderedComponent&&(h.unmountComponent(this._renderedComponent,t),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,d.remove(e)}},_maskContext:function(t){var e=this._currentElement.type,n=e.contextTypes;if(!n)return v;var r={};for(var o in n)r[o]=t[o];return r},_processContext:function(t){var e=this._maskContext(t);return e},_processChildContext:function(t){var e,n=this._currentElement.type,r=this._instance;if(r.getChildContext&&(e=r.getChildContext()),e){"object"!=typeof n.childContextTypes&&a("107",this.getName()||"ReactCompositeComponent");for(var o in e)o in n.childContextTypes||a("108",this.getName()||"ReactCompositeComponent",o);return s({},t,e)}return t},_checkContextTypes:function(t,e,n){},receiveComponent:function(t,e,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(e,r,t,o,n)},performUpdateIfNecessary:function(t){null!=this._pendingElement?h.receiveComponent(this,this._pendingElement,t,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(t,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(t,e,n,r,o){var i=this._instance;null==i&&a("136",this.getName()||"ReactCompositeComponent");var s,u=!1;this._context===o?s=i.context:(s=this._processContext(o),u=!0);var l=e.props,c=n.props;e!==n&&(u=!0),u&&i.componentWillReceiveProps&&i.componentWillReceiveProps(c,s);var p=this._processPendingState(c,s),d=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?d=i.shouldComponentUpdate(c,p,s):this._compositeType===g.PureClass&&(d=!y(l,c)||!y(i.state,p))),this._updateBatchNumber=null,d?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,c,p,s,t,o)):(this._currentElement=n,this._context=o,i.props=c,i.state=p,i.context=s)},_processPendingState:function(t,e){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(o&&1===r.length)return r[0];for(var i=s({},o?r[0]:n.state),a=o?1:0;a=0||null!=e.is}function h(t){var e=t.type;d(e),this._currentElement=t,this._tag=e.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var v=n(3),y=n(6),m=n(144),g=n(146),_=n(23),b=n(52),w=n(24),T=n(83),E=n(32),C=n(53),k=n(41),S=n(84),A=n(9),x=n(162),O=n(163),P=n(85),j=n(166),M=(n(15),n(175)),I=n(180),N=(n(14),n(44)),R=(n(1),n(64),n(50),n(66),n(2),S),D=E.deleteListener,L=A.getNodeFromInstance,F=k.listenTo,V=C.registrationNameModules,U={string:!0,number:!0},B="__html",H={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},W=11,z={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},q={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Y={listing:!0,pre:!0,textarea:!0},X=y({menuitem:!0},q),K=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,G={},$={}.hasOwnProperty,J=1;h.displayName="ReactDOMComponent",h.Mixin={mountComponent:function(t,e,n,r){this._rootNodeID=J++,this._domID=n._idCounter++,this._hostParent=e,this._hostContainerInfo=n;var i=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(c,this);break;case"input":x.mountWrapper(this,i,e),i=x.getHostProps(this,i),t.getReactMountReady().enqueue(c,this);break;case"option":O.mountWrapper(this,i,e),i=O.getHostProps(this,i);break;case"select":P.mountWrapper(this,i,e),i=P.getHostProps(this,i),t.getReactMountReady().enqueue(c,this);break;case"textarea":j.mountWrapper(this,i,e),i=j.getHostProps(this,i),t.getReactMountReady().enqueue(c,this)}o(this,i);var a,p;null!=e?(a=e._namespaceURI,p=e._tag):n._tag&&(a=n._namespaceURI,p=n._tag),(null==a||a===b.svg&&"foreignobject"===p)&&(a=b.html),a===b.html&&("svg"===this._tag?a=b.svg:"math"===this._tag&&(a=b.mathml)),this._namespaceURI=a;var d;if(t.useCreateElement){var f,h=n._ownerDocument;if(a===b.html)if("script"===this._tag){var v=h.createElement("div"),y=this._currentElement.type;v.innerHTML="<"+y+">",f=v.removeChild(v.firstChild)}else f=i.is?h.createElement(this._currentElement.type,i.is):h.createElement(this._currentElement.type);else f=h.createElementNS(a,this._currentElement.type);A.precacheNode(this,f),this._flags|=R.hasCachedChildNodes,this._hostParent||T.setAttributeForRoot(f),this._updateDOMProperties(null,i,t);var g=_(f);this._createInitialChildren(t,i,r,g),d=g}else{var w=this._createOpenTagMarkupAndPutListeners(t,i),E=this._createContentMarkup(t,i,r);d=!E&&q[this._tag]?w+"/>":w+">"+E+""}switch(this._tag){case"input":t.getReactMountReady().enqueue(s,this),i.autoFocus&&t.getReactMountReady().enqueue(m.focusDOMComponent,this);break;case"textarea":t.getReactMountReady().enqueue(u,this),i.autoFocus&&t.getReactMountReady().enqueue(m.focusDOMComponent,this);break;case"select":case"button":i.autoFocus&&t.getReactMountReady().enqueue(m.focusDOMComponent,this);break;case"option":t.getReactMountReady().enqueue(l,this)}return d},_createOpenTagMarkupAndPutListeners:function(t,e){var n="<"+this._currentElement.type;for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];if(null!=o)if(V.hasOwnProperty(r))o&&i(this,r,o,t);else{"style"===r&&(o&&(o=this._previousStyleCopy=y({},e.style)),o=g.createMarkupForStyles(o,this));var a=null;null!=this._tag&&f(this._tag,e)?H.hasOwnProperty(r)||(a=T.createMarkupForCustomAttribute(r,o)):a=T.createMarkupForProperty(r,o),a&&(n+=" "+a)}}return t.renderToStaticMarkup?n:(this._hostParent||(n+=" "+T.createMarkupForRoot()),n+=" "+T.createMarkupForID(this._domID))},_createContentMarkup:function(t,e,n){var r="",o=e.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=U[typeof e.children]?e.children:null,a=null!=i?null:e.children;if(null!=i)r=N(i);else if(null!=a){var s=this.mountChildren(a,t,n);r=s.join("")}}return Y[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(t,e,n,r){var o=e.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&_.queueHTML(r,o.__html);else{var i=U[typeof e.children]?e.children:null,a=null!=i?null:e.children;if(null!=i)""!==i&&_.queueText(r,i);else if(null!=a)for(var s=this.mountChildren(a,t,n),u=0;u"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),t.exports=a},function(t,e,n){"use strict";var r={useCreateElement:!0,useFiber:!1};t.exports=r},function(t,e,n){"use strict";var r=n(51),o=n(9),i={dangerouslyProcessChildrenUpdates:function(t,e){var n=o.getNodeFromInstance(t);r.processUpdates(n,e)}};t.exports=i},function(t,e,n){"use strict";function r(){this._rootNodeID&&p.updateWrapper(this)}function o(t){var e=this._currentElement.props,n=u.executeOnChange(e,t);c.asap(r,this);var o=e.name;if("radio"===e.type&&null!=o){for(var a=l.getNodeFromInstance(this),s=a;s.parentNode;)s=s.parentNode;for(var p=s.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),d=0;de.end?(n=e.end,r=e.start):(n=e.start,r=e.end),o.moveToElementText(t),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function s(t,e){if(window.getSelection){var n=window.getSelection(),r=t[c()].length,o=Math.min(e.start,r),i=void 0===e.end?o:Math.min(e.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var s=l(t,o),u=l(t,i);if(s&&u){var p=document.createRange();p.setStart(s.node,s.offset),n.removeAllRanges(),o>i?(n.addRange(p),n.extend(u.node,u.offset)):(p.setEnd(u.node,u.offset),n.addRange(p))}}}var u=n(12),l=n(203),c=n(96),p=u.canUseDOM&&"selection"in document&&!("getSelection"in window),d={getOffsets:p?o:i,setOffsets:p?a:s};t.exports=d},function(t,e,n){"use strict";var r=n(3),o=n(6),i=n(51),a=n(23),s=n(9),u=n(44),l=(n(1),n(66),function(t){this._currentElement=t,this._stringText=""+t,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(l.prototype,{mountComponent:function(t,e,n,r){var o=n._idCounter++,i=" react-text: "+o+" ";if(this._domID=o,this._hostParent=e,t.useCreateElement){var l=n._ownerDocument,c=l.createComment(i),p=l.createComment(" /react-text "),d=a(l.createDocumentFragment());return a.queueChild(d,a(c)),this._stringText&&a.queueChild(d,a(l.createTextNode(this._stringText))),a.queueChild(d,a(p)),s.precacheNode(this,c),this._closingComment=p,d}var f=u(this._stringText);return t.renderToStaticMarkup?f:""+f+""},receiveComponent:function(t,e){if(t!==this._currentElement){this._currentElement=t;var n=""+t;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();i.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var t=this._commentNodes;if(t)return t;if(!this._closingComment)for(var e=s.getNodeFromInstance(this),n=e.nextSibling;;){if(null==n&&r("67",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return t=[this._hostNode,this._closingComment],this._commentNodes=t,t},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),t.exports=l},function(t,e,n){"use strict";function r(){this._rootNodeID&&c.updateWrapper(this)}function o(t){var e=this._currentElement.props,n=s.executeOnChange(e,t);return l.asap(r,this),n}var i=n(3),a=n(6),s=n(56),u=n(9),l=n(16),c=(n(1),n(2),{getHostProps:function(t,e){return null!=e.dangerouslySetInnerHTML&&i("91"),a({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue,onChange:t._wrapperState.onChange})},mountWrapper:function(t,e){var n=s.getValue(e),r=n;if(null==n){var a=e.defaultValue,u=e.children;null!=u&&(null!=a&&i("92"),Array.isArray(u)&&(u.length<=1||i("93"),u=u[0]),a=""+u),null==a&&(a=""),r=a}t._wrapperState={initialValue:""+r,listeners:null,onChange:o.bind(t)}},updateWrapper:function(t){var e=t._currentElement.props,n=u.getNodeFromInstance(t),r=s.getValue(e);if(null!=r){var o=""+r;o!==n.value&&(n.value=o),null==e.defaultValue&&(n.defaultValue=o)}null!=e.defaultValue&&(n.defaultValue=e.defaultValue)},postMountWrapper:function(t){var e=u.getNodeFromInstance(t),n=e.textContent;n===t._wrapperState.initialValue&&(e.value=n)}});t.exports=c},function(t,e,n){"use strict";function r(t,e){"_hostNode"in t||u("33"),"_hostNode"in e||u("33");for(var n=0,r=t;r;r=r._hostParent)n++;for(var o=0,i=e;i;i=i._hostParent)o++;for(;n-o>0;)t=t._hostParent,n--;for(;o-n>0;)e=e._hostParent,o--;for(var a=n;a--;){if(t===e)return t;t=t._hostParent,e=e._hostParent}return null}function o(t,e){"_hostNode"in t||u("35"),"_hostNode"in e||u("35");for(;e;){if(e===t)return!0;e=e._hostParent}return!1}function i(t){return"_hostNode"in t||u("36"),t._hostParent}function a(t,e,n){for(var r=[];t;)r.push(t),t=t._hostParent;var o;for(o=r.length;o-- >0;)e(r[o],"captured",n);for(o=0;o0;)n(u[l],"captured",i)}var u=n(3);n(1);t.exports={isAncestor:o,getLowestCommonAncestor:r,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:s}},function(t,e,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(6),i=n(16),a=n(43),s=n(14),u={initialize:s,close:function(){d.isBatchingUpdates=!1}},l={initialize:s,close:i.flushBatchedUpdates.bind(i)},c=[l,u];o(r.prototype,a,{getTransactionWrappers:function(){return c}});var p=new r,d={isBatchingUpdates:!1,batchedUpdates:function(t,e,n,r,o,i){var a=d.isBatchingUpdates;return d.isBatchingUpdates=!0,a?t(e,n,r,o,i):p.perform(t,null,e,n,r,o,i)}};t.exports=d},function(t,e,n){"use strict";function r(){E||(E=!0,g.EventEmitter.injectReactEventListener(m),g.EventPluginHub.injectEventPluginOrder(s),g.EventPluginUtils.injectComponentTree(d),g.EventPluginUtils.injectTreeTraversal(h),g.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:T,EnterLeaveEventPlugin:u,ChangeEventPlugin:a,SelectEventPlugin:w,BeforeInputEventPlugin:i}),g.HostComponent.injectGenericComponentClass(p),g.HostComponent.injectTextComponentClass(v),g.DOMProperty.injectDOMPropertyConfig(o),g.DOMProperty.injectDOMPropertyConfig(l),g.DOMProperty.injectDOMPropertyConfig(b),g.EmptyComponent.injectEmptyComponentFactory(function(t){return new f(t)}),g.Updates.injectReconcileTransaction(_),g.Updates.injectBatchingStrategy(y),g.Component.injectEnvironment(c))}var o=n(143),i=n(145),a=n(147),s=n(149),u=n(150),l=n(152),c=n(154),p=n(157),d=n(9),f=n(159),h=n(167),v=n(165),y=n(168),m=n(172),g=n(173),_=n(178),b=n(183),w=n(184),T=n(185),E=!1;t.exports={inject:r}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=r},function(t,e,n){"use strict";function r(t){o.enqueueEvents(t),o.processEventQueue(!1)}var o=n(32),i={handleTopLevel:function(t,e,n,i){r(o.extractEvents(t,e,n,i))}};t.exports=i},function(t,e,n){"use strict";function r(t){for(;t._hostParent;)t=t._hostParent;var e=p.getNodeFromInstance(t),n=e.parentNode;return p.getClosestInstanceFromNode(n)}function o(t,e){this.topLevelType=t,this.nativeEvent=e,this.ancestors=[]}function i(t){var e=f(t.nativeEvent),n=p.getClosestInstanceFromNode(e),o=n;do{t.ancestors.push(o),o=o&&r(o)}while(o);for(var i=0;i/," "+i.CHECKSUM_ATTR_NAME+'="'+e+'"$&')},canReuseMarkup:function(t,e){var n=e.getAttribute(i.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),r(t)===n}};t.exports=i},function(t,e,n){"use strict";function r(t,e,n){return{type:"INSERT_MARKUP",content:t,fromIndex:null,fromNode:null,toIndex:n,afterNode:e}}function o(t,e,n){return{type:"MOVE_EXISTING",content:null,fromIndex:t._mountIndex,fromNode:d.getHostNode(t),toIndex:n,afterNode:e}}function i(t,e){return{type:"REMOVE_NODE",content:null,fromIndex:t._mountIndex,fromNode:e,toIndex:null,afterNode:null}}function a(t){return{type:"SET_MARKUP",content:t,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(t){return{type:"TEXT_CONTENT",content:t,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function u(t,e){return e&&(t=t||[],t.push(e)),t}function l(t,e){p.processChildrenUpdates(t,e)}var c=n(3),p=n(57),d=(n(34),n(15),n(18),n(25)),f=n(153),h=(n(14),n(199)),v=(n(1),{Mixin:{_reconcilerInstantiateChildren:function(t,e,n){return f.instantiateChildren(t,e,n)},_reconcilerUpdateChildren:function(t,e,n,r,o,i){var a,s=0;return a=h(e,s),f.updateChildren(t,a,n,r,o,this,this._hostContainerInfo,i,s),a},mountChildren:function(t,e,n){var r=this._reconcilerInstantiateChildren(t,e,n);this._renderedChildren=r;var o=[],i=0;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],u=0,l=d.mountComponent(s,e,this,this._hostContainerInfo,n,u);s._mountIndex=i++,o.push(l)}return o},updateTextContent:function(t){var e=this._renderedChildren;f.unmountChildren(e,!1);for(var n in e)e.hasOwnProperty(n)&&c("118");l(this,[s(t)])},updateMarkup:function(t){var e=this._renderedChildren;f.unmountChildren(e,!1);for(var n in e)e.hasOwnProperty(n)&&c("118");l(this,[a(t)])},updateChildren:function(t,e,n){this._updateChildren(t,e,n)},_updateChildren:function(t,e,n){var r=this._renderedChildren,o={},i=[],a=this._reconcilerUpdateChildren(r,t,i,o,e,n);if(a||r){var s,c=null,p=0,f=0,h=0,v=null;for(s in a)if(a.hasOwnProperty(s)){var y=r&&r[s],m=a[s];y===m?(c=u(c,this.moveChild(y,v,p,f)),f=Math.max(y._mountIndex,f),y._mountIndex=p):(y&&(f=Math.max(y._mountIndex,f)),c=u(c,this._mountChildAtIndex(m,i[h],v,p,e,n)),h++),p++,v=d.getHostNode(m)}for(s in o)o.hasOwnProperty(s)&&(c=u(c,this._unmountChild(r[s],o[s])));c&&l(this,c),this._renderedChildren=a}},unmountChildren:function(t){var e=this._renderedChildren;f.unmountChildren(e,t),this._renderedChildren=null},moveChild:function(t,e,n,r){if(t._mountIndex=e)return{node:n,offset:e-i};i=a}n=r(o(n))}}t.exports=i},function(t,e,n){"use strict";function r(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n["ms"+t]="MS"+e,n["O"+t]="o"+e.toLowerCase(),n}function o(t){if(s[t])return s[t];if(!a[t])return t;var e=a[t];for(var n in e)if(e.hasOwnProperty(n)&&n in u)return s[t]=e[n];return""}var i=n(12),a={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},s={},u={};i.canUseDOM&&(u=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),t.exports=o},function(t,e,n){"use strict";function r(t){return'"'+o(t)+'"'}var o=n(44);t.exports=r},function(t,e,n){"use strict";var r=n(90);t.exports=r.renderSubtreeIntoContainer},function(t,e,n){"use strict";function r(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,function(t){return e[t]})}function o(t){var e={"=0":"=","=2":":"};return(""+("."===t[0]&&"$"===t[1]?t.substring(2):t.substring(1))).replace(/(=0|=2)/g,function(t){return e[t]})}var i={escape:r,unescape:o};t.exports=i},function(t,e,n){"use strict";var r=n(28),o=(n(1),function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)}),i=function(t,e){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,t,e),r}return new n(t,e)},a=function(t,e,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,t,e,n),o}return new r(t,e,n)},s=function(t,e,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,t,e,n,r),i}return new o(t,e,n,r)},u=function(t){var e=this;t instanceof e||r("25"),t.destructor(),e.instancePool.length>"),C={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:function(){return i(w.thatReturns(null))}(),arrayOf:s,element:function(){function t(t,e,n,r,i){var a=t[e];if(!g.isValidElement(a)){return new o("Invalid "+_[r]+" `"+i+"` of type `"+v(a)+"` supplied to `"+n+"`, expected a single ReactElement.")}return null}return i(t)}(),instanceOf:u,node:function(){function t(t,e,n,r,i){if(!f(t[e])){return new o("Invalid "+_[r]+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")}return null}return i(t)}(),objectOf:c,oneOf:l,oneOfType:p,shape:d};o.prototype=Error.prototype,t.exports=C},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";function r(t,e,n){this.props=t,this.context=e,this.refs=u,this.updater=n||s}function o(){}var i=n(6),a=n(67),s=n(68),u=n(31);o.prototype=a.prototype,r.prototype=new o,r.prototype.constructor=r,i(r.prototype,a.prototype),r.prototype.isPureReactComponent=!0,t.exports=r},function(t,e,n){"use strict";t.exports="15.4.2"},function(t,e,n){"use strict";function r(t){return i.isValidElement(t)||o("143"),t}var o=n(28),i=n(27);n(1);t.exports=r},function(t,e,n){"use strict";function r(t,e){return t&&"object"==typeof t&&null!=t.key?l.escape(t.key):e.toString(36)}function o(t,e,n,i){var d=typeof t;if("undefined"!==d&&"boolean"!==d||(t=null),null===t||"string"===d||"number"===d||"object"===d&&t.$$typeof===s)return n(i,t,""===e?c+r(t,0):e),1;var f,h,v=0,y=""===e?c:e+p;if(Array.isArray(t))for(var m=0;m1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),r.tracks=n.audioTracks&&n.audioTracks();var a=i(this,t.call(this,n,r));return a.el_.setAttribute("aria-label","Audio Menu"),a}return a(e,t),e.prototype.buildCSSClass=function(){return"vjs-audio-button "+t.prototype.buildCSSClass.call(this)},e.prototype.createItems=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.hideThreshold_=1;var e=this.player_.audioTracks&&this.player_.audioTracks();if(!e)return t;for(var n=0;n'+this.localize("Stream Type")+""+this.localize("LIVE")},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateShowing=function(t){this.player().duration()===1/0?this.show():this.hide()},e}(s.default);s.default.registerComponent("LiveDisplay",c),e.default=c},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s=n(36),u=r(s),l=n(0),c=r(l),p=function(t){function e(n,r){o(this,e);var a=i(this,t.call(this,n,r));return a.on(n,"play",a.handlePlay),a.on(n,"pause",a.handlePause),a}return a(e,t),e.prototype.buildCSSClass=function(){return"vjs-play-control "+t.prototype.buildCSSClass.call(this)},e.prototype.handleClick=function(t){this.player_.paused()?this.player_.play():this.player_.pause()},e.prototype.handlePlay=function(t){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},e.prototype.handlePause=function(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},e}(u.default);p.prototype.controlText_="Play",c.default.registerComponent("PlayToggle",p),e.default=p},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s=n(111),u=r(s),l=n(112),c=r(l),p=n(230),d=r(p),f=n(0),h=r(f),v=n(5),y=function(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}(v),m=function(t){function e(n,r){o(this,e);var a=i(this,t.call(this,n,r));return a.updateVisibility(),a.updateLabel(),a.on(n,"loadstart",a.updateVisibility),a.on(n,"ratechange",a.updateLabel),a}return a(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this);return this.labelEl_=y.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),e.appendChild(this.labelEl_),e},e.prototype.buildCSSClass=function(){return"vjs-playback-rate "+t.prototype.buildCSSClass.call(this)},e.prototype.createMenu=function(){var t=new c.default(this.player()),e=this.playbackRates();if(e)for(var n=e.length-1;n>=0;n--)t.addChild(new d.default(this.player(),{rate:e[n]+"x"}));return t},e.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},e.prototype.handleClick=function(t){for(var e=this.player().playbackRate(),n=this.playbackRates(),r=n[0],o=0;oe){r=n[o];break}this.player().playbackRate(r)},e.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},e.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},e.prototype.updateVisibility=function(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},e.prototype.updateLabel=function(t){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},e}(u.default);m.prototype.controlText_="Playback Rate",h.default.registerComponent("PlaybackRateMenuButton",m),e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s=n(48),u=r(s),l=n(0),c=r(l),p=function(t){function e(n,r){o(this,e);var a=r.rate,s=parseFloat(a,10);r.label=a,r.selected=1===s,r.selectable=!0;var u=i(this,t.call(this,n,r));return u.label=a,u.rate=s,u.on(n,"ratechange",u.update),u}return a(e,t),e.prototype.handleClick=function(e){t.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},e.prototype.update=function(t){this.selected(this.player().playbackRate()===this.rate)},e}(u.default);p.prototype.contentElType="button",c.default.registerComponent("PlaybackRateMenuItem",p),e.default=p},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(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.__esModule=!0;var a=n(0),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=n(5),l=function(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}(u),c=function(t){function e(n,i){r(this,e);var a=o(this,t.call(this,n,i));return a.partEls_=[],a.on(n,"progress",a.update),a}return i(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:''+this.localize("Loaded")+": 0%"})},e.prototype.update=function(t){var e=this.player_.buffered(),n=this.player_.duration(),r=this.player_.bufferedEnd(),o=this.partEls_,i=function(t,e){var n=t/e||0;return 100*(n>=1?1:n)+"%"};this.el_.style.width=i(r,n);for(var a=0;ae.length;p--)this.el_.removeChild(o[p-1]);o.length=e.length},e}(s.default);s.default.registerComponent("LoadProgressBar",c),e.default=c},function(t,e,n){"use strict";function r(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 o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(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.__esModule=!0;var u=n(0),l=o(u),c=n(5),p=r(c),d=n(4),f=r(d),h=n(21),v=o(h),y=n(74),m=o(y),g=function(t){function e(n,r){i(this,e);var o=a(this,t.call(this,n,r));return r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(o.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside),o.keepTooltipsInside&&(o.tooltip=p.createEl("div",{className:"vjs-time-tooltip"}),o.el().appendChild(o.tooltip),o.addClass("vjs-keep-tooltips-inside")),o.update(0,0),n.on("ready",function(){o.on(n.controlBar.progressControl.el(),"mousemove",f.throttle(f.bind(o,o.handleMouseMove),25))}),o}return s(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},e.prototype.handleMouseMove=function(t){var e=this.player_.duration(),n=this.calculateDistance(t)*e,r=t.pageX-p.findElPosition(this.el().parentNode).left;this.update(n,r)},e.prototype.update=function(t,e){var n=(0,v.default)(t,this.player_.duration());if(this.el().style.left=e+"px",this.el().setAttribute("data-current-time",n),this.keepTooltipsInside){var r=this.clampPosition_(e),o=e-r+1,i=parseFloat((0,m.default)(this.tooltip,"width")),a=i/2;this.tooltip.innerHTML=n,this.tooltip.style.right="-"+(a-o)+"px"}},e.prototype.calculateDistance=function(t){return p.getPointerPosition(this.el().parentNode,t).x},e.prototype.clampPosition_=function(t){if(!this.keepTooltipsInside)return t;var e=parseFloat((0,m.default)(this.player().el(),"width")),n=parseFloat((0,m.default)(this.tooltip,"width")),r=n/2,o=t;return te-r&&(o=Math.floor(e-r)),o},e}(l.default);l.default.registerComponent("MouseTimeDisplay",g),e.default=g},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s=n(0),u=r(s),l=n(4),c=function(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}(l),p=n(21),d=r(p),f=function(t){function e(n,r){o(this,e);var a=i(this,t.call(this,n,r));return a.updateDataAttr(),a.on(n,"timeupdate",a.updateDataAttr),n.ready(c.bind(a,a.updateDataAttr)),r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(a.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside),a.keepTooltipsInside&&a.addClass("vjs-keep-tooltips-inside"),a}return a(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:''+this.localize("Progress")+": 0%"})},e.prototype.updateDataAttr=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("data-current-time",(0,d.default)(e,this.player_.duration()))},e}(u.default);u.default.registerComponent("PlayProgressBar",f),e.default=f},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(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.__esModule=!0;var a=n(0),s=function(t){return t&&t.__esModule?t:{default:t}}(a);n(235),n(232);var u=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},e}(s.default);u.prototype.options_={children:["seekBar"]},s.default.registerComponent("ProgressControl",u),e.default=u},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s=n(115),u=r(s),l=n(0),c=r(l),p=n(4),d=function(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}(p),f=n(21),h=r(f),v=n(74),y=r(v);n(231),n(233),n(236);var m=function(t){function e(n,r){o(this,e);var a=i(this,t.call(this,n,r));return a.on(n,"timeupdate",a.updateProgress),a.on(n,"ended",a.updateProgress),n.ready(d.bind(a,a.updateProgress)),r.playerOptions&&r.playerOptions.controlBar&&r.playerOptions.controlBar.progressControl&&r.playerOptions.controlBar.progressControl.keepTooltipsInside&&(a.keepTooltipsInside=r.playerOptions.controlBar.progressControl.keepTooltipsInside),a.keepTooltipsInside&&(a.tooltipProgressBar=a.addChild("TooltipProgressBar")),a}return a(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":"progress bar"})},e.prototype.updateProgress=function(t){if(this.updateAriaAttributes(this.el_),this.keepTooltipsInside){this.updateAriaAttributes(this.tooltipProgressBar.el_),this.tooltipProgressBar.el_.style.width=this.bar.el_.style.width;var e=parseFloat((0,y.default)(this.player().el(),"width")),n=parseFloat((0,y.default)(this.tooltipProgressBar.tooltip,"width")),r=this.tooltipProgressBar.el().style;r.maxWidth=Math.floor(e-n/2)+"px",r.minWidth=Math.ceil(n/2)+"px",r.right="-"+n/2+"px"}},e.prototype.updateAriaAttributes=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();t.setAttribute("aria-valuenow",(100*this.getPercent()).toFixed(2)),t.setAttribute("aria-valuetext",(0,h.default)(e,this.player_.duration()))},e.prototype.getPercent=function(){var t=this.player_.currentTime()/this.player_.duration();return t>=1?1:t},e.prototype.handleMouseDown=function(e){this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),t.prototype.handleMouseDown.call(this,e)},e.prototype.handleMouseMove=function(t){var e=this.calculateDistance(t)*this.player_.duration();e===this.player_.duration()&&(e-=.1),this.player_.currentTime(e)},e.prototype.handleMouseUp=function(e){t.prototype.handleMouseUp.call(this,e),this.player_.scrubbing(!1),this.videoWasPlaying&&this.player_.play()},e.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},e.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},e}(u.default);m.prototype.options_={children:["loadProgressBar","mouseTimeDisplay","playProgressBar"],barName:"playProgressBar"},m.prototype.playerEvent="timeupdate",c.default.registerComponent("SeekBar",m),e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s=n(0),u=r(s),l=n(4),c=function(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}(l),p=n(21),d=r(p),f=function(t){function e(n,r){o(this,e);var a=i(this,t.call(this,n,r));return a.updateDataAttr(),a.on(n,"timeupdate",a.updateDataAttr),n.ready(c.bind(a,a.updateDataAttr)),a}return a(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-tooltip-progress-bar vjs-slider-bar",innerHTML:'
\n '+this.localize("Progress")+": 0%"});return this.tooltip=e.querySelector(".vjs-time-tooltip"),e},e.prototype.updateDataAttr=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),n=(0,d.default)(e,this.player_.duration());this.el_.setAttribute("data-current-time",n),this.tooltip.innerHTML=n},e}(u.default);u.default.registerComponent("TooltipProgressBar",f),e.default=f},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s=n(238),u=r(s),l=n(0),c=r(l),p=function(t){function e(){return o(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,{className:this.buildCSSClass()});return e.innerHTML=" ",e},e}(u.default);c.default.registerComponent("CustomControlSpacer",p),e.default=p},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(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.__esModule=!0;var a=n(0),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.buildCSSClass=function(){return"vjs-spacer "+t.prototype.buildCSSClass.call(this)},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e}(s.default);s.default.registerComponent("Spacer",u),e.default=u},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s=n(69),u=r(s),l=n(0),c=r(l),p=function(t){function e(n,r){o(this,e),r.track={player:n,kind:r.kind,label:r.kind+" settings",selectable:!1,default:!1,mode:"disabled"},r.selectable=!1;var a=i(this,t.call(this,n,r));return a.addClass("vjs-texttrack-settings"),a.controlText(", opens "+r.kind+" settings dialog"),a}return a(e,t),e.prototype.handleClick=function(t){this.player().getChild("textTrackSettings").show(),this.player().getChild("textTrackSettings").el_.focus()},e}(u.default);c.default.registerComponent("CaptionSettingsMenuItem",p),e.default=p},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s=n(46),u=r(s),l=n(0),c=r(l),p=n(239),d=r(p),f=function(t){function e(n,r,a){o(this,e);var s=i(this,t.call(this,n,r,a));return s.el_.setAttribute("aria-label","Captions Menu"),s}return a(e,t),e.prototype.buildCSSClass=function(){return"vjs-captions-button "+t.prototype.buildCSSClass.call(this)},e.prototype.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||(e.push(new d.default(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),t.prototype.createItems.call(this,e)},e}(u.default);f.prototype.kind_="captions",f.prototype.controlText_="Captions",c.default.registerComponent("CaptionsButton",f),e.default=f},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s=n(46),u=r(s),l=n(0),c=r(l),p=n(242),d=r(p),f=n(30),h=r(f),v=function(t){function e(n,r,a){o(this,e);var s=i(this,t.call(this,n,r,a));return s.el_.setAttribute("aria-label","Chapters Menu"),s}return a(e,t),e.prototype.buildCSSClass=function(){return"vjs-chapters-button "+t.prototype.buildCSSClass.call(this)},e.prototype.update=function(e){this.track_&&(!e||"addtrack"!==e.type&&"removetrack"!==e.type)||this.setTrack(this.findChaptersTrack()),t.prototype.update.call(this)},e.prototype.setTrack=function(t){if(this.track_!==t){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=t,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_)}}},e.prototype.findChaptersTrack=function(){for(var t=this.player_.textTracks()||[],e=t.length-1;e>=0;e--){var n=t[e];if(n.kind===this.kind_)return n}},e.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize((0,h.default)(this.kind_))},e.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),t.prototype.createMenu.call(this)},e.prototype.createItems=function(){var t=[];if(!this.track_)return t;var e=this.track_.cues;if(!e)return t;for(var n=0,r=e.length;nCurrent Time 0:00'},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(t){var e=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),n=this.localize("Current Time"),r=(0,d.default)(e,this.player_.duration());r!==this.formattedTime_&&(this.formattedTime_=r,this.contentEl_.innerHTML=''+n+" "+r)},e}(u.default);u.default.registerComponent("CurrentTimeDisplay",f),e.default=f},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s=n(0),u=r(s),l=n(5),c=function(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}(l),p=n(21),d=r(p),f=function(t){function e(n,r){o(this,e);var a=i(this,t.call(this,n,r));return a.on(n,"durationchange",a.updateContent),a.on(n,"timeupdate",a.updateContent),a.on(n,"loadedmetadata",a.updateContent),a}return a(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-control vjs-control"});return this.contentEl_=c.createEl("div",{className:"vjs-duration-display",innerHTML:''+this.localize("Duration Time")+" 0:00"},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(t){var e=this.player_.duration();if(e&&this.duration_!==e){this.duration_=e;var n=this.localize("Duration Time"),r=(0,d.default)(e);this.contentEl_.innerHTML=''+n+" "+r}},e}(u.default);u.default.registerComponent("DurationDisplay",f),e.default=f},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s=n(0),u=r(s),l=n(5),c=function(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}(l),p=n(21),d=r(p),f=function(t){function e(n,r){o(this,e);var a=i(this,t.call(this,n,r));return a.on(n,"timeupdate",a.updateContent),a.on(n,"durationchange",a.updateContent),a}return a(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-control vjs-control"});return this.contentEl_=c.createEl("div",{className:"vjs-remaining-time-display",innerHTML:''+this.localize("Remaining Time")+" -0:00"},{"aria-live":"off"}),e.appendChild(this.contentEl_),e},e.prototype.updateContent=function(t){if(this.player_.duration()){var e=this.localize("Remaining Time"),n=(0,d.default)(this.player_.remainingTime());n!==this.formattedTime_&&(this.formattedTime_=n,this.contentEl_.innerHTML=''+e+" -"+n)}},e}(u.default);u.default.registerComponent("RemainingTimeDisplay",f),e.default=f},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(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.__esModule=!0;var a=n(0),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"
/
"})},e}(s.default);s.default.registerComponent("TimeDivider",u),e.default=u},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(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.__esModule=!0;var a=n(0),s=function(t){return t&&t.__esModule?t:{default:t}}(a);n(109);var u=function(t){function e(n,i){r(this,e);var a=o(this,t.call(this,n,i));return n.tech_&&!1===n.tech_.featuresVolumeControl&&a.addClass("vjs-hidden"),a.on(n,"loadstart",function(){!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),a}return i(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},e}(s.default);u.prototype.options_={children:["volumeBar"]},s.default.registerComponent("VolumeControl",u),e.default=u},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(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.__esModule=!0;var a=n(0),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:''})},e}(s.default);s.default.registerComponent("VolumeLevel",u),e.default=u},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s=n(4),u=function(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}(s),l=n(0),c=r(l),p=n(259),d=r(p),f=n(258),h=r(f),v=n(107),y=r(v),m=n(109),g=r(m),_=function(t){function e(n){function r(){n.tech_&&!1===n.tech_.featuresVolumeControl?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),void 0===a.inline&&(a.inline=!0),void 0===a.vertical&&(a.inline?a.vertical=!1:a.vertical=!0),a.volumeBar=a.volumeBar||{},a.volumeBar.vertical=!!a.vertical;var s=i(this,t.call(this,n,a));return s.on(n,"volumechange",s.volumeUpdate),s.on(n,"loadstart",s.volumeUpdate),r.call(s),s.on(n,"loadstart",r),s.on(s.volumeBar,["slideractive","focus"],function(){this.addClass("vjs-slider-active")}),s.on(s.volumeBar,["sliderinactive","blur"],function(){this.removeClass("vjs-slider-active")}),s.on(s.volumeBar,["focus"],function(){this.addClass("vjs-lock-showing")}),s.on(s.volumeBar,["blur"],function(){this.removeClass("vjs-lock-showing")}),s}return a(e,t),e.prototype.buildCSSClass=function(){var e="";return e=this.options_.vertical?"vjs-volume-menu-button-vertical":"vjs-volume-menu-button-horizontal","vjs-volume-menu-button "+t.prototype.buildCSSClass.call(this)+" "+e},e.prototype.createPopup=function(){var t=new d.default(this.player_,{contentElType:"div"}),e=new g.default(this.player_,this.options_.volumeBar);return t.addChild(e),this.menuContent=t,this.volumeBar=e,this.attachVolumeBarEvents(),t},e.prototype.handleClick=function(e){y.default.prototype.handleClick.call(this),t.prototype.handleClick.call(this)},e.prototype.attachVolumeBarEvents=function(){this.menuContent.on(["mousedown","touchdown"],u.bind(this,this.handleMouseDown))},e.prototype.handleMouseDown=function(t){this.on(["mousemove","touchmove"],u.bind(this.volumeBar,this.volumeBar.handleMouseMove)),this.on(this.el_.ownerDocument,["mouseup","touchend"],this.handleMouseUp)},e.prototype.handleMouseUp=function(t){this.off(["mousemove","touchmove"],u.bind(this.volumeBar,this.volumeBar.handleMouseMove))},e}(h.default);_.prototype.volumeUpdate=y.default.prototype.update,_.prototype.controlText_="Mute",c.default.registerComponent("VolumeMenuButton",_),e.default=_},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s=n(0),u=r(s),l=n(113),c=r(l),p=n(19),d=r(p),f=function(t){function e(n,r){o(this,e);var a=i(this,t.call(this,n,r));return a.on(n,"error",a.open),a}return a(e,t),e.prototype.buildCSSClass=function(){return"vjs-error-display "+t.prototype.buildCSSClass.call(this)},e.prototype.content=function(){var t=this.player().error();return t?this.localize(t.message):""},e}(c.default);f.prototype.options_=(0,d.default)(c.default.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),u.default.registerComponent("ErrorDisplay",f),e.default=f},function(t,e,n){"use strict";e.__esModule=!0;var 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=n(13),i=function(t){return t&&t.__esModule?t:{default:t}}(o),a=n(11),s=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(t.super_=e)},u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){t.apply(this,arguments)},r={};(0,a.isObject)(e)?("function"==typeof e.init&&(i.default.warn("Constructor logic via init() is deprecated; please use constructor() instead."),e.constructor=e.init),e.constructor!==Object.prototype.constructor&&(n=e.constructor),r=e):"function"==typeof e&&(n=e),s(n,t);for(var o in r)r.hasOwnProperty(o)&&(n.prototype[o]=r[o]);return n};e.default=u},function(t,e,n){"use strict";e.__esModule=!0;for(var r=n(8),o=function(t){return t&&t.__esModule?t:{default:t}}(r),i={},a=[["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"]],s=a[0],u=void 0,l=0;l1&&void 0!==arguments[1]?arguments[1]:{};o(this,e);var a=i(this,t.call(this,n,r));return a.update(),a}return a(e,t),e.prototype.update=function(){var t=this.createPopup();this.popup&&this.removeChild(this.popup),this.popup=t,this.addChild(t),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},e.prototype.createPopup=function(){},e.prototype.createEl=function(){return t.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},e.prototype.buildCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+t.prototype.buildCSSClass.call(this)},e}(u.default);c.default.registerComponent("PopupButton",p),e.default=p},function(t,e,n){"use strict";function r(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 o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s=n(0),u=function(t){return t&&t.__esModule?t:{default:t}}(s),l=n(5),c=r(l),p=n(4),d=r(p),f=n(20),h=r(f),v=function(t){function e(){return o(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.addItem=function(t){this.addChild(t),t.on("click",d.bind(this,function(){this.unlockShowing()}))},e.prototype.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=c.createEl(e,{className:"vjs-menu-content"});var n=t.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),h.on(n,"click",function(t){t.preventDefault(),t.stopImmediatePropagation()}),n},e}(u.default);u.default.registerComponent("Popup",v),e.default=v},function(t,e,n){"use strict";function r(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 o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(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.__esModule=!0;var u=n(37),l=o(u),c=n(0),p=o(c),d=n(4),f=r(d),h=n(5),v=r(h),y=n(10),m=r(y),g=function(t){function e(n,r){i(this,e);var o=a(this,t.call(this,n,r));return o.update(),n.on("posterchange",f.bind(o,o.update)),o}return s(e,t),e.prototype.dispose=function(){this.player().off("posterchange",this.update),t.prototype.dispose.call(this)},e.prototype.createEl=function(){var t=v.createEl("div",{className:"vjs-poster",tabIndex:-1});return m.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=v.createEl("img"),t.appendChild(this.fallbackImg_)),t},e.prototype.update=function(t){var e=this.player().poster();this.setSrc(e),e?this.show():this.hide()},e.prototype.setSrc=function(t){if(this.fallbackImg_)this.fallbackImg_.src=t;else{var e="";t&&(e='url("'+t+'")'),this.el_.style.backgroundImage=e}},e.prototype.handleClick=function(t){this.player_.controls()&&(this.player_.paused()?this.player_.play():this.player_.pause())},e}(l.default);p.default.registerComponent("PosterImage",g),e.default=g},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}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 i(t,e){e&&(v=e),f.default.setTimeout(y,t)}e.__esModule=!0,e.hasLoaded=e.autoSetupTimeout=e.autoSetup=void 0;var a=n(5),s=o(a),u=n(20),l=o(u),c=n(8),p=r(c),d=n(7),f=r(d),h=!1,v=void 0,y=function(){if(s.isReal()){var t=p.default.getElementsByTagName("video"),e=p.default.getElementsByTagName("audio"),n=[];if(t&&t.length>0)for(var r=0,o=t.length;r0)for(var a=0,u=e.length;a0)for(var l=0,c=n.length;ln.start(0)?e:n.start(0),e=e=0?t:1/0},e.prototype.load=function(){this.el_.vjs_load()},e.prototype.poster=function(){this.el_.vjs_getProperty("poster")},e.prototype.setPoster=function(){},e.prototype.seekable=function(){var t=this.duration();return 0===t?(0,v.createTimeRange)():(0,v.createTimeRange)(0,t)},e.prototype.buffered=function(){var t=this.el_.vjs_getProperty("buffered");return 0===t.length?(0,v.createTimeRange)():(0,v.createTimeRange)(t[0][0],t[0][1])},e.prototype.supportsFullScreen=function(){return!1},e.prototype.enterFullScreen=function(){return!1},e}(c.default),k=C.prototype,S="rtmpConnection,rtmpStream,preload,defaultPlaybackRate,playbackRate,autoplay,loop,mediaGroup,controller,controls,volume,muted,defaultMuted".split(","),A="networkState,readyState,initialTime,startOffsetTime,paused,ended,videoWidth,videoHeight".split(","),x=0;x=10},c.default.withSourceHandlers(C),C.nativeSourceHandler={},C.nativeSourceHandler.canPlayType=function(t){return t in C.formats?"maybe":""},C.nativeSourceHandler.canHandleSource=function(t,e){var n=void 0;return n=t.type?t.type.replace(/;.*/,"").toLowerCase():function(t){var e=h.getFileExtension(t);return e?"video/"+e:""}(t.src),C.nativeSourceHandler.canPlayType(n)},C.nativeSourceHandler.handleSource=function(t,e,n){e.setSrc(t.src)},C.nativeSourceHandler.dispose=function(){},C.registerSourceHandler(C.nativeSourceHandler),C.formats={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"},C.onReady=function(t){var e=d.getEl(t),n=e&&e.tech;n&&n.el()&&C.checkReady(n)},C.checkReady=function(t){t.el()&&(t.el().vjs_getProperty?t.triggerReady():this.setTimeout(function(){C.checkReady(t)},50))},C.onEvent=function(t,e){var n=d.getEl(t).tech,r=Array.prototype.slice.call(arguments,2);n.setTimeout(function(){n.trigger(e,r)},1)},C.onError=function(t,e){var n=d.getEl(t).tech;if("srcnotfound"===e)return n.error(4);n.error("FLASH: "+e)},C.version=function(){var t="0,0,0";try{t=new w.default.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(e){try{E.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(t=(E.plugins["Shockwave Flash 2.0"]||E.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(t){}}return t.split(",")},C.embed=function(t,e,n,r){var o=C.getEmbedCode(t,e,n,r);return d.createEl("div",{innerHTML:o}).childNodes[0]},C.getEmbedCode=function(t,e,n,r){var o="",i="",a="";return e&&Object.getOwnPropertyNames(e).forEach(function(t){o+=t+"="+e[t]+"&"}),n=(0,T.assign)({movie:t,flashvars:o,allowScriptAccess:"always",allowNetworking:"all"},n),Object.getOwnPropertyNames(n).forEach(function(t){i+=''}),r=(0,T.assign)({data:t,width:"100%",height:"100%"},r),Object.getOwnPropertyNames(r).forEach(function(t){a+=t+'="'+r[t]+'" '}),'"+i+""},(0,m.default)(C),_.default.registerComponent("Flash",C),c.default.registerTech("Flash",C),e.default=C},function(t,e,n){"use strict";function r(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 o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(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.__esModule=!0;var u=function(t,e){return t.raw=e,t}(["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."]),l=n(38),c=o(l),p=n(0),d=o(p),f=n(5),h=r(f),v=n(49),y=r(v),m=n(4),g=r(m),_=n(13),b=o(_),w=n(106),T=o(w),E=n(10),C=r(E),k=n(8),S=o(k),A=n(7),x=o(A),O=n(11),P=n(19),j=o(P),M=n(30),I=o(M),N=function(t){function e(n,r){i(this,e);var o=a(this,t.call(this,n,r)),s=n.source,l=!1;if(s&&(o.el_.currentSrc!==s.src||n.tag&&3===n.tag.initNetworkState_)?o.setSource(s):o.handleLateInit_(o.el_),o.el_.hasChildNodes()){for(var c=o.el_.childNodes,p=c.length,d=[];p--;){var f=c[p];"track"===f.nodeName.toLowerCase()&&(o.featuresNativeTextTracks?(o.remoteTextTrackEls().addTrackElement_(f),o.remoteTextTracks().addTrack_(f.track),l||o.el_.hasAttribute("crossorigin")||!y.isCrossOrigin(f.src)||(l=!0)):d.push(f))}for(var h=0;h=0;a--){var s=i[a],u={};void 0!==this.options_[s]&&(u[s]=this.options_[s]),h.setElAttributes(t,u)}return t},e.prototype.handleLateInit_=function(t){if(0!==t.networkState&&3!==t.networkState){if(0===t.readyState){var e=!1,n=function(){e=!0};this.on("loadstart",n);var r=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",r),void this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",r),e||this.trigger("loadstart")})}var o=["loadstart"];o.push("loadedmetadata"),t.readyState>=2&&o.push("loadeddata"),t.readyState>=3&&o.push("canplay"),t.readyState>=4&&o.push("canplaythrough"),this.ready(function(){o.forEach(function(t){this.trigger(t)},this)})}},e.prototype.proxyNativeTextTracks_=function(){var t=this.el().textTracks;if(t){for(var e=0;e0&&(t.el_.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",e))};return this.on("timeupdate",e),NaN}return this.el_.duration||NaN},e.prototype.width=function(){return this.el_.offsetWidth},e.prototype.height=function(){return this.el_.offsetHeight},e.prototype.proxyWebkitFullscreen_=function(){var t=this;if("webkitDisplayingFullscreen"in this.el_){var e=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0})};this.on("webkitbeginfullscreen",n),this.on("dispose",function(){t.off("webkitbeginfullscreen",n),t.off("webkitendfullscreen",e)})}},e.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var t=x.default.navigator&&x.default.navigator.userAgent||"";if(/Android/.test(t)||!/Chrome|Mac OS X 10.5/.test(t))return!0}return!1},e.prototype.enterFullScreen=function(){var t=this.el_;t.paused&&t.networkState<=t.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){t.pause(),t.webkitEnterFullScreen()},0)):t.webkitEnterFullScreen()},e.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},e.prototype.src=function(t){if(void 0===t)return this.el_.src;this.setSrc(t)},e.prototype.reset=function(){e.resetMediaElement(this.el_)},e.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},e.prototype.setControls=function(t){this.el_.controls=!!t},e.prototype.addTextTrack=function(e,n,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,n,r):t.prototype.addTextTrack.call(this,e,n,r)},e.prototype.createRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return t.prototype.createRemoteTextTrack.call(this,e);var n=S.default.createElement("track");return e.kind&&(n.kind=e.kind),e.label&&(n.label=e.label),(e.language||e.srclang)&&(n.srclang=e.language||e.srclang),e.default&&(n.default=e.default),e.id&&(n.id=e.id),e.src&&(n.src=e.src),n},e.prototype.addRemoteTextTrack=function(e,n){var r=t.prototype.addRemoteTextTrack.call(this,e,n);return this.featuresNativeTextTracks&&this.el().appendChild(r),r},e.prototype.removeRemoteTextTrack=function(e){if(t.prototype.removeRemoteTextTrack.call(this,e),this.featuresNativeTextTracks)for(var n=this.$$("track"),r=n.length;r--;)e!==n[r]&&e!==n[r].track||this.el().removeChild(n[r])},e}(c.default);if(h.isReal()){N.TEST_VID=S.default.createElement("video");var R=S.default.createElement("track");R.kind="captions",R.srclang="en",R.label="English",N.TEST_VID.appendChild(R)}N.isSupported=function(){try{N.TEST_VID.volume=.5}catch(t){return!1}return!(!N.TEST_VID||!N.TEST_VID.canPlayType)},N.canControlVolume=function(){try{var t=N.TEST_VID.volume;return N.TEST_VID.volume=t/2+.1,t!==N.TEST_VID.volume}catch(t){return!1}},N.canControlPlaybackRate=function(){if(C.IS_ANDROID&&C.IS_CHROME)return!1;try{var t=N.TEST_VID.playbackRate;return N.TEST_VID.playbackRate=t/2+.1,t!==N.TEST_VID.playbackRate}catch(t){return!1}},N.supportsNativeTextTracks=function(){return C.IS_ANY_SAFARI},N.supportsNativeVideoTracks=function(){return!(!N.TEST_VID||!N.TEST_VID.videoTracks)},N.supportsNativeAudioTracks=function(){return!(!N.TEST_VID||!N.TEST_VID.audioTracks)},N.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","volumechange"],N.prototype.featuresVolumeControl=N.canControlVolume(),N.prototype.featuresPlaybackRate=N.canControlPlaybackRate(),N.prototype.movingMediaElementInDOM=!C.IS_IOS,N.prototype.featuresFullscreenResize=!0,N.prototype.featuresProgressEvents=!0,N.prototype.featuresTimeupdateEvents=!0,N.prototype.featuresNativeTextTracks=N.supportsNativeTextTracks(),N.prototype.featuresNativeVideoTracks=N.supportsNativeVideoTracks(),N.prototype.featuresNativeAudioTracks=N.supportsNativeAudioTracks();var D=N.TEST_VID&&N.TEST_VID.constructor.prototype.canPlayType,L=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,F=/^video\/mp4/i;N.patchCanPlayType=function(){C.ANDROID_VERSION>=4&&!C.IS_FIREFOX?N.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&L.test(t)?"maybe":D.call(this,t)}:C.IS_OLD_ANDROID&&(N.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&F.test(t)?"maybe":D.call(this,t)})},N.unpatchCanPlayType=function(){var t=N.TEST_VID.constructor.prototype.canPlayType;return N.TEST_VID.constructor.prototype.canPlayType=D,t},N.patchCanPlayType(),N.disposeMediaElement=function(t){if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},N.resetMediaElement=function(t){if(t){for(var e=t.querySelectorAll("source"),n=e.length;n--;)t.removeChild(e[n]);t.removeAttribute("src"),"function"==typeof t.load&&function(){try{t.load()}catch(t){}}()}},["paused","currentTime","buffered","volume","muted","poster","preload","autoplay","controls","loop","error","seeking","seekable","ended","defaultMuted","playbackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(t){N.prototype[t]=function(){return this.el_[t]}}),["volume","muted","src","poster","preload","autoplay","loop","playbackRate"].forEach(function(t){N.prototype["set"+(0,I.default)(t)]=function(e){this.el_[t]=e}}),["pause","load"].forEach(function(t){N.prototype[t]=function(){return this.el_[t]()}}),c.default.withSourceHandlers(N),N.nativeSourceHandler={},N.nativeSourceHandler.canPlayType=function(t){try{return N.TEST_VID.canPlayType(t)}catch(t){return""}},N.nativeSourceHandler.canHandleSource=function(t,e){if(t.type)return N.nativeSourceHandler.canPlayType(t.type);if(t.src){var n=y.getFileExtension(t.src);return N.nativeSourceHandler.canPlayType("video/"+n)}return""},N.nativeSourceHandler.handleSource=function(t,e,n){e.setSrc(t.src)},N.nativeSourceHandler.dispose=function(){},N.registerSourceHandler(N.nativeSourceHandler),d.default.registerComponent("Html5",N),c.default.registerTech("Html5",N),e.default=N},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s=n(0),u=r(s),l=n(38),c=r(l),p=n(30),d=r(p),f=function(t){function e(n,r,a){o(this,e);var s=i(this,t.call(this,n,r,a));if(r.playerOptions.sources&&0!==r.playerOptions.sources.length)n.src(r.playerOptions.sources);else for(var l=0,p=r.playerOptions.techOrder;l0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var u=(0,p.default)(a,{kind:s.AudioTrackKind[a.kind]||""}),l=n=i(this,t.call(this,u)),c=!1;if(f.IS_IE8)for(var d in e.prototype)"constructor"!==d&&(l[d]=e.prototype[d]);return Object.defineProperty(l,"enabled",{get:function(){return c},set:function(t){"boolean"==typeof t&&t!==c&&(c=t,this.trigger("enabledchange"))}}),u.enabled&&(l.enabled=u.enabled),l.loaded_=!0,r=l,i(n,r)}return a(e,t),e}(l.default);e.default=h},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=n(10),i=function(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}(o),a=n(8),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];r(this,t);var n=this;if(i.IS_IE8){n=s.default.createElement("custom");for(var o in t.prototype)"constructor"!==o&&(n[o]=t.prototype[o])}n.trackElements_=[],Object.defineProperty(n,"length",{get:function(){return this.trackElements_.length}});for(var a=0,u=e.length;a0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var r=i(this,t.call(this)),a=void 0,s=r;if(u.IS_IE8){s=c.default.createElement("custom");for(var l in e.prototype)"constructor"!==l&&(s[l]=e.prototype[l])}var p=new h.default(n);if(s.kind=p.kind,s.src=p.src,s.srclang=p.language,s.label=p.label,s.default=p.default,Object.defineProperty(s,"readyState",{get:function(){return a}}),Object.defineProperty(s,"track",{get:function(){return p}}),a=v,p.addEventListener("loadeddata",function(){a=y,s.trigger({type:"load",target:s})}),u.IS_IE8){var d;return d=s,i(r,d)}return r}return a(e,t),e}(d.default);m.prototype.allowedEvents_={load:"load"},m.NONE=v,m.LOADING=1,m.LOADED=y,m.ERROR=3,e.default=m},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var o=n(10),i=function(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}(o),a=n(8),s=function(t){return t&&t.__esModule?t:{default:t}}(a),u=function(){function t(e){r(this,t);var n=this;if(i.IS_IE8){n=s.default.createElement("custom");for(var o in t.prototype)"constructor"!==o&&(n[o]=t.prototype[o])}if(t.prototype.setCues_.call(n,e),Object.defineProperty(n,"length",{get:function(){return this.length_}}),i.IS_IE8)return n}return t.prototype.setCues_=function(t){var e=this.length||0,n=0,r=t.length;this.cues_=t,this.length_=t.length;var o=function(t){""+t in this||Object.defineProperty(this,""+t,{get:function(){return this.cues_[t]}})};if(e0&&void 0!==arguments[0]?arguments[0]:[];i(this,e);var s=void 0;if(f.IS_IE8){s=v.default.createElement("custom");for(var u in l.default.prototype)"constructor"!==u&&(s[u]=l.default.prototype[u]);for(var c in e.prototype)"constructor"!==c&&(s[c]=e.prototype[c])}return s=n=a(this,t.call(this,o,s)),r=s,a(n,r)}return s(e,t),e.prototype.addTrack_=function(e){t.prototype.addTrack_.call(this,e),e.addEventListener("modechange",p.bind(this,function(){this.trigger("change")}))},e}(l.default);e.default=y},function(t,e,n){"use strict";function r(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 o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(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)}function u(t,e){if(e&&(t=e(t)),t&&"none"!==t)return t}function l(t,e){return u(t.options[t.options.selectedIndex].value,e)}function c(t,e,n){if(e)for(var r=0;r select",id:"captions-background-color-%s",label:"Color",options:[T,x,A,k,E,O,S,C]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[P,j,M]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[x,T,A,k,E,O,S,C]},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(t){return"1.00"===t?null:Number(t)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[P,j]},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:[M,j,P]}};I.windowColor.options=I.backgroundColor.options;var N=function(t){function e(n,r){i(this,e);var o=a(this,t.call(this,n,r));return o.setDefaults(),o.hide(),o.updateDisplay=m.bind(o,o.updateDisplay),void 0===r.persistTextTrackSettings&&(o.options_.persistTextTrackSettings=o.options_.playerOptions.persistTextTrackSettings),o.on(o.$(".vjs-done-button"),"click",function(){o.saveSettings(),o.hide()}),o.on(o.$(".vjs-default-button"),"click",function(){o.setDefaults(),o.updateDisplay()}),_.each(I,function(t){o.on(o.$(t.selector),"change",o.updateDisplay)}),o.options_.persistTextTrackSettings&&o.restoreSettings(),o}return s(e,t),e.prototype.createElSelect_=function(t){var e=this,n=I[t],r=n.id.replace("%s",this.id_);return[(0,v.createEl)("label",{className:"vjs-label",textContent:n.label},{for:r}),(0,v.createEl)("select",{id:r},void 0,n.options.map(function(t){return(0,v.createEl)("option",{textContent:e.localize(t[1]),value:t[0]})}))]},e.prototype.createElFgColor_=function(){var t=(0,v.createEl)("legend",{textContent:this.localize("Text")}),e=this.createElSelect_("color"),n=(0,v.createEl)("span",{className:"vjs-text-opacity vjs-opacity"},void 0,this.createElSelect_("textOpacity"));return(0,v.createEl)("fieldset",{className:"vjs-fg-color vjs-tracksetting"},void 0,[t].concat(e,n))},e.prototype.createElBgColor_=function(){var t=(0,v.createEl)("legend",{textContent:this.localize("Background")}),e=this.createElSelect_("backgroundColor"),n=(0,v.createEl)("span",{className:"vjs-bg-opacity vjs-opacity"},void 0,this.createElSelect_("backgroundOpacity"));return(0,v.createEl)("fieldset",{className:"vjs-bg-color vjs-tracksetting"},void 0,[t].concat(e,n))},e.prototype.createElWinColor_=function(){var t=(0,v.createEl)("legend",{textContent:this.localize("Window")}),e=this.createElSelect_("windowColor"),n=(0,v.createEl)("span",{className:"vjs-window-opacity vjs-opacity"},void 0,this.createElSelect_("windowOpacity"));return(0,v.createEl)("fieldset",{className:"vjs-window-color vjs-tracksetting"},void 0,[t].concat(e,n))},e.prototype.createElColors_=function(){return(0,v.createEl)("div",{className:"vjs-tracksettings-colors"},void 0,[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()])},e.prototype.createElFont_=function(){var t=(0,v.createEl)("div",{className:"vjs-font-percent vjs-tracksetting"},void 0,this.createElSelect_("fontPercent")),e=(0,v.createEl)("div",{className:"vjs-edge-style vjs-tracksetting"},void 0,this.createElSelect_("edgeStyle")),n=(0,v.createEl)("div",{className:"vjs-font-family vjs-tracksetting"},void 0,this.createElSelect_("fontFamily"));return(0,v.createEl)("div",{className:"vjs-tracksettings-font"},void 0,[t,e,n])},e.prototype.createElControls_=function(){var t=(0,v.createEl)("button",{className:"vjs-default-button",textContent:this.localize("Defaults")}),e=(0,v.createEl)("button",{className:"vjs-done-button",textContent:"Done"});return(0,v.createEl)("div",{className:"vjs-tracksettings-controls"},void 0,[t,e])},e.prototype.createEl=function(){var t=(0,v.createEl)("div",{className:"vjs-tracksettings"},void 0,[this.createElColors_(),this.createElFont_(),this.createElControls_()]),e=(0,v.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogLabel-"+this.id_,textContent:"Caption Settings Dialog"},{"aria-level":"1",role:"heading"}),n=(0,v.createEl)("div",{className:"vjs-control-text",id:"TTsettingsDialogDescription-"+this.id_,textContent:"Beginning of dialog window. Escape will cancel and close the window."}),r=(0,v.createEl)("div",void 0,{role:"document"},[e,n,t]);return(0,v.createEl)("div",{className:"vjs-caption-settings vjs-modal-overlay",tabIndex:-1},{role:"dialog","aria-labelledby":e.id,"aria-describedby":n.id},r)},e.prototype.getValues=function(){var t=this;return _.reduce(I,function(e,n,r){var o=l(t.$(n.selector),n.parser);return void 0!==o&&(e[r]=o),e},{})},e.prototype.setValues=function(t){var e=this;_.each(I,function(n,r){c(e.$(n.selector),t[r],n.parser)})},e.prototype.setDefaults=function(){var t=this;_.each(I,function(e){var n=e.hasOwnProperty("default")?e.default:0;t.$(e.selector).selectedIndex=n})},e.prototype.restoreSettings=function(){var t=void 0;try{t=JSON.parse(d.default.localStorage.getItem("vjs-text-track-settings"))}catch(t){w.default.warn(t)}t&&this.setValues(t)},e.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var t=this.getValues();try{Object.keys(t).length?d.default.localStorage.setItem("vjs-text-track-settings",JSON.stringify(t)):d.default.localStorage.removeItem("vjs-text-track-settings")}catch(t){w.default.warn(t)}}},e.prototype.updateDisplay=function(){var t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()},e}(h.default);h.default.registerComponent("TextTrackSettings",N),e.default=N},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(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.__esModule=!0;var s=n(71),u=n(73),l=r(u),c=n(19),p=r(c),d=n(10),f=function(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}(d),h=function(t){function e(){var n,r,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e);var u=(0,p.default)(a,{kind:s.VideoTrackKind[a.kind]||""}),l=n=i(this,t.call(this,u)),c=!1;if(f.IS_IE8)for(var d in e.prototype)"constructor"!==d&&(l[d]=e.prototype[d]);return Object.defineProperty(l,"selected",{get:function(){return c},set:function(t){"boolean"==typeof t&&t!==c&&(c=t,this.trigger("selectedchange"))}}),u.selected&&(l.selected=u.selected),r=l,i(n,r)}return a(e,t),e}(l.default);e.default=h},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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)}function a(t,e){return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n=n:n===e}},{key:"show",value:function(){return u(Object.getPrototypeOf(e.prototype),"show",this).call(this),this.off(this.player(),this.startEvent_,this.startListener_),this.debug("shown"),this.debug('unbound `startListener_` from "'+this.startEvent_+'"'),this.endEvent_&&(this.debug('bound `endListener_` to "'+this.endEvent_+'"'),this.on(this.player(),this.endEvent_,this.endListener_)),this}},{key:"shouldShow_",value:function(t,e){var n=this.options_.start,r=this.options_.end;return T(n)?T(r)?t>=n&&t=n):n===e}},{key:"startListener_",value:function(t){var e=this.player().currentTime();this.shouldShow_(e,t.type)&&this.show()}},{key:"endListener_",value:function(t){var e=this.player().currentTime();this.shouldHide_(e,t.type)&&this.hide()}},{key:"rewindListener_",value:function(t){var e=this.player().currentTime(),n=this.previousTime_,r=this.options_.start,o=this.options_.end;e2&&void 0!==arguments[2]?arguments[2]:0,r=Array.isArray(e)?e.slice():[],o=t.playlist=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.isArray(e)&&(r=e.slice(),-1!==n&&o.currentItem(n),o.changeTimeout_=u.default.setTimeout(function(){t.trigger("playlistchange")},0)),r.slice()};return t.on("loadstart",function(){-1===o.currentItem()&&d.reset(t)}),t.on("dispose",function(){u.default.clearTimeout(o.changeTimeout_)}),f(o,{currentIndex_:-1,player_:t,autoadvance_:{},repeat_:!1,currentItem:function(t){return"number"==typeof t&&o.currentIndex_!==t&&t>=0&&tr.length-1&&(t=0):t=Math.min(o.currentIndex_+1,r.length-1),t!==o.currentIndex_)return r[o.currentItem(t)]},previous:function(){var t=Math.max(o.currentIndex_-1,0);if(t!==o.currentIndex_)return r[o.currentItem(t)]},autoadvance:function(t){o.autoadvance_.delay=t,d.setup(o.player_,t)},repeat:function(t){return void 0!==t&&("boolean"!=typeof t?a.default.log.error("Invalid value for repeat",t):o.repeat_=t),o.repeat_}}),o.currentItem(n),o};e.default=y},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(40),i=r(o),a=n(277),s=r(a),u=i.default.registerPlugin||i.default.plugin,l=function(t,e){(0,s.default)(this,t,e)};u("playlist",l),e.default=l},function(t,e,n){(function(e){!function(e,n){t.exports=n()}(0,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=56)}([function(t,e,n){"use strict";function r(){}function o(t){return null===t}function i(t){return void 0!==t}function a(t){return void 0===t}function s(t){return"object"===(void 0===t?"undefined":D(t))}function u(t){return"function"==typeof t}function l(t){return"number"==typeof t}function c(t){return B.isObject(t)&&t.window===t}function p(t){return"[object Array]"===Object.prototype.toString.call(t)}function d(t){if(null===t||B.isWindow(t)||B.isFunction(t)||B.isUndefined(t))return!1;var e=t.length;return!(t.nodeType!==L||!e)||(B.isString(t)||B.isArray(t)||0===e||"number"==typeof e&&e>0&&e-1 in t)}function f(t){return"string"==typeof t}function h(t){return B.isString(t)&&0===t.length}function v(t){return B.isString(t)&&0!==t.length}function y(t){return Array.prototype.slice.call(t)}function m(t,e,n){var r=void 0,o=void 0;if(t)if(u(t))for(r in t)"prototype"===r||"length"===r||"name"===r||t.hasOwnProperty&&!t.hasOwnProperty(r)||e.call(n,t[r],r,t);else if(p(t)){var i="object"!==(void 0===t?"undefined":D(t));for(r=0,o=t.length;r=e&&(n=r,t.apply(this,arguments))}}function S(t,e){var n=void 0;return function(){n&&clearTimeout(n),n=setTimeout(function(){t.apply(this,arguments),n=void 0},e)}}function A(t,e,n){for(var r=e(t),o=0;o2&&void 0!==arguments[2]&&arguments[2],r=document.createElement("div");return r.id=e,n&&(t.innerHTML=""),t.appendChild(r),r}function s(t,e){return!isNaN(parseFloat(t))&&isFinite(t)&&t>0?t:e}function u(t,e){return c.call(t,e)}function l(t){t.style.position="absolute",t.style.left="-1px",t.style.top="-1px",t.style.width="1px",t.style.height="1px"}Object.defineProperty(e,"__esModule",{value:!0}),e.unique=r,e.noop=o,e.callbackTimeout=i,e.createElementWithID=a,e.isPositiveInt=s,e.stringEndsWith=u,e.hideFlashEl=l;var c=function(){return String.prototype.endsWith?String.prototype.endsWith:function(t,e){var n=this.toString();(void 0===e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}}()},function(t,e,n){"use strict";var r=n(0),o={};o.strToXMLDoc=function(t){function e(t){try{var e=new DOMParser,n=e.parseFromString("INVALID","text/xml"),r=n.getElementsByTagName("parsererror")[0].namespaceURI;return"http://www.w3.org/1999/xhtml"===r?t.getElementsByTagName("parsererror").length>0:t.getElementsByTagNameNS(r,"parsererror").length>0}catch(t){}}if(void 0===window.DOMParser){var n=new ActiveXObject("Microsoft.XMLDOM");return n.async=!1,n.loadXML(t),n}return function(t){var n=new DOMParser,o=void 0;try{if(o=n.parseFromString(t,"application/xml"),e(o)||r.isEmptyString(t))throw new Error}catch(e){throw new Error("xml.strToXMLDOC: Error parsing the string: '"+t+"'")}return o}(t)},o.parseText=function(t){return/^\s*$/.test(t)?null:/^(?:true|false)$/i.test(t)?"true"===t.toLowerCase():isFinite(t)?parseFloat(t):r.isISO8601(t)?new Date(t):t.trim()},o.JXONTree=function(t){var e=o.parseText;if(t.documentElement)return new o.JXONTree(t.documentElement);if(t.hasChildNodes()){for(var n,i,a,s="",u=0;u0:t.hasAttributes())for(var l=void 0,c=0;c/g,">").replace(/"/g,""").replace(/'/g,"'")},o.decode=function(t){if(r.isString(t))return t.replace(/'/g,"'").replace(/"/g,'"').replace(/>/g,">").replace(/</g,"<").replace(/&/g,"&")},t.exports=o},function(t,e,n){"use strict";function r(t,e){this.message="VAST Error: "+(t||""),e&&(this.code=e)}r.prototype=new Error,r.prototype.name="VAST Error",t.exports=r},function(t,e,n){"use strict";var r=n(12),o=n(0),i=n(42),a=n(41),s={track:function(t,e){var n=s.parseURLMacros(t,e),r=[];return n.forEach(function(t){var e=new Image;e.src=t,r.push(e)}),r},parseURLMacros:function(t,e){var n=[];return e=e||{},e.CACHEBUSTING||(e.CACHEBUSTING=Math.round(1e10*Math.random())),t.forEach(function(t){n.push(s._parseURLMacro(t,e))}),n},parseURLMacro:function(t,e){return e=e||{},e.CACHEBUSTING||(e.CACHEBUSTING=Math.round(1e10*Math.random())),s._parseURLMacro(t,e)},_parseURLMacro:function(t,e){return e=e||{},o.forEach(e,function(e,n){t=t.replace(new RegExp("\\["+n+"\\]","gm"),e)}),t},parseDuration:function(t){var e=void 0,n=void 0;return o.isString(t)&&(e=t.match(/(\d\d):(\d\d):(\d\d)(\.(\d\d\d))?/))&&(n=function(t){return 60*parseInt(t,10)*60*1e3}(e[1])+function(t){return 60*parseInt(t,10)*1e3}(e[2])+function(t){return 1e3*parseInt(t,10)}(e[3])+parseInt(e[5]||0,10)),isNaN(n)?null:n},parseImpressions:function(t){return t?(t=o.isArray(t)?t:[t],o.transformArray(t,function(t){if(o.isNotEmptyString(t.keyValue))return t.keyValue})):[]},formatProgress:function(t){var e=void 0,n=void 0,r=void 0,i=void 0;return e=t/36e5,e=Math.floor(e),n=t/6e4%60,n=Math.floor(n),r=t/1e3%60,r=Math.floor(r),i=t%1e3,o.toFixedDigits(e,2)+":"+o.toFixedDigits(n,2)+":"+o.toFixedDigits(r,2)+"."+o.toFixedDigits(i,3)},parseOffset:function(t,e){function n(t,e){return t*e/100}return function(t){return/^\d+(\.\d+)?%$/g.test(t)}(t)?function(t,e){return e?n(e,parseFloat(t.replace("%",""))):null}(t,e):s.parseDuration(t)},VPAID_techs:[a,i],isVPAID:function(t){return Boolean(t)&&"VPAID"===t.apiFramework},findSupportedVPAIDTech:function(t){var e=void 0,n=void 0,r=void 0;for(e=0,n=this.VPAID_techs.length;e0&&"string"==typeof e[0]&&(e[0]=p+e[0]),t.apply?t.apply(console,Array.prototype.slice.call(e)):t(Array.prototype.slice.call(e))}function i(){c<4||(void 0===console.debug?o(console.log,arguments):o(console.debug,arguments))}function a(){c<3||o(console.log,arguments)}function s(){c<2||o(console.info,arguments)}function u(){c<1||o(console.warn,arguments)}function l(){o(console.error,arguments)}var c=0,p="[videojs-vast-vpaid] ",d={setVerbosity:r,debug:i,log:a,info:s,warn:u,error:l};"undefined"!=typeof console&&console.log||(d.debug=function(){},d.log=function(){},d.info=function(){},d.warn=function(){},d.error=function(){}),t.exports=d},function(t,e,n){"use strict";var r=n(0),o={};o.isVisible=function(t){return"hidden"!==window.getComputedStyle(t).visibility},o.isHidden=function(t){return"none"===window.getComputedStyle(t).display},o.isShown=function(t){return!o.isHidden(t)},o.hide=function(t){t.__prev_style_display_=t.style.display,t.style.display="none"},o.show=function(t){o.isHidden(t)&&(t.style.display=t.__prev_style_display_),t.__prev_style_display_=void 0},o.hasClass=function(t,e){var n=void 0,o=void 0,i=void 0;if(r.isNotEmptyString(e)){if(t.classList)return t.classList.contains(e);for(n=r.isString(t.getAttribute("class"))?t.getAttribute("class").split(/\s+/):[],e=e||"",o=0,i=n.length;o1||(void 0===t.seekable()||t.seekable().length>0)},a.prepareForAds=function(t){function e(){return t.vast&&t.vast.adUnit}function n(){a()&&(h=!1,v=!1,t.trigger("vast.firstPlay"))}function r(){h=!0,f.show(),u()}function a(){return h}function s(){return{muted:t.muted(),volume:t.volume()}}function u(){y&&(t.currentTime(0),l(y),y=null)}function l(e){i.isObject(e)&&(t.volume(e.volume),t.muted(e.muted))}function c(){o.hasClass(f.el(),"vjs-hidden")||f.hide()}function p(){o.addClass(t.el(),"vjs-ad-playing")}function d(){o.removeClass(t.el(),"vjs-ad-playing")}var f=t.addChild("blackPoster"),h=!0,v=!1,y=void 0;!function(){var n=t.play;t.play=function(r){var o=this;return a()?function(){v||(v=!0,i.isIPhone()||(y=s(),t.muted(!0)),n.apply(o,arguments))}():function(r){e()&&!r?t.vast.adUnit.resumeAd():n.apply(o,arguments)}(r),this};var r=t.pause;t.pause=function(n){return e()&&!n?t.vast.adUnit.pauseAd():r.apply(this,arguments),this};var o=t.paused;t.paused=function(n){return e()&&!n?t.vast.adUnit.isPaused():o.apply(this,arguments)}}(),t.on("play",n),t.on("vast.reset",r),t.on("vast.firstPlay",u),t.on("error",c),t.on("vast.adStart",c),t.on("vast.adsCancel",c),t.on("vast.adError",c),t.on("vast.adStart",p),t.on("vast.adEnd",d),t.on("vast.adsCancel",d)},a.removeNativePoster=function(t){var e=t.el().querySelector(".vjs-tech");e&&e.removeAttribute("poster")},a.once=function(t,e,n){function r(){n.apply(void 0,arguments),e.forEach(function(e){t.off(e,r)})}e.forEach(function(e){t.on(e,r)})},t.exports=a},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(){if(this._destroyed)throw new Error("VPAIDFlashToJS is destroyed!")}function i(){this._loadLater&&(this.loadAdUnit(this._loadLater.url,this._loadLater.callback),delete this._loadLater)}function a(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Object.defineProperty(_,t,{writable:n,configurable:!1,value:e})}var s=function(){function t(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{data:"VPAIDFlash.swf",width:800,height:400},s=this,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{wmode:"transparent",salign:"tl",align:"left",allowScriptAccess:"always",scale:"noScale",allowFullScreen:"true",quality:"high"},y=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{debug:!1,timeout:1e4};r(this,t);var g=this;if(this._vpaidParentEl=e,this._flashID=v(),this._destroyed=!1,n=n||p,a.width=f(a.width,800),a.height=f(a.height,400),h(e,this._flashID,!0),c.movie=a.data,c.FlashVars="flashid="+this._flashID+"&handler="+l.VPAID_FLASH_HANDLER+"&debug="+y.debug+"&salign="+c.salign,!t.isSupported())return o("user don't support flash or doesn't have the minimum required version of flash "+m);if(this.el=u.createSWF(a,c,this._flashID),!this.el)return o("swfobject failed to create object in element");var _=d(y.timeout,function(t,e){i.call(s),n(t,e)},function(){n("vpaid flash load timeout "+y.timeout)});this._flash=new l(this.el,a.data,this._flashID,a.width,a.height,_)}return s(t,[{key:"destroy",value:function(){this._destroyAdUnit(),this._flash&&(this._flash.destroy(),this._flash=null),this.el=null,this._destroyed=!0}},{key:"isDestroyed",value:function(){return this._destroyed}},{key:"_destroyAdUnit",value:function(){delete this._loadLater,this._adUnitLoad&&(this._adUnitLoad=null,this._flash.removeCallback(this._adUnitLoad)),this._adUnit&&(this._adUnit._destroy(),this._adUnit=null)}},{key:"loadAdUnit",value:function(t,e){var n=this;o.call(this),this._adUnit&&this._destroyAdUnit(),this._flash.isReady()?(this._adUnitLoad=function(t,r){t||(n._adUnit=new c(n._flash)),n._adUnitLoad=null,e(t,n._adUnit)},this._flash.callFlashMethod("loadAdUnit",[t],this._adUnitLoad)):this._loadLater={url:t,callback:e}}},{key:"unloadAdUnit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;o.call(this),this._destroyAdUnit(),this._flash.callFlashMethod("unloadAdUnit",[],t)}},{key:"getFlashID",value:function(){return o.call(this),this._flash.getFlashID()}},{key:"getFlashURL",value:function(){return o.call(this),this._flash.getFlashURL()}}]),t}();a("isSupported",function(){return u.hasFlashPlayerVersion(m)&&g.isSupported()},!0),a("runFlashTest",function(t){g=y(document.body,t)}),_.swfobject=u,t.exports=_},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e,n){var r=this;setTimeout(function(){var o=r._callbacks.get(t);o&&(r._callbacks.remove(t),o(e,n))},0)}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r="";n&&(r=this._uniqueMethodIdentifier()+"_"+t,this._callbacks.add(r,n));try{this._el[t]([r].concat(e))}catch(t){n?o.call(this,r,t):this._trigger("AdError",t)}}},{key:"removeCallback",value:function(t){return this._callbacks.removeByValue(t)}},{key:"removeCallbackByMethodName",value:function(t){var e=this;this._callbacks.filterKeys(function(e){return u(e,t)}).forEach(function(t){e._callbacks.remove(t)})}},{key:"removeAllCallbacks",value:function(){return this._callbacks.removeAll()}},{key:"_trigger",value:function(t,e){var n=this;this._handlers.get(t).forEach(function(r){"AdClickThru"===t?r(e):setTimeout(function(){n._handlers.get(t).length>0&&r(e)},0)})}},{key:"_callCallback",value:function(t,e,n,r){if(!this._callbacks.get(e))return void(n&&""===e&&this.trigger("AdError",n));o.call(this,e,n,r)}},{key:"_handShake",value:function(t,e){this._ready=!0,this._handShakeHandler&&(this._handShakeHandler(t,e),delete this._handShakeHandler)}},{key:"getSize",value:function(){return{width:this._width,height:this._height}}},{key:"setSize",value:function(t,e){this._width=s(t,this._width),this._height=s(e,this._height),this._el.setAttribute("width",this._width),this._el.setAttribute("height",this._height)}},{key:"getWidth",value:function(){return this._width}},{key:"setWidth",value:function(t){this.setSize(t,this._height)}},{key:"getHeight",value:function(){return this._height}},{key:"setHeight",value:function(t){this.setSize(this._width,t)}},{key:"getFlashID",value:function(){return this._flashID}},{key:"getFlashURL",value:function(){return this._flashURL}},{key:"isReady",value:function(){return this._ready}},{key:"destroy",value:function(){this.offAll(),this.removeAllCallbacks(),p.removeInstanceByID(this._flashID),this._el.parentElement&&this._el.parentElement.removeChild(this._el)}}]),t}();Object.defineProperty(d,"VPAID_FLASH_HANDLER",{writable:!1,configurable:!1,value:"vpaid_video_flash_handler"}),window.vpaid_video_flash_handler=function(t,e,n,r,o,i){var a=p.getInstanceByID(t);a&&("handShake"===n?a._handShake(o,i):"event"!==e?a._callCallback(n,r,o,i):a._trigger(n,i))}},function(t,e,n){"use strict";function r(){}function o(t,e){return t?null:new Error(e)}function i(t){var e=y[t];e&&(clearTimeout(e),delete y[t])}function a(t,e,n){var o,a;return a=setTimeout(function(){e=r,delete a[o],n()},t),o=function(){e.apply(this,arguments)&&i(o)},y[o]=a,o}function s(t,e,n){var r=document.createElement(e);return n&&(r.id=n),t.appendChild(r),r}function u(t,e,n){var r=l(t,null,n.zIndex);if(d(r,p(e,n)))return r}function l(t,e,n){var r=document.createElement("iframe");return r.src=e||"about:blank",r.marginWidth="0",r.marginHeight="0",r.frameBorder="0",r.width="100%",r.height="100%",c(r),n&&(r.style.zIndex=n),r.setAttribute("SCROLLING","NO"),t.innerHTML="",t.appendChild(r),r}function c(t){t.style.position="absolute",t.style.left="0",t.style.top="0",t.style.margin="0px",t.style.padding="0px",t.style.border="none",t.style.width="100%",t.style.height="100%"}function p(t,e){return Object.keys(e).forEach(function(n){var r="object"===(void 0===r?"undefined":v(r))?JSON.stringify(e[n]):e[n];t=t.replace(new RegExp("{{"+n+"}}","g"),r)}),t}function d(t,e){var n=t.contentWindow&&t.contentWindow.document;return!!n&&(n.write(e),!0)}function f(t,e){return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function h(t){var e=-1;return function(){return t+"_"+ ++e}}var v="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},y={};t.exports={noop:r,validate:o,clearCallbackTimeout:i,callbackTimeout:a,createElementInEl:s,createIframeWithContent:u,createIframe:l,setFullSizeStyle:c,simpleTemplate:p,setIframeContent:d,extend:f,unique:h}},function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);this.initialize(t)}var o=n(17),i=n(22);r.prototype.initialize=function(t){this.id=t.attr("id"),this.sequence=t.attr("sequence"),t.inLine&&(this.inLine=new o(t.inLine)),t.wrapper&&(this.wrapper=new i(t.wrapper))},t.exports=r},function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);if(this.id=t.attr("id"),this.sequence=t.attr("sequence"),this.adId=t.attr("adId"),this.apiFramework=t.attr("apiFramework"),t.linear&&(this.linear=new a(t.linear)),t.companionAds){var e=[],n=t.companionAds&&t.companionAds.companion;o.isDefined(n)&&(n=o.isArray(n)?n:[n],n.forEach(function(t){e.push(new i(t))})),this.companionAds=e}}var o=n(0),i=n(36),a=n(18);r.prototype.isSupported=function(){return!this.linear||this.linear.isSupported()},r.parseCreatives=function(t){var e=[],n=void 0;return o.isDefined(t)&&o.isDefined(t.creative)&&(n=o.isArray(t.creative)?t.creative:[t.creative],n.forEach(function(t){e.push(new r(t))})),e},t.exports=r},function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);this.adTitle=i.keyValue(t.adTitle),this.adSystem=i.keyValue(t.adSystem),this.impressions=a.parseImpressions(t.impression),this.creatives=s.parseCreatives(t.creatives),this.description=i.keyValue(t.description),this.advertiser=i.keyValue(t.advertiser),this.surveys=function(t){return t?o.transformArray(o.isArray(t)?t:[t],function(t){if(o.isNotEmptyString(t.keyValue))return{uri:t.keyValue,type:t.attr("type")}}):[]}(t.survey),this.error=i.keyValue(t.error),this.pricing=i.keyValue(t.pricing),this.extensions=t.extensions}var o=n(0),i=n(2),a=n(4),s=n(16);r.prototype.isSupported=function(){var t=void 0,e=void 0;if(0===this.creatives.length)return!1;for(t=0,e=this.creatives.length;t0&&(e=o.extend({ASSETURI:this.assetURI,CONTENTPLAYHEAD:s.formatProgress(this.progress)},e||{}),s.track(t,e))},r.prototype.trackEvent=function(t,e){this.trackURLs(function(t){var e=void 0;return t&&(e=[],t.forEach(function(t){t.uri&&e.push(t.uri)})),e}(this.response.trackingEvents[t])),e&&(this.response.trackingEvents[t]=void 0)},r.prototype.trackProgress=function(t){function e(t,e,n){s[t]&&n&&i.push({name:t,trackOnce:Boolean(e)})}function n(t,e){var n=t.time;return e>=n&&e<=n+5e3}var r=this,i=[],a=!0,s=this.response.trackingEvents;o.isNumber(t)&&(e("start",a,t>0),e("rewind",!1,function(e,n){return e>t&&Math.abs(n-e)>3e3}(this.progress,t)),function(t){function o(t,r){var o=i[t];n(o,r)&&(o.tracked=!0,e(t,a,!0))}var i=r.quartiles,s=r.quartiles.firstQuartile,u=r.quartiles.midpoint,l=r.quartiles.thirdQuartile;s.tracked?u.tracked?l.tracked||o("thirdQuartile",t):o("midpoint",t):o("firstQuartile",t)}(t),function(t){if(o.isArray(s.progress)){var e=[];s.progress.forEach(function(n){n.offset<=t?r.trackURLs([n.uri]):e.push(n)}),s.progress=e}}(t),function(){i.forEach(function(t){r.trackEvent(t.name,t.trackOnce)})}(),this.progress=t)},["rewind","fullscreen","exitFullscreen","pause","resume","mute","unmute","acceptInvitation","acceptInvitationLinear","collapse","expand"].forEach(function(t){r.prototype["track"+o.capitalize(t)]=function(){this.trackEvent(t)}}),["start","skip","close","closeLinear"].forEach(function(t){r.prototype["track"+o.capitalize(t)]=function(){this.trackEvent(t,!0)}}),["firstQuartile","midpoint","thirdQuartile"].forEach(function(t){r.prototype["track"+o.capitalize(t)]=function(){this.quartiles[t].tracked=!0,this.trackEvent(t,!0)}}),r.prototype.trackComplete=function(){this.quartiles.thirdQuartile.tracked&&this.trackEvent("complete",!0)},r.prototype.trackErrorWithCode=function(t){o.isNumber(t)&&this.trackURLs(this.response.errorURLMacros,{ERRORCODE:t})},r.prototype.trackImpressions=function(){this.trackURLs(this.response.impressions)},r.prototype.trackCreativeView=function(){this.trackEvent("creativeView")},r.prototype.trackClick=function(){this.trackURLs(this.response.clickTrackings)},t.exports=r},function(t,e,n){"use strict";function r(t){function e(t){var e=[];return t&&(t=o.isArray(t)?t:[t],t.forEach(function(t){e.push(i.keyValue(t))})),e}if(!(this instanceof r))return new r(t);this.clickThrough=i.keyValue(t.clickThrough),this.clickTrackings=e(t.clickTracking),this.customClicks=e(t.customClick)}var o=n(0),i=n(2);t.exports=r},function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);this.adSystem=i.keyValue(t.adSystem),this.impressions=a.parseImpressions(t.impression),this.VASTAdTagURI=i.keyValue(t.vASTAdTagURI),this.creatives=s.parseCreatives(t.creatives),this.error=i.keyValue(t.error),this.extensions=t.extensions,this.followAdditionalWrappers=!o.isDefined(i.attr(t,"followAdditionalWrappers"))||i.attr(t,"followAdditionalWrappers"),this.allowMultipleAds=i.attr(t,"allowMultipleAds"),this.fallbackOnNoAd=i.attr(t,"fallbackOnNoAd")}var o=n(0),i=n(2),a=n(4),s=n(16);t.exports=r},function(t,e,n){"use strict";var r=n(0),o={duration:function(t){var e=void 0,n=void 0;return r.isString(t)&&(e=t.match(/(\d\d):(\d\d):(\d\d)(\.(\d\d\d))?/))&&(n=function(t){return 60*parseInt(t,10)*60*1e3}(e[1])+function(t){return 60*parseInt(t,10)*1e3}(e[2])+function(t){return 1e3*parseInt(t,10)}(e[3])+parseInt(e[5]||0,10)),isNaN(n)?null:n},offset:function(t,e){function n(t,e){return t*e/100}return function(t){return/^\d+(\.\d+)?%$/g.test(t)}(t)?function(t,e){return e?n(e,parseFloat(t.replace("%",""))):null}(t,e):o.duration(t)}};t.exports=o},function(t,e,n){"use strict";function r(t){var e=t;return u&&(s.setAttribute("href",e),e=s.href),s.setAttribute("href",e),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:a.isNotEmptyString(s.port)?s.port:80,pathname:"/"===s.pathname.charAt(0)?s.pathname:"/"+s.pathname}}function o(t,e){var n=void 0,r=void 0;return e=a.isFunction(e)?e:function(){return!0},t=t.trim().replace(/^\?/,""),n=t.split("&"),r={},a.forEach(n,function(t){var n=void 0,o=void 0,i=void 0;""!==t&&(n=t.split("="),o=n[0],i=n[1],e(o,i)&&(r[o]=i))}),r}function i(t){var e=[];return a.forEach(t,function(t,n){e.push(n+"="+t)}),e.join("&")}var a=n(0),s=document.createElement("a"),u=document.documentMode;t.exports={urlParts:r,queryStringToObj:o,objToQueryString:i}},function(t,e){var n=function(){function t(){if(!W){try{var t=D.getElementsByTagName("body")[0].appendChild(m("span"));t.parentNode.removeChild(t)}catch(t){return}W=!0;for(var e=V.length,n=0;n0)for(var e=0;e0){var i=y(n);if(i)if(!_(U[e].swfVersion)||Y.wk&&Y.wk<312)if(U[e].expressInstall&&u()){var a={};a.data=U[e].expressInstall,a.width=i.getAttribute("width")||"0",a.height=i.getAttribute("height")||"0",i.getAttribute("class")&&(a.styleclass=i.getAttribute("class")),i.getAttribute("align")&&(a.align=i.getAttribute("align"));for(var p={},d=i.getElementsByTagName("param"),f=d.length,h=0;h');o.outerHTML='"+s+"",B[B.length]=t.id,r=y(t.id)}else{var l=m(P);l.setAttribute("type",M);for(var c in t)t[c]!=Object.prototype[c]&&("styleclass"==c.toLowerCase()?l.setAttribute("class",t[c]):"classid"!=c.toLowerCase()&&l.setAttribute(c,t[c]));for(var p in e)e[p]!=Object.prototype[p]&&"movie"!=p.toLowerCase()&&f(l,p,e[p]);o.parentNode.replaceChild(l,o),r=l}return r}function f(t,e,n){var r=m("param");r.setAttribute("name",e),r.setAttribute("value",n),t.appendChild(r)}function h(t){var e=y(t);e&&"OBJECT"==e.nodeName&&(Y.ie&&Y.win?(e.style.display="none",function(){4==e.readyState?v(t):setTimeout(arguments.callee,10)}()):e.parentNode.removeChild(e))}function v(t){var e=y(t);if(e){for(var n in e)"function"==typeof e[n]&&(e[n]=null);e.parentNode.removeChild(e)}}function y(t){var e=null;try{e=D.getElementById(t)}catch(t){}return e}function m(t){return D.createElement(t)}function g(t,e,n){t.attachEvent(e,n),H[H.length]=[t,e,n]}function _(t){var e=Y.pv,n=t.split(".");return n[0]=parseInt(n[0],10),n[1]=parseInt(n[1],10)||0,n[2]=parseInt(n[2],10)||0,e[0]>n[0]||e[0]==n[0]&&e[1]>n[1]||e[0]==n[0]&&e[1]==n[1]&&e[2]>=n[2]}function b(t,e,n,r){if(!Y.ie||!Y.mac){var o=D.getElementsByTagName("head")[0];if(o){var i=n&&"string"==typeof n?n:"screen";if(r&&(A=null,x=null),!A||x!=i){var a=m("style");a.setAttribute("type","text/css"),a.setAttribute("media",i),A=o.appendChild(a),Y.ie&&Y.win&&typeof D.styleSheets!=O&&D.styleSheets.length>0&&(A=D.styleSheets[D.styleSheets.length-1]),x=i}Y.ie&&Y.win?A&&typeof A.addRule==P&&A.addRule(t,e):A&&typeof D.createTextNode!=O&&A.appendChild(D.createTextNode(t+" {"+e+"}"))}}}function w(t,e){if(q){var n=e?"visible":"hidden";W&&y(t)?y(t).style.visibility=n:b("#"+t,"visibility:"+n)}}function T(t){return null!=/[\\\"<>\.;]/.exec(t)&&typeof encodeURIComponent!=O?encodeURIComponent(t):t}var E,C,k,S,A,x,O="undefined",P="object",j="Shockwave Flash",M="application/x-shockwave-flash",I="SWFObjectExprInst",N="onreadystatechange",R=window,D=document,L=navigator,F=!1,V=[o],U=[],B=[],H=[],W=!1,z=!1,q=!0,Y=function(){var t=typeof D.getElementById!=O&&typeof D.getElementsByTagName!=O&&typeof D.createElement!=O,e=L.userAgent.toLowerCase(),n=L.platform.toLowerCase(),r=n?/win/.test(n):/win/.test(e),o=n?/mac/.test(n):/mac/.test(e),i=!!/webkit/.test(e)&&parseFloat(e.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")),a=!1,s=[0,0,0],u=null;if(typeof L.plugins!=O&&typeof L.plugins[j]==P)!(u=L.plugins[j].description)||typeof L.mimeTypes!=O&&L.mimeTypes[M]&&!L.mimeTypes[M].enabledPlugin||(F=!0,a=!1,u=u.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),s[0]=parseInt(u.replace(/^(.*)\..*$/,"$1"),10),s[1]=parseInt(u.replace(/^.*\.(.*)\s.*$/,"$1"),10),s[2]=/[a-zA-Z]/.test(u)?parseInt(u.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof R[["Active"].concat("Object").join("X")]!=O)try{var l=new(window[["Active"].concat("Object").join("X")])("ShockwaveFlash.ShockwaveFlash");l&&(u=l.GetVariable("$version"))&&(a=!0,u=u.split(" ")[1].split(","),s=[parseInt(u[0],10),parseInt(u[1],10),parseInt(u[2],10)])}catch(t){}return{w3:t,pv:s,wk:i,ie:a,win:r,mac:o}}();(function(){Y.w3&&((typeof D.readyState!=O&&"complete"==D.readyState||typeof D.readyState==O&&(D.getElementsByTagName("body")[0]||D.body))&&t(),W||(typeof D.addEventListener!=O&&D.addEventListener("DOMContentLoaded",t,!1),Y.ie&&Y.win&&(D.attachEvent(N,function(){"complete"==D.readyState&&(D.detachEvent(N,arguments.callee),t())}),R==top&&function(){if(!W){try{D.documentElement.doScroll("left")}catch(t){return void setTimeout(arguments.callee,0)}t()}}()),Y.wk&&function(){if(!W)/loaded|complete/.test(D.readyState)?t():setTimeout(arguments.callee,0)}(),r(t)))})(),function(){Y.ie&&Y.win&&window.attachEvent("onunload",function(){for(var t=H.length,e=0;er&&(_.pause(!0),_.play(!0),_.currentTime(o))}function e(){var t=_.currentTime();Math.abs(t-o)>r?(i+=1,i>=2&&_.pause(!0),_.currentTime(o)):o=t}function n(){_.off("timeupdate",e),_.off("ended",t)}var r=3,o=0,i=0;_.on("timeupdate",e),_.on("ended",t),c.once(_,["vast.adEnd","vast.adsCancel","vast.adError"],n)}(),_.vast.vastResponse=t,d.debug("calling adIntegrator.playAd() with vastResponse:",t),_.vast.adUnit=o.playAd(t,e)}}function y(t,e){_.trigger({type:"vast.adError",error:t}),n(),d.error("AD ERROR:",t.message,t,e)}function m(t){var e=void 0,n=void 0,r=t.mediaFiles;for(e=0,n=r.length;e0&&void 0!==arguments[0]&&arguments[0],arguments.length>1&&void 0!==arguments[1]&&arguments[1]}},{key:"initAd",value:function(t,e,n,r){arguments.length>4&&void 0!==arguments[4]&&arguments[4],arguments.length>5&&void 0!==arguments[5]&&arguments[5],arguments.length>6&&void 0!==arguments[6]&&arguments[6]}},{key:"resizeAd",value:function(t,e,n){arguments.length>3&&void 0!==arguments[3]&&arguments[3]}},{key:"startAd",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]}},{key:"stopAd",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]}},{key:"pauseAd",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]}},{key:"resumeAd",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]}},{key:"expandAd",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]}},{key:"collapseAd",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]}},{key:"skipAd",value:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]}},{key:"getAdLinear",value:function(t){}},{key:"getAdWidth",value:function(t){}},{key:"getAdHeight",value:function(t){}},{key:"getAdExpanded",value:function(t){}},{key:"getAdSkippableState",value:function(t){}},{key:"getAdRemainingTime",value:function(t){}},{key:"getAdDuration",value:function(t){}},{key:"setAdVolume",value:function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1]}},{key:"getAdVolume",value:function(t){}},{key:"getAdCompanions",value:function(t){}},{key:"getAdIcons",value:function(t){}}]),t}();Object.defineProperty(i,"EVENTS",{writable:!1,configurable:!1,value:["AdLoaded","AdStarted","AdStopped","AdSkipped","AdSkippableStateChange","AdSizeChange","AdLinearChange","AdDurationChange","AdExpandedChange","AdRemainingTimeChange","AdVolumeChange","AdImpression","AdVideoStart","AdVideoFirstQuartile","AdVideoMidpoint","AdVideoThirdQuartile","AdVideoComplete","AdClickThru","AdInteraction","AdUserAcceptInvitation","AdUserMinimize","AdUserClose","AdPaused","AdPlaying","AdLog","AdError"]})},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(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)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"2.0",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;this._flash.callFlashMethod("handshakeVersion",[t],e)}},{key:"initAd",value:function(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{AdParameters:""},i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{flashVars:""},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:void 0;this._flash.setSize(t,e),o=o||{AdParameters:""},i=i||{flashVars:""},this._flash.callFlashMethod("initAd",[this._flash.getWidth(),this._flash.getHeight(),n,r,o.AdParameters||"",i.flashVars||""],a)}},{key:"resizeAd",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;this._flash.setSize(t,e),this._flash.callFlashMethod("resizeAd",[this._flash.getWidth(),this._flash.getHeight(),n],r)}},{key:"startAd",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this._flash.callFlashMethod("startAd",[],t)}},{key:"stopAd",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this._flash.callFlashMethod("stopAd",[],t)}},{key:"pauseAd",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this._flash.callFlashMethod("pauseAd",[],t)}},{key:"resumeAd",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this._flash.callFlashMethod("resumeAd",[],t)}},{key:"expandAd",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this._flash.callFlashMethod("expandAd",[],t)}},{key:"collapseAd",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this._flash.callFlashMethod("collapseAd",[],t)}},{key:"skipAd",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this._flash.callFlashMethod("skipAd",[],t)}},{key:"getAdLinear",value:function(t){this._flash.callFlashMethod("getAdLinear",[],t)}},{key:"getAdWidth",value:function(t){this._flash.callFlashMethod("getAdWidth",[],t)}},{key:"getAdHeight",value:function(t){this._flash.callFlashMethod("getAdHeight",[],t)}},{key:"getAdExpanded",value:function(t){this._flash.callFlashMethod("getAdExpanded",[],t)}},{key:"getAdSkippableState",value:function(t){this._flash.callFlashMethod("getAdSkippableState",[],t)}},{key:"getAdRemainingTime",value:function(t){this._flash.callFlashMethod("getAdRemainingTime",[],t)}},{key:"getAdDuration",value:function(t){this._flash.callFlashMethod("getAdDuration",[],t)}},{key:"setAdVolume",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;this._flash.callFlashMethod("setAdVolume",[t],e)}},{key:"getAdVolume",value:function(t){this._flash.callFlashMethod("getAdVolume",[],t)}},{key:"getAdCompanions",value:function(t){this._flash.callFlashMethod("getAdCompanions",[],t)}},{key:"getAdIcons",value:function(t){this._flash.callFlashMethod("getAdIcons",[],t)}}]),e}(s)},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{data:"VPAIDFlash.swf",width:800,height:400};r(this,t),this.parentEl=l.createElementWithID(e,s),l.hideFlashEl(this.parentEl);var a={};a.movie=o.data,a.FlashVars="flashid="+s+"&handler="+u.VPAID_FLASH_HANDLER,a.allowScriptAccess="always",this.el=i.createSWF(o,a,s),this._handlers=new c,this._isSupported=!1,this.el&&(l.hideFlashEl(this.el),this._flash=new u(this.el,o.data,s,o.width,o.height,function(){n._isSupported=!0,n._handlers.get("change").forEach(function(t){setTimeout(function(){t("change",!0)},0)})}))}return o(t,[{key:"isSupported",value:function(){return this._isSupported}},{key:"on",value:function(t,e){this._handlers.add(t,e)}}]),t}();e.createFlashTester=function(t,e){return window[a]||(window[a]=new p(t,e)),window[a]}},function(t,e,n){"use strict";var r=n(7).SingleValueRegistry,o=new r,i={};Object.defineProperty(i,"addInstance",{writable:!1,configurable:!1,value:function(t,e){o.add(t,e)}}),Object.defineProperty(i,"getInstanceByID",{writable:!1,configurable:!1,value:function(t){return o.get(t)}}),Object.defineProperty(i,"removeInstanceByID",{writable:!1,configurable:!1,value:function(t){return o.remove(t)}}),t.exports=i},function(t,e,n){"use strict";function r(t,e,n){}function o(t,e,n){Object.defineProperty(t,e,{writable:!1,configurable:!1,value:n})}var i=["handshakeVersion","initAd","startAd","stopAd","skipAd","resizeAd","pauseAd","resumeAd","expandAd","collapseAd","subscribe","unsubscribe"],a=["AdLoaded","AdStarted","AdStopped","AdSkipped","AdSkippableStateChange","AdSizeChange","AdLinearChange","AdDurationChange","AdExpandedChange","AdRemainingTimeChange","AdVolumeChange","AdImpression","AdVideoStart","AdVideoFirstQuartile","AdVideoMidpoint","AdVideoThirdQuartile","AdVideoComplete","AdClickThru","AdInteraction","AdUserAcceptInvitation","AdUserMinimize","AdUserClose","AdPaused","AdPlaying","AdLog","AdError"],s=["getAdLinear","getAdWidth","getAdHeight","getAdExpanded","getAdSkippableState","getAdRemainingTime","getAdDuration","getAdVolume","getAdCompanions","getAdIcons"],u=["setAdVolume"];r.prototype.handshakeVersion=function(t,e){},r.prototype.initAd=function(t,e,n,r,o,i,a){},r.prototype.startAd=function(t){},r.prototype.stopAd=function(t){},r.prototype.skipAd=function(t){},r.prototype.resizeAd=function(t,e,n,r){},r.prototype.pauseAd=function(t){},r.prototype.resumeAd=function(t){},r.prototype.expandAd=function(t){},r.prototype.collapseAd=function(t){},r.prototype.subscribe=function(t,e,n){},r.prototype.unsubscribe=function(t,e){},r.prototype.getAdLinear=function(t){},r.prototype.getAdWidth=function(t){},r.prototype.getAdHeight=function(t){},r.prototype.getAdExpanded=function(t){},r.prototype.getAdSkippableState=function(t){},r.prototype.getAdRemainingTime=function(t){},r.prototype.getAdDuration=function(t){},r.prototype.getAdVolume=function(t){},r.prototype.getAdCompanions=function(t){},r.prototype.getAdIcons=function(t){},r.prototype.setAdVolume=function(t,e){},o(r,"METHODS",i),o(r,"GETTERS",s),o(r,"SETTERS",u),o(r,"EVENTS",a);var l=i.filter(function(t){return-1===["skipAd"].indexOf(t)});o(r,"checkVPAIDInterface",function(t){return l.every(function(e){return"function"==typeof t[e]})}),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){this._isValid=c(t),this._isValid&&(this._creative=t,this._el=e,this._videoEl=n,this._iframe=r,this._subscribers=new l,p.setFullSizeStyle(e),o.call(this))}function o(){if(h.forEach(function(t){this._creative.subscribe(a.bind(this,t),t)}.bind(this)),this._creative.subscribe(i.bind(this),f),this._videoEl){var t=this._iframe.contentDocument.documentElement,e=this._videoEl;t.addEventListener("click",function(n){n.target===t&&e.click()})}}function i(t,e,n){this._subscribers.triggerSync(f,{url:t,id:e,playerHandles:n})}function a(t){this._subscribers.trigger(t,Array.prototype.slice(arguments,1))}function s(t,e,n,r){t?t(n,r):n&&e.trigger(d,n)}var u=n(32),l=n(35),c=u.checkVPAIDInterface,p=n(14),d=(u.METHODS,"AdError"),f="AdClickThru",h=u.EVENTS.filter(function(t){return t!=f});r.prototype=Object.create(u.prototype),r.prototype.isValidVPAIDAd=function(){return this._isValid},u.METHODS.forEach(function(t){-1===["subscribe","unsubscribe","initAd"].indexOf(t)&&(r.prototype[t]=function(){var e=u.prototype[t].length,n=Array.prototype.slice.call(arguments),r=e===n.length?n.pop():void 0;setTimeout(function(){var e,o=null;try{e=this._creative[t].apply(this._creative,n)}catch(t){o=t}s(r,this._subscribers,o,e)}.bind(this),0)})}),r.prototype.initAd=function(t,e,n,r,o,i,a){o=o||{},i=p.extend({slot:this._el,videoSlot:this._videoEl},i||{}),setTimeout(function(){var u;try{this._creative.initAd(t,e,n,r,o,i)}catch(t){u=t}s(a,this._subscribers,u)}.bind(this),0)},r.prototype.subscribe=function(t,e,n){this._subscribers.subscribe(e,t,n)},r.prototype.unsubscribe=function(t,e){this._subscribers.unsubscribe(e,t)},r.prototype.on=r.prototype.subscribe,r.prototype.off=r.prototype.unsubscribe,u.GETTERS.forEach(function(t){r.prototype[t]=function(e){setTimeout(function(){var n,r=null;try{n=this._creative[t]()}catch(t){r=t}s(e,this._subscribers,r,n)}.bind(this),0)}}),r.prototype.setAdVolume=function(t,e){setTimeout(function(){var n,r=null;try{this._creative.setAdVolume(t),n=this._creative.getAdVolume()}catch(t){r=t}r||(r=p.validate(n===t,"failed to apply volume: "+t)),s(e,this._subscribers,r,n)}.bind(this),0)},r.prototype._destroy=function(){this.stopAd(),this._subscribers.unsubscribeAll()},t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){n=n||{},this._id=f(),this._destroyed=!1,this._frameContainer=d.createElementInEl(t,"div"),this._videoEl=e,this._vpaidOptions=r||{timeout:1e4},this._templateConfig={template:n.template||v,extraOptions:n.extraOptions||{}}}function o(t){var e=this[t];e&&(e.remove(),delete this[t])}function i(){s.call(this),delete this._adUnit}function a(){s.call(this),l.call(this)}function s(){o.call(this,"_frame"),u.call(this)}function u(){this._onLoad&&(window.removeEventListener("message",this._onLoad),d.clearCallbackTimeout(this._onLoad),delete this._onLoad)}function l(){this._adUnit&&(this._adUnit.stopAd(),delete this._adUnit)}function c(){if(this._destroyed)throw new Error("VPAIDHTML5Client already destroyed!")}function p(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}var d=n(14),f=d.unique("vpaidIframe"),h=n(33),v='
';r.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,a.call(this))},r.prototype.isDestroyed=function(){return this._destroyed},r.prototype.loadAdUnit=function(t,e){function n(t){if(t.origin===p()&&JSON.parse(t.data).id===o.getID()){var n,r,a;if(o._frame.contentWindow?(a=o._frame.contentWindow.getVPAIDAd,r=d.validate("function"==typeof a,"the ad didn't return a function to create an ad")):r="the iframe is not anymore in the DOM tree",!r){var s=o._frame.contentWindow.document.querySelector(".ad-element");n=new h(a(),s,o._videoEl,o._frame),n.subscribe("AdStopped",i.bind(o)),r=d.validate(n.isValidVPAIDAd(),"the add is not fully complaint with VPAID specification")}return o._adUnit=n,u.call(o),e(r,r?null:n),!0}}function r(){e("timeout",null)}c.call(this),a.call(this);var o=this,s=d.createIframeWithContent(this._frameContainer,this._templateConfig.template,d.extend({iframeURL_JS:t,iframeID:this.getID(),origin:p()},this._templateConfig.extraOptions));this._frame=s,this._onLoad=d.callbackTimeout(this._vpaidOptions.timeout,n.bind(this),r.bind(this)),window.addEventListener("message",this._onLoad)},r.prototype.unloadAdUnit=function(){a.call(this)},r.prototype.getID=function(){return this._id},t.exports=r},function(t,e,n){"use strict";function r(){this._subscribers={}}r.prototype.subscribe=function(t,e,n){this.isHandlerAttached(t,e)||this.get(e).push({handler:t,context:n,eventName:e})},r.prototype.unsubscribe=function(t,e){this._subscribers[e]=this.get(e).filter(function(e){return t!==e.handler})},r.prototype.unsubscribeAll=function(){this._subscribers={}},r.prototype.trigger=function(t,e){var n=this;this.get(t).concat(this.get("*")).forEach(function(t){setTimeout(function(){n.isHandlerAttached(t.handler,t.eventName)&&t.handler.call(t.context,e)},0)})},r.prototype.triggerSync=function(t,e){this.get(t).concat(this.get("*")).forEach(function(t){t.handler.call(t.context,e)})},r.prototype.get=function(t){return this._subscribers[t]||(this._subscribers[t]=[]),this._subscribers[t]},r.prototype.isHandlerAttached=function(t,e){return this.get(e).some(function(e){return t===e.handler})},t.exports=r},function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);a.info(" found companion ad"),a.debug(" companionJTree:",t),this.creativeType=i.attr(t.staticResource,"creativeType"),this.staticResource=i.keyValue(t.staticResource),a.info(" creativeType: "+this.creativeType),a.info(" staticResource: "+this.staticResource);var e=null;i.keyValue(t.HTMLResource)?e=i.keyValue(t.HTMLResource):i.keyValue(t.hTMLResource)&&(e=i.keyValue(t.hTMLResource)),null!==e&&a.info(" found html resource",e),this.htmlResource=e;var n=null;i.keyValue(t.IFrameResource)?n=i.keyValue(t.IFrameResource):i.keyValue(t.iFrameresource)&&(n=i.keyValue(t.iFrameresource)),null!==n&&a.info(" found iframe resource",n),this.iframeResource=n,this.id=i.attr(t,"id"),this.width=i.attr(t,"width"),this.height=i.attr(t,"height"),this.expandedWidth=i.attr(t,"expandedWidth"),this.expandedHeight=i.attr(t,"expandedHeight"),this.scalable=i.attr(t,"scalable"),this.maintainAspectRatio=i.attr(t,"maintainAspectRatio"),this.minSuggestedDuration=i.attr(t,"minSuggestedDuration"),this.apiFramework=i.attr(t,"apiFramework"),this.companionClickThrough=i.keyValue(t.companionClickThrough),this.trackingEvents=function(t){var e=[];return o.isDefined(t)&&(t=o.isArray(t)?t:[t],t.forEach(function(t){e.push(new s(t))})),e}(t.trackingEvents&&t.trackingEvents.tracking),a.info(" companionClickThrough: "+this.companionClickThrough)}var o=n(0),i=n(2),a=n(5),s=n(19);t.exports=r},function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);this.src=o.keyValue(t);for(var e=0;e=h.WRAPPER_LIMIT)return n(new c("on VASTClient.getVASTAd.getAd, players wrapper limit reached (the limit is "+h.WRAPPER_LIMIT+")",302),e);o.waterfall([function(e){a.isString(t)?f(t,e):e(null,t)},p],function(t,r){return r&&e.push(r),t?n(t,e):r.wrapper?i(r.wrapper.VASTAdTagURI,e,n):n(null,e)})}function p(t,e){try{var n=new l(t);e(d(n),n)}catch(t){e(new c("on VASTClient.getVASTAd.buildAd, error parsing xml",100),null)}}function d(t){var e=t.wrapper,n=t.inLine,r="on VASTClient.getVASTAd.validateAd, ";return n&&e?new c(r+"InLine and Wrapper both found on the same Ad",101):n||e?n&&!n.isSupported()?new c(r+"could not find MediaFile that is supported by this video player",403):e&&!e.VASTAdTagURI?new c(r+"missing 'VASTAdTagURI' in wrapper",101):null:new c(r+"nor wrapper nor inline elements found on the Ad",101)}function f(t,e){h._requestVASTXml(t,function(t,n){if(t)return e(t);try{var o=s.toJXONTree(n);e(r(o),o.ad)}catch(t){e(new c("on VASTClient.getVASTAd.requestVASTAd, error parsing xml",100))}})}var h=this;!function(t,e){var r=h._requestVASTXml.bind(h,t);o.waterfall([r,n],e)}(t,function(t,n){function r(t,n){t?(h._trackError(t,n),o.length>0?i(o.shift(),[],r):e(t,n)):e(null,n)}var o=n&&a.isArray(n.ads)?n.ads:null;if(t)return h._trackError(t,o),e(t,o);i(o.shift(),[],r)})},r.prototype._requestVASTXml=function(t,e){function n(t,n,r){if(t){var o=a.isDefined(r)?"on VASTClient.requestVastXML, HTTP request error with status '"+r+"'":"on VASTClient.requestVastXML, Error getting the the VAST XML with he passed adTagXML fn";return e(new c(o,301),null)}e(null,n)}try{a.isFunction(t)?t(n):(u.info("requesting adTag: "+t),i.get(t,n,{withCredentials:!0}))}catch(t){e(t)}},r.prototype._buildVASTResponse=function(t){var e=new p;return function(t,e){e.forEach(function(e){t.addAd(e)})}(e,t),function(t){var e=t.trackingEvents.progress;if(!t.hasLinear())throw new c("on VASTClient._buildVASTResponse, Received an Ad type that is not supported",200);if(void 0===t.duration)throw new c("on VASTClient._buildVASTResponse, Missing duration field in VAST response",101);e&&e.forEach(function(t){if(!a.isNumber(t.offset))throw new c("on VASTClient._buildVASTResponse, missing or wrong offset attribute on progress tracking event",101)})}(e),e},r.prototype._trackError=function(t,e){function n(t){t.wrapper&&t.wrapper.error&&r.push(t.wrapper.error),t.inLine&&t.inLine.error&&r.push(t.inLine.error)}if(a.isArray(e)&&0!==e.length){var r=[];e.forEach(n),d.track(r,{ERRORCODE:t.code||900})}},t.exports=r},function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);this.player=t}var o=n(9),i=n(6),a=n(11),s=n(0),u=n(5),l=n(8),c=n(3),p=n(20),d=n(4);r.prototype.playAd=function(t,e){var n=this;return e=e||s.noop,t instanceof l?(o.waterfall([function(e){e(null,t)},this._selectAdSource.bind(this),this._createVASTTracker.bind(this),this._addClickThrough.bind(this),this._addSkipButton.bind(this),this._setupEvents.bind(this),this._playSelectedAd.bind(this)],function(t,r){t&&r&&n._trackError(t,r),e(t,r)}),this._adUnit={_src:null,type:"VAST",pauseAd:function(){n.player.pause(!0)},resumeAd:function(){n.player.play(!0)},isPaused:function(){return n.player.paused(!0)},getSrc:function(){return this._src}},this._adUnit):e(new c("On VASTIntegrator, missing required VASTResponse"))},r.prototype._selectAdSource=function(t,e){var n=void 0,r=i.getDimension(this.player.el()).width,o=t.mediaFiles.filter(function(t){return t.isSupported()});if(o.sort(function(t,e){return Math.abs(r-t.width)-Math.abs(r-e.width)}),n=this.player.selectSource(o).source)return u.info("selected source: ",n),this._adUnit&&(this._adUnit._src=n),e(null,n,t);e(new c("Could not find Ad mediafile supported by this player",403),t)},r.prototype._createVASTTracker=function(t,e,n){try{n(null,t,new p(t.src,e),e)}catch(t){n(t,e)}},r.prototype._setupEvents=function(t,e,n,r){function o(){d.off("fullscreenchange",i),d.off("vast.adStart",l),d.off("pause",s),d.off("timeupdate",u),d.off("volumechange",c)}function i(){d.isFullscreen()?e.trackFullscreen():e.trackExitFullscreen()}function s(){Math.abs(d.duration()-d.currentTime())<2||(e.trackPause(),a.once(d,["play","vast.adEnd","vast.adsCancel"],function(t){"play"===t.type&&e.trackResume()}))}function u(){var t=1e3*d.currentTime();e.trackProgress(t)}function l(){e.trackImpressions(),e.trackCreativeView()}function c(){var t=d.muted();t?e.trackMute():p&&e.trackUnmute(),p=t}var p=void 0,d=this.player;return d.on("fullscreenchange",i),d.on("vast.adStart",l),d.on("pause",s),d.on("timeupdate",u),d.on("volumechange",c),a.once(d,["vast.adEnd","vast.adsCancel"],o),a.once(d,["vast.adEnd","vast.adsCancel","vast.adSkip"],function(t){"vast.adEnd"===t.type&&e.trackComplete()}),r(null,t,n)},r.prototype._addSkipButton=function(t,e,n,r){function o(t){var n=window.document.createElement("div");return i.addClass(n,"vast-skip-button"),n.onclick=function(r){if(i.hasClass(n,"enabled")&&(e.trackSkip(),t.trigger("vast.adSkip")),void 0===window.Event.prototype.stopPropagation)return!1;r.stopPropagation()},n}function u(t,e,n){var r=Math.ceil(e-n.currentTime());r>0?t.innerHTML="Skip in "+s.toFixedDigits(r,2)+"...":i.hasClass(t,"enabled")||(i.addClass(t,"enabled"),t.innerHTML="Skip ad")}var l=void 0,c=this;s.isNumber(n.skipoffset)&&(l=n.skipoffset/1e3,function(t,e){function n(){t.off("timeupdate",s),i.remove(r)}var r=o(t),s=u.bind(c,r,e,t);t.el().appendChild(r),t.on("timeupdate",s),a.once(t,["vast.adEnd","vast.adsCancel"],n)}(this.player,l)),r(null,t,e,n)},r.prototype._addClickThrough=function(t,e,n,r){function o(t,e,n){t.href=u(e.clickThrough,n)}function u(e,n){var r={ASSETURI:t.src,CONTENTPLAYHEAD:d.formatProgress(1e3*n.currentTime())};return e?d.parseURLMacro(e,r):"#"}function l(){c.off("timeupdate",f),i.remove(p)}var c=this.player,p=function(t,e,n){var r=window.document.createElement("a"),o=n.clickThrough;return i.addClass(r,"vast-blocker"),r.href=u(o,t),s.isString(o)&&(r.target="_blank"),r.onclick=function(n){if(t.paused())return t.play(),void 0!==window.Event.prototype.stopPropagation&&n.stopPropagation(),!1;t.pause(),e.trackClick()},r}(c,e,n),f=o.bind(this,p,n,c);return c.el().insertBefore(p,c.controlBar.el()),c.on("timeupdate",f),a.once(c,["vast.adEnd","vast.adsCancel"],l),r(null,t,e,n)},r.prototype._playSelectedAd=function(t,e,n){function r(){a.once(o,["playing","vast.adsCancel"],function(t){function r(t){"ended"===t.type&&o.duration()-o.currentTime()>3||(o.off("ended",r),o.off("vast.adsCancel",r),o.off("vast.adSkip",r),"ended"!==t.type&&"vast.adSkip"!==t.type||n(null,e))}"vast.adsCancel"!==t.type&&(u.debug(" got playing event; triggering vast.adStart..."),o.trigger("vast.adStart"),o.on("ended",r),o.on("vast.adsCancel",r),o.on("vast.adSkip",r))}),u.debug(" calling player.play()..."),o.play()}var o=this.player;o.preload("auto"),o.src(t),u.debug(" waiting for durationchange to play the ad..."),a.once(o,["durationchange","error","vast.adsCancel"],function(t){"durationchange"===t.type?(u.debug(" got durationchange; calling playAd()"),r()):"error"===t.type&&n(new c("on VASTIntegrator, Player is unable to play the Ad",400),e)})},r.prototype._trackError=function(t,e){d.track(e.errorURLMacros,{ERRORCODE:t.code||900})},t.exports=r},function(t,e,n){"use strict";function r(t,e){if(!(this instanceof r))return new r(t,e);!function(t,e){if(!t||!r.checkVPAIDInterface(t))throw new o("on VPAIDAdUnitWrapper, the passed VPAID adUnit does not fully implement the VPAID interface");if(!i.isObject(e))throw new o("on VPAIDAdUnitWrapper, expected options hash but got '"+e+"'");if(!("responseTimeout"in e&&i.isNumber(e.responseTimeout)))throw new o("on VPAIDAdUnitWrapper, expected responseTimeout in options")}(t,e),this.options=i.extend({},e),this._adUnit=t}var o=n(3),i=n(0);r.checkVPAIDInterface=function(t){for(var e=["handshakeVersion","initAd","startAd","stopAd","resizeAd","pauseAd","expandAd","collapseAd"],n=0,r=e.length;n-1&&r.VPAIDFLASHClient.isSupported()},r.prototype.loadAdUnit=function(t,e,n){var o=this,i=this.settings&&this.settings.vpaidFlashLoaderPath?{data:this.settings.vpaidFlashLoaderPath}:void 0;!function(t,e){if(!u.isDomElement(t))throw new a("on VPAIDFlashTech.loadAdUnit, invalid dom container element");if(!s.isFunction(e))throw new a("on VPAIDFlashTech.loadAdUnit, missing valid callback")}(t,n),this.containerEl=t,l.debug(" loading VPAIDFLASHClient with opts:",i),this.vpaidFlashClient=new r.VPAIDFLASHClient(t,function(t){if(t)return n(t);l.info(" calling VPAIDFLASHClient.loadAdUnit(); that.mediaFile:",o.mediaFile),o.vpaidFlashClient.loadAdUnit(o.mediaFile.src,n)},i)},r.prototype.unloadAdUnit=function(){if(this.vpaidFlashClient){try{this.vpaidFlashClient.destroy()}catch(t){l.error("VAST ERROR: trying to unload the VPAID adunit")}this.vpaidFlashClient=null}this.containerEl&&(u.remove(this.containerEl),this.containerEl=null)},t.exports=r},function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);!function(t){if(!t||!s.isString(t.src))throw new a(r.INVALID_MEDIA_FILE)}(t),this.name="vpaid-html5",this.containerEl=null,this.videoEl=null,this.vpaidHTMLClient=null,this.mediaFile=t}var o=n(34),i=n(10),a=n(3),s=n(0),u=n(6),l=n(5);r.VPAIDHTML5Client=o,r.supports=function(t){return!s.isOldIE()&&i.html5.indexOf(t)>-1},r.prototype.loadAdUnit=function(t,e,n){!function(t,e,n){if(!u.isDomElement(t))throw new a(r.INVALID_DOM_CONTAINER_EL);if(!u.isDomElement(e)||"video"!==e.tagName.toLowerCase())throw new a(r.INVALID_DOM_CONTAINER_EL);if(!s.isFunction(n))throw new a(r.MISSING_CALLBACK)}(t,e,n),this.containerEl=t,this.videoEl=e,this.vpaidHTMLClient=new r.VPAIDHTML5Client(t,e,{}),this.vpaidHTMLClient.loadAdUnit(this.mediaFile.src,n)},r.prototype.unloadAdUnit=function(){if(this.vpaidHTMLClient){try{this.vpaidHTMLClient.destroy()}catch(t){l.error("VAST ERROR: trying to unload the VPAID adunit")}this.vpaidHTMLClient=null}this.containerEl&&(u.remove(this.containerEl),this.containerEl=null)};var c="on VPAIDHTML5Tech";r.INVALID_MEDIA_FILE=c+", invalid MediaFile",r.INVALID_DOM_CONTAINER_EL=c+", invalid container HtmlElement",r.INVALID_DOM_VIDEO_EL=c+", invalid HTMLVideoElement",r.MISSING_CALLBACK=c+", missing valid callback",t.exports=r},function(t,e,n){"use strict";function r(t,e){if(!(this instanceof r))return new r(t);this.VIEW_MODE={NORMAL:"normal",FULLSCREEN:"fullscreen",THUMBNAIL:"thumbnail"},this.player=t,this.containerEl=function(){var e=document.createElement("div");return d.addClass(e,"VPAID-container"),t.el().insertBefore(e,t.controlBar.el()),e}(),this.options={responseTimeout:5e3,VPAID_VERSION:"2.0"},this.settings=e}function o(t,e,n){var r=t.el().querySelector(".vjs-tech"),o=d.getDimension(r),a=t.isFullscreen()?n.FULLSCREEN:n.NORMAL;e.resizeAd(o.width,o.height,a,i)}function i(t){t&&v.error("ERROR: "+t.message,t)}var a=n(10),s=n(3),u=n(8),l=n(20),c=n(4),p=n(9),d=n(6),f=n(11),h=n(0),v=n(5),y=n(40);r.prototype.playAd=function(t,e){function n(t,n,r){t&&r&&i._trackError(r,t.code),a.trigger("vpaid.adEnd"),e(t,r)}function r(){a.trigger("vpaid.adEnd")}function o(){l&&l.unloadAdUnit(),d.removeClass(a.el(),"vjs-vpaid-ad")}if(!(t instanceof u))return e(new s("on VASTIntegrator.playAd, missing required VASTResponse"));var i=this,a=this.player;v.debug(" looking for supported tech...");var l=this._findSupportedTech(t,this.settings);if(e=e||h.noop,this._adUnit=null,d.addClass(a.el(),"vjs-vpaid-ad"),a.on("vast.adsCancel",r),a.one("vpaid.adEnd",function(){a.off("vast.adsCancel",r),o()}),l)v.info(" found tech: ",l),p.waterfall([function(e){e(null,l,t)},this._loadAdUnit.bind(this),this._playAdUnit.bind(this),this._finishPlaying.bind(this)],n),this._adUnit={_paused:!0,type:"VPAID",pauseAd:function(){a.trigger("vpaid.pauseAd"),a.pause(!0)},resumeAd:function(){a.trigger("vpaid.resumeAd")},isPaused:function(){return this._paused},getSrc:function(){return l.mediaFile}};else{v.debug(" could not find suitable tech");n(new s("on VPAIDIntegrator.playAd, could not find a supported mediaFile",403),this._adUnit,t)}return this._adUnit},r.prototype._findSupportedTech=function(t,e){if(!(t instanceof u))return null;var n=t.mediaFiles.filter(c.isVPAID),r=e&&e.preferredTech,o=[],i=void 0,s=void 0,l=void 0,p=void 0;for(i=0,s=n.length;i-1))return new p(l,e);o.push({mediaFile:l,tech:p})}if(o.length){var d=o[0];return new d.tech(d.mediaFile,e)}return null},r.prototype._createVPAIDAdUnitWrapper=function(t,e,n){return new y(t,{src:e,responseTimeout:n})},r.prototype._loadAdUnit=function(t,e,n){var r=this,o=this.player,i=o.el().querySelector(".vjs-tech"),a=this.settings.responseTimeout||this.options.responseTimeout;t.loadAdUnit(this.containerEl,i,function(i,s){if(i)return n(i,s,e);try{var u=r._createVPAIDAdUnitWrapper(s,t.mediaFile.src,a),l="vjs-"+t.name+"-ad";d.addClass(o.el(),l),o.one("vpaid.adEnd",function(){d.removeClass(o.el(),l)}),n(null,u,e)}catch(t){n(t,s,e)}})},r.prototype._playAdUnit=function(t,e,n){p.waterfall([function(n){n(null,t,e)},this._handshake.bind(this),this._initAd.bind(this),this._setupEvents.bind(this),this._addSkipButton.bind(this),this._linkPlayerControls.bind(this),this._startAd.bind(this)],n)},r.prototype._handshake=function(t,e,n){function r(t){var e=o(t);return e>=1&&e<=2}function o(t){var e=t.split(".");return parseInt(e[0],10)}t.handshakeVersion(this.options.VPAID_VERSION,function(o,i){return o?n(o,t,e):i&&r(i)?n(null,t,e):n(new s('on VPAIDIntegrator._handshake, unsupported version "'+i+'"'),t,e)})},r.prototype._initAd=function(t,e,n){var r=this.player.el().querySelector(".vjs-tech"),o=d.getDimension(r);t.initAd(o.width,o.height,this.VIEW_MODE.NORMAL,-1,{AdParameters:e.adParameters||""},function(r){n(r,t,e)})},r.prototype._createVASTTracker=function(t,e){return new l(t,e)},r.prototype._setupEvents=function(t,e,n){function r(){f._adUnit&&f._adUnit.isPaused()&&(f._adUnit._paused=!1),p.trigger("play")}function i(){f._adUnit&&(f._adUnit._paused=!0),p.trigger("pause")}function a(){t.pauseAd(h.noop)}function s(){t.resumeAd(h.noop)}var u=t.options.src,l=this._createVASTTracker(u,e),p=this.player,f=this;t.on("AdSkipped",function(){p.trigger("vpaid.AdSkipped"),l.trackSkip()}),t.on("AdImpression",function(){p.trigger("vpaid.AdImpression"),l.trackImpressions()}),t.on("AdStarted",function(){p.trigger("vpaid.AdStarted"),l.trackCreativeView(),r()}),t.on("AdVideoStart",function(){p.trigger("vpaid.AdVideoStart"),l.trackStart(),r()}),t.on("AdPlaying",function(){p.trigger("vpaid.AdPlaying"),l.trackResume(),r()}),t.on("AdPaused",function(){p.trigger("vpaid.AdPaused"),l.trackPause(),i()}),t.on("AdVideoFirstQuartile",function(){p.trigger("vpaid.AdVideoFirstQuartile"),l.trackFirstQuartile()}),t.on("AdVideoMidpoint",function(){p.trigger("vpaid.AdVideoMidpoint"),l.trackMidpoint()}),t.on("AdVideoThirdQuartile",function(){p.trigger("vpaid.AdVideoThirdQuartile"),l.trackThirdQuartile()}),t.on("AdVideoComplete",function(){p.trigger("vpaid.AdVideoComplete"),l.trackComplete()}),t.on("AdClickThru",function(n){p.trigger("vpaid.AdClickThru");var r=n.url,o=n.playerHandles,i=h.isNotEmptyString(r)?r:function(e){var n={ASSETURI:t.options.src,CONTENTPLAYHEAD:0};return e?c.parseURLMacro(e,n):null}(e.clickThrough);l.trackClick(),o&&i&&window.open(i,"_blank")}),t.on("AdUserAcceptInvitation",function(){p.trigger("vpaid.AdUserAcceptInvitation"),l.trackAcceptInvitation(),l.trackAcceptInvitationLinear()}),t.on("AdUserClose",function(){p.trigger("vpaid.AdUserClose"),l.trackClose(),l.trackCloseLinear()}),t.on("AdUserMinimize",function(){p.trigger("vpaid.AdUserMinimize"),l.trackCollapse()}),t.on("AdError",function(){p.trigger("vpaid.AdError"),l.trackErrorWithCode(901)}),t.on("AdVolumeChange",function(){p.trigger("vpaid.AdVolumeChange");var e=p.volume();t.getAdVolume(function(t,n){e!==n&&(0===n&&e>0&&l.trackMute(),n>0&&0===e&&l.trackUnmute(),p.volume(n))})});var v=o.bind(this,p,t,this.VIEW_MODE),y=h.throttle(v,100),m=this.settings.autoResize;m&&(d.addEventListener(window,"resize",y),d.addEventListener(window,"orientationchange",y)),p.on("vast.resize",v),p.on("vpaid.pauseAd",a),p.on("vpaid.resumeAd",s),p.one("vpaid.adEnd",function(){p.off("vast.resize",v),p.off("vpaid.pauseAd",a),p.off("vpaid.resumeAd",s),m&&(d.removeEventListener(window,"resize",y),d.removeEventListener(window,"orientationchange",y))}),n(null,t,e)},r.prototype._addSkipButton=function(t,e,n){function r(){u.trigger("vpaid.AdSkippableStateChange"),t.getAdSkippableState(function(t,e){e?s||o(u):i()})}function o(t){s=a(),t.el().appendChild(s)}function i(){d.remove(s),s=null}function a(){var e=window.document.createElement("div");return d.addClass(e,"vast-skip-button"),d.addClass(e,"enabled"),e.innerHTML="Skip ad",e.onclick=function(e){if(t.skipAd(h.noop),void 0===window.Event.prototype.stopPropagation)return!1;e.stopPropagation()},e}var s=void 0,u=this.player;t.on("AdSkippableStateChange",r),f.once(u,["vast.adEnd","vast.adsCancel"],i),n(null,t,e)},r.prototype._linkPlayerControls=function(t,e,n){var r=this;!function(t,e){function n(){var n=t.muted()?0:t.volume();e.setAdVolume(n,i)}function r(){t.trigger("vpaid.AdVolumeChange");var n=t.volume();e.getAdVolume(function(e,r){e?i(e):n!==r&&t.volume(r)})}t.on("volumechange",n),e.on("AdVolumeChange",r),t.one("vpaid.adEnd",function(){t.off("volumechange",n)})}(this.player,t),function(t,e,n){var i=o.bind(r,t,e,n);t.on("fullscreenchange",i),t.one("vpaid.adEnd",function(){t.off("fullscreenchange",i)})}(this.player,t,this.VIEW_MODE),n(null,t,e)},r.prototype._startAd=function(t,e,n){var r=this.player;t.startAd(function(o){o||r.trigger("vast.adStart"),n(o,t,e)})},r.prototype._finishPlaying=function(t,e,n){function r(r){n(r,t,e)}var o=this.player;t.on("AdStopped",function(){o.trigger("vpaid.AdStopped"),r(null)}),t.on("AdError",function(t){var e=t?t.message:"on VPAIDIntegrator, error while waiting for the adUnit to finish playing";r(new s(e))})},r.prototype._trackError=function(t,e){c.track(t.errorURLMacros,{ERRORCODE:e||901})},t.exports=r},function(t,e,n){"use strict";var r=n(6),o=document.createElement("div");o.className="vjs-ads-label vjs-control vjs-label-hidden",o.innerHTML="Advertisement";var i=function(t){return{init:function(e,n){n.el=o,t.call(this,e,n),setTimeout(function(){var t=e.controlBar&&(e.controlBar.getChild("timerControls")||e.controlBar.getChild("currentTimeDisplay"));t&&e.controlBar.el().insertBefore(o,t.el()),r.removeClass(o,"vjs-label-hidden")},0)},el:function(){return o}}};t.exports=i},function(t,e,n){"use strict";var r=document.createElement("div"),o=function(t){return{init:function(e,n){n.el=r,r.className="vjs-black-poster",t.call(this,e,n);var o=e.getChild("posterImage");setTimeout(function(){o&&e&&e.el()&&e.el().insertBefore(r,o.el())},0)},el:function(){return r}}};t.exports=o},function(t,e,n){"use strict";function r(t){this.message="HttpRequest Error: "+(t||"")}function o(t){if(!s.isFunction(t))throw new r("Missing XMLHttpRequest factory method");this.createXhr=t}function i(){var t=new XMLHttpRequest;return"withCredentials"in t||(t=new XDomainRequest),t}var a=n(24),s=n(0);r.prototype=new Error,r.prototype.name="HttpRequest Error",o.prototype.run=function(t,e,n,o){function i(){n(-1,null,null,"")}!function(t,e,n){if(!s.isString(t)||s.isEmptyString(t))throw new r("Invalid url '"+t+"'");if(!s.isFunction(e))throw new r("Invalid handler '"+e+"' for the http request");if(s.isDefined(n)&&!s.isObject(n))throw new r("Invalid options map '"+n+"'")}(e,n,o);var u=void 0,l=void 0,c=this.createXhr();o=o||{},u=s.isNumber(o.timeout)?o.timeout:0,c.open(t,a.urlParts(e).href,!0),o.headers&&function(t,e){s.forEach(e,function(e,n){s.isDefined(e)&&t.setRequestHeader(n,e)})}(c,o.headers),o.withCredentials&&(c.withCredentials=!0),c.onload=function(){var t=void 0,e=void 0,r=void 0;c.getAllResponseHeaders||(c.getAllResponseHeaders=function(){return null}),c.status||(c.status=200),s.isDefined(l)&&(clearTimeout(l),l=void 0),t=c.statusText||"",e="response"in c?c.response:c.responseText,r=1223===c.status?204:c.status,n(r,e,c.getAllResponseHeaders(),t)},c.onerror=i,c.onabort=i,c.send(),u>0&&(l=setTimeout(function(){c&&c.abort()},u))},o.prototype.get=function(t,e,n){function o(t,n,o,a){i(t)?e(null,n,t,o,a):e(new r(a),n,t,o,a)}function i(t){return 200<=t&&t<300}this.run("GET",t,o,n)};var u=new o(i);t.exports={http:u,HttpRequest:o,HttpRequestError:r,createXhr:i}},function(t,e,n){e=t.exports=n(48)(),e.push([t.i,'.vjs-label-hidden {\n display: none !important;\n}\n\n.vjs-default-skin div.vjs-ads-label {\n font-size: 13px;\n line-height: 30px;\n font-weight: normal;\n text-align: center;\n color: white;\n display: none;\n width: auto;\n padding-left: 10px;\n}\n\n.vjs-ad-playing .vjs-control.vjs-ads-label {\n display: block;\n}\n\n.vjs-black-poster {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n margin: 0;\n padding: 0;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n background-size: contain;\n cursor: pointer;\n background-color: #000;\n}\n\n.vjs-has-started .vjs-black-poster.vjs-hidden {\n display: none;\n}\n\n.vjs-using-native-controls .vjs-black-poster {\n display: none;\n}\n\ndiv.VPAID-container {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\ndiv.vjs-vpaid-ad div.vjs-progress-control,\ndiv.vjs-vpaid-ad div.vjs-time-controls,\ndiv.vjs-vpaid-ad div.vjs-time-divider {\n display: none;\n}\n\ndiv.vjs-vpaid-ad.vjs-vpaid-flash-ad div.VPAID-container {\n background-color: #000;\n}\n\ndiv.vjs-vpaid-ad .vjs-tech {\n z-index: 0;\n}\n\n/**\n * videojs.ads.css\n */\n\n/* Ad playback */\n\n.vjs-ad-playing .vjs-progress-control {\n pointer-events: none;\n}\n\n.vjs-ad-playing .vjs-play-control.vjs-paused,\n.vjs-ad-playing .vjs-volume-level,\n.vjs-ad-playing .vjs-play-progress {\n background-color: #ffe400 !important;\n}\n\ndiv.vast-skip-button {\n display: block;\n position: absolute;\n bottom: 20%;\n right: 0;\n background-color: #000;\n color: white;\n font-size: 15px;\n font-weight: bold;\n width: auto;\n padding: 8px;\n z-index: 2;\n border: 1px solid white;\n border-right: none;\n}\n\n.vast-skip-button.enabled {\n cursor: pointer;\n color: #fff;\n}\n\n.vast-skip-button.enabled:hover {\n cursor: pointer;\n background: #333;\n}\n\n.vast-blocker {\n display: block;\n position: absolute;\n margin: 0;\n padding: 0;\n height: 100%;\n width: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n\n.vast-skip-button.enabled::after {\n content: ">>";\n position: relative;\n top: 1px;\n margin-left: 8px;\n}\n\n/* Ad loading */\n\n.vjs-ad-playing.vjs-vast-ad-loading .vjs-loading-spinner {\n display: block;\n z-index: 10;\n /* only animate when showing because it can be processor heavy */\n -webkit-animation: spin 1.5s infinite linear;\n animation: spin 1.5s infinite linear;\n}\n\n.vjs-vast-ad-loading div.vjs-big-play-button {\n display: none !important;\n}\n\n.vjs-ad-playing .vjs-slider-handle::before {\n display: none;\n}\n\n.vjs-ad-playing .vjs-live-controls {\n display: none;\n}',""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e=0&&g.splice(e,1)}function a(t){var e=document.createElement("style");return e.type="text/css",o(t,e),e}function s(t){var e=document.createElement("link");return e.rel="stylesheet",o(t,e),e}function u(t,e){var n,r,o;if(e.singleton){var u=m++;n=y||(y=a(e)),r=l.bind(null,n,u,!1),o=l.bind(null,n,u,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=s(e),r=p.bind(null,n),o=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(e),r=c.bind(null,n),o=function(){i(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}function l(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=_(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function c(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function p(t,e){var n=e.css,r=e.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=t.href;t.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}var d={},f=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}},h=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=f(function(){return document.head||document.getElementsByTagName("head")[0]}),y=null,m=0,g=[];t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");e=e||{},void 0===e.singleton&&(e.singleton=h()),void 0===e.insertAt&&(e.insertAt="bottom");var o=r(t);return n(o,e),function(t){for(var i=[],a=0;a59?e(n[1],n[2],0,n[4]):e(0,n[1],n[2],n[4]):null}function r(){this.values=v(null)}function o(t,e,n,r){var o=r?t.split(r):[t];for(var i in o)if("string"==typeof o[i]){var a=o[i].split(n);if(2===a.length){var s=a[0],u=a[1];e(s,u)}}}function i(t,i,a){function s(){var r=n(t);if(null===r)throw new e(e.Errors.BadTimeStamp,"Malformed timestamp: "+l);return t=t.replace(/^[^\sa-zA-Z-]+/,""),r}function u(){t=t.replace(/^\s+/,"")}var l=t;if(u(),i.startTime=s(),u(),"-->"!==t.substr(0,3))throw new e(e.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+l);t=t.substr(3),u(),i.endTime=s(),u(),function(t,e){var n=new r;o(t,function(t,e){switch(t){case"region":for(var r=a.length-1;r>=0;r--)if(a[r].id===e){n.set(t,a[r].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var o=e.split(","),i=o[0];n.integer(t,i),n.percent(t,i)&&n.set("snapToLines",!1),n.alt(t,i,["auto"]),2===o.length&&n.alt("lineAlign",o[1],["start","middle","end"]);break;case"position":o=e.split(","),n.percent(t,o[0]),2===o.length&&n.alt("positionAlign",o[1],["start","middle","end"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start","middle","end","left","right"])}},/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical",""),e.line=n.get("line","auto"),e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100),e.align=n.get("align","middle"),e.position=n.get("position",{start:0,left:0,middle:50,end:100,right:100},e.align),e.positionAlign=n.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},e.align)}(t,i)}function a(t,e){function r(t){return y[t]}for(var o,i=t.document.createElement("div"),a=i,s=[];null!==(o=function(){if(!e)return null;var t=e.match(/^([^<]*)(<[^>]+>?)?/);return function(t){return e=e.substr(t.length),t}(t[1]?t[1]:t[2])}());)if("<"!==o[0])a.appendChild(t.document.createTextNode(function(t){for(;c=t.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)t=t.replace(c[0],r);return t}(o)));else{if("/"===o[1]){s.length&&s[s.length-1]===o.substr(2).replace(">","")&&(s.pop(),a=a.parentNode);continue}var u,l=n(o.substr(1,o.length-2));if(l){u=t.document.createProcessingInstruction("timestamp",l),a.appendChild(u);continue}var c=o.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!c)continue;if(!(u=function(e,n){var r=m[e];if(!r)return null;var o=t.document.createElement(r);o.localName=r;var i=g[e];return i&&n&&(o[i]=n.trim()),o}(c[1],c[3])))continue;if(!function(t,e){return!_[e.localName]||_[e.localName]===t.localName}(a,u))continue;c[2]&&(u.className=c[2].substr(1).replace("."," ")),s.push(c[1]),a.appendChild(u),a=u}return i}function s(t){for(var e=0;e=n[0]&&t<=n[1])return!0}return!1}function u(t){function e(t,e){for(var n=e.childNodes.length-1;n>=0;n--)t.push(e.childNodes[n])}function n(t){if(!t||!t.length)return null;var r=t.pop(),o=r.textContent||r.innerText;if(o){var i=o.match(/^.*(\n|\r)/);return i?(t.length=0,i[0]):o}return"ruby"===r.tagName?n(t):r.childNodes?(e(t,r),n(t)):void 0}var r,o=[],i="";if(!t||!t.childNodes)return"ltr";for(e(o,t);i=n(o);)for(var a=0;a=0&&t.line<=100))return t.line;if(!t.track||!t.track.textTrackList||!t.track.textTrackList.mediaElement)return-1;for(var e=t.track,n=e.textTrackList,r=0,o=0;of&&(p=p<0?-1:1,p*=Math.ceil(f/c)*c),a<0&&(p+=""===i.vertical?n.height:n.width,s=s.reverse()),o.move(h,p)}else{var v=o.lineHeight/n.height*100;switch(i.lineAlign){case"middle":a-=v/2;break;case"end":a-=v}switch(i.vertical){case"":e.applyStyles({top:e.formatStyle(a,"%")});break;case"rl":e.applyStyles({left:e.formatStyle(a,"%")});break;case"lr":e.applyStyles({right:e.formatStyle(a,"%")})}s=["+y","-x","+x","-y"],o=new d(e)}var y=function(t,e){for(var o,i=new d(t),a=1,s=0;su&&(o=new d(t),a=u),t=new d(i)}return o||i}(o,s);e.move(y.toCSSCompatValues(n))}function h(){}var v=Object.create||function(){function t(){}return function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return t.prototype=e,new t}}();e.prototype=v(Error.prototype),e.prototype.constructor=e,e.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},r.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,n){for(var r=0;r=0&&e<=100)&&(this.set(t,e),!0)}};var y={"&":"&","<":"<",">":">","‎":"‎","‏":"‏"," ":" "},m={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},g={v:"title",lang:"lang"},_={rt:"ruby"},b=[[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]];c.prototype.applyStyles=function(t,e){e=e||this.div;for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n])},c.prototype.formatStyle=function(t,e){return 0===t?0:t+e},p.prototype=v(c.prototype),p.prototype.constructor=p,d.prototype.move=function(t,e){switch(e=void 0!==e?e:this.lineHeight,t){case"+x":this.left+=e,this.right+=e;break;case"-x":this.left-=e,this.right-=e;break;case"+y":this.top+=e,this.bottom+=e;break;case"-y":this.top-=e,this.bottom-=e}},d.prototype.overlaps=function(t){return this.leftt.left&&this.topt.top},d.prototype.overlapsAny=function(t){for(var e=0;e=t.top&&this.bottom<=t.bottom&&this.left>=t.left&&this.right<=t.right},d.prototype.overlapsOppositeAxis=function(t,e){switch(e){case"+x":return this.leftt.right;case"+y":return this.topt.bottom}},d.prototype.intersectPercentage=function(t){return Math.max(0,Math.min(this.right,t.right)-Math.max(this.left,t.left))*Math.max(0,Math.min(this.bottom,t.bottom)-Math.max(this.top,t.top))/(this.height*this.width)},d.prototype.toCSSCompatValues=function(t){return{top:this.top-t.top,bottom:t.bottom-this.bottom,left:this.left-t.left,right:t.right-this.right,height:this.height,width:this.width}},d.getSimpleBoxPosition=function(t){var e=t.div?t.div.offsetHeight:t.tagName?t.offsetHeight:0,n=t.div?t.div.offsetWidth:t.tagName?t.offsetWidth:0,r=t.div?t.div.offsetTop:t.tagName?t.offsetTop:0;return t=t.div?t.div.getBoundingClientRect():t.tagName?t.getBoundingClientRect():t,{left:t.left,right:t.right,top:t.top||r,height:t.height||e,bottom:t.bottom||r+(t.height||e),width:t.width||n}},h.StringDecoder=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}},h.convertCueToDOMTree=function(t,e){return t&&e?a(t,e):null};h.processCues=function(t,e,n){if(!t||!e||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=t.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",n.appendChild(r),function(t){for(var e=0;e")){l.cue.id=c;continue}case"CUE":try{i(c,l.cue,l.regionList)}catch(t){l.reportOrThrowError(t),l.cue=null,l.state="BADCUE";continue}l.state="CUETEXT";continue;case"CUETEXT":var f=-1!==c.indexOf("-->");if(!c||f&&(d=!0)){l.oncue&&l.oncue(l.cue),l.cue=null,l.state="ID";continue}l.cue.text&&(l.cue.text+="\n"),l.cue.text+=c;continue;case"BADCUE":c||(l.state="ID");continue}}}catch(t){l.reportOrThrowError(t),"CUETEXT"===l.state&&l.cue&&l.oncue&&l.oncue(l.cue),l.cue=null,l.state="INITIAL"===l.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),(t.cue||"HEADER"===t.state)&&(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new e(e.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}},t.WebVTT=h}(this,this.vttjs)},function(t,e,n){void 0!==t&&t.exports&&(this.VTTCue=this.VTTCue||n(283).VTTCue),function(t){t.VTTCue.prototype.toJSON=function(){var t={},e=this;return Object.keys(this).forEach(function(n){"getCueAsHTML"!==n&&"hasBeenReset"!==n&&"displayState"!==n&&(t[n]=e[n])}),t},t.VTTCue.create=function(e){if(!e.hasOwnProperty("startTime")||!e.hasOwnProperty("endTime")||!e.hasOwnProperty("text"))throw new Error("You must at least have start time, end time, and text.");var n=new t.VTTCue(e.startTime,e.endTime,e.text);for(var r in e)n.hasOwnProperty(r)&&(n[r]=e[r]);return n},t.VTTCue.fromJSON=function(t){return this.create(JSON.parse(t))}}(this)},function(t,e){!function(t,e){function n(t){return"string"==typeof t&&(!!s[t.toLowerCase()]&&t.toLowerCase())}function r(t){return"string"==typeof t&&(!!u[t.toLowerCase()]&&t.toLowerCase())}function o(t){for(var e=1;e100)throw new Error("Position must be between 0 and 100.");b=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",o({},l,{get:function(){return w},set:function(t){var e=r(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");w=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",o({},l,{get:function(){return T},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");T=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",o({},l,{get:function(){return E},set:function(t){var e=r(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");E=e,this.hasBeenReset=!0}})),s.displayState=void 0,u)return s}var a="auto",s={"":!0,lr:!0,rl:!0},u={start:!0,middle:!0,end:!0,left:!0,right:!0};i.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},t.VTTCue=t.VTTCue||i,e.VTTCue=i}(this,this.vttjs||{})},function(t,e,n){void 0!==t&&t.exports&&(this.VTTRegion=n(285).VTTRegion),function(t){t.VTTRegion.create=function(e){var n=new t.VTTRegion;for(var r in e)n.hasOwnProperty(r)&&(n[r]=e[r]);return n},t.VTTRegion.fromJSON=function(t){return this.create(JSON.parse(t))}}(this)},function(t,e){!function(t,e){function n(t){return"string"==typeof t&&(!!i[t.toLowerCase()]&&t.toLowerCase())}function r(t){return"number"==typeof t&&t>=0&&t<=100}function o(){var t=100,e=3,o=0,i=100,a=0,s=100,u="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!r(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return e},set:function(t){if("number"!=typeof t)throw new TypeError("Lines must be set to a number.");e=t}},regionAnchorY:{enumerable:!0,get:function(){return i},set:function(t){if(!r(t))throw new Error("RegionAnchorX must be between 0 and 100.");i=t}},regionAnchorX:{enumerable:!0,get:function(){return o},set:function(t){if(!r(t))throw new Error("RegionAnchorY must be between 0 and 100.");o=t}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(t){if(!r(t))throw new Error("ViewportAnchorY must be between 0 and 100.");s=t}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(t){if(!r(t))throw new Error("ViewportAnchorX must be between 0 and 100.");a=t}},scroll:{enumerable:!0,get:function(){return u},set:function(t){var e=n(t);if(!1===e)throw new SyntaxError("An invalid or illegal string was specified.");u=e}}})}var i={"":!0,up:!0};t.VTTRegion=t.VTTRegion||o,e.VTTRegion=o}(this,this.vttjs||{})},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){!function(t){"use strict";function e(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function n(t){return"string"!=typeof t&&(t=String(t)),t}function r(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return m.iterable&&(e[Symbol.iterator]=function(){return e}),e}function o(t){this.map={},t instanceof o?t.forEach(function(t,e){this.append(e,t)},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function i(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function a(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function s(t){var e=new FileReader,n=a(e);return e.readAsArrayBuffer(t),n}function u(t){var e=new FileReader,n=a(e);return e.readAsText(t),n}function l(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r-1?e:t}function f(t,e){e=e||{};var n=e.body;if("string"==typeof t)this.url=t;else{if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new o(t.headers)),this.method=t.method,this.mode=t.mode,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new o(e.headers)),this.method=d(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function h(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}}),e}function v(t){var e=new o;return t.split("\r\n").forEach(function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}}),e}function y(t,e){e||(e={}),this.type="default",this.status="status"in e?e.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new o(e.headers),this.url=e.url||"",this._initBody(t)}if(!t.fetch){var m={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(m.arrayBuffer)var g=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],_=function(t){return t&&DataView.prototype.isPrototypeOf(t)},b=ArrayBuffer.isView||function(t){return t&&g.indexOf(Object.prototype.toString.call(t))>-1};o.prototype.append=function(t,r){t=e(t),r=n(r);var o=this.map[t];o||(o=[],this.map[t]=o),o.push(r)},o.prototype.delete=function(t){delete this.map[e(t)]},o.prototype.get=function(t){var n=this.map[e(t)];return n?n[0]:null},o.prototype.getAll=function(t){return this.map[e(t)]||[]},o.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},o.prototype.set=function(t,r){this.map[e(t)]=[n(r)]},o.prototype.forEach=function(t,e){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(r){t.call(e,r,n,this)},this)},this)},o.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),r(t)},o.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),r(t)},o.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),r(t)},m.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];f.prototype.clone=function(){return new f(this,{body:this._bodyInit})},p.call(f.prototype),p.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var T=[301,302,303,307,308];y.redirect=function(t,e){if(-1===T.indexOf(e))throw new RangeError("Invalid status code");return new y(null,{status:e,headers:{location:t}})},t.Headers=o,t.Request=f,t.Response=y,t.fetch=function(t,e){return new Promise(function(n,r){var o=new f(t,e),i=new XMLHttpRequest;i.onload=function(){var t={status:i.status,statusText:i.statusText,headers:v(i.getAllResponseHeaders()||"")};t.url="responseURL"in i?i.responseURL:t.headers.get("X-Request-URL");var e="response"in i?i.response:i.responseText;n(new y(e,t))},i.onerror=function(){r(new TypeError("Network request failed"))},i.ontimeout=function(){r(new TypeError("Network request failed"))},i.open(o.method,o.url,!0),"include"===o.credentials&&(i.withCredentials=!0),"responseType"in i&&m.blob&&(i.responseType="blob"),o.headers.forEach(function(t,e){i.setRequestHeader(e,t)}),i.send(void 0===o._bodyInit?null:o._bodyInit)})},t.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)},function(t,e){function n(){for(var t={},e=0;e href.indexOf(u) !== -1) + : href.indexOf(url) !== -1; + } + return 'unknown'; } @@ -34,11 +44,14 @@ const CLIENT = getClient(); class App extends React.Component { - static getClientVideos(url) { - const filter = `(term field=aggregator '${CLIENT}')`; - const delta = `https://build.sugges.tv?url=${url}&filter=${filter}`; + static getVideos(url, client) { + let endpoint = `https://api.sugges.tv/semantics?url=${url}`; + + if (client === 'telegraph') { + endpoint += `&client=${client}`; + } - return fetch(delta, { + return fetch(endpoint, { method: 'GET', headers: { Accept: 'application/json', @@ -47,19 +60,6 @@ class App extends React.Component { }).then(r => r.json()); } - static getVideos(url) { - return fetch('https://api.sugges.tv', { - method: 'POST', - headers: { - Accept: 'application/json', - 'Content-Type': 'application/json', - 'x-api-key': 'NXZAGU0Cf88saYlS2uATAVbjWMsxeEk90r5EBzsa', - }, - body: JSON.stringify({ url }), - }) - .then(r => r.json()); - } - static isInViewport(element) { const rect = element.getBoundingClientRect(); const html = document.documentElement; @@ -82,7 +82,8 @@ class App extends React.Component { if (CLIENT === 'proactiveinvestors') return cb(null, 'https://ad.360yield.com/advast?p=1026983&w=4&h=3'); if (CLIENT === 'advfn') return cb(null, 'https://ad.360yield.com/advast?p=1021571&w=4&h=3'); if (CLIENT === 'hospitalitytrends') return cb(null, 'https://ad.360yield.com/advast?p=1028636&w=4&h=3'); - if (CLIENT === 'sovrn') return cb(null, 'https://ap.lijit.com/www/delivery/vst.php?zoneid=458676'); + if (CLIENT === 'sovrnuk') return cb(null, 'https://ap.lijit.com/www/delivery/vst.php?zoneid=458676'); + if (CLIENT === 'sovrnus') return cb(null, 'http://ap.lijit.com/www/delivery/vst.php?zoneid=463506'); if (CLIENT === 'hitc') return cb(null, 'https://ad.360yield.com/advast?p=1034241&w=4&h=3'); if (CLIENT === 'telegraph' && tmgAdsBuildAd) { return App.getPlaylistAdTag(tmgAdsBuildAd('advert_body_vid', '', '', '').fetchUrl(), cb); @@ -102,15 +103,15 @@ class App extends React.Component { super(props); this.state = { videos: '', - videoss: '', - adError: '', - adStart: '', - adSrc: '', + videosFrom: '', + adError: 'N/A', + adStart: 'N/A', + adSrc: 'N/A', adTag: '', query: '', - windowWidth: window.innerWidth, videoLoaded: false, firstPlay: false, + flashTestFinished: false, adLoadingPoster: 'https://delta.sugges.tv/assets/images/adLoading.jpg', itn: itn.slice(0).sort(() => 0.5 - Math.random()), bristolsport: bristolsport.slice(0).sort(() => 0.5 - Math.random()), @@ -126,7 +127,6 @@ class App extends React.Component { componentDidMount() { const url = window.location.href; - const promise = CLIENT === 'telegraph' ? App.getClientVideos(url) : App.getVideos(url); const videoJsOptions = { controls: true, preload: 'auto', // try auto @@ -135,13 +135,14 @@ class App extends React.Component { width: 640, height: 264, }; + console.log('SUGGESTV: Client is - ', CLIENT); // initialise the video player and do set-up work after the player is ready this.player = videojs(this.videoNode, videoJsOptions, () => { this.plugins(); - promise.then((data) => { - console.log('DELTASTV: DATA', data); + App.getVideos(url, CLIENT).then((data) => { + console.log('SUGGESTV: DATA', data); this.setVideos(data); const container = document.getElementById('suggestvdeltaplayer'); @@ -152,14 +153,15 @@ class App extends React.Component { container.appendChild(player); this.videoJsInit(this.state.videos); this.videoNode.muted = true; + } else { - console.log('DELTASTV: No player found'); + console.log('SUGGESTV: No player found'); this.player.dispose(); } }) .catch((err) => { - console.log('DELTASTV: Promise Error', err); + console.log('SUGGESTV: Promise Error', err); this.player.dispose(); }); }); @@ -183,7 +185,7 @@ class App extends React.Component { this.setState({ query: data.query }); if (data !== null && data.results && data.results.hits && data.results.hits.hit.length !== 0) { - console.log('DELTASTV: set videos', data); + console.log('SUGGESTV: set videos', data); data.results.hits.hit.slice(0, 4).forEach((video) => { let keywordsMatched = []; @@ -232,13 +234,12 @@ class App extends React.Component { }); if (videos.length !== 0) { - console.log('DELTASTV: videos arr [actual] ', videos); this.setState({ videos, - videoss: 'semanticsearch', + videosFrom: 'semanticsearch', }); } else { - console.log('DELTASTV: none of the videos matched enough keywords or have big enough score'); + console.log('SUGGESTV: none of the videos matched enough keywords or have big enough score'); setDefaultClientVideos(this); } } else { @@ -255,25 +256,24 @@ class App extends React.Component { if (CLIENT === 'bristol-sport') videos = ctx.state.bristolsport; if (CLIENT === 'proactiveinvestors') videos = ctx.state.itn; - console.log('DELTASTV: videos arr [default] ', videos); - ctx.setState({ videos, - videoss: 'defaultplaylist', + videosFrom: 'defaultplaylist', }); } } handleScroll() { + const { firstPlay, flashTestFinished, videoLoaded } = this.state; if (App.isInViewport(this.videoNode)) { - if (this.videoNode && !this.state.firstPlay && this.state.videoLoaded) { + if (this.videoNode && !firstPlay && videoLoaded && flashTestFinished) { if (CLIENT === 'cityam' || CLIENT === 'beautyandthedirt') { - console.log('DELTASTV: click-to-play'); + console.log('SUGGESTV: click-to-play'); } else { this.player.play(); - console.log('START PLAYING'); + console.log('SUGGESTV: Autoplay'); } // No need to handle this event after we determine autoplay or click to play @@ -296,7 +296,7 @@ class App extends React.Component { function getTagWrapper(cb) { player.poster(self.state.adLoadingPoster); App.getAdTag((err, adTag) => { - console.log('DELTASTV: AdTag = ', adTag); + console.log('SUGGESTV: AdTag = ', adTag); self.setState({ adTag }); cb(err, adTag); }); @@ -312,15 +312,22 @@ class App extends React.Component { preferredTech: 'html5', }; - console.log('DELTASTV: vastOptions', options); + console.log('SUGGESTV: vastOptions', options); const vastAd = player.vastClient(options); + // Check if we have flash enabled and if flash test is running + console.log('SUGGESTV Flash:', Modernizr.flash); + if (Modernizr.flash && !Modernizr.flash.blocked) { + window.vpaid_video_flash_tester.on('change', () => this.setState({ flashTestFinished: true })); + } else { + this.setState({ flashTestFinished: true }); + } + player.on('vast.adStart', () => { - console.log('DELTASTV: start ad', vastAd, player); + console.log('SUGGESTV: start ad', vastAd, player); this.setState({ adStart: this.state.adStart ? `${this.state.adStart},adStart` : 'adStart', - adError: 'N/A', - adSrc: player.vast.vastResponse.mediaFiles.length !== 0 ? player.vast.vastResponse.mediaFiles[0].src : 'N/A', + adSrc: player.vast.vastResponse.mediaFiles.length ? player.vast.vastResponse.mediaFiles[0].src : 'N/A', }); document.querySelectorAll('.delta-overlay').forEach((overlay) => { overlay.style.display = 'none'; @@ -328,12 +335,8 @@ class App extends React.Component { }); player.on('vast.adError', (obj) => { - console.log('DELTASTV: error ad', obj); - this.setState({ - adStart: 'N/A', - adSrc: 'N/A', - adError: obj.error.message, - }); + console.log('SUGGESTV: error ad', obj); + this.setState({ adError: obj.error.message }); }); player.on('vast.contentStart', () => { @@ -352,12 +355,9 @@ class App extends React.Component { aderror: this.state.adError, adsrc: this.state.adSrc, adtag: this.state.adTag, - scripttag: 'https://delta.sugges.tv/test/bundle.js', - player: 'delta', - player_settings: (CLIENT === 'cityam' || CLIENT === 'beautyandthedirt') ? 'muted,click-to-play' : 'muted,autoplay-in-view', - player_type: 'article', + autoplay: (CLIENT === 'cityam' || CLIENT === 'beautyandthedirt'), keywords: this.state.query, - videoss: this.state.videoss, + videos_from: this.state.videosFrom, player_height: Math.ceil(player.el_.clientHeight), player_width: Math.ceil(player.el_.clientWidth), player_duration: Math.ceil(player.duration()), @@ -370,11 +370,13 @@ class App extends React.Component { browser_language: navigator.language, browser_languages: navigator.languages.join(','), platform: navigator.platform, + flash_installed: Boolean(Modernizr.flash), + flash_blocked: Modernizr.flash ? Modernizr.flash.blocked : false, }), }) .then(r => r.json()) .then((data) => { - console.log('DELTASTV: contentStart DATA back', data); + console.log('SUGGESTV: contentStart DATA back', data); }); }); @@ -387,14 +389,14 @@ class App extends React.Component { }); function doVastAdTracking(ctx, events, eventName) { - console.log('DELTASTV: vast event - ', eventName); + console.log('SUGGESTV: vast event - ', eventName); const event = events[eventName]; ctx.setState({ adStart: `${ctx.state.adStart},${eventName}` }); if (event) { fetch(event[0].uri) .then(r => r.json()) - .then(data => console.log(`DELTASTV: vast.${eventName}`, data)); + .then(data => console.log(`SUGGESTV: vast.${eventName}`, data)); } } @@ -420,7 +422,7 @@ class App extends React.Component { } playlist(videos) { - console.log('DELTASTV: Do playlist -', videos); + console.log('SUGGESTV: Do playlist -', videos); this.player.playlist(videos); this.player.playlist.autoadvance(0); } @@ -440,10 +442,9 @@ class App extends React.Component { } videoJsInit(videos) { - console.log('DELTASTV: Do videojs', videos); - console.log('DELTASTV: Do videojs', this.state); + console.log('SUGGESTV: Do videojs', this.state); - this.playlist(this.state.videos); + this.playlist(videos); const player = this.player; player.muted(true); @@ -453,11 +454,15 @@ class App extends React.Component { const currentItem = player.playlist.currentItem(); const title = playlist[currentItem < 0 ? 0 : currentItem].title; + player.controlBar.volumeMenuButton.show(); player.on('touchend', () => { player.paused() ? player.play() : player.pause(); }); - player.controlBar.volumeMenuButton.show(); - if (CLIENT === 'telegraph') player.addClass('telegraph-player') + + if (CLIENT === 'telegraph') { + player.addClass('telegraph-player'); + } + this.overlay(title); }); diff --git a/src/main.jsx b/src/main.jsx index fdaadff..0c3dbc1 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -1,9 +1,11 @@ import React from 'react'; import ReactDOM from 'react-dom'; +import './modernizr-flash'; + import App from './App'; require('./video.scss'); -require('./telegraph-player.scss') +require('./telegraph-player.scss'); const container = document.createElement('div'); container.id = 'deltaplayercontainer'; @@ -23,9 +25,7 @@ links.forEach((href) => { document.head.appendChild(link); }); -console.log('running'); - ReactDOM.render( , document.getElementById('deltaplayercontainer'), -); \ No newline at end of file +); diff --git a/src/modernizr-flash.js b/src/modernizr-flash.js new file mode 100644 index 0000000..1c6ab9b --- /dev/null +++ b/src/modernizr-flash.js @@ -0,0 +1,3 @@ +/*! modernizr 3.5.0 (Custom Build) | MIT * + * https://modernizr.com/download/?-flash-setclasses !*/ +!function(e,n,t){function o(e,n){return typeof e===n}function i(){var e,n,t,i,a,s,r;for(var l in f)if(f.hasOwnProperty(l)){if(e=[],n=f[l],n.name&&(e.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(t=0;t