UNPKG

videojs-vast-vpaid

Version:
5 lines 104 kB
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var i in n)("object"==typeof exports?exports:t)[i]=n[i]}}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},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 i(){}function r(t){return null===t}function o(t){return void 0!==t}function a(t){return void 0===t}function s(t){return"object"===("undefined"==typeof t?"undefined":R(t))}function u(t){return"function"==typeof t}function d(t){return"number"==typeof t}function c(t){return B.isObject(t)&&t.window===t}function l(t){return"[object Array]"===Object.prototype.toString.call(t)}function f(t){if(null===t||B.isWindow(t)||B.isFunction(t)||B.isUndefined(t))return!1;var e=t.length;return!(t.nodeType!==M||!e)||(B.isString(t)||B.isArray(t)||0===e||"number"==typeof e&&e>0&&e-1 in t)}function p(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 g(t){return Array.prototype.slice.call(t)}function y(t,e,n){var i=void 0,r=void 0;if(t)if(u(t))for(i in t)"prototype"===i||"length"===i||"name"===i||t.hasOwnProperty&&!t.hasOwnProperty(i)||e.call(n,t[i],i,t);else if(l(t)){var o="object"!==("undefined"==typeof t?"undefined":R(t));for(i=0,r=t.length;i<r;i++)(o||i in t)&&e.call(n,t[i],i,t)}else if(t.forEach&&t.forEach!==y)t.forEach(e,n,t);else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t);return t}function m(t,e){return e=e||"_",t.replace(j,function(t,n){return(n?e:"")+t.toLowerCase()})}function A(t){return!!B.isString(t)&&O.test(t.trim())}function b(t){var e=void 0,n=void 0,i=void 0;for(n=1;n<arguments.length;n++){e=arguments[n];for(i in e)e.hasOwnProperty(i)&&(s(t[i])&&!r(t[i])&&s(e[i])?t[i]=b({},t[i],e[i]):t[i]=e[i])}return t}function k(t){return t.charAt(0).toUpperCase()+t.slice(1)}function w(t){return t.charAt(0).toLowerCase()+t.slice(1)}function _(t,e){var n=[];return t.forEach(function(t,i){var r=e(t,i);B.isDefined(r)&&n.push(r)}),n}function E(t,e){var n=String(t);if(e=B.isNumber(e)?e:0,t=B.isNumber(t)?t:parseInt(t,10),B.isNumber(t)&&!isNaN(t)){for(n=String(t);n.length<e;)n="0"+n;return n}return String(NaN)}function S(t,e){var n=(new Date).getTime()-(e+1);return function(){var i=(new Date).getTime();i-n>=e&&(n=i,t.apply(this,arguments))}}function T(t,e){var n=void 0;return function(){n&&clearTimeout(n),n=setTimeout(function(){t.apply(this,arguments),n=void 0},e)}}function C(t,e,n){for(var i=e(t),r=0;r<i.length;r++){if(n(i[r]))return i[r];var o=C(i[r],e,n);if(o)return o}}function V(t){return function(){return t}}function I(t){return B.isNumber(t)&&(t=String(t)),!!B.isString(t)&&N.test(t.trim())}function L(){var t=B.getInternetExplorerVersion(navigator);return t!==-1&&t<10}function P(t){var e=-1;if("Microsoft Internet Explorer"===t.appName){var n=t.userAgent,i=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})"),r=i.exec(n);null!==r&&(e=parseFloat(r[1]))}return e}function x(){return/iP(hone|ad)/.test(B.UA)}function F(){return/iP(hone|ad|od)|Android|Windows Phone/.test(B.UA)}function D(){return/iP(hone|od)/.test(B.UA)}function U(){return/Android/.test(B.UA)}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},M=1,j=/[A-Z]/g,O=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)+$/i,N=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,B={UA:navigator.userAgent,noop:i,isNull:r,isDefined:o,isUndefined:a,isObject:s,isFunction:u,isNumber:d,isWindow:c,isArray:l,isArrayLike:f,isString:p,isEmptyString:h,isNotEmptyString:v,arrayLikeObjToArray:g,forEach:y,snake_case:m,isValidEmail:A,extend:b,capitalize:k,decapitalize:w,transformArray:_,toFixedDigits:E,throttle:S,debounce:T,treeSearch:C,echoFn:V,isISO8601:I,isOldIE:L,getInternetExplorerVersion:P,isIDevice:x,isMobile:F,isIPhone:D,isAndroid:U};t.exports=B},function(t,e,n){"use strict";function i(t){var e=-1;return function(n){return t+"_"+ ++e}}function r(){}function o(t,e,n){var i=setTimeout(function(){e=r,n()},t);return function(){clearTimeout(i),e.apply(this,arguments)}}function a(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=document.createElement("div");return i.id=e,n&&(t.innerHTML=""),t.appendChild(i),i}function s(t,e){return!isNaN(parseFloat(t))&&isFinite(t)&&t>0?t:e}function u(t,e){return c.call(t,e)}function d(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=i,e.noop=r,e.callbackTimeout=o,e.createElementWithID=a,e.isPositiveInt=s,e.stringEndsWith=u,e.hideFlashEl=d;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 i=n.indexOf(t,e);return i!==-1&&i===e}}()},function(t,e,n){"use strict";var i=n(0),r={};r.strToXMLDoc=function(t){function e(t){var e=new DOMParser,r=void 0;try{if(r=e.parseFromString(t,"application/xml"),n(r)||i.isEmptyString(t))throw new Error}catch(o){throw new Error("xml.strToXMLDOC: Error parsing the string: '"+t+"'")}return r}function n(t){try{var e=new DOMParser,n=e.parseFromString("INVALID","text/xml"),i=n.getElementsByTagName("parsererror")[0].namespaceURI;return"http://www.w3.org/1999/xhtml"===i?t.getElementsByTagName("parsererror").length>0:t.getElementsByTagNameNS(i,"parsererror").length>0}catch(r){}}if("undefined"==typeof window.DOMParser){var r=new ActiveXObject("Microsoft.XMLDOM");return r.async=!1,r.loadXML(t),r}return e(t)},r.parseText=function(t){return/^\s*$/.test(t)?null:/^(?:true|false)$/i.test(t)?"true"===t.toLowerCase():isFinite(t)?parseFloat(t):i.isISO8601(t)?new Date(t):t.trim()},r.JXONTree=function(t){var e=r.parseText;if(t.documentElement)return new r.JXONTree(t.documentElement);if(t.hasChildNodes()){for(var n,o,a,s="",u=0;u<t.childNodes.length;u++)n=t.childNodes.item(u),3===(n.nodeType-1|1)?s+=3===n.nodeType?n.nodeValue.trim():n.nodeValue:1!==n.nodeType||n.prefix||(o=i.decapitalize(n.nodeName),a=new r.JXONTree(n),this.hasOwnProperty(o)?(this[o].constructor!==Array&&(this[o]=[this[o]]),this[o].push(a)):this[o]=a);s&&(this.keyValue=e(s))}var d="undefined"==typeof t.hasAttributes?t.attributes.length>0:t.hasAttributes();if(d)for(var c=void 0,l=0;l<t.attributes.length;l++)c=t.attributes.item(l),this["@"+i.decapitalize(c.name)]=e(c.value.trim())},r.JXONTree.prototype.attr=function(t){return this["@"+i.decapitalize(t)]},r.toJXONTree=function(t){var e=r.strToXMLDoc(t);return new r.JXONTree(e)},r.keyValue=function(t){if(t)return t.keyValue},r.attr=function(t,e){if(t)return t["@"+i.decapitalize(e)]},r.encode=function(t){if(i.isString(t))return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")},r.decode=function(t){if(i.isString(t))return t.replace(/&apos;/g,"'").replace(/&quot;/g,'"').replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&")},t.exports=r},function(t,e,n){"use strict";function i(t,e){this.message="VAST Error: "+(t||""),e&&(this.code=e)}i.prototype=new Error,i.prototype.name="VAST Error",t.exports=i},function(t,e,n){"use strict";var i=n(12),r=n(0),o=n(42),a=n(41),s={track:function(t,e){var n=s.parseURLMacros(t,e),i=[];return n.forEach(function(t){var e=new Image;e.src=t,i.push(e)}),i},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||{},r.forEach(e,function(e,n){t=t.replace(new RegExp("\\["+n+"\\]","gm"),e)}),t},parseDuration:function(t){function e(t){return 60*parseInt(t,10)*60*1e3}function n(t){return 60*parseInt(t,10)*1e3}function i(t){return 1e3*parseInt(t,10)}var o=/(\d\d):(\d\d):(\d\d)(\.(\d\d\d))?/,a=void 0,s=void 0;return r.isString(t)&&(a=t.match(o),a&&(s=e(a[1])+n(a[2])+i(a[3])+parseInt(a[5]||0,10))),isNaN(s)?null:s},parseImpressions:function(t){return t?(t=r.isArray(t)?t:[t],r.transformArray(t,function(t){if(r.isNotEmptyString(t.keyValue))return t.keyValue})):[]},formatProgress:function(t){var e=void 0,n=void 0,i=void 0,o=void 0;return e=t/36e5,e=Math.floor(e),n=t/6e4%60,n=Math.floor(n),i=t/1e3%60,i=Math.floor(i),o=t%1e3,r.toFixedDigits(e,2)+":"+r.toFixedDigits(n,2)+":"+r.toFixedDigits(i,2)+"."+r.toFixedDigits(o,3)},parseOffset:function(t,e){function n(t){var e=/^\d+(\.\d+)?%$/g;return e.test(t)}function i(t,e){return e?r(e,parseFloat(t.replace("%",""))):null}function r(t,e){return t*e/100}return n(t)?i(t,e):s.parseDuration(t)},VPAID_techs:[a,o],isVPAID:function(t){return Boolean(t)&&"VPAID"===t.apiFramework},findSupportedVPAIDTech:function(t){var e=void 0,n=void 0,i=void 0;for(e=0,n=this.VPAID_techs.length;e<n;e+=1)if(i=this.VPAID_techs[e],i.supports(t))return i;return null},isFlashSupported:function(){return i.isSupported()},runFlashSupportCheck:function(t){i.runFlashTest({data:t})}};t.exports=s},function(t,e,n){"use strict";function i(t){c=t}function r(t,e){e.length>0&&"string"==typeof e[0]&&(e[0]=l+e[0]),t.apply?t.apply(console,Array.prototype.slice.call(e)):t(Array.prototype.slice.call(e))}function o(){c<4||("undefined"==typeof console.debug?r(console.log,arguments):r(console.debug,arguments))}function a(){c<3||r(console.log,arguments)}function s(){c<2||r(console.info,arguments)}function u(){c<1||r(console.warn,arguments)}function d(){r(console.error,arguments)}var c=0,l="[videojs-vast-vpaid] ",f={setVerbosity:i,debug:o,log:a,info:s,warn:u,error:d};"undefined"!=typeof console&&console.log||(f.debug=function(){},f.log=function(){},f.info=function(){},f.warn=function(){},f.error=function(){}),t.exports=f},function(t,e,n){"use strict";var i=n(0),r={};r.isVisible=function(t){var e=window.getComputedStyle(t);return"hidden"!==e.visibility},r.isHidden=function(t){var e=window.getComputedStyle(t);return"none"===e.display},r.isShown=function(t){return!r.isHidden(t)},r.hide=function(t){t.__prev_style_display_=t.style.display,t.style.display="none"},r.show=function(t){r.isHidden(t)&&(t.style.display=t.__prev_style_display_),t.__prev_style_display_=void 0},r.hasClass=function(t,e){var n=void 0,r=void 0,o=void 0;if(i.isNotEmptyString(e)){if(t.classList)return t.classList.contains(e);for(n=i.isString(t.getAttribute("class"))?t.getAttribute("class").split(/\s+/):[],e=e||"",r=0,o=n.length;r<o;r+=1)if(n[r]===e)return!0}return!1},r.addClass=function(t,e){var n=void 0;if(i.isNotEmptyString(e)){if(t.classList)return t.classList.add(e);n=i.isString(t.getAttribute("class"))?t.getAttribute("class").split(/\s+/):[],i.isString(e)&&i.isNotEmptyString(e.replace(/\s+/,""))&&(n.push(e),t.setAttribute("class",n.join(" ")))}},r.removeClass=function(t,e){var n=void 0;if(i.isNotEmptyString(e)){if(t.classList)return t.classList.remove(e);n=i.isString(t.getAttribute("class"))?t.getAttribute("class").split(/\s+/):[];var r=[],o=void 0,a=void 0;if(i.isString(e)&&i.isNotEmptyString(e.replace(/\s+/,""))){for(o=0,a=n.length;o<a;o+=1)e!==n[o]&&r.push(n[o]);t.setAttribute("class",r.join(" "))}}},r.addEventListener=function(t,e,n){return i.isArray(t)?void i.forEach(t,function(t){r.addEventListener(t,e,n)}):i.isArray(e)?void i.forEach(e,function(e){r.addEventListener(t,e,n)}):void(t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&t.attachEvent("on"+e,n))},r.removeEventListener=function(t,e,n){return i.isArray(t)?void i.forEach(t,function(t){r.removeEventListener(t,e,n)}):i.isArray(e)?void i.forEach(e,function(e){r.removeEventListener(t,e,n)}):void(t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent?t.detachEvent("on"+e,n):t["on"+e]=null)},r.dispatchEvent=function(t,e){t.dispatchEvent?t.dispatchEvent(e):t.fireEvent("on"+e.eventType,e)},r.isDescendant=function(t,e){for(var n=e.parentNode;null!==n;){if(n===t)return!0;n=n.parentNode}return!1},r.getTextContent=function(t){return t.textContent||t.text},r.prependChild=function(t,e){return e.parentNode&&e.parentNode.removeChild(e),t.insertBefore(e,t.firstChild)},r.remove=function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},r.isDomElement=function(t){return t instanceof Element},r.click=function(t,e){r.addEventListener(t,"click",e)},r.once=function(t,e,n){function i(){n.apply(void 0,arguments),r.removeEventListener(t,e,i)}r.addEventListener(t,e,i)},r.getDimension=function(t){var e=void 0;return!i.isOldIE()&&t.getBoundingClientRect?(e=t.getBoundingClientRect(),{width:e.width,height:e.height}):{width:t.offsetWidth,height:t.offsetHeight}},t.exports=r},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();e.MultipleValuesRegistry=function(){function t(){i(this,t),this._registries={}}return r(t,[{key:"add",value:function(t,e){this._registries[t]||(this._registries[t]=[]),this._registries[t].indexOf(e)===-1&&this._registries[t].push(e)}},{key:"get",value:function(t){return this._registries[t]||[]}},{key:"filterKeys",value:function(t){return Object.keys(this._registries).filter(t)}},{key:"findByValue",value:function(t){var e=this,n=Object.keys(this._registries).filter(function(n){return e._registries[n].indexOf(t)!==-1});return n}},{key:"remove",value:function(t,e){if(this._registries[t]){var n=this._registries[t].indexOf(e);if(!(n<0))return this._registries[t].splice(n,1)}}},{key:"removeByKey",value:function(t){var e=this._registries[t];return delete this._registries[t],e}},{key:"removeByValue",value:function(t){var e=this,n=this.findByValue(t);return n.map(function(n){return e.remove(n,t)})}},{key:"removeAll",value:function(){var t=this._registries;return this._registries={},t}},{key:"size",value:function(){return Object.keys(this._registries).length}}]),t}(),e.SingleValueRegistry=function(){function t(){i(this,t),this._registries={}}return r(t,[{key:"add",value:function(t,e){this._registries[t]=e}},{key:"get",value:function(t){return this._registries[t]}},{key:"filterKeys",value:function(t){return Object.keys(this._registries).filter(t)}},{key:"findByValue",value:function(t){var e=this,n=Object.keys(this._registries).filter(function(n){return e._registries[n]===t});return n}},{key:"remove",value:function(t){var e=this._registries[t];return delete this._registries[t],e}},{key:"removeByValue",value:function(t){var e=this,n=this.findByValue(t);return n.map(function(t){return e.remove(t)})}},{key:"removeAll",value:function(){var t=this._registries;return this._registries={},t}},{key:"size",value:function(){return Object.keys(this._registries).length}}]),t}()},function(t,e,n){"use strict";function i(){return this instanceof i?(this._linearAdded=!1,this.ads=[],this.errorURLMacros=[],this.impressions=[],this.clickTrackings=[],this.customClicks=[],this.trackingEvents={},this.mediaFiles=[],this.clickThrough=void 0,this.adTitle="",this.duration=void 0,void(this.skipoffset=void 0)):new i}function r(t,e){e.forEach(function(e){t.push(e)})}var o=n(0),a=n(2),s=n(21),u=n(18),d=n(17),c=n(15),l=n(22);window.InLine__A=d,i.prototype.addAd=function(t){var e=void 0,n=void 0;t instanceof c&&(e=t.inLine,n=t.wrapper,this.ads.push(t),e&&this._addInLine(e),n&&this._addWrapper(n))},i.prototype._addErrorTrackUrl=function(t){var e=t instanceof a.JXONTree?a.keyValue(t):t;e&&this.errorURLMacros.push(e)},i.prototype._addImpressions=function(t){Array.isArray(t)&&r(this.impressions,t)},i.prototype._addClickThrough=function(t){o.isNotEmptyString(t)&&(this.clickThrough=t)},i.prototype._addClickTrackings=function(t){Array.isArray(t)&&r(this.clickTrackings,t)},i.prototype._addCustomClicks=function(t){Array.isArray(t)&&r(this.customClicks,t)},i.prototype._addTrackingEvents=function(t){var e=this.trackingEvents;t&&(t=o.isArray(t)?t:[t],t.forEach(function(t){e[t.name]||(e[t.name]=[]),e[t.name].push(t)}))},i.prototype._addTitle=function(t){o.isNotEmptyString(t)&&(this.adTitle=t)},i.prototype._addDuration=function(t){o.isNumber(t)&&(this.duration=t)},i.prototype._addVideoClicks=function(t){t instanceof s&&(this._addClickThrough(t.clickThrough),this._addClickTrackings(t.clickTrackings),this._addCustomClicks(t.customClicks))},i.prototype._addMediaFiles=function(t){Array.isArray(t)&&r(this.mediaFiles,t)},i.prototype._addSkipoffset=function(t){t&&(this.skipoffset=t)},i.prototype._addAdParameters=function(t){t&&(this.adParameters=t)},i.prototype._addLinear=function(t){t instanceof u&&(this._addDuration(t.duration),this._addTrackingEvents(t.trackingEvents),this._addVideoClicks(t.videoClicks),this._addMediaFiles(t.mediaFiles),this._addSkipoffset(t.skipoffset),this._addAdParameters(t.adParameters),this._linearAdded=!0)},i.prototype._addInLine=function(t){var e=this;t instanceof d&&(this._addTitle(t.adTitle),this._addErrorTrackUrl(t.error),this._addImpressions(t.impressions),t.creatives.forEach(function(t){t.linear&&e._addLinear(t.linear)}))},i.prototype._addWrapper=function(t){var e=this;t instanceof l&&(this._addErrorTrackUrl(t.error),this._addImpressions(t.impressions),t.creatives.forEach(function(t){var n=t.linear;n&&(e._addVideoClicks(n.videoClicks),e.clickThrough=void 0,e._addTrackingEvents(n.trackingEvents))}))},i.prototype.hasLinear=function(){return this._linearAdded},t.exports=i},function(t,e,n){"use strict";function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var r=n(0),o={};o.setImmediate=function(t){setTimeout(t,0)},o.iterator=function(t){var e=function n(e){var i=function r(){return t.length&&t[e].apply(null,arguments),r.next()};return i.next=function(){return e<t.length-1?n(e+1):null},i};return e(0)},o.waterfall=function(t,e){if(e=e||function(){},!r.isArray(t)){var n=new Error("First argument to waterfall must be an array of functions");return e(n)}if(!t.length)return e();var a=function s(t){return function(n){if(n)e.apply(void 0,arguments),e=function(){};else{var r=Array.prototype.slice.call(arguments,1),a=t.next();a?r.push(s(a)):r.push(e),o.setImmediate(function(){t.apply(void 0,i(r))})}}};a(o.iterator(t))()},o.when=function(t,e){if(!r.isFunction(e))throw new Error("async.when error: missing callback argument");var n=r.isFunction(t)?t:function(){return Boolean(t)};return function(){var t=r.arrayLikeObjToArray(arguments),o=t.pop();return n.apply(void 0,i(t))?e.apply(this,arguments):(t.unshift(null),o.apply(void 0,i(t)))}},t.exports=o},function(t,e,n){"use strict";t.exports={html5:["text/javascript","text/javascript1.0","text/javascript1.2","text/javascript1.4","text/jscript","application/javascript","application/x-javascript","text/ecmascript","text/ecmascript1.0","text/ecmascript1.2","text/ecmascript1.4","text/livescript","application/ecmascript","application/x-ecmascript"],flash:["application/x-shockwave-flash"]}},function(t,e,n){"use strict";var i=n(6),r=n(0),o={};o.getPlayerSnapshot=function(t){function e(t){var e=t.remoteTextTracks?t.remoteTextTracks():[];e&&r.isArray(e.tracks)&&(e=e.tracks),r.isArray(e)||(e=[]);var n=[];return e.forEach(function(t){n.push({track:t,mode:t.mode}),t.mode="disabled"}),n}var n=t.el().querySelector(".vjs-tech"),i={ended:t.ended(),src:t.currentSrc(),currentTime:t.currentTime(),type:t.currentType(),playing:!t.paused(),suppressedTracks:e(t)};return n&&(i.nativePoster=n.poster,i.style=n.getAttribute("style")),i},o.restorePlayerSnapshot=function(t,e){function n(){var e=setTimeout(function(){t.trigger("canplay")},1e3);t.one("canplay",function(){clearTimeout(e)})}function i(t,e){return t.src()?t.src()!==e.src:t.currentSrc()!==e.src}function r(){var t=e.suppressedTracks;t.forEach(function(t){t.track.mode=t.mode})}function a(){if(!o.isReadyToResume(t)&&u--)setTimeout(a,50);else try{t.currentTime()!==e.currentTime?(e.playing&&t.one("seeked",function(){t.play()}),t.currentTime(e.currentTime)):e.playing&&t.play()}catch(n){videojs.log.warn("Failed to resume the content after an advertisement",n)}}var s=t.el().querySelector(".vjs-tech"),u=20;e.nativePoster&&(s.poster=e.nativePoster),"style"in e&&s.setAttribute("style",e.style||""),i(t,e)?(t.one("contentloadedmetadata",r),t.one("canplay",a),n(),t.src({src:e.src,type:e.type}),t.load()):(r(),e.playing&&t.play())},o.isReadyToResume=function(t){return t.readyState()>1||(void 0===t.seekable()||t.seekable().length>0)},o.prepareForAds=function(t){function e(){var e=t.play;t.play=function(i){function o(){g||(g=!0,r.isIPhone()||(y=u(),t.muted(!0)),e.apply(d,arguments))}function a(i){n()&&!i?t.vast.adUnit.resumeAd():e.apply(d,arguments)}var d=this;return s()?o():a(i),this};var i=t.pause;t.pause=function(e){return n()&&!e?t.vast.adUnit.pauseAd():i.apply(this,arguments),this};var o=t.paused;t.paused=function(e){return n()&&!e?t.vast.adUnit.isPaused():o.apply(this,arguments)}}function n(){return t.vast&&t.vast.adUnit}function o(){s()&&(v=!1,g=!1,t.trigger("vast.firstPlay"))}function a(){v=!0,h.show(),d()}function s(){return v}function u(){return{muted:t.muted(),volume:t.volume()}}function d(){y&&(t.currentTime(0),c(y),y=null)}function c(e){r.isObject(e)&&(t.volume(e.volume),t.muted(e.muted))}function l(){i.hasClass(h.el(),"vjs-hidden")||h.hide()}function f(){i.addClass(t.el(),"vjs-ad-playing")}function p(){i.removeClass(t.el(),"vjs-ad-playing")}var h=t.addChild("blackPoster"),v=!0,g=!1,y=void 0;e(),t.on("play",o),t.on("vast.reset",a),t.on("vast.firstPlay",d),t.on("error",l),t.on("vast.adStart",l),t.on("vast.adsCancel",l),t.on("vast.adError",l),t.on("vast.adStart",f),t.on("vast.adEnd",p),t.on("vast.adsCancel",p)},o.removeNativePoster=function(t){var e=t.el().querySelector(".vjs-tech");e&&e.removeAttribute("poster")},o.once=function(t,e,n){function i(){n.apply(void 0,arguments),e.forEach(function(e){t.off(e,i)})}e.forEach(function(e){t.on(e,i)})},t.exports=o},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(){if(this._destroyed)throw new Error("VPAIDFlashToJS is destroyed!")}function o(){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(A,t,{writable:n,configurable:!1,value:e})}var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),u=n(25),d=n(13).JSFlashBridge,c=n(29).VPAIDAdUnit,l=n(1).noop,f=n(1).callbackTimeout,p=n(1).isPositiveInt,h=n(1).createElementWithID,v=n(1).unique("vpaid"),g=n(30).createFlashTester,y="10.1.0",m={isSupported:function(){return!0}},A=function(){function t(e,n){function r(t){return setTimeout(function(){n(new Error(t))},0),m}var a=arguments.length>2&&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"},g=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{debug:!1,timeout:1e4};i(this,t);var m=this;if(this._vpaidParentEl=e,this._flashID=v(),this._destroyed=!1,n=n||l,a.width=p(a.width,800),a.height=p(a.height,400),h(e,this._flashID,!0),c.movie=a.data,c.FlashVars="flashid="+this._flashID+"&handler="+d.VPAID_FLASH_HANDLER+"&debug="+g.debug+"&salign="+c.salign,!t.isSupported())return r("user don't support flash or doesn't have the minimum required version of flash "+y);if(this.el=u.createSWF(a,c,this._flashID),!this.el)return r("swfobject failed to create object in element");var A=f(g.timeout,function(t,e){o.call(s),n(t,e)},function(){n("vpaid flash load timeout "+g.timeout)});this._flash=new d(this.el,a.data,this._flashID,a.width,a.height,A)}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;r.call(this),this._adUnit&&this._destroyAdUnit(),this._flash.isReady()?(this._adUnitLoad=function(t,i){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;r.call(this),this._destroyAdUnit(),this._flash.callFlashMethod("unloadAdUnit",[],t)}},{key:"getFlashID",value:function(){return r.call(this),this._flash.getFlashID()}},{key:"getFlashURL",value:function(){return r.call(this),this._flash.getFlashURL()}}]),t}();a("isSupported",function(){return u.hasFlashPlayerVersion(y)&&m.isSupported()},!0),a("runFlashTest",function(t){m=g(document.body,t)}),A.swfobject=u,t.exports=A},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e,n){var i=this;setTimeout(function(){var r=i._callbacks.get(t);r&&(i._callbacks.remove(t),r(e,n))},0)}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=n(1).unique,s=n(1).isPositiveInt,u=n(1).stringEndsWith,d=n(7).SingleValueRegistry,c=n(7).MultipleValuesRegistry,l=n(31),f="vpaid_video_flash_handler",p="AdError",h=e.JSFlashBridge=function(){function t(e,n,r,o,s,u){i(this,t),this._el=e,this._flashID=r,this._flashURL=n,this._width=o,this._height=s,this._handlers=new c,this._callbacks=new d,this._uniqueMethodIdentifier=a(this._flashID),this._ready=!1,this._handShakeHandler=u,l.addInstance(this._flashID,this)}return o(t,[{key:"on",value:function(t,e){this._handlers.add(t,e)}},{key:"off",value:function(t,e){return this._handlers.remove(t,e)}},{key:"offEvent",value:function(t){return this._handlers.removeByKey(t)}},{key:"offAll",value:function(){return this._handlers.removeAll()}},{key:"callFlashMethod",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i="";n&&(i=this._uniqueMethodIdentifier()+"_"+t,this._callbacks.add(i,n));try{this._el[t]([i].concat(e))}catch(o){n?r.call(this,i,o):this._trigger(p,o)}}},{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(i){"AdClickThru"===t?i(e):setTimeout(function(){n._handlers.get(t).length>0&&i(e)},0)})}},{key:"_callCallback",value:function(t,e,n,i){var o=this._callbacks.get(e);return o?void r.call(this,e,n,i):void(n&&""===e&&this.trigger(p,n))}},{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(),l.removeInstanceByID(this._flashID),this._el.parentElement&&this._el.parentElement.removeChild(this._el)}}]),t}();Object.defineProperty(h,"VPAID_FLASH_HANDLER",{writable:!1,configurable:!1,value:f}),window[f]=function(t,e,n,i,r,o){var a=l.getInstanceByID(t);a&&("handShake"===n?a._handShake(r,o):"event"!==e?a._callCallback(n,i,r,o):a._trigger(n,o))}},function(t,e,n){"use strict";function i(){}function r(t,e){return t?null:new Error(e)}function o(t){var e=g[t];e&&(clearTimeout(e),delete g[t])}function a(t,e,n){var r,a;return a=setTimeout(function(){e=i,delete a[r],n()},t),r=function(){e.apply(this,arguments)&&o(r)},g[r]=a,r}function s(t,e,n){var i=document.createElement(e);return n&&(i.id=n),t.appendChild(i),i}function u(t,e,n){var i=d(t,null,n.zIndex);if(f(i,l(e,n)))return i}function d(t,e,n){var i=document.createElement("iframe");return i.src=e||"about:blank",i.marginWidth="0",i.marginHeight="0",i.frameBorder="0",i.width="100%",i.height="100%",c(i),n&&(i.style.zIndex=n),i.setAttribute("SCROLLING","NO"),t.innerHTML="",t.appendChild(i),i}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 l(t,e){return Object.keys(e).forEach(function(n){var i="object"===("undefined"==typeof i?"undefined":v(i))?JSON.stringify(e[n]):e[n];t=t.replace(new RegExp("{{"+n+"}}","g"),i)}),t}function f(t,e){var n=t.contentWindow&&t.contentWindow.document;return!!n&&(n.write(e),!0)}function p(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},g={};t.exports={noop:i,validate:r,clearCallbackTimeout:o,callbackTimeout:a,createElementInEl:s,createIframeWithContent:u,createIframe:d,setFullSizeStyle:c,simpleTemplate:l,setIframeContent:f,extend:p,unique:h}},function(t,e,n){"use strict";function i(t){return this instanceof i?void this.initialize(t):new i(t)}var r=n(17),o=n(22);i.prototype.initialize=function(t){this.id=t.attr("id"),this.sequence=t.attr("sequence"),t.inLine&&(this.inLine=new r(t.inLine)),t.wrapper&&(this.wrapper=new o(t.wrapper))},t.exports=i},function(t,e,n){"use strict";function i(t){if(!(this instanceof i))return new i(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;r.isDefined(n)&&(n=r.isArray(n)?n:[n],n.forEach(function(t){e.push(new o(t))})),this.companionAds=e}}var r=n(0),o=n(36),a=n(18);i.prototype.isSupported=function(){return!this.linear||this.linear.isSupported()},i.parseCreatives=function(t){var e=[],n=void 0;return r.isDefined(t)&&r.isDefined(t.creative)&&(n=r.isArray(t.creative)?t.creative:[t.creative],n.forEach(function(t){e.push(new i(t))})),e},t.exports=i},function(t,e,n){"use strict";function i(t){function e(t){return t?r.transformArray(r.isArray(t)?t:[t],function(t){if(r.isNotEmptyString(t.keyValue))return{uri:t.keyValue,type:t.attr("type")}}):[]}return this instanceof i?(this.adTitle=o.keyValue(t.adTitle),this.adSystem=o.keyValue(t.adSystem),this.impressions=a.parseImpressions(t.impression),this.creatives=s.parseCreatives(t.creatives),this.description=o.keyValue(t.description),this.advertiser=o.keyValue(t.advertiser),this.surveys=e(t.survey),this.error=o.keyValue(t.error),this.pricing=o.keyValue(t.pricing),void(this.extensions=t.extensions)):new i(t)}var r=n(0),o=n(2),a=n(4),s=n(16);i.prototype.isSupported=function(){var t=void 0,e=void 0;if(0===this.creatives.length)return!1;for(t=0,e=this.creatives.length;t<e;t+=1)if(!this.creatives[t].isSupported())return!1;return!0},t.exports=i},function(t,e,n){"use strict";function i(t){function e(t,e){var n=[];return r.isDefined(t)&&(t=r.isArray(t)?t:[t],t.forEach(function(t){n.push(new s(t,e))})),n}function n(t){var e=[];return r.isDefined(t)&&(t=r.isArray(t)?t:[t],t.forEach(function(t){e.push(new d(t))})),e}return this instanceof i?(this.duration=a.duration(o.keyValue(t.duration)),this.mediaFiles=n(t.mediaFiles&&t.mediaFiles.mediaFile),this.trackingEvents=e(t.trackingEvents&&t.trackingEvents.tracking,this.duration),this.skipoffset=a.offset(o.attr(t,"skipoffset"),this.duration),t.videoClicks&&(this.videoClicks=new u(t.videoClicks)),void(t.adParameters&&(this.adParameters=o.keyValue(t.adParameters),o.attr(t.adParameters,"xmlEncoded")&&(this.adParameters=o.decode(this.adParameters))))):new i(t)}var r=n(0),o=n(2),a=n(23),s=n(19),u=n(21),d=n(37);i.prototype.isSupported=function(){var t=void 0,e=void 0;for(t=0,e=this.mediaFiles.length;t<e;t+=1)if(this.mediaFiles[t].isSupported())return!0;return!1},t.exports=i},function(t,e,n){"use strict";function i(t,e){return this instanceof i?(this.name=t.attr("event"),this.uri=r.keyValue(t),void("progress"===this.name&&(this.offset=o.offset(t.attr("offset"),e)))):new i(t,e)}var r=n(2),o=n(23);t.exports=i},function(t,e,n){"use strict";function i(t,e){return this instanceof i?(this.sanityCheck(t,e),void this.initialize(t,e)):new i(t,e)}var r=n(0),o=n(3),a=n(8),s=n(4);i.prototype.initialize=function(t,e){this.response=e,this.assetURI=t,this.progress=0,this.quartiles={firstQuartile:{tracked:!1,time:Math.round(25*e.duration)/100},midpoint:{tracked:!1,time:Math.round(50*e.duration)/100},thirdQuartile:{tracked:!1,time:Math.round(75*e.duration)/100}}},i.prototype.sanityCheck=function(t,e){if(!r.isString(t)||r.isEmptyString(t))throw new o("on VASTTracker constructor, missing required the URI of the ad asset being played");if(!(e instanceof a))throw new o("on VASTTracker constructor, missing required VAST response")},i.prototype.trackURLs=function(t,e){r.isArray(t)&&t.length>0&&(e=r.extend({ASSETURI:this.assetURI,CONTENTPLAYHEAD:s.formatProgress(this.progress)},e||{}),s.track(t,e))},i.prototype.trackEvent=function(t,e){function n(t){var e=void 0;return t&&(e=[],t.forEach(function(t){t.uri&&e.push(t.uri)})),e}this.trackURLs(n(this.response.trackingEvents[t])),e&&(this.response.trackingEvents[t]=void 0)},i.prototype.trackProgress=function(t){function e(e,n){var i=3e3;return e>t&&Math.abs(n-e)>i}function n(t,e,n){f[t]&&n&&d.push({name:t,trackOnce:Boolean(e)})}function i(t){function e(t,e){var r=i[t];o(r,e)&&(r.tracked=!0,n(t,c,!0))}var i=u.quartiles,r=u.quartiles.firstQuartile,a=u.quartiles.midpoint,s=u.quartiles.thirdQuartile;r.tracked?a.tracked?s.tracked||e("thirdQuartile",t):e("midpoint",t):e("firstQuartile",t)}function o(t,e){var n=t.time;return e>=n&&e<=n+5e3}function a(t){if(r.isArray(f.progress)){var e=[];f.progress.forEach(function(n){n.offset<=t?u.trackURLs([n.uri]):e.push(n)}),f.progress=e}}function s(){d.forEach(function(t){u.trackEvent(t.name,t.trackOnce)})}var u=this,d=[],c=!0,l=!1,f=this.response.trackingEvents;r.isNumber(t)&&(n("start",c,t>0),n("rewind",l,e(this.progress,t)),i(t),a(t),s(),this.progress=t)},["rewind","fullscreen","exitFullscreen","pause","resume","mute","unmute","acceptInvitation","acceptInvitationLinear","collapse","expand"].forEach(function(t){i.prototype["track"+r.capitalize(t)]=function(){this.trackEvent(t)}}),["start","skip","close","closeLinear"].forEach(function(t){i.prototype["track"+r.capitalize(t)]=function(){this.trackEvent(t,!0)}}),["firstQuartile","midpoint","thirdQuartile"].forEach(function(t){i.prototype["track"+r.capitalize(t)]=function(){this.quartiles[t].tracked=!0,this.trackEvent(t,!0)}}),i.prototype.trackComplete=function(){this.quartiles.thirdQuartile.tracked&&this.trackEvent("complete",!0)},i.prototype.trackErrorWithCode=function(t){r.isNumber(t)&&this.trackURLs(this.response.errorURLMacros,{ERRORCODE:t})},i.prototype.trackImpressions=function(){this.trackURLs(this.response.impressions)},i.prototype.trackCreativeView=function(){this.trackEvent("creativeView")},i.prototype.trackClick=function(){this.trackURLs(this.response.clickTrackings)},t.exports=i},function(t,e,n){"use strict";function i(t){function e(t){var e=[];return t&&(t=r.isArray(t)?t:[t],t.forEach(function(t){e.push(o.keyValue(t))})),e}return this instanceof i?(this.clickThrough=o.keyValue(t.clickThrough),this.clickTrackings=e(t.clickTracking),void(this.customClicks=e(t.customClick))):new i(t)}var r=n(0),o=n(2);t.exports=i},function(t,e,n){"use strict";function i(t){return this instanceof i?(this.adSystem=o.keyValue(t.adSystem),this.impressions=a.parseImpressions(t.impression),this.VASTAdTagURI=o.keyValue(t.vASTAdTagURI),this.creatives=s.parseCreatives(t.creatives),this.error=o.keyValue(t.error),this.extensions=t.extensions,this.followAdditionalWrappers=!r.isDefined(o.attr(t,"followAdditionalWrappers"))||o.attr(t,"followAdditionalWrappers"),this.allowMultipleAds=o.attr(t,"allowMultipleAds"),void(this.fallbackOnNoAd=o.attr(t,"fallbackOnNoAd"))):new i(t)}var r=n(0),o=n(2),a=n(4),s=n(16);t.exports=i},function(t,e,n){"use strict";var i=n(0),r=/(\d\d):(\d\d):(\d\d)(\.(\d\d\d))?/,o={duration:function(t){function e(t){return 60*parseInt(t,10)*60*1e3}function n(t){return 60*parseInt(t,10)*1e3}function o(t){return 1e3*parseInt(t,10)}var a=void 0,s=void 0;return i.isString(t)&&(a=t.match(r),a&&(s=e(a[1])+n(a[2])+o(a[3])+parseInt(a[5]||0,10))),isNaN(s)?null:s},offset:function(t,e){function n(t){var e=/^\d+(\.\d+)?%$/g;return e.test(t)}function i(t,e){return e?r(e,parseFloat(t.replace("%",""))):null}function r(t,e){return t*e/100}return n(t)?i(t,e):o.duration(t)}};t.exports=o},function(t,e,n){"use strict";function i(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 r(t,e){var n=void 0,i=void 0;return e=a.isFunction(e)?e:function(){return!0},t=t.trim().replace(/^\?/,""),n=t.split("&"),i={},a.forEach(n,function(t){var n=void 0,r=void 0,o=void 0;""!==t&&(n=t.split("="),r=n[0],o=n[1],e(r,o)&&(i[r]=o))}),i}function o(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:i,queryStringToObj:r,objToQueryString:o}},function(t,e){var n=function(){function t(){if(!z){try{var t=M.getElementsByTagName("body")[0].appendChild(y("span"));t.parentNode.removeChild(t)}catch(e){return}z=!0;for(var n=N.length,i=0;i<n;i++)N[i]()}}function e(t){z?t():N[N.length]=t}function i(t){if(typeof R.addEventListener!=I)R.addEventListener("load",t,!1);else if(typeof M.addEventListener!=I)M.addEventListener("load",t,!1);else if(typeof R.attachEvent!=I)m(R,"onload",t);else if("function"==typeof R.onload){var e=R.onload;R.onload=function(){e(),t()}}else R.onload=t}function r(){O?o():a()}function o(){var t=M.getElementsByTagName("body")[0],e=y(L);e.setAttribute("type",F);var n=t.appendChild(e);if(n){var i=0;!function(){if(typeof n.GetVariable!=I){var r=n.GetVariable("$version");r&&(r=r.split(" ")[1].split(","),J.pv=[parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10)])}else if(i<10)return i++,void setTimeout(arguments.callee,10);t.removeChild(e),n=null,a()}()}else a()}function a(){var t=B.length;if(t>0)for(var e=0;e<t;e++){var n=B[e].id,i=B[e].callbackFn,r={success:!1,id:n};if(J.pv[0]>0){var o=g(n);if(o)if(!A(B[e].swfVersion)||J.wk&&J.wk<312)if(B[e].expressInstall&&u()){var a={};a.data=B[e].expressInstall,a.width=o.getAttribute("width")||"0",a.height=o.getAttribute("height")||"0",o.getAttribute("class")&&(a.styleclass=o.getAttribute("class")),o.getAttribute("align")&&(a.align=o.getAttribute("align"));for(var l={},f=o.getElementsByTagName("param"),p=f.length,h=0;h<p;h++)"movie"!=f[h].getAttribute("name").toLowerCase()&&(l[f[h].getAttribute("name")]=f[h].getAttribute("value"));d(a,l,n,i)}else c(o),i&&i(r);else k(n,!0),i&&(r.success=!0,r.ref=s(n),i(r))}else if(k(n,!0),i){var v=s(n);v&&typeof v.SetVariable!=I&&(r.success=!0,r.ref=v),i(r)}}}function s(t){var e=null,n=g(t);if(n&&"OBJECT"==n.nodeName)if(typeof n.SetVariable!=I)e=n;else{var i=n.getElementsByTagName(L)[0];i&&(e=i)}return e}function u(){return!q&&A("6.0.65")&&(J.win||J.mac)&&!(J.wk&&J.wk<312)}function d(t,e,n,i){q=!0,S=i||null,T={success:!1,id:n};var r=g(n);if(r){"OBJECT"==r.nodeName?(_=l(r),E=null):(_=r,E=n),t.id=D,(typeof t.width==I||!/%$/.test(t.width)&&parseInt(t.width,10)<310)&&(t.width="310"),(typeof t.height==I||!/%$/.test(t.height)&&parseInt(t.height,10)<137)&&(t.height="137"),M.title=M.title.slice(0,47)+" - Flash Player Installation";var o=J.ie&&J.win?["Active"].concat("").join("X"):"PlugIn",a="MMredirectURL="+R.location.toString().replace(/&/g,"%26")+"&MMplayerType="+o+"&MMdoctitle="+M.title;if(typeof e.flashvars!=I?e.flashvars+="&"+a:e.flashvars=a,J.ie&&J.win&&4!=r.readyState){var s=y("div");n+="SWFObjectNew",s.setAttribute("id",n),r.parentNode.insertBefore(s,r),r.style.display="none",function(){4==r.readyState?r.parentNode.removeChild(r):setTimeout(arguments.callee,10)}()}f(t,e,n)}}function c(t){if(J.ie&&J.win&&4!=t.readyState){var e=y("div");t.parentNode.insertBefore(e,t),e.parentNode.replaceChild(l(t),e),t.style.display="none",function(){4==t.readyState?t.parentNode.removeChild(t):setTimeout(arguments.callee,10)}()}else t.parentNode.replaceChild(l(t),t)}function l(t){var e=y("div");if(J.win&&J.ie)e.innerHTML=t.innerHTML;else{var n=t.getElementsByTagName(L)[0];if(n){var i=n.childNodes;if(i)for(var r=i.length,o=0;o<r;o++)1==i[o].nodeType&&"PARAM"==i[o].nodeName||8==i[o].nodeType||e.appendChild(i[o].cloneNode(!0))}}return e}function f(t,e,n){var i,r=g(n);if(J.wk&&J.wk<312)return i;if(r)if(typeof t.id==I&&(t.id=n),J.ie&&J.win){var o="";for(var a in t)t[a]!=Object.prototype[a]&&("data"==a.toLowerCase()?e.movie=t[a]:"styleclass"==a.toLowerCase()?o+=' class="'+t[a]+'"':"classid"!=a.toLowerCase()&&(o+=" "+a+'="'+t[a]+'"'));var s="";for(var u in e)e[u]!=Object.prototype[u]&&(s+='<param name="'+u+'" value="'+e[u]+'" />');r.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+o+">"+s+"</object>",H[H.length]=t.id,i=g(t.id)}else{var d=y(L);d.setAttribute("type",F);for(var c in t)t[c]!=Object.prototype[c]&&("styleclass"==c.toLowerCase()?d.setAttribute("class",t[c]):"classid"!=c.toLowerCase()&&d.setAttribute(c,t[c]));for(var l in e)e[l]!=Object.prototype[l]&&"movie"!=l.toLowerCase()&&p(d,l,e[l]);r.parentNode.replaceChild(d,r),i=d}return i}function p(t,e,n){var i=y("param");i.setAttribute("name",e),i.setAttribute("value",n),t.appendChild(i)}function h(t){var e=g(t);e&&"OBJECT"==e.nodeName&&(J.ie&&J.win?(e.style.display="none",function(){4==e.readyState?v(t):setTimeout(arguments.callee,10)}()):e.parentNode.removeChild(e))}function v(t){var e=g(t);if(e){for(var n in e)"function"==typeof e[n]&&(e[n]=null);e.parentNode.removeChild(e)}}function g(t){var e=null;try{e=M.getElementById(t)}catch(n){}return e}function y(t){return M.createElement(t)}function m(t,e,n){t.attachEvent(e,n),W[W.length]=[t,e,n]}function A(t){var e=J.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,i){if(!J.ie||!J.mac){var r=M.getElementsByTagName("head")[0];if(r){var o=n&&"string"==typeof n?n:"screen";if(i&&(C=null,V=null),!C||V!=o){var a=y("style");a.setAttribute("type","text/css"),a.setAttribute("media",o),C=r.appendChild(a),J.ie&&J.win&&typeof M.styleSheets!=I&&M.styleSheets.length>0&&(C=M.styleSheets[M.styleSheets.length-1]),V=o}J.ie&&J.win?C&&typeof C.addRule==L&&C.addRule(t,e):C&&typeof M.createTextNode!=I&&C.appendChild(M.createTextNode(t+" {"+e+"}"))}}}function k(t,e){if(X){var n=e?"visible":"hidden";z&&g(t)?g(t).style.visibility=n:b("#"+t,"visibility:"+n)}}function w(t){var e=/[\\\"<>\.;]/,n=null!=e.exec(t);return n&&typeof encodeURIComponent!=I?encodeURIComponent(t):t}var _,E,S,T,C,V,I="undefined",L="object",P="Shockwave Flash",x="ShockwaveFlash.ShockwaveFlash",F="application/x-shockwave-flash",D="SWFObjectExprInst",U="onreadystatechange",R=window,M=document,j=navigator,O=!1,N=[r],B=[],H=[],W=[],z=!1,q=!1,X=!0,J=function(){var t=typeof M.getElementById!=I&&typeof M.getElementsByTagName!=I&&typeof M.createElement!=I,e=j.userAgent.toLowerCase(),n=j.platform.toLowerCase(),i=n?/win/.test(n):/win/.test(e),r=n?/mac/.test(n):/mac/.test(e),o=!!/webkit/.test(e)&&parseFloat(e.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")),a=!1,s=[0,0,0],u=null;if(typeof j.plugins!=I&&typeof j.plugins[P]==L)u=j.plugins[P].description,!u||typeof j.mimeTypes!=I&&j.mimeTypes[F]&&!j.mimeTypes[F].enabledPlugin||(O=!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")]!=I)try{var d=new(window[["Active"].concat("Object").join("X")])(x);d&&(u=d.GetVariable("$version"),u&&(a=!0,u=u.split(" ")[1].split(","),s=[parseInt(u[0],10),parseInt(u[1],10),parseInt(u[2],10)]))}catch(c){}return{w3:t,pv:s,wk:o,ie:a,win:i,mac:r}}();(function(){J.w3&&((typeof M.readyState!=I&&"complete"==M.readyState||typeof M.readyState==I&&(M.getElementsByTagName("body")[0]||M.body))&&t(),z||(typeof M.addEventListener!=I&&M.addEventListener("DOMContentLoaded",t,!1),J.ie&&J.win&&(M.attachEvent(U,function(){"complete"==M.readyState&&(M.detachEvent(U,arguments.callee),t())}),R==top&&!function(){if(!z){try{M.documentElement.doScroll("left")}catch(e){return void setTimeout(arguments.callee,0)}t()}}()),J.wk&&!function(){if(!z)return/loaded|complete/.test(M.readyState)?void t():void setTimeout(arguments.callee,0)}(),i(t)))})(),function(){J.ie&&J.win&&window.attachEvent("onunload",function(){for(var t=W.length,e=0;e<t;e++)W[e][0].detachEvent(W[e][1],W[e][2]);for(var i=H.length,r=0;r<i;r++)h(H[r]);for(var o in J)J[o]=null;J=null;for(var a in n)n[a]=null;n=null})}();return{registerObject:function(t,e,n,i){if(J.w3&&t&&e){var r={};r.id=t,r.swfVersion=e,r.expressInstall=n,r.callbackFn=i,B[B.length]=r,k(t,!1)}else i&&i({success:!1,id:t})},getObjectById:function(t){if(J.w3)return s(t)},embedSWF:function(t,n,i,r,o,a,s,c,l,p){var h={success:!1,id:n};J.w3&&!(J.wk&&J.wk<312)&&t&&n&&i&&r&&o?(k(n,!1),e(function(){i+="",r+="";var e={};if(l&&typeof l===L)for(var v in l)e[v]=l[v];e.data=t,e.width=i,e.height=r;var g={};if(c&&typeof c===L)for(var y in c)g[y]=c[y];if(s&&typeof s===L)for(var m in s)typeof g.flashvars!=I?g.flashvars+="&"+m+"="+s[m]:g.flashvars=m+"="+s[m];if(A(o)){var b=f(e,g,n);e.id==n&&k(n,!0),h.success=!0,h.ref=b}else{if(a&&u())return e.data=a,void d(e,g,n,p);k(n,!0)}p&&p(h)})):p&&p(h)},switchOffAutoHideShow:function(){X=!1},ua:J,getFlashPlayerVersion:function(){return{major:J.pv[0],minor:J.pv[1],release:J.pv[2]}},hasFlashPlayerVersion:A,createSWF:function(t,e,n){return J.w3?f(t,e,n):void 0},showExpressInstall:function(t,e,n,i){J.w3&&u()&&d(t,e,n,i)},removeSWF:function(t){J.w3&&h(t)},createCSS:function(t,e,n,i){J.w3&&b(t,e,n,i)},addDomLoadEvent:e,addLoadEvent:i,getQueryParamValue:function(t){var e=M.location.search||M.location.hash;if(e){if(/\?/.test(e)&&(e=e.split("?")[1]),null==t)return w(e);for(var n=e.split("&"),i=0;i<n.length;i++)if(n[i].substring(0,n[i].indexOf("="))==t)return w(n[i].substring(n[i].indexOf("=")+1))}return""},expressInstallCallback:function(){if(q){var t=g(D);t&&_&&(t.parentNode.replaceChild(_,t),E&&(k(E,!0),J.ie&&J.win&&(_.style.display="block")),S&&S(T)),q=!1}}}}();t.exports=n},function(t,e,n){"use strict";var i=n(38),r=n(3),o=n(4),a=n(39),s=n(43),u=n(9),d=n(6),c=n(11),l=n(0),f=n(5);t.exports=function(t){function e(){function t(){A.vast&&A.vast.adUnit&&(A.vast.adUnit=null)}function e(){n(),m&&(c.restorePlayerSnapshot(A,m),m=null)}function n(){c.once(A,["playing","vast.reset","vast.firstPlay"],function(t){"playing"===t.type&&(A.trigger("vast.contentStart"),c.once(A,["ended","vast.reset","vast.firstPlay"],function(t){"ended"===t.type&&A.trigger("vast.contentEnd")}))})}function i(t){return _.adsEnabled?t(null):void t(new r("Ads are not enabled"))}function o(t){a()?(m=c.getPlayerSnapshot(A),A.pause(),f(),A.paused()?t(null):c.once(A,["playing"],function(){A.pause(),t(null)})):t(new r("video content has been playing before preroll ad"))}function a(){return!l.isIPhone()||A.currentTime()<=_.iosPrerollCancelTimeout}function s(t){function e(){n&&(clearTimeout(n),n=null)}var n=void 0;k=!1,n=setTimeout(function(){g(new r("timeout while waiting for the video to start playing",402))},_.adCancelTimeout),c.once(A,["vast.adStart","vast.adsCancel"],e),t(null)}function f(){d.addClass(A.el(),"vjs-vast-ad-loading"),c.once(A,["vast.adStart","vast.adsCancel"],h)}function h(){setTimeout(function(){d.removeClass(A.el(),"vjs-vast-ad-loading")},100)}c.removeNativePoster(A),c.once(A,["vast.adsCancel","vast.adEnd"],function(){t(),e()}),u.waterfall([i,o,s,p],function(t,e){t?g(t,e):A.trigger("vast.adEnd")})}function n(){A.trigger("vast.adsCancel"),k=!0}function p(t){u.waterfall([h,v],t)}function h(t){return _.getAdTag?_.getAdTag(function(e,n){return e?g(e):b.getVASTResponse(n,t)}):void b.getVASTResponse(_.adTagXML,t)}function v(t,e){function n(){u||A.controlBar.getChild("AdsLabel")||A.controlBar.addChild("AdsLabel")}function i(){A.controlBar.removeChild("AdsLabel"),u=!0}function r(){function t(){A.duration()-r>i&&(A.pause(!0),A.play(!0),A.currentTime(r))}function e(){var t=A.currentTime(),e=Math.abs(t-r);e>i?(o+=1,o>=2&&A.pause(!0),A.currentTime(r)):r=t}function n(){A.off("timeupdate",e),A.off("ended",t)}var i=3,r=0,o=0;A.on("timeupdate",e),A.on("ended",t),c.once(A,["vast.adEnd","vast.adsCancel","vast.adError"],n)}if(!k){var o=y(t)?new s(A,_):new a(A),u=!1;c.once(A,["vast.adStart","vast.adsCancel"],function(t){"vast.adStart"===t.type&&n()}),c.once(A,["vast.adEnd","vast.adsCancel"],i),l.isIDevice()&&r(),A.vast.vastResponse=t,f.debug("calling adIntegrator.playAd() with vastResponse:",t),A.vast.adUnit=o.playAd(t,e)}}function g(t,e){A.trigger({type:"vast.adError",error:t}),n(),f.error("AD ERROR:",t.message,t,e)}function y(t){var e=void 0,n=void 0,i=t.mediaFiles;for(e=0,n=i.length;e<n;e++)if(o.isVPAID(i[e]))return!0;return!1}var m=void 0,A=this,b=new i,k=!1,w={timeout:500,iosPrerollCancelTimeout:2e3,adCancelTimeout:3e3,playAdAlways:!1,adsEnabled:!0,autoResize:!0,vpaidFlashLoaderPath:"/VPAIDFlash.swf",verbosity:0},_=l.extend({},w,t||{});return l.isUndefined(_.getAdTag)&&l.isDefined(_.adTag)&&(_.getAdTag=function(t){return t(null,_.adTag)}),l.isDefined(_.adTagXML)&&!l.isFunction(_.adTagXML)?g(new r("on VideoJS VAST plugin, the passed adTagXML option does not contain a function")):l.isFunction(_.adTagXML)||l.isFunction(_.getAdTag)?(f.setVerbosity(_.verbosity),o.runFlashSupportCheck(_.vpaidFlashLoaderPath),c.prepareForAds(A),_.playAdAlways&&A.on("vast.contentEnd",function(){setTimeout(function(){A.trigger("vast.reset")},0)}),A.on("vast.firstPlay",e),A.on("vast.reset",function(){m=null,n()}),A.vast={isEnabled:function(){return _.adsEnabled},enable:function(){_.adsEnabled=!0},disable:function(){_.adsEnabled=!1}},A.vast):g(new r("on VideoJS VAST plugin, missing adTag on options object"))}},function(t,e,n){var i=n(47);"string"==typeof i&&(i=[[t.i,i,""]]);n(50)(i,{});i.locals&&(t.exports=i.locals)},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=e.IVPAIDAdUnit=function(){function t(){i(this,t)}return r(t,[{key:"handshakeVersion",value:function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:"2.0",arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0}},{key:"initAd",value:function(t,e,n,i){arguments.length>4&&void 0!==arguments[4]?arguments[4]:{AdParameters:""},arguments.length>5&&void 0!==arguments[5]?arguments[5]:{flashVars:""},arguments.length>6&&void 0!==arguments[6]?arguments[6]:void 0}},{key:"resizeAd",value:function(t,e,n){arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0}},{key:"startAd",value:function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0}},{key:"stopAd",value:function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0}},{key:"pauseAd",value:function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0}},{key:"resumeAd",value:function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0}},{key:"expandAd",value:function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0}},{key:"collapseAd",value:function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0}},{key:"skipAd",value:function(){arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 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]:void 0}},{key:"getAdVolume",value:function(t){}},{key:"getAdCompanions",value:function(t){}},{key:"getAdIcons",value:function(t){}}]),t}();Object.defineProperty(o,"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 i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(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 o(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;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),s=n(28).IVPAIDAdUnit,u=Object.getOwnPropertyNames(s.prototype).filter(function(t){return["constructor"].indexOf(t)===-1});e.VPAIDAdUnit=function(t){function e(t){i(this,e);var n=r(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n._destroyed=!1,n._flash=t,n}return o(e,t),a(e,[{key:"_destroy",value:function(){var t=this;this._destroyed=!0,u.forEach(function(e){t._flash.removeCallbackByMethodName(e)}),s.EVENTS.forEach(function(e){t._flash.offEvent(e)}),this._flash=null}},{key:"isDestroyed",value:function(){return this._destroyed}},{key:"on",value:function(t,e){this._flash.on(t,e)}},{key:"off",value:function(t,e){this._flash.off(t,e)}},{key:"handshakeVersion",value:function(){var t=arguments.length>0&&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,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{AdParameters:""},o=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),r=r||{AdParameters:""},o=o||{flashVars:""},this._flash.callFlashMethod("initAd",[this._flash.getWidth(),this._flash.getHeight(),n,i,r.AdParameters||"",o.flashVars||""],a)}},{key:"resizeAd",value:function(t,e,n){var i=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],i)}},{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 i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=n(25),a="vpaid_video_flash_tester",s="vpaid_video_flash_tester_el",u=n(13).JSFlashBridge,d=n(1),c=n(7).MultipleValuesRegistry,l=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{data:"VPAIDFlash.swf",width:800,height:400};i(this,t),this.parentEl=d.createElementWithID(e,s),d.hideFlashEl(this.parentEl);var a={};a.movie=r.data,a.FlashVars="flashid="+s+"&handler="+u.VPAID_FLASH_HANDLER,a.allowScriptAccess="always",this.el=o.createSWF(r,a,s),this._handlers=new c,this._isSupported=!1,this.el&&(d.hideFlashEl(this.el),this._flash=new u(this.el,r.data,s,r.width,r.height,function(){var t=!0;n._isSupported=t,n._handlers.get("change").forEach(function(e){setTimeout(function(){e("change",t)},0)})}))}return r(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 l(t,e)),window[a]}},function(t,e,n){"use strict";var i=n(7).SingleValueRegistry,r=new i,o={};Object.defineProperty(o,"addInstance",{writable:!1,configurable:!1,value:function(t,e){r.add(t,e)}}),Object.defineProperty(o,"getInstanceByID",{writable:!1,configurable:!1,value:function(t){return r.get(t)}}),Object.defineProperty(o,"removeInstanceByID",{writable:!1,configurable:!1,value:function(t){return r.remove(t)}}),t.exports=o},function(t,e,n){"use strict";function i(t,e,n){}function r(t,e,n){Object.defineProperty(t,e,{writable:!1,configurable:!1,value:n})}var o=["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"];i.prototype.handshakeVersion=function(t,e){},i.prototype.initAd=function(t,e,n,i,r,o,a){},i.prototype.startAd=function(t){},i.prototype.stopAd=function(t){},i.prototype.skipAd=function(t){},i.prototype.resizeAd=function(t,e,n,i){},i.prototype.pauseAd=function(t){},i.prototype.resumeAd=function(t){},i.prototype.expandAd=function(t){},i.prototype.collapseAd=function(t){},i.prototype.subscribe=function(t,e,n){},i.prototype.unsubscribe=function(t,e){},i.prototype.getAdLinear=function(t){},i.prototype.getAdWidth=function(t){},i.prototype.getAdHeight=function(t){},i.prototype.getAdExpanded=function(t){},i.prototype.getAdSkippableState=function(t){},i.prototype.getAdRemainingTime=function(t){},i.prototype.getAdDuration=function(t){},i.prototype.getAdVolume=function(t){},i.prototype.getAdCompanions=function(t){},i.prototype.getAdIcons=function(t){},i.prototype.setAdVolume=function(t,e){},r(i,"METHODS",o),r(i,"GETTERS",s),r(i,"SETTERS",u),r(i,"EVENTS",a);var d=o.filter(function(t){return["skipAd"].indexOf(t)===-1});r(i,"checkVPAIDInterface",function(t){var e=d.every(function(e){return"function"==typeof t[e]});return e}),t.exports=i},function(t,e,n){"use strict";function i(t,e,n,i){
this._isValid=c(t),this._isValid&&(this._creative=t,this._el=e,this._videoEl=n,this._iframe=i,this._subscribers=new d,l.setFullSizeStyle(e),r.call(this))}function r(){if(h.forEach(function(t){this._creative.subscribe(a.bind(this,t),t)}.bind(this)),this._creative.subscribe(o.bind(this),p),this._videoEl){var t=this._iframe.contentDocument.documentElement,e=this._videoEl;t.addEventListener("click",function(n){n.target===t&&e.click()})}}function o(t,e,n){this._subscribers.triggerSync(p,{url:t,id:e,playerHandles:n})}function a(t){this._subscribers.trigger(t,Array.prototype.slice(arguments,1))}function s(t,e,n,i){t?t(n,i):n&&e.trigger(f,n)}var u=n(32),d=n(35),c=u.checkVPAIDInterface,l=n(14),f=(u.METHODS,"AdError"),p="AdClickThru",h=u.EVENTS.filter(function(t){return t!=p});i.prototype=Object.create(u.prototype),i.prototype.isValidVPAIDAd=function(){return this._isValid},u.METHODS.forEach(function(t){var e=["subscribe","unsubscribe","initAd"];e.indexOf(t)===-1&&(i.prototype[t]=function(){var e=u.prototype[t].length,n=Array.prototype.slice.call(arguments),i=e===n.length?n.pop():void 0;setTimeout(function(){var e,r=null;try{e=this._creative[t].apply(this._creative,n)}catch(o){r=o}s(i,this._subscribers,r,e)}.bind(this),0)})}),i.prototype.initAd=function(t,e,n,i,r,o,a){r=r||{},o=l.extend({slot:this._el,videoSlot:this._videoEl},o||{}),setTimeout(function(){var u;try{this._creative.initAd(t,e,n,i,r,o)}catch(d){u=d}s(a,this._subscribers,u)}.bind(this),0)},i.prototype.subscribe=function(t,e,n){this._subscribers.subscribe(e,t,n)},i.prototype.unsubscribe=function(t,e){this._subscribers.unsubscribe(e,t)},i.prototype.on=i.prototype.subscribe,i.prototype.off=i.prototype.unsubscribe,u.GETTERS.forEach(function(t){i.prototype[t]=function(e){setTimeout(function(){var n,i=null;try{n=this._creative[t]()}catch(r){i=r}s(e,this._subscribers,i,n)}.bind(this),0)}}),i.prototype.setAdVolume=function(t,e){setTimeout(function(){var n,i=null;try{this._creative.setAdVolume(t),n=this._creative.getAdVolume()}catch(r){i=r}i||(i=l.validate(n===t,"failed to apply volume: "+t)),s(e,this._subscribers,i,n)}.bind(this),0)},i.prototype._destroy=function(){this.stopAd(),this._subscribers.unsubscribeAll()},t.exports=i},function(t,e,n){"use strict";function i(t,e,n,i){n=n||{},this._id=p(),this._destroyed=!1,this._frameContainer=f.createElementInEl(t,"div"),this._videoEl=e,this._vpaidOptions=i||{timeout:1e4},this._templateConfig={template:n.template||v,extraOptions:n.extraOptions||{}}}function r(t){var e=this[t];e&&(e.remove(),delete this[t])}function o(){s.call(this),delete this._adUnit}function a(){s.call(this),d.call(this)}function s(){r.call(this,"_frame"),u.call(this)}function u(){this._onLoad&&(window.removeEventListener("message",this._onLoad),f.clearCallbackTimeout(this._onLoad),delete this._onLoad)}function d(){this._adUnit&&(this._adUnit.stopAd(),delete this._adUnit)}function c(){if(this._destroyed)throw new Error("VPAIDHTML5Client already destroyed!")}function l(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}var f=n(14),p=f.unique("vpaidIframe"),h=n(33),v='<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"></head><body style="margin:0;padding:0"><div class="ad-element"></div><script type="text/javascript" src="{{iframeURL_JS}}"></script><script type="text/javascript">window.parent.postMessage(\'{"event": "ready", "id": "{{iframeID}}"}\', \'{{origin}}\');</script></body></html>',g="AdStopped";i.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,a.call(this))},i.prototype.isDestroyed=function(){return this._destroyed},i.prototype.loadAdUnit=function(t,e){function n(t){if(t.origin===l()){var n=JSON.parse(t.data);if(n.id===r.getID()){var i,a,s;if(r._frame.contentWindow?(s=r._frame.contentWindow.getVPAIDAd,a=f.validate("function"==typeof s,"the ad didn't return a function to create an ad")):a="the iframe is not anymore in the DOM tree",!a){var d=r._frame.contentWindow.document.querySelector(".ad-element");i=new h(s(),d,r._videoEl,r._frame),i.subscribe(g,o.bind(r)),a=f.validate(i.isValidVPAIDAd(),"the add is not fully complaint with VPAID specification")}return r._adUnit=i,u.call(r),e(a,a?null:i),!0}}}function i(){e("timeout",null)}c.call(this),a.call(this);var r=this,s=f.createIframeWithContent(this._frameContainer,this._templateConfig.template,f.extend({iframeURL_JS:t,iframeID:this.getID(),origin:l()},this._templateConfig.extraOptions));this._frame=s,this._onLoad=f.callbackTimeout(this._vpaidOptions.timeout,n.bind(this),i.bind(this)),window.addEventListener("message",this._onLoad)},i.prototype.unloadAdUnit=function(){a.call(this)},i.prototype.getID=function(){return this._id},t.exports=i},function(t,e,n){"use strict";function i(){this._subscribers={}}i.prototype.subscribe=function(t,e,n){this.isHandlerAttached(t,e)||this.get(e).push({handler:t,context:n,eventName:e})},i.prototype.unsubscribe=function(t,e){this._subscribers[e]=this.get(e).filter(function(e){return t!==e.handler})},i.prototype.unsubscribeAll=function(){this._subscribers={}},i.prototype.trigger=function(t,e){var n=this,i=this.get(t).concat(this.get("*"));i.forEach(function(t){setTimeout(function(){n.isHandlerAttached(t.handler,t.eventName)&&t.handler.call(t.context,e)},0)})},i.prototype.triggerSync=function(t,e){var n=this.get(t).concat(this.get("*"));n.forEach(function(t){t.handler.call(t.context,e)})},i.prototype.get=function(t){return this._subscribers[t]||(this._subscribers[t]=[]),this._subscribers[t]},i.prototype.isHandlerAttached=function(t,e){return this.get(e).some(function(e){return t===e.handler})},t.exports=i},function(t,e,n){"use strict";function i(t){function e(t){var e=[];return r.isDefined(t)&&(t=r.isArray(t)?t:[t],t.forEach(function(t){e.push(new s(t))})),e}if(!(this instanceof i))return new i(t);a.info("<Companion> found companion ad"),a.debug("<Companion>  companionJTree:",t),this.creativeType=o.attr(t.staticResource,"creativeType"),this.staticResource=o.keyValue(t.staticResource),a.info("<Companion>  creativeType: "+this.creativeType),a.info("<Companion>  staticResource: "+this.staticResource);var n=null;o.keyValue(t.HTMLResource)?n=o.keyValue(t.HTMLResource):o.keyValue(t.hTMLResource)&&(n=o.keyValue(t.hTMLResource)),null!==n&&a.info("<Companion> found html resource",n),this.htmlResource=n;var u=null;o.keyValue(t.IFrameResource)?u=o.keyValue(t.IFrameResource):o.keyValue(t.iFrameresource)&&(u=o.keyValue(t.iFrameresource)),null!==u&&a.info("<Companion> found iframe resource",u),this.iframeResource=u,this.id=o.attr(t,"id"),this.width=o.attr(t,"width"),this.height=o.attr(t,"height"),this.expandedWidth=o.attr(t,"expandedWidth"),this.expandedHeight=o.attr(t,"expandedHeight"),this.scalable=o.attr(t,"scalable"),this.maintainAspectRatio=o.attr(t,"maintainAspectRatio"),this.minSuggestedDuration=o.attr(t,"minSuggestedDuration"),this.apiFramework=o.attr(t,"apiFramework"),this.companionClickThrough=o.keyValue(t.companionClickThrough),this.trackingEvents=e(t.trackingEvents&&t.trackingEvents.tracking),a.info("<Companion>  companionClickThrough: "+this.companionClickThrough)}var r=n(0),o=n(2),a=n(5),s=n(19);t.exports=i},function(t,e,n){"use strict";function i(t){if(!(this instanceof i))return new i(t);this.src=r.keyValue(t);for(var e=0;e<s.length;e++){var n=s[e];this[n]=t.attr(n)}}var r=n(2),o=n(24),a=n(4),s=["delivery","type","width","height","codec","id","bitrate","minBitrate","maxBitrate","scalable","maintainAspectRatio","apiFramework"],u=window.location&&o.urlParts(window.location.href).protocol;i.prototype.isSupported=function(){return a.isVPAID(this)?Boolean(a.findSupportedVPAIDTech(this.type)):"video/x-flv"===this.type?a.isFlashSupported():"https"!==u||o.urlParts(this.src).protocol===u},t.exports=i},function(t,e,n){"use strict";function i(t){if(!(this instanceof i))return new i(t);var e={WRAPPER_LIMIT:5};t=t||{},this.settings=a.extend({},t,e),this.errorURLMacros=[]}var r=n(9),o=n(46).http,a=n(0),s=n(2),u=n(5),d=n(15),c=n(3),l=n(8),f=n(4);i.prototype.getVASTResponse=function(t,e){function n(t,e){try{var n=o._buildVASTResponse(t);e(null,n)}catch(i){e(i)}}function i(t,e){return t?a.isFunction(e)?void 0:new c("on VASTClient.getVASTResponse, missing callback function"):new c("on VASTClient.getVASTResponse, missing ad tag URL")}var o=this,s=i(t,e);if(s){if(a.isFunction(e))return e(s);throw s}r.waterfall([this._getVASTAd.bind(this,t),n],e)},i.prototype._getVASTAd=function(t,e){function n(t,e){var n=v._requestVASTXml.bind(v,t);r.waterfall([n,i],e)}function i(t,e){var n=void 0;try{n=s.toJXONTree(t),u.debug("built JXONTree from VAST response:",n),a.isArray(n.ad)?n.ads=n.ad:n.ad?n.ads=[n.ad]:n.ads=[],e(o(n),n)}catch(i){e(new c("on VASTClient.getVASTAd.buildVastWaterfall, error parsing xml",100),null)}}function o(t){var e=s.attr(t,"version");return t.ad?e&&3!==e&&2!==e?new c('on VASTClient.getVASTAd.validateVASTTree, not supported VAST version "'+e+'"',102):null:new c("on VASTClient.getVASTAd.validateVASTTree, no Ad in VAST tree",303)}function l(t,e,n){return e.length>=v.WRAPPER_LIMIT?n(new c("on VASTClient.getVASTAd.getAd, players wrapper limit reached (the limit is "+v.WRAPPER_LIMIT+")",302),e):void r.waterfall([function(e){a.isString(t)?h(t,e):e(null,t)},f],function(t,i){return i&&e.push(i),t?n(t,e):i.wrapper?l(i.wrapper.VASTAdTagURI,e,n):n(null,e)})}function f(t,e){try{var n=new d(t);e(p(n),n)}catch(i){e(new c("on VASTClient.getVASTAd.buildAd, error parsing xml",100),null)}}function p(t){var e=t.wrapper,n=t.inLine,i="on VASTClient.getVASTAd.validateAd, ";return n&&e?new c(i+"InLine and Wrapper both found on the same Ad",101):n||e?n&&!n.isSupported()?new c(i+"could not find MediaFile that is supported by this video player",403):e&&!e.VASTAdTagURI?new c(i+"missing 'VASTAdTagURI' in wrapper",101):null:new c(i+"nor wrapper nor inline elements found on the Ad",101)}function h(t,e){v._requestVASTXml(t,function(t,n){if(t)return e(t);try{var i=s.toJXONTree(n);e(o(i),i.ad)}catch(r){e(new c("on VASTClient.getVASTAd.requestVASTAd, error parsing xml",100))}})}var v=this;n(t,function(t,n){function i(t,n){t?(v._trackError(t,n),r.length>0?l(r.shift(),[],i):e(t,n)):e(null,n)}var r=n&&a.isArray(n.ads)?n.ads:null;return t?(v._trackError(t,r),e(t,r)):void l(r.shift(),[],i)})},i.prototype._requestVASTXml=function(t,e){function n(t,n,i){if(t){var r=a.isDefined(i)?"on VASTClient.requestVastXML, HTTP request error with status '"+i+"'":"on VASTClient.requestVastXML, Error getting the the VAST XML with he passed adTagXML fn";return e(new c(r,301),null)}e(null,n)}try{a.isFunction(t)?t(n):(u.info("requesting adTag: "+t),o.get(t,n,{withCredentials:!0}))}catch(i){e(i)}},i.prototype._buildVASTResponse=function(t){function e(t,e){e.forEach(function(e){t.addAd(e)})}function n(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)})}var i=new l;return e(i,t),n(i),i},i.prototype._trackError=function(t,e){function n(t){t.wrapper&&t.wrapper.error&&i.push(t.wrapper.error),t.inLine&&t.inLine.error&&i.push(t.inLine.error)}if(a.isArray(e)&&0!==e.length){var i=[];e.forEach(n),f.track(i,{ERRORCODE:t.code||900})}},t.exports=i},function(t,e,n){"use strict";function i(t){return this instanceof i?void(this.player=t):new i(t)}var r=n(9),o=n(6),a=n(11),s=n(0),u=n(5),d=n(8),c=n(3),l=n(20),f=n(4);i.prototype.playAd=function(t,e){var n=this;return e=e||s.noop,t instanceof d?(r.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,i){t&&i&&n._trackError(t,i),e(t,i)}),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"))},i.prototype._selectAdSource=function(t,e){var n=void 0,i=o.getDimension(this.player.el()).width,r=t.mediaFiles.filter(function(t){return t.isSupported()});return r.sort(function(t,e){var n=Math.abs(i-t.width),r=Math.abs(i-e.width);return n-r}),(n=this.player.selectSource(r).source)?(u.info("selected source: ",n),this._adUnit&&(this._adUnit._src=n),e(null,n,t)):void e(new c("Could not find Ad mediafile supported by this player",403),t)},i.prototype._createVASTTracker=function(t,e,n){try{n(null,t,new l(t.src,e),e)}catch(i){n(i,e)}},i.prototype._setupEvents=function(t,e,n,i){function r(){f.off("fullscreenchange",o),f.off("vast.adStart",d),f.off("pause",s),f.off("timeupdate",u),f.off("volumechange",c)}function o(){f.isFullscreen()?e.trackFullscreen():e.trackExitFullscreen()}function s(){Math.abs(f.duration()-f.currentTime())<2||(e.trackPause(),a.once(f,["play","vast.adEnd","vast.adsCancel"],function(t){"play"===t.type&&e.trackResume()}))}function u(){var t=1e3*f.currentTime();e.trackProgress(t)}function d(){e.trackImpressions(),e.trackCreativeView()}function c(){var t=f.muted();t?e.trackMute():l&&e.trackUnmute(),l=t}var l=void 0,f=this.player;return f.on("fullscreenchange",o),f.on("vast.adStart",d),f.on("pause",s),f.on("timeupdate",u),f.on("volumechange",c),a.once(f,["vast.adEnd","vast.adsCancel"],r),a.once(f,["vast.adEnd","vast.adsCancel","vast.adSkip"],function(t){"vast.adEnd"===t.type&&e.trackComplete()}),i(null,t,n)},i.prototype._addSkipButton=function(t,e,n,i){function r(t,e){function n(){t.off("timeupdate",r),o.remove(i)}var i=u(t),r=d.bind(l,i,e,t);t.el().appendChild(i),t.on("timeupdate",r),a.once(t,["vast.adEnd","vast.adsCancel"],n)}function u(t){var n=window.document.createElement("div");return o.addClass(n,"vast-skip-button"),n.onclick=function(i){return o.hasClass(n,"enabled")&&(e.trackSkip(),t.trigger("vast.adSkip")),void 0!==window.Event.prototype.stopPropagation&&void i.stopPropagation()},n}function d(t,e,n){var i=Math.ceil(e-n.currentTime());i>0?t.innerHTML="Skip in "+s.toFixedDigits(i,2)+"...":o.hasClass(t,"enabled")||(o.addClass(t,"enabled"),t.innerHTML="Skip ad")}var c=void 0,l=this;s.isNumber(n.skipoffset)&&(c=n.skipoffset/1e3,r(this.player,c)),i(null,t,e,n)},i.prototype._addClickThrough=function(t,e,n,i){function r(t,e,n){var i=window.document.createElement("a"),r=n.clickThrough;return o.addClass(i,"vast-blocker"),i.href=d(r,t),s.isString(r)&&(i.target="_blank"),i.onclick=function(n){return t.paused()?(t.play(),void 0!==window.Event.prototype.stopPropagation&&n.stopPropagation(),!1):(t.pause(),void e.trackClick())},i}function u(t,e,n){t.href=d(e.clickThrough,n)}function d(e,n){var i={ASSETURI:t.src,CONTENTPLAYHEAD:f.formatProgress(1e3*n.currentTime())};return e?f.parseURLMacro(e,i):"#"}function c(){l.off("timeupdate",h),o.remove(p)}var l=this.player,p=r(l,e,n),h=u.bind(this,p,n,l);return l.el().insertBefore(p,l.controlBar.el()),l.on("timeupdate",h),a.once(l,["vast.adEnd","vast.adsCancel"],c),i(null,t,e,n)},i.prototype._playSelectedAd=function(t,e,n){function i(){a.once(r,["playing","vast.adsCancel"],function(t){function i(t){"ended"===t.type&&r.duration()-r.currentTime()>3||(r.off("ended",i),r.off("vast.adsCancel",i),r.off("vast.adSkip",i),"ended"!==t.type&&"vast.adSkip"!==t.type||n(null,e))}"vast.adsCancel"!==t.type&&(u.debug("<VASTIntegrator._playSelectedAd/playAd> got playing event; triggering vast.adStart..."),r.trigger("vast.adStart"),r.on("ended",i),r.on("vast.adsCancel",i),r.on("vast.adSkip",i))}),u.debug("<VASTIntegrator._playSelectedAd/playAd> calling player.play()..."),r.play()}var r=this.player;r.preload("auto"),r.src(t),u.debug("<VASTIntegrator._playSelectedAd> waiting for durationchange to play the ad..."),a.once(r,["durationchange","error","vast.adsCancel"],function(t){"durationchange"===t.type?(u.debug("<VASTIntegrator._playSelectedAd> got durationchange; calling playAd()"),i()):"error"===t.type&&n(new c("on VASTIntegrator, Player is unable to play the Ad",400),e)})},i.prototype._trackError=function(t,e){f.track(e.errorURLMacros,{ERRORCODE:t.code||900})},t.exports=i},function(t,e,n){"use strict";function i(t,e){function n(t,e){if(!t||!i.checkVPAIDInterface(t))throw new r("on VPAIDAdUnitWrapper, the passed VPAID adUnit does not fully implement the VPAID interface");if(!o.isObject(e))throw new r("on VPAIDAdUnitWrapper, expected options hash  but got '"+e+"'");if(!("responseTimeout"in e&&o.isNumber(e.responseTimeout)))throw new r("on VPAIDAdUnitWrapper, expected responseTimeout in options")}return this instanceof i?(n(t,e),this.options=o.extend({},e),void(this._adUnit=t)):new i(t,e)}var r=n(3),o=n(0);i.checkVPAIDInterface=function(t){function e(t){return o.isFunction(t.subscribe)||o.isFunction(t.addEventListener)||o.isFunction(t.on)}function n(t){return o.isFunction(t.unsubscribe)||o.isFunction(t.removeEventListener)||o.isFunction(t.off)}for(var i=["handshakeVersion","initAd","startAd","stopAd","resizeAd","pauseAd","expandAd","collapseAd"],r=0,a=i.length;r<a;r++)if(!t||!o.isFunction(t[i[r]]))return!1;return e(t)&&n(t)},i.prototype.adUnitAsyncCall=function(){function t(t,e,n){if(!o.isString(t)||!o.isFunction(n[t]))throw new r("on VPAIDAdUnitWrapper.adUnitAsyncCall, invalid method name");if(!o.isFunction(e))throw new r("on VPAIDAdUnitWrapper.adUnitAsyncCall, missing callback")}function e(){return function(){c&&clearTimeout(c),d.apply(this,arguments)}}for(var n,i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];var u=a.shift(),d=a.pop(),c=void 0;t(u,d,this._adUnit),a.push(e()),(n=this._adUnit)[u].apply(n,a),c=setTimeout(function(){c=null,d(new r("on VPAIDAdUnitWrapper, timeout while waiting for a response on call '"+u+"'")),d=o.noop},this.options.responseTimeout)},i.prototype.on=function(t,e){var n=this._adUnit.addEventListener||this._adUnit.subscribe||this._adUnit.on;n.call(this._adUnit,t,e)},i.prototype.off=function(t,e){var n=this._adUnit.removeEventListener||this._adUnit.unsubscribe||this._adUnit.off;n.call(this._adUnit,t,e)},i.prototype.waitForEvent=function(t,e,n){function i(t,e){if(!o.isString(t))throw new r("on VPAIDAdUnitWrapper.waitForEvent, missing evt name");if(!o.isFunction(e))throw new r("on VPAIDAdUnitWrapper.waitForEvent, missing callback")}function a(){var t=o.arrayLikeObjToArray(arguments);s&&(clearTimeout(s),s=null),t.unshift(null),e.apply(n,t)}var s=void 0;i(t,e),n=n||null,this.on(t,a),s=setTimeout(function(){e(new r("on VPAIDAdUnitWrapper.waitForEvent, timeout while waiting for event '"+t+"'")),s=null,e=o.noop},this.options.responseTimeout)},i.prototype.handshakeVersion=function(t,e){this.adUnitAsyncCall("handshakeVersion",t,e)},i.prototype.initAd=function(t,e,n,i,r,o){this.waitForEvent("AdLoaded",o),this._adUnit.initAd(t,e,n,i,r)},i.prototype.resizeAd=function(t,e,n,i){this.adUnitAsyncCall("resizeAd",t,e,n,i)},i.prototype.startAd=function(t){this.waitForEvent("AdStarted",t),this._adUnit.startAd()},i.prototype.stopAd=function(t){this.waitForEvent("AdStopped",t),this._adUnit.stopAd()},i.prototype.pauseAd=function(t){this.waitForEvent("AdPaused",t),this._adUnit.pauseAd()},i.prototype.resumeAd=function(t){this.waitForEvent("AdPlaying",t),this._adUnit.resumeAd()},i.prototype.expandAd=function(t){this.waitForEvent("AdExpandedChange",t),this._adUnit.expandAd()},i.prototype.collapseAd=function(t){this.waitForEvent("AdExpandedChange",t),this._adUnit.collapseAd()},i.prototype.skipAd=function(t){this.waitForEvent("AdSkipped",t),this._adUnit.skipAd()},["adLinear","adWidth","adHeight","adExpanded","adSkippableState","adRemainingTime","adDuration","adVolume","adCompanions","adIcons"].forEach(function(t){var e="get"+o.capitalize(t);i.prototype[e]=function(t){this.adUnitAsyncCall(e,t)}}),i.prototype.setAdVolume=function(t,e){this.adUnitAsyncCall("setAdVolume",t,e)},t.exports=i},function(t,e,n){"use strict";function i(t,e){function n(t){if(!t||!s.isString(t.src))throw new a("on VPAIDFlashTech, invalid MediaFile")}return this instanceof i?(n(t),this.name="vpaid-flash",this.mediaFile=t,this.containerEl=null,this.vpaidFlashClient=null,void(this.settings=e)):new i(t)}n(49);var r=n(12),o=n(10),a=n(3),s=n(0),u=n(6),d=n(5);i.VPAIDFLASHClient=r,i.supports=function(t){return o.flash.indexOf(t)>-1&&i.VPAIDFLASHClient.isSupported()},i.prototype.loadAdUnit=function(t,e,n){function r(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")}var o=this,c=this.settings&&this.settings.vpaidFlashLoaderPath?{data:this.settings.vpaidFlashLoaderPath}:void 0;r(t,n),this.containerEl=t,d.debug("<VPAIDFlashTech.loadAdUnit> loading VPAIDFLASHClient with opts:",c),this.vpaidFlashClient=new i.VPAIDFLASHClient(t,function(t){return t?n(t):(d.info("<VPAIDFlashTech.loadAdUnit> calling VPAIDFLASHClient.loadAdUnit(); that.mediaFile:",o.mediaFile),void o.vpaidFlashClient.loadAdUnit(o.mediaFile.src,n))},c)},i.prototype.unloadAdUnit=function(){if(this.vpaidFlashClient){try{this.vpaidFlashClient.destroy()}catch(t){d.error("VAST ERROR: trying to unload the VPAID adunit")}this.vpaidFlashClient=null}this.containerEl&&(u.remove(this.containerEl),this.containerEl=null)},t.exports=i},function(t,e,n){"use strict";function i(t){function e(t){if(!t||!s.isString(t.src))throw new a(i.INVALID_MEDIA_FILE)}return this instanceof i?(e(t),this.name="vpaid-html5",this.containerEl=null,this.videoEl=null,this.vpaidHTMLClient=null,void(this.mediaFile=t)):new i(t)}var r=n(34),o=n(10),a=n(3),s=n(0),u=n(6),d=n(5);i.VPAIDHTML5Client=r,i.supports=function(t){return!s.isOldIE()&&o.html5.indexOf(t)>-1},i.prototype.loadAdUnit=function(t,e,n){function r(t,e,n){if(!u.isDomElement(t))throw new a(i.INVALID_DOM_CONTAINER_EL);if(!u.isDomElement(e)||"video"!==e.tagName.toLowerCase())throw new a(i.INVALID_DOM_CONTAINER_EL);if(!s.isFunction(n))throw new a(i.MISSING_CALLBACK)}r(t,e,n),this.containerEl=t,this.videoEl=e,this.vpaidHTMLClient=new i.VPAIDHTML5Client(t,e,{}),this.vpaidHTMLClient.loadAdUnit(this.mediaFile.src,n)},i.prototype.unloadAdUnit=function(){if(this.vpaidHTMLClient){try{this.vpaidHTMLClient.destroy()}catch(t){d.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";i.INVALID_MEDIA_FILE=c+", invalid MediaFile",i.INVALID_DOM_CONTAINER_EL=c+", invalid container HtmlElement",i.INVALID_DOM_VIDEO_EL=c+", invalid HTMLVideoElement",i.MISSING_CALLBACK=c+", missing valid callback",t.exports=i},function(t,e,n){"use strict";function i(t,e){function n(){var e=document.createElement("div");return f.addClass(e,"VPAID-container"),t.el().insertBefore(e,t.controlBar.el()),e}return this instanceof i?(this.VIEW_MODE={NORMAL:"normal",FULLSCREEN:"fullscreen",THUMBNAIL:"thumbnail"},this.player=t,this.containerEl=n(t),this.options={responseTimeout:5e3,VPAID_VERSION:"2.0"},void(this.settings=e)):new i(t)}function r(t,e,n){var i=t.el().querySelector(".vjs-tech"),r=f.getDimension(i),a=t.isFullscreen()?n.FULLSCREEN:n.NORMAL;e.resizeAd(r.width,r.height,a,o)}function o(t){t&&v.error("ERROR: "+t.message,t)}var a=n(10),s=n(3),u=n(8),d=n(20),c=n(4),l=n(9),f=n(6),p=n(11),h=n(0),v=n(5),g=n(40);i.prototype.playAd=function(t,e){function n(t,n,i){t&&i&&o._trackError(i,t.code),a.trigger("vpaid.adEnd"),e(t,i)}function i(){a.trigger("vpaid.adEnd")}function r(){d&&d.unloadAdUnit(),f.removeClass(a.el(),"vjs-vpaid-ad")}if(!(t instanceof u))return e(new s("on VASTIntegrator.playAd, missing required VASTResponse"));var o=this,a=this.player;v.debug("<VPAIDIntegrator.playAd> looking for supported tech...");var d=this._findSupportedTech(t,this.settings);if(e=e||h.noop,this._adUnit=null,f.addClass(a.el(),"vjs-vpaid-ad"),a.on("vast.adsCancel",i),a.one("vpaid.adEnd",function(){a.off("vast.adsCancel",i),r()}),d)v.info("<VPAIDIntegrator.playAd> found tech: ",d),l.waterfall([function(e){e(null,d,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 d.mediaFile}};else{v.debug("<VPAIDIntegrator.playAd> could not find suitable tech");var c=new s("on VPAIDIntegrator.playAd, could not find a supported mediaFile",403);n(c,this._adUnit,t)}return this._adUnit},i.prototype._findSupportedTech=function(t,e){if(!(t instanceof u))return null;var n=t.mediaFiles.filter(c.isVPAID),i=e&&e.preferredTech,r=[],o=void 0,s=void 0,d=void 0,l=void 0,f=void 0;for(o=0,s=n.length;o<s;o+=1)if(d=n[o],l=c.findSupportedVPAIDTech(d.type)){if(f=!!i&&(d.type===i||a[i]&&a[i].indexOf(d.type)>-1))return new l(d,e);r.push({mediaFile:d,tech:l})}if(r.length){var p=r[0];return new p.tech(p.mediaFile,e)}return null},i.prototype._createVPAIDAdUnitWrapper=function(t,e,n){return new g(t,{src:e,responseTimeout:n})},i.prototype._loadAdUnit=function(t,e,n){var i=this,r=this.player,o=r.el().querySelector(".vjs-tech"),a=this.settings.responseTimeout||this.options.responseTimeout;t.loadAdUnit(this.containerEl,o,function(o,s){if(o)return n(o,s,e);try{var u=i._createVPAIDAdUnitWrapper(s,t.mediaFile.src,a),d="vjs-"+t.name+"-ad";f.addClass(r.el(),d),r.one("vpaid.adEnd",function(){f.removeClass(r.el(),d)}),n(null,u,e)}catch(c){n(c,s,e)}})},i.prototype._playAdUnit=function(t,e,n){l.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)},i.prototype._handshake=function(t,e,n){function i(t){var e=r(t);return e>=1&&e<=2}function r(t){var e=t.split(".");return parseInt(e[0],10)}t.handshakeVersion(this.options.VPAID_VERSION,function(r,o){return r?n(r,t,e):o&&i(o)?n(null,t,e):n(new s('on VPAIDIntegrator._handshake, unsupported version "'+o+'"'),t,e)})},i.prototype._initAd=function(t,e,n){var i=this.player.el().querySelector(".vjs-tech"),r=f.getDimension(i);t.initAd(r.width,r.height,this.VIEW_MODE.NORMAL,-1,{AdParameters:e.adParameters||""},function(i){n(i,t,e)})},i.prototype._createVASTTracker=function(t,e){return new d(t,e)},i.prototype._setupEvents=function(t,e,n){function i(){p._adUnit&&p._adUnit.isPaused()&&(p._adUnit._paused=!1),l.trigger("play")}function o(){p._adUnit&&(p._adUnit._paused=!0),l.trigger("pause")}function a(){t.pauseAd(h.noop)}function s(){t.resumeAd(h.noop)}var u=t.options.src,d=this._createVASTTracker(u,e),l=this.player,p=this;t.on("AdSkipped",function(){l.trigger("vpaid.AdSkipped"),d.trackSkip()}),t.on("AdImpression",function(){l.trigger("vpaid.AdImpression"),d.trackImpressions()}),t.on("AdStarted",function(){l.trigger("vpaid.AdStarted"),d.trackCreativeView(),i()}),t.on("AdVideoStart",function(){l.trigger("vpaid.AdVideoStart"),d.trackStart(),i()}),t.on("AdPlaying",function(){l.trigger("vpaid.AdPlaying"),d.trackResume(),i()}),t.on("AdPaused",function(){l.trigger("vpaid.AdPaused"),d.trackPause(),o()}),t.on("AdVideoFirstQuartile",function(){l.trigger("vpaid.AdVideoFirstQuartile"),d.trackFirstQuartile()}),t.on("AdVideoMidpoint",function(){l.trigger("vpaid.AdVideoMidpoint"),d.trackMidpoint()}),t.on("AdVideoThirdQuartile",function(){l.trigger("vpaid.AdVideoThirdQuartile"),d.trackThirdQuartile()}),t.on("AdVideoComplete",function(){l.trigger("vpaid.AdVideoComplete"),d.trackComplete()}),t.on("AdClickThru",function(n){function i(e){var n={ASSETURI:t.options.src,CONTENTPLAYHEAD:0};return e?c.parseURLMacro(e,n):null}l.trigger("vpaid.AdClickThru");var r=n.url,o=n.playerHandles,a=h.isNotEmptyString(r)?r:i(e.clickThrough);d.trackClick(),o&&a&&window.open(a,"_blank")}),t.on("AdUserAcceptInvitation",function(){l.trigger("vpaid.AdUserAcceptInvitation"),d.trackAcceptInvitation(),d.trackAcceptInvitationLinear()}),t.on("AdUserClose",function(){l.trigger("vpaid.AdUserClose"),d.trackClose(),d.trackCloseLinear()}),t.on("AdUserMinimize",function(){l.trigger("vpaid.AdUserMinimize"),d.trackCollapse()}),t.on("AdError",function(){l.trigger("vpaid.AdError"),d.trackErrorWithCode(901)}),t.on("AdVolumeChange",function(){l.trigger("vpaid.AdVolumeChange");var e=l.volume();t.getAdVolume(function(t,n){e!==n&&(0===n&&e>0&&d.trackMute(),n>0&&0===e&&d.trackUnmute(),l.volume(n))})});var v=r.bind(this,l,t,this.VIEW_MODE),g=h.throttle(v,100),y=this.settings.autoResize;y&&(f.addEventListener(window,"resize",g),f.addEventListener(window,"orientationchange",g)),l.on("vast.resize",v),l.on("vpaid.pauseAd",a),l.on("vpaid.resumeAd",s),l.one("vpaid.adEnd",function(){l.off("vast.resize",v),l.off("vpaid.pauseAd",a),l.off("vpaid.resumeAd",s),y&&(f.removeEventListener(window,"resize",g),f.removeEventListener(window,"orientationchange",g))}),n(null,t,e)},i.prototype._addSkipButton=function(t,e,n){function i(){u.trigger("vpaid.AdSkippableStateChange"),t.getAdSkippableState(function(t,e){e?s||r(u):o(u)})}function r(t){s=a(t),t.el().appendChild(s)}function o(){f.remove(s),s=null}function a(){var e=window.document.createElement("div");return f.addClass(e,"vast-skip-button"),f.addClass(e,"enabled"),e.innerHTML="Skip ad",e.onclick=function(e){return t.skipAd(h.noop),void 0!==window.Event.prototype.stopPropagation&&void e.stopPropagation()},e}var s=void 0,u=this.player;t.on("AdSkippableStateChange",i),p.once(u,["vast.adEnd","vast.adsCancel"],o),n(null,t,e)},i.prototype._linkPlayerControls=function(t,e,n){function i(t,e){function n(){var n=t.muted()?0:t.volume();e.setAdVolume(n,o)}function i(){t.trigger("vpaid.AdVolumeChange");var n=t.volume();e.getAdVolume(function(e,i){e?o(e):n!==i&&t.volume(i)})}t.on("volumechange",n),e.on("AdVolumeChange",i),t.one("vpaid.adEnd",function(){t.off("volumechange",n)})}function a(t,e,n){var i=r.bind(s,t,e,n);t.on("fullscreenchange",i),t.one("vpaid.adEnd",function(){t.off("fullscreenchange",i)})}var s=this;i(this.player,t),a(this.player,t,this.VIEW_MODE),n(null,t,e)},i.prototype._startAd=function(t,e,n){var i=this.player;t.startAd(function(r){r||i.trigger("vast.adStart"),n(r,t,e)})},i.prototype._finishPlaying=function(t,e,n){function i(i){n(i,t,e)}var r=this.player;t.on("AdStopped",function(){r.trigger("vpaid.AdStopped"),i(null)}),t.on("AdError",function(t){var e=t?t.message:"on VPAIDIntegrator, error while waiting for the adUnit to finish playing";i(new s(e))})},i.prototype._trackError=function(t,e){c.track(t.errorURLMacros,{ERRORCODE:e||901})},t.exports=i},function(t,e,n){"use strict";var i=n(6),r=document.createElement("div");r.className="vjs-ads-label vjs-control vjs-label-hidden",r.innerHTML="Advertisement";var o=function(t){return{init:function(e,n){n.el=r,t.call(this,e,n),setTimeout(function(){var t=e.controlBar&&(e.controlBar.getChild("timerControls")||e.controlBar.getChild("currentTimeDisplay"));t&&e.controlBar.el().insertBefore(r,t.el()),i.removeClass(r,"vjs-label-hidden")},0)},el:function(){return r}}};t.exports=o},function(t,e,n){"use strict";var i=document.createElement("div"),r=function(t){return{init:function(e,n){n.el=i,i.className="vjs-black-poster",t.call(this,e,n);var r=e.getChild("posterImage");setTimeout(function(){r&&e&&e.el()&&e.el().insertBefore(i,r.el())},0)},el:function(){return i}}};t.exports=r},function(t,e,n){"use strict";function i(t){this.message="HttpRequest Error: "+(t||"")}function r(t){if(!s.isFunction(t))throw new i("Missing XMLHttpRequest factory method");this.createXhr=t}function o(){var t=new XMLHttpRequest;return"withCredentials"in t||(t=new XDomainRequest),t}var a=n(24),s=n(0);i.prototype=new Error,i.prototype.name="HttpRequest Error",r.prototype.run=function(t,e,n,r){function o(t,e,n){if(!s.isString(t)||s.isEmptyString(t))throw new i("Invalid url '"+t+"'");
if(!s.isFunction(e))throw new i("Invalid handler '"+e+"' for the http request");if(s.isDefined(n)&&!s.isObject(n))throw new i("Invalid options map '"+n+"'")}function u(t,e){s.forEach(e,function(e,n){s.isDefined(e)&&t.setRequestHeader(n,e)})}function d(){n(-1,null,null,"")}o(e,n,r);var c=void 0,l=void 0,f=this.createXhr();r=r||{},c=s.isNumber(r.timeout)?r.timeout:0,f.open(t,a.urlParts(e).href,!0),r.headers&&u(f,r.headers),r.withCredentials&&(f.withCredentials=!0),f.onload=function(){var t=void 0,e=void 0,i=void 0;f.getAllResponseHeaders||(f.getAllResponseHeaders=function(){return null}),f.status||(f.status=200),s.isDefined(l)&&(clearTimeout(l),l=void 0),t=f.statusText||"",e="response"in f?f.response:f.responseText,i=1223===f.status?204:f.status,n(i,e,f.getAllResponseHeaders(),t)},f.onerror=d,f.onabort=d,f.send(),c>0&&(l=setTimeout(function(){f&&f.abort()},c))},r.prototype.get=function(t,e,n){function r(t,n,r,a){o(t)?e(null,n,t,r,a):e(new i(a),n,t,r,a)}function o(t){return 200<=t&&t<300}this.run("GET",t,r,n)};var u=new r(o);t.exports={http:u,HttpRequest:r,HttpRequestError:i,createXhr:o}},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<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];"number"==typeof o&&(i[o]=!0)}for(r=0;r<e.length;r++){var a=e[r];"number"==typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(t,e,n){t.exports=n.p+"VPAIDFlash.swf"},function(t,e){function n(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=f[i.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](i.parts[o]);for(;o<i.parts.length;o++)r.parts.push(u(i.parts[o],e))}else{for(var a=[],o=0;o<i.parts.length;o++)a.push(u(i.parts[o],e));f[i.id]={id:i.id,refs:1,parts:a}}}}function i(t){for(var e=[],n={},i=0;i<t.length;i++){var r=t[i],o=r[0],a=r[1],s=r[2],u=r[3],d={css:a,media:s,sourceMap:u};n[o]?n[o].parts.push(d):e.push(n[o]={id:o,parts:[d]})}return e}function r(t,e){var n=v(),i=m[m.length-1];if("top"===t.insertAt)i?i.nextSibling?n.insertBefore(e,i.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),m.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function o(t){t.parentNode.removeChild(t);var e=m.indexOf(t);e>=0&&m.splice(e,1)}function a(t){var e=document.createElement("style");return e.type="text/css",r(t,e),e}function s(t){var e=document.createElement("link");return e.rel="stylesheet",r(t,e),e}function u(t,e){var n,i,r;if(e.singleton){var u=y++;n=g||(g=a(e)),i=d.bind(null,n,u,!1),r=d.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),i=l.bind(null,n),r=function(){o(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(e),i=c.bind(null,n),r=function(){o(n)});return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else r()}}function d(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=A(e,r);else{var o=document.createTextNode(r),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function c(t,e){var n=e.css,i=e.media;if(i&&t.setAttribute("media",i),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function l(t,e){var n=e.css,i=e.sourceMap;i&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var r=new Blob([n],{type:"text/css"}),o=t.href;t.href=URL.createObjectURL(r),o&&URL.revokeObjectURL(o)}var f={},p=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},h=p(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=p(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,y=0,m=[];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||{},"undefined"==typeof e.singleton&&(e.singleton=h()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var r=i(t);return n(r,e),function(t){for(var o=[],a=0;a<r.length;a++){var s=r[a],u=f[s.id];u.refs--,o.push(u)}if(t){var d=i(t);n(d,e)}for(var a=0;a<o.length;a++){var u=o[a];if(0===u.refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete f[u.id]}}}};var A=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},,function(t,e,n){"use strict";var i=videojs.getComponent("Component"),r=n(44)(i);videojs.registerComponent("AdsLabel",videojs.extend(i,r))},,function(t,e,n){"use strict";var i=videojs.getComponent("Component"),r=n(45)(i);videojs.registerComponent("BlackPoster",videojs.extend(i,r))},,function(t,e,n){"use strict";n(52),n(54),n(27);var i=n(26);videojs.plugin("vastClient",i)}])});
//# sourceMappingURL=videojs_5.vast.vpaid.min.js.map