!function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,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=400)}([function(t,e,n){function i(t){if(!t)return NaN;var e=t.split("."),n=e[0].split(":"),i=3600*Number(n[0])+60*Number(n[1])+Number(n[2]);return 2===e.length&&(i=Number(i+"."+e[1])),i}function o(t){void 0===t&&(t=0);var e=t?Math.floor(t/3600):0;t-=3600*e;var n=t?Math.floor(t/60):0;t-=60*n;var i=(t%1).toFixed(3).substr(1);return t=Math.floor(t),C.pad(e)+":"+C.pad(n)+":"+C.pad(t)+i}function r(){return window.AudioContext||window.webkitAudioContext}function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},i=0,o=void 0;i<t.length;i++){o=t[i];for(var r in o)I.call(o,r)&&("[object Object]"===T.call(o[r])?n[r]=a(n[r],o[r]):void 0!==o[r]&&(n[r]=o[r]))}return n}function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=S.map(t,function(t){var e={};for(var n in t)null!==t[n]&&(e[n]=t[n]);return e});return a.apply(null,n)}function c(t,e,n){var i=!1;return e=e||250,n=n||this,function(){i||(t.apply(n,arguments),window.setTimeout(function(){i=!1},e),i=!0)}}function u(t){var e=document.createElement("a");return e.href=t,window.swInstalled&&/(teads|ebu?z)/.test(e.hostname)?"/"+btoa(t).replace(/=/g,"_"):t}function d(){return location&&location.protocol&&0===location.protocol.indexOf("http:")?location.protocol:"https:"}function l(t){if(!t)return"";var e=t.split("/")[1]||t;switch(e){case"javascript":case"x-javascript":e="js";break;case"x-shockwave-flash":e="swf";break;case"mpeg":e="mpg";break;case"x-flv":e="flv"}return e}function p(t,e){var n=!1;if(!e)return!1;for(var i in t)if(I.call(t,i)){if(void 0===typeof e[i])return!1;n=!0}return n}function h(t){return function(e){var n=!0;for(var i in t)if(t.hasOwnProperty(i)&&(y(e[i])||!t[i](e[i]))){n=!1;break}return n}}function f(t){return"boolean"==typeof t}function g(t){return"number"==typeof t&&!isNaN(t)}function m(t){return"[object Array]"===T.call(t)}function v(t){return"string"==typeof t}function y(t){return void 0===t}function b(t){var e=typeof t;return!!t&&"object"===e}function A(t){var e=typeof t;return!!t&&"function"===e&&"[object Function]"===T.call(t)}function E(){return!!(window.teads&&window.teads.api&&window.teads.api.getStudioData&&b(window.teads.api.getStudioData()))}function w(t){return!!t.match(/px$/)&&g(parseFloat(t))}function _(t){var e=typeof t;return"function"===e?k.test(O.call(t)):!(!t||"object"!==e||!P.test(T.call(t)))}Object.defineProperty(e,"__esModule",{value:!0}),e.seconds=i,e.offset=o,e.getAudioContext=r,e.extend=a,e.extendWithoutNull=s,e.throttle=c,e.safeUrl=u,e.getProtocol=d,e.getExtensionFromMimeType=l,e.containsKeys=p,e.matchesCheckers=h,e.isBoolean=f,e.isNumber=g,e.isArray=m,e.isString=v,e.isUndefined=y,e.isObject=b,e.isFunction=A,e.isStudioCreative=E,e.isSizeInPx=w,e.isNative=_;var C=n(8),S=n(2),T=Object.prototype.toString,O=Function.prototype.toString,I=Object.prototype.hasOwnProperty,P=/^\[object .+?Constructor\]$/,k=RegExp("^"+String(toString).replace(/[.*+?^${}()|[\]\/\\]/g,"\\$&").replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$")},function(t,e,n){function i(){Object(s.get)("teadsDebugLevel").toOption().map(function(t){return t.split(",")}).forEach(function(t){p=Object(a.indexOf)(t,"all")>=0?["debug","info","warn","error"]:t}),Object(s.get)("teadsDebugNamespace").toOption().forEach(function(t){h=t.split(","),f="all"===String(t).toLocaleLowerCase()}),p.length&&!window.teads.Logger&&(u?(l.log("Teads Media Framework > Debug mode"),l.log("Package: web-formats v2.19.149 %>")):(l.log("%cTeads Media Framework %c> Debug mode","color:#7ebde5;font-family:Helvetica,sans-serif;font-size:2em;","color:#aaa;font-family:Helvetica,sans-serif;font-size:2em;"),l.log("%cPackage: web-formats v2.19.149', 'color:#7ebde5;font-style:italic;"))),window.teads.HAS_DEBUG_LOGS=!!p.length}e.b=i,n.d(e,"a",function(){return m});var o=(n(21),n(33)),r=(n.n(o),n(10)),a=n(2),s=n(25),c=n(11),u=!1;try{var d=navigator.userAgent;u=/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i.test(d)||/(?:ms|\()(ie)\s([\w\.]+)/i.test(d)||/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i.test(d)}catch(t){}var l,p=[],h=[],f=!1,g=function(){function t(){}return t.prototype.log=function(){},t}();l=window.console&&console.log?window.console:new g;var m=function(){function t(t){this.namespace=t,this.console=l}return t.clear=function(){t.logs=[],window.teads.FULL_LOGS=[]},t.getFullLogs=function(){return window.teads.FULL_LOGS},t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._log("debug",t)},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._log("info",t)},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._log("warn",t)},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._log("error",t)},t.prototype.table=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.table&&l.table(t,e.length>0?e:null)},t.prototype._log=function(e,n){var i=this;if(n.length){for(var o=Object(r.now)()-window.teads.START_TIME,s=(o/1e3).toFixed(3)+"s",d="",g=0;g<n.length;g++)if(g>0&&(d+=" + "),"object"==typeof n[g])try{d+=c.stringify(n[g])}catch(t){d+=n[g]}else d+=n[g];if(window.teads.FULL_LOGS.push({level:e,message:s+" ["+this.namespace+"] "+d}),!(Object(a.indexOf)(p,e)<0)){if(!f&&h.length){if(!Object(a.some)(h,function(t){return 0===i.namespace.indexOf(t)}))return}t.logs.push({level:e,message:s+" ["+this.namespace+"] "+n.join(" ")}),u?n=["Teads "+s+" ["+this.namespace+"] "+n.join(" ")]:n.unshift("Teads %c"+s+" "+this.namespace,"color:#7ebde5;");var m=l[e]||l.log;try{m.apply(l,n)}catch(t){Function.prototype.apply.apply(m,[l,n])}}}},t.logs=[],t}()},function(t,e,n){function i(t,e,n){if(null===t)throw new TypeError("array is null or undefined");for(var i,o=Object(t),r=o.length>>>0,a=0;a<r;a++)if(i=o[a],e.call(n,i,a,o))return i}function o(t,e,n){if(null===t)throw new TypeError("array is null or undefined");for(var i,o=Object(t),r=o.length>>>0,a=0;a<r;)a in o&&(i=o[a],e.call(n,i,a,o)),a++}function r(t,e,n){if(null===t)throw new TypeError("array is null or undefined");if("function"!=typeof e)throw new TypeError("callback must be a function");var i=Object(t),o=i.length>>>0;if(o>i.length)throw new TypeError("negative length");for(var r=[],a=0;a<o;a++)if(a in i){var s=i[a];e.call(n,s,a,i)&&r.push(s)}return r}function a(t,e,n){if(null===t)throw new TypeError("array is null or undefined");var i=Object(t),o=i.length>>>0;if(o>i.length)throw new TypeError("negative length");for(var r=0;r<o;r++)if(r in i&&e.call(n,i[r],r,i))return!0;return!1}function s(t,e,n){if(null===t)throw new TypeError("array is null or undefined");var i=Object(t),o=i.length>>>0;if(0===o)return-1;var r=+n||0;if(Math.abs(r)===1/0&&(r=0),r>=o)return-1;var a=Math.max(r>=0?r:o-Math.abs(r),0);try{for(;a<o;){if(a in i&&i[a]===e)return a;a++}}catch(t){}return-1}function c(t,e){return s(t,e)>-1}function u(t){return d(t)}function d(t){return Array.prototype.slice.call(t)}function l(t,e,n){if(null===t)throw new TypeError("array is null or undefined");if("function"!=typeof e)throw new TypeError("callback must be a function");for(var i,o,r=Object(t),a=r.length>>>0,s=new Array(a),c=0;c<a;)c in r&&(i=r[c],o=e.call(n,i,c,r),s[c]=o),c++;return s}function p(t){if(null===t)throw new TypeError("array is null or undefined");var e=[];try{for(var n=m(t),i=n.next();!i.done;i=n.next()){var o=i.value;c(e,o)||e.push(o)}}catch(t){r={error:t}}finally{try{i&&!i.done&&(a=n.return)&&a.call(n)}finally{if(r)throw r.error}}return e;var r,a}function h(t,e,n){if(null===t)throw new TypeError("array is null or undefined");if("function"!=typeof e)throw new TypeError("callback must be a function");var i=t.length>>>0;if(0===i&&void 0===n)throw new TypeError("reduce of empty array with no initial value");var o,r=0;if(void 0!==n)o=n;else for(;;){if(r in t){o=t[r++];break}if(++r>=i)throw new TypeError("reduce of empty array with no initial value")}for(;r<i;r++)r in t&&(o=e(o,t[r],r,t));return o}function f(t){return!t.length}function g(t){return!f(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.find=i,e.forEach=o,e.filter=r,e.some=a,e.indexOf=s,e.includes=c,e.fromNodeList=u,e.fromArrayLike=d,e.map=l,e.unique=p,e.reduce=h,e.isEmpty=f,e.isNotEmpty=g;var m=this&&this.__values||function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}},function(t,e,n){function i(){return[h()&&!p()?"mob":p()?"tab":"desk",y()?"android":b()?"ios":w()?"ie":_()?"ch":S()?"ff":"ot"].join(" ")}function o(){return R()?[tt().model,et().name,et().version,Gt,zt,rt()].join("|"):[tt().type,et().name,et().version,nt().name,nt().version.split(".")[0],rt()].join("|")}function r(t){void 0===t&&(t=!0),window.teads.CONTEXT_IS_INITIALIZED||(t&&ut(),dt(),Pt=new Bt(Ft.mapper.rgx.apply(this,Ft.regexes.os)),kt=new jt(Ft.mapper.rgx.apply(this,Ft.regexes.browser)),It=new Wt(Ft.mapper.rgx.apply(this,Ft.regexes.device)),lt(),ht(),ft(),pt(),gt(),mt(),vt(),yt(),bt(),At(),Et(),wt(),Ct(),window.teads.CONTEXT_IS_INITIALIZED=!0)}function a(t){It.model=t}function s(t){zt=t}function c(t){Gt=t}function u(t){Yt.isSDK=t}function d(){return Yt.isDesktop}function l(){return Yt.isIpad}function p(){return Yt.isTablet}function h(){return Yt.isMobile}function f(){return Yt.isChromeIos}function g(){return Yt.isFacebookWebview}function m(){return Yt.isAndroidNative}function v(){return Yt.isSamsungBrowser}function y(){return Yt.isAndroid}function b(){return Yt.isIos}function A(){return Yt.isIphone}function E(){return Yt.isAndroidMobile}function w(){return Yt.isIE}function _(){return Yt.isChrome}function C(){return Yt.isChromeWebView}function S(){return Yt.isFirefox}function T(){return Yt.isEdge}function O(){return Yt.amp}function I(){return Yt.ampSF}function P(){return Yt.fbia}function k(){return Yt.isAmpObserveIntersection}function L(){return Yt.iabsf}function x(){return Yt.isEdgeTouchScreen}function R(){return Yt.isSDK}function D(){return Yt.ieVersion}function N(){return Yt.androidVersion}function V(){return Yt.chromeVersion}function M(){return Yt.iOsVersion}function F(){return Yt.FacebookWebviewVersion}function U(){return Yt.safariVersion}function j(){return Yt.isUIWebview}function B(){return Yt.isSafari}function W(){return Mt.isGreaterOrEqual(U(),"11")}function H(){return Mt.isGreaterOrEqual(V(),"66")}function G(){return Yt.isGoogleSearchApp}function z(){return Yt.isIos10Safari}function Y(){return Yt.isIos10OtherBrowser}function K(t){return void 0===t&&(t=null),z()&&!Kt.test(t)}function q(){return Mt.isGreaterOrEqual(F(),"87")&&Mt.isGreaterOrEqual(M(),"10.2")}function X(){return Yt.isCanvasUsed}function Z(t){return!!t.createElement("video").canPlayType}function J(){return Ot}function Q(){return Tt}function $(t){Tt=t}function tt(){return It}function et(){return Pt}function nt(){return kt}function it(){return null===Xt&&Vt.now()-Lt>100&&St(!0),Xt}function ot(t){return _t(t?"53":"56")&&!it()}function rt(){var t;return t=R()?"sdk":O()?"amp":I()?"ampsf":P()?"fia":L()?"sf":g()?"fbwv":C()||j()?"wv":"web",X()?t+"-canvas":t}function at(){return R()?"sdk-inapp":"js-"+rt()}function st(){return Nt.c.of(function(){return window.navigator.connection.downlink}).toOption()}function ct(t){Yt.isCanvasUsed=t}function ut(){try{Tt=navigator.userAgent}catch(t){Ht.error("Could not get `navigator.userAgent`",t),Tt=""}}function dt(){try{Ot=window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||"en"}catch(t){Ht.error("Could not get navigator language",t),Ot="en"}}function lt(){try{Yt.amp=!!window._teads_amp}catch(t){Ht.error("Could not check if `!!window._teads_amp`",t),Yt.amp=!1}}function pt(){try{Yt.ampSF=L()&&!!window.AMP_CONTEXT_DATA}catch(t){Ht.error("Could not check if `!!window.AMP_CONTEXT_DATA`",t),Yt.ampSF=!1}}function ht(){try{Yt.fbia=!!window._teads_fbia}catch(t){Ht.error("Could not check if `!!window._teads_fbia`",t),Yt.fbia=!1}}function ft(){try{Yt.iabsf=!!window.$sf&&!!window.$sf.ext}catch(t){Ht.error("Could not check if `!!window.$sf.ext`",t),Yt.iabsf=!1}}function gt(){try{Yt.edgeTouchScreen=navigator.maxTouchPoints&&navigator.maxTouchPoints>0}catch(t){Ht.error("Could not check if `navigator.maxTouchPoints > 0`",t),Yt.edgeTouchScreen=!1}}function mt(){try{Yt.uiWebview=window.navigator.standalone}catch(t){Ht.error("Could not check navigator.standalone",t),Yt.uiWebview=!1}}function vt(){try{Yt.observeIntersection=!(!window.context||!window.context.observeIntersection)}catch(t){Ht.error("Could not check if `!!window.context.observeIntersection`",t),Yt.observeIntersection=!1}}function yt(){Yt.isIE="IE"===kt.name||/MSIE|Trident/.test(Tt),Yt.isFirefox="Firefox"===kt.name||/Firefox/i.test(Tt),Yt.isEdge="Edge"===kt.name||/Edge/i.test(Tt),Yt.isGoogleSearchApp=/GSA\//i.test(Tt),Yt.isSafari=("Safari"===kt.name||"Mobile Safari"===kt.name)&&!G(),Yt.isChromeWebView="Chrome WebView"===kt.name,Yt.isChrome="Chrome"===kt.name||C(),Yt.isEdgeTouchScreen=T()&&Yt.edgeTouchScreen,Yt.isChromeIos=/CriOS/i.test(Tt),Yt.isAndroidNative="Android Browser"===kt.name,Yt.isFacebookWebview="Facebook"===kt.name||/FBAN|FBIOS|FBAV|FBBV|FBDV|FBMD|FBSN|FBSV|FBSS|FBCR|FBID|FBLC|FBOP/i.test(Tt),Yt.isSamsungBrowser=/SamsungBrowser/i.test(Tt)}function bt(){Yt.isIpad="iPad"===It.model||/iPad/i.test(Tt),Yt.isIphone="iPhone"===It.model||/iPhone/i.test(Tt),Yt.isIos="iOS"===Pt.name||l()||A(),Yt.isAndroid="Android"===Pt.name||/Android/i.test(Tt)}function At(){var t=/(m|M)obile/.test(Tt);Yt.isTablet="tablet"===It.type||l()||y()&&!t,Yt.isMobile="mobile"===It.type||b()&&!l()||y()&&t,Yt.isDesktop=!h()&&!p()}function Et(){Yt.ieVersion=w()?kt.version:null,Yt.iOsVersion=b()?Pt.version:null,Yt.androidVersion=y()?Pt.version:null,Yt.chromeVersion=_()?kt.version:null,Yt.FacebookWebviewVersion=g()?kt.version:null,Yt.safariVersion=B()?kt.version:null}function wt(){Yt.isAndroidMobile=y()&&h(),Yt.isAmpObserveIntersection=Yt.amp&&Yt.observeIntersection,Yt.isUIWebview=(A()||l())&&!B()&&!_()&&!Yt.uiWebview,Yt.isIos10Safari=Mt.isGreaterOrEqual(M(),"10")&&!j()&&!f(),Yt.isIos10OtherBrowser=Mt.isGreaterOrEqual(M(),"10")&&Mt.isLowerThan(M(),"11")&&j()&&f()}function _t(t){return void 0===t&&(t="53"),y()&&(v()||Mt.isGreaterOrEqual(V(),t))||Mt.isGreaterOrEqual(M(),"10")}function Ct(){null===Xt&&(_t()?xt||Lt||(xt=document.createElement("video"),xt.src=qt,xt.style.setProperty("display","none"),xt.setAttribute("webkit-playsinline","true"),xt.setAttribute("playsinline","true"),xt.muted=!0,document.body.appendChild(xt),Lt=Vt.now(),Vt.mark("markAutoplayStartTime"),Nt.c.of(function(){return xt.play().then(function(){return St(!0)}).catch(function(t){St(!1),Ht.error("Could not play autoplayHtmlVideoElement",t)})}).recover(function(t){Ht.error("Could not play autoplayHtmlVideoElement",t),St(!1)})):Xt=!1)}function St(t){null===Xt&&(Vt.mark("markAutoplayEndTime"),Xt=t),null!==xt&&(xt.pause(),document.body.removeChild(xt),xt=null)}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"UABrowser",function(){return jt}),n.d(e,"UAOs",function(){return Bt}),n.d(e,"UADevice",function(){return Wt}),e.getContextSummary=i,e.getFullContext=o,e.init=r,e.setDeviceModel=a,e.setSDKVersion=s,e.setAppId=c,e.setIsSDK=u,e.isDesktop=d,e.isIpad=l,e.isTablet=p,e.isMobile=h,e.isChromeIos=f,e.isFacebookWebview=g,e.isAndroidNative=m,e.isSamsungBrowser=v,e.isAndroid=y,e.isIos=b,e.isIphone=A,e.isAndroidMobile=E,e.isIE=w,e.isChrome=_,e.isChromeWebView=C,e.isFirefox=S,e.isEdge=T,e.isAmp=O,e.isAmpSF=I,e.isFacebookIA=P,e.isAmpObserveIntersection=k,e.isIABSafeFrame=L,e.isEdgeTouchScreen=x,e.isSDK=R,e.getIEVersion=D,e.getAndroidVersion=N,e.getChromeVersion=V,e.getIosVersion=M,e.getFacebookWebviewVersion=F,e.getSafariVersion=U,e.isUIWebview=j,e.isSafari=B,e.isSafari11Plus=W,e.isChrome66Plus=H,e.isGoogleSearchApp=G,e.isIos10Safari=z,e.isIos10OtherBrowser=Y,e.isWhiteListedIos10Safari=K,e.isFacebookWebviewIOS10=q,e.isCanvasUsed=X,e.videoSupport=Z,e.getLanguage=J,e.getUA=Q,e.setUA=$,e.getDevice=tt,e.getOS=et,e.getBrowser=nt,e.canAutoplay=it,e.isCanvasNeeded=ot,e.getShortContext=rt,e.getEnv=at,e.getNetworkBandwidthInMbps=st,e.cacheCanvasUsed=ct,e.checkUserAgent=ut;var Tt,Ot,It,Pt,kt,Lt,xt,Rt=(n(21),n(1)),Dt=n(0),Nt=n(9),Vt=n(18),Mt=n(20),Ft=n(34),Ut=n(8),jt=function(){function t(t){this.name=t.name||"",this.version=t.version||""}return t.prototype.toString=function(){return Ut.separate("|",this.name,this.version).toLowerCase()},t}(),Bt=function(){function t(t){this.name=t.name||"",this.version=t.version||""}return t.prototype.toString=function(){return Ut.separate("|",this.name,this.version).toLowerCase()},t}(),Wt=function(){function t(e){this.model=e.model||"",this.type=e.type||(t.typeRegExp.test(et().name)?Ft.DESKTOP:""),this.vendor=e.vendor||""}return t.prototype.toString=function(){return Ut.separate("|",this.model,this.type,this.vendor).toLowerCase()},t.typeRegExp=/^windows|mac\s+os|linux|bsd|dragonfly|chromium\s+os|haiku|ubuntu|slackware|gentoo|solaris|debian|fedora|arch|beos|mint|gnu|os|suse\/2$/i,t}(),Ht=new Rt.a("Context"),Gt="",zt="",Yt={},Kt=/^(23027|24539|25695|25696|25697|25698|25699|25700|25701|25702|25703|25704|25705|25706|25707|25708|25709|25710|25711|26170|26231|26561|26566|26567|26568|26569|26570|26572|27446|28204|28206|28207|28210|28211|28212|28541|28827|28831|31814|33366|33704|33705|33706|33707|33708|34907|43985|49718|52375|53276|53824|53837|53838|53840|53842|55491|57698|57699|57702|60178|60578|61059|61123|69299)$/,qt=Object(Dt.getProtocol)()+"//a.teads.tv/media/format/v3/assets/default/autoplay.mp4",Xt=null},function(t,e,n){function i(t){return new r(t)}n.d(e,"b",function(){return r}),e.c=i,n.d(e,"a",function(){return a});var o=n(2),r=function(){function t(t){this.value=t,this._isEmpty=null===t||void 0===t}return t.of=function(t){return null===t||void 0===t?a:i(t)},t.ofNested=function(t,e){return this.of(Object(o.reduce)(e.split("."),function(t,e){return null===t||void 0===t?t:t[e]},t))},t.empty=function(){return a},t.prototype.isEmpty=function(){return this._isEmpty},t.prototype.nonEmpty=function(){return!this._isEmpty},t.prototype.getOrElse=function(t){return this._isEmpty?t():this.value},t.prototype.orElse=function(t){return this._isEmpty?t():this},t.prototype.orNull=function(){return this._isEmpty?null:this.value},t.prototype.map=function(e){return this._isEmpty?a:t.of(e(this.value))},t.prototype.flatMap=function(t){return this._isEmpty?a:t(this.value)||a},t.prototype.filter=function(e){return this._isEmpty||!e(this.value)?a:t.of(this.value)},t.prototype.existsIf=function(t){return!this._isEmpty&&t(this.value)},t.prototype.forEach=function(t){this._isEmpty||t(this.value)},t.prototype.match=function(t){return this._isEmpty?t.none():t.some(this.value)},t}(),a=new r(null)},function(t,e,n){function i(){var t=document.createElement("iframe");return t.style.setProperty("margin","0","important"),t.style.setProperty("padding","0","important"),t.style.setProperty("width","0","important"),t.style.setProperty("height","0","important"),t.style.setProperty("border","0","important"),t.style.setProperty("overflow","hidden","important"),t.style.setProperty("float","none","important"),t.setAttribute("allow","autoplay"),t.setAttribute("scrolling","no"),t.frameBorder="0",t}function o(t){return t||(t=document),!!(t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement||t.msFullscreenElement)}function r(t){if(!t||Object(D.isNodeList)(t))return null;var e=a(t);return e?e.defaultView||e.parentWindow:null}function a(t){return!t||Object(D.isNodeList)(t)?null:t.ownerDocument}function s(t){o()?u(t):c(t)}function c(t){t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen&&t.webkitRequestFullscreen()}function u(t){var e=a(t);e.exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.webkitExitFullscreen&&e.webkitExitFullscreen()}function d(t,e){e=V.trim(e),p(t,e)||t.classList.add(e)}function l(t,e){e=V.trim(e),p(t,e)&&t.classList.remove(e)}function p(t,e){return t.classList.contains(V.trim(e))}function h(t,e){t.classList.toggle(V.trim(e))}function f(t,e,n){e=V.trim(e),n=V.trim(n),!p(t,n)&&p(t,e)&&(M.isFunction(t.classList.replace)?t.classList.replace(e,n):(l(t,e),d(t,n)))}function g(t){return m(t).pop()!==window.top}function m(t,e){void 0===e&&(e=!0);var n=[];if(Object(D.isHTMLElement)(t)){var i;i=function(t){if(t.parent!==t&&t.parent.location&&t.parent.window){if(e){t.parent.document}n.push(t.parent),i(t.parent)}};var o=r(t);n.push(o);try{i(o)}catch(t){}}return n}function v(t){return m(t).pop()||window}function y(t,e){void 0===e&&(e=!1);var n=[];if(Object(D.isHTMLElement)(t))for(var i=t.getElementsByTagName("iframe"),o=0;o<i.length;o++)try{i[o].contentWindow&&i[o].contentWindow.document&&i[o].contentWindow.document.body&&(n.push(i[o].contentWindow),e&&N.forEach(y(i[o].contentWindow.document.body,!0),function(t){n=n.concat(t)}))}catch(t){}return n}function b(t,e){return void 0===e&&(e=!1),m(t).concat(y(t,e))}function A(t){var e=r(t);try{if(e.parent!==e&&void 0!==e.parent.Window&&e.parent instanceof e.parent.Window){var n=e.parent.document.getElementsByTagName("iframe");if(n)for(var i=0;i<n.length;i++)if(n[i].contentWindow===e)return A(n[i])}}catch(t){}return t}function E(t){var e=r(t);try{if(e.parent!==e&&void 0!==e.parent.Window&&e.parent instanceof e.parent.Window){var n=e.parent.document.getElementsByTagName("iframe");if(n)for(var i=0;i<n.length;i++)if(n[i].contentWindow===e&&!w(n[i]))return n[i]}}catch(t){}return t}function w(t){return"context"===t.id&&"http://localhost:5555/context.html"===t.src&&"100%"===t.width&&"100%"===t.height}function _(t){var e=[];if(Object(D.isHTMLElement)(t))for(var n=a(t),i=t,o=i.tagName&&i.tagName.toUpperCase&&"HTML"===i.tagName.toUpperCase();!o&&i!==n.body&&Object(D.isHTMLElement)(i);)(i=i.parentElement)&&e.push(i);return e}function C(t,e,n,i,o){void 0===o&&(o=S),i||(i=t.offsetHeight);var r=o(t,e,i);return(!F.isAmp()&&!F.isIABSafeFrame()||0!==r)&&r>=n}function S(t,e,n,i,o){if(void 0===n&&(n=t.offsetHeight),void 0===i&&(i=!1),void 0===o&&(o=!F.isAndroid()),F.isAmp())return e._teads_amp.change?e._teads_amp.change.intersectionRect.height/e._teads_amp.change.boundingClientRect.height:0;if(F.isIABSafeFrame()){var r=e.$sf.ext.geom();return r&&r.self?r.self.yiv:0}var a=Object(D.getWindowSize)(e),s=Object(D.getBoundingClientRect)(t),c=o?O(e,T(e),a.height):0,u=s.top-c,d=u>0?a.height-s.top:u+n,l=d/n;return i||(l=l>0?l:0,l=l<1?l:1),l}function T(t,e){void 0===t&&(t=window),void 0===e&&(e=[document.body]);for(var n,i,o=[],r=Object(D.getWindowSize)(t),a=r.width/2,s=r.height*U,c=s*U,u=1;u<s;u+=c)n=t.document.elementFromPoint(a,u),i!==n&&(i=n,"fixed"!==t.getComputedStyle(n).position||N.includes(e,n)||n.className.match(/teads/)||o.push(n),N.forEach(_(n),function(n){"fixed"!==t.getComputedStyle(n).position||N.includes(e,n)||n.className.match(/teads/)||o.push(n)}));return N.unique(o)}function O(t,e,n){var i=0;N.forEach(e,function(t){return i=Math.max(i,Object(D.getBoundingClientRect)(t).bottom)});var o=Object(D.getScrollTop)(t),r=o>0?i:o+i;return Math.max(0,Math.min(n,r))}function I(t){var e=!0;Object(D.isHTMLElement)(t)||(e=!1);var n=r(t)||window,i=n.getComputedStyle(t);if(e&&"none"===i.display&&(e=!1),e){var o=Object(D.getBoundingClientRect)(t),a="hidden"===i.overflowX||"hidden"===i.overflowY;o.height<4&&o.width<4&&a&&(e=!1)}var s=R(t);return e&&s&&(e=I(s)),e}function P(t){var e=r(t).document.styleSheets,n=[];if(t.matches=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector,M.isFunction(t.matches))for(var i in e){var o=e[i],a=o.rules||o.cssRules;for(var s in a){var c=a[s];t.matches(c.selectorText)&&n.push(c)}}return n}function k(t,e,n){var i=P(t);N.forEach(i,function(t){N.forEach(n,function(n){var i=t.style.getPropertyValue(n);!i||e.style[n]||e.getAttribute(n)||(e.style[n]=i)})})}function L(t){N.forEach(j,function(e){t.style.removeProperty(e+"transition")})}function x(t,e,n){void 0===n&&(n="linear"),N.forEach(j,function(i){t.style.setProperty(i+"transition",e+"s "+n,"important")})}function R(t){var e=null;return Object(D.isHTMLElement)(t)&&(e=t.parentElement),e}Object.defineProperty(e,"__esModule",{value:!0}),e.createIframe=i,e.isFullscreen=o,e.getWindow=r,e.getDocument=a,e.toggleFullscreen=s,e.openFullscreen=c,e.closeFullscreen=u,e.addClass=d,e.removeClass=l,e.hasClass=p,e.toggleClass=h,e.replaceClass=f,e.isInCrossDomainIframe=g,e.findParentWindows=m,e.findTopWindow=v,e.findChildWindows=y,e.findAllWindows=b,e.findParentFrameNode=A,e.findFirstParentFrameNode=E,e.isKarmaFrame=w,e.findParentElements=_,e.isInView=C,e.getPercentageInView=S,e.findFloatingHeaders=T,e.getTop=O,e.getRealVisibilityState=I,e.getCSSRules=P,e.copyCSSRules=k,e.removeTransitionProperties=L,e.addTransitionProperties=x;var D=n(7),N=n(2),V=n(8),M=n(0),F=n(3),U=F.isDesktop()?.1:.15,j=["","-webkit-","-moz-","-o-","-ms-"]},function(t,e,n){var i=function(){function t(t,e){void 0===e&&(e=null),this.type=t,this.data=e}return t.AdLoaded="AdLoaded",t.AdStarted="AdStarted",t.AdStopped="AdStopped",t.AdSkipped="AdSkipped",t.AdLinearChange="AdLinearChange",t.AdSizeChange="AdSizeChange",t.AdExpandedChange="AdExpandedChange",t.AdSkippableStateChange="AdSkippableStateChange",t.AdRemainingTimeChange="AdRemainingTimeChange",t.AdDurationChange="AdDurationChange",t.AdVolumeChange="AdVolumeChange",t.AdImpression="AdImpression",t.AdVideoStart="AdVideoStart",t.AdVideoFirstQuartile="AdVideoFirstQuartile",t.AdVideoMidpoint="AdVideoMidpoint",t.AdVideoThirdQuartile="AdVideoThirdQuartile",t.AdVideoComplete="AdVideoComplete",t.AdClickThru="AdClickThru",t.AdInteraction="AdInteraction",t.AdUserAcceptInvitation="AdUserAcceptInvitation",t.AdUserMinimize="AdUserMinimize",t.AdUserClose="AdUserClose",t.AdPaused="AdPaused",t.AdPlaying="AdPlaying",t.AdLog="AdLog",t.AdError="AdError",t}();e.a=i},function(t,e,n){function i(t){try{var e=t.getBoundingClientRect(),n=o(e);if(!x.isAmp()&&!x.isIABSafeFrame()&&!x.isFacebookIA()&&Object(L.getWindow)(t)!==window.top){var r=Object(L.findFirstParentFrameNode)(t);if(r!==t){var a=i(r);a.top&&(n.top=a.top+e.top,n.bottom=a.top+e.bottom),a.left&&(n.left=a.left+e.left,n.right=a.left+e.right)}}return n}catch(t){return{left:0,top:0,right:0,bottom:0,width:0,height:0}}}function o(t){return{top:t.top||0,right:t.right||0,bottom:t.bottom||0,left:t.left||0,width:t.width||0,height:t.height||0}}function r(t){var e=t.offsetWidth,n=t.offsetHeight,o=x.getUA().indexOf("WebKit")>-1&&!e&&!n;if((!e||o)&&t.getBoundingClientRect){var r=i(t);return{width:r.right-r.left,height:r.bottom-r.top}}return{width:e,height:n}}function a(t,e){if(k.indexOf(M,t.nodeName)>=0);else if(t.nodeType===F.TEXT)e.push(t.nodeValue);else if(t.nodeName in V)e.push(V[t.nodeName]);else for(var n=t.firstChild;n;)a(n,e),n=n.nextSibling}function s(t,e){if(void 0===e&&(e=window),t){var n=t.tagName.toLowerCase(),i=["iframe","object","img"];return!(k.includes(i,n)||c(i.join(","),e,t).length>0||""!==t.textContent.trim())}}function c(t,e,n){return void 0===n&&(n=null),Object(k.fromArrayLike)((n||e.document).querySelectorAll(t))}function u(t,e){var n=t[0];if(n){var i=n.querySelector(e);return P.b.of(i).orElse(function(){return u(t.slice(1),e)})}return P.b.empty()}function d(t,e){return P.b.of(t.getAttribute(e)).filter(function(t){return""!==t})}function l(t,e){return d(t,e).map(function(n){return t.removeAttribute(e),n})}function p(t){if(void 0===t&&(t=window),x.isIABSafeFrame()){var e=window.$sf.ext.geom();return{width:e.win.w,height:e.win.h}}return"number"==typeof t.innerWidth?{width:t.innerWidth,height:t.innerHeight}:t.document.documentElement&&(t.document.documentElement.clientWidth||t.document.documentElement.clientHeight)?{width:t.document.documentElement.clientWidth,height:t.document.documentElement.clientHeight}:t.document.body&&(t.document.body.clientWidth||t.document.body.clientHeight)?{width:t.document.body.clientWidth,height:t.document.body.clientHeight}:{width:1e3,height:600}}function h(t,e){void 0===e&&(e=window),(e.document.getElementsByTagName("head")[0]||e.document.body).appendChild(t)}function f(t,e,n){e.addEventListener?e.addEventListener(t,n,!0):e.attachEvent?e.attachEvent("on"+t,n):U.warn("Trying to addEventListener on bad object",e)}function g(t,e,n){try{e.removeEventListener?e.removeEventListener(t,n,!0):e.attachEvent?e.detachEvent("on"+t,n):U.warn("Trying to removeEventListener on bad object",e)}catch(t){}}function m(t,e){void 0===e&&(e=window),!e.document||"complete"!==e.document.readyState&&"interactive"!==e.document.readyState?e.addEventListener?e.addEventListener("DOMContentLoaded",t,!1):e.attachEvent&&e===e.top?1===N.push(t)&&I(e):e.attachEvent&&e.attachEvent("onload",t):"interactive"===e.document.readyState&&e.document.attachEvent?e.document.attachEvent("onreadystatechange",function(){"complete"===e.document.readyState&&t()}):t()}function v(t,e,n){void 0===e&&(e=window),void 0===n&&(n=this),"complete"===e.document.readyState?t.call(n):f("load",e,function(){t.call(n)})}function y(t){return t.pageXOffset?t.pageXOffset:"CSS1Compat"===(t.document.compatMode||"")?t.document.documentElement.scrollLeft:t.document.body.scrollLeft}function b(t){return t.pageYOffset?t.pageYOffset:"CSS1Compat"===(t.document.compatMode||"")?t.document.documentElement.scrollTop:t.document.body.scrollTop}function A(t,e,n){if(void 0===n&&(n=window),e=e||n.document,e.getElementsByClassName)return Object(k.fromArrayLike)(e.getElementsByClassName(t));for(var i=t.split(" "),o="",r=0,a=i.length;r<a;r++)o+="."+i[r];return c(o,n,e)}function E(t,e){return!(!t||"object"!=typeof t||w(t))&&(e||(e=Object(L.getWindow)(t)||window),"object"==typeof e.HTMLElement?t instanceof e.HTMLElement:t&&"object"==typeof t&&1===t.nodeType&&"string"==typeof t.nodeName)}function w(t){return!(!t||"object"!=typeof t)&&("[object NodeList]"===String(t)||"[object StaticNodeList]"===String(t))}function _(t){if(E(t))return/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i.test(t.nodeName)}function C(t){var e=!1;for(var n in t)if(!(e=n.match(/mobile|tablet|desktop|large/)&&Object(R.isString)(t[n])||w(t[n])||E(t[n])))break;return e}function S(t){var e=document.createElement("textarea");return e.innerHTML=t,e.value}function T(t){var e=document.createElement("textarea");return e.innerText=t,e.innerHTML}function O(t){var e;return E(t)&&(e=S(t.outerHTML)),e}function I(t){try{t.document.documentElement.doScroll("left");for(var e=void 0;e=N.shift();)e()}catch(e){setTimeout(I,50,t)}}Object.defineProperty(e,"__esModule",{value:!0}),e.getBoundingClientRect=i,e.copyBoundingClientRect=o,e.getSize=r,e.getTextContent=a,e.isEmpty=s,e.querySelectorAll=c,e.findMatchingElement=u,e.getAttributeValue=d,e.getAndRemoveAttributeValue=l,e.getWindowSize=p,e.inject=h,e.addEventListener=f,e.removeEventListener=g,e.onDomReady=m,e.onDomComplete=v,e.getScrollLeft=y,e.getScrollTop=b,e.getElementsByClassName=A,e.isHTMLElement=E,e.isNodeList=w,e.isSelfClosingTag=_,e.isISlotSelector=C,e.htmlDecode=S,e.htmlEncode=T,e.getOuterHTML=O;var P=n(4),k=n(2),L=n(5),x=n(3),R=n(0),D=n(1),N=[],V={IMG:" ",BR:"\n"},M=["SCRIPT","STYLE","HEAD","IFRAME","OBJECT"],F={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12},U=new D.a("Dom")},function(t,e,n){function i(t){var e=/^\(?((?:(http|https|ftp):\/\/)|\/\/)?(?:((?:[^\W\s]|\.|-|[:]{1})+)@{1})?((?:www.)?(?:[^\W\s]|\.|-)+[\.][^\W\s]{2,4}|localhost|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(?::(\d*))?([\/]?[^\s\?]*[\/]{1})*(?:\/?([^\s\n\?\[\]\{\}\#]*(?:(?=\.)){1}|[^\s\n\?\[\]\{\}\.\#]*)?([\.]{1}[^\s\?\#]*)?)?(?:\?{1}([^\s\n\#]*))?([\#][^\s\n]*)?\)?$/i;return"string"==typeof t&&e.test(t)}function o(t,e){void 0===e&&(e="00");var n=String(t);return e.substring(0,e.length-n.length)+n}function r(t){return t.charAt(0).toUpperCase()+t.substr(1)}function a(t,e){void 0===e&&(e=!0);for(var n=e?"0123456789":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i="",o=0;o<t;o++)i+=n.charAt(Math.floor(Math.random()*n.length));return i}function s(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function c(t){void 0===t&&(t="|");for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=!0,o=0;i&&o<e.length;)i=i&&!e[o],o++;return i?"":e.join(t)}function u(t,e){return t.slice(-e.length)===e}function d(t,e){return t.match(e)||[]}function l(t,e){return function(n){return p.reduce(t,function(t,n){return t.replace(n,""+e)},n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.isURL=i,e.pad=o,e.ucfirst=r,e.rand=a,e.trim=s,e.separate=c,e.endsWith=u,e.match=d,e.replaceStringsWithValue=l;var p=n(2)},function(t,e,n){function i(t){return new a(t,null,!0)}function o(t){return new a(null,t,!1)}n.d(e,"c",function(){return a}),e.b=i,e.a=o;var r=n(4),a=function(){function t(t,e,n){this._isSuccess=n,n?this._successValue=t:this._failureValue=e}return t.of=function(t){try{return i(t())}catch(t){return o(t)}},t.prototype.isSuccess=function(){return this._isSuccess},t.prototype.isFailure=function(){return!this._isSuccess},t.prototype.getOrElse=function(t){return this._isSuccess?this._successValue:t()},t.prototype.orElse=function(t){return this._isSuccess?this:t()},t.prototype.filter=function(t){if(!this._isSuccess)return this;try{return t(this._successValue)?this:o(new Error("Predicate does not hold for "+this._successValue))}catch(t){return o(t)}},t.prototype.flatMap=function(t){if(!this._isSuccess)return this;try{return t(this._successValue)}catch(t){return o(t)}},t.prototype.map=function(e){var n=this;return this._isSuccess?t.of(function(){return e(n._successValue)}):this},t.prototype.forEach=function(t){this._isSuccess&&t(this._successValue)},t.prototype.recover=function(e){var n=this;return this._isSuccess?this:t.of(function(){return e(n._failureValue)})},t.prototype.recoverWith=function(t){try{return this._isSuccess?this:t(this._failureValue)}catch(t){return o(t)}},t.prototype.match=function(t){return this._isSuccess?t.success(this._successValue):t.failure(this._failureValue)},t.prototype.toOption=function(){return this._isSuccess?r.b.of(this._successValue):r.a},t}()},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"now",function(){return a});var i=n(0),o=window.Date,r=o.prototype.getTime,a=Object(i.isNative)(o.now)?o.now:Object(i.isNative)(r)?function(){return r.call(new o)}:function(){return+new o};o.now||(o.now=a)},function(module,__webpack_exports__,__webpack_require__){function stringify(t,e){void 0===e&&(e=!1);var n=Array.prototype.toJSON;delete Array.prototype.toJSON;var i=jsonStringify(e?decycle(t):t);return n&&(Array.prototype.toJSON=n),i}function parse(sJSON){return window.JSON.parse?window.JSON.parse(sJSON):eval("("+sJSON+")")}function decycle(t,e){var n=[],i=[];return function t(o,r){var a,s;return void 0!==e&&(o=e(o)),"object"!=typeof o||null===o||o instanceof Boolean||o instanceof Date||o instanceof Number||o instanceof RegExp||o instanceof String?o:(a=n.indexOf(o))>=0?{$ref:i[a]}:(n.push(o),i.push(r),Array.isArray(o)?(s=[],o.forEach(function(e,n){s[n]=t(e,r+"["+n+"]")})):(s={},Object.keys(o).forEach(function(e){s[e]=t(o[e],r+"["+JSON.stringify(e)+"]")})),s)}(t,"$")}function jsonStringify(t){return window.JSON.stringify&&'{"a":"b"}'===window.JSON.stringify({a:"b"})?window.JSON.stringify(t):polyfillStringify(t)}function polyfillStringify(t){if(null===t)return"null";if("number"==typeof t)return isFinite(Number(t))?t.toString():"null";if("boolean"==typeof t)return t.toString();if("object"==typeof t){if(Array.isArray(t)){for(var e="[",n=0;n<t.length;n++)e+=(n?", ":"")+polyfillStringify(t[n]);return e+"]"}if("[object Object]"===Object.prototype.toString.call(t)){var i=[];for(var o in t)t.hasOwnProperty(o)&&i.push(polyfillStringify(o)+": "+polyfillStringify(t[o]));return"{"+i.join(", ")+"}"}}return'"'+t.toString().replace(escRE,escFunc)+'"'}Object.defineProperty(__webpack_exports__,"__esModule",{value:!0}),__webpack_exports__.stringify=stringify,__webpack_exports__.parse=parse,__webpack_exports__.decycle=decycle;var escMap={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},escRE=/[\\"\u0000-\u001F\u2028\u2029]/g,escFunc=function(t){return escMap[t]||"\\u"+(t.charCodeAt(0)+65536).toString(16).substr(1)}},function(t,e,n){n.d(e,"a",function(){return i});var i={ABORT:"abort",CAN_PLAY:"canplay",DURATION_CHANGE:"durationchange",ENDED:"ended",ERROR:"error",LOADED_DATA:"loadeddata",LOADED_METADATA:"loadedmetadata",LOAD_START:"loadstart",LOADED:"loaded",PAUSE:"pause",PLAY:"play",PLAYING:"playing",PROGRESS:"progress",SEEKED:"seeked",SEEKING:"seeking",STALLED:"stalled",RESUME_AFTER_STALLED:"resumeafterstalled",TIME_UPDATE:"timeupdate",VOLUME_CHANGE:"volumechange",AUDIO_SYNC:"audiosync",BENCH_FPS:"benchFps",RESIZE:"resize"}},function(t,e,n){function i(t){var e=document.createElement("a");return e.href=t,window.swInstalled&&/(teads|ebu?z)/.test(e.hostname)?"/"+btoa(t).replace(/=/g,"_"):t}function o(t){var e=document.createElement("a");return e.href=t,{href:e.href,protocol:e.protocol,hostname:e.hostname,port:e.port,pathname:e.pathname,search:e.search,hash:e.hash,host:e.host}}function r(t){var e={};return"string"!=typeof t?e:(t=Object(f.trim)(t).replace(/^(\?|&)/,""))?(h.forEach(t.split("&"),function(t){var n=t.split("="),i=n.shift();e[i]=n.length>0?n.join("="):void 0}),e):e}function a(t){return/teads\.(tv|net|tech)$/.test(o(t).hostname)}function s(t){return/^http(s)*:\/\/t\.teads\.tv/i.test(t)}function c(t){var e=["uk"],n=t.split("."),i=n.length>1?n[n.length-2]:t;return h.includes(e,n[n.length-1])&&(i=n[n.length-3]),i}function u(t,e,n){if(t.indexOf(e)<0)return t;var i=new RegExp("[\\?&]"+e+"=([^&#]*)");return v.b.of(i.exec(t)).map(function(t){return t[0]}).map(function(t){return t.charAt(0)}).match({some:function(o){return t.replace(i,o+e+"="+n)},none:function(){return y.warn('Tried to replace parameter "'+e+'" value with "'+n+'" on URL '+t+" and failed."),t}})}function d(t,e){var n=h.map(Object.keys(e),function(t){return t+"="+e[t]}).join("&"),i=-1===t.indexOf("?")?"?":"&";return t+(""===n?"":i+n)}function l(t){var e={sid:null,gid:null,pid:null},n=h.filter(h.map(t,function(t){return t.url}),s);return h.forEach(n,function(t){var n=r(t);for(var i in e)!function(t){e[t]=v.b.of(n[t]).map(parseInt).filter(m.isNumber).getOrElse(function(){return e[t]})}(i);e.auctid=n.auctid||e.auctid}),e}function p(t){return t.replace(/^http:/,Object(m.getProtocol)())}Object.defineProperty(e,"__esModule",{value:!0}),e.safeUrl=i,e.parse=o,e.parseQueryString=r,e.isInternalUrl=a,e.isTeadsTrackingUrl=s,e.getMainDomain=c,e.replaceUrlParameter=u,e.buildUrlWithParams=d,e.getBusinessIdsFromTracking=l,e.updateProtocolIfNeeded=p;var h=n(2),f=n(8),g=n(1),m=n(0),v=n(4),y=new g.a("URIHelper")},function(t,e,n){var i=n(1),o=n(35),r=function(){function t(t){if(this.logger=new i.a("option."+t),!t)throw new o.a(o.a.OPTION_NAME_REQUIRED)}return t}();e.a=r},function(t,e,n){var i=n(1),o=function(){function t(){this.loggerED=new i.a("canvas.player.components.EventDispatcher"),this.cb={},this.addEventListener=this.listen,this.removeEventListener=this.muteEvent}return t.prototype.listen=function(t,e,n){void 0===n&&(n=!1),this.cb[t]||(this.cb[t]=new Array),this.cb[t].push(e)},t.prototype.muteEvent=function(t,e){this.cb[t]?e&&-1!==this.cb[t].indexOf(e)?this.cb[t].splice(this.cb[t].indexOf(e),1):e?this.loggerED.error("call muteEvent for",t,"but handler ",e," does not exist for this event"):this.cb[t]=new Array:this.loggerED.error("call muteEvent for",t,"but handlers for this event are empty")},t.prototype.dispatch=function(t,e){this.cb[t]&&(e?e.type=t:e={type:t},this.cb[t].forEach(function(t,n){t(e)}))},t}();e.a=o},function(t,e,n){n.d(e,"a",function(){return o}),n.d(e,"b",function(){return r});var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=function(){function t(t,e){this.code=t,this.error=e}return t.get=function(e,n,i){return new t({id:e,message:n},i)},t.prototype.getFullMessage=function(){return"Error #"+this.code.id+": "+this.code.message},t.prototype.getId=function(){return this.code.id},t.prototype.getMessage=function(){return this.code.message},t.prototype.getStackTrace=function(){return this.error&&this.error.stack?this.error.stack:""},t.prototype.toString=function(){return this.getFullMessage()},t}(),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.XML_PARSE={id:100,message:"XML parsing error"},e.XML_INVALID_SCHEMA={id:101,message:'VAST schema validation error: expected "%s" but found "%s"'},e.UNSUPPORTED_VERSION={id:102,message:"VAST version of response not supported. Expected VAST2 or VAST3 but VAST1 found"},e.TRAFFICKING={id:200,message:"Trafficking error. Video player received an Ad type that it was not expecting and/or cannot display"},e.LINEARITY={id:201,message:"Video player expecting different linearity"},e.DURATION={id:202,message:"Video player expecting different duration"},e.SIZE={id:203,message:"Video player expecting different size"},e.WRAPPER={id:300,message:"General Wrapper error"},e.WRAPPER_TIMEOUT={id:301,message:"Timeout of VAST URI provided in Wrapper element, or of VAST URI provided in a subsequent Wrapper element (URI was either unavailable or reached a timeout as defined by the video player)"},e.WRAPPER_LIMIT={id:302,message:"Wrapper limit reached, as defined by the video player. Too many Wrapper responses have been received with no InLine response"},e.NO_ADS={id:303,message:"No Ads VAST response after one or more Wrappers"},e.GENERAL_LINEAR={id:400,message:"General Linear error. Video player is unable to display the Linear Ad."},e.FILE_NOT_FOUND={id:401,message:"File not found. Unable to find Linear/MediaFile from URI."},e.MEDIAFILE_TIMEOUT={id:402,message:"Timeout of MediaFile URI."},e.UNSUPPORTED_MEDIAFILE={id:403,message:"Could not find MediaFile that is supported by this video player, based on the attributes of the MediaFile element."},e.MEDIAFILE_DISPLAY={id:405,message:"Problem displaying MediaFile. Video player found a MediaFile with supported type but could not display it. MediaFile may include: unsupported codecs, different MIME type than MediaFile@type, unsupported delivery method, etc."},e.GENERAL_NONLINEAR={id:500,message:"General NonLinearAds error."},e.CREATIVE_DIMENSIONS={id:501,message:"Unable to display NonLinear Ad because creative dimensions do not align with creative display area (i.e. creative dimension too large)."},e.NONLINEAR_FETCH={id:502,message:"Unable to fetch NonLinearAds/NonLinear resource."},e.SUPPORTED_NONLINEAR_NOT_FOUND={id:503,message:"Could not find NonLinear resource with supported type."},e.GENERAL_COMPANION={id:600,message:"General CompanionAds error."},e.COMPANION_DIMENSIONS={id:601,message:"Unable to display Companion because creative dimensions do not fit within Companion display area (i.e., no available space)."},e.COMPANION_DISPLAY={id:602,message:"Unable to display Required Companion."},e.COMPANION_FETCH={id:603,message:"Unable to fetch CompanionAds/Companion resource."},e.SUPPORTED_COMPANION_NOT_FOUND={id:604,message:"Could not find Companion resource with supported type."},e.UNDEFINED={id:900,message:"Undefined Error"},e.GENERAL={id:901,message:"General VPAID error"},e}(o)},function(t,e,n){function i(){if(a)return a();var t=null;if(window.XMLHttpRequest&&(t=new XMLHttpRequest),!t||"withCredentials"in t||(t=window.XDomainRequest?new window.XDomainRequest:null),!t){try{t=new window.ActiveXObject("MSXML2.XMLHTTP.6.0")}catch(e){try{t=new window.ActiveXObject("MSXML2.XMLHTTP.3.0")}catch(t){throw new Error("could not create XMLHttpRequest nor ActiveXObject")}}t.responseType="msxml-document"}return t}function o(t){return s?s(t):t instanceof XMLHttpRequest}function r(t,e){a=t,s=e}Object.defineProperty(e,"__esModule",{value:!0}),e.createXmlHttpRequest=i,e.isXMLHttpRequest=o,e.overrideFunctions=r;var a=null,s=null},function(t,e,n){function i(){try{d=window.top.performance||window.top.webkitPerformance||window.top.msPerformance||window.top.mozPerformance}catch(t){}}function o(t){if(!t||"string"!=typeof t)return null;if(d&&d.mark)d.mark(t);else{var e={name:t,entryType:"mark",startTime:u(),duration:0};f[t]=e}}function r(t,e,n){if(!t||"string"!=typeof t||!e||"string"!=typeof e||!n||"string"!=typeof n)return null;try{if(d&&d.measure)d.measure(t,e,n);else if(f[e]&&f[n]){var i={name:t,entryType:"measure",startTime:f[e].startTime,duration:f[n].startTime-f[e].startTime};f[t]=i}return a(t)}catch(t){return h.warn(t),null}}function a(t){try{if(d&&d.getEntriesByName){var e=d.getEntriesByName(t);return e[e.length-1]}return f[t]?f[t]:null}catch(t){return h.warn(t),null}}function s(t,e){void 0===e&&(e=window);var n=null;if(e.performance&&e.performance.getEntries){var i=e.performance.getEntriesByType("resource");for(var o in i)if(i.hasOwnProperty(o)&&t.test(i[o].name)){n=i[o];break}}return n}function c(){if(d&&d.getEntries)return d.getEntriesByType("resource").length}function u(){return d&&d.now?d.now():p.now()}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"performance",function(){return d}),e.init=i,e.mark=o,e.measure=r,e.getLastEntryByName=a,e.getTimingByRegex=s,e.getResourceCount=c,e.now=u;var d,l=n(1),p=n(10),h=new l.a("helper.Timing"),f={}},function(t,e,n){var i=n(5),o=n(7),r=n(1),a=n(47),s=n(6),c=n(67),u=n(54),d=function(){function t(t,e,n,i,o){var d=this;if(this.ui=t,this.element=e,this.vpaid=n,this.config=i,this.globalVpaidEventHandler=o,this.eventHandler=new a.a,this.showOnVideoStart=!0,this.isCountdownEnded=!1,i.style){var l=e.getAttribute("style");e.setAttribute("style",(l?l+";":"")+i.style)}var p=new RegExp(c.a+"([a-z]*)"),h=e.className.match(p);if(this.id=h&&h[1]?h[1]:"",this.logger=new r.a("teads.ui.Component"+(this.id?"."+this.id:"")),e.style.zIndex||e.style.setProperty("z-index","2"),this.hide(),this.vpaid.subscribe(function(){d.onVideoStart()},s.a.AdVideoStart),i.startOffset){this.showOnVideoStart=!1;var f;f=function(){u.getCurrentTime(d.vpaid)>=i.startOffset&&(d.vpaid.unsubscribe(f,s.a.AdRemainingTimeChange),d.isCountdownEnded=!0,d.isEnabled()&&d.show())},this.vpaid.subscribe(f,s.a.AdRemainingTimeChange)}else this.isCountdownEnded=!0;this.bindClick()}return t.prototype.init=function(){},t.prototype.setShowOnVideoStart=function(t){this.showOnVideoStart=t},t.prototype.getShowOnVideoStart=function(){return this.showOnVideoStart},t.prototype.getConfig=function(){return this.config},t.prototype.isEnabled=function(){return!this.config.disable},t.prototype.getElement=function(){return this.element},t.prototype.show=function(){this.isCountdownEnded&&(i.removeClass(this.getElement(),"hide"),i.addClass(this.getElement(),"show"))},t.prototype.hide=function(){i.removeClass(this.getElement(),"show"),i.addClass(this.getElement(),"hide")},t.prototype.isVisible=function(){return this.getElement().className.indexOf("show")>-1},t.prototype.getVpaid=function(){return this.vpaid},t.prototype.subscribe=function(t,e,n){this.eventHandler.subscribe(t,e,n)},t.prototype.unsubscribe=function(t,e){this.eventHandler.unsubscribe(t,e)},t.prototype.getOverridenEvents=function(){return[]},t.prototype.getOverridenMethods=function(){return[]},t.prototype.restoreOnClickAction=function(){},t.prototype.onMethod=function(t,e){void 0===e&&(e=[])},t.prototype.onOverridenMethod=function(t,e){void 0===e&&(e=[])},t.prototype.remove=function(){this.getElement().parentNode&&this.getElement().parentNode.removeChild(this.getElement())},t.prototype.onVideoStart=function(){this.showOnVideoStart&&this.show()},t.prototype.dispatchVpaidEvent=function(t,e){if(this.globalVpaidEventHandler)try{this.globalVpaidEventHandler({type:t,data:e})}catch(n){this.logger.error("error calling dispatchVpaidEvent "+t,e)}else this.logger.error("no globalVpaidEventHandler given. Dispatch "+t+" failed",e)},t.prototype.bindClick=function(){var t=this;o.addEventListener("click",this.getElement(),function(e){t.onClick(e)})},t.prototype.onClick=function(t){this.dispatchUiEvent(this.eventName)},t.prototype.dispatchUiEvent=function(t){t&&(this.logger.info("dispatch UI event "+t),this.dispatchVpaidEvent(t))},t}();e.a=d},function(t,e,n){function i(t,e){var n=u(t,e);return null!==n&&n>0}function o(t,e){var n=u(t,e);return null!==n&&n<0}function r(t,e){var n=u(t,e);return null!==n&&n>=0}function a(t,e){var n=u(t,e);return null!==n&&n<=0}function s(t,e){return t<e?-1:t>e?1:0}function c(t,e){return s(t.major,e.major)||s(t.minor,e.minor)||s(t.patch,e.patch)}function u(t,e){var n=new d(t),i=new d(e);return n.isValid&&i.isValid?c(n,i):null}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"MAX_LENGTH",function(){return l}),n.d(e,"MAX_SAFE_INTEGER",function(){return p}),n.d(e,"NUMERICIDENTIFIER",function(){return h}),n.d(e,"MAINVERSION",function(){return f}),n.d(e,"FULL",function(){return g}),e.isGreaterThan=i,e.isLowerThan=o,e.isGreaterOrEqual=r,e.isLowerOrEqual=a;var d=function(){function t(e){if(this.isValid=!0,"string"!=typeof e&&(e=""+e),e.length>l)return void(this.isValid=!1);var n=e.trim().match(g);if(!n){return e.split(".").length<3?new t(e+".0"):void(this.isValid=!1)}return this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>p||this.major<0?void(this.isValid=!1):this.minor>p||this.minor<0?void(this.isValid=!1):this.patch>p||this.patch<0?void(this.isValid=!1):void(this.version=this.major+"."+this.minor+"."+this.patch)}return t.prototype.toString=function(){return this.version},t}(),l=256,p=9007199254740991,h="0|[1-9]\\d*",f="("+h+")\\.("+h+")\\.("+h+")",g=new RegExp("^v?"+f+".*?$")},function(t,e,n){var i=n(10),o=window.teads||{};o.START_TIME=o.START_TIME||Object(i.now)(),o.FULL_LOGS=o.FULL_LOGS||[],o.HAS_DEBUG_LOGS=o.HAS_DEBUG_LOGS||!1,o.CONTEXT_IS_INITIALIZED=!1,o.WIGO_DEBUG_KEY=o.WIGO_DEBUG_KEY||null,window.teads=o},function(t,e,n){var i=n(6),o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.FullscreenRequest="FullscreenRequest",e.PlayPauseRequest="PlayPauseRequest",e.SkipRequest="SkipRequest",e.UIButtonRequest="UIButtonRequest",e.ClickToPlayRequest="ClickToPlayRequest",e.ClickRequest="ClickRequest",e.CallRequest="CallRequest",e.SoundToggleRequest="SoundToggleRequest",e.ReplayRequest="ReplayRequest",e.EndscreenInit="EndscreenInit",e.CollapseRequest="CollapseRequest",e.AdChoicesClickRequest="AdChoicesClickRequest",e}(i.a);e.a=r},function(t,e,n){n.d(e,"a",function(){return i});var i;!function(t){t[t.INIT=0]="INIT",t[t.INIT_VIDEO=1]="INIT_VIDEO",t[t.INIT_AUDIO=2]="INIT_AUDIO",t[t.CAN_PLAY=3]="CAN_PLAY",t[t.PLAYING=4]="PLAYING",t[t.PAUSED=5]="PAUSED",t[t.LOADED=6]="LOADED",t[t.STALLED=7]="STALLED",t[t.ENDED=8]="ENDED"}(i||(i={}))},function(t,e,n){n.d(e,"a",function(){return u});var i=n(4),o=n(1),r=n(2),a=n(41),s=n(0),c=n(3),u=function(){function t(){this.businessIds={pid:null,gid:null,sid:null},this.logger=new o.a("Sumologic"),this.logStorage=[],this.initialized=!1}return t.prototype.init=function(e,n,i,o){if(void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o=null),this.initialized)return void this.logger.warn("Sumologic instance already initialized, aborting.");this.config=e,t.version=i||t.version,this.businessIds.pid=n,this.sampling=o||t.SAMPLING_RATE,this.logSender=new a.a(this.config.collector,this.config.formattingType),this.logger.debug("Sumologic init with pid="+n+", sampling="+this.sampling),this.initialized=!0,this.unstackLogStorage()},t.prototype.isInitialized=function(){return this.initialized},t.prototype.sendMetadata=function(t,e,n){void 0===e&&(e={}),this.initialized?this.send(this.config.logLevels.METADATA,t,e,n):this.logStorage.push(["sendMetadata",arguments])},t.prototype.sendError=function(t,e,n){void 0===e&&(e={}),this.initialized?this.send(this.config.logLevels.ERROR,t,e,n):this.logStorage.push(["sendError",arguments])},t.prototype.sendWarning=function(t,e,n){void 0===e&&(e={}),this.initialized?this.send(this.config.logLevels.WARNING,t,e,n):this.logStorage.push(["sendWarning",arguments])},t.prototype.sendInfo=function(t,e,n){void 0===e&&(e={}),this.initialized?this.send(this.config.logLevels.INFO,t,e,n):this.logStorage.push(["sendInfo",arguments])},t.prototype.send=function(t,e,n,i){if(void 0===n&&(n={}),this.initialized){var o=this.getLogPrefix(this.config.prefixPattern,t,n),r=this.logSender.format(e);this.canSend(i)?(this.logger.debug("Sent to collector",o,e),this.logSender.track(r,o)):this.logger.debug("Did not send to collector (sampling)",o,e)}else this.logger.warn("Could not send logs, Sumologic instance not initialized."),this.logStorage.push(["send",arguments])},t.prototype.sendRaw=function(t,e){this.initialized?this.canSend(e)?(this.logger.debug("Sent to collector",t),this.logSender.track(t)):this.logger.debug("Did not send to collector (sampling)",t):(this.logger.warn("Could not send logs, Sumologic instance not initialized."),this.logStorage.push(["sendRaw",arguments]))},t.prototype.canSend=function(e){return void 0===e&&(e=this.sampling),t.RANDOM<=e},t.prototype.fillEmptyBusinessIds=function(t){var e=this,n=this;for(var o in t)!function(o){n.businessIds[o]=n.businessIds[o]||i.b.of(t[o]).map(parseInt).filter(s.isNumber).getOrElse(function(){return e.businessIds[o]})}(o);return this.businessIds},t.prototype.setAdType=function(e){t.adTypeByPid[this.businessIds.pid]=e},t.prototype.getAdType=function(){return t.adTypeByPid[this.businessIds.pid]||""},t.prototype.unstackLogStorage=function(){var t=this;Object(r.forEach)(this.logStorage,function(e){return t[e[0]].apply(t,e[1])}),this.logStorage=[]},t.prototype.getLogPrefix=function(e,n,i){var o={level:n,timestamp:t.version+"|"+Object(c.getFullContext)()+"|"+this.getAdType(),businessIds:"p="+(this.businessIds.pid||"")+";s="+(this.businessIds.sid||"")+";g="+(this.businessIds.gid||"")};i=Object(s.extend)(o,i);var r=e;for(var a in i)i.hasOwnProperty(a)&&(r=r.replace(a,i[a]));return r},t.SAMPLING_RATE=.05,t.RANDOM=Math.random(),t.COLLECTORS={FORMAT:"https://s8t.teads.tv/sumo/receiver/v1/http/ZaVnC4dhaV3tMuL-jxvu514sKTR1JLPJH0zZLzvxn3qMwWPdO_mBRbSGTyZgi2P4CqAJ4tfCX6IriPgecDkMFRxDm1GAGUben7xo9S92iY-h9z-o4eCwqg==",PLAYER:"https://s8t.teads.tv/sumo/receiver/v1/http/ZaVnC4dhaV2OstA92K8Xbj_kskBs5tjvp3fnz5Kd87xTE6v-AevmCgsG9SX_kqjlNgr2zKEpTQZWkuy61qzMee2njNfpDU2z7EIYjtXb-wRLLbHhGRVIOg==",ROUTER:"https://s8t.teads.tv/sumo/receiver/v1/http/ZaVnC4dhaV0yoMPXbPr1DHlBdbxeDuo3K5k3sGyLYmTOy4VGTwjLazFajGH6fqEKM4WlaPVtnZSCp4oebZS2mDiHAfUyzLxdRx_1JbayoNzbvQ26FTVmqQ==",COMMANDER:"https://s8t.teads.tv/sumo/receiver/v1/http/ZaVnC4dhaV3NNlT87PWOPYa010EVMSHpuQeovx5tDnmwMuXqzCgUX1-6HghrEdYK-kIRMgBtWNwHBcQgJnWWFbpt4fXZxqahQ-B0Sth5_7o0OO28a6Cuog=="},t.PREFIX_PATTERNS={CLASSIC:"[timestamp][businessIds][level] ",LIGHT:"businessIds>type>subtype>level>pid "},t.LOG_LEVELS={CLASSIC:{INFO:"info",METADATA:"metadata",WARNING:"warning",ERROR:"error"},LIGHT:{INFO:"info",METADATA:"meta",WARNING:"warn",ERROR:"err"}},t.CONFIGS={FORMAT:{collector:t.COLLECTORS.FORMAT,prefixPattern:t.PREFIX_PATTERNS.CLASSIC,logLevels:t.LOG_LEVELS.CLASSIC,formattingType:a.a.FORMATTING_TYPES.JSON},PLAYER:{collector:t.COLLECTORS.PLAYER,prefixPattern:t.PREFIX_PATTERNS.CLASSIC,logLevels:t.LOG_LEVELS.CLASSIC,formattingType:a.a.FORMATTING_TYPES.JSON},ROUTER:{collector:t.COLLECTORS.ROUTER,prefixPattern:t.PREFIX_PATTERNS.CLASSIC,logLevels:t.LOG_LEVELS.CLASSIC,formattingType:a.a.FORMATTING_TYPES.JSON},COMMANDER:{collector:t.COLLECTORS.COMMANDER,prefixPattern:t.PREFIX_PATTERNS.CLASSIC,logLevels:t.LOG_LEVELS.CLASSIC,formattingType:a.a.FORMATTING_TYPES.JSON}},t.version="",t.adTypeByPid={},t}()},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"get",function(){return r}),n.d(e,"setAndExpireInOneYear",function(){return a});var i=n(10),o=n(9),r=function(t){return o.c.of(function(){return document.cookie}).map(function(e){return decodeURIComponent(e.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null})},a=function(t,e){return o.c.of(function(){return document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+"; expires="+new Date(Object(i.now)()+31536e6).toUTCString()+"; path=/"})}},function(t,e,n){var i;!function(t){t[t.REMOVED=-6]="REMOVED",t[t.REMOVING=-5]="REMOVING",t[t.ERROR=-4]="ERROR",t[t.STOPPED=-3]="STOPPED",t[t.STOPPING=-2]="STOPPING",t[t.SKIPPED=-1]="SKIPPED",t[t.SKIPPING=0]="SKIPPING",t[t.READY=1]="READY",t[t.LOADING=2]="LOADING",t[t.LOADED=3]="LOADED",t[t.STARTING=5]="STARTING",t[t.STARTED=6]="STARTED",t[t.PAUSING=7]="PAUSING",t[t.PAUSED=8]="PAUSED",t[t.RESUMING=9]="RESUMING",t[t.PLAYING=10]="PLAYING",t[t.COMPLETE=11]="COMPLETE"}(i||(i={})),e.a=i},function(t,e,n){n.d(e,"b",function(){return u}),n.d(e,"a",function(){return d});var i=n(2),o=n(7),r=n(4),a=n(1),s=n(0),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(){function t(t){void 0===t&&(t="EventListenerManager"),this.listeners={},this.logger=new a.a(t)}return t.prototype.add=function(t,e,n){var i=this;s.isString(t)||this.logger.warn("First argument of EventListenerManager.add must be a string",t),this.logger.debug("Add listener to event",t),r.b.of(this.listeners[t]).orElse(function(){return r.b.of([])}).map(function(t){return t.concat([{context:e,callback:n}])}).forEach(function(e){i.listeners[t]=e}),this.addEventListener(t,e,n)},t.prototype.addMultiple=function(t,e,n){var o=this;s.isArray(t)||this.logger.warn("First argument of EventListenerManager.addMultiple must be an array of strings",t),i.forEach(t,function(t){return o.add(t,e,n)})},t.prototype.remove=function(t){var e=this;s.isString(t)||this.logger.warn("First argument of EventListenerManager.add must be a string",t),this.logger.debug("Remove listener from event",t),i.forEach(this.listeners[t],function(n){return e.removeEventListener(t,n.context,n.callback)}),this.listeners[t]=[]},t.prototype.removeMultiple=function(t){var e=this;s.isArray(t)||this.logger.warn("First argument of EventListenerManager.addMultiple must be an array of strings",t),i.forEach(t,function(t){return e.remove(t)})},t.prototype.removeAll=function(){var t=this;for(var e in this.listeners)!function(e){t.listeners.hasOwnProperty(e)&&i.forEach(t.listeners[e],function(t){return o.removeEventListener(e,t.context,t.callback)})}(e)},t}(),d=function(t){function e(){return t.call(this,"DOMEventListenerManager")||this}return c(e,t),e.prototype.addEventListener=function(t,e,n){o.addEventListener(t,e,n)},e.prototype.removeEventListener=function(t,e,n){o.removeEventListener(t,e,n)},e}(u)},function(t,e,n){function i(t,e,n){if(void 0===n&&(n=u.Standard),n===u.Worker&&c()){var i=s(t,'self.setTimeout(function(){self.postMessage("tick")}, '+e+")");return{clear:function(){i.terminate()}}}if(n===u.Precise){var o,l=d.now(),h=0,f=function(){var n=d.now()-l;n<e-(0===h?h:n/h)?(h+=1,o=r(f,p)):t()};return f(),{clear:function(){a(o)}}}var g=window.setTimeout(function(){t()},e);return{clear:function(){clearTimeout(g)}}}function o(t,e,n){if(void 0===n&&(n=!1),n&&c()){var i=s(t,'self.setInterval(function(){self.postMessage("tick")}, '+e+")");return{clear:function(){i.terminate()}}}var o=window.setInterval(function(){t()},e);return{clear:function(){clearInterval(o)}}}function r(t,e){var n=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame;return n?n(t):window.setTimeout(t,e)}function a(t){(window.cancelAnimationFrame||window.mozCancelAnimationFrame||clearTimeout)(t)}function s(t,e){var n=l.createBlob(e),i=new Worker(l.getUrl().createObjectURL(n));return i.onmessage=function(e){return t()},i}function c(){var t=l.getUrl();return!!window.Worker&&!!t&&!!t.createObjectURL}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"TIMER_MODE",function(){return u}),e.setTimeout=i,e.setInterval=o,e.requestAnimationFrame=r,e.cancelAnimationFrame=a,e.createWorker=s,e.canUseWorker=c;var u,d=n(18),l=n(31);!function(t){t[t.Standard=0]="Standard",t[t.Worker=1]="Worker",t[t.Precise=2]="Precise"}(u||(u={}));var p=1e3/60},function(t,e,n){n.d(e,"a",function(){return i}),n.d(e,"b",function(){return A}),n.d(e,"c",function(){return C});var i,o=(n(21),n(3)),r=n(10),a=n(7),s=n(5),c=n(11),u=n(1),d=n(17),l=n(0),p=n(9),h=n(13),f=n(8),g=n(2),m=n(4),v=n(52),y=n(57),b=n.n(y);!function(t){t[t.TAG=0]="TAG",t[t.FORMAT=1]="FORMAT",t[t.VAST_PLAYER=2]="VAST_PLAYER",t[t.VPAID_EVENT=3]="VPAID_EVENT"}(i||(i={}));var A;!function(t){t[t.ROUTER=0]="ROUTER",t[t.TAG=1]="TAG"}(A||(A={}));var E;!function(t){t[t.INIT=0]="INIT",t[t.SLOT=1]="SLOT",t[t.VAST_PLAYER=2]="VAST_PLAYER"}(E||(E={}));var w;!function(t){t[t.INIT=0]="INIT",t[t.VAST=1]="VAST",t[t.MEDIAFILE=2]="MEDIAFILE",t[t.VIDEO_PLAYER=3]="VIDEO_PLAYER"}(w||(w={}));var _;!function(t){t[t.VPAID_AD=0]="VPAID_AD",t[t.VERSION=1]="VERSION",t[t.AD_LOADED=2]="AD_LOADED",t[t.AD_STARTED=3]="AD_STARTED"}(_||(_={}));var C=function(){function t(){var e=this;if(this.color="blue",this.statusDetails="",this.bottomPxPosition=10,this.position=1,this.buttonHeight=0,window.teads.WIGO_DEBUG_KEY=!window.teads.WIGO_DEBUG_KEY&&window.teads.HAS_DEBUG_LOGS?"debug":window.teads.WIGO_DEBUG_KEY,this.elapsedTime=0,this.logfile={context:(Object(o.getDevice)().toString()+"-"+Object(o.getOS)().toString()+"-"+Object(o.getBrowser)().toString()).replace(/\|/g," "),url:location.href,steps:[],logs:[],timeline:[],vasts:[]},m.b.of(t.reportPromise).forEach(function(t){return t.then(function(t){return e.report=t})}),this.topWindow=Object(s.findTopWindow)(document.body),window.teads.WIGO_DEBUG_KEY)this.createDebugButton(this.color),this.recordUserActions();else{var n=function(t){var n=t.data.wigoLiveDebug;n&&n.length&&n.length>1&&e.enableWigo(n[1])};try{this.topWindow.addEventListener("message",n)}catch(t){this.topWindow=window,this.topWindow.addEventListener("message",n)}}}return t.setTotalInstances=function(e){t.totalInstances=e},t.loadAndStoreReportIfNeeded=function(e){p.c.of(function(){return top.location.search}).recover(function(){return Object(h.parse)(document.referrer).search}).map(h.parseQueryString).map(function(t){return t.teadsWigoDebug||t.teadswigodebug}).filter(function(t){return!!t}).forEach(function(n){e.sendInfo("wigo debug "+n+" on "+location.href,null,1),t.reportPromise=t.loadReport(n)})},t.loadReport=function(t){return new v.a(function(e,n){var i=Object(d.createXmlHttpRequest)();i.open("GET",Object(l.getProtocol)()+"//wigo.teads.tv/livedebug/upload/"+t+".json"),i.onload=function(){p.c.of(function(){return JSON.parse(i.response)}).recoverWith(function(t){return p.c.of(function(){return JSON.parse(i.responseText)})}).recover(function(t){throw new u.a("WIGO").error(t),new Error("report is not available from xhr response")}).match({success:e,failure:n})},i.onerror=n,i.send()})},t.prototype.enableWigo=function(t){void 0===t&&(t="enableFromAdSettings"),window.teads.WIGO_DEBUG_KEY=t,this.createDebugButton(this.color),this.recordUserActions()},t.prototype.setPlayerContainer=function(t){this.playerContainer=t},t.prototype.valid=function(e,n,i,o){if(this.addValidEvent(e,n,{store:i,type:o}),o===t.infoType.ERROR){var r="";"string"==typeof i?r=i:i.message?(i.id&&(r=i.id+" - "),r+=i.message):r=i.length?i:JSON.stringify(i),this.setStatus(!1,r)}else 3===e&&2===n?this.setStatus(!0,"AdLoaded"):3===e&&3===n&&this.setStatus(!0,"AdStarted")},t.prototype.vastEvent=function(e,n,i,o){if(this.addValidEvent(0,0,{store:{name:e,time:n,percent:i,pixels:o},type:t.infoType.VAST_EVENT}),"complete"===e)this.setStatus(!0,"AdComplete");else if("pause"===e)this.setStatus(!0,"AdPaused"),this.lastTracking="pause";else if("pause"===this.lastTracking)this.lastTracking=null;else if("progress"===e){var r="undefined"===n?"":n.split(".")[0]+"s";this.setStatus(!0,"AdPlaying: "+r)}},t.prototype.setStatus=function(t,e){void 0===e&&(e="");var n=t?"green":"red";this.button?(this.status.style.setProperty("background-color",n),this.status.style.setProperty("display","block"),this.loader.style.setProperty("display","none"),this.status.innerHTML=e):(this.color=n,this.statusDetails=e)},t.prototype.moveButton=function(e){this.bottomPxPosition=t.initialBottomPosition+(e-1)*t.bottomPxInterval,this.position=e,this.button&&this.button.style.setProperty("bottom",this.bottomPxPosition+"px")},t.prototype.followPlayer=function(){var e=Object(a.getBoundingClientRect)(this.playerContainer),n=this.topWindow.innerHeight-this.buttonHeight-(t.initialBottomPosition+(t.totalInstances-this.position)*t.bottomPxInterval),i=this.topWindow.innerHeight-e.bottom+e.height/2-this.buttonHeight/2,o=10;i<this.bottomPxPosition?i=this.bottomPxPosition:i>n?i=n:o=50,this.button.style.setProperty("bottom",i+"px"),this.button.style.setProperty("right",o+"px")},t.prototype.forceReportWithKey=function(t){window.teads.WIGO_DEBUG_KEY=t,this.sendLogsToWigo(function(){})},t.prototype.setVast=function(t,e,n){void 0===n&&(n=""),this.logfile.vasts.push({url:t,content:e,uploadedUrl:n})},t.prototype.getVastUrl=function(t){return m.b.of(this.report).map(function(t){return t.vasts}).map(function(e){return e.filter(function(e){return e.url===t})}).filter(g.isNotEmpty).map(function(t){return t[0].uploadedUrl}).getOrElse(function(){return t})},t.prototype.saveVast=function(t){"wigo.teads.tv"!==window.location.hostname&&"localhost"!==window.location.hostname||this.sendLogsToWigo(function(){},t)},t.prototype.recordUserActions=function(){var e=this;this.elapsedTime<3e5&&setTimeout(function(){var n=e.logfile.timeline[e.logfile.timeline.length-1],i=Object(a.getWindowSize)(e.topWindow),o=Object(a.getScrollLeft)(e.topWindow),r=Object(a.getScrollTop)(e.topWindow);if(!n||e.hasInteracted(n,i,o,r)){var s={time:e.elapsedTime,scrollX:o,scrollY:r,screenWidth:i.width,screenHeight:i.height,player:{top:0,height:0,left:0,width:0}};if(e.playerContainer){var c=Object(a.getBoundingClientRect)(e.playerContainer);s.player={top:c.top,height:c.height,left:c.left,width:c.width}}e.logfile.timeline.push(s)}e.elapsedTime+=t.recordUserActionsTiming,e.recordUserActions()},t.recordUserActionsTiming)},t.prototype.addValidEvent=function(t,e,n){var i={step:t,substep:e,info:n};this.logfile.steps.push(i)},t.prototype.createDebugButton=function(e){var n=this;if(window.teads.WIGO_DEBUG_KEY&&!this.button){var i=this.topWindow.document.createElement("div");i.innerHTML=t.TEMPLATE,this.button=i.firstChild,this.button.onclick=function(t){n.openWigoReport(),t.stopPropagation()},this.button.style.setProperty("bottom",this.bottomPxPosition+"px"),this.topWindow.document.body.appendChild(this.button),this.status=this.button.firstChild,this.status.style.setProperty("background-color",e),this.status.innerHTML=this.statusDetails,this.loader=this.status.nextSibling,"blue"!==this.color?(this.status.style.setProperty("display","block"),this.loader.style.setProperty("display","none")):(this.status.style.setProperty("display","none"),this.loader.style.setProperty("display","block")),this.buttonHeight=Object(a.getBoundingClientRect)(this.button).height,Object(o.isAmp)()&&teads.helper.AmpResize&&("red"===e&&(teads.helper.AmpResize.ratio=4),setTimeout(function(){return n.forceAmpOpen()},1e3))}},t.prototype.forceAmpOpen=function(){var t=this;if(!teads.helper.AmpResize.isVisible()){var e=setTimeout(function(){return t.forceAmpOpen()},1e3);teads.helper.AmpResize.open(function(){t.button.style.setProperty("display","none"),setTimeout(function(){return t.button.style.setProperty("display","block")},100),clearTimeout(e)})}},t.prototype.openWigoReport=function(){var t=this;if(window.teads.WIGO_DEBUG_KEY){this.button.onclick=function(t){t.stopPropagation()};var e=function(e){setTimeout(function(){t.button.onclick=function(e){t.openWigoReport(),e.stopPropagation()}},500)};window.open(this.sendLogsToWigo(e))}},t.prototype.sendLogsToWigo=function(e,n){void 0===n&&(n=window.teads.WIGO_DEBUG_KEY+"_"+Object(r.now)()+".json"),this.logfile.logs=u.a.getFullLogs(),this.sendVastsToWigo(this.logfile.vasts);var i=Object(d.createXmlHttpRequest)();return i.open("PUT",t.serviceUrl+"/livedebug/upload/"+n,!0),i.setRequestHeader("Content-Type","application/json; charset=utf-8"),i.onload=e,i.onerror=e,i.send(c.stringify(this.logfile,!0)),t.serviceUrl+"/livedebug?file="+n},t.prototype.sendVastsToWigo=function(e){Object(g.forEach)(Object(g.filter)(e,function(t){return!t.uploadedUrl}),function(e){var n=t.serviceUrl+"/livedebug/upload/"+Object(f.rand)(20,!1)+".xml",i=Object(d.createXmlHttpRequest)();i.open("PUT",n,!0),i.setRequestHeader("Content-Type","application/xml; charset=UTF-8"),i.send(e.content),e.uploadedUrl=n,delete e.content})},t.prototype.hasInteracted=function(t,e,n,i){return t.scrollY!==i||t.scrollX!==n||t.screenHeight!==e.height||t.screenWidth!==e.width},t.infoType={MODAL:"modal",STRING:"string",VAST_EVENT:"vastEvent",ERROR:"error"},t.bottomPxInterval=80,t.recordUserActionsTiming=1e3,t.serviceUrl=Object(l.getProtocol)()+(location.hostname.match(/(sandbox\.teads\.net|par2\.teads\.tech)$/)?"//"+location.hostname+":18091":"//wigo.teads.tv"),t.totalInstances=0,t.initialBottomPosition=10,t.TEMPLATE=b.a,t}()},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"isBase64RegExp",function(){return o}),n.d(e,"isBase64",function(){return r}),n.d(e,"encode",function(){return a}),n.d(e,"decode",function(){return s});var i=n(4),o=/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/,r=function(t){return i.b.of(o.exec(t)).existsIf(function(t){return t.length>0})},a=function(t){return i.b.of(window.btoa).map(function(e){return e(t)}).getOrElse(function(){return t})},s=function(t){return i.b.of(window.atob).map(function(e){return e(t)}).getOrElse(function(){return t})}},function(t,e,n){function i(t,e){if(void 0===e&&(e="application/javascript"),window.Blob)try{return new Blob([t],{type:e})}catch(t){}window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder;var n=new window.BlobBuilder;return n.append(t),n.getBlob()}function o(){return window.URL||window.webkitURL}Object.defineProperty(e,"__esModule",{value:!0}),e.createBlob=i,e.getUrl=o},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=(n(21),n(40)),o=n(2),r=n(30),a=n(31),s=n(38),c=n(3),u=n(25),d=n(10),l=n(7),p=n(27),h=n(16),f=n(37),g=n(35),m=n(5),v=n(11),y=n(1),b=n(41),A=n(33),E=(n.n(A),n(17)),w=n(20),_=n(53),C=n(55),S=n(8),T=n(24),O=n(28),I=n(18),P=n(34),k=n(13),L=n(42),x=n(56),R=n(0),D=n(50),N=n(29);I.init(),c.init(),Object(y.b)();var V=window.teads||{};V.AdParameterHelper=i,V.ArrayHelper=o,V.Base64=r,V.BlobHelper=a,V.Constant=s,V.Context=c,V.Cookie=u,V.Date=d,V.Dom=l,V.EventListenerManager=p.b,V.DOMEventListenerManager=p.a,V.Exception=h.a,V.VastException=h.b,V.FlashHelper=f,V.FormatException=g.a,V.HTMLHelper=m,V.JSON=v,V.LogSender=b.a,V.Logger=y.a,V.Request=E,V.Semver=w,V.SessionStore=_.a,V.SessionStoreBuilder=_.b,V.Store=C,V.StringHelper=S,V.Sumologic=T.a,V.Timer=O,V.TIMER_MODE=O.TIMER_MODE,V.Timing=I,V.URIHelper=k,V.Ua=P,V.UserDevice=L.a,V.UserStore=x.a,V.Utils=R,V.Visibility=D.a,V.Wigo=N.c,window.teads=V},function(t,e){Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,i=function(){},o=function(){return n.apply(this instanceof i?this:t,e.concat(Array.prototype.slice.call(arguments)))};return i.prototype=this.prototype,o.prototype=new i,o})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"MODEL",function(){return o}),n.d(e,"NAME",function(){return r}),n.d(e,"TYPE",function(){return a}),n.d(e,"VENDOR",function(){return s}),n.d(e,"VERSION",function(){return c}),n.d(e,"CONSOLE",function(){return u}),n.d(e,"MOBILE",function(){return d}),n.d(e,"TABLET",function(){return l}),n.d(e,"SMARTTV",function(){return p}),n.d(e,"WEARABLE",function(){return h}),n.d(e,"DESKTOP",function(){return f}),n.d(e,"util",function(){return g}),n.d(e,"mapper",function(){return m}),n.d(e,"maps",function(){return v}),n.d(e,"regexes",function(){return y});var i=n(3),o="model",r="name",a="type",s="vendor",c="version",u="console",d="mobile",l="tablet",p="smarttv",h="wearable",f="desktop",g={extend:function(t,e){var n={};for(var i in t)e[i]&&e[i].length%2==0?n[i]=e[i].concat(t[i]):n[i]=t[i];return n},has:function(t,e){return"string"==typeof t&&-1!==e.toLowerCase().indexOf(t.toLowerCase())},lowerize:function(t){return t.toLowerCase()},trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},m={rgx:function(){for(var t,e,n,o,r,a,s,c=0,u=arguments;c<u.length&&!a;){var d=u[c],l=u[c+1];if(void 0===t){t={};for(o in l)r=l[o],"object"==typeof r?t[r[0]]=void 0:t[r]=void 0}for(e=n=0;e<d.length&&!a;)if(a=d[e++].exec(Object(i.getUA)()))for(o=0;o<l.length;o++)s=a[++n],r=l[o],"object"==typeof r&&r.length>0?2===r.length?"function"==typeof r[1]?t[r[0]]=r[1].call(this,s):t[r[0]]=r[1]:3===r.length?"function"!=typeof r[1]||r[1].exec&&r[1].test?t[r[0]]=s?s.replace(r[1],r[2]):void 0:t[r[0]]=s?r[1].call(this,s,r[2]):void 0:4===r.length&&(t[r[0]]=s?r[3].call(this,s.replace(r[1],r[2])):void 0):t[r]=s||void 0;c+=2}return t},str:function(t,e){for(var n in e)if("object"==typeof e[n]&&e[n].length>0){for(var i=0;i<e[n].length;i++)if(g.has(e[n][i],t))return"?"===n?void 0:n}else if(g.has(e[n],t))return"?"===n?void 0:n;return t}},v={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2000:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},y={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[r,c],[/(opios)[\/\s]+([\w\.]+)/i],[[r,"Opera Mini"],c],[/\s(opr)\/([\w\.]+)/i],[[r,"Opera"],c],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs)\/([\w\.-]+)/i],[r,c],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[r,"IE"],c],[/(edge)\/((\d+)?[\w\.]+)/i],[r,c],[/(yabrowser)\/([\w\.]+)/i],[[r,"Yandex"],c],[/(comodo_dragon)\/([\w\.]+)/i],[[r,/_/g," "],c],[/(micromessenger)\/([\w\.]+)/i],[[r,"WeChat"],c],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[c,[r,"MIUI Browser"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[r,/(.+)/,"$1 WebView"],c],[/android.+samsungbrowser\/([\w\.]+)/i,/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)/i],[c,[r,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i,/(qqbrowser)[\/\s]?([\w\.]+)/i],[r,c],[/(dolfin)\/([\w\.]+)/i],[[r,"Dolphin"],c],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[r,"Chrome"],c],[/;fbav\/([\w\.]+);/i],[c,[r,"Facebook"]],[/fxios\/([\w\.-]+)/i],[c,[r,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[c,[r,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[c,r],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[r,[c,m.str,v.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[r,c],[/(navigator|netscape)\/([\w\.-]+)/i],[[r,"Netscape"],c],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]+)*/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[r,c]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[o,s,[a,l]],[/applecoremedia\/[\w\.]+ \((ipad)/],[o,[s,"Apple"],[a,l]],[/(apple\s{0,1}tv)/i],[[o,"Apple TV"],[s,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[s,o,[a,l]],[/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i],[o,[s,"Amazon"],[a,l]],[/(sd|kf)[0349hijorstuw]+\sbuild\/[\w\.]+.*silk\//i],[[o,m.str,v.device.amazon.model],[s,"Amazon"],[a,d]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[o,s,[a,d]],[/\((ip[honed|\s\w*]+);/i],[o,[s,"Apple"],[a,d]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|huawei|meizu|motorola|polytron)[\s_-]?([\w-]+)*/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[s,o,[a,d]],[/\(bb10;\s(\w+)/i],[o,[s,"BlackBerry"],[a,d]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[o,[s,"Asus"],[a,l]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[s,"Sony"],[o,"Xperia Tablet"],[a,l]],[/(?:sony)?(?:(?:(?:c|d)\d{4})|(?:so[-l].+))\sbuild\//i],[[s,"Sony"],[o,"Xperia Phone"],[a,d]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[s,o,[a,u]],[/android.+;\s(shield)\sbuild/i],[o,[s,"Nvidia"],[a,u]],[/(playstation\s[3portablevi]+)/i],[o,[s,"Sony"],[a,u]],[/(sprint\s(\w+))/i],[[s,m.str,v.device.sprint.vendor],[o,m.str,v.device.sprint.model],[a,d]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[s,o,[a,l]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w+)*/i,/(alcatel|geeksphone|huawei|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i],[s,[o,/_/g," "],[a,d]],[/(nexus\s9)/i],[o,[s,"HTC"],[a,l]],[/(nexus\s6p)/i],[o,[s,"Huawei"],[a,d]],[/(microsoft);\s(lumia[\s\w]+)/i],[s,o,[a,d]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[o,[s,"Microsoft"],[a,u]],[/(kin\.[onetw]{3})/i],[[o,/\./g," "],[s,"Microsoft"],[a,d]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?(:?\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w+)*/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[o,[s,"Motorola"],[a,d]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[o,[s,"Motorola"],[a,l]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[s,g.trim],[o,g.trim],[a,p]],[/hbbtv.+maple;(\d+)/i],[[o,/^/,"SmartTV"],[s,"Samsung"],[a,p]],[/\(dtv[\);].+(aquos)/i],[o,[s,"Sharp"],[a,p]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[s,"Samsung"],o,[a,l]],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,/sec-((sgh\w+))/i],[[s,"Samsung"],o,[a,d]],[/smart-tv.+(samsung)/i],[s,o,[a,p]],[/sie-(\w+)*/i],[o,[s,"Siemens"],[a,d]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]+)*/i],[[s,"Nokia"],o,[a,d]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[o,[s,"Acer"],[a,l]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[s,"LG"],o,[a,l]],[/(lg) netcast\.tv/i],[s,o,[a,p]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w+)*/i],[o,[s,"LG"],[a,d]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[o,[s,"Lenovo"],[a,l]],[/linux;.+((jolla));/i],[s,o,[a,d]],[/((pebble))app\/[\d\.]+\s/i],[s,o,[a,h]],[/android.+;\s(glass)\s\d/i],[o,[s,"Google"],[a,h]],[/android.+;\s(pixel c)\s/i],[o,[s,"Google"],[a,l]],[/android.+;\s(pixel xl|pixel)\s/i],[o,[s,"Google"],[a,d]],[/android.+(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d\w)?)\s+build/i],[[o,/_/g," "],[s,"Xiaomi"],[a,d]],[/android.+a000(1)\s+build/i],[o,[s,"OnePlus"],[a,d]],[/\s(tablet)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[a,g.lowerize],s,o]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[r,c],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s]+\w)*/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[r,[c,m.str,v.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[r,"Windows"],[c,m.str,v.os.windows.version]],[/\((bb)(10);/i],[[r,"BlackBerry"],c],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i,/linux;.+(sailfish);/i],[r,c],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[[r,"Symbian"],c],[/\((series40);/i],[r],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[r,"Firefox OS"],c],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],[r,c],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[r,"Chromium OS"],c],[/(sunos)\s?([\w\.]+\d)*/i],[[r,"Solaris"],c],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],[r,c],[/(ip[honead]+)(?:.*os\s*([\w]+)*\slike\smac|;\sopera)/i],[[r,"iOS"],[c,/_/g,"."]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[[r,"Mac OS"],[c,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i,/(haiku)\s(\w+)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]+)*/i],[r,c]]}},function(t,e,n){n.d(e,"a",function(){return r});var i=n(16),o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.INCOMPLETE_OBJECT={id:1,message:"Ad configuration is missing settings or placement"},e.OPTION_CHECKVALUE_MISSING={id:2,message:"checkValue function is missing"},e.OPTION_THRESHOLD_MISSING={id:3,message:"Option threshold is required"},e.OPTION_PARENTWINDOW_INVALID={id:4,message:"Option parentWindow is required"},e.OPTION_VAST_INVALID={id:5,message:"Option vast has to contain type and content"},e.MULTIPLE_PAGE_PROCESS={id:6,message:"Cannot process more than 1 page"},e.OPTION_PID_INVALID={id:7,message:"Option Pid must be a positive number"},e.OPTION_FORMAT_INVALID={id:8,message:"Option Format must be a known string"},e.LOADING_MEDIAFILE={id:9,message:"Error when loading mediafile"},e.RAS_REQUEST={id:10,message:"RAS request error"},e.RAS_TIMEOUT={id:11,message:"RAS request timeout"},e.RAS_CUSTOM_TIMEOUT={id:12,message:"RAS request custom timeout"},e.RAS_RESPONSE={id:13,message:"RAS response error"},e.RAS_RESPONSE_ADS_NOT_ARRAY={id:14,message:"RAS response ads is not an array"},e.EVENT_CALLBACK={id:15,message:"Callback threw an error"},e.FILTER_FUNCTION={id:16,message:"The filter function threw an error"},e.OPTION_NAME_REQUIRED={id:17,message:"Name must be a valid string"},e}(i.a)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.AdVideoMetadata="AdVideoMetadata",t}();e.default=i},function(t,e,n){function i(){if(a.isMobile()||a.isTablet())return!1;var t=r().map(function(t){return parseInt(t,10)});return t[0]>=s[0]&&t[1]>=s[1]}function o(t){return t>=parseInt(r()[0],10)}function r(){try{var t=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");try{t.AllowScriptAccess="always"}catch(t){return["6","0","0"]}return new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1].split(",")}catch(t){try{if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)return(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1].split(",")}catch(t){}}return["0","0","0"]}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"requiredVersion",function(){return s}),e.hasFlash=i,e.hasFlashVersion=o,e.getFlashVersion=r;var a=n(3),s=[10,0]},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"base64TransparentPixel",function(){return o}),n.d(e,"TrackingMacro",function(){return i});var i,o="data:image/gif;base64,R0lGODlhAQABAAAAACwAAAAAAQABAAA=";!function(t){t.CONTENTPLAYHEAD="[CONTENTPLAYHEAD]",t.CACHEBUSTING="[CACHEBUSTING]",t.ERRORCODE="[ERRORCODE]",t.ASSETURI="[ASSETURI]",t.MEDIAFILETYPE="[MEDIAFILETYPE]",t.VIEWABILITY="[VIEWABILITY]",t.DEVICEID="[DEVICEID]",t.BUNDLEID="[BUNDLEID]",t.LIMIT_TRACKING="[LIMIT_TRACKING]",t.PAGEID="[pageId]",t.PID="[pid]",t.SLOT_TYPE="[slotType]",t.ENV="[env]",t.IMPRESSIONID="[impressionId]",t.HEADER_BIDDING_PROVIDER="[headerBiddingProvider]",t.GDPR_STATUS="[gdpr_status]",t.GDPR_CONSENT="[gdpr_consent]",t.GDPR_REASON="[gdpr_reason]",t.USERID="[userId]",t.OS="[os]",t.GID="[insertionId]"}(i||(i={}))},function(t,e,n){function i(t,e,n){t.style[e]=n,e=o(e),t.style["Moz"+e]=n,t.style["webkit"+e]=n,t.style["O"+e]=n,t.style["ms"+e]=n}function o(t){return t.charAt(0).toUpperCase()+t.slice(1)}function r(){return window.performance?window.performance.now():Date.now()}function a(t,e){for(var n=0,i=t.length;n<i;n++)t[n]=e}function s(t){return t<1?parseFloat(t.toString().substr(0,4)):Math.round(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.applyVendorProperties=i,e.capitalize=o,e.now=r,e.fillArray=a,e.formatBenchTime=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"decode",function(){return c}),n.d(e,"decodeAdParameters",function(){return p}),n.d(e,"jsonParse",function(){return h});var i=n(4),o=n(9),r=n(0),a=n(30),s=n(11),c=function(t){return i.b.of(t).filter(r.isObject).match({some:u,none:d(t)})},u=function(t){return r.isString(t.AdParameters)?l(t.AdParameters):Object(o.b)(t)},d=function(t){return function(){return i.b.of(t).filter(r.isString).match({some:l,none:function(){return Object(o.a)(new Error("adParameters is neither an object or string: "+t))}})}},l=function(t){return h(p(t,a.isBase64,a.decode,decodeURIComponent),s.parse)},p=function(t,e,n,i){return e(t)?n(t):0===t.indexOf("%7B")?i(t):t},h=function(t,e){return o.c.of(function(){return e(t)}).recover(function(){throw new Error("Unable to JSON.parse adParameters string: "+t)})}},function(t,e,n){n.d(e,"a",function(){return o});var i=n(0),o=function(){function t(e,n){this.collectorUrl=e,this.collectorUrl+=this.collectorUrl.indexOf("?")<0?"?":"&",n===t.FORMATTING_TYPES.PIPE_SEPARATE?this.format=t.pipeSeparateData:this.format=t.stringifyData}return t.stringify=function(t){var e;try{e=window.JSON.stringify(t)}catch(n){t.toString&&(e=t.toString())}return e},t.stringifyData=function(e){if(i.isNumber(e)||i.isBoolean(e)||i.isString(e))return String(e);if(e.length)for(var n in e)i.isFunction(e[n])?e.hasOwnProperty(n)&&(e[n]=e[n].toString()):i.isObject(e[n])&&e.hasOwnProperty(n)&&(e[n]=t.stringify(e[n]));else e=t.stringify(e);return e.toString?e.toString():e},t.pipeSeparateData=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(t[n].toString());return e.join("|")},t.prototype.track=function(t,e){void 0===e&&(e="");try{var n=this.collectorUrl+encodeURIComponent(e)+encodeURIComponent(t);(new Image).src=n}catch(t){}},t.FORMATTING_TYPES={JSON:"JSON",PIPE_SEPARATE:"PIPE_SEPARATE"},t}()},function(t,e,n){n.d(e,"a",function(){return i});var i=function(){function t(){}return t.prototype.fill=function(t){for(var e in t)void 0!==this[e]&&null!==this[e]||(this[e]=t[e])},t.prototype.isSDKBrowser=function(){return"SDK"===this.browser},t}()},function(t,e,n){n.d(e,"a",function(){return g}),n.d(e,"b",function(){return m});var i=n(15),o=n(24),r=n(3),a=n(5),s=n(4),c=n(20),u=n(12),d=n(79),l=n(80),p=n(81),h=n(82),f=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),g=g||{},m=function(t){function e(e,n,i,f){var g=t.call(this)||this;g.meta=n,g.player=f,g.sumologic=new o.a;var m=Object(a.findTopWindow)(document.body),v=m===window.top,y=(Object(r.isSafari)()||Object(r.isFacebookWebview)())&&c.isGreaterOrEqual(Object(r.getIosVersion)(),"10");return g.sumologic.init(o.a.CONFIGS.PLAYER,s.b.of(g.player.parameters.pid).orNull()),v&&g.meta.mp4&&("HTML5"===g.player.parameters.type||Object(r.isIpad)()&&c.isGreaterOrEqual(Object(r.getIosVersion)(),"9.2")&&"CANVAS"!==g.player.parameters.type)?(g.api=new h.a(e,n,f,m),g.sumologic.sendInfo("canvas video mp4")):v&&g.meta.mp4&&"CANVAS"!==g.player.parameters.type&&(c.isGreaterThan(Object(r.getIosVersion)(),"9.1")&&c.isLowerThan(Object(r.getIosVersion)(),"10")||y)?(g.api=new d.a(e,n,f,m),g.sumologic.sendInfo("canvas video mp4CT")):g.meta.tv?(g.api=new l.a(e,n,i,f),g.sumologic.sendInfo("canvas video tv")):(g.api=new p.a(e,n,i,f),g.sumologic.sendInfo("canvas video mpeg")),g.api.listen(u.a.CAN_PLAY,function(){return g.dispatch(u.a.CAN_PLAY)}),g.api.listen(u.a.LOADED,function(){return g.dispatch(u.a.LOADED)}),g.api.listen(u.a.STALLED,function(){return g.dispatch(u.a.STALLED)}),g.api.listen(u.a.RESUME_AFTER_STALLED,function(){return g.dispatch(u.a.RESUME_AFTER_STALLED)}),g.api.listen(u.a.TIME_UPDATE,function(){return g.dispatch(u.a.TIME_UPDATE)}),g.api.listen(u.a.ENDED,function(){return g.dispatch(u.a.ENDED)}),g.api.listen(u.a.BENCH_FPS,function(t){return g.dispatch(u.a.BENCH_FPS,t)}),g}return f(e,t),e.prototype.canplay=function(){return this.api.canplay()},e.prototype.play=function(){this.api.play()},e.prototype.pause=function(){this.api.pause()},e.prototype.getCurrentTime=function(){return this.api.getCurrentTime()},e.prototype.setCurrentTime=function(t){return this.api.setCurrentTime(t)},Object.defineProperty(e.prototype,"duration",{get:function(){return this.api.duration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this.api.state},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"videoFrames",{get:function(){return this.api.videoFrames},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"averageDecodingTime",{get:function(){return this.api.averageDecodingTime},enumerable:!0,configurable:!0}),e.prototype.cleanStallTimeout=function(){this.api.cleanStallTimeout()},e}(i.a)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"SLIDER_WHITELIST",function(){return i}),n.d(e,"FORCE_EXPAND_ANIMATION_LIST",function(){return o}),n.d(e,"RESPONSIVE",function(){return r}),n.d(e,"DBM_UNIQUE_ID_PATTERN",function(){return a}),n.d(e,"FORMAT",function(){return s}),n.d(e,"SLOT_TYPE",function(){return c}),n.d(e,"TRACKING",function(){return u}),n.d(e,"TRACKING_LOG",function(){return d}),n.d(e,"COMSCORE_URL",function(){return l}),n.d(e,"DEFAULT_VIDEO_SIZE_RATIO",function(){return p}),n.d(e,"MIN_Z_INDEX_VALUE",function(){return h}),n.d(e,"MAX_Z_INDEX_VALUE",function(){return f}),n.d(e,"FACEBOOK_IA",function(){return g}),n.d(e,"INTERNAL_PASSBACK_NO_PASSBACK",function(){return m}),n.d(e,"iasConnectionIds",function(){return v}),n.d(e,"doubleVerifyConnectionIds",function(){return y}),n.d(e,"comsScoreConnectionIds",function(){return b}),n.d(e,"HEADER_BIDDING_PROVIDERS",function(){return A}),n.d(e,"HEADER_BIDDING_DEBUG",function(){return E});var i=window.SLIDER_WHITELIST||/^(25030|27511|27935|28418|29824|30767|35627|35655|35781|35782|35878|35883|35892|36851|36886|36909|37252|37270|37431|37432|37440|37450|37513|37648|37652|37655|37656|37664|37666|37676|37678|37703|37704|37790|37791|37811|37812|37814|37921|37925|37926|37928|37932|37955|37958|37959|37967|38033|38037|38038|38039|38043|38044|38049|38050|38051|38052|38053|38054|38055|38056|38057|38059|38219|38221|38297|38299|38309|38310|38328|38329|38331|38343|38424|38686|38908|38983|38984|39456|39457|39955|40236|40237|40239|40249|40250|40427|41206|41207|41259|41391|41660|42628|42712|42811|42812|43215|43260|43323|43701|43702|44019|44020|44223|44328|44329|44330|44333|44334|44495|44496|45036|45037|45040|45041|45058|45119|45125|45572|45573|45575|45681|45872|46012|46053|46056|46058|46066|46274|46374|46407|46426|46435|46514|46819|47135|47136|47160|47161|47165|47443|47535|47575|47576|47577|47578|47579|47580|47587|47588|47589|47590|47591|47592|47593|47594|47595|47596|47597|47598|47600|47924|47925|47926|47930|47931|47932|47956|48034|48408|48409|48431|48820|48822|48824|48826|48830|48967|49069|49677|49678|50244|50245|50487|50797|50800|51583|51936|52085|52186|52288|52289|52290|52432|52433|52437|52866|52867|52894|52897|53252|53325|53892|53948|54108|54125|54561|55060|55061|55062|55097|55160|55229|55231|55233|55235|55819|55973|55975|55992|56493|56664|56665|58062|59565|60075|60294|60298|60612|61013|61018|61180|61334|61335|61409|61502|61503|61522|61524|61525|61561|61570|61762|61797|62102|62143|62242|62245|62267|62341|62385|62391|62586|62587|62619|62622|62650|62730|62749|62909|62910|62948|62963|63068|63069|63080|63081|63083|63093|63201|63203|63204|63205|63206|63207|63208|63209|63210|63280|63289|63572|63574|63757|63784|63786|63788|63790|63792|63794|63796|63798|63800|63802|63804|63859|64010|64018|64224|64339|64469|64481|64482|64534|64650|64836|64837|64999|65000|65034|65043|65046|65257|65464|65599|65765|65840|65853|65865|65978|65988|66226|66337|66338|66339|66371|66537|66538|66706|67325|67335|67713)$/,o=/^(19503|19593|19742|20405|20406|20993|21076|21077|21918|22041|22268|22313|22560|23278|23388|23861|23862|24283|24642|24666|24857|24858|24991|24992|24993|24997|24998|24999|25000|25001|25058|25088|25129|25897|26007|26071|26072|26073|26074|26075|26076|26077|26078|26079|26248|26318|26403|26512|26547|26631|26632|26942|27348|27593|27696|28019|28222|28320|28321|28361|28419|28588|28589|28626|28627|28647|28687|28854|29017|29018|29019|29020|29399|29401|29402|29404|29715|29757|29758|29929|29930|29931|30964|30967|31752|31753|31760|31761|31762|31777|31778|31779|32105|32106|32107|32281|32282|32283|32284|32329|32330|32557|32601|32674|32675|32676|32677|33032|33033|33110|33366|33508|33521|33522|33523|33524|33525|33526|33538|33703|33704|33705|33706|33707|33708|33870|33896|33897|33898|33899|34364|34441|34574|34575|34709|34710|34711|34712|34713|34714|34804|34805|34806|34807|34894|34895|35173|35326|35327|35365|35636|35637|35982|35983|35985|35986|36125|36136|36184|36185|36186|36187|36188|36189|36190|36191|36192|36461|36462|36463|36464|36465|36466|36467|36468|36469|36470|36471|36472|36473|36476|36477|36478|36479|36480|36481|36482|36483|36484|36742|36743|36744|36745|36746|37071|37072|37073|37280|37950|37951|38197|38198|38199|38388|38762|38763|38764|38765|38766|39893|39969|40075|41033|41034|41035|41036|41043|41044|41045|41303|41493|41494|41910|41911|41912|41913|41914|41915|42084|42270|42271|42272|42273|42274|42275|42510|42511|42512|42513|42710|42711|42780|42781|42838|42839|42931|43102|43103|43104|43105|43106|43107|43112|43113|43356|43654|43658|43763|43765|43862|43863|43993|43994|43995|44005|44006|44322|44323|44404|44405|44588|45253|45254|45255|45256|45257|45258|45259|45260|45261|45262|45263|45264|45265|45266|45267|45268|45269|45270|45271|45272|45273|45274|45275|45277|45278|45279|45280|45281|45282|45283|45284|45285|45286|45287|45288|45289|45290|45291|45292|45293|45294|45295|45296|45297|45298|45299|45300|45351|45352|45353|45354|45355|45356|45357|45358|45359|45360|45361|45362|45363|45364|45365|45366|45367|45368|45369|45370|45371|45372|45373|45374|45375|45376|45377|45378|45379|45380|45381|45382|45383|45384|45385|45386|45387|45388|45389|45424|45425|45426|45427|45428|45429|45430|45431|45432|45481|45482|45483|45519|45520|45521|45522|45641|45642|45643|45735|45879|45892|45897|45949|45950|45951|45952|45954|45955|45961|45963|45964|46136|46137|46138|46244|46245|46246|46351|46379|46380|46383|46384|46385|46386|46447|46609|46610|46611|46612|46613|46614|46615|46616|46617|46618|46619|46620|46621|46622|46623|46624|46625|46626|46627|46628|46629|46630|46631|46632|46633|46634|46635|46636|46637|46638|46639|46640|46641|46642|46643|46644|46695|46696|46697|46698|46699|46700|46701|46703|46704|46705|46722|46723|46724|46726|46727|46728|46729|46730|46731|46732|46733|46734|46736|46737|46738|46739|46740|46741|46765|46766|46767|46768|46769|46770|46999|47000|47001|47002|47003|47004|47027|47028|47029|47074|47075|47076|47077|47078|47166|47167|47168|47169|47170|47171|47172|47173|47226|47261|47262|47263|47264|47440|47525|47526|47527|47620|47621|47677|47678|47679|47680|47681|47682|47683|47684|47685|47697|47698|47737|47738|47739|47740|47741|47742|47743|47744|47745|47746|47747|47748|47751|47752|47753|47754|47755|47756|47814|47815|47831|47841|47842|47946|47947|47948|47949|47950|47951|47952|47953|47979|47988|48088|48089|48091|48134|48135|48136|48137|48138|48139|48140|48141|48142|48143|48144|48145|48234|48235|48368|48379|48403|48404|48405|48466|48467|48468|48470|48510|48511|48512|48525|48552|48555|48558|48559|48596|48597|48598|48599|48600|48601|48602|48612|48667|48671|48673|48674|48675|48676|48677|48678|48679|48680|48681|48682|48683|48684|48685|48686|48687|48688|48689|48690|48691|48692|48693|48694|48695|48696|48895|48896|48897|48898|48906|48965|49101|49195|49247|49257|49260|49262|49264|49302|49303|49316|49317|49318|49319|49333|49334|49335|49359|49405|49431|49792|49798|49799|50062|50081|50167|50286|50287|50382|50392|50395|50396|50397|50467|50468|50469|50560|50561|50563|50564|50752|50753|51020|51073|51074|51123|51124|51286|51295|51296|51300|51308|51388|51651|51978|52057|52058|52059|52060|52061|52067|52098|52165|52169|52211|52240|52245|52248|52253|52538|52676|52677|52679|52680|52691|52708|52709|52711|52797|52801|52802|52829|52928|52979|53055|53056|53057|53058|53059|53060|53061|53062|53063|53064|53065|53066|53067|53257|53323|53324|53456|53457|53458|53814|53815|53816|53817|53818|53819|53820|53821|53906|53911|53939|53941|53942|54004|54005|54029|54034|54042|54147|54148|54149|54150|54151|54303|54304|54305|54310|54311|54422|54425|54426|54428|54429|54433|54548|54580|54581|54594|54639|54653|54654|54655|54656|54657|54658|54659|54660|54661|54728|54729|54834|54908|54970|54971|55034|55109|55165|55180|55184|55338|55339|55340|55414|55415|55416|55417|55419|55505|55506|55507|55508|55513|55514|55652|55653|55654|55655|55656|55657|55956|56182|56183|56184|56241|56242|56244|56444|56532|56536|56537|56538|56560|56561|56562|56563|56564|56565|56568|56570|56571|56572|56573|56574|56576|56579|56587|56593|56594|56596|56675|56676|56677|56678|56679|56680|56681|56682|56683|56684|56685|56688|56689|56690|56691|56692|56693|56694|56695|56696|56697|56698|56699|56700|56701|56702|56703|56704|56705|56781|56782|56783|56927|56928|56940|57247|57248|57249|57370|57461|57463|57611|58148|58149|58150|58151|58153|58154|58211|58305|58321|58322|58371|58389|58440|58473|58483|58933|58982|59013|59014|59019|59241|59284|59290|59378|59379|59579|59580|59956|59957|59958|59959|59961|59962|59965|59967|59999|60139|60140|60141|60142|60143|60144|60145|60146|60147|61067|61068|61069|61070|61199|61200|61205|61206|61363|61364|61381|61508|61779|61780|61781|61782|61783|61784|61785|61786|61787|61788|61789|61790|61819|61855|61856|61857|62302|62303|62354|62355|62356|62357|62358|62359|62362|62363|62364|62654|62656|62658|62659|62881|63215|63299|63300|63303|63304|63306|63307|63366|63367|63381|63382|63385|63386|63538|63539|63554|63829|63830|63831|63835|63969|63970|63972|64061|64062|64063|64064|64065|64066|64068|64069|64155|64156|64157|64158|64159|64247|64248|64249|64250|64251|64349|64350|64351|64352|64353|64354|64355|64356|64427|64433|64434|64548|64549|64550|64551|64552|64561|64562|64563|64564|64737|64738|64825|64826|64828|64829|64830|64971|64972|65222|65223|65226|65227|65228|65229|65230|65369|65370|65373|65374|65375|65376|65611|65612|65613|65614|65663|65808|65875|65876|65877|65878|65879|65880|65881|65882|65884|65885|65886|65887|65888|65889|65890|65891|65893|65895|65896|65897|65898|65900|65901|65902|65903|65904|65905|65906|65907|66078|66079|66080|66081|66082|66083|66084|66085|66086|66087|66088|66089|66382|66383|66384|66385|66386|66387|66662|66663|66666|66667|66668|66719|66975|66976|67222|67223|67224|67225|67281|67282|67404|67405|67406|67407|67410|67411|67412|67413|67543|67544|67545|67546|67547|67548|67549|67550|67551|67635|67636|67649|67650|67744|67745|67746|67747|67748|67749|68000|68001|68004|68005|68029|68031|68032|68033|68211|68214|68254|68255|68256|68257|68258|68259|68260|68261|68262|68263|68264|68265|68266|68267|68268|68269|68270|68271|68272|68414|68415|68416|68417|68419|68436|68437|68438|68440|68592|68593|68594|68595|68596|68597|68598|68599|68601|68602)$/,r={xs:{className:"xs-screen",size:480},sm:{className:"sm-screen",size:640}},a=new RegExp("/videoplayback/id/(\\w+)/itag/"),s={inread:"inread",inboard:"inboard"},c={native:"native",corner:"corner",top:"top"},u={placementCall:"placementCall",fallback:{integration:"passback-integration",noAd:"passback-noAd"},noSlot:{selector:"noSlot-selector",hbSelector:"hbNoSlot-selector",filter:"noSlot-filter",avoid:"noSlot-avoid",size:"noSlot-size",btf:"noSlot-BTF",minimum:"noSlot-minimum",minimumBelow:"noSlot-minimumBelow",content:"noSlot-content",position:"noSlot-position",videoArticle:"noSlot-videoArticle",videoSlot:"noSlot-videoSlot",imageSlot:"noSlot-imageSlot",safeFrame:"noSlot-safeFrame"},incompatibility:{browser:"incompatibility-browser",context:"incompatibility-context",format:"incompatibility-format",video:"incompatibility-video"},placementCapping:"placementCapping",slotAvailable:"slotAvailable",hbSlotAvailable:"hbSlotAvailable",adNotAvailable:{networkError:"adNotAvailable-networkError",serverError:"adNotAvailable-serverError"},adAvailable:{error:{parseTimeout:"adAvailable-error-parseTimeout",badResponse:"adAvailable-error-badResponse",vast:"adAvailable-error-vast-{code}",settings:"adAvailable-error-settings",sameAd:"adAvailable-error-sameAd"},success:"adAvailable-success"},adCall:"adCall",noAd:{serverError:"noAd-serverError",networkError:"noAd-networkError",notFilled:"noAd-notFilled",vastError:"noAd-vastError-{code}",parseTimeout:"noAd-parseTimeout",settingsError:"noAd-settingsError",badResponse:"noAd-badResponse",sameAd:"noAd-sameAd",ivt:{doubleVerify:"noAd-ivt-doubleVerify",tag:"noAd-ivt-tag"},blockedSite:{doubleVerify:"noAd-blockedSite-doubleVerify",teads:"noAd-blockedSite-teads"}},ad:"ad",impression:"impression",openExpand:"open-expand",open:"open",visible:"visible",click:"click",ivt:{doubleVerify:"IVT DoubleVerify",tag:"IVT Tag"},blockedSite:{doubleVerify:"BlockedSite DoubleVerify",teads:"Teads Blacklist"}},d={placementCall:"f11",noSlot:"f21",incompatibility:"f22",slotAvailable:"f24",adNotAvailable:"f31","adAvailable-error":"f32","adAvailable-success":"f33",adCall:"f41",noAd:"f51",ad:"f52"},l={V1:{"http:":"http://b.scorecardresearch.com/p?C1=1&C2=17198971&C5=01&cs_ucfr=1","https:":"https://sb.scorecardresearch.com/p?C1=1&C2=17198971&C5=01&cs_ucfr=1"},V2:{"http:":"http://b.scorecardresearch.com/p?c1=2&c2=17198971&ns_ap_sv=2.1511.10&ns_type=hidden&ns_st_it=a&ns_st_sv=4.0.0&ns_st_ad=1&ns_st_sq=1&ns_st_id=[impressionId]&ns_st_ec=1&ns_st_cn=1&ns_st_ev=play&ns_st_ct=va00&ns_st_cl=0&ns_st_pt=0&c3=*null&c4=*null&c6=*null&ns_ts=[CACHEBUSTING]&cs_ucfr=1","https:":"https://sb.scorecardresearch.com/p?c1=2&c2=17198971&ns_ap_sv=2.1511.10&ns_type=hidden&ns_st_it=a&ns_st_sv=4.0.0&ns_st_ad=1&ns_st_sq=1&ns_st_id=[impressionId]&ns_st_ec=1&ns_st_cn=1&ns_st_ev=play&ns_st_ct=va00&ns_st_cl=0&ns_st_pt=0&c3=*null&c4=*null&c6=*null&ns_ts=[CACHEBUSTING]&cs_ucfr=1"},V2SDK:"https://sb.scorecardresearch.com/p?c1=19&c2=17198971&c12=[userId]&ns_ap_pn=[os]&ns_ap_device=[device]&ns_ap_sv=2.1602.11&ns_type=hidden&ns_st_it=a&ns_st_sv=4.0.0&ns_st_ad=1&ns_st_sq=1&ns_st_id=[impressionId]&ns_st_ec=1&ns_st_cn=1&ns_st_ev=play&ns_st_ct=va00&ns_st_cl=0&ns_st_pt=0&c3=*null&c4=*null&c6=*null&ns_ts=[CACHEBUSTING]&cs_ucfr=1"},p=16/9,h=0,f=2147483647,g={exitsViewport:"exits_viewport",entersViewport:"enters_viewport",centerExitsViewport:"center_exits_viewport",centerEntersViewport:"center_enters_viewport"},m="teads_internal_passback_no_passback",v=[44476,47237,53517],y=[44477,47236,53518],b=[44481,47234,53519],A=["prebid","debugFormat"],E="debugFormat"},function(t,e,n){var i;!function(t){t[t.SWF=1]="SWF",t[t.JS=2]="JS",t[t.POSTMESSAGE=3]="POSTMESSAGE"}(i||(i={})),e.a=i},function(t,e,n){function i(t){return Number(t.handshakeVersion("2.0"))>=2}function o(t,e){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=n[0];switch(e){case a.a.AdClickThru:o={url:n[0],id:n[1],playerHandles:n[2]};break;case a.a.AdError:o={message:n[0],id:n[1]}}t({type:e,data:o})}}function r(t,e){switch(t){case"initAd":if(e>=s.a.LOADING)throw"VPAID already initalized, cannot call initAd twice";break;case"startAd":if(e<s.a.LOADED)throw"VPAID not started, use initAd, and wait for AdLoaded event before call startAd method";if(e>=s.a.STARTING)throw"Ad already started, cannot call startAd twice"}}Object.defineProperty(e,"__esModule",{value:!0}),e.isVPAID2=i,e.createVPAIDEventCallback=o,e.checkVpaidStatus=r;var a=n(6),s=n(26)},function(t,e,n){var i=n(2),o=n(6),r=n(36),a=function(){function t(){this.listeners={},this.listenersScope={}}return t.prototype.subscribe=function(t,e,n){this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t),this.listenersScope[e]=this.listenersScope[e]||[],this.listenersScope[e].push(n||null)},t.prototype.unsubscribe=function(t,e){if(this.listeners[e]){var n=Object(i.indexOf)(this.listeners[e],t);n>=0&&(this.listeners[e][n]=function(){})}},t.prototype.clearListeners=function(){this.listeners={},this.listenersScope={}},t.prototype.handleEvent=function(t,e){for(var n=this.listeners[t.type]||[],i=0,a=n.length;i<a;i++)try{var s=[];if(t.data)switch(t.type){case o.a.AdClickThru:s=[t.data.url,t.data.id,!!t.data.playerHandles];break;case o.a.AdLog:case o.a.AdError:s="string"==typeof t.data?[t.data,null]:"object"==typeof t.data&&t.data.message?[t.data.message,t.data.id]:[String(t.data),null];break;case o.a.AdInteraction:s=[t.data.id];break;case r.default.AdVideoMetadata:s=[t.data]}n[i].apply(this.listenersScope[t.type][i],s)}catch(n){if(e)throw"failed to log error on callback: "+t.data;this.handleEvent({type:o.a.AdLog,data:"Callback #"+i+" on event "+t.type+" throws an exception: "+n},!0)}},t}();e.a=a},function(t,e,n){function i(t){r=t}function o(t){u=t}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"initAd",function(){return r}),e.setInitAd=i,n.d(e,"startAd",function(){return a}),n.d(e,"stopAd",function(){return s}),n.d(e,"skipAd",function(){return c}),n.d(e,"loadVpaid",function(){return u}),e.setLoadVpaid=o,n.d(e,"postMessageAPI",function(){return d}),n.d(e,"destroy",function(){return l});var r=8e3,a=8e3,s=1e3,c=1e3,u=1e4,d=5e3,l=500},function(t,e){function n(t,e){var n=t[1]||"",o=t[3];if(!o)return n;if(e&&"function"==typeof btoa){var r=i(o);return[n].concat(o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"})).concat([r]).join("\n")}return[n].join("\n")}function i(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i=n(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},o=0;o<this.length;o++){var r=this[o][0];"number"==typeof r&&(i[r]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&i[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(t,e,n){n.d(e,"a",function(){return u});var i=n(4),o=n(2),r=n(5),a=n(3),s=n(27),c=n(1),u=function(){function t(e,n,i){var o=this;if(this.win=e,this.onVisible=n,this.onHidden=i,this.prefixes=["","webkit","ms","moz"],this.props=["VisibilityState","visibilitychange","Hidden"],this.isInitialState=!0,this.enabled=!0,this.isAmpVisible=!0,this.eventTimeout=null,this.intervalIABSafeFrame=null,this.intervalFocus=null,this.windows=[],t.logger.debug("init"),this.eventListenerManager=new s.a,a.isAmp()){t.logger.debug("Init AMP visibility plugin");var r=function(e){window.context.hidden&&o.isAmpVisible?(t.logger.debug("AMP visibility, window is hidden, call hidden callback"),o.isAmpVisible=!1,o.onHiddenCallback()):window.context.hidden||o.isAmpVisible||(t.logger.debug("AMP visibility, window is visible, call visibile callback"),o.isAmpVisible=!0,o.onVisibleCallback())};return void this.eventListenerManager.add("amp:visibilitychange",window,r)}if(a.isIABSafeFrame()){var c,u=!0;return void(this.intervalIABSafeFrame=setInterval(function(){c=o.isVisible(),c&&!u?(u=!0,o.onVisibleCallback()):!c&&u&&(u=!1,o.onHiddenCallback())},500))}this.prefix=this.getPrefix(),this.addWindow(this.win),this.visibleWindow=this.win}return t.listenWindow=function(e,n,i){return new t(e,n,i)},t.prototype.destroy=function(){var e=this;try{if(a.isAmp())return void this.eventListenerManager.remove("amp:visibilitychange");a.isIABSafeFrame()&&clearInterval(this.intervalIABSafeFrame),clearInterval(this.intervalFocus),this.eventListenerManager.removeAll(),o.forEach(this.windows,function(t){t.focus(),e.removeWindow(t,!1)}),t.logger.debug("destroy")}catch(e){t.logger.error("Visibility could not be fully destroyed.",e)}finally{this.disable(),this.windows=[]}},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.isEnabled=function(){return this.enabled},t.prototype.isVisible=function(){return a.isAmp()?this.isAmpVisible:a.isIABSafeFrame()?window.$sf.ext.winHasFocus?window.$sf.ext.winHasFocus():!document.hidden:!!this.visibleWindow},t.prototype.addWindow=function(t){var e=this;-1===o.indexOf(this.windows,t)&&(this.windows.push(t),this.addListener(t,function(){return e.setWindowVisible(t)},function(){return e.setWindowHidden(t)}))},t.prototype.removeWindow=function(t,e,n){if(void 0===e&&(e=!0),void 0===n&&(n=!0),o.indexOf(this.windows,t)>-1){var i=this.isVisible();n&&this.windows.splice(o.indexOf(this.windows,t),1),e&&i&&!this.isVisible()&&this.onHiddenCallback()}},t.prototype.getWindows=function(){return this.windows},t.prototype.addListener=function(e,n,i){var a=this;try{var s=e.document;if(this.prefixesSupported(s)){var c=function(){s[a.getPrefixedMethodName(a.props[2])]?i():n()};this.eventListenerManager.add(this.getPrefixedMethodName(this.props[1]),s,c)}else if(s.hasFocus)t.logger.debug("Add listener on hasFocus method with an interval of 100ms"),clearInterval(this.intervalFocus),this.intervalFocus=setInterval(function(){s.hasFocus()?n():i()},100);else{var u=r.findAllWindows(this.win.document.body,!0);o.forEach(u,function(t){a.addWindow(t)}),t.logger.debug("Add listener on focus and blur events");var d=function(e){t.logger.debug("Exec callback visible"),n()},l=function(n){t.logger.debug("Exec callback hidden"),e===n.target&&i()};e.tt_visibility_visible=d,e.tt_visibility_hidden=l,e.hasOwnProperty("onpageshow")&&(this.eventListenerManager.add("pageshow",e,function(e){t.logger.debug("pageshow event received"),d()}),this.eventListenerManager.add("pagehide",e,function(e){t.logger.debug("pagehide event received"),l(e)})),this.eventListenerManager.add("focus",e,function(e){t.logger.debug("focus event received"),clearTimeout(a.eventTimeout),d()}),this.eventListenerManager.add("blur",e,function(e){t.logger.debug("blur event received"),a.eventTimeout=setTimeout(function(){l(e)},10)})}}catch(t){}},t.prototype.setWindowVisible=function(e){this.isInitialState||this.isVisible()||(this.visibleWindow=e,t.logger.debug("onVisible callback exec"),this.onVisibleCallback())},t.prototype.setWindowHidden=function(e){this.isInitialState=!1,a.isIABSafeFrame()&&this.isVisible()||this.isVisible()&&(this.visibleWindow=null,t.logger.debug("onHidden callback exec"),this.onHiddenCallback())},t.prototype.onVisibleCallback=function(){this.enabled&&this.onVisible()},t.prototype.onHiddenCallback=function(){this.enabled&&this.onHidden()},t.prototype.getPrefixedMethodName=function(t,e){var n=this;return i.b.of(e).orElse(function(){return i.b.of(n.prefix)}).match({some:function(e){return e+t},none:function(){return t.toLowerCase()}})},t.prototype.getPrefix=function(t){t||(t=window.document);for(var e=0,n=this.prefixes.length;e<n;e++){var i=this.getPrefixedMethodName(this.props[2],this.prefixes[e]);if(null!==t[i]&&void 0!==t[i])return this.prefixes[e]}},t.prototype.prefixesSupported=function(t){var e=this;if(a.isDesktop())return!1;var n=!1;return o.forEach(this.props,function(i){n=n||e.getPrefixedMethodName(i,e.prefix)in t}),n},t.logger=new c.a("Visibility"),t}()},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"SUCCESS_CALLBACK_ERROR",function(){return i}),n.d(e,"BUNDLE_ASSET_NOT_EXISTING",function(){return o}),n.d(e,"POSTMESSAGE_SERVER_TIMEOUT",function(){return r}),n.d(e,"POSTMESSAGE_API_NOT_READY",function(){return a}),n.d(e,"POSTMESSAGE_LOAD_VPAID_TIMEOUT",function(){return s}),n.d(e,"GETVPAIDAD_EXCEPTION",function(){return c}),n.d(e,"LOAD_VPAID_FILE_NOT_FOUND",function(){return u}),n.d(e,"LOAD_VPAID_TIMEOUT",function(){return d}),n.d(e,"FLASH_PLUGIN_MISSING",function(){return l}),n.d(e,"FLASH_IO_ERROR",function(){return p}),n.d(e,"FLASH_SECURITY_ERROR",function(){return h}),n.d(e,"FLASH_INIT_ERROR",function(){return f}),n.d(e,"FLASH_UNKNOWN_ERROR",function(){return g});var i={id:100,message:"callback success function throw an exception "},o={id:200,message:"You must specify the bundle asset you want to use with teads.vpaid.BundledContainer.(CANVAS|VIDEO)"},r={id:300,message:"Postmessage server iframe timeout"},a={id:301,message:"API is not ready, before use loadVpaid, you must init the API with the method initAPI"},s={id:302,message:"Timeout Error : Unable to load vpaid , server timeout"},c={id:400,message:"VPAIDJS getVPAIDAd throw an exception"},u={id:500,message:"Unable to load VPAID ad, file doesn't exists"},d={id:501,message:"Unable to load VPAID ad, timeout error"},l={id:600,message:"unable to load swf mediafile, Flash plugin is missing"},p={id:601,message:"flash throw an IOError when loading swf"},h={id:602,message:"flash throw SecurityError, possibly due to crossdomain policy configuration"},f={id:603,message:"flash throw an exception while wrapping the vpaid file"},g={id:604,message:"flash throw an error"}},function(t,e,n){var i=n(9),o=n(0),r=n(1),a=n(2),s=function(){},c=new r.a("Promise"),u=function(){function t(t,e,n){this.onFulfilled=t,this.onRejected=e,this.promise=n,this.onFulfilled=Object(o.isFunction)(t)?t:null,this.onRejected=Object(o.isFunction)(e)?e:null}return t}(),d=function(t){return t instanceof l},l=function(){function t(t){this.state="isPending",this.handled=!1,this.value=void 0,this.deferreds=[],this.doResolve(t)}return t.all=function(e){return new t(function(t,n){var o=e.length,r=new Array(o),s=function(e,a){i.c.of(function(){if(d(a))return void a.then(function(t){s(e,t)},n);r[e]=a,0==--o&&t(r)}).recover(function(t){return n(t)})};Object(a.forEach)(e,function(t,e){return s(e,t)})})},t.resolve=function(e){return d(e)?e:new t(function(t){return t(e)})},t.reject=function(e){return new t(function(t,n){return n(e)})},t.prototype.catch=function(t){return this.then(null,t)},t.prototype.then=function(e,n){var i=new t(s);return this.handle(new u(e,n,i)),i},t.prototype.finally=function(t){return this.then(t,t)},t.prototype.toString=function(){return"Promise("+JSON.stringify({state:this.state,value:this.value},null,2)+")"},t.prototype.handle=function(t){for(var e=this;"isIntermediatePromise"===e.state;)e=e.value;"isPending"===e.state?e.deferreds.push(t):d(e.value)||(e.handled=!0,setTimeout(function(){var n="isFulfilled"===e.state?t.onFulfilled:t.onRejected;null===n?"isFulfilled"===e.state?t.promise.resolveHandler(e.value):t.promise.rejectHandler(e.reason):i.c.of(function(){var i="isFulfilled"===e.state?e.value:e.reason;t.promise.resolveHandler(n(i))}).recover(t.promise.rejectHandler)}))},t.prototype.resolveHandler=function(t){var e=this;i.c.of(function(){if(t===e)throw new TypeError("A promise cannot be resolved wi th itself.");d(t)?(e.state="isIntermediatePromise",e.value=t,e.finale()):(e.state="isFulfilled",e.value=t,e.finale())}).recover(this.rejectHandler)},t.prototype.rejectHandler=function(t){this.state="isRejected",this.reason=t,this.finale()},t.prototype.finale=function(){"isRejected"===this.state&&0===this.deferreds.length&&(this.handled||c.warn("Possible Unhandled Promise Rejection:",this.reason));for(var t=0,e=this.deferreds.length;t<e;t++)this.handle(this.deferreds[t]);this.deferreds=null},t.prototype.doResolve=function(t){var e=this,n=!1;i.c.of(function(){t(function(t){n||(n=!0,e.resolveHandler(t))},function(t){n||(n=!0,e.rejectHandler(t))})}).recover(function(t){n||(n=!0,e.rejectHandler(t))})},t}();e.a=l},function(t,e,n){n.d(e,"a",function(){return o}),n.d(e,"b",function(){return r});var i=n(4),o=function(){function t(t){this.businessIds={pid:null,gid:null,sid:null},this.pageId=t.PageId,this.businessIds.pid=t.PlacementId,this.wigo=t.Wigo}return t}(),r=function(){function t(t,e){this.pageId=t,this.placementId=e,this.wigoOption=i.b.empty()}return Object.defineProperty(t.prototype,"PageId",{get:function(){return this.pageId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"PlacementId",{get:function(){return this.placementId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Wigo",{get:function(){return this.wigoOption},enumerable:!0,configurable:!0}),t.prototype.setWigo=function(t){return this.wigoOption=i.b.of(t),this},t.prototype.build=function(){return new o(this)},t}()},function(t,e,n){function i(t){return Number(t.getAdDuration())>0?t.getAdDuration()-t.getAdRemainingTime():0}function o(t){return!(t.getAdVolume()>0)}Object.defineProperty(e,"__esModule",{value:!0}),e.getCurrentTime=i,e.isMuted=o},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"get",function(){return c}),n.d(e,"set",function(){return u});var i=n(25),o=n(1),r=n(9),a=n(11),s=new o.a("Store"),c=function(t){return r.c.of(function(){return localStorage.getItem(t)}).recover(function(t){throw s.debug("An error occured while trying to access localStorage: "+t.toString()),t}).toOption().orElse(function(){return i.get(t).recover(function(t){throw s.debug("An error occured while trying to get a cookie: "+t.toString()),t}).toOption()}).flatMap(function(t){return r.c.of(function(){return a.parse(t)}).recover(function(t){throw s.warn("An error occured while trying to deserialize value to JSON: "+t.toString()),t}).toOption()})},u=function(t,e){var n=a.stringify(e);return r.c.of(function(){return localStorage.setItem(t,n)}).recover(function(t){throw s.debug("An error occured while trying to write in localStorage: "+t.toString()),t}).orElse(function(){return i.setAndExpireInOneYear(t,e).recover(function(t){throw s.debug("An error occured while trying to set a cookie: "+t.toString()),t})}).map(function(){})}},function(t,e,n){n.d(e,"a",function(){return o});var i=n(42),o=function(){function t(){this.userDevice=new i.a}return t}()},function(t,e){t.exports='<div class="teads-wigo-btn"><div style="position: absolute; left:0;top:0;padding: 0 4%; border: 1px solid white; color: white; font-size: 10px; text-align: center; font-family: Arial; line-height:16px;"></div><div style="border: 6px solid #f3f3f3; border-top: 6px solid #3498db; border-radius: 50%; position: absolute; left: 60%; width: 32%; height: 32%; -webkit-animation: wigospin 2s linear infinite; animation: wigospin 2s linear infinite"></div> <style type="text/css"> .teads-wigo-btn { position: fixed; bottom: 10px; right: 10px; z-index: 2147483647; width: 75px; height: 75px; cursor: pointer; background-image: url(\'https://a.teads.tv/media/format/v3/assets/default/img/wigo.png?v2\'); transition: right ease 0.2s; } @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { /* Retina */ .teads-wigo-btn { background-size: 75px 75px; background-image: url(\'https://a.teads.tv/media/format/v3/assets/default/img/wigo-2x.png\'); } } @-webkit-keyframes wigospin { 0% { -webkit-transform: rotate(0deg);} 100% { -webkit-transform: rotate(360deg);} } @keyframes wigospin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } </style> </div> '},function(t,e,n){function i(t,e){if(e)for(var n in e)t=t.replace(new RegExp(a+n+s,"g"),e[n]);return t}function o(t){var e=/\{\{([^\}]*)\}\}/g,n=/\{\{|\}\}/g,i=t.match(e);if(i){var o=r.map(i,function(t){return t.replace(n,"")});return r.unique(o)}return[]}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"placeholderStartSymbol",function(){return a}),n.d(e,"placeholderEndSymbol",function(){return s}),e.replacePlaceholders=i,e.getPlaceholders=o;var r=n(2),a="{{",s="}}"},function(t,e,n){n.d(e,"a",function(){return o});var i=n(24),o=new i.a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"abort",function(){return i}),n.d(e,"canplay",function(){return o}),n.d(e,"canplaythrough",function(){return r}),n.d(e,"durationchange",function(){return a}),n.d(e,"emptied",function(){return s}),n.d(e,"encrypted",function(){return c}),n.d(e,"ended",function(){return u}),n.d(e,"error",function(){return d}),n.d(e,"interruptbegin",function(){return l}),n.d(e,"interruptend",function(){return p}),n.d(e,"loadeddata",function(){return h}),n.d(e,"loadedmetadata",function(){return f}),n.d(e,"loadstart",function(){return g}),n.d(e,"pause",function(){return m}),n.d(e,"play",function(){return v}),n.d(e,"playing",function(){return y}),n.d(e,"progress",function(){return b}),n.d(e,"ratechange",function(){return A}),n.d(e,"seeked",function(){return E}),n.d(e,"seeking",function(){return w}),n.d(e,"stalled",function(){return _}),n.d(e,"suspend",function(){return C}),n.d(e,"timeupdate",function(){return S}),n.d(e,"volumechange",function(){return T}),n.d(e,"waiting",function(){return O});var i="abort",o="canplay",r="canplaythrough",a="durationchange",s="emptied",c="encrypted",u="ended",d="error",l="interruptbegin",p="interruptend",h="loadeddata",f="loadedmetadata",g="loadstart",m="pause",v="play",y="playing",b="progress",A="ratechange",E="seeked",w="seeking",_="stalled",C="suspend",S="timeupdate",T="volumechange",O="waiting"},function(t,e,n){n.d(e,"a",function(){return r}),n.d(e,"b",function(){return a});var i=n(0),o=n(4),r=function(){function t(t){void 0===t&&(t={}),this.protocol=Object(i.getProtocol)(),this.basePathUrl=this.protocol+"//a.teads.tv/media/format/v3",this.assetsUrl=this.basePathUrl+"/assets",this.richAdServerUrl=this.protocol+"//a.teads.tv/page/{id}/ad",this.buyingEngineUrl=this.protocol+"//a.teads.tv/vast/get",this.trackingUrl=this.protocol+"//t.teads.tv/track",this.userSyncUrl=this.protocol+"//sync.teads.tv/iframe",this.wigoIframeUrl=this.protocol+"//sync.teads.tv/wigo-no-slot",this.consensuIframeUrl=this.protocol+"//cmp.teads.mgr.consensu.org/index.html",this.isSumologicLogsEnabled=!0,this.isRichAdServerRequestEnabled=!0,this.isIasBypassEnabled=!0,this.richAdServerRequestTimeout=5e3,this.timestampMacroNames=["[RANDOM]","[RANDOMNUM]","[TIMESTAMP]","[CACHE_BREAKER]","[CACHEBREAKER]","[CACHEBUSTING]","[CACHE_BUSTING]","[CACHEBUSTER]","[CACHE_BUSTER]"],this.refresh(t)}return t.prototype.refresh=function(t){var e=this;void 0===t&&(t={}),o.b.of(t.ASSETS_URL).forEach(function(t){e.basePathUrl=t,e.assetsUrl=t+"/assets"}),o.b.of(t.RAS_URL).forEach(function(t){return e.richAdServerUrl=t}),o.b.of(t.BE_URL).forEach(function(t){return e.buyingEngineUrl=t}),o.b.of(t.TRACKING_URL).forEach(function(t){return e.trackingUrl=t}),o.b.of(t.USER_SYNC_URL).forEach(function(t){return e.userSyncUrl=t}),o.b.of(t.WIGO_IFRAME_URL).forEach(function(t){return e.wigoIframeUrl=t}),o.b.of(t.SUMOLOGIC_ENABLED).forEach(function(t){return e.isSumologicLogsEnabled=t}),o.b.of(t.WITH_RAS_REQUEST).forEach(function(t){return e.isRichAdServerRequestEnabled=t}),o.b.of(t.WITH_IAS_BYPASS).forEach(function(t){return e.isIasBypassEnabled=t})},t}(),a=new r(window.teads)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(72),o=n(74),r=n(78),a=n(43),s=n(1),c=n(12),u=n(3),d=n(17),l=n(83),p=n(23),h=n(13),f=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),g=function(t){function e(e,n,i,o){void 0===o&&(o={});var r=t.call(this,e,n,i)||this;return r.parameters=o,r.defaultVolume=0,r.logger=new s.a("canvas.player.CanvasPlayer"),r.audioSyncDiff=.5,r.waitForPlay=!1,r.logger.debug("constructor()",e,n,i,o.assetsPath),r.parameters.assetsPath&&r.parameters.assetsPath.match(/http:|https:/)||(r.logger.warn("assetsPath replace with default (relative path not allow)"),r.parameters.assetsPath=window.location.protocol+"//a.teads.tv/media/player"),r}return f(e,t),e.prototype.load=function(t,e,n){var i=this;void 0===e&&(e=!1),void 0===n&&(n=l.a.NO_STREAM),this.logger.debug("load()",t,e,n),this.url=Object(h.updateProtocolIfNeeded)(t),this.dispatch(c.a.LOAD_START),this.getMeta(this.url,function(t){var s=i.url.split("/");s.pop(),i.video=new a.b(s.join("/"),t,n,i),i.audio=new o.a(s.join("/"),t,n,i),i.buffer=new r.a(i),e&&i.listen(c.a.CAN_PLAY,function(){return i.play()}),i.buffer.show(),i.listen(c.a.CAN_PLAY,function(){return i.buffer.hide()}),i.listen(c.a.ENDED,function(){return i.audio.release()}),i.video.listen(c.a.STALLED,function(){return i.dispatch(c.a.STALLED)}),i.video.listen(c.a.STALLED,function(){return i.pause(!0)}),i.video.listen(c.a.RESUME_AFTER_STALLED,function(){return i.dispatch(c.a.RESUME_AFTER_STALLED)}),i.video.listen(c.a.RESUME_AFTER_STALLED,function(){return i.play()}),i.video.listen(c.a.TIME_UPDATE,function(){return i.onVideoProgress()}),i.video.listen(c.a.CAN_PLAY,function(){return i.canPlayAll()}),i.audio.listen(c.a.CAN_PLAY,function(){return i.canPlayAll()}),i.video.listen(c.a.ENDED,function(){return i.dispatch(c.a.ENDED)}),i.video.listen(c.a.LOADED,function(){return i.dispatch(c.a.LOADED)}),i.video.listen(c.a.ERROR,function(){return i.dispatch(c.a.ERROR,{error:"An error occured with the video."})})})},e.prototype.play=function(){var t=this;this.logger.info("play()"),this.canplay()?(this.waitForPlay=!1,this.video.play(),this.audio.play(),this.dispatch(c.a.PLAY),this.dispatch(c.a.PLAYING)):this.waitForPlay||(this.waitForPlay=!0,this.dispatch(c.a.STALLED),this.dispatch(c.a.PAUSE),this.listen(c.a.CAN_PLAY,function(){t.dispatch(c.a.RESUME_AFTER_STALLED),t.play()}))},e.prototype.pause=function(t){void 0===t&&(t=!1),this.video&&this.audio?(this.video.pause(),this.audio.pause(),this.dispatch(c.a.PAUSE),this.logger.info("pause()"),t||this.video.state!==p.a.STALLED||(this.video.cleanStallTimeout(),this.buffer.hide())):(this.muteEvent(c.a.CAN_PLAY),this.waitForPlay=!1)},e.prototype.canplay=function(){return!(!this.video||!this.audio)&&(this.video.canplay()&&this.audio.canplay())},Object.defineProperty(e.prototype,"src",{get:function(){return this.url},set:function(t){this.load(t,!1,l.a.FULL)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.video?this.video.getCurrentTime():0},set:function(t){this.video&&(this.logger.info("set currentTime",t),this.dispatch(c.a.SEEKING),this.video.setCurrentTime(t)&&(this.audio.currentTime=t),this.dispatch(c.a.SEEKED))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"duration",{get:function(){return this.video&&this.audio?this.video.duration||this.audio.duration:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this.audio?this.audio.volume:0},set:function(t){var e=this;if(this.logger.debug("set volume",t),this.audio){this.audio.volume=t;this.audio.canplay()&&this.video.state===p.a.PLAYING&&function(){e.audio.play(e.currentTime)}(),this.dispatch(c.a.VOLUME_CHANGE,{value:t})}else this.defaultVolume=t},enumerable:!0,configurable:!0}),e.prototype.onVideoProgress=function(){if(this.audio.api&&this.audio.playing()){var t=this.audio.currentTime-this.currentTime,e=Math.abs(t);e>=this.audioSyncDiff&&(t>0||this.video.meta.tv?this.video.setCurrentTime(this.audio.currentTime)||this.video.setCurrentTime(this.currentTime+this.audioSyncDiff):this.audio.currentTime=this.currentTime,this.logger.debug("sync audio (diff/audioTime)",e,this.audio.currentTime),this.dispatch(c.a.AUDIO_SYNC,{value:e}))}this.dispatch(c.a.TIME_UPDATE)},e.prototype.canPlayAll=function(){this.canplay()&&(this.dispatch(c.a.CAN_PLAY),this.dispatch(c.a.LOADED_METADATA))},e.prototype.getMeta=function(t,e){var n=this,i=Object(d.createXmlHttpRequest)();i.open("GET",t.replace(/(\.mpg|\.mpeg|\.tv)(?!\/)/gi,".meta?v2"),!0),i.responseType="json",i.addEventListener("load",function(t){if(i.response){var o="string"==typeof i.response?JSON.parse(i.response):i.response;!o.tv&&(Object(u.isChromeIos)()||Object(u.isUIWebview)()||Object(u.isFacebookWebview)()||Object(u.isIpad)())?n.dispatch(c.a.ERROR,{error:"The metadata are missing."}):e(o)}else n.dispatch(c.a.ERROR,{error:"No response from the HTTPRequest, did the file exist?"})}),i.addEventListener("error",function(t){n.dispatch(c.a.ERROR,{error:"An error occured with the HTTPRequest."}),n.logger.error.bind(n.logger)}),i.send()},e}(i.a);e.default=g},function(t,e,n){n.d(e,"c",function(){return p}),n.d(e,"f",function(){return h}),n.d(e,"h",function(){return v}),n.d(e,"a",function(){return y}),n.d(e,"e",function(){return b}),n.d(e,"d",function(){return A}),n.d(e,"b",function(){return E}),n.d(e,"g",function(){return w});var i=n(38),o=n(0),r=n(4),a=n(8),s=n(5),c=n(168),u=n(7),d=this&&this.__generator||function(t,e){function n(t){return function(e){return i([t,e])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;c;)try{if(o=1,r&&(a=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(a=a.call(r,n[1])).done)return a;switch(r=0,a&&(n=[0,a.value]),n[0]){case 0:case 1:a=n;break;case 4:return c.label++,{value:n[1],done:!1};case 5:c.label++,r=n[1],n=[0];continue;case 7:n=c.ops.pop(),c.trys.pop();continue;default:if(a=c.trys,!(a=a.length>0&&a[a.length-1])&&(6===n[0]||2===n[0])){c=0;continue}if(3===n[0]&&(!a||n[1]>a[0]&&n[1]<a[3])){c.label=n[1];break}if(6===n[0]&&c.label<a[1]){c.label=a[1],a=n;break}if(a&&c.label<a[2]){c.label=a[2],c.ops.push(n);break}a[2]&&c.ops.pop(),c.trys.pop();continue}n=e.call(t,c)}catch(t){n=[6,t],r=0}finally{o=a=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,a,s,c={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s},l=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},p=function(t){var e=void 0===t?{}:t,n=e.pageId,o=void 0===n?r.b.empty():n,a=e.pid,s=void 0===a?r.b.empty():a,c=e.insertionId,u=void 0===c?r.b.empty():c,d=e.slotType,l=void 0===d?r.b.empty():d,p=e.env,h=void 0===p?r.b.empty():p,f=e.impressionId,g=void 0===f?r.b.empty():f,m=e.cachebusting,v=void 0===m?r.b.empty():m,y=e.headerBiddingProvider,b=void 0===y?r.b.empty():y,A=e.gdprIab,E=void 0===A?r.b.empty():A,w=e.userStore,_=void 0===w?r.b.empty():w,C=(S={},S[i.TrackingMacro.PAGEID]=o.map(String).getOrElse(function(){return""}),S[i.TrackingMacro.PID]=s.map(String).getOrElse(function(){return""}),S[i.TrackingMacro.GID]=u.map(String).getOrElse(function(){return""}),S[i.TrackingMacro.SLOT_TYPE]=l.getOrElse(function(){return""}),S[i.TrackingMacro.ENV]=b.match({some:function(){return"js-web"},none:function(){return h.getOrElse(function(){return""})}}),S[i.TrackingMacro.IMPRESSIONID]=g.map(String).getOrElse(function(){return""}),S[i.TrackingMacro.CACHEBUSTING]=v.map(String).getOrElse(function(){return""}),S[i.TrackingMacro.HEADER_BIDDING_PROVIDER]=b.getOrElse(function(){return""}),S);return E.forEach(function(t){var e=t.status,n=t.consent,o=t.reason;C[i.TrackingMacro.GDPR_STATUS]=String(e),C[i.TrackingMacro.GDPR_CONSENT]=n,C[i.TrackingMacro.GDPR_REASON]=String(o)}),_.forEach(function(t){C[i.TrackingMacro.USERID]=t.userId,C[i.TrackingMacro.OS]=t.userDevice.os.toLowerCase(),C[i.TrackingMacro.DEVICEID]=t.userDevice.device,C[i.TrackingMacro.LIMIT_TRACKING]=String(t.userOptOut)}),C;var S},h=function(t){var e=void 0===t?{}:t,n=e.currentTime,s=void 0===n?r.b.empty():n,c=e.errorCode,u=void 0===c?r.b.empty():c,d=e.assetUrl,l=void 0===d?r.b.empty():d,p=e.mediaFileType,h=void 0===p?r.b.empty():p,f=e.viewability,g=void 0===f?r.b.empty():f,m=e.userStore,v=void 0===m?r.b.empty():m,y=(b={},b[i.TrackingMacro.CONTENTPLAYHEAD]=s.filter(function(t){return t>=0}).match({some:o.offset,none:function(){return"0"}}),b[i.TrackingMacro.CACHEBUSTING]=Object(a.rand)(8),b[i.TrackingMacro.ERRORCODE]=u.map(String).getOrElse(function(){return""}),b[i.TrackingMacro.ASSETURI]=l.getOrElse(function(){return""}),b[i.TrackingMacro.MEDIAFILETYPE]=h.getOrElse(function(){return"unknown"}),b[i.TrackingMacro.VIEWABILITY]=g.map(String).getOrElse(function(){return"0"}),b);return v.forEach(function(t){y[i.TrackingMacro.BUNDLEID]=t.userDevice.appId,y[i.TrackingMacro.DEVICEID]=t.userDevice.device,y[i.TrackingMacro.LIMIT_TRACKING]=String(t.userOptOut)}),y;var b},f=function(t){var e,n,i,o;return d(this,function(r){switch(r.label){case 0:e=[];for(n in t)e.push(n);i=0,r.label=1;case 1:return i<e.length?(o=e[i],t.hasOwnProperty(o)&&""!==t[o]?[4,[o,t[o]]]:[3,3]):[3,4];case 2:r.sent(),r.label=3;case 3:return i++,[3,1];case 4:return[2]}})},g=function(t){return new RegExp(t.replace("[","\\[").replace("]","\\]"),"g")},m=function(t){return function(e){var n=l(e,2),i=n[0],o=n[1];return t.replace(g(i),o)}},v=function(t){return function(e){return c.a(f(t),function(t,e){return m(t)(e)},e)}},y=function(t,e){return t-e||0},b=function(t){return void 0===t&&(t=r.a),t.map(function(t){return t.url.toString()})},A=function(t){return void 0===t&&(t=r.a),t.map(function(t){return Object(o.getExtensionFromMimeType)(t.type)})},E=function(t){return Object(u.getBoundingClientRect)(t).height},w=function(t,e){var n=Math.ceil(100*Object(s.getPercentageInView)(t,Object(s.getWindow)(t),e));return(n<0||!Object(s.getRealVisibilityState)(t))&&(n=0),n}},function(t,e,n){var i=function(){function t(){}return t.READY="ready",t.ERROR="error",t.WAITING="waiting",t}();e.a=i},function(t,e,n){function i(t){return g.filter(t.extensions,function(t){return t.type===C})[0]}function o(t){var e=i(t);if(e){var n=void 0;try{n=JSON.parse(e.content)}catch(t){k.error('"Couldn\'t parse IAS config: "'+t+'"')}if(n.type===w&&n.data.partner&&n.data.advEntityId&&n.data.pubEntityId||n.type===_&&n.data.partner&&n.data.anId)return n}}function r(t){return c(t)||u(t)}function a(t){k.debug("bypass from vast url: "+t);var e=d(t);return e&&e.originalVast&&(e.newVast='<?xml version="1.0" encoding="UTF-8"?>\n        <VAST version="3.0">\n          <Ad id="teads-ias-custom-wrapper">\n          <Wrapper>\n            <AdSystem>Teads - IAS</AdSystem>\n            <VASTAdTagURI><![CDATA['+e.originalVast+']]></VASTAdTagURI>\n            <Extensions>\n              <Extension type="teads-IAS"><![CDATA['+JSON.stringify(e.config)+"]]></Extension>\n            </Extensions>\n          </Wrapper>\n          </Ad>\n        </VAST>",v.b.sendInfo("ias-bypass in vast url done")),e}function s(t){k.debug("bypass from AdParameters");var e=Object(b.htmlDecode)(t.adParameters);Object(m.parse)(e,function(e){var n=d(e.adTagUri);n&&n.originalVast&&(t.extensions.push({type:y.a.TEADS_IAS,content:JSON.stringify(n.config),definition:t,xml:null}),t.adParameters=t.adParameters.replace(Object(b.htmlEncode)(n.iasUrl),Object(b.htmlEncode)(n.originalVast)),v.b.sendInfo("ias-bypass in adParams done"))},function(t,e){k.error("AdParamaters parsing failed: "+t),v.b.sendError("ias-bypass adParams parsing failed")})}function c(t){return I.test(t)}function u(t){return P.test(t)}function d(t){return c(t)?l(t):u(t)?p(t):void 0}function l(t){var e,n=I.exec(t);return n&&(e={config:{type:w,data:{partner:S,advEntityId:n[1],pubEntityId:n[2]}},originalVast:/^((http|https)\:){0,1}\/\//.test(n[3])?n[3]:decodeURIComponent(n[3]),iasUrl:n[0],newVast:null},v.b.sendInfo("ias-bypass fw"+e.config.data.advEntityId+"|"+e.config.data.pubEntityId+"|"+e.originalVast)),e.originalVast=h(e.originalVast),e}function p(t){var e,n=P.exec(t);if(n){var i=E(A.match(n[0],/anId=(.*?)&/),2),o=i[1],r=void 0===o?null:o,a=E(A.match(n[0],/advId=(.*?)&/),2),s=a[1],c=void 0===s?null:s,u=E(A.match(n[0],/campId=(.*?)&/),2),d=u[1],l=void 0===d?null:d,p=E(A.match(n[0],/pubId=(.*?)&/),2),f=p[1],g=void 0===f?null:f,m=E(A.match(n[0],/placementId=(.*?)&/),2),y=m[1],b=void 0===y?null:y,w=E(A.match(n[0],/chanId=(.*?)&/),2),C=w[1],T=void 0===C?null:C,O=E(A.match(n[0],/planId=(.*?)&/),2),I=O[1],k=void 0===I?null:I,L=E(A.match(n[0],/impId=(.*?)&/),2),x=L[1];e={config:{type:_,data:{partner:S,anId:r,advId:c,campId:l,pubId:g,placementId:b,chanId:T,planId:k,impId:void 0===x?null:x}},originalVast:/^((http|https)\:){0,1}\/\//.test(n[1])?n[1]:decodeURIComponent(n[1]),iasUrl:n[0],newVast:null},v.b.sendInfo("ias-bypass cm"+e.config.data.anId+"|"+e.originalVast)}return e.originalVast=h(e.originalVast),e}function h(t){return O.test(t)?t.split("&")[0]:t}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"IAS_FIREWALL",function(){return w}),n.d(e,"IAS_CAMPAIGN_MONITORING",function(){return _}),n.d(e,"extensionType",function(){return C}),n.d(e,"partnerCode",function(){return S}),n.d(e,"iasRegexp",function(){return T}),e.getExtension=i,e.getIASConfig=o,e.isIASVASTUrl=r,e.bypassVastUrl=a,e.bypassAdParameters=s;var f=n(1),g=n(2),m=n(70),v=n(68),y=n(86),b=n(7),A=n(8),E=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},w="fw",_="cm",C="teads-IAS",S="teads",T=/((http|https)\:)?\/\/([^\/]+)\.adsafeprotected\.com\/.*/,O=/(?:(?:http|https)\:)?\/\/adserver\.adtech\.de\/(.*)/,I=/(?:(?:http|https)\:)?\/\/fw\.adsafeprotected\.com\/vast\/fwjsvid\/st\/(\d+)\/(\d+)\/skeleton\.js.*originalVast=(.*)/,P=/(?:(?:http|https)\:)?\/\/pixel\.adsafeprotected\.com\/vast.*anId=\d+.*originalVast=(.*)/,k=new f.a("vast.IAS")},function(t,e,n){function i(t,e,n,i){Object.defineProperty(t,e,function(){var t={enumerable:!0,configurable:!0,get:function(){return n.call(this)},set:function(t){}};return i&&(t.set=function(t){i.call(this,t)}),t}())}Object.defineProperty(e,"__esModule",{value:!0}),e.defineProperty=i},function(t,e,n){n.d(e,"b",function(){return w}),n.d(e,"a",function(){return _}),n.d(e,"e",function(){return C}),n.d(e,"c",function(){return S}),n.d(e,"d",function(){return T});var i=n(136),o=n(107),r=n(137),a=n(138),s=n(139),c=n(140),u=n(108),d=n(141),l=n(109),p=n(143),h=n(144),f=n(118),g=n(145),m=n(146),v=n(147),y=n(148),b=n(85),A=n(149),E=n(175),w={fullscreenbutton:i.a,mutebutton:o.a,progressbar:r.a,playpausebutton:a.a,progresstext:s.a,skipbutton:c.a,closebutton:u.b,uibutton:d.a,textfield:l.a,clicktoplay:p.a,clickbutton:h.a,soundbutton:f.b,label:g.a,credits:m.a,endscreen:v.a,brandlogo:y.a,countdown:b.a,startscreen:A.a,adchoices:E.a},_="teads-ui-component-",C="vpaid-container",S="main-container",T="layout-video-component"},function(t,e,n){n.d(e,"b",function(){return l}),n.d(e,"a",function(){return p});var i=n(1),o=n(24),r=n(69),a=n(16),s=n(117),c=n(70),u=n(4),d=n(65),l=new o.a,p=function(){function t(e,n){void 0===n&&(n=u.a),this.config=e,this.wigo=n,this.logger=new i.a("vast.VASTLib"),this.logger.debug("new",this),this.wrappersLimit=this.config.wrappersLimit||t.WRAPPERS_LIMIT}return t.prototype.load=function(t,e,n){this.processVast(!0,t,e,n)},t.prototype.parse=function(t,e,n){this.processVast(!1,t,e,n)},t.prototype.processVast=function(t,e,n,i){var o=Date.now(),a=function(t){var e=Date.now()-o;try{window.teads.player.playerSumologic.sendInfo("parse "+t.wrappers.length+" "+e)}catch(t){}n(t)},s=function(t,e){i(t,e)};t?this.loadXml(new r.a,e,a,s):this.parseXml(new r.a,e,a,s)},t.prototype.loadXml=function(t,e,n,i){var o=this;if(t.url||(t.url=e),this.config.replaceIASVPAID&&d.iasRegexp.test(e)&&Object(d.isIASVASTUrl)(e)){var r=Object(d.bypassVastUrl)(e);if(r)return t.mediaFiles=[],t.adParameters=null,this.parseXml(t,r.newVast,n,i)}this.wigo.filter(function(t){return!!t.report}).forEach(function(t){return e=t.getVastUrl(e)}),Object(s.load)(e,this.config,function(r){o.wigo.forEach(function(t){return t.setVast(e,r)}),o.parseXml(t,r,n,i)},i)},t.prototype.parseXml=function(t,e,n,i){var o=this;Object(c.parse)(e,function(e){if(t.merge(e),e.adTagUri)t.wrappers.length>o.wrappersLimit?i(new a.b(a.b.WRAPPER_LIMIT),t):(o.logger.info("load wrapper",e.adTagUri),o.loadXml(t,e.adTagUri,n,function(e,n){i(e,t)}));else if(o.config.replaceIASVPAID&&d.iasRegexp.test(t.adParameters)&&Object(d.isIASVASTUrl)(t.adParameters)&&Object(d.bypassAdParameters)(t),0===t.mediaFiles.length){var r=a.a.get(a.b.WRAPPER.id,"empty mediafiles in VAST definition");o.logger.error(r.getFullMessage()),i(r,t)}else n(t)},function(e,n){t.merge(n),i(e,t)})},t.TIMEOUT=7e3,t.WRAPPERS_LIMIT=10,t}()},function(t,e,n){n.d(e,"a",function(){return r});var i=n(4),o=n(94),r=function(){function t(){this.version=2,this.tracking=new o.a,this.clickThrough=[],this.adChoicesIconClickThrough=i.a,this.mediaFiles=[],this.title="",this.wrappers=[],this.skippable=!1,this.skipDelay=0,this.extensions=[]}return t.prototype.merge=function(t){t.version&&this.version<t.version&&(this.version=t.version),!this.url&&t.url&&(this.url=t.url),!this.title&&t.title&&(this.title=t.title),!this.adSystem&&t.adSystem&&(this.adSystem=t.adSystem),!this.id&&t.id&&(this.id=t.id),!this.creativeId&&t.creativeId&&(this.creativeId=t.creativeId),!this.duration&&t.duration&&(this.duration=t.duration),!this.adParameters&&t.adParameters&&(this.adParameters=t.adParameters),t.adTagUri&&this.wrappers.push(t.adTagUri);var e,n;for(var i in t.tracking)for(e=0,n=t.tracking[i].length;e<n;e++)"adChoices"!==i&&this.tracking[i].push(t.tracking[i][e]);for(this.adChoicesIconClickThrough.isEmpty()&&!t.adChoicesIconClickThrough.isEmpty()&&(this.adChoicesIconClickThrough=t.adChoicesIconClickThrough,this.tracking.adChoices=t.tracking.adChoices),e=0,n=t.mediaFiles.length;e<n;e++)this.mediaFiles.push(t.mediaFiles[e]);for(e=0,n=t.clickThrough.length;e<n;e++)this.clickThrough.push(t.clickThrough[e]);for(e=0,n=t.extensions.length;e<n;e++)this.extensions.push(t.extensions[e]);!this.skippable&&t.skippable&&(this.skippable=!0,this.skipDelay=t.skipDelay)},t}()},function(t,e,n){function i(t,e,n){var i=new D.a;I.c.of(function(){var w=N.getXMLDoc(t).documentElement;if("VAST"!==w.tagName)return n(new x.b(x.b.XML_PARSE),i);i.tracking.error=i.tracking.error.concat(o(w)),r(w).match({none:function(){n(new x.b(x.b.NO_ADS),i)},some:function(t){if(i.version=a(w),i.version<2)return n(new x.b(x.b.UNSUPPORTED_VERSION),i);i.creativeId=s(t).getOrElse(function(){return""});var o=u(t);if(!c(t)&&o.isEmpty())return n(new x.b(x.b.LINEARITY),i);i.id=d(t),i.adTagUri=l(t),i.title=p(t),i.adSystem=h(t);var r=L.map(f("ClickThrough",t),function(t){return t.url});i.clickThrough=i.clickThrough.concat(r),i.tracking.impression=i.tracking.impression.concat(f("Impression",t)),i.tracking.click=i.tracking.click.concat(f("ClickTracking",t)),o.forEach(function(t){var e=g(t);i.adChoicesIconClickThrough=e.clickThrough,i.tracking.adChoices=i.tracking.adChoices.concat(e.trackings);var n=m(t);i.skippable=v(n),i.skipDelay=y(n),i.duration=b(t),i.adParameters=A(t);var o=C(t,i.duration);for(var r in o)o.hasOwnProperty(r)&&(E(r)&&i.tracking.hasOwnProperty(r)?i.tracking[r]=i.tracking[r].concat(o[r]):V.warn('Could not add tracking resource as the VAST event "'+r+'" is not supported.'));i.mediaFiles=S(t,i.adParameters)}),i.extensions=T(t,i),e(i)}})}).recover(function(t){var e=x.a.get(x.b.UNDEFINED.id,"VASTParser.parse error",t);n(e,i)})}function o(t){var e=L.map(L.fromArrayLike(t.getElementsByTagName("Error")),function(t){return{url:N.getNodeContent(t),data:null}});return L.filter(e,function(t){return!!t.url})}function r(t){return O.b.of(t.getElementsByTagName("Ad")[0])}function a(t){return parseInt(N.getAttributeValue(t,"version"),10)}function s(t){return O.b.of(t.getElementsByTagName("Creative")[0]).map(function(t){return N.getAttributeValue(t,"id")||N.getAttributeValue(t,"adID")})}function c(t){return!!t.getElementsByTagName("Wrapper").length}function u(t){return O.b.of(t.getElementsByTagName("Linear")[0])}function d(t){return N.getAttributeValue(t,"id")}function l(t){return N.getNodeContent(t.getElementsByTagName("VASTAdTagURI")[0])}function p(t){return N.getNodeContent(t.getElementsByTagName("AdTitle")[0])}function h(t){return N.getNodeContent(t.getElementsByTagName("AdSystem")[0])}function f(t,e){var n=L.fromArrayLike(e.getElementsByTagName(t));return L.map(n,function(t){return{url:N.getNodeContent(t),data:null}})}function g(t){return O.b.of(t.getElementsByTagName("Icon")[0]).map(function(t){return t.getElementsByTagName("IconClicks")[0]}).map(function(t){return{iconClick:t,iconClickThrough:t.getElementsByTagName("IconClickThrough")[0]}}).map(function(t){var e=t.iconClick,n=t.iconClickThrough;return{clickThrough:O.b.of(N.getNodeContent(n)),trackings:L.map(L.fromArrayLike(e.getElementsByTagName("IconClickTracking")),function(t){return{url:N.getNodeContent(t),data:null}})}}).getOrElse(function(){return{clickThrough:O.a,trackings:[]}})}function m(t){return k.seconds(N.getAttributeValue(t,"skipoffset"))}function v(t){return!isNaN(t)}function y(t){return t||0}function b(t){return k.seconds(N.getNodeContent(t.getElementsByTagName("Duration")[0]))}function A(t){return N.getNodeContent(t.getElementsByTagName("AdParameters")[0])}function E(t){return L.includes(M,t)}function w(t,e){return Object(k.isString)(t)?t.indexOf(":")>0?O.b.of(k.seconds(t)):O.b.of(R.trim(t).match(/^([0-9\.]+)%$/)).map(function(t){return e*parseInt(t[1],10)/100}):O.a}function _(t,e){var n=N.getAttributeValue(t,"offset");return w(n,e).map(function(e){return{event:"progress",tracking:{url:N.getNodeContent(t),data:e}}}).orElse(function(){return V.error("Wrong offset for progress tracking: "+n),O.a})}function C(t,e){var n=L.fromArrayLike(t.getElementsByTagName("Tracking")),i=function(t){var n=N.getAttributeValue(t,"event");return"progress"===n?_(t,e):Object(O.c)({event:n,tracking:{url:N.getNodeContent(t),data:null}})},o=function(t,e){return e.forEach(function(e){t[e.event]||(t[e.event]=[]),t[e.event].push(e.tracking)}),t},r=L.filter(L.map(n,i),function(t){return t.nonEmpty()});return L.reduce(r,o,{})}function S(t,e){var n=L.fromArrayLike(t.getElementsByTagName("MediaFile"));return L.map(n,function(t){var n=N.getAttributeValue(t,"type");return{type:n,url:N.getNodeContent(t),width:parseInt(N.getAttributeValue(t,"width"),10),height:parseInt(N.getAttributeValue(t,"height"),10),delivery:N.getAttributeValue(t,"delivery"),bitrate:parseInt(N.getAttributeValue(t,"bitrate"),10),api:N.getAttributeValue(t,"apiFramework"),scalable:!!N.getAttributeValue(t,"scalable"),minBitrate:parseInt(N.getAttributeValue(t,"minBitrate"),10),maxBitrate:parseInt(N.getAttributeValue(t,"maxBitrate"),10),maintainAspectRatio:!!N.getAttributeValue(t,"maintainAspectRatio"),codec:N.getAttributeValue(t,"codec"),adParameters:/(javascript|flash)/g.test(n)?e:null}})}function T(t,e){var n=JSON.parse(JSON.stringify(e)),i=L.fromArrayLike(t.getElementsByTagName("Extension"));return L.map(i,function(t){return{type:N.getAttributeValue(t,"type"),content:N.getNodeContent(t),xml:t,definition:n}})}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"logger",function(){return V}),n.d(e,"SUPPORTED_EVENTS",function(){return M}),e.parse=i,e.getErrorTrackings=o,e.extractAd=r,e.getVastVersion=a,e.extractCreativeId=s,e.isWrapper=c,e.extractFirstLinearNode=u,e.getAdId=d,e.getVastAdTagUri=l,e.getAdTitle=p,e.getAdSystem=h,e.getTrackingsFor=f,e.getAdChoicesIconTrackings=g,e.getSkipOffset=m,e.isSkippable=v,e.getSkipDelay=y,e.getDuration=b,e.getAdParameters=A,e.isVastEventSupported=E,e.transformProgressOffset=w,e.handleProgressTracking=_,e.getTrackingsByEvent=C,e.getMediaFiles=S,e.getExtensions=T;var O=n(4),I=n(9),P=n(1),k=n(0),L=n(2),x=n(16),R=n(8),D=n(69),N=n(115),V=new P.a("vast.VASTParser"),M=["acceptInvitation","acceptInvitationLinear","adChoices","billable","click","close","closeLinear","collapse","complete","creativeView","customClicks","error","exitFullscreen","expand","firstQuartile","fullscreen","impression","midpoint","mute","noAd","noLinearAd","otherAdInteraction","pause","progress","resume","rewind","skip","start","thirdQuartile","unmute"]},function(t,e,n){var i=(n(154),n(16)),o=n(5),r=n(4),a=n(3),s=n(38),c=n(0),u=n(60),d=n(84),l=n(51),p=n(101),h=n(48),f=n(45),g=n(6),m=n(46),v=n(36),y=n(171),b=(n.n(y),this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}()),A=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getCreativeWindow=function(t){return t.contentWindow||o.getWindow(t)},e}return b(e,t),e.prototype.loadVpaid=function(t,e,n){var i=this;this.url=t;var r=o.getWindow(this.container),a=!1,s=function(t){r[i.callbackName]=function(){},n(t),i.destroy()};this.callbackName="vpaidjsload_"+this.id,r[this.callbackName]=function(t){if(a=!0,clearTimeout(i.loadTimeoutId),r[i.callbackName]=function(){},t){var n=i.getCreativeWindow(i.creativeContainer);try{i.vpaid=n.getVPAIDAd()}catch(t){var o=l.GETVPAIDAD_EXCEPTION;return o.message+=" "+t,s(o)}i.logger.info("getVPAIDAd - Retrieve ad from creative"),n.teads=n.teads||{},n.teads.api=i.config.api,e(i.vpaid)}else s(l.LOAD_VPAID_FILE_NOT_FOUND)},this.setUpCreativeContainers(this.container,t),this.loadTimeoutId=setTimeout(function(){a||s(l.LOAD_VPAID_TIMEOUT)},h.loadVpaid)},e.prototype.setUpCreativeContainers=function(t,e){this.mainContainer=document.createElement("div"),this.mainContainer.style.setProperty("position","relative"),t.appendChild(this.mainContainer),this.creativeContainer=o.createIframe(),this.creativeContainer.id="vpaid-"+this.id,this.mainContainer.appendChild(this.creativeContainer),this.getCreativeWindow(this.creativeContainer).document.write(this.getCreativeTemplate(e,this.callbackName,this.backgroundColor)),this.getCreativeWindow(this.creativeContainer).document.close(),this.vpaidContainer=this.getCreativeWindow(this.creativeContainer).document.getElementById("vpaid-container"),this.videoContainer=this.getCreativeWindow(this.creativeContainer).document.getElementById("video-container")},e.prototype.getCreativeTemplate=function(t,e,n){return'\n      <!DOCTYPE html>\n      <html>\n        <body style="margin:0px;padding:0px;overflow:hidden">\n          <script type="text/javascript">\n            var target = window.parent;\n            var script = document.createElement("script");\n            script.onload = function() {\n              target["'+e+'"](true)\n            };\n            script.onerror = function() {\n              target["'+e+'"](false)\n            };\n            script.async = true;\n            script.src = "'+t+'";\n            document.body.appendChild(script);\n          <\/script>\n          <div id="video-container"\n            style="position:absolute;top:0px;left:0px;z-index:1;background-color:'+n+'">\n          </div>\n          <div id="vpaid-container" style="position:absolute;top:0px;left:0px;z-index:2"></div>\n        </body>\n      </html>\n    '},e.prototype.getEnvironmentVars=function(t){var e=this;return void 0===t&&(t={}),r.b.of(this.environmentVars).getOrElse(function(){return e.environmentVars=Object(c.extendWithoutNull)({slot:e.vpaidContainer,videoSlot:e.initVideo(e.getCreativeWindow(e.creativeContainer),e.config.useCustomVideo&&window.teads.video.HTMLVideoCanvas),videoSlotCanAutoPlay:!0},t)})},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.mainContainer&&this.mainContainer.parentNode&&(this.mainContainer.parentNode.removeChild(this.mainContainer),this.mainContainer=null,this.videoContainer=null)},e.prototype.resize=function(t,e){if(this.currentWidth=t,this.currentHeight=e,this.mainContainer&&(this.mainContainer.style.setProperty("width",t+"px"),this.mainContainer.style.setProperty("height",e+"px")),this.creativeContainer&&(this.creativeContainer.style.setProperty("width",t+"px","important"),this.creativeContainer.style.setProperty("height",e+"px","important")),this.videoContainer){this.videoContainer.style.setProperty("width",t+"px"),this.videoContainer.style.setProperty("height",e+"px");var n=this.videoContainer.getElementsByTagName("video")[0];n&&(n.width=t,n.height=e,n.style.setProperty("width",t+"px"),n.style.setProperty("height",e+"px"))}this.vpaidContainer&&(this.vpaidContainer.style.setProperty("width",t+"px"),this.vpaidContainer.style.setProperty("height",e+"px"))},e.prototype.setBackground=function(e){t.prototype.setBackground.call(this,e),this.videoContainer&&this.videoContainer.style.setProperty("background-color",this.backgroundColor)},e.prototype.getType=function(){return f.a.JS},e.prototype.registerVPAIDEventHandler=function(t){this.callback=t;for(var e in g.a)this.vpaid.subscribe(Object(m.createVPAIDEventCallback)(t,e),e,this);for(var e in v.default)this.vpaid.subscribe(Object(m.createVPAIDEventCallback)(t,e),e,this)},e.prototype.overrideCreateElement=function(t){var e=this.creativeContainer.contentDocument||this.creativeContainer.ownerDocument;window.originalCreateElement=e.createElement;var n=this;e.createElement=function(i){return"video"===i.toLowerCase()?(n.logger.debug("createElement overriden for",i),t):window.originalCreateElement.call(e,i)}},e.prototype.initVideo=function(t,e){var n=e?this.initCustomVideo(t):this.initClassicVideo(t);return(e||a.isWhiteListedIos10Safari())&&this.overrideCreateElement(n),this.videoContainer.appendChild(n),this.resize(this.currentWidth,this.currentHeight),n},e.prototype.initCustomVideo=function(t){var e=this;t.document.registerElement=t.document.registerElement||document.registerElement,t.teads=t.teads||window.teads,t.teads.video=window.teads.video;var n=new t.teads.video.HTMLVideoCanvas;return n.addEventListener(u.error,function(t){if(e.logger.error("receive video error event",t,n.error),e.callback){e.logger.debug("callback ready to handle video error");var o=n.error&&n.error.code===d.a.MEDIA_ERR_NETWORK?"MediaProxy not ready":"unknow video error";e.logger.error(o),e.callback(new g.a(g.a.AdError,{message:o,id:i.b.UNSUPPORTED_MEDIAFILE.id}))}else e.logger.error("callback not ready to handle video error")},!1),n},e.prototype.initClassicVideo=function(t){var e=t.document.createElement("video");return e.setAttribute("webkit-playsinline","true"),e.setAttribute("playsinline","true"),e.setAttribute("muted","true"),a.isAndroid()&&a.isChromeWebView()&&e.setAttribute("poster",s.base64TransparentPixel),e},e}(p.a);e.a=A},function(t,e,n){var i=n(73),o=n(15),r=n(12),a=n(39),s=n(1),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=new s.a("Canvas"),d=function(t){function e(e,n,i){var o=t.call(this)||this;return o.container=e,o.cWidth=n,o.cHeight=i,o.totalPrintingTime=0,o.totalPrintedFrame=0,o.canvas=document.createElement("canvas"),o.canvas.width=n,o.canvas.height=i,o.canvas.style.setProperty("background","#000"),o.canvasContext=o.canvas.getContext("2d"),e.appendChild(o.canvas),o.initWebGL(),o}return c(e,t),Object.defineProperty(e.prototype,"width",{get:function(){return this.cWidth},set:function(t){this.cWidth=t,this.resize()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.cHeight},set:function(t){this.cHeight=t,this.resize()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"videoHeight",{get:function(){return this._videoHeight},set:function(t){this._videoHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"videoWidth",{get:function(){return this._videoWidth},set:function(t){this._videoWidth=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.html5video?this.html5video.parentNode:this.canvas.parentNode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this.html5video?this.html5video.style:this.canvas.style},enumerable:!0,configurable:!0}),e.prototype.useCustomDisplay=function(t){this.html5video=t,this.canvas.parentNode.replaceChild(t,this.canvas),this.resize()},e.prototype.resize=function(t,e){this.html5video?this.resizeHtml5(t,e):this.resizeCanvas(t,e),this.dispatch(r.a.RESIZE,{width:this.width,height:this.height})},e.prototype.resizeCanvas=function(t,e){t&&(this.canvas.width=this.decoderWidth=t),e&&(this.canvas.height=this.decoderHeight=e);var n=this.cWidth/this.canvas.width,i=this.cHeight/this.canvas.height,o=parseInt(Math.max((this.cHeight-this.canvas.height*n)/2,0).toFixed(2),10),r=parseInt(Math.max((this.cWidth-this.canvas.width*i)/2,0).toFixed(2),10),s=Math.min(n,i);Object(a.applyVendorProperties)(this.canvas,"transformOrigin","0 0"),Object(a.applyVendorProperties)(this.canvas,"transform","translateX("+r+"px) translateY("+o+"px) scale("+s+")"),t&&e&&(this.gl?(this.gl.useProgram(this.program),this.gl.viewport(0,0,t,e)):(this.currentRGBA=this.canvasContext.getImageData(0,0,t,e),Object(a.fillArray)(this.currentRGBA.data,255)))},e.prototype.resizeHtml5=function(t,e){this.html5video.style.setProperty("width",this.width+"px"),this.html5video.style.setProperty("height",this.height+"px")},e.prototype.renderFrame=function(t){var e=Object(a.now)();this.gl?this.renderFrameGL(t):this.renderFrame2D(t),this.totalPrintingTime+=Object(a.now)()-e,this.totalPrintedFrame++},e.prototype.renderHtmlImageElement=function(t){var e=Object(a.now)();this.canvasContext.drawImage(t,0,0),this.totalPrintingTime+=Object(a.now)()-e,this.totalPrintedFrame++},e.prototype.averagePrintingTime=function(){return this.totalPrintingTime/this.totalPrintedFrame},e.prototype.initWebGL=function(){try{this.gl=this.canvas.getContext("webgl")||this.canvas.getContext("experimental-webgl")}catch(t){return u.error('Unable to get a WebGL context: "'+t+'"'),!1}if(!this.gl)return!1;var t=this.gl.createBuffer();if(this.gl.bindBuffer(this.gl.ARRAY_BUFFER,t),this.gl.bufferData(this.gl.ARRAY_BUFFER,new Float32Array([0,0,0,1,1,0,1,1]),this.gl.STATIC_DRAW),this.program=this.gl.createProgram(),this.gl.attachShader(this.program,this.compileShader(this.gl.VERTEX_SHADER,i.SHADER_VERTEX_IDENTITY)),this.gl.attachShader(this.program,this.compileShader(this.gl.FRAGMENT_SHADER,i.SHADER_FRAGMENT_YCBCRTORGBA)),this.gl.linkProgram(this.program),!this.gl.getProgramParameter(this.program,this.gl.LINK_STATUS))throw new Error(this.gl.getProgramInfoLog(this.program));this.gl.useProgram(this.program),this.YTexture=this.createTexture(0,"YTexture"),this.CBTexture=this.createTexture(1,"CBTexture"),this.CRTexture=this.createTexture(2,"CRTexture");var e=this.gl.getAttribLocation(this.program,"vertex");return this.gl.enableVertexAttribArray(e),this.gl.vertexAttribPointer(e,2,this.gl.FLOAT,!1,0,0),this.loadingProgram=this.gl.createProgram(),this.gl.attachShader(this.loadingProgram,this.compileShader(this.gl.VERTEX_SHADER,i.SHADER_VERTEX_IDENTITY)),this.gl.attachShader(this.loadingProgram,this.compileShader(this.gl.FRAGMENT_SHADER,i.SHADER_FRAGMENT_LOADING)),this.gl.linkProgram(this.loadingProgram),this.gl.useProgram(this.loadingProgram),e=this.gl.getAttribLocation(this.loadingProgram,"vertex"),this.gl.enableVertexAttribArray(e),this.gl.vertexAttribPointer(e,2,this.gl.FLOAT,!1,0,0),!0},e.prototype.renderFrameGL=function(t){this.gl.activeTexture(this.gl.TEXTURE0),this.gl.bindTexture(this.gl.TEXTURE_2D,this.YTexture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.LUMINANCE,t.codedWidth,this.canvas.height,0,this.gl.LUMINANCE,this.gl.UNSIGNED_BYTE,t.currentY),this.gl.activeTexture(this.gl.TEXTURE1),this.gl.bindTexture(this.gl.TEXTURE_2D,this.CBTexture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.LUMINANCE,t.halfWidth,this.canvas.height/2,0,this.gl.LUMINANCE,this.gl.UNSIGNED_BYTE,t.currentCr),this.gl.activeTexture(this.gl.TEXTURE2),this.gl.bindTexture(this.gl.TEXTURE_2D,this.CRTexture),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.LUMINANCE,t.halfWidth,this.canvas.height/2,0,this.gl.LUMINANCE,this.gl.UNSIGNED_BYTE,t.currentCb),this.gl.drawArrays(this.gl.TRIANGLE_STRIP,0,4)},e.prototype.compileShader=function(t,e){var n=this.gl.createShader(t);if(this.gl.shaderSource(n,e),this.gl.compileShader(n),!this.gl.getShaderParameter(n,this.gl.COMPILE_STATUS))throw new Error(this.gl.getShaderInfoLog(n));return n},e.prototype.createTexture=function(t,e){var n=this.gl.createTexture();return this.gl.bindTexture(this.gl.TEXTURE_2D,n),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.LINEAR),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.LINEAR),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,this.gl.CLAMP_TO_EDGE),this.gl.uniform1i(this.gl.getUniformLocation(this.program,e),t),n},e.prototype.YCbCrToRGBA=function(t){for(var e,n,i,o,r,a=t.currentY,s=t.currentCb,c=t.currentCr,u=this.currentRGBA.data,d=0,l=t.codedWidth,p=t.codedWidth+(t.codedWidth-this.decoderWidth),h=0,f=t.halfWidth-(this.decoderWidth>>1),g=0,m=4*this.decoderWidth,v=4*this.decoderWidth,y=this.decoderWidth>>1,b=this.decoderHeight>>1,A=0;A<b;A++){for(var E=0;E<y;E++){e=s[h],n=c[h],h++,i=n+(103*n>>8)-179,o=(88*e>>8)-44+(183*n>>8)-91,r=e+(198*e>>8)-227;var w=a[d++],_=a[d++];u[g]=w+i,u[g+1]=w-o,u[g+2]=w+r,u[g+4]=_+i,u[g+5]=_-o,u[g+6]=_+r,g+=8;var C=a[l++],S=a[l++];u[m]=C+i,u[m+1]=C-o,u[m+2]=C+r,u[m+4]=S+i,u[m+5]=S-o,u[m+6]=S+r,m+=8}d+=p,l+=p,g+=v,m+=v,h+=f}},e.prototype.renderFrame2D=function(t){this.YCbCrToRGBA(t),this.canvasContext.putImageData(this.currentRGBA,0,0)},e}(o.a);e.a=d},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"SHADER_FRAGMENT_YCBCRTORGBA",function(){return i}),n.d(e,"SHADER_FRAGMENT_LOADING",function(){return o}),n.d(e,"SHADER_VERTEX_IDENTITY",function(){return r});var i=["precision mediump float;","uniform sampler2D YTexture;","uniform sampler2D CBTexture;","uniform sampler2D CRTexture;","varying vec2 texCoord;","void main() {","float y = texture2D(YTexture, texCoord).r;","float cr = texture2D(CBTexture, texCoord).r - 0.5;","float cb = texture2D(CRTexture, texCoord).r - 0.5;","gl_FragColor = vec4(","y + 1.4 * cr,","y + -0.343 * cb - 0.711 * cr,","y + 1.765 * cb,","1.0",");","}"].join("\n"),o=["precision mediump float;","uniform float loaded;","varying vec2 texCoord;","void main() {","float c = ceil(loaded-(1.0-texCoord.y));","gl_FragColor = vec4(c,c,c,1);","}"].join("\n"),r=["attribute vec2 vertex;","varying vec2 texCoord;","void main() {","texCoord = vertex;","gl_Position = vec4((vertex * 2.0 - 1.0) * vec2(1, -1), 0.0, 1.0);","}"].join("\n")},function(t,e,n){var i=n(15),o=n(75),r=n(77),a=n(12),s=n(3),c=n(0),u=n(20),d=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(t){function e(e,n,i,o){var r=t.call(this)||this;return r.baseUrl=e,r.meta=n,r.stream=i,r.player=o,n.audio.length&&r.init(),r}return d(e,t),e.prototype.authorizeAudio=function(t){this.api?this.api.authorizeAudio(t):t()},e.prototype.play=function(t){void 0===t&&(t=0),this.api&&this.api.play(t)},e.prototype.pause=function(){this.api&&this.api.pause()},Object.defineProperty(e.prototype,"duration",{get:function(){return this.api?this.api.duration:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.api?this.api.currentTime:0},set:function(t){this.api&&(this.api.currentTime=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this.api?this.api.volume:0},set:function(t){this.api&&(this.api.volume=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"authorized",{get:function(){return!this.api||this.api.authorized},enumerable:!0,configurable:!0}),e.prototype.canplay=function(){return!this.api||this.api.canplay()},e.prototype.playing=function(){return!!this.api&&this.api.playing()},e.prototype.release=function(){this.api&&this.api.release()},e.prototype.init=function(){var t=this;(Object(s.isAndroid)()||Object(u.isGreaterOrEqual)(Object(s.getIosVersion)(),"9.1")&&this.meta.infos.audio_size<4e5)&&Object(c.getAudioContext)()?this.api=new o.a(this.baseUrl,this.meta,this.stream,this.player.defaultVolume):this.api=new r.a(this.baseUrl,this.meta,this.player.defaultVolume),this.api.listen(a.a.CAN_PLAY,function(){return t.dispatch(a.a.CAN_PLAY)})},e}(i.a);e.a=l},function(t,e,n){var i=n(3),o=n(1),r=n(0),a=n(15),s=n(12),c=n(76),u=n(23),d=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(t){function e(e,n,a,d){void 0===d&&(d=0);var l=t.call(this)||this;l.baseUrl=e,l.meta=n,l.stream=a,l.aVolume=d,l.estimatedDuration=0,l.iosReady=!1,l.logger=new o.a("canvas.player.components.Audio"),l.file=new c.a(l.baseUrl,l.meta.audio,l.stream);var p=Object(r.getAudioContext)();return l.context=new p,l.file.listen(s.a.LOADED_DATA,l.oninit.bind(l)),l.file.listen(s.a.PROGRESS,l.onloadprogress.bind(l)),l.file.listen(s.a.LOADED,l.onload.bind(l)),l.file.listen(s.a.CAN_PLAY,l.oncanplay.bind(l)),l.file.state=u.a.INIT,Object(i.isIos)()&&(l.aVolume=0),l.iosReady=!Object(i.getIosVersion)(),l}return d(e,t),e.decodeAudioData=function(t,e,n,i){t.decodeAudioData(e.slice(0,e.byteLength),n,i)},e.prototype.authorizeAudio=function(t){if(void 0===t&&(t=function(){}),!this.iosReady){var e=Object(r.getAudioContext)(),n=this.context.createBuffer(1,1,44100),i=this.context.createBufferSource();i.buffer=n,i.connect(this.context.destination),i.start(0),i.disconnect(),this.context.close&&this.context.close(),this.context=new e,this.iosReady=!0,t()}},e.prototype.play=function(t){var e=this;if(void 0===t&&(t=0),this.file.state!==u.a.PLAYING&&this.volume&&this.iosReady){if(!this.buffer)return void setTimeout(function(){return e.play(t+.05)},50);this.resetAudio(),this.noteOnAt&&!t?(this.source.start(0,this.noteOnAt/1e3),this.noteOnAt=Date.now()-this.noteOnAt):(this.noteOnAt=Date.now()-1e3*t,this.source.start(0,t)),this.file.state=u.a.PLAYING}},e.prototype.pause=function(){this.file.state!==u.a.PAUSED&&this.source&&(this.noteOnAt=Date.now()-this.noteOnAt,this.source.stop(0),this.file.state!==u.a.STALLED&&(this.file.state=u.a.PAUSED))},e.prototype.canplay=function(){return this.file.canplay()},e.prototype.playing=function(){return this.file.state===u.a.PLAYING},e.prototype.release=function(){var t=this;this.context.close&&this.context.close().then(function(){t.buffer=null,t.gainNode&&t.gainNode.disconnect&&(t.gainNode.disconnect(),t.gainNode=null),t.source&&t.source.disconnect&&(t.source.disconnect(),t.source=null)}),this.file.state=u.a.ENDED},Object.defineProperty(e.prototype,"duration",{get:function(){return this.estimatedDuration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentTime",{get:function(){return(this.file.state===u.a.PLAYING?Date.now()-this.noteOnAt:this.noteOnAt)/1e3},set:function(t){this.file.state===u.a.PLAYING&&(this.pause(),this.noteOnAt=1e3*t,this.play())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this.aVolume},set:function(t){this.aVolume=t,this.gainNode&&(this.gainNode.gain.value=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"authorized",{get:function(){return this.iosReady},enumerable:!0,configurable:!0}),e.prototype.oninit=function(t){var n=this;this.data=t,e.decodeAudioData(this.context,t,function(t){var e=Math.ceil(n.meta.infos.audio_size/n.meta.infos.chunk_size)*t.length;n.estimatedDuration=e/t.sampleRate,n.buffer=n.context.createBuffer(t.numberOfChannels,e,t.sampleRate),n.setToMainBuffer(t)},this.logger.error.bind(this.logger))},e.prototype.onloadprogress=function(t){t&&(this.appendFileToData(t),this.decodeData())},e.prototype.onload=function(){var t=this;this.source?this.estimatedDuration=this.source.buffer.duration:setTimeout(function(){return t.onload()},50)},e.prototype.appendFileToData=function(t){var e=new Uint8Array(this.data.byteLength+t.byteLength);e.set(new Uint8Array(this.data),0),e.set(new Uint8Array(t),this.data.byteLength),this.data=e.buffer.slice(0,e.buffer.byteLength)},e.prototype.decodeData=function(){var t=this;e.decodeAudioData(this.context,this.data,function(e){t.setToMainBuffer(e)},this.logger.error.bind(this.logger))},e.prototype.setToMainBuffer=function(t){for(var e=0;e<t.numberOfChannels;e++){this.buffer.getChannelData(e).set(t.getChannelData(e),0)}},e.prototype.oncanplay=function(){this.file.state=u.a.CAN_PLAY,this.dispatch(s.a.CAN_PLAY)},e.prototype.resetAudio=function(){if(this.source)try{this.source.stop(0)}catch(t){this.logger.debug("Error when resetting audio",t)}this.gainNode=this.context.createGain(),this.source=this.context.createBufferSource(),this.source.buffer=this.buffer,this.source.connect(this.gainNode),this.gainNode.connect(this.context.destination),this.volume=this.aVolume},e}(a.a);e.a=l},function(t,e,n){var i=n(15),o=n(23),r=n(1),a=n(12),s=n(17),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(t){function e(e,n,i){var o=t.call(this)||this;return o.baseUrl=e,o.chunkUrls=n,o.streamType=i,o.chunkLoaded=0,o.chunkLength=0,o.loggerF=new r.a("canvas.player.components.File"),o.chunkNumStart=1,o.chunkNumCanPlay=3,o.chunkLength=o.chunkUrls.length,o.streamLoad(),o}return c(e,t),e.prototype.canplay=function(){return this.state===o.a.CAN_PLAY||this.state===o.a.PLAYING||this.state===o.a.PAUSED||this.state===o.a.LOADED||this.state===o.a.ENDED},e.prototype.streamLoad=function(){var t=this,e=this.baseUrl+"/"+this.chunkUrls.shift(),n=Object(s.createXmlHttpRequest)();n.open("GET",e,!0),n.responseType="arraybuffer",n.addEventListener("load",function(e){t.chunkLoaded++,t.chunkLoaded===t.chunkNumStart?t.dispatch(a.a.LOADED_DATA,n.response):t.dispatch(a.a.PROGRESS,n.response),(t.chunkLoaded===t.chunkNumCanPlay||t.chunkLength<t.chunkNumCanPlay)&&t.dispatch(a.a.CAN_PLAY),t.chunkLoaded===t.chunkLength&&t.dispatch(a.a.LOADED),t.chunkUrls.length&&t.streamLoad()}),n.addEventListener("error",this.loggerF.error.bind(this.loggerF)),n.send()},e}(i.a);e.a=u},function(t,e,n){var i=n(3),o=n(15),r=n(23),a=n(12),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(e,n,o){void 0===o&&(o=0);var r=t.call(this)||this;return r.baseUrl=e,r.meta=n,r.fakeVolume=o,r.touchOk=!1,r.node=document.createElement("audio"),r.node.src=r.baseUrl+"/"+r.meta.audio[0].replace(/\.mp3\.\w\w\w/gi,".mp3"),r.node.preload="auto",r.dispatch(a.a.CAN_PLAY),i.isIos()&&(r.fakeVolume=0),r}return s(e,t),e.prototype.authorizeAudio=function(t){void 0===t&&(t=function(){}),(!this.touchOk||this.node.readyState<=2)&&(this.touchOk=!0,this.node.play(),this.node.pause(),t())},e.prototype.play=function(t){var e=this;0!==this.fakeVolume&&this.state!==r.a.PLAYING&&(this.node.readyState<=2?setTimeout(function(){return e.play(t+.1)},100):(t&&(this.currentTime=t),this.node.play(),this.state=r.a.PLAYING))},e.prototype.pause=function(){this.node.pause(),this.state=r.a.PAUSED},Object.defineProperty(e.prototype,"duration",{get:function(){return this.node.duration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.node.currentTime},set:function(t){this.node.currentTime=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"volume",{get:function(){return this.fakeVolume},set:function(t){0===t&&this.pause(),this.fakeVolume=t,this.node.volume=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"authorized",{get:function(){return this.touchOk&&this.node.readyState>=3},enumerable:!0,configurable:!0}),e.prototype.canplay=function(){return!0},e.prototype.playing=function(){return this.state===r.a.PLAYING},e.prototype.release=function(){},e}(o.a);e.a=c},function(t,e,n){var i=n(12),o=n(111),r=n.n(o),a=function(){function t(t){var e=this;this.player=t,this.initBufferDiv(),this.player.video.listen(i.a.STALLED,function(){return e.show()}),this.player.video.listen(i.a.RESUME_AFTER_STALLED,function(){return e.hide()}),this.player.video.listen(i.a.TIME_UPDATE,function(){return e.hide()}),this.player.listen(i.a.RESIZE,function(t){return e.resize(t)})}return t.prototype.show=function(){this.player.container.insertBefore(this.container,this.player.html5video||this.player.canvas||null)},t.prototype.hide=function(){this.container.parentNode&&this.player.container.removeChild(this.container)},t.prototype.resize=function(t){this.container.style.setProperty("top",t.height/2-this.container.offsetHeight+"px"),this.container.style.setProperty("left",t.width/2-this.container.offsetWidth/2+"px")},t.prototype.initBufferDiv=function(){var e=document.createElement("div");e.innerHTML=t.TEMPLATE,this.container=e.firstChild},t.TEMPLATE=r.a,t}();e.a=a},function(t,e,n){var i=n(15),o=n(23),r=n(12),a=n(3),s=n(39),c=n(7),u=n(43),d=n(112),l=n.n(d),p=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),h=function(t){function e(n,i,r,s){var d=t.call(this)||this;d.meta=i,d.player=r,d.targetTime=0,d.frameWait=1e3/24,d.frameWaitS=1/24;var l=n+"/"+i.mp4;d.authorized=!!u.a[l]||!Object(a.isMobile)()&&!Object(a.isTablet)(),d.state=o.a.INIT_VIDEO,d.load(l),d.authorized||Object(c.addEventListener)("touchstart",s,d.authorize.bind(d));var p=document.createElement("div");return p.innerHTML=e.TEMPLATE,d.player.container.appendChild(p.firstChild),d}return p(e,t),e.prototype.canplay=function(){return!0},e.prototype.play=function(){var t=this;this.state!==o.a.PLAYING&&this.authorized?(this.state=o.a.PLAYING,this.loopPlay()):this.authorized||this.listen(r.a.CAN_PLAY,function(){return t.play()})},e.prototype.pause=function(){this.state!==o.a.STALLED&&(this.state=o.a.PAUSED,this.timer&&(clearTimeout(this.timer),this.timer=null))},e.prototype.getCurrentTime=function(){return this.video.currentTime},e.prototype.setCurrentTime=function(t){return!!(this.video.currentTime=t)},Object.defineProperty(e.prototype,"duration",{get:function(){return parseFloat(this.meta.infos.duration)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"averageDecodingTime",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"averageExtractTime",{get:function(){return 0},enumerable:!0,configurable:!0}),e.prototype.cleanStallTimeout=function(){},e.prototype.authorize=function(){this.authorized||(this.video.play(),this.video.pause(),this.authorized=!0,this.oncanplay())},e.prototype.load=function(t){var e=this,n=!!u.a[t];this.video=u.a[t]=u.a[t]||document.createElement("video"),this.video.muted=!0,n||(this.video.src=t),this.player.useCustomDisplay(this.video),this.video.onload=function(){return e.onload()},this.video.ontimeupdate=function(){return e.ondecodeframe()},this.video.onloadedmetadata=function(){e.player.videoWidth=e.video.videoWidth,e.player.videoHeight=e.video.videoHeight,e.player.dispatch(r.a.LOADED_METADATA),e.player.dispatch(r.a.DURATION_CHANGE),e.player.dispatch(r.a.LOADED_DATA),e.oncanplay()}},e.prototype.onload=function(){this.dispatch(r.a.LOADED)},e.prototype.oncanplay=function(){this.state===o.a.INIT_VIDEO&&this.authorized&&(this.state=o.a.CAN_PLAY,this.dispatch(r.a.CAN_PLAY))},e.prototype.ondecodeframe=function(){this.state!==o.a.ENDED&&this.dispatch(r.a.TIME_UPDATE)},e.prototype.onfinish=function(){this.pause(),this.video.currentTime=0,this.state=o.a.ENDED,this.dispatch(r.a.ENDED)},e.prototype.loopPlay=function(){var t=this;if(this.video.currentTime+this.frameWaitS>this.video.duration)return this.video.currentTime=this.video.duration,this.onfinish();this.video.currentTime+=this.frameWaitS;var e=this.targetTime?Math.max(-this.frameWait/2,this.targetTime-Object(s.now)()):0;this.state===o.a.PLAYING&&(this.targetTime=Object(s.now)()+this.frameWait+e,this.timer=window.setTimeout(function(){return t.loopPlay()},this.frameWait+e))},e.TEMPLATE=l.a,e}(i.a);e.a=h},function(t,e,n){var i=n(15),o=n(23),r=n(17),a=n(39),s=n(12),c=n(3),u=n(28),d=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(t){function e(e,n,i,o){var r=t.call(this)||this;return r.meta=n,r.player=o,r.videoFrames=[],r.headBuffer=0,r.head=0,r.benchFps=0,r.frameWait=1e3/24,r.frameRate=24,r.frameCachedLimit=24,r.reading=!1,r.decodingTime=0,r.extractTime=0,r.extractCount=0,r.load(e+"/"+n.tv),r}return d(e,t),e.prototype.canplay=function(){return this.head+this.frameCachedLimit<=this.videoFrames.length},e.prototype.play=function(){this.state!==o.a.PLAYING&&(this.state=o.a.PLAYING,this.isTickTimerStarted()||this.initTickTimer())},e.prototype.pause=function(){this.state!==o.a.STALLED&&(this.state=o.a.PAUSED)},e.prototype.getCurrentTime=function(){return this.state===o.a.INIT?0:this.head/this.frameRate},e.prototype.setCurrentTime=function(t){var e=Math.ceil(t*this.frameRate);return!!this.videoFrames[e]&&(this.head=e,this.player.renderHtmlImageElement(this.videoFrames[this.head]),!0)},Object.defineProperty(e.prototype,"duration",{get:function(){return parseFloat(this.meta.infos.duration)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"averageDecodingTime",{get:function(){return this.decodingTime/this.videoFrames.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"averageExtractTime",{get:function(){return this.extractTime/this.extractCount},enumerable:!0,configurable:!0}),e.prototype.cleanStallTimeout=function(){},e.prototype.load=function(t){this.xhr=Object(r.createXmlHttpRequest)(),this.xhr.open("GET",t,!0),this.xhr.responseType="text",this.xhr.onreadystatechange=this.onStateChange.bind(this),this.xhr.onload=this.onload.bind(this),this.xhr.send()},e.prototype.onStateChange=function(){this.xhr.responseText&&this.xhr.readyState>=3&&!this.reading&&this.readResponseRecursive()},e.prototype.readResponseRecursive=function(){if(this.reading){var t=Object(a.now)(),e=this.xhr.responseText.substr(this.headBuffer,4*this.meta.infos.averageFrameSize),n=new RegExp("frame\\[("+this.videoFrames.length+")\\](.*)frame\\["+(this.videoFrames.length+1)+"\\]"),i=n.exec(e);if(this.extractTime+=Object(a.now)()-t,this.extractCount++,i)this.headBuffer+=7+this.videoFrames.length.toString().length+i[2].length,this.extractFrame(i);else if(this.loaded){var o=new RegExp("frame\\[("+this.videoFrames.length+")\\](.*)"),r=o.exec(e);r&&(this.headBuffer+=7+this.videoFrames.length.toString().length+r[2].length,this.extractFrame(r))}this.headBuffer>=this.xhr.responseText.length&&(this.reading=!1,this.frameCachedLimit=0)}else this.reading=!0,this.initTickTimer()},e.prototype.initTickTimer=function(){var t=this,e=function(){t.reading&&t.readResponseRecursive(),t.state===o.a.PLAYING&&t.loopPlay()};try{this.timer=u.setInterval(function(){return e()},1,Object(c.isAmp)()||Object(c.isFacebookWebview)())}catch(t){this.tickInterval=setInterval(function(){return e()},1)}},e.prototype.stopTickTimer=function(){this.timer?(this.timer.clear(),this.timer=null):this.tickInterval&&(clearInterval(this.tickInterval),this.tickInterval=null)},e.prototype.onload=function(){this.loaded=!0,this.dispatch(s.a.LOADED)},e.prototype.oninit=function(){this.benchFps=Object(a.now)(),this.state=o.a.INIT_VIDEO,this.player.resize(this.videoFrames[0].width,this.videoFrames[0].height),this.player.videoWidth=this.videoFrames[0].width,this.player.videoHeight=this.videoFrames[0].height,this.player.dispatch(s.a.LOADED_METADATA),this.player.dispatch(s.a.DURATION_CHANGE),this.player.dispatch(s.a.LOADED_DATA),this.player.renderHtmlImageElement(this.videoFrames[0])},e.prototype.oncanplay=function(){this.state===o.a.INIT_VIDEO&&(this.state=o.a.CAN_PLAY,this.dispatch(s.a.CAN_PLAY))},e.prototype.onstalled=function(){var t=this;this.state=o.a.STALLED,this.dispatch(s.a.STALLED),this.listen(s.a.LOADED,function(){return t.onresumestalled()})},e.prototype.onresumestalled=function(){this.state===o.a.STALLED&&this.dispatch(s.a.RESUME_AFTER_STALLED)},e.prototype.ondecodeframe=function(){this.state!==o.a.ENDED&&this.dispatch(s.a.TIME_UPDATE)},e.prototype.onfinish=function(){this.state=o.a.ENDED,this.dispatch(s.a.ENDED)},e.prototype.extractFrame=function(t){var e=this,n=Object(a.now)(),i=this.videoFrames[t[1]]=new Image;i.src="data:image/jpeg;base64,"+t[2],i.onload=function(){return e.decodingTime+=Object(a.now)()-n},1===this.videoFrames.length?i.onload=function(){return e.oninit()}:this.videoFrames.length>=this.frameCachedLimit&&this.oncanplay(),this.head+this.frameCachedLimit<=this.videoFrames.length&&this.onresumestalled()},e.prototype.loopPlay=function(){if(!(Object(a.now)()<this.targetTime)){this.head++;var t=this.targetTime?Math.max(-this.frameWait/2,this.targetTime-Object(a.now)()):0;this.head>=this.videoFrames.length-1?(this.loaded&&!this.reading?(this.stopTickTimer(),this.onfinish()):this.onstalled(),this.targetTime=0):this.state===o.a.PLAYING&&(this.targetTime=Object(a.now)()+this.frameWait+t),this.head&&this.videoFrames&&this.videoFrames[this.head]&&this.player.renderHtmlImageElement(this.videoFrames[this.head]),this.head%this.frameRate==0&&this.ondecodeframe()}},e.prototype.isTickTimerStarted=function(){return!this.timer&&!this.tickInterval},e}(i.a);e.a=l},function(t,e,n){var i=n(15),o=n(23),r=n(1),a=n(12),s=n(39),c=n(31),u=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),d=function(t){function e(e,n,i,a){var s=t.call(this)||this;s.meta=n,s.player=a,s.logger=new r.a("canvas.player.components.Video"),s.head=0,s.targetTime=0,s.decodeFinish=!1,s.benchFps=0,s.benchFpsRetained=0,s.benchFpsCount=0,s.fpsLimit=0,s.frameRate=24,s.frameStart=1,s.frameCachedLimit=24,s.videoFrames=[],s.frameWait=Math.floor(1e3/s.frameRate);var u=Object(c.createBlob)('importScripts("'+s.player.parameters.assetsPath+'/teads-mpeg-decoder.min.js")');return s.worker=new Worker(Object(c.getUrl)().createObjectURL(u)),s.worker.onmessage=s.onmessage.bind(s),s.worker.postMessage(["init",e,n]),s.state=o.a.INIT,s}return u(e,t),e.prototype.canplay=function(){return this.state===o.a.CAN_PLAY||this.state===o.a.PLAYING||this.state===o.a.PAUSED||this.state===o.a.LOADED||this.state===o.a.ENDED},e.prototype.play=function(){this.state!==o.a.PLAYING&&(this.state=o.a.PLAYING,this.loopPlay())},e.prototype.pause=function(){this.state!==o.a.STALLED&&(this.state=o.a.PAUSED)},e.prototype.getCurrentTime=function(){return this.state===o.a.INIT?0:this.head/this.frameRate},e.prototype.setCurrentTime=function(t){var e=Math.ceil(t*this.frameRate);return!!this.videoFrames[e]&&(this.cleanFrame(this.head,e),this.head=e,!0)},Object.defineProperty(e.prototype,"duration",{get:function(){return this.decodeFinish?this.videoFrames.length/this.frameRate:parseFloat(this.meta.infos.duration)},enumerable:!0,configurable:!0}),e.prototype.cleanStallTimeout=function(){clearTimeout(this.timeoutStalled),this.timeoutStalled=null,this.state=o.a.PAUSED},e.prototype.onload=function(){this.dispatch(a.a.LOADED),this.decodeFinish=!0},e.prototype.oninit=function(){this.benchFps=Object(s.now)(),this.state=o.a.INIT_VIDEO,this.renderFrame()},e.prototype.oncanplay=function(){this.state=o.a.CAN_PLAY,this.dispatch(a.a.CAN_PLAY)},e.prototype.onstalled=function(){var t=this;this.state=o.a.STALLED,this.dispatch(a.a.STALLED),this.listen(a.a.LOADED,function(){return t.onresumestalled()})},e.prototype.onresumestalled=function(){this.state===o.a.STALLED&&(this.cleanStallTimeout(),this.dispatch(a.a.RESUME_AFTER_STALLED))},e.prototype.ondecodeframe=function(){this.state!==o.a.ENDED&&this.dispatch(a.a.TIME_UPDATE)},e.prototype.onfinish=function(){this.state=o.a.ENDED,this.dispatch(a.a.ENDED)},e.prototype.onmessage=function(t){switch(t.data[0]){case"frame":this.appendFrames(t.data),this.videoFrames.length===this.frameStart?this.oninit():this.videoFrames.length===this.frameCachedLimit&&this.oncanplay();break;case"initCanvas":this.player.resize(t.data[1],t.data[2]);break;case"finish":this.averageDecodingTime=t.data[1],this.onload();break;default:this.logger.debug(t.data)}},e.prototype.appendFrames=function(t){var e=this;if(this.videoFrames.push({codedWidth:t[1],halfWidth:t[2],currentY:new Uint8Array(t[3]),currentCr:new Uint8Array(t[4]),currentCb:new Uint8Array(t[5])}),this.averageDecodingTime=t[6],++this.benchFpsCount===this.frameCachedLimit){this.benchFpsRetained=Object(s.now)()-this.benchFps;var n=Math.ceil(this.frameRate*this.benchFpsRetained/1e3);this.fpsLimit=Math.max(3,Math.min(this.frameCachedLimit,n+1))}this.state===o.a.STALLED&&this.head+this.frameCachedLimit<=this.videoFrames.length&&(this.averageDecodingTime<=1e3/this.frameRate?this.timeoutStalled||(this.logger.warn("We are stalled and have",this.frameCachedLimit,"in memory, but stalled for download, so wait",2*this.benchFpsRetained,"ms"),this.timeoutStalled=setTimeout(function(){return e.onresumestalled()},2*this.benchFpsRetained),this.dispatch(a.a.BENCH_FPS,2*this.benchFpsRetained)):this.onresumestalled())},e.prototype.loopPlay=function(){var t=this;this.head++;var e=this.targetTime?Math.max(-this.frameWait/2,Math.min(0,this.targetTime-Object(s.now)())):0;this.head>=this.videoFrames.length-1?(this.decodeFinish?this.onfinish():this.onstalled(),this.targetTime=0):this.state===o.a.PLAYING&&(this.targetTime=Object(s.now)()+this.frameWait,window.setTimeout(function(){return t.loopPlay()},this.frameWait+e)),this.renderFrame(),this.head%this.frameRate==0&&this.ondecodeframe()},e.prototype.renderFrame=function(){this.videoFrames[this.head]&&(this.player.renderFrame(this.videoFrames[this.head]),this.videoFrames[this.head]=null,this.videoFrames.length<this.head+this.fpsLimit&&(this.benchFps=Object(s.now)(),this.benchFpsCount=0,this.worker.postMessage(["resume"])))},e.prototype.cleanFrame=function(t,e){for(var n=t;n<e;n++)this.videoFrames[n]=null},e}(i.a);e.a=d},function(t,e,n){var i=n(15),o=n(23),r=n(12),a=n(7),s=n(43),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(t){function e(e,n,i,r){var c=t.call(this)||this;c.meta=n,c.player=i;var u=e+"/"+n.mp4;return c.authorized=!!s.a[u],c.state=o.a.INIT_VIDEO,c.load(u),c.authorized||Object(a.addEventListener)("touchstart",r,c.authorize.bind(c)),c}return c(e,t),e.prototype.canplay=function(){return!0},e.prototype.play=function(){this.state!==o.a.PLAYING&&(this.state=o.a.PLAYING,this.video.play())},e.prototype.pause=function(){this.state!==o.a.STALLED&&(this.state=o.a.PAUSED,this.video.pause())},e.prototype.getCurrentTime=function(){return this.video.currentTime},e.prototype.setCurrentTime=function(t){return!!(this.video.currentTime=t)},Object.defineProperty(e.prototype,"duration",{get:function(){return parseFloat(this.meta.infos.duration)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"averageDecodingTime",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"averageExtractTime",{get:function(){return 0},enumerable:!0,configurable:!0}),e.prototype.cleanStallTimeout=function(){},e.prototype.authorize=function(){this.authorized||(this.authorized=!0,this.video.play(),this.state!==o.a.PLAYING&&this.video.pause(),this.oncanplay())},e.prototype.load=function(t){var e=this;this.video=s.a[t]=s.a[t]||document.createElement("video"),this.video.setAttribute("webkit-playsinline","true"),this.video.src=t,this.video.onload=function(){return e.onload()},this.video.onended=function(){return e.onfinish()},this.video.ontimeupdate=function(){return e.ondecodeframe()},this.video.onloadedmetadata=function(){e.player.videoWidth=e.video.videoWidth,e.player.videoHeight=e.video.videoHeight,e.player.dispatch(r.a.LOADED_METADATA),e.player.dispatch(r.a.DURATION_CHANGE),e.player.dispatch(r.a.LOADED_DATA),e.oncanplay()},this.player.useCustomDisplay(this.video)},e.prototype.onload=function(){this.dispatch(r.a.LOADED)},e.prototype.oncanplay=function(){this.state===o.a.INIT_VIDEO&&this.authorized&&(this.state=o.a.CAN_PLAY,this.dispatch(r.a.CAN_PLAY))},e.prototype.ondecodeframe=function(){this.state!==o.a.ENDED&&this.dispatch(r.a.TIME_UPDATE)},e.prototype.onfinish=function(){this.state=o.a.ENDED,this.dispatch(r.a.ENDED)},e}(i.a);e.a=u},function(t,e,n){n.d(e,"a",function(){return i});var i;!function(t){t[t.FULL=0]="FULL",t[t.SMART=1]="SMART",t[t.NO_STREAM=2]="NO_STREAM"}(i||(i={}))},function(t,e,n){var i;!function(t){t[t.MEDIA_ERR_ABORTED=1]="MEDIA_ERR_ABORTED",t[t.MEDIA_ERR_NETWORK=2]="MEDIA_ERR_NETWORK",t[t.MEDIA_ERR_DECODE=3]="MEDIA_ERR_DECODE",t[t.MEDIA_ERR_SRC_NOT_SUPPORTED=4]="MEDIA_ERR_SRC_NOT_SUPPORTED"}(i||(i={})),e.a=i},function(t,e,n){var i=n(8),o=n(58),r=n(19),a=n(173),s=n.n(a),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timerClass="countdown-timer",e}return c(e,t),e.prototype.init=function(){if(this.countdown=Number(this.config.countdown),this.countdown<=0||isNaN(this.countdown))return void this.onEnded();var t=o.replacePlaceholders(e.TEMPLATE,{"countdown-duration":this.countdown,"countdown-id":"countdown-"+i.rand(10)});this.getElement().innerHTML=t,this.countdownTextElement=this.getElement().querySelector("."+this.timerClass)},e.prototype.initTimer=function(){var t=this,e=function(){t.isPaused()||t.countdown--,t.countdown<=0?(t.hide(),t.onEnded()):t.updateDisplay()};this.timerInterval=setInterval(e,1e3),this.updateDisplay()},e.prototype.stopTimer=function(){clearInterval(this.timerInterval)},e.prototype.setCountdown=function(t){this.countdown=t,this.updateDisplay()},e.prototype.resume=function(){this.paused=!1},e.prototype.pause=function(){this.paused=!0},e.prototype.isPaused=function(){return this.paused},e.prototype.isEnded=function(){return this.ended},e.prototype.setEndedCallback=function(t){this.callback=t},e.prototype.removeEndedCallback=function(){this.callback=null},e.prototype.onEnded=function(){if(clearInterval(this.timerInterval),this.ended=!0,this.hide(),this.callback&&"function"==typeof this.callback)try{this.callback()}catch(t){this.logger.error("countdown ended callback failled",t)}},e.prototype.updateDisplay=function(){this.countdownTextElement&&this.countdownTextElement.setAttribute&&this.countdownTextElement.setAttribute("data-countdown",String(this.countdown))},e.TEMPLATE=s.a,e}(r.a);e.a=u},function(t,e,n){n.d(e,"a",function(){return i});var i;!function(t){t.AD_VERIFICATIONS="AdVerifications",t.MOAT_JS="MoatJs",t.VISIBILITY="Visibility",t.HTML="Html",t.IFRAME="Iframe",t.SCRIPT="Script",t.ALENTY="Alenty",t.TEADS_IAS="teads-IAS"}(i||(i={}))},function(t,e,n){var i=n(51),o=n(71),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.loadVpaid=function(n,i,o){n===e.CANVAS?this.loadBundled(e.CANVAS,i,o):n===e.VIDEO?this.loadBundled(e.VIDEO,i,o):t.prototype.loadVpaid.call(this,n,i,o)},e.prototype.loadBundled=function(t,n,o){this.setUpCreativeContainers(this.container,t);var r=this.getCreativeWindow(this.creativeContainer);switch(r.teads=window.teads,r.teads.api=this.config.api,t){case e.VIDEO:this.vpaid=new r.teads.video.VPAIDVideo;break;case e.CANVAS:this.vpaid=new r.teads.video.VPAIDCanvas;break;default:return o(i.BUNDLE_ASSET_NOT_EXISTING)}n(this.vpaid)},e.prototype.getCreativeTemplate=function(t,e,n){return'\n      <!DOCTYPE html>\n      <html>\n        <body style="margin:0px;padding:0px;overflow:hidden">\n          <div id="video-container" style="position:absolute;top:0px;left:0px;z-index:1;background-color:'+n+'"></div>\n          <div id="vpaid-container" style="position:absolute;top:0px;left:0px;z-index:2"></div>\n        </body>\n      </html>\n    '},e.CANVAS="canvas",e.VIDEO="video",e}(o.a);e.a=a},function(t,e,n){n.d(e,"a",function(){return i}),n.d(e,"b",function(){return b});var i,o=n(92),r=n(125),a=n(89),s=n(181),c=n(127),u=n(1),d=n(0),l=n(20),p=n(37),h=n(3),f=n(17),g=n(2),m=n(28),v=n(18),y=n(13);!function(t){t[t.VIDEO=0]="VIDEO",t[t.MPEG=1]="MPEG",t[t.TV=2]="TV",t[t.FLASH=3]="FLASH",t[t.VPAIDJS=4]="VPAIDJS",t[t.VPAIDFLASH=5]="VPAIDFLASH"}(i||(i={}));var b;!function(t){t.landscape="l",t.square="s",t.vertical="v"}(b||(b={}));var A=function(){function t(){}return t.getPreferredMediafileTypes=function(t){var e=[i.VIDEO,i.VPAIDJS,i.TV,i.MPEG,i.VPAIDFLASH,i.FLASH];return h.isDesktop()||(e=g.filter(e,function(t){return t!==i.VPAIDJS}).concat([i.VPAIDJS])),h.isIE()?e=g.filter(e,function(t){return t!==i.TV&&t!==i.MPEG}):h.isSDK()?e=[i.VIDEO,i.VPAIDJS]:h.isIos()&&l.isLowerThan(h.getIosVersion(),"8")?e=t===o.b.HTML5?[i.VIDEO]:h.isIpad()?[i.MPEG,i.TV]:[]:(t===o.b.CANVAS||h.isIos()&&(l.isLowerThan(h.getIosVersion(),"10")||!h.isWhiteListedIos10Safari()&&!h.isFacebookWebviewIOS10())&&t!==o.b.HTML5)&&(e=g.filter(e,function(t){return t!==i.VIDEO})),Object(p.hasFlash)()||(e=g.filter(e,function(t){return t!==i.FLASH&&t!==i.VPAIDFLASH})),e},t.getElectedMediafiles=function(e,n){var o=t.getPreferredMediafileTypes(n),r=[];g.map(e,function(t){t.api&&t.api.toLowerCase&&(t.api=t.api.toLowerCase()),t.type&&t.type.toLowerCase&&(t.type=t.type.toLowerCase())});for(var a=0,s=o.length;a<s&&0===r.length;){switch(o[a]){case i.VIDEO:r=g.filter(e,t.isPlayableVideo);break;case i.TV:r=g.filter(e,t.isTv);break;case i.MPEG:r=g.filter(e,t.isMpeg);break;case i.VPAIDJS:r=g.filter(e,t.isVpaidJS);break;case i.VPAIDFLASH:r=g.filter(e,t.isVpaidFlash);break;case i.FLASH:r=g.filter(e,t.isFlash)}a++}return r},t.extractMediafileFromPing=function(e,n){var i=t.sortMediafilesByBitrate(e,t.getMaxBitrateForContext()),o=Math.max(n/t.pingDuration.max,0);return i[Math.max(0,Math.min(i.length,Math.ceil(i.length*o))-1)]},t.sortMediafilesByBitrate=function(t,e){var n=t.map(function(t){return t.bitrate=t.bitrate||2*e.max,t}),i=n.filter(function(t){return t.bitrate<=e.max&&t.bitrate>=e.min});return i=i.length?i:n,i.sort(function(t,e){return e.bitrate-t.bitrate})},t.getMaxBitrateForContext=function(){return h.isMobile()?t.bitrates.mobile:t.bitrates.default},t.getMediaProvider=function(e){switch(e.type){case"video/x-flv":return Object(p.hasFlash)()?r.a.FLASH:r.a.UNSUPPORTED;case"application/x-shockwave-flash":case"application/x-javascript":case"application/javascript":case"text/javascript":return r.a.VPAID;case"video/mpg":case"video/mpeg":case"video/tv":return h.cacheCanvasUsed(!0),r.a.CANVAS;default:return t.isPlayableVideo(e)?r.a.JS:r.a.UNSUPPORTED}},t.getOptimalMediaFiles=function(e,n,i){if(0===e.length)return null;var r=t.getEncodingCandidate(e.slice()),a=t.getElectedMediafiles(e,i);if(i!==o.b.CANVAS&&!l.isGreaterOrEqual(h.getIosVersion(),"8")||0!==a.length&&!t.isVpaidJS(a[0])||!r)if(a.length>1)t.ping(a[0].url,function(e){var i=t.extractMediafileFromPing(a,e);n(i,e)});else if(1===a.length)n(a[0],null);else{var s="No Mediafile for this context";n(null,null,s),t.logger.info("getOptimalMediaFiles",s)}else t.ping(r.url,function(e,i){t.waitForProxy(r.url,i,function(t,i){r.url=t,r.type="video/tv",n(t?r:null,e,i)})})},t.ping=function(e,n,i){void 0===i&&(i=!0);var o,r,s,c=f.createXmlHttpRequest(),u=v.now(),d=!1,l=function(c){s.clear(),d||(d=!0,i?t.ping(e,n,!1):o||(o=v.now()-u,r=o<=100?1e3:o<200?700:o<400?500:300,n(o,r),a.b.sendInfo("ping "+[o,c].join(";"))))};s=m.setTimeout(function(){return l("timeout")},t.pingDuration.max),c.open("HEAD",e+(e.indexOf("?")>-1?"&":"?")+u,!0),c.addEventListener("load",function(){return l("load")}),c.addEventListener("error",function(){return l("error")}),c.send()},t.waitForProxy=function(e,n,i){var o=location.hostname.match(/.+\.sandbox\.teads\.net|localdocker/),r=Object(d.getProtocol)()+"//[HOST]/transcode?url=[URL]&bitrate=[BITRATE]".replace(/\[HOST\]/,o?o[0]+":18088":"mp.teads.tv").replace(/\[URL\]/,encodeURIComponent(e)).replace(/\[BITRATE\]/,n.toString()),s=f.createXmlHttpRequest(),c=!1;s.open("GET",r,!0),s.onreadystatechange=function(){var e;if(4===s.readyState&&!c){switch(c=!0,s.status){case 200:i(s.responseText);break;case 202:e="Mediaproxy - encoding ongoing - need wait",i(null,e);break;case 201:e="Mediaproxy - encoding init - need one more call to encode",i(null,e);break;case 410:e="Mediaproxy - encoding failed",i(null,e);break;case 400:e="Mediaproxy - bad request",i(null,e);break;default:e="Mediaproxy - other error - "+s.status,i(null,e)}t.logger.debug("proxy resp",s.status),a.b.sendInfo(["proxy","resp",s.status].join(" "))}},s.send(),a.b.sendInfo("proxy call")},t.getOptimalMediaFile=function(e,n,i){i.formatConfig&&i.formatConfig.allowedPlayer?(h.isCanvasNeeded(i.formatConfig.allowedPlayer.isCustomContext())&&i.formatConfig.allowedPlayer.setValue(o.b.CANVAS),i.type=i.formatConfig.allowedPlayer.getValue()):h.isCanvasNeeded()&&(i.type=o.b.CANVAS);var r=v.measure("measureAutoplay","markAutoplayStartTime","markAutoplayEndTime");if(r){var s=i.type===o.b.CANVAS?"dis":"en";a.b.sendInfo("autoplay "+s+"-"+Math.round(r.duration))}t.getOptimalMediaFiles(e,function(t,e,i){t?(a.b.sendInfo("media "+t.type),n(t,e?" -> ping: "+e+"ms":"")):n(null,i)},i.type)},t.getOptimalHeight=function(e,n,i){return n?Math.ceil(n/t.getRatio(e,i)):0},t.getRatio=function(e,n){var i=!t.isInternalMediafile(e.url);return!e.height||!e.width||!n&&i&&e.api&&"vpaid"===e.api.toLowerCase()&&e.width>e.height?16/9:e.width/e.height},t.getAssetFromMediaProvider=function(t){var e;switch(t){case r.a.JS:e=c.a.vpaidvideojs;break;case r.a.FLASH:e=c.a.vpaidvideoswf;break;case r.a.CANVAS:e=c.a.vpaidcanvas;break;default:e=""}return e},t.getEncodingCandidate=function(t){var e;return t.forEach(function(t){var n=t.type||"";switch(t.weight=0,n.split("/").pop()){case"mov":t.weight=150;break;case"mp4":t.weight=100;break;case"flv":case"x-flv":t.weight=75;break;case"webm":case"ogg":case"ogv":t.weight=50}(!e||e.weight<=t.weight)&&(e=e||t,(e.weight<t.weight||e.bitrate<t.bitrate)&&(e=t))}),e.weight?e:null},t.isInternalMediafile=function(t){return/(ebu?z|teads)/gi.test(Object(y.parse)(t).host)},t.sendMediasToSumologic=function(e,n){try{var i={},o=g.map(g.filter(e.mediaFiles,function(t){return!i[t.type]&&(i[t.type]=!0,!0)}),function(t){return t.type}),r=g.map(e.wrappers,function(t){return Object(y.parse)(t).hostname});a.b.sendInfo("[mf-"+n+"] "+o.join(" | ")+"||"+r.join(" > "))}catch(e){t.logger.error("sendMediasToSumologic error",e)}},t.getRatioCategory=function(t){return t.width>t.height?b.landscape:t.width===t.height?b.square:b.vertical},t.getMediaFileRatioLog=function(e,n,i){return"mediafile-ratio "+[t.getRatioCategory(e),""+n,i.map(String).getOrElse(function(){return"n"})].join("|")},t.isMpeg=function(t){return/^video\/mpe?g$/.test(t.type)},t.isTv=function(t){return"video/tv"===t.type},t.isFlash=function(t){return"video/x-flv"===t.type},t.isVideo=function(e){return!t.isMpeg(e)&&!t.isTv(e)&&!t.isFlash(e)&&/^video\/*/.test(e.type)},t.isPlayableVideo=function(e){return t.isVideo(e)&&s.canPlay(e.type)},t.isVpaidFlash=function(t){return"vpaid"===t.api&&t.type.indexOf("application/x-shockwave-flash")>-1},t.isVpaidJS=function(t){return"vpaid"===t.api&&t.type.indexOf("javascript")>-1},t.logger=new u.a("player.MediaFileHelper"),t.bitrates={mobile:{min:200,max:5e3},default:{min:200,max:1e4}},t.pingDuration={max:600},t}();e.c=A},function(t,e,n){n.d(e,"b",function(){return I});var i=n(153),o=n(170),r=n(92),a=n(125),s=n(88),c=n(65),u=n(68),d=n(6),l=n(87),p=n(48),h=n(51),f=n(113),g=n(24),m=n(4),v=n(16),y=n(1),b=n(29),A=n(11),E=n(3),w=n(2),_=n(37),C=n(158),S=n(58),T=n(159),O=n(206),I=new g.a,P=function(){function t(t,e,n){var i=this;this.container=t,this.config=e,this.sessionStore=n,this.logger=new y.a("player.VASTPlayer"),this.plugins={},this.logger.info("new VASTPlayer",this.container,this.config),this.vastLib=new u.a({assetsUrl:this.config.path,replaceIASVPAID:this.config.replaceIASVPAID},this.sessionStore.wigo),e.disableSumologic||(I.init(g.a.CONFIGS.PLAYER,this.sessionStore.businessIds.pid),I.sendMetadata("2.19.149;"+E.getContextSummary())),this.sessionStore.wigo.forEach(function(t){t.valid(2,0),t.setPlayerContainer(i.container)})}return t.prototype.loadVast=function(t,e,n){this.vastLib.load(t,this.getOnVastLoadedCallback(e),this.getOnVastErrorCallback(n))},t.prototype.parseVast=function(t,e,n){this.vastLib.parse(t,this.getOnVastLoadedCallback(e),this.getOnVastErrorCallback(n))},t.prototype.setLinearAd=function(t){this.linearAd=t,this.vastTracker=new i.a(t,this.sessionStore,I),this.logger.info("setLinearAd",t),this.sessionStore.wigo.forEach(function(e){return e.valid(2,1,t,b.c.infoType.MODAL)})},t.prototype.getLinearAd=function(){return this.linearAd},t.prototype.getMediafile=function(){return this.mediafile},t.prototype.getConfig=function(){return this.config},t.prototype.showCloseButton=function(){this.ui.showComponent("closebutton")},t.prototype.setConfigUI=function(t){this.config.ui=t},t.prototype.getOptimalMediaFile=function(t,e,n){var i=this;return void 0===n&&(n=function(t){return!0}),s.c.getOptimalMediaFile(this.linearAd.mediaFiles,function(o,r){var a=m.b.of(o);a.match({some:function(o){a.filter(n).match({some:function(e){t(e),i.sessionStore.wigo.forEach(function(t){return t.valid(2,2,e.url+r,b.c.infoType.STRING)})},none:function(){i.onVastError(e,v.a.get(v.b.MEDIAFILE_DISPLAY.id,"Mediafile filtered by the custom filter"),i.linearAd),i.sessionStore.wigo.forEach(function(t){return t.valid(2,2,"405 - Mediafile filtered by the custom filter",b.c.infoType.ERROR)})}})},none:function(){var t=v.a.get(v.b.UNSUPPORTED_MEDIAFILE.id,"VASTPlayer.getOptimalMediaFile didn't find mediafile");i.sessionStore.wigo.forEach(function(t){return t.valid(2,2,r,b.c.infoType.ERROR)}),i.onVastError(e,t,i.linearAd)}}),s.c.sendMediasToSumologic(i.linearAd,o?1:0)},this.config)},t.prototype.playOptimalMediaFile=function(t,e,n){var i=this;this.getOptimalMediaFile(function(n){i.playMediaFile(n,t,e)},e,n)},t.prototype.loadOptimalMediaFile=function(t,e,n){var i=this;this.getOptimalMediaFile(function(n){i.loadMediaFile(n,t,e)},e,n)},t.prototype.playMediaFile=function(t,e,n){if(!t){var i=v.a.get(v.b.UNSUPPORTED_MEDIAFILE.id,"no mediafile provided in VASTPlayer.playMediaFile");return this.onVastError(n,i,this.linearAd)}var o=function(t,n){e(t,n),t.subscribe(function(){t.startAd()},d.a.AdLoaded),t.initAd(n.width,n.height,n.mode,n.bitrate,n.parameters)};this.loadMediaFile(t,o,n)},t.prototype.loadMediaFile=function(e,n,i){var u=this,d=function(t){u.onVastError(i,t,u.linearAd)};if(!e)return d(v.a.get(v.b.UNSUPPORTED_MEDIAFILE.id,"no mediafile provided in VASTPlayer.loadMediaFile"));this.mediafile=e;var g=s.c.getMediaProvider(e),m=e.url,y=this.config.width?this.config.width:this.container.offsetWidth,w={width:y,height:this.config.height?this.config.height:s.c.getOptimalHeight(e,y),mode:"normal",bitrate:e.bitrate||512,parameters:this.linearAd.adParameters},I=this.linearAd.clickThrough.length?this.linearAd.clickThrough[0]:null,P=function(t){d(v.a.get(v.b.UNSUPPORTED_MEDIAFILE.id,t))},k=this.config.useCustomVideo||!1,L=!1,x=!!c.getExtension(this.linearAd);switch(g){case a.a.VPAID:if(I=null,"display"===this.config.adType||"native"===this.config.adType)break;"vpaid"===e.api&&e.type.indexOf("javascript")>-1&&(E.isIos()&&!E.isWhiteListedIos10Safari()?k=!0:this.config.type===r.b.CANVAS&&(k=!0),E.cacheCanvasUsed(k));break;case a.a.FLASH:case a.a.JS:case a.a.CANVAS:m=this.config.path+"/"+s.c.getAssetFromMediaProvider(g),g===a.a.JS?m=l.a.VIDEO:g===a.a.CANVAS&&(m=l.a.CANVAS,x&&(m=l.a.VIDEO,k=!0));var R=this.config.path.match("/dist")||0===this.config.path.indexOf("http")?this.config.path.match("/dist")&&0!==this.config.path.indexOf("http")?window.location.protocol+window.location.host+this.config.path:this.config.path:window.location.protocol+this.config.path;L=function(){try{return!u.config.ui.config.components.endscreen.disable}catch(t){return u.logger.error("Couldn't autostop: \""+t+'"'),!1}}(),w.parameters={url:e.url,debug:this.config.debug,clickThrough:I,skippable:this.linearAd.skippable,skipoffset:this.linearAd.skipDelay,assetsPath:R,type:r.b[this.config.type],pid:this.sessionStore.businessIds.pid,noAutoStop:L,timeout:t.MEDIAFILE_TIMEOUT_DELAY},g===a.a.FLASH?w.parameters=A.stringify(w.parameters):w.parameters={AdParameters:A.stringify(w.parameters)},p.setInitAd(t.MEDIAFILE_TIMEOUT_DELAY+2e3);break;case a.a.UNSUPPORTED:default:return P("media not supported "+e.type)}if(g===a.a.FLASH&&!_.hasFlash()||g===a.a.VPAID&&!_.hasFlash()&&e.url.indexOf(".swf")>-1)return P("Flash plugin is required");var D={path:this.config.path,useCustomVideo:k,api:this.config.vpaidApi};p.setLoadVpaid(t.MEDIAFILE_TIMEOUT_DELAY),this.config.background&&(D.background=this.config.background);var N=this.container;if(this.config.ui){var V;if(this.config.ui.template)V=this.config.ui.template;else{if(!C[this.config.ui.name]){var M=v.a.get(v.b.UNDEFINED.id,"VASTPlayer: cannot find template for VPAID-UI");return d(M)}V=S.replacePlaceholders(C[this.config.ui.name],{assetsPath:this.config.path+"/assets"})}this.config.ui.config.showAdChoicesIcon=this.config.adChoicesIconLocation===r.a.IN,this.config.ui.config=this.config.ui.config||{},this.config.ui.config.clickthrough=I,g===a.a.VPAID&&(this.config.ui.config.vpaidUrl=e.url),this.config.ui.config.noAutoStop=L,this.ui&&this.ui.getContainer()&&(this.config.ui.config.container=this.ui.getContainer()),this.ui=new T.a(this.container,V,this.config.ui.config),N=this.ui.getVPAIDContainer(),this.smartPosition=new O.a(this.ui)}var F=new f.a(N,D);this.sessionStore.wigo.forEach(function(t){return F.setWigoi(t)});var U=function(t){u.sessionStore.wigo.forEach(function(t){return t.valid(3,0)}),u.config.ui?(u.ui.setVPAID(t),u.vpaidAd=u.ui):u.vpaidAd=t,u.sessionStore.wigo.forEach(function(t){return u.vpaidAd.setWigoi(t)});for(var i in o)try{var r=o[i];u.plugins[i]&&u.plugins[i].deinit(),u.plugins[i]=new r(u.container,u.config,u.vpaidAd,e,u.linearAd,u.vastTracker,u.sessionStore.businessIds),u.plugins[i].init()}catch(t){u.logger.error("Could not initialize plugin "+i,t)}try{n(u.vpaidAd,w)}catch(t){var s=v.a.get(v.b.UNDEFINED.id,"loadMediaFile success callback failled "+t,t);d(s)}u.logger.info("loadMediaFile",a.a[g]),u.sessionStore.wigo.forEach(function(t){return t.valid(2,3,a.a[g],b.c.infoType.STRING)})};F.load(m,U,function(t){var e=v.b.UNDEFINED.id;switch(t.id){case h.GETVPAIDAD_EXCEPTION.id:case h.FLASH_SECURITY_ERROR.id:case h.FLASH_UNKNOWN_ERROR.id:case h.FLASH_INIT_ERROR.id:e=v.b.GENERAL.id;break;case h.LOAD_VPAID_FILE_NOT_FOUND.id:case h.FLASH_IO_ERROR.id:e=v.b.FILE_NOT_FOUND.id;break;case h.LOAD_VPAID_TIMEOUT.id:e=v.b.MEDIAFILE_TIMEOUT.id;break;case h.FLASH_PLUGIN_MISSING.id:e=v.b.UNSUPPORTED_MEDIAFILE.id}var n=t.message||"vpaidloader error";d(v.a.get(e,n))})},t.prototype.getPlugin=function(t){return this.plugins[t]},t.prototype.getPlugins=function(){return this.plugins},t.prototype.hasMoatExtension=function(t){return void 0===t&&(t=this.linearAd),!!t&&w.filter(t.extensions||[],function(t){return"MoatJs"===t.type}).length>0},t.prototype.updateSumologicBusinessIds=function(t){I.fillEmptyBusinessIds(t)},t.prototype.getOnVastLoadedCallback=function(t){var e=this;return function(n){e.setLinearAd(n),t(e.linearAd)}},t.prototype.getOnVastErrorCallback=function(t){var e=this;return function(n,i){e.setLinearAd(i),e.onVastError(t,n,i)}},t.prototype.onVastError=function(t,e,n){this.vastTracker.trackError(m.b.of(this.mediafile),e),t(e,n)},t.MEDIAFILE_TIMEOUT_DELAY=15e3,t}();e.a=P},function(t,e,n){n.d(e,"a",function(){return r});var i=n(1),o=new i.a("VPAIDJSGuard"),r=function(){function t(){}return t.prototype.getVPAID=function(){return this.vpaid},t.prototype.initAd=function(t,e,n,i,o,r){this.vpaidguard("initAd",[t,e,n,i,o,r])},t.prototype.skipAd=function(){this.vpaidguard("skipAd")},t.prototype.resizeAd=function(t,e,n){void 0===n&&(n="normal"),this.vpaidguard("resizeAd",[t,e,n])},t.prototype.handshakeVersion=function(t){return this.vpaidguard("handshakeVersion",[t])},t.prototype.startAd=function(){this.vpaidguard("startAd",[])},t.prototype.stopAd=function(){this.vpaidguard("stopAd",[])},t.prototype.pauseAd=function(){this.vpaidguard("pauseAd",[])},t.prototype.resumeAd=function(){this.vpaidguard("resumeAd",[])},t.prototype.expandAd=function(){this.vpaidguard("expandAd",[])},t.prototype.collapseAd=function(){this.vpaidguard("collapseAd",[])},t.prototype.getAdLinear=function(){return this.vpaidguard("getAdLinear",[])},t.prototype.getAdWidth=function(){return this.vpaidguard("getAdWidth",[])},t.prototype.getAdHeight=function(){return this.vpaidguard("getAdHeight",[])},t.prototype.getAdExpanded=function(){return this.vpaidguard("getAdExpanded",[])},t.prototype.getAdSkippableState=function(){return this.vpaidguard("getAdSkippableState",[])},t.prototype.getAdRemainingTime=function(){return this.vpaidguard("getAdRemainingTime",[])},t.prototype.getAdDuration=function(){return this.vpaidguard("getAdDuration",[])},t.prototype.getAdVolume=function(){return this.vpaidguard("getAdVolume",[])},t.prototype.getAdCompanions=function(){return this.vpaidguard("getAdCompanions",[])},t.prototype.getAdIcons=function(){return this.vpaidguard("getAdIcons",[])},t.prototype.setAdVolume=function(t){return this.vpaidguard("setAdVolume",[t])},t.prototype.subscribe=function(t,e,n){this.vpaidguard("subscribe",[t,e,n])},t.prototype.unsubscribe=function(t,e){this.vpaidguard("unsubscribe",[t,e])},t.prototype.setVPAID=function(t){this.vpaid=t},t.prototype.vpaidguard=function(t,e){void 0===e&&(e=[]);try{return this.callVPAIDMethod(t,e)}catch(t){o.error('VPAID method guard error: "'+t+'"')}},t.prototype.callVPAIDMethod=function(t,e){return void 0===e&&(e=[]),this.vpaid[t].apply(this.vpaid,e)},t}()},function(t,e,n){var i=n(1),o=n(16),r=n(29),a=n(2),s=n(4),c=n(90),u=n(26),d=n(45),l=n(6),p=n(46),h=n(48),f=n(47),g=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.status=u.a.READY,e.type=d.a.JS,e.timeoutId={},e.dispatchedEvents={},e.wigoi=null,e.eventHandler=new f.a,e}return g(e,t),e.log=function(t){a.indexOf(e.hasLogged,t)<0&&(e.logger.info(t),e.hasLogged.push(t))},e.prototype.initAd=function(e,n,i,o,r,a){void 0===r&&(r="");try{Object(p.checkVpaidStatus)("initAd",this.status)}catch(t){return this.dispatchEvent(l.a.AdLog,t)}this.status=u.a.LOADING,this.environmentVars=a,t.prototype.initAd.call(this,e,n,i,o,r,a)},e.prototype.handleAdCallTimeout=function(t){var e=this,n=h.initAd-t,i=function(){e.dispatchedEvents[l.a.AdLoaded]||e.dispatchEvent(l.a.AdError,{message:"Creative did not initiated after "+h.initAd+"ms (current status "+e.status+")",id:o.b.GENERAL.id})};if(!this.timeoutId.initAd&&n>0){try{window.teads.player.playerSumologic.sendInfo("timeout adloaded "+n)}catch(t){}this.timeoutId.initAd=setTimeout(i,n)}else n<0&&i()},e.prototype.startAd=function(){var e=this;try{Object(p.checkVpaidStatus)("startAd",this.status)}catch(t){return this.dispatchEvent(l.a.AdLog,t)}this.status=u.a.STARTING,this.timeoutId.startAd=setTimeout(function(){e.dispatchedEvents[l.a.AdStarted]||e.dispatchEvent(l.a.AdError,{message:"Creative did not start after "+h.startAd+"ms",id:o.b.GENERAL.id})},h.startAd),t.prototype.startAd.call(this)},e.prototype.stopAd=function(){var e=this;this.status>u.a.STOPPING&&(this.status=u.a.STOPPING,this.clearAllTimeout(),this.timeoutId.stopAd=setTimeout(function(){e.dispatchedEvents[l.a.AdStopped]||(e.dispatchEvent(l.a.AdLog,"Creative did not stop after "+h.stopAd+"ms, force stop !"),e.dispatchEvent(l.a.AdStopped))},h.stopAd),this.environmentVars&&this.environmentVars.videoSlot&&(this.environmentVars.videoSlot.volume=0),t.prototype.stopAd.call(this))},e.prototype.skipAd=function(){var e=this;if(this.status>u.a.SKIPPING){this.status=u.a.SKIPPING,this.timeoutId.skipAd=setTimeout(function(){e.status>=u.a.SKIPPING&&(e.dispatchEvent(l.a.AdLog,"Creative did not skip after "+h.skipAd+"ms, force skip !"),e.dispatchEvent(l.a.AdSkipped),e.stopAd())},h.skipAd);try{t.prototype.skipAd.call(this)}catch(t){this.dispatchEvent(l.a.AdLog,"SkipAd throw an exception "+t)}}},e.prototype.subscribe=function(t,e,n){this.eventHandler.subscribe(t,e,n)},e.prototype.unsubscribe=function(t,e){this.eventHandler.unsubscribe(t,e)},e.prototype.getAdWidth=function(){var t=this.vpaid.getAdWidth();return String(t).indexOf("%")>-1&&!s.b.ofNested(this.environmentVars,"slot.offsetWidth").isEmpty()?t=this.environmentVars.slot.offsetWidth:String(t).indexOf("px")&&(t=parseInt(String(t).replace("px",""),10)),t},e.prototype.getAdHeight=function(){var t=this.vpaid.getAdHeight();return(String(t).indexOf("%")>-1||parseInt(String(t),10)<=0)&&!s.b.ofNested(this.environmentVars,"slot.offsetHeight").isEmpty()?t=this.environmentVars.slot.offsetHeight:String(t).indexOf("px")&&(t=parseInt(String(t).replace("px",""),10)),t},e.prototype.setWigoi=function(t){this.wigoi=t},e.prototype.getTeadsEnvironmentVars=function(){return this.vpaid.getTeadsEnvironmentVars?this.vpaid.getTeadsEnvironmentVars():this.environmentVars},e.prototype.vpaidguard=function(t,n){void 0===n&&(n=[]);try{if(this.status!==u.a.REMOVED)return this.callVPAIDMethod(t,n)}catch(n){switch(t){case"initAd":case"startAd":this.dispatchEvent(l.a.AdError,{message:"error call "+t+": "+n,id:o.b.GENERAL.id});break;default:this.dispatchEvent(l.a.AdLog,"error call "+t+": "+n)}e.logger.error("vpaidguard -> vpaid creative threw an error for "+t,n)}},e.prototype.dispatchEvent=function(t,e){return this.handleVpaidEvent(new l.a(t,e))},e.prototype.handleVpaidEvent=function(t){if(this.status!==u.a.REMOVED){var n=[l.a.AdLoaded,l.a.AdStarted,l.a.AdVideoStart,l.a.AdVideoComplete,l.a.AdSkipped,l.a.AdStopped,l.a.AdError];if(!(a.indexOf(n,t.type)>-1&&this.dispatchedEvents[t.type])){if(this.status>u.a.STOPPED)switch(t.type){case l.a.AdLoaded:this.status=u.a.LOADED,this.clearTimeout("initAd"),e.log("AdLoaded - Response from initAd"),this.wigoi&&this.wigoi.valid(3,2);break;case l.a.AdStarted:this.status=this.status<u.a.STARTED?u.a.STARTED:this.status,this.clearTimeout("startAd"),e.log("AdStarted - Response from startAd"),this.wigoi&&this.wigoi.valid(3,3);break;case l.a.AdVideoStart:case l.a.AdPlaying:this.status=u.a.PLAYING;break;case l.a.AdPaused:this.status=u.a.PAUSED;break;case l.a.AdVideoComplete:this.status=u.a.COMPLETE;break;case l.a.AdSkipped:this.status=u.a.SKIPPED,this.clearAllTimeout();break;case l.a.AdStopped:this.status=u.a.STOPPED,this.clearAllTimeout();break;case l.a.AdError:e.logger.info("AdError - ",t.data),this.wigoi&&this.wigoi.valid(3,4,t.data,r.c.infoType.ERROR)}this.dispatchedEvents[t.type]||(this.dispatchedEvents[t.type]=0),this.dispatchedEvents[t.type]++,this.eventHandler.handleEvent(t),t.type===l.a.AdError&&this.stopAd()}}},e.prototype.clearTimeout=function(t){this.timeoutId[t]&&clearTimeout(this.timeoutId[t])},e.prototype.clearAllTimeout=function(){for(var t in this.timeoutId)this.timeoutId.hasOwnProperty(this.timeoutId[t])&&this.clearTimeout(this.timeoutId[t])},e.logger=new i.a("vpaid.BaseVPAIDJSWrapper"),e.hasLogged=[],e}(c.a);e.a=m},function(t,e,n){n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o});var i;!function(t){t[t.CANVAS=0]="CANVAS",t[t.HTML5=1]="HTML5",t[t.ANY=2]="ANY"}(i||(i={}));var o;!function(t){t[t.IN=0]="IN",t[t.OUT=1]="OUT"}(o||(o={}))},function(t,e,n){var i;!function(t){t[t.ERROR=-1]="ERROR",t[t.UNSTARTED=0]="UNSTARTED",t[t.WAITING=1]="WAITING",t[t.READY=2]="READY"}(i||(i={})),e.a=i},function(t,e,n){n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var i=function(){function t(){this.error=[],this.click=[],this.pause=[],this.resume=[],this.skip=[],this.creativeView=[],this.start=[],this.firstQuartile=[],this.midpoint=[],this.thirdQuartile=[],this.complete=[],this.impression=[],this.close=[],this.progress=[],this.mute=[],this.unmute=[],this.rewind=[],this.fullscreen=[],this.exitFullscreen=[],this.expand=[],this.collapse=[],this.acceptInvitationLinear=[],this.acceptInvitation=[],this.closeLinear=[],this.noAd=[],this.noLinearAd=[],this.customClicks=[],this.billable=[],this.otherAdInteraction=[],this.adChoices=[]}return t}(),o=function(){function t(){}return t.error="error",t.click="click",t.pause="pause",t.resume="resume",t.skip="skip",t.creativeView="creativeView",t.start="start",t.firstQuartile="firstQuartile",t.midpoint="midpoint",t.thirdQuartile="thirdQuartile",t.complete="complete",t.impression="impression",t.close="close",t.progress="progress",t.mute="mute",t.unmute="unmute",t.rewind="rewind",t.fullscreen="fullscreen",t.exitFullscreen="exitFullscreen",t.expand="expand",t.collapse="collapse",t.acceptInvitationLinear="acceptInvitationLinear",t.acceptInvitation="acceptInvitation",t.closeLinear="closeLinear",t.noAd="noAd",t.noLinearAd="noLinearAd",t.customClicks="customClicks",t.billable="billable",t.otherAdInteraction="otherAdInteraction",t.adChoices="adChoices",t}()},function(t,e,n){var i=n(24),o=n(2),r=n(0),a=n(13),s=n(17),c=n(64),u=n(93),d=n(15),l=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.status=u.a.UNSTARTED,e.sumologic=new i.a,e}return l(e,t),e.getFileExtension=function(t){return a.parse(t).pathname.split(".").pop()},e.prototype.getStatus=function(){return this.status},e.prototype.getVideoUrl=function(){return this.videoUrl},e.prototype.load=function(t,n){var a=this;if(this.sumologic.isInitialized()||this.sumologic.init(i.a.CONFIGS.PLAYER),o.indexOf(e.alreadyEncoded,e.getFileExtension(t))>-1)return this.videoUrl=t,this.status=u.a.READY,void this.dispatch(c.a.READY,{errorCode:200});this.status=u.a.WAITING,this.dispatch(c.a.WAITING);var d=location.hostname.match(/.+\.sandbox\.teads\.net|localdocker/),l=r.getProtocol()+"//[HOST]/transcode?url=[URL]&bitrate=[BITRATE]".replace(/\[HOST\]/,d?d[0]+":18088":"mp.teads.tv").replace(/\[URL\]/,encodeURIComponent(t)).replace(/\[BITRATE\]/,n.toString()),p=s.createXmlHttpRequest(),h=!1;p.open("GET",l,!0),p.onreadystatechange=function(){if(4===p.readyState&&!h){switch(p.status){case 200:a.videoUrl=p.responseText,a.status=u.a.READY,a.dispatch(c.a.READY,{errorCode:p.status}),h=!0;break;case 416:case 202:case 201:default:a.status=u.a.ERROR,a.dispatch(c.a.ERROR,{errorCode:p.status}),h=!0}a.sumologic.sendInfo(["proxy","resp",p.status].join(" "))}},p.send(),this.sumologic.sendInfo("proxy call")},e.alreadyEncoded=["tv","mpg","mpeg"],e}(d.a);e.a=p},function(t,e,n){function i(t){return String(t).indexOf("%")>-1}function o(t){return parseInt(t.replace("%",""),10)/100}function r(t){return String(t).indexOf("px")>-1}function a(t){return parseInt(t.replace("px",""),10)}function s(t){return"true"===t||"false"!==t&&!!t}function c(t){["width","height","src","preload","autoplay","loop"].forEach(function(e){t.hasAttribute(e)&&u(t,e)})}function u(t,e){var n=t.getAttribute(e);switch(e){case"width":case"height":t.style[e]=n+(i(n)||r(n)?"":"px");break;case"src":case"preload":t[e]=n;break;case"autoplay":case"loop":t[e]=s(n)}}Object.defineProperty(e,"__esModule",{value:!0}),e.isPercentValue=i,e.getPercentValue=o,e.isPixelValue=r,e.getPixelValue=a,e.getBooleanValue=s,e.parseAttributes=c,e.updateAttribute=u},function(t,e,n){function i(t,e){var n,i,a,s=o.createXmlHttpRequest(),c=Date.now(),u=function(t){n||(clearTimeout(a),n=Date.now()-c,i=n<=100?1e3:n<200?700:n<400?500:300,e(n,i),(new r.a).sendInfo("ping "+[n,t].join(";")))};a=setTimeout(function(){return u("timeout")},500),s.open("HEAD",t+(t.indexOf("?")>-1?"&":"?")+c,!0),s.addEventListener("load",function(){return u("load")}),s.addEventListener("error",function(){return u("error")}),s.send()}Object.defineProperty(e,"__esModule",{value:!0}),e.ping=i;var o=n(17),r=n(24)},function(t,e,n){n.d(e,"a",function(){return r});var i=n(66),o=n(99),r=function(t){this._wrappedVideo=t};r.prototype=Object.create(HTMLElement.prototype);for(var a in o.HTMLVideoProperties)o.HTMLVideoProperties.hasOwnProperty(a)&&function(t,e){i.defineProperty(r.prototype,t,function(){return this._wrappedVideo[t]},function(n){e&&(this._wrappedVideo[t]=n)})}(a,o.HTMLVideoProperties[a]);r.prototype.addEventListener=function(t,e,n){void 0===n&&(n=!1),this._wrappedVideo.addEventListener(t,e,n)},r.prototype.canPlayType=function(t){return this._wrappedVideo.canPlayType()},r.prototype.load=function(){this._wrappedVideo.load()},r.prototype.pause=function(){this._wrappedVideo.pause()},r.prototype.play=function(){this._wrappedVideo.play()},r.prototype.getVideoPlaybackQuality=function(){return this._wrappedVideo.getVideoPlaybackQuality()},r.prototype.webkitEnterFullscreen=function(){return this._wrappedVideo.webkitEnterFullscreen()},r.prototype.webkitExitFullscreen=function(){this._wrappedVideo.webkitExitFullscreen()},r.prototype.webkitEnterFullScreen=function(){this.webkitEnterFullscreen()},r.prototype.webkitExitFullScreen=function(){this.webkitExitFullscreen()}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"HTMLVideoProperties",function(){return i});var i={poster:!0,width:!0,height:!0,videoHeight:!1,videoWidth:!1,buffered:!1,duration:!1,ended:!1,error:!1,networkState:!1,paused:!1,played:!1,readyState:!1,seekable:!1,seeking:!1,currentSrc:!1,autoplay:!0,controls:!0,currentTime:!0,loop:!0,muted:!1,defaultMuted:!0,playbackRate:!1,defaultPlaybackRate:!1,preload:!1,src:!0,volume:!0,audioTracks:!1,textTracks:!1,videoTracks:!1}},function(t,e,n){var i=function(){function t(){this.ranges=[]}return Object.defineProperty(t.prototype,"length",{get:function(){return this.ranges.length},enumerable:!0,configurable:!0}),t.prototype.addRange=function(t,e){this.ranges.push({start:t,end:e})},t.prototype.start=function(t){return this.ranges[t].start},t.prototype.end=function(t){return this.ranges[t].end},t}();e.a=i},function(t,e,n){var i=n(8),o=n(1),r=function(){function t(t,e){this.container=t,this.config=e,this.logger=new o.a("vpaid.BaseVPAIDContainer"),this.backgroundColor="#000000",this.id=e.id||Object(i.rand)(20,!1)}return t.prototype.setBackground=function(t){this.backgroundColor=t},t.prototype.destroy=function(){try{!this.isDetroyed&&this.creativeContainer?(this.isDetroyed=!0,this.creativeContainer.parentNode.removeChild(this.creativeContainer),this.creativeContainer=null,this.vpaid=null):this.isDetroyed&&this.logger.error("Cannot call destroy twice !")}catch(t){this.logger.error("unable to remove VPAID creative container: "+t)}},t.prototype.getVPAID=function(){return this.logger.info("getVPAIDAd - Retrieve ad from creative"),this.vpaid},t.prototype.getCreativeContainer=function(){return this.creativeContainer},t}();e.a=r},function(t,e,n){var i=n(1),o=n(5),r=n(132),a=n(103),s=n(48),c=n(51),u=n(133),d=n(47),l=function(){function t(t,e){this.config=e,this.vpaidAttribute={},this.logger=new i.a("vpaid.PostMessageClient"),this.eventHandler=new d.a,this.mainContainer=document.createElement("div"),this.mainContainer.style.setProperty("position","relative"),t.appendChild(this.mainContainer),this.iframeContainer=Object(o.createIframe)(),this.mainContainer.appendChild(this.iframeContainer),this.postMessage=new a.a(window,this.iframeContainer.contentWindow)}return t.prototype.initAPI=function(e,n,i){var o=this;this.logger.debug("init iframe API on url "+e);var r,a=function(e){e.type===u.a.READY_EVENT?(o.logger.debug("Got ready event from server !"),o.postMessage.callMethod(t.SETCONFIG_METHOD,[o.config])):e.type===u.a.CONFIGREADY_EVENT&&(o.logger.debug("Received configuration ready form server"),o.postMessage.removeCallback(),o.apiReady=!0,clearTimeout(r),n())};this.postMessage.setClientCallback(a),this.iframeContainer.src=e,r=setTimeout(function(){o.apiReady||(o.postMessage.removeCallback(),i(c.POSTMESSAGE_SERVER_TIMEOUT),o.logger.error("server "+e+" didn't reply after "+s.postMessageAPI+"ms"))},s.postMessageAPI)},t.prototype.loadVpaid=function(e,n,i){var o=this;this.logger.debug("Request load VPAID "+e);var r;if(!this.apiReady)return this.logger.error("API is not ready, before use loadVpaid, you must init the API with the method initAPI"),i(c.POSTMESSAGE_API_NOT_READY);var a=function(t){return t.type===u.a.VPAIDLOADED_EVENT?(o.logger.debug("received VPAID loaded from server!"),o.postMessage.removeCallback(),clearTimeout(r),o.onVpaidLoaded(n)):t.type===u.a.VPAIDLOADEDERROR_EVENT?(clearTimeout(r),i(t.data)):void 0};this.postMessage.setClientCallback(a),r=setTimeout(function(){o.postMessage.removeCallback(),i(c.POSTMESSAGE_LOAD_VPAID_TIMEOUT),o.logger.error("Timeout Error : Unable to load vpaid "+e+", server did not reply after "+s.postMessageAPI+"ms")},s.postMessageAPI),this.postMessage.callMethod(t.LOADVPAID_METHOD,[e])},t.prototype.getVPAID=function(){return this.vpaid},t.prototype.callVPAIDMethod=function(e,n){return void 0===n&&(n=[]),t.getters.indexOf(e)>=0?this.vpaidAttribute[e]:this.postMessage.callMethod(e,n)},t.prototype.getIframeContainer=function(){return this.iframeContainer},t.prototype.subscribe=function(t,e,n){this.eventHandler.subscribe(t,e,n)},t.prototype.unsubscribe=function(t,e){this.eventHandler.unsubscribe(t,e)},t.prototype.onVpaidLoaded=function(t){var e=this;this.vpaid=new r.a(this),this.postMessage.setClientCallback(function(t){if(t.type===u.a.ATTRIBUTE_EVENT)return void(e.vpaidAttribute=t.data);e.eventHandler.handleEvent(t)}),t(this.vpaid)},t.GETATTRIBUTESVALUES_METHOD="getAttributesValues",t.LOADVPAID_METHOD="loadVpaid",t.SETCONFIG_METHOD="setConfig",t.getters=["getAdWidth","getAdHeight","getAdDuration","getAdRemainingTime","getAdSkippableState","getAdLinear","getAdExpanded","getAdVolume"],t}();e.a=l},function(t,e,n){n.d(e,"a",function(){return a});var i=n(11),o=n(30),r=n(6),a=function(){function t(t,e,n){void 0===n&&(n="*"),this.currentWindow=t,this.targetWindow=e,this.domain=n}return t.prototype.setClientCallback=function(t){var e=this;this.setCallback(function(n){var i=e.parseEvent(n);t(i)})},t.prototype.setServerCallback=function(t){var e=this;this.setCallback(function(n){t(e.parse(n))})},t.prototype.removeCallback=function(){this.currentWindow.removeEventListener("message",this.callback,!1)},t.prototype.dispatchEvent=function(t,e){this.post(this.targetWindow,this.stringify(t,e))},t.prototype.callMethod=function(t,e){this.post(this.targetWindow,this.stringify(t,e))},t.prototype.parseEvent=function(t){var e=this.parse(t);return new r.a(e.name,e.data)},t.prototype.post=function(t,e){t.postMessage(e,this.domain)},t.prototype.stringify=function(e,n){return e+t.splitChar+(void 0!==n?Object(o.encode)(Object(i.stringify)(n)):"")},t.prototype.parse=function(e){var n,r=e.data.split(t.splitChar),a=r[0];return r[1]&&(n=Object(i.parse)(Object(o.decode)(r[1]))),{name:a,data:n}},t.prototype.setCallback=function(t){var e=this;this.callback=function(n){n.source===e.targetWindow&&"string"==typeof n.data&&t(n)},this.currentWindow.addEventListener("message",this.callback,!1)},t.splitChar="_",t}()},function(t,e,n){var i={vpaidswfwrapper:"vpaidwrapper.swf",sandbox:"vpaid-sandbox.html"};e.a=i},function(t,e,n){var i=n(6),o=n(46),r=n(106),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(e){var n=t.call(this,e)||this;return n.adDuration=-2,n.isVpaid2=Object(o.isVPAID2)(n.vpaid),n}return a(e,t),e.prototype.handshakeVersion=function(t){return"2.0"},e.prototype.initAd=function(e,n,r,a,s,c){this.adWidth=e,this.adHeight=n,this.dispatchEvent(i.a.AdLog,"VPAID 1.0 creative"),t.prototype.initAd.call(this,e,n,r,a,s,c),this.isVpaid2=Object(o.isVPAID2)(this.vpaid)},e.prototype.resizeAd=function(e,n,o){if(this.adWidth=e,this.adHeight=n,this.isVpaid2)return t.prototype.resizeAd.call(this,e,n,o);t.prototype.resizeAd.call(this,e,n),this.dispatchEvent(i.a.AdSizeChange)},e.prototype.getAdWidth=function(){return this.adWidth},e.prototype.getAdHeight=function(){return this.adHeight},e.prototype.skipAd=function(){this.isVpaid2?t.prototype.skipAd.call(this):(this.dispatchEvent(i.a.AdSkipped),this.stopAd())},e.prototype.getAdSkippableState=function(){return!!this.isVpaid2&&t.prototype.getAdSkippableState.call(this)},e.prototype.getAdIcons=function(){return!!this.isVpaid2&&t.prototype.getAdIcons.call(this)},e.prototype.getAdCompanions=function(){return this.isVpaid2?t.prototype.getAdCompanions.call(this):""},e.prototype.getAdDuration=function(){return this.isVpaid2?t.prototype.getAdDuration.call(this):this.adDuration},e.prototype.handleVpaidEvent=function(e){if(!this.isVpaid2)switch(e.type){case i.a.AdRemainingTimeChange:this.getAdRemainingTime()>0&&(this.adDuration<=0||this.getAdRemainingTime()>this.adDuration)&&(this.adDuration=this.getAdRemainingTime())}t.prototype.handleVpaidEvent.call(this,e)},e}(r.a);e.a=s},function(t,e,n){var i=n(7),o=n(60),r=n(6),a=n(45),s=n(91),c=n(26),u=n(48),d=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(t){function e(e){var n=t.call(this)||this;return n.lastAdRemainingTime=-1,n.setVPAID(e.getVPAID()),n.type=e.getType(),n.container=e,n.container.registerVPAIDEventHandler(function(t){switch(t.type){case r.a.AdRemainingTimeChange:case r.a.AdDurationChange:return}n.handleVpaidEvent(t)}),n}return d(e,t),e.prototype.initAd=function(e,n,i,o,r,s){this.container.resize(e,n),this.type===a.a.JS&&"string"==typeof r&&(r={AdParameters:r}),t.prototype.initAd.call(this,e,n,i,o,r,this.type===a.a.JS?this.getEnvironmentVars(s):null)},e.prototype.setAdVolume=function(e){var n=this;if(this.environmentVars&&this.environmentVars.videoSlot){var a=function(t){t.type===o.volumechange&&n.dispatchEvent(r.a.AdVolumeChange),i.removeEventListener(o.volumechange,n.environmentVars.videoSlot,a)};i.addEventListener(o.volumechange,this.environmentVars.videoSlot,a),this.environmentVars.videoSlot.volume=e,this.environmentVars.videoSlot.muted=!e}return t.prototype.setAdVolume.call(this,e),this.dispatchEvent(r.a.AdVolumeChange),e},e.prototype.getAdVolume=function(){return this.environmentVars&&this.environmentVars.videoSlot&&void 0!==this.environmentVars.videoSlot.volume?this.environmentVars.videoSlot.muted?0:this.environmentVars.videoSlot.volume:t.prototype.getAdVolume.call(this)},e.prototype.resizeAd=function(e,n,i){this.isResizing=!0,this.container.resize(e,n),t.prototype.resizeAd.call(this,e,n,i)},e.prototype.getEnvironmentVars=function(t){return this.container.getEnvironmentVars(t)},e.prototype.handleVpaidEvent=function(e){var n=this;switch(e.type){case r.a.AdSizeChange:this.isResizing||this.container.resize(this.getAdWidth(),this.getAdHeight()),this.isResizing=!1;break;case r.a.AdStarted:this.startTimer();break;case r.a.AdStopped:this.stopTimer()}t.prototype.handleVpaidEvent.call(this,e),this.status===c.a.STOPPED&&(this.status=c.a.REMOVING,setTimeout(function(){n.status=c.a.REMOVED,n.container.destroy()},u.destroy))},e.prototype.startTimer=function(){var t=this;this.timerId||(this.timerId=setInterval(function(){var e=t.getAdRemainingTime();t.status<c.a.COMPLETE&&e>=0&&t.lastAdRemainingTime!==e&&(t.lastAdRemainingTime=e,t.dispatchEvent(r.a.AdRemainingTimeChange),t.dispatchEvent(r.a.AdDurationChange))},250))},e.prototype.stopTimer=function(){this.timerId&&clearInterval(this.timerId)},e}(s.a);e.a=l},function(t,e,n){var i=n(5),o=n(6),r=n(22),a=n(54),s=n(19),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.lastVolume=1,e}return c(e,t),e.prototype.init=function(){var e=this;this.isMuted=a.isMuted(this.vpaid),this.eventName=r.a.SoundToggleRequest,this.vpaid.subscribe(function(){e.isMuted=a.isMuted(e.vpaid),e.onMuteChange()},o.a.AdStarted),this.vpaid.subscribe(function(){e.isMuted=a.isMuted(e.vpaid)},o.a.AdVideoStart),this.vpaid.subscribe(function(){e.hide()},o.a.AdStopped),this.ui.subscribe(function(){e.hide()},r.a.EndscreenInit),this.vpaid.subscribe(function(){(!e.isMuted&&a.isMuted(e.vpaid)||e.isMuted&&!a.isMuted(e.vpaid))&&(e.lastVolume=a.isMuted(e.vpaid)?e.lastVolume:e.vpaid.getAdVolume(),e.isMuted=a.isMuted(e.vpaid),e.onMuteChange())},o.a.AdVolumeChange),this.onMuteChange(),t.prototype.init.call(this)},e.prototype.onMuteChange=function(){i[a.isMuted(this.vpaid)?"addClass":"removeClass"](this.getElement(),"muted")},e.prototype.setAdVolume=function(){this.vpaid.setAdVolume(this.isMuted?this.lastVolume:0)},e.prototype.onClick=function(e){t.prototype.onClick.call(this,e),this.setAdVolume(),this.isMuted=!this.isMuted,this.onMuteChange()},e}(s.a);e.a=u},function(t,e,n){n.d(e,"a",function(){return i});var i,o=n(5),r=n(4),a=n(6),s=n(22),c=n(19),u=n(85),d=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();!function(t){t[t.CLASSIC=1]="CLASSIC",t[t.COUNTDOWN=2]="COUNTDOWN",t[t.SKIPPABLE=3]="SKIPPABLE"}(i||(i={}));var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onClickAction=r.a,e}return d(e,t),e.prototype.init=function(){var t=this,e=this.config.countdown>=0?this.config.countdown:this.ui.getConfig().skipoffset;if(this.eventName=s.a.CollapseRequest,this.vpaid.subscribe(function(){t.videoEnded=!0},a.a.AdVideoComplete),this.config.listenSkippableState)this.mode=i.CLASSIC,this.vpaid.subscribe(function(){t.vpaid.getAdSkippableState()?t.show():t.hide()},a.a.AdSkippableStateChange);else if(e>0){this.mode=i.COUNTDOWN;var n=this.insertCountDownElement();this.countdown=new u.a(this.ui,n,this.vpaid,{countdown:e}),this.countdown.setEndedCallback(function(){return t.onCountdownEnded()})}else 0===e&&(this.mode=i.SKIPPABLE,this.countdownEnded=!0,this.show())},e.prototype.onMethod=function(t,e){var n=this;this.countdown&&this.countdownInitiated&&!this.countdownEnded&&r.b.of({pauseAd:function(){return n.countdown.pause()},resumeAd:function(){return n.countdown.resume()}}[t]).forEach(function(t){return t()})},e.prototype.show=function(){t.prototype.show.call(this);var e=this.getElement().getElementsByClassName("close-button icon-close")[0];this.countdown&&!this.countdownEnded||o.removeClass(e,"hide")},e.prototype.restoreOnClickAction=function(){this.onClickAction=r.a},e.prototype.changeOnCountdownEnded=function(t){var e=this;this.countdown.setEndedCallback(function(){e.countdown.hide(),e.countdownEnded=!0,t()})},e.prototype.onVideoStart=function(){this.countdownInitiated||this.config.listenSkippableState||(t.prototype.onVideoStart.call(this),this.countdown.init(),this.countdown.show(),this.countdownInitiated=!0,this.countdown.initTimer())},e.prototype.onClick=function(e){var n=this;this.onClickAction.match({some:function(t){t()},none:function(){n.countdownEnded&&(n.videoEnded?t.prototype.onClick.call(n,e):(n.dispatchUiEvent(s.a.CollapseRequest),n.vpaid.skipAd()))}})},e.prototype.insertCountDownElement=function(){var t=document.createElement("div");return t.className="countdown",this.getElement().appendChild(t),t},e.prototype.onCountdownEnded=function(){this.countdown.hide(),this.countdownEnded=!0,this.show()},e}(c.a);e.b=l},function(t,e,n){var i=n(6),o=n(142),r=n(58),a=n(54),s=n(19),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.placeholders=["currentTime","totalTime","remainingTime","countdown"],e}return c(e,t),e.prototype.init=function(){this.setText(this.config.text)},e.prototype.setText=function(t){var e=this;this.renderText(t),this.havePlaceholder(t)&&!this.haveProgressCallback&&(this.haveProgressCallback=!0,this.vpaid.subscribe(function(){e.renderText(t)},i.a.AdRemainingTimeChange))},e.prototype.renderText=function(t){this.textNode&&this.getElement().removeChild(this.textNode),this.textNode=document.createElement("span"),this.textNode.innerHTML=this.havePlaceholder(t)?this.replacePlaceholders(t):t,this.getElement().appendChild(this.textNode)},e.prototype.replacePlaceholders=function(t){var e=this,n={};return this.placeholders.forEach(function(t){n[t]=e.getPlaceholderValue(t)}),r.replacePlaceholders(t,n)},e.prototype.havePlaceholder=function(t){var e=new RegExp("({{"+this.placeholders.join("}}|{{")+"}})","g");return!!t.match(e)},e.prototype.getPlaceholderValue=function(t){var e=a.getCurrentTime(this.vpaid);e=e<0||isNaN(e)?0:Math.floor(e);var n=Math.floor(this.vpaid.getAdRemainingTime());switch(t){case"currentTime":return o.secondToTimecode(e);case"totalTime":return o.secondToTimecode(Math.floor(this.vpaid.getAdDuration()));case"remainingTime":return o.secondToTimecode(n);case"countdown":return String(this.config.countdown-e)}},e}(s.a);e.a=u},function(t,e,n){n.d(e,"a",function(){return i});var i=function(){function t(){}return t.format=[{name:"placementCall"},{name:"passback-integration"},{name:"passback-noAd"},{name:"noSlot-dom"},{name:"noSlot-selector"},{name:"hbNoSlot-selector"},{name:"noSlot-filter"},{name:"noSlot-avoid"},{name:"noSlot-size"},{name:"noSlot-BTF"},{name:"noSlot-minimum"},{name:"noSlot-minimumBelow"},{name:"noSlot-content"},{name:"noSlot-position"},{name:"noSlot-videoArticle"},{name:"noSlot-videoSlot"},{name:"noSlot-imageSlot"},{name:"incompatibility-browser"},{name:"incompatibility-context"},{name:"incompatibility-format"},{name:"incompatibility-video"},{name:"placementCapping"},{name:"slotAvailable"},{name:"hbSlotAvailable"},{name:"adNotAvailable-networkError"},{name:"adNotAvailable-serverError"},{name:"adAvailable-error-parseTimeout"},{name:"adAvailable-error-badResponse"},{name:"adAvailable-error-vast-100"},{name:"adAvailable-error-vast-101"},{name:"adAvailable-error-vast-102"},{name:"adAvailable-error-vast-200"},{name:"adAvailable-error-vast-201"},{name:"adAvailable-error-vast-202"},{name:"adAvailable-error-vast-203"},{name:"adAvailable-error-vast-300"},{name:"adAvailable-error-vast-301"},{name:"adAvailable-error-vast-302"},{name:"adAvailable-error-vast-303"},{name:"adAvailable-error-vast-304"},{name:"adAvailable-error-vast-400"},{name:"adAvailable-error-vast-401"},{name:"adAvailable-error-vast-402"},{name:"adAvailable-error-vast-403"},{name:"adAvailable-error-vast-405"},{name:"adAvailable-error-vast-500"},{name:"adAvailable-error-vast-501"},{name:"adAvailable-error-vast-502"},{name:"adAvailable-error-vast-503"},{name:"adAvailable-error-vast-600"},{name:"adAvailable-error-vast-601"},{name:"adAvailable-error-vast-602"},{name:"adAvailable-error-vast-603"},{name:"adAvailable-error-vast-604"},{name:"adAvailable-error-vast-900"},{name:"adAvailable-error-vast-901"},{name:"adAvailable-error-settings"},{name:"adAvailable-error-emptyArray"},{name:"adAvailable-error-sameAd"},{name:"adAvailable-success"},{name:"adCall"},{name:"noAd-serverError"},{name:"noAd-networkError"},{name:"noAd-notFilled"},{name:"noAd-vastError-100"},{name:"noAd-vastError-101"},{name:"noAd-vastError-102"},{name:"noAd-vastError-200"},{name:"noAd-vastError-201"},{name:"noAd-vastError-202"},{name:"noAd-vastError-203"},{name:"noAd-vastError-300"},{name:"noAd-vastError-301"},{name:"noAd-vastError-302"},{name:"noAd-vastError-303"},{name:"noAd-vastError-304"},{name:"noAd-vastError-400"},{name:"noAd-vastError-401"},{name:"noAd-vastError-402"},{name:"noAd-vastError-403"},{name:"noAd-vastError-405"},{name:"noAd-vastError-500"},{name:"noAd-vastError-501"},{name:"noAd-vastError-502"},{name:"noAd-vastError-503"},{name:"noAd-vastError-600"},{name:"noAd-vastError-601"},{name:"noAd-vastError-602"},{name:"noAd-vastError-603"},{name:"noAd-vastError-604"},{name:"noAd-vastError-900"},{name:"noAd-vastError-901"},{name:"noAd-parseTimeout"},{name:"noAd-settingsError"},{name:"noAd-badResponse"},{name:"noAd-sameAd"},{name:"noAd-ivt-doubleVerify"},{name:"noAd-ivt-tag"},{name:"noAd-blockedSite-doubleVerify"},{name:"ad"},{name:"click-replay"}],t.vast=[{name:"error"},{name:"fullscreen",multiple:!0},{name:"exitFullscreen",multiple:!0},{name:"click",multiple:!0},{name:"creativeView"},{name:"impression"},{name:"start"},{name:"firstQuartile"},{name:"midpoint"},{name:"thirdQuartile"},{name:"complete"},{name:"pause",before:["start"],multiple:!0},{name:"resume",before:["pause"],multiple:!0},{name:"mute",multiple:!0},{name:"unmute",multiple:!0},{name:"expand",multiple:!0},{name:"collapse",multiple:!0},{name:"rewind",multiple:!0},{name:"skip"},{name:"close"},{name:"progress",multiple:!0},{name:"acceptInvitationLinear"},{name:"acceptInvitation"},{name:"closeLinear"},{name:"noAd"},{name:"noLinearAd"},{name:"customClicks",multiple:!0},{name:"adChoices",multiple:!0},{name:"billable"},{name:"otherAdInteraction",multiple:!0}],t}()},function(t,e){t.exports="<div class=\"loader\"> <style> .loader:before, .loader:after, .loader { border-radius: 50%; width: 1.5em; height: 1.5em; -webkit-animation-fill-mode: both; animation-fill-mode: both; -webkit-animation: load7 1.8s infinite ease-in-out; animation: load7 1.8s infinite ease-in-out; } .loader { font-size: 8px; margin-left: -8px; position: absolute; left: 50%; top: 30%; z-index: 10; text-indent: -9999em; -webkit-transform: translateZ(0); -ms-transform: translateZ(0); transform: translateZ(0); -webkit-animation-delay: -0.16s; animation-delay: -0.16s; } .loader:before { left: -2em; -webkit-animation-delay: -0.32s; animation-delay: -0.32s; } .loader:after { left: 2em; } .loader:before, .loader:after { content: ''; position: absolute; top: 0; } @-webkit-keyframes load7 { 0%, 80%, 100% { box-shadow: 0 2.5em 0 -1.3em #ffffff; } 40% { box-shadow: 0 2.5em 0 0 #ffffff; } } @keyframes load7 { 0%, 80%, 100% { box-shadow: 0 2.5em 0 -1.3em #ffffff; } 40% { box-shadow: 0 2.5em 0 0 #ffffff; } } </style> loading...</div> "},function(t,e){t.exports="<style> /* This used to work for parent element of button divs */ /* But it is not enough now, below dont hide play button parent div */ *::-webkit-media-controls-panel { display: none!important; -webkit-appearance: none; } /* Old shadow dom for play button */ *::--webkit-media-controls-play-button { display: none!important; -webkit-appearance: none; } /* New shadow dom for play button */ /* This one works */ *::-webkit-media-controls-start-playback-button { display: none!important; -webkit-appearance: none } </style> "},function(t,e,n){var i=n(1),o=n(29),r=n(13),a=n(128),s=n(45),c=n(51),u=n(46),d=n(26),l=n(129),p=n(131),h=n(134),f=n(106),g=n(105),m=n(135),v=n(87),y=n(172),b=n(3),A=n(71),E=function(){function t(t,e){this.container=t,this.config=e,this.status=a.a.READY,this.wigoi=null}return t.prototype.load=function(e,n,i){var v=this;if(!(this.status>a.a.READY)){var y,b;e=Object(r.updateProtocolIfNeeded)(e),this.config.sandbox?(this.creativeType=s.a.POSTMESSAGE,b=p.a):(b=this.findContainerConstructor(e),this.creativeType=b===m.a?s.a.SWF:s.a.JS),this.container.innerHTML="",this.status=a.a.LOADING;var A=function(r){v.status=d.a.LOADED,v.wrapperClass||(v.wrapperClass=v.creativeType!==s.a.SWF||Object(u.isVPAID2)(r)?f.a:g.a,Object(l.default)(e)&&(v.wrapperClass=h.a));var a=new v.wrapperClass(y);try{n(a)}catch(t){var p=c.SUCCESS_CALLBACK_ERROR;p.message+=t,i(p)}var m=Object(u.isVPAID2)(r)?"2.0":"1.0";t.logger.info("handshakeVersion - Creative vpaid version "+m),v.wigoi&&v.wigoi.valid(3,1,m,o.c.infoType.STRING)};y=new b(this.container,this.config),this.config.background&&y.setBackground(this.config.background),y.loadVpaid(e,A,i)}},t.prototype.findContainerConstructor=function(t){return Object(b.isAmp)()||Object(b.isIABSafeFrame)()?y.a:t===v.a.VIDEO||t===v.a.CANVAS?v.a:".swf"===Object(r.parse)(t).pathname.substr(-4)?m.a:A.a},t.prototype.setWigoi=function(t){this.wigoi=t},t.logger=new i.a("vpaid.VPAIDLoader"),t}();e.a=E},function(t,e,n){n.d(e,"a",function(){return f});var i=n(2),o=n(8),r=n(13),a=n(4),s=n(1),c=n(24),u=n(123),d=n(124),l=n(110),p=n(44),h=n(63),f=function(){function t(t,e){var n=this;this.logger=new s.a("tracker.Tracker"),this.trackings={},this.metadatas=[],this.errors=[],this.errorUrls=[],this.sumoTracker=new c.a,this.trackedEvents={},this.alreadyBilledAdvertiser={whenAnalyticsOnlyEqualsFalse:!1,whenAnalyticsOnlyEqualsTrue:!1},this.wigoi=null,this.sumoTracker.init(c.a.CONFIGS.PLAYER,e),t.match({some:function(t){return n.setTrackings(t)},none:function(){return n.setTrackings(l.a.vast)}}),this.logger.debug("new",this)}return t.prototype.setTrackings=function(t){if(!(t instanceof Array))return void this.logger.error("setTrackings param error, expected array.",t);i.forEach(t,function(t){this.setTracking(t)},this)},t.prototype.setTracking=function(t){if(!t.name)return void this.logger.error("Name of tracking is needed",t);this.trackings[t.name]=new u.a(t.name,t.before,t.after,t.multiple,t.metadata,t.resources)},t.prototype.getTracking=function(t){return this.trackings[t]},t.prototype.addResource=function(t,e,n){if(e&&!Object(o.isURL)(e)&&this.sumoTracker.sendInfo(["invalid-tracking",e].join(";")),"progress"===t&&!n)return this.logger.error('Adding a "progress" tracking requires an associated offset',e),!1;if(!e||e.trim&&!e.trim())return this.logger.error("Adding a tracking requires an url not empty",e),!1;var r=this.getTracking(t);if(r){var a=r.getAllResources();if(a.length){var s=!1;if(i.forEach(a,function(t){s||(s=e===t.url)}),s)return this.logger.warn("URL already exists"),!1}return r.addResource(e,n),!0}return this.logger.error("This event ("+t+") does not exist in config"),!1},t.prototype.isTrackable=function(t){var e=this.getTracking(t);if(!e)return this.trackError(t,"This event ("+t+") does not exist in config"),!1;if(!e.isTrackable())return!1;if(!e.hasResources())return!0;if(e){var n=!0,o=!0,r=e.getBefore(),a=e.getAfter();return r.length&&((n=i.some(r,function(t){var e=this.getTracking(t),n=e&&!e.isTrackable();return e&&e.isTracked()||n||!e},this))||this.trackError(t,"Previous event ["+e.getBefore().join(",")+"] was not tracked")),a.length&&((o=i.some(a,function(t){var e=this.getTracking(t),n=e&&e.isTrackable();return e&&!e.isTracked()||n||!e},this))||this.trackError(t,"Next event ["+e.getAfter().join(",")+"] are already tracked")),n&&o}},t.prototype.track=function(t,e,n,o,r){var s=this;void 0===e&&(e=a.a);var c=this.getTracking(t);if(!this.isTrackable(t))return this.logger.warn("This event ("+t+") is not trackable"),!1;if("progress"===t&&(null===n||isNaN(n)))return this.trackError(t,"This event ("+t+") needs the current progress time (in seconds)"),!1;var u=c.getResources(n);return i.forEach(u,function(i){var a=null;t===p.TRACKING.hbSlotAvailable&&r?a=r:(a=i.url,c&&c.isMetadata()&&(a=s.processMetadata(a))),a=e.match({some:function(t){return Object(h.h)(t)(a)},none:function(){return a}}),a=s.appendDuplicatedRevenueWhenAlreadyBilledAdvertiser(a,e,n,o),s.triggerUrl(a),i.fired=!0,s.logger.debug("track ["+t+(n?"@"+n.toFixed(2)+"s":"")+"]: ",a),c.addTracked(a,n),s.callback(t,!0)},this),c.setTracked(),this.trackedEvents[t]=this.trackedEvents[t]||0,this.trackedEvents[t]++,this.wigoi&&this.wigoi.vastEvent(t,n?n.toFixed(2)||n.toString():"undefined",o?100*Math.floor(n)/Math.floor(o):0,u),!0},t.prototype.triggerUrl=function(t){(new Image).src=t},t.prototype.getTrackedCount=function(t){return this.trackedEvents[t]||0},t.prototype.setMetadata=function(t,e,n){if(void 0===n&&(n=!0),"string"!=typeof t||!t)return this.logger.warn("setMetadata: key is mandatory (string).",t),!1;if("string"!=typeof e&&"function"!=typeof e)return this.logger.warn("setMetadata: value: String or Function expected.",e),!1;if("boolean"!=typeof n)return this.logger.warn("setMetadata: multiple: Boolean expected.",n),!1;var i=new d.a(t,e,n);return!!i&&(this.metadatas.push(i),!0)},t.prototype.processMetadata=function(t){for(var e,n,i=this.metadatas.length-1;i>=0;i--)e=this.metadatas[i],n=e.getKey(),"[STUDIO_CID]"===n&&(t=this.updateUrlForStudio(t,e)),0===n.indexOf("[")?t=t.replace(n,e.getValue()):t+=(t.indexOf("?")>=0?"&":"?")+e.getUrlPiece(),e.isMultiple()||this.metadatas.splice(i,1);return t},t.prototype.getTrackingsInfo=function(){var t,e={};for(var n in this.trackings)if(this.trackings.hasOwnProperty(n)){t=this.trackings[n];var o=t.getTracked();i.forEach(o,function(n,i){var o=new Date(n.time);e[t.getName()+"-"+i]={event:t.getName(),url:n.url,time:o.toTimeString().substr(0,8)+"."+o.getMilliseconds()}})}this.logger.table(e),this.logger.table(this.errors)},t.prototype.trackError=function(t,e){this.logger.warn("Track errors:",t,e),this.callback(t,"false");var n=new Date;this.errors.push({event:t,message:e,time:n.getHours()+":"+n.getMinutes()+":"+n.getSeconds()+"."+n.getMilliseconds()}),i.forEach(this.errorUrls,function(n){n+="&event="+encodeURIComponent(t),n+="&message="+encodeURIComponent(e),(new Image).src=n})},t.prototype.callback=function(t,e){if("function"==typeof this.handler)try{this.handler(t,e)}catch(e){this.logger.error("Callback error ("+t+"):",e)}},t.prototype.setCallback=function(t){"function"==typeof t&&(this.handler=t)},t.prototype.setWigoi=function(t){this.wigoi=t},t.prototype.updateUrlForStudio=function(t,e){return-1===t.indexOf("studio_cid")&&-1!==t.indexOf("t.teads.tv")&&(t+=(t.indexOf("?")>=0?"&":"?")+"studio_cid="+e.getKey()),t},t.prototype.appendDuplicatedRevenueWhenAlreadyBilledAdvertiser=function(t,e,n,i){void 0===e&&(e=a.a);r.parse(t);return r.isInternalUrl(t)&&(t.indexOf("?revenue=")>-1||t.indexOf("&revenue=")>-1)&&(t.indexOf("?gid=")>-1||t.indexOf("&gid=")>-1)&&(t.indexOf("analyticsOnly=false")>-1&&this.alreadyBilledAdvertiser.whenAnalyticsOnlyEqualsFalse||t.indexOf("analyticsOnly=true")>-1&&this.alreadyBilledAdvertiser.whenAnalyticsOnlyEqualsTrue?t+="&dr=1":(t.indexOf("analyticsOnly=false")>-1?this.alreadyBilledAdvertiser.whenAnalyticsOnlyEqualsFalse=!0:t.indexOf("analyticsOnly=true")>-1&&(this.alreadyBilledAdvertiser.whenAnalyticsOnlyEqualsTrue=!0),this.track("billable",e,n,i))),t},t}()},function(t,e,n){function i(t){var e;if(l){try{e=new ActiveXObject("Msxml2.DOMDocument.6.0"),d.logger.debug("XML Parser - ActiveXObject - Msxml2.DOMDocument.6.0")}catch(t){try{e=new ActiveXObject("Msxml2.DOMDocument.3.0"),d.logger.debug("XML Parser - ActiveXObject - Msxml2.DOMDocument.3.0")}catch(t){e=new ActiveXObject("Microsoft.XMLDOM"),d.logger.debug("XML Parser - ActiveXObject - Microsoft.XMLDOM")}}e.async=!1,e.loadXML(t)}else if(window.DOMParser){var n=new DOMParser;e=n.parseFromString(t,"text/xml")}else try{window.teads.player.playerSumologic.sendError("VAST PARSER - NO XML PARSER FOUND")}catch(t){}return e}function o(t){if(t)try{var e=c(t);return e?u(e):""}catch(e){d.logger.error("Couldn't get content for node "+t.nodeName+': "'+e+'"')}}function r(t,e){try{if(t.attributes[e])return String(t.attributes[e].value);for(var n=0;n<t.attributes.length;n++)if(t.attributes[n].name===e)return String(t.attributes[n].value)}catch(t){d.logger.error("Couldn't get attribute value: \""+t+'"')}}function a(t){return!/[^\t\n\r ]/.test(t.textContent?t.textContent:t.text)}function s(t){return 8===t.nodeType||3===t.nodeType&&a(t)}function c(t){for(var e=t.firstChild;e;){if(!s(e))return e;e=e.nextSibling}return null}function u(t){var e=t.textContent?t.textContent:t.text,n=e.replace(/[\t\n\r ]+/g," ");return" "===n.charAt(0)&&(n=n.substring(1,n.length))," "===n.charAt(n.length-1)&&(n=n.substring(0,n.length-1)),n}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"supportActiveX",function(){return l}),e.getXMLDoc=i,e.getNodeContent=o,e.getAttributeValue=r,e.isAllWhitespace=a,e.isIgnorable=s,e.getFirstChild=c,e.getNodeTextContent=u;var d=n(70),l=Object&&Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window||!!window.ActiveXObject},,function(t,e,n){function i(t,e,n,a,h){void 0===h&&(h=!0),t=r(t,e.apiFrameworkList);var g=t.match(/\/\/.*/);g&&(t=e.forceHTTPS?"https:"+g[0]:c.getProtocol()+g[0]),m.debug("Loading VAST file URL:",t," - credentials:",h);var v,y=!1,b=function(r){if(clearTimeout(v),!y&&h)return m.warn("load file with credentials failed, try without credentials before flash proxy"),void i(t,e,n,a,!1);m.warn("load file with javascript failed"),!y&&s.hasFlash()?o(t,e,n,a):(m.warn("Error loading URL",t),a(r,new d.a))};try{var A=p.createXmlHttpRequest();A.open("GET",t,!0),A.withCredentials=h;var E=function(){if(clearTimeout(v),!y){E=function(){};var t;if("string"==typeof A.responseXML)t=A.responseXML;else if("string"==typeof A.responseText)t=A.responseText;else{if("string"!=typeof A.response)return void b(u.a.get(u.b.WRAPPER_TIMEOUT.id,"empty xhr response"));t=A.response}n(l.trim(t))}};p.isXMLHttpRequest(A)?A.onreadystatechange=function(){if(4===A.readyState){if(A.status<200||A.status>=400){var t=u.a.get(u.b.WRAPPER_TIMEOUT.id,"invalid XHR status code "+A.status);return m.warn("server return an invalid status code : "+t.toString()),404===A.status&&(y=!0),b(t)}E()}}:(A.onerror=function(){return b(u.a.get(u.b.WRAPPER_TIMEOUT.id,"XHR onerror"))},A.onprogress=function(){},A.onload=function(){return E()}),A.send();var w=e.timeout||f.a.TIMEOUT;v=setTimeout(function(){y=!0,b(u.a.get(u.b.WRAPPER_TIMEOUT.id,"no response after "+w+"ms"))},w)}catch(t){m.warn("Could not load XML file directly",t),y=!0,b(u.a.get(u.b.UNDEFINED.id,"VASTLoader.load error "+t,t))}}function o(t,e,n,i){var o="vastloader_"+Date.now()+"_"+Math.round(1e3*Math.random());m.debug("try loading file with flash cors proxy",o);var r,a=e.timeout||f.a.TIMEOUT,s=!1;window[o]=function(e,a){if(!s){if(clearTimeout(r),e)m.debug("Flash CORS proxy successfully load VAST file",t),n(l.trim(decodeURIComponent(a)));else{m.error("Unable to load VAST file with flash CORS proxy");var c=u.a.get(u.b.WRAPPER_TIMEOUT.id,"flash CORS proxy fail to load XML");i(c,new d.a)}window[o]=void 0}};var c=e.assetsUrl+"/"+h.a.corsswf,p=document.createElement("div");p.innerHTML='<object id="'+o+'" name="'+o+'" data="'+c+'" type="application/x-shockwave-flash" width="0" height="0"><param name="allowScriptAccess" value="always"/><param name="movie" value="'+c+'"/><param name="flashvars" value="url='+encodeURIComponent(t)+"&handler="+o+'"/></object>',document.body.appendChild(p),r=setTimeout(function(){s=!0;var t=u.a.get(u.b.WRAPPER_TIMEOUT.id,"flash cors have no response after "+a+"ms");i(t,new d.a)},a)}function r(t,e){void 0===e&&(e=g.a);try{var n=l.rand(8);return t.replace(/\[timestamp\]/gi,String(Date.now())).replace(/\[(random|cachebusting|random_number|TTD_CACHEBUSTER)\]/gi,n).replace(/ord=(%n|\{RANDOMNUM\}|%25%25TTD_CACHEBUSTER%25%25)/gi,"ord="+n).replace(/\[APIFRAMEWORKS\]/gi,e.join(","))}catch(t){m.warn("updateUrlPlaceholder threw an exception: "+t)}return t}Object.defineProperty(e,"__esModule",{value:!0}),e.load=i,e.loadWithFlash=o,e.updateUrlPlaceholder=r;var a=n(1),s=n(37),c=n(0),u=n(16),d=n(69),l=n(8),p=n(17),h=n(169),f=n(68),g=n(161),m=new a.a("vast.VASTLoader")},function(t,e,n){n.d(e,"a",function(){return d});var i=n(7),o=n(5),r=n(6),a=n(22),s=n(107),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(){function t(){}return t.EQUALIZER="equalizer",t.MUTE="mute",t}(),d=function(){function t(){}return t.OFF="icon-muteoff",t.ON="icon-muteon",t}(),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.paused=!1,e}return c(e,t),e.prototype.init=function(){var e=this;if(t.prototype.init.call(this),this.eventName=a.a.SoundToggleRequest,this.config.type===u.EQUALIZER)this.initEqualizer();else{var n=document.createElement("div");n.className=d.OFF,this.getElement().appendChild(n);var i=function(){o.replaceClass(n,e.vpaid.getAdVolume()>0?d.ON:d.OFF,e.vpaid.getAdVolume()>0?d.OFF:d.ON)};this.vpaid.subscribe(i,r.a.AdVolumeChange),this.vpaid.subscribe(i,r.a.AdStarted)}},e.prototype.setAdVolume=function(){},e.prototype.onClick=function(e){this.config.type!==u.EQUALIZER&&t.prototype.onClick.call(this,e)},e.prototype.initEqualizer=function(){var t=this,e=document.createElement("div");e.className="equalizer",this.getElement().appendChild(e);for(var n=0;n<4;n++){var o=document.createElement("div");o.className="equalizer-bar equalizer-bar-"+n,o.style.left=String(3*n+n),e.appendChild(o)}var a=function(){if(!t.isPaused()){var n=i.getElementsByClassName("equalizer-bar",e,t.ui.getContentWindow());for(var o in n){var r=n[o];r&&r.style&&"none"!==r.style.display&&Math.random()>.5&&(r.style.height=Math.max(3,Math.floor(15*Math.random()+1))+"px")}}};a(),setInterval(a,200),this.vpaid.subscribe(function(){t.pause()},r.a.AdPaused),this.vpaid.subscribe(function(){t.resume()},r.a.AdPlaying)},e.prototype.resume=function(){this.paused=!1},e.prototype.pause=function(){this.paused=!0},e.prototype.isPaused=function(){return this.paused},e}(s.a);e.b=l},function(t,e,n){var i,o=n(3),r=n(40),a=n(38),s=n(5),c=n(26),u=n(47),d=n(6),l=function(){function t(){this.status=c.a.READY,this.eventHandler=new u.a,this.trackingRaised={AdVideoFirstQuartile:!1,AdVideoMidpoint:!1,AdVideoThirdQuartile:!1},this.parameters={},this.skippable=!1,this.expanded=!1}return t.prototype.getVPAID=function(){return this},t.prototype.handshakeVersion=function(t){return"2.0"},t.prototype.subscribe=function(t,e,n){this.eventHandler.subscribe(t,e,n)},t.prototype.unsubscribe=function(t,e){this.eventHandler.unsubscribe(t,e)},t.prototype.initAd=function(t,e,n,s,u,l){var p=this;this.status=c.a.LOADING,this.width=t,this.height=e,this.viewMode=n,r.decode(u).match({success:function(t){for(var e in t)t.hasOwnProperty(e)&&(p.parameters[e]=t[e]);if(p.environmentVars=l,p.environmentVars.videoSlot||(p.environmentVars.videoSlot=i=i||document.createElement("video")),p.environmentVars.videoSlot.setAttribute&&(p.environmentVars.videoSlot.setAttribute("webkit-playsinline","true"),p.environmentVars.videoSlot.setAttribute("playsinline","true"),o.isAndroid()&&o.isChromeWebView()&&null===p.environmentVars.videoSlot.getAttribute("poster")&&p.environmentVars.videoSlot.setAttribute("poster",a.base64TransparentPixel),null===p.environmentVars.videoSlot.getAttribute("muted")&&p.environmentVars.videoSlot.setAttribute("muted","true")),!p.environmentVars.slot)return void p.dispatchVpaidEvent(d.a.AdError,"no slot provided in environmentVars");p.video=p.environmentVars.videoSlot,p.createContainer(p.environmentVars.slot)},failure:function(t){p.dispatchVpaidEvent(d.a.AdError,"invalid creative data: "+u)}})},t.prototype.startAd=function(){this.status=c.a.STARTING},t.prototype.skipAd=function(){this.status=c.a.SKIPPING},t.prototype.stopAd=function(){this.status=c.a.STOPPING},t.prototype.resizeAd=function(t,e,n){this.width=t,this.height=e,this.viewMode=n},t.prototype.expandAd=function(){return!1},t.prototype.collapseAd=function(){return!1},t.prototype.getAdLinear=function(){return!0},t.prototype.getAdWidth=function(){return this.width},t.prototype.getAdHeight=function(){return this.height},t.prototype.getAdExpanded=function(){return s.isFullscreen()||this.expanded},t.prototype.getAdSkippableState=function(){return this.skippable},t.prototype.getAdCompanions=function(){return""},t.prototype.getAdIcons=function(){return!1},t.prototype.getAdDuration=function(){throw"not implemented"},t.prototype.getAdRemainingTime=function(){throw"not implemented"},t.prototype.getStatus=function(){return this.status},t.prototype.createContainer=function(t){this.container||(this.container=document.createElement("div"),this.container.style.setProperty("position","relative"),t.appendChild(this.container))},t.prototype.onAdVideoCompleteDispatched=function(){var t=this;this.parameters.noAutoStop?(this.video.addEventListener("seeked",function(){t.video.pause()},!1),this.video.currentTime=1):this.stopAd()},t.prototype.dispatchVpaidEvent=function(t,e){this.handleVPAIDEvent(new d.a(t,e))},t.prototype.handleVPAIDEvent=function(t){if(!(this.status===c.a.SKIPPING&&t.type!==d.a.AdSkipped||this.status===c.a.STOPPING&&t.type!==d.a.AdStopped||this.status<=c.a.STOPPED||this.status===c.a.STOPPING&&t.type!==d.a.AdStopped)){switch(t.type){case d.a.AdLoaded:this.status=c.a.LOADED;break;case d.a.AdStarted:this.status=c.a.STARTED;break;case d.a.AdVideoStart:case d.a.AdPlaying:this.status=c.a.PLAYING;break;case d.a.AdPaused:this.status=c.a.PAUSED;break;case d.a.AdVideoComplete:this.status=c.a.COMPLETE;break;case d.a.AdSkipped:this.status=c.a.SKIPPED;break;case d.a.AdStopped:this.status=c.a.STOPPED;break;case d.a.AdDurationChange:case d.a.AdRemainingTimeChange:var e=this.getAdDuration(),n=e-this.getAdRemainingTime();e>0&&n>=.25*e&&!this.trackingRaised.AdVideoFirstQuartile?this.dispatchVpaidEvent(d.a.AdVideoFirstQuartile):e>0&&n>=.5*e&&!this.trackingRaised.AdVideoMidpoint?this.dispatchVpaidEvent(d.a.AdVideoMidpoint):e>0&&n>=.75*e&&!this.trackingRaised.AdVideoThirdQuartile&&this.dispatchVpaidEvent(d.a.AdVideoThirdQuartile);break;case d.a.AdVideoFirstQuartile:case d.a.AdVideoMidpoint:case d.a.AdVideoThirdQuartile:if(this.trackingRaised[t.type])return;this.trackingRaised[t.type]=!0;break;case d.a.AdVideoComplete:this.status=c.a.COMPLETE;break;case d.a.AdError:if(this.trackingRaised[t.type])return;this.trackingRaised[t.type]=!0}this.eventHandler.handleEvent(t),this.status===c.a.SKIPPED&&this.stopAd(),t.type===d.a.AdVideoComplete&&this.onAdVideoCompleteDispatched()}},t.prototype.handleException=function(t,e){var n='method "'+e+'" threw an exception: '+t.toString();this.dispatchVpaidEvent(d.a.AdLog,n),this.dispatchVpaidEvent(d.a.AdError,n)},t}();e.a=l},function(t,e,n){n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var i;!function(t){t[t.HAVE_NOTHING=0]="HAVE_NOTHING",t[t.HAVE_METADATA=1]="HAVE_METADATA",t[t.HAVE_CURRENT_DATA=2]="HAVE_CURRENT_DATA",t[t.HAVE_FUTURE_DATA=3]="HAVE_FUTURE_DATA",t[t.HAVE_ENOUGH_DATA=4]="HAVE_ENOUGH_DATA"}(i||(i={}));var o;!function(t){t[t.NETWORK_EMPTY=0]="NETWORK_EMPTY",t[t.NETWORK_IDLE=1]="NETWORK_IDLE",t[t.NETWORK_LOADING=2]="NETWORK_LOADING",t[t.NETWORK_NO_SOURCE=3]="NETWORK_NO_SOURCE"}(o||(o={}))},function(t,e,n){var i=n(7),o=n(2),r=n(16),a=n(26),s=n(6),c=n(36),u=n(120),d=n(119),l=n(122),p=n(13),h=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.config={url:"",skippable:!0,skipoffset:0,gradients:!0},e.eventMap={durationchange:"AdDurationChange",resize:"AdSizeChange",volumechange:"AdVolumeChange",ended:"AdVideoComplete",play:"AdPlaying",playing:"AdPlaying",pause:"AdPaused",timeupdate:"AdRemainingTimeChange",error:"AdError"},e}return h(e,t),e.prototype.initAd=function(e,n,o,r,u,d){var l=this;if(this.status!==a.a.READY)return void this.dispatchVpaidEvent(s.a.AdLog,"creative is not in ready state, cannot call initAd");try{this.parameters=this.config,t.prototype.initAd.call(this,e,n,o,r,u,d),i.addEventListener("error",this.video,function(t){l.handleVideoError(t)}),i.addEventListener("loadedmetadata",this.video,function(t){return l.dispatchVpaidEvent(c.default.AdVideoMetadata,{width:l.video.videoWidth,height:l.video.videoHeight})}),this.beginingTimestamp=Date.now(),this.video.preload="metadata",this.video.src=Object(p.updateProtocolIfNeeded)(this.parameters.url),this.appendVideo(),this.dispatchVpaidEvent(s.a.AdLoaded)}catch(t){this.handleException(t,"initAd")}},e.prototype.startAd=function(){var e=this;if(this.status>a.a.LOADED)return void this.dispatchVpaidEvent(s.a.AdLog,"try to call startAd but ad is starting or is already started");if(this.status<a.a.LOADED)return void this.dispatchVpaidEvent(s.a.AdLog,"Ad is not loaded, use initAd first");try{t.prototype.startAd.call(this),this.parameters.gradients&&this.appendGradients(),this.clickThrough=new l.a(function(t,n,i){e.dispatchVpaidEvent(s.a.AdClickThru,{url:t,id:n,playerHandles:i})},this.parameters.clickThrough),this.clickThrough.append(this.container),this.clickThrough.resize(this.width,this.height),this.setSize(this.width,this.height),this.initListeners(),this.video.play(),this.dispatchVpaidEvent(s.a.AdStarted),this.dispatchVpaidEvent(s.a.AdImpression)}catch(t){this.handleException(t,"startAd")}},e.prototype.skipAd=function(){if(this.status<=a.a.SKIPPING)return void this.dispatchVpaidEvent(s.a.AdLog,"Ad is already stopped or is skipping");try{this.skippable?(t.prototype.skipAd.call(this),this.video.pause(),this.video.style.setProperty("display","none"),this.dispatchVpaidEvent(s.a.AdSkipped)):this.dispatchVpaidEvent(s.a.AdLog,"skipAd() called, but creative is not skippable")}catch(t){this.handleException(t,"skipAd")}},e.prototype.resizeAd=function(t,e,n){try{this.setSize(t,e),this.dispatchVpaidEvent(s.a.AdSizeChange)}catch(t){this.handleException(t,"resizeAd")}},e.prototype.stopAd=function(){if(this.status<=a.a.STOPPING)return void this.dispatchVpaidEvent(s.a.AdLog,"Ad is already stopped");try{t.prototype.stopAd.call(this),this.removeVideo(),this.clickThrough.remove(),this.dispatchVpaidEvent(s.a.AdStopped),this.eventHandler.clearListeners()}catch(t){this.handleException(t,"stopAd")}},e.prototype.pauseAd=function(){try{this.video.pause()}catch(t){this.handleException(t,"pauseAd")}},e.prototype.resumeAd=function(){try{this.video.play()}catch(t){this.handleException(t,"resumeAd")}},e.prototype.getAdRemainingTime=function(){return this.video?this.video.duration-this.video.currentTime:0},e.prototype.getAdDuration=function(){return this.video?this.video.duration:0},e.prototype.getAdVolume=function(){return this.video?this.video.muted?0:this.video.volume:0},e.prototype.setAdVolume=function(t){return this.video?(this.video.muted=0===t,this.video.volume=t,this.video.muted?0:this.video.volume):0},e.prototype.appendGradients=function(){var t=this;o.forEach(["top","bottom"],function(n){var i=document.createElement("div");i.style.setProperty("background","transparent url(data:image/png;base64,"+e["GRADIENT_"+n.toUpperCase()]+")"),i.style.setProperty("position","absolute"),i.style.setProperty("left","0"),i.style[n]="0",i.style.setProperty("z-index","2"),i.style.setProperty("height","30px"),i.style.setProperty("width","100%"),t.container.appendChild(i)})},e.prototype.appendVideo=function(){this.video.parentNode||(this.dispatchVpaidEvent(s.a.AdLog,"Video slot got no parent node, appending to container"),this.container.appendChild(this.video))},e.prototype.removeVideo=function(){try{this.video.parentNode.removeChild(this.video)}catch(t){this.dispatchVpaidEvent(s.a.AdLog,"teads-vpaid-video, cannot remove video from DOM")}},e.prototype.sendAdVideoStartEvent=function(){this.videoHasStarted||(this.videoHasStarted=!0,this.dispatchVpaidEvent(s.a.AdVideoStart))},e.prototype.setSize=function(t,e){this.width=t,this.height=e,this.video&&(this.video.width=this.width,this.video.height=this.height),this.clickThrough&&this.clickThrough.resize(t,e),this.container.style.setProperty("width",t+"px"),this.container.style.setProperty("height",e+"px")},e.prototype.initListeners=function(){var t=this;for(var e in this.eventMap)this.video.addEventListener(e,function(e){t.handleVideoEvent(e)},!1)},e.prototype.handleVideoError=function(t){if("error"===t.type){var e=this.video.error;if(e)switch(e.code){case 1:break;case 2:this.dispatchVpaidEvent(s.a.AdError,{message:"video error : A network error caused the ressource to stop being fetched",id:r.b.MEDIAFILE_TIMEOUT.id});break;case 3:this.dispatchVpaidEvent(s.a.AdError,{message:"video error : A decoding error caused the ressource to stop being fetched",id:r.b.MEDIAFILE_DISPLAY.id});break;case 4:var n={message:"video error : The associated ressource has been detected to be not suitable",id:r.b.GENERAL_LINEAR.id};this.video.readyState===u.a.HAVE_NOTHING&&(n.id=r.b.FILE_NOT_FOUND.id),this.dispatchVpaidEvent(s.a.AdError,n)}else this.dispatchVpaidEvent(s.a.AdError,{message:"video error : unkown error",id:r.b.GENERAL.id})}},e.prototype.handleVideoEvent=function(t){try{var e=this.eventMap[t.type];switch(t.type){case"pause":if(this.video.currentTime===this.video.duration||this.status<=a.a.SKIPPING||this.status===a.a.COMPLETE)return;break;case"play":case"playing":if(this.status===a.a.STARTED)return this.sendAdVideoStartEvent();if(this.status!==a.a.PAUSED)return;break;case"timeupdate":this.parameters.skippable&&!this.skippable&&this.video.currentTime>=Number(this.parameters.skipoffset)&&(this.skippable=!0,this.dispatchVpaidEvent(s.a.AdSkippableStateChange)),(this.status===a.a.STARTED||this.video.currentTime>0)&&this.sendAdVideoStartEvent()}this.dispatchVpaidEvent(e)}catch(e){var n='Creative threw an exception when handling "'+t.type+'" HTML5 video event: '+e.toString();this.dispatchVpaidEvent(s.a.AdLog,n),this.dispatchVpaidEvent(s.a.AdError,{message:n,id:r.b.GENERAL.id})}},e.GRADIENT="iVBORw0KGgoAAAANSUhEUgAAAAEAAAAeCAYAAADtlXTHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QjM0ODU0RjM1QkFEMTFFNUE5RDI5OTE4QkFCM0I3NzciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QjM0ODU0RjQ1QkFEMTFFNUE5RDI5OTE4QkFCM0I3NzciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpCMzQ4NTRGMTVCQUQxMUU1QTlEMjk5MThCQUIzQjc3NyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpCMzQ4NTRGMjVCQUQxMUU1QTlEMjk5MThCQUIzQjc3NyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/",e.GRADIENT_TOP=e.GRADIENT+"Psk0S98AAAAgSURBVHjaYmBgYJBiAhIMIOI/nEDj0oNgYGaAAYAAAwAH4xg8FtOkrgAAAABJRU5ErkJggg==",e.GRADIENT_BOTTOM=e.GRADIENT+"PkIta+gAAAAaSURBVHjaYmBABoxMMIKBCYVLDwLJSoAAAwAWTwBRQ43+sgAAAABJRU5ErkJggg==",e}(d.a);e.a=f},function(t,e,n){var i=function(){function t(t,e,n){this.id=n,this.layer=document.createElement("div"),this.layer.className+="vpaid-clickthrough",this.layer.style.setProperty("cursor","pointer"),this.layer.style.setProperty("opacity","0"),this.layer.style.setProperty("background-color","#FFFFFF"),this.layer.style.setProperty("position","absolute"),this.layer.style.setProperty("z-index","65000"),this.layer.addEventListener("click",function(i){t(e,n,!0)},!1)}return t.prototype.resize=function(t,e){this.layer.style.setProperty("width",t+"px"),this.layer.style.setProperty("height",e+"px")},t.prototype.remove=function(){this.layer.parentNode&&this.layer.parentNode.removeChild(this.layer)},t.prototype.append=function(t){t.firstChild?t.insertBefore(this.layer,t.firstChild):t.appendChild(this.layer)},t}();e.a=i},function(t,e,n){n.d(e,"a",function(){return o});var i=n(2),o=function(){function t(t,e,n,i,o,r){void 0===e&&(e=[]),void 0===n&&(n=[]),void 0===i&&(i=!1),void 0===o&&(o=!0),void 0===r&&(r=[]),this.name=t,this.before=e,this.after=n,this.multiple=i,this.metadata=o,this.resources=r,this.tracked=[],this.eventIsTracked=!1,"progress"===t&&(this.multiple=!0)}return t.prototype.getName=function(){return this.name},t.prototype.getBefore=function(){return this.before},t.prototype.getAfter=function(){return this.after},t.prototype.isMultiple=function(){return this.multiple},t.prototype.isMetadata=function(){return this.metadata},t.prototype.getResources=function(t){return i.filter(this.resources,function(e){return!(e.offset>0)||t>=0&&e.offset>=0&&t>=e.offset&&!e.fired})},t.prototype.getAllResources=function(){return this.resources},t.prototype.removeResources=function(){this.resources=[]},t.prototype.hasResources=function(){return this.resources.length>0},t.prototype.addResource=function(t,e){this.resources.push({url:t,offset:e})},t.prototype.setTracked=function(){this.eventIsTracked=!0},t.prototype.isTracked=function(){return this.eventIsTracked},t.prototype.addTracked=function(t,e){this.tracked.push({time:e,url:t})},t.prototype.getTracked=function(){return this.tracked},t.prototype.isTrackable=function(){return!this.eventIsTracked||this.isMultiple()},t}()},function(t,e,n){n.d(e,"a",function(){return o});var i=n(1),o=function(){function t(t,e,n){if(void 0===n&&(n=!0),this.key=t,this.value=e,this.multiple=n,this.logger=new i.a("tracker.Metadata"),!t)throw new Error("Metadata key is mandatory")}return t.prototype.isMultiple=function(){return this.multiple},t.prototype.getKey=function(){return this.key},t.prototype.getValue=function(){var t=this.value;if("function"==typeof t)try{return String(t()||"")}catch(t){return this.logger.warn("getValue: error while trying to execute value function:",t),""}return String(t||"")},t.prototype.getUrlPiece=function(){return encodeURIComponent(this.getKey())+"="+encodeURIComponent(this.getValue())},t}()},function(t,e,n){n.d(e,"a",function(){return i});var i;!function(t){t[t.UNSUPPORTED=0]="UNSUPPORTED",t[t.FLASH=1]="FLASH",t[t.JS=2]="JS",t[t.VPAID=3]="VPAID",t[t.CANVAS=4]="CANVAS"}(i||(i={}))},function(t,e,n){function i(t){var e;return t&&t.extensions&&t.extensions.length>0&&s.forEach(t.extensions,function(t){t.type===c&&(e=r(t.content))}),e}function o(t){return!!i(t)}function r(t){try{return JSON.parse(t)}catch(t){new a.a("TeadsStudioExtension").error(c+" extension throw an exception",t)}}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"EXTENSION_TYPE",function(){return c}),e.get=i,e.isStudioLinearAd=o,e.parse=r;var a=n(1),s=n(2),c="teads-studio"},function(t,e,n){e.a={vpaidvideojs:"teads-vpaid-video.min.js",vpaidcanvas:"teads-vpaid-canvas.min.js",vpaidvideoswf:"teads-vpaid-video.swf",vastcorsloader:"cors.swf",vpaidswfwrapper:"vpaidwrapper.swf",iasvans:"__IASVANS_3.3.0.js"}},function(t,e,n){var i;!function(t){t[t.UNLOADED=-1]="UNLOADED",t[t.READY=0]="READY",t[t.LOADING=1]="LOADING",t[t.LOADED=2]="LOADED"}(i||(i={})),e.a=i},function(t,e,n){function i(t){for(var e=0;e<o.a.length;e++)if(t.indexOf(o.a[e])>-1)return!0;return!1}Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var o=n(130)},function(t,e,n){var i=["vpaid-empty.swf","liverail.com/swf/v4/admanager.swf","teads.tv/swf/vpaid/vpaid-ad"];e.a=i},function(t,e,n){var i=n(71),o=n(102),r=n(45),a=n(104),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.loadVpaid=function(t,e,n){var i=this,r=new o.a(this.container,this.config);this.creativeContainer=r.getIframeContainer();var s=this.config.sandboxUrl||this.config.path+"/"+a.a.sandbox;r.initAPI(s,function(){r.loadVpaid(t,function(t){i.vpaid=t,e(t)},n)},n)},e.prototype.getType=function(){return r.a.POSTMESSAGE},e}(i.a);e.a=c},function(t,e,n){var i=n(11),o=n(90),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(e){var n=t.call(this)||this;return n.postMessage=e,n}return r(e,t),e.prototype.handshakeVersion=function(t){return"2.0"},e.prototype.initAd=function(t,e,n,o,r,a){void 0===r&&(r="");var s="object"==typeof r?Object(i.stringify)(r):r;this.callVPAIDMethod("initAd",[t,e,n,o,s])},e.prototype.subscribe=function(t,e,n){this.postMessage.subscribe(t,e,n)},e.prototype.unsubscribe=function(t,e){this.postMessage.unsubscribe(t,e)},e.prototype.callVPAIDMethod=function(t,e){void 0===e&&(e=[]),this.postMessage.callVPAIDMethod(t,e)},e}(o.a);e.a=a},function(t,e,n){n.d(e,"a",function(){return c});var i=n(1),o=n(103),r=n(102),a=n(6),s=n(113),c=function(){function t(e,n){var r=this;this.container=e,this.assetPath=n,this.logger=new i.a("vpaid.PostMessageServer"),this.timerDelay=250,this.logger.debug("Init postMessageAPI",e),this.window=window,this.postMessage=new o.a(window,window.parent),this.postMessage.setServerCallback(function(t){r.callMethod(t.name,t.data)}),this.postMessage.dispatchEvent(t.READY_EVENT),this.logger.debug("End Init postMessageAPI",e,window,window.parent)}return t.prototype.callMethod=function(e,n){switch(this.logger.debug("call method "+e,n),e){case r.a.LOADVPAID_METHOD:return this.loadVpaid(n[0]);case r.a.SETCONFIG_METHOD:this.config=n[0],this.logger.debug("Received configuration Object",this.config),this.config.sandbox=!1,this.config.path=this.assetPath,this.postMessage.dispatchEvent(t.CONFIGREADY_EVENT);break;default:this.callVPAIDMethod(e,n)}},t.prototype.callVPAIDMethod=function(t,e){try{return this.vpaid[t].apply(this.vpaid,e)}catch(i){var n="Error calling methog "+t+"("+e+")";this.postMessage.dispatchEvent(a.a.AdLog,n),this.logger.error(n)}},t.prototype.loadVpaid=function(e){var n=this;new s.a(this.container,this.config).load(e,function(e){n.logger.debug("VPAID Loaded !",e),n.vpaid=e;for(var i in a.a)n.vpaid.subscribe(function(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t===a.a.AdStopped&&clearInterval(n.timerId),n.postMessage.dispatchEvent(t,e)}}(i),i);n.postMessage.dispatchEvent(t.VPAIDLOADED_EVENT),n.sendGettersValues(),n.timerId=setInterval(function(){n.sendGettersValues()},n.timerDelay)},function(e){n.postMessage.dispatchEvent(t.VPAIDLOADEDERROR_EVENT,[e]),n.logger.error("PostMessageServer : Unable to load VPAID "+e.message)})},t.prototype.sendGettersValues=function(){var e=this,n={};r.a.getters.forEach(function(t){n[t]=e.callVPAIDMethod(t,[])}),this.postMessage.dispatchEvent(t.ATTRIBUTE_EVENT,n)},t.READY_EVENT="ready",t.CONFIGREADY_EVENT="configReady",t.VPAIDLOADED_EVENT="vpaidLoaded",t.VPAIDLOADEDERROR_EVENT="vpaidLoadedError",t.ATTRIBUTE_EVENT="attributes",t}()},function(t,e,n){n.d(e,"a",function(){return c});var i=n(105),o=n(46),r=n(6),a=n(26),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.startAd=function(){try{Object(o.checkVpaidStatus)("startAd",this.status)}catch(t){return this.dispatchEvent(r.a.AdLog,t)}this.status=a.a.STARTING,this.adStarted=!0,this.dispatchEvent(r.a.AdStarted),this.dispatchEvent(r.a.AdImpression),this.vpaid.resumeAd()},e.prototype.handleVpaidEvent=function(e){if(!this.adStarted)switch(e.type){case r.a.AdSkippableStateChange:case r.a.AdLog:case r.a.AdVolumeChange:break;case r.a.AdError:this.adError=!0;break;case r.a.AdStopped:this.adError||this.dispatchEvent(r.a.AdError,"AdManagerWrapper : this VPAID creative got no Ads");break;case r.a.AdLoaded:return this.vpaidguard("startAd");case r.a.AdImpression:e=new r.a(r.a.AdLoaded);break;case r.a.AdStarted:return this.vpaidguard("pauseAd");default:return}t.prototype.handleVpaidEvent.call(this,e)},e}(i.a)},function(t,e,n){n.d(e,"a",function(){return l});var i=n(5),o=n(37),r=n(45),a=n(101),s=n(104),c=n(51),u=n(48),d=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d(e,t),e.prototype.loadVpaid=function(t,e,n){var r=this;if(!Object(o.hasFlash)())return n(c.FLASH_PLUGIN_MISSING);var a=!1,d=!1,l=function(t){if(!d)try{window.teads.player.playerSumologic.sendInfo("wrapper ko",{},!0)}catch(t){}n(t),r.destroy()};this.callbackName="handleVPAIDEvent"+this.id,this.window=Object(i.getWindow)(this.container),this.window[this.callbackName]=function(t){return"wrapper"===t.type?void(d=!0):(a=!0,clearTimeout(r.loadTimeoutId),r.window[r.callbackName]=function(){},"ready"===t.type?(r.vpaid=r.creativeContainer,e(r.vpaid),void r.logger.info("getVPAIDAd - Retrieve ad from creative")):void("error"===t.type&&l(t.data)))};var p="vpaid-"+this.id,h=this.config.path+"/"+s.a.vpaidswfwrapper;this.container.innerHTML='<object data="'+h+'" type="application/x-shockwave-flash" name="'+p+'" id="'+p+'" style="border:0px;width:100%;height:1px;margin:0px;padding:0px" width="100%" height="100%"><param name="id" value="'+p+'" /><param name="name" value="'+p+'" /><param name="movie" value="'+h+'" /><param name="bgcolor" value="#000000" /><param name="quality" value="high" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="wmode" value="transparent" /><param name="flashvars" value="debug='+this.config.debug+"&eventHandler="+this.callbackName+"&url="+encodeURIComponent(t)+'" /></object>',this.creativeContainer=this.window.document.getElementById(p),this.loadTimeoutId=setTimeout(function(){a||l(c.LOAD_VPAID_TIMEOUT)},u.loadVpaid)},e.prototype.setBackground=function(e){if(t.prototype.setBackground.call(this,e),this.creativeContainer)for(var n=this.creativeContainer.getElementsByTagName("param"),i=0;i<n.length;i++)"bgcolor"===n[i].name&&(n[i].value=this.backgroundColor)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.window[this.callbackName]=function(){}},e.prototype.registerVPAIDEventHandler=function(t){this.window[this.callbackName]=t},e.prototype.resize=function(){},e.prototype.getEnvironmentVars=function(t){return{slot:this.creativeContainer,videoSlot:null,videoSlotCanAutoPlay:!0}},e.prototype.getType=function(){return r.a.SWF},e}(a.a)},function(t,e,n){var i=n(7),o=n(22),r=n(19),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(){this.eventName=o.a.FullscreenRequest,this.showOnVideoStart=!1,t.prototype.init.call(this),this.show()},e.prototype.bindClick=function(){var t=this;i.addEventListener("mousedown",this.getElement(),function(e){t.onClick(e)})},e}(r.a);e.a=s},function(t,e,n){var i=n(7),o=n(6),r=n(54),a=n(19),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.showOnVideoProgress=!0,e}return s(e,t),e.prototype.init=function(){var e=this;if(this.progressbar=i.getElementsByClassName("progress",this.getElement(),this.ui.getContentWindow())[0],!this.progressbar)return this.hide();this.vpaid.subscribe(function(){e.onProgress()},o.a.AdRemainingTimeChange),this.vpaid.subscribe(function(){e.hide()},o.a.AdVideoComplete),t.prototype.init.call(this)},e.prototype.setShowOnVideoProgress=function(t){this.showOnVideoProgress=t},e.prototype.getShowOnVideoProgress=function(){return this.showOnVideoProgress},e.prototype.onProgress=function(){var t=r.getCurrentTime(this.vpaid);this.vpaid.getAdDuration()>0&&t>0?(!this.isVisible()&&this.showOnVideoProgress&&this.show(),this.progressbar.style.setProperty("width",t/this.vpaid.getAdDuration()*100+"%")):this.hide()},e}(a.a);e.a=c},function(t,e,n){var i=n(5),o=n(6),r=n(22),a=n(19),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.init=function(){var e=this;this.eventName=r.a.PlayPauseRequest,this.vpaid.subscribe(function(){e.onPause()},o.a.AdPaused),this.vpaid.subscribe(function(){e.onPause()},o.a.AdVideoComplete),this.vpaid.subscribe(function(){e.onPlay()},o.a.AdPlaying),this.vpaid.subscribe(function(){e.onPlay()},o.a.AdVideoStart),t.prototype.init.call(this)},e.prototype.onClick=function(e){t.prototype.onClick.call(this,e),this.isPlaying?this.vpaid.pauseAd():this.vpaid.resumeAd()},e.prototype.onPlay=function(){this.isPlaying=!0,i.addClass(this.getElement(),"playing")},e.prototype.onPause=function(){this.isPlaying=!1,i.removeClass(this.getElement(),"playing")},e}(a.a);e.a=c},function(t,e,n){var i=n(6),o=n(19),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.init=function(){var t=this;this.vpaid.subscribe(function(){var e=t.vpaid.getAdRemainingTime();isNaN(e)&&(e=t.vpaid.getAdDuration()),t.getElement().innerHTML="Your video in "+Math.ceil(e)+" sec"},i.a.AdRemainingTimeChange)},e}(o.a);e.a=a},function(t,e,n){var i=n(22),o=n(54),r=n(19),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(){var e=this,n=this.ui.getConfig();if(this.eventName=i.a.SkipRequest,this.config.listenSkippableState)return void this.hide();var r=setInterval(function(){if(!e.vpaid.getAdSkippableState()&&n.skipoffset>0){var t=Math.floor(n.skipoffset-o.getCurrentTime(e.vpaid));e.getElement().innerHTML="Skip in "+(isNaN(t)?n.skipoffset:t<0?0:t)+" sec",e.show()}else e.vpaid.getAdSkippableState()&&(clearInterval(r),e.getElement().style.setProperty("cursor","pointer"),e.getElement().innerHTML="Skip Ad >>",e.show())},1e3);t.prototype.init.call(this)},e.prototype.onClick=function(e){t.prototype.onClick.call(this,e),this.vpaid.getAdSkippableState()&&this.vpaid.skipAd()},e}(r.a);e.a=s},function(t,e,n){var i=n(5),o=n(7),r=n(22),a=n(19),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.init=function(){var t=this,e=!0;this.eventName=r.a.UIButtonRequest,o.addEventListener("click",this.getElement(),function(n){t.onClick(n),e?t.ui.hideAllComponents():t.ui.showAllComponents(),t.ui.showComponent("uibutton"),e=!e,i.toggleClass(t.getElement(),"ui-invisible")})},e}(a.a);e.a=c},function(t,e,n){function i(t){var e="00";if(t>60){e=Math.floor(t/60)<10?"0":""}return e+=":"+(t<10?"0":"")+t}Object.defineProperty(e,"__esModule",{value:!0}),e.secondToTimecode=i},function(t,e,n){var i=n(5),o=n(6),r=n(22),a=n(19),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.init=function(){this.showOnVideoStart=!1,this.eventName=r.a.ClickToPlayRequest},e.prototype.onMethod=function(t,e){void 0===e&&(e=[]),"startAd"===t&&(this.show(),this.dispatchVpaidEvent(o.a.AdStarted))},e.prototype.getOverridenEvents=function(){return[o.a.AdStarted]},e.prototype.getOverridenMethods=function(){return["startAd"]},e.prototype.onClick=function(e){var n=this;t.prototype.onClick.call(this,e),i.addClass(this.getElement(),"loading"),this.vpaid.subscribe(function(){n.remove()},o.a.AdStarted),this.remove(),this.vpaid.startAd()},e}(a.a);e.a=c},function(t,e,n){var i=n(6),o=n(22),r=n(109),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(){var t=this;if(this.clickthrough=this.ui.getConfig().clickthrough,this.eventName=o.a.ClickRequest,this.config.text&&this.clickthrough){var e=document.createElement("div");e.className="text",e.innerHTML=this.config.text,this.getElement().appendChild(e)}else this.hide();this.vpaid.subscribe(function(){t.hide()},i.a.AdVideoComplete)},e.prototype.onVideoStart=function(){this.showOnVideoStart&&this.config.text&&this.clickthrough&&this.show()},e.prototype.onClick=function(e){t.prototype.onClick.call(this,e),this.dispatchVpaidEvent(i.a.AdClickThru,{url:this.clickthrough,id:this.config.id,playerHandles:!0})},e}(r.a);e.a=s},function(t,e,n){var i=n(19),o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultText="Advertising",e}return o(e,t),e.prototype.init=function(){var t=this.config.html&&""!==this.config.html?this.config.html:this.config.text||this.defaultText;this.getElement().innerHTML=t,this.getElement().setAttribute("style",this.config.style||""),this.show()},e}(i.a);e.a=r},function(t,e,n){var i=n(19),o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLink={inRead:"http://inread-experience.teads.tv",inBoard:"http://teads.tv/en/teads-media/"},e}return o(e,t),e.prototype.init=function(){var t=/\[([^\]]*)\]/g;if(!this.config.text){var e="inRead";"inboard"===this.config.formatName&&(e="inBoard"),this.config.text="["+e+"] invented by Teads"}var n=this.config.text.replace(t,'<span class="teads-ui-component-credits-blue">$1</span>'),i=this.config.url||this.defaultLink[e]||"http://teads.tv/en";this.getElement().innerHTML='<a href="'+i+'" target="_blank">'+n+"</a>",this.show()},e}(i.a);e.a=r},function(t,e,n){var i=n(7),o=n(5),r=n(3),a=n(6),s=n(22),c=n(19),u=n(85),d=n(174),l=n.n(d),p=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.init=function(){var t=this;this.logger.debug("init endscreen"),this.showOnVideoStart=!1;var n=this.element.getAttribute("style");this.element.setAttribute("style",(n?n+";":"")+" opacity: 0.8!important; background-color: #ffffff;"),this.getElement().innerHTML=e.TEMPLATE,this.vpaid.subscribe(function(){if(t.logger.debug("video complete"),t.videoComplete=!0,t.dispatchVpaidEvent(a.a.AdVideoComplete),t.ui.getConfig().noAutoStop){t.show(),t.initLayout();var e=t.ui.getVPAIDContainer();e.style.setProperty("filter","blur(3px)"),e.style.setProperty("webkit-filter","blur(3px)"),t.dispatchVpaidEvent(s.a.EndscreenInit)}},a.a.AdVideoComplete),this.vpaid.subscribe(function(){t.videoComplete&&!t.ui.getConfig().noAutoStop&&(t.show(),t.initLayout(),t.dispatchVpaidEvent(s.a.EndscreenInit))},a.a.AdStopped),this.hide()},e.prototype.getOverridenEvents=function(){return this.videoComplete?[a.a.AdStopped]:[a.a.AdVideoComplete]},e.prototype.getOverridenMethods=function(){return this.isVisible()?["pauseAd","resumeAd"]:[]},e.prototype.onOverridenMethod=function(t,e){this.countdown&&("pauseAd"===t?this.countdown.pause():"resumeAd"===t&&this.countdown.resume())},e.prototype.onMethod=function(t,e){void 0===e&&(e=[]),"resizeAd"===t&&this.videoComplete&&(this.logger.debug("resizeAd from endscreen",e),this.resize(e[0],e[1]),this.dispatchVpaidEvent(a.a.AdSizeChange))},e.prototype.initLayout=function(){var t=this;if(this.replayButton=i.getElementsByClassName("replay-button",this.getElement(),this.ui.getContentWindow())[0],this.replayButton){i.addEventListener("click",this.replayButton,function(){t.onReplayClick()});try{i.getElementsByClassName("text",this.replayButton,this.ui.getContentWindow())[0].innerHTML=this.config.replayButton.text}catch(t){this.logger.error("No text on replay button")}r.isEdgeTouchScreen()&&(this.replayButton.className="button edge-touch-screen replay-button")}else this.logger.debug("No replayButton on endscreen !");if(this.callButton=i.getElementsByClassName("call-button",this.getElement(),this.ui.getContentWindow())[0],this.callButton&&this.config.callButton&&this.ui.getConfig().clickthrough){if(i.addEventListener("click",this.callButton,function(){t.dispatchUiEvent(s.a.ClickRequest),t.onActionClick()}),this.config.callButton.text){var n=this.callButton.querySelector(".icon span");if(n){var c=e.CSSClassMapping[this.config.callButton.type]||function(){for(var t in e.CSSClassMapping)return e.CSSClassMapping[t]}();o.addClass(n,c)}try{i.getElementsByClassName("text",this.callButton,this.ui.getContentWindow())[0].innerHTML=this.config.callButton.text}catch(t){this.logger.error("No text on callButton")}r.isEdgeTouchScreen()&&(this.callButton.className="button edge-touch-screen call-button")}}else this.callButton&&this.callButton.parentNode&&this.callButton.parentNode.removeChild(this.callButton),this.logger.debug("No callButton on endscreen !");this.adChoicesButton=i.getElementsByClassName("adchoices",this.getElement(),this.ui.getContentWindow())[0],this.adChoicesButton?this.ui.getConfig().showAdChoicesIcon?(r.isMobile()||(i.addEventListener("mouseover",this.adChoicesButton,function(){o.addClass(t.adChoicesButton,"expanded")}),i.addEventListener("mouseout",this.adChoicesButton,function(){o.removeClass(t.adChoicesButton,"expanded")})),i.addEventListener("click",this.adChoicesButton,function(){t.dispatchUiEvent(s.a.AdChoicesClickRequest)})):(o.removeClass(this.adChoicesButton,"show"),o.addClass(this.adChoicesButton,"hide")):this.logger.debug("No adChoicesButton on endscreen !"),this.closeButton=i.getElementsByClassName("close-button",this.getElement(),this.ui.getContentWindow())[0],this.closeButton?this.config.closeButton.disable||this.config.closeButton.listenSkippableState&&!this.vpaid.getAdSkippableState()?(o.removeClass(this.closeButton,"show"),o.addClass(this.closeButton,"hide")):i.addEventListener("click",this.closeButton,function(){t.dispatchVpaidEvent(a.a.AdUserClose),t.closeAd()}):this.logger.debug("No closeButton on endscreen !");var d=i.getElementsByClassName("countdown",this.getElement(),this.ui.getContentWindow())[0];d?(this.countdown=new u.a(this.ui,d,this.vpaid,{countdown:this.config.countdown}),this.config.autoClose&&this.countdown.setEndedCallback(function(){t.logger.debug("Countdown ended and autoClose on, close ad"),t.closeAd()}),this.countdown.init(),this.countdown.initTimer(),this.countdown.show()):this.logger.debug("No countdown on endscreen"),this.resize(this.ui.getAdWidth(),this.ui.getAdHeight())},e.prototype.resize=function(t,e){if(!(t<=0||e<=0)){var n=i.getElementsByClassName("button-container",this.getElement())[0];if(n){n.style.setProperty("top","0px"),n.style.setProperty("left","0px");var o=i.getBoundingClientRect(n),r=(e-o.height)/2,a=(t-o.width)/2;n.style.setProperty("top",r+"px"),n.style.setProperty("left",a+"px")}}},e.prototype.onClick=function(t){},e.prototype.onReplayClick=function(){this.clearCloseInterval(),this.ui.getConfig().noAutoStop&&this.vpaid.stopAd(),this.videoComplete=!1,this.dispatchUiEvent(s.a.ReplayRequest)},e.prototype.onActionClick=function(){var t=this.ui.getConfig().clickthrough||null;this.dispatchVpaidEvent(a.a.AdClickThru,{url:t,id:null,playerHandles:!0})},e.prototype.clearCloseInterval=function(){this.countdown&&(this.countdown.removeEndedCallback(),this.countdown.stopTimer())},e.prototype.closeAd=function(){this.clearCloseInterval(),this.ui.stopAd()},e.CSSClassMapping={learnMore:"icon-learnmore",shopNow:"icon-shop",contactUs:"icon-contact",signUp:"icon-signup"},e.TEMPLATE=l.a,e}(c.a);e.a=h},function(t,e,n){var i=n(6),o=n(22),r=n(19),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.init=function(){var t=this;this.clickthrough=this.ui.getConfig().clickthrough,this.eventName=o.a.ClickRequest;var e=function(){t.getElement().style.setProperty("background-image","url("+t.config.url+")")};this.load(e)},e.prototype.load=function(t){var e=this,n=new Image;n.onload=function(){return t()},n.onerror=function(t){return e.hide()},n.src=this.config.url},e.prototype.onVideoStart=function(){this.showOnVideoStart&&this.show()},e.prototype.onClick=function(e){t.prototype.onClick.call(this,e),this.clickthrough&&this.dispatchVpaidEvent(i.a.AdClickThru,{url:this.clickthrough,id:this.config.id,playerHandles:!0})},e}(r.a);e.a=s},function(t,e,n){var i=n(6),o=n(19),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.init=function(){var t=this;this.showOnVideoStart=!1,this.element.style.setProperty("z-index","2"),this.show(),this.vpaid.subscribe(function(){return t.hide()},i.a.AdStarted)},e}(o.a);e.a=a},function(t,e,n){function i(t){var e=[];return c.map(t,function(t){c.map(t.getOverridenEvents(),function(n){t.isEnabled()&&-1===c.indexOf(e,n)&&e.push(n)})}),e}function o(t,e){return c.filter(t,function(t){return t.isEnabled()&&-1!==c.indexOf(t.getOverridenEvents(),e)})}function r(t,e){return c.filter(t,function(t){return t.isEnabled()&&-1!==c.indexOf(t.getOverridenMethods(),e)})}function a(t,e,n){void 0===n&&(n=!0);var i=t[e];i&&i.isEnabled()&&(n?i.show():i.hide())}function s(t,e){void 0===e&&(e=!0),c.forEach(t,function(t){t.isEnabled()&&(e?t.show():t.hide())})}Object.defineProperty(e,"__esModule",{value:!0}),e.getOverridenEvents=i,e.getOverridenEventComponents=o,e.getOverridenMethodComponents=r,e.showHideComponent=a,e.showHideAllComponents=s;var c=n(2)},function(t,e,n){var i=n(61),o=n(58),r=function(){function t(t,e){this.className=t,this.css=e}return t.prototype.initElement=function(){this.element=document.createElement("div"),this.element.className=this.className,this.element.innerHTML=this.getInnerHtml()},t.prototype.getElement=function(){return this.element},t.prototype.getHTML=function(){var t=this.getInnerHtml();if(t)return'<div class="'+this.className+'">'+t+"</div>"},t.prototype.getCSS=function(){return o.replacePlaceholders(this.css,{assetsPath:i.b.assetsUrl})},t.prototype.getInnerHtml=function(){return this.isEnabled()?this.innerHTML:""},t.prototype.hide=function(){this.element&&this.element.style.setProperty("display","none")},t.prototype.show=function(){this.element&&this.element.style.setProperty("display","block")},t}();e.a=r},function(t,e,n){n.d(e,"a",function(){return r}),n.d(e,"b",function(){return a});var i=n(6),o=n(22),r={error:i.a.AdError,click:i.a.AdClickThru,pause:i.a.AdPaused,resume:i.a.AdPlaying,skip:i.a.AdSkipped,creativeView:i.a.AdStarted,start:i.a.AdVideoStart,firstQuartile:i.a.AdVideoFirstQuartile,midpoint:i.a.AdVideoMidpoint,thirdQuartile:i.a.AdVideoThirdQuartile,complete:i.a.AdVideoComplete,impression:i.a.AdImpression,close:i.a.AdUserClose,closeLinear:i.a.AdUserClose,progress:i.a.AdRemainingTimeChange,otherAdInteraction:i.a.AdInteraction},a={adChoices:o.a.AdChoicesClickRequest}},function(t,e,n){var i=n(1),o=n(4),r=n(9),a=n(13),s=n(2),c=n(0),u=n(63),d=n(114),l=function(){function t(t,e,n){var r=this;this.linearAd=t,this.sessionStore=e,this.sumologic=n,this.logger=new i.a("VASTEventTracker"),this.tracker=new d.a(o.b.empty(),e.businessIds.pid),e.wigo.forEach(function(t){return r.tracker.setWigoi(t)});var a=this;for(var c in this.linearAd.tracking)!function(t){s.forEach(a.linearAd.tracking[t]||[],function(e,n,i){r.tracker.addResource(t,e.url,e.data)})}(c)}return t.getVastDomain=function(t){return t.wrappers.length>0?a.getMainDomain(a.parse(t.wrappers[t.wrappers.length-1]).hostname):t.url?a.getMainDomain(a.parse(t.url).hostname):"teads"},t.prototype.getTracker=function(){return this.tracker},t.prototype.track=function(t,e,n,i,s,d,l){var p=this;void 0===l&&(l=o.b.empty());var h=s.map(function(t){return t.getId()}),f=Object(u.e)(e),g=Object(u.d)(e),m=Object(u.f)({currentTime:n,errorCode:h,assetUrl:f,mediaFileType:g,viewability:d,userStore:l});if(this.tracker.track(t,Object(o.c)(m),n.orNull(),i.orNull()),"error"===t){var v=s.map(function(t){return t.getId()}).getOrElse(function(){return 0}),y=s.map(function(t){return t.getMessage()}).getOrElse(function(){return""});this.logger.error({id:v,msg:y,ua:navigator.userAgent,mediafile:e}),this.sumologic.canSend()&&r.c.of(function(){e.map(function(t){return{type:o.b.of(t.type),url:o.b.of(t.url)}}).match({some:function(t){var e=t.type,n=t.url,i=c.getExtensionFromMimeType(e.getOrElse(function(){return"-"}));n.match({some:function(t){var e=a.parse(t),n=e.pathname.split(";")[0],o=n.split("/").pop(),r=a.getMainDomain(e.hostname);p.trackErrorOnSumo(p.sumologic,v,y,i,o,r)},none:function(){p.trackErrorOnSumo(p.sumologic,v,y,i,"-","-")}})},none:function(){p.trackErrorOnSumo(p.sumologic,v,y,"-","-","-")}})}).recover(function(t){p.sumologic.sendError("VASTEventTracker "+t),p.logger.error("VASTEventTracker sumologic error tracker throw an exception",t)})}},t.prototype.trackError=function(t,e){this.track("error",t,o.b.empty(),o.b.empty(),o.b.of(e),o.b.empty())},t.prototype.trackErrorOnSumo=function(e,n,i,o,r,u){var d=a.parse(this.linearAd.url),l=0===d.protocol.indexOf("https:")?1:0,p=t.getVastDomain(this.linearAd),h=this.linearAd.wrappers.length,f=function(t){return a.getMainDomain(a.parse(t).hostname)},g=function(t,e){return e<h-1},m=s.filter(s.map(this.linearAd.wrappers,f),g).join(",")||"-",v=function(t){return c.getExtensionFromMimeType(t.type)},y=function(t,e,n){return s.indexOf(n,t)===e},b=s.filter(s.map(this.linearAd.mediaFiles,v),y).join(",")||"-",A="-";s.forEach(this.linearAd.extensions,function(t){"MoatJs"===t.type&&t.definition&&t.definition.id&&(A=t.definition.id)});var E=[n,i,p,l,u,r,o,b,m,this.sessionStore.pageId?this.sessionStore.pageId:"-",this.sessionStore.businessIds.pid?this.sessionStore.businessIds.pid:"-",A].join("|");e.sendError(E)},t}();e.a=l},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=(n(155),n(32),n(95)),o=n(66),r=n(96),a=n(97),s=n(64),c=n(84),u=n(93),d=n(60),l=n(98),p=n(100),h=n(99),f=window.teads||{};f.video=f.video||{},f.video.MediaProxy=i.a,f.video.helper={ObjectHelper:o,CustomElementHelper:r,NetworkHelper:a},f.video.constant={MediaProxyEvent:s.a,MediaError:c.a,MediaProxyStatus:u.a},f.video.dom={MediaEvent:d,VideoWrapper:l.a,TimeRanges:p.a,HTMLVideoProperties:h},window.teads=f},function(t,e,n){var i=n(3),o=n(156),r=n(157),a=(n.n(r),window.teads||{}),s=window.teads.video||{};s.HTMLVideoCanvas=function(){if(!Object(i.isDesktop)())try{var t=s.HTMLVideoCanvas;return new t,t}catch(t){return document.registerElement("video-canvas",{prototype:o.a.prototype})}}(),s.HTMLVideoCanvas&&s.HTMLVideoCanvas.prototype&&(s.HTMLVideoCanvas.prototype.addEventListener=o.a.prototype.addEventListener),a.video=s,window.teads=a},function(t,e,n){function i(){var t=this;this.logger=new o.a("HTMLVideoCanvas"),this._mainContainer=document.createElement("div"),this._mainContainer.style.backgroundColor="black",this._mainContainer.style.position="relative",this._mainContainer.style.width="100%",this._mainContainer.style.height="100%",this._mainContainer.style.zIndex=1,this.appendChild(this._mainContainer),this._videoContainer=document.createElement("div"),this._videoContainer.style.position="absolute",this._videoContainer.style.top=0,this._videoContainer.style.left=0,this._videoContainer.style.zIndex=2,this._videoContainer.style.width="100%",this._videoContainer.style.height="100%",this._mainContainer.appendChild(this._videoContainer),this.canvasPlayer=new a.default(this._videoContainer,1,1,{type:"CANVAS"}),this.mediaProxy=new r.a,this.mediaProxy.listen(s.a.READY,function(){t.logger.debug("MediaProxy return video url",t.mediaProxy.getVideoUrl()),t.canvasPlayer.src=t.mediaProxy.getVideoUrl(),t.autoplay&&t.canvasPlayer.play(),t.volume=t._volume}),this.mediaProxy.listen(s.a.ERROR,function(){t.logger.debug("MediaProxy didn't return video url"),t._error={code:c.a.MEDIA_ERR_NETWORK},t.canvasPlayer.dispatch(g.error)}),this.canvasPlayer.canvas.style.position="absolute",this.canvasPlayer.canvas.style.maxHeight="none",this.canvasPlayer.canvas.style.maxWidth="none",this.canvasPlayer.canvas.style.top="0",this.canvasPlayer.canvas.style.left="0",m.a.call(this,this.canvasPlayer),this.listeners={};var e=function(n){if(t.listeners[n.type]&&t.listeners[n.type].length){for(var i=0,o=t.listeners[n.type].length;i<o;i++)try{t.listeners[n.type][i].call(t,n)}catch(e){t.logger.error('Error in Canvas event handler: "'+e+'"')}"loadedmetadata"===n.type&&e(new CustomEvent("durationchange")),"playing"!==n.type||t.attachedCallbackCalled||t.attachedCallback()}};for(var n in g){var i=g[n];this.canvasPlayer.addEventListener(i,function(t){return function(t){e(t)}}())}this.canvasPlayer.addEventListener(g.loadedmetadata,function(e){t._handleResize()}),this.canvasPlayer.addEventListener(g.durationchange,function(e){void 0!==t._volume&&(t.canvasPlayer.volume=t._volume)}),this.canvasPlayer.addEventListener(g.playing,function(n){var i=function(){t._width&&t._height||(t.logger.debug("component got no width/height, try to adapt to container"),t._width=t._mainContainer.offsetWidth,t._height=t._mainContainer.offsetHeight),t._width&&t._height?(t.logger.debug("component have dimensions, force resize",t._width,t._height),t._handleResize()):setTimeout(i,100)};i(),e(new CustomEvent("timeupdate"))}),this._ended=!1,this.canvasPlayer.addEventListener(g.ended,function(n){t._ended=!0,t._paused=!0,e(new CustomEvent("timeupdate")),e(new CustomEvent("ended")),t.loop&&(t.currentTime=0,t.play())}),this._paused=!0,this.canvasPlayer.addEventListener(g.pause,function(e){t._paused=!0}),this.canvasPlayer.addEventListener(g.timeupdate,function(e){t._paused=!1}),this._seeking=!1,this.canvasPlayer.addEventListener(g.seeking,function(e){t._seeking=!0}),this.canvasPlayer.addEventListener(g.seeked,function(e){t._seeking=!1}),this.canvasPlayer.addEventListener(g.error,function(e){t._error=e.error})}e.a=i;var o=n(1),r=n(95),a=n(62),s=n(64),c=n(84),u=n(2),d=n(0),l=n(5),p=n(66),h=n(96),f=n(97),g=n(60),m=n(98),v=n(100);i.prototype=Object.create(m.a.prototype),p.defineProperty(i.prototype,"src",function(){return this._src},function(t){var e=this;if(this.logger.debug("set src",t),(this.src||t)&&t!==this.src&&""!==t){var n=u.indexOf(r.a.alreadyEncoded,r.a.getFileExtension(t))>-1;if("mp4"!==r.a.getFileExtension(t)&&!n&&(this.error=4,this.logger.error("only mp4,"+r.a.alreadyEncoded.join(",")+" files are supported, try to set "+t+" as src"),this.listeners.error))return void u.forEach(this.listeners.error,function(t){return t()});this._src=t,this.setAttribute("src",t),n?this.mediaProxy.load(t,512):f.ping(t,function(n,i){e.mediaProxy.load(t,i)})}}),u.forEach(["width","height"],function(t){p.defineProperty(i.prototype,t,function(){return this["_"+t]||0},function(e){if(this.logger.debug("set property "+t,e),isNaN(e)||this["_"+t]===e)return void this._handleResize();this["_"+t]=e,"width"===t&&!this.height&&this.videoWidth&&this.videoHeight?this._height=e*(this.videoHeight/this.videoWidth):"height"===t&&!this.width&&this.videoWidth&&this.videoHeight&&(this._width=e*(this.videoWidth/this.videoHeight)),this._handleResize()})}),p.defineProperty(i.prototype,"volume",function(){return void 0!==this._volume?this._volume:0},function(t){var e=this;this._volume=t,this.canvasPlayer.audio&&this.canvasPlayer.audio.authorizeAudio(function(){e.canvasPlayer.volume=e._volume}),this.canvasPlayer.volume=this._volume}),p.defineProperty(i.prototype,"currentTime",function(){return this._ended?this.canvasPlayer.duration:isNaN(this.canvasPlayer.currentTime)?0:this.canvasPlayer.currentTime},function(t){this.canvasPlayer.currentTime=t}),p.defineProperty(i.prototype,"seekable",function(){return!0}),p.defineProperty(i.prototype,"readyState",function(){return 4}),p.defineProperty(i.prototype,"networkState",function(){return 1}),p.defineProperty(i.prototype,"autoplay",function(){return void 0!==this._autoplay&&this._autoplay},function(t){this._autoplay=t}),p.defineProperty(i.prototype,"videoWidth",function(){return this.canvasPlayer.videoWidth||0}),p.defineProperty(i.prototype,"videoHeight",function(){return this.canvasPlayer.videoHeight||0}),p.defineProperty(i.prototype,"preload",function(){return!0},function(t){}),p.defineProperty(i.prototype,"seeking",function(){return this._seeking}),p.defineProperty(i.prototype,"muted",function(){return 0===this._volume}),p.defineProperty(i.prototype,"ended",function(){return this._ended}),p.defineProperty(i.prototype,"error",function(){return this._error}),p.defineProperty(i.prototype,"paused",function(){return this._paused}),p.defineProperty(i.prototype,"currentSrc",function(){return this._src}),p.defineProperty(i.prototype,"played",function(){var t=new v.a;return t.addRange(0,this.currentTime),t}),p.defineProperty(i.prototype,"buffered",function(){var t=new v.a;return t.addRange(0,this.currentTime),t}),p.defineProperty(i.prototype,"loop",function(){return void 0!==this._loop&&this._loop},function(t){this._loop=t,this.setAttribute("loop",String(t))}),p.defineProperty(i.prototype,"controls",function(){return!1},function(t){}),i.prototype.load=function(){},i.prototype.canPlayType=function(t){return"video/mp4"===t?"probably":""},i.prototype.addEventListener=function(t,e,n){void 0===n&&(n=!1),g[t]&&d.isObject(this.listeners)?(this.listeners[t]=this.listeners[t]||[],this.listeners[t].push(e)):HTMLElement.prototype.addEventListener.call(this,t,e,n)},i.prototype.removeEventListener=function(t,e,n){if(g[t]){var i=this.listeners[t].indexOf(e);i>=0&&(this.listeners[t][i]=function(){})}else HTMLElement.prototype.removeEventListener.call(this,t,e,n)},i.prototype._handleResize=function(){this.canvasPlayer.width=this.width,this.canvasPlayer.height=this.height,this.style.backgroundColor="black"},i.prototype.createdCallback=function(){i.call(this)},i.prototype.attributeChangedCallback=function(t,e,n){this.logger.debug("attributeChangedCallback",t,e,n),h.updateAttribute(this,t)},i.prototype.detachedCallback=function(){this.logger.debug("detached callback called"),this.canvasPlayer.pause()},i.prototype.attachedCallback=function(){var t=this;this.logger.debug("attachedCallback called"),this.attachedCallbackCalled=!0;try{this.style.display="block",this.style.overflow="hidden",this.style.objectFit="contain";var e=["width","height","position","top","left"],n=window.originalCreateElement?window.originalCreateElement.call(this.ownerDocument,"video"):this.ownerDocument.createElement("video");this.parentNode.appendChild(n),l.copyCSSRules(n,this,e),n.parentNode.removeChild(n),this.style.width&&"auto"!==this.style.width||(this.style.width="100%"),this.style.height&&"auto"!==this.style.height||(this.style.height="100%"),this._handleResize(),this._iframeResizer=document.createElement("iframe"),this._iframeResizer.style.zIndex=0,this._iframeResizer.style.width="100%",this._iframeResizer.style.height="100%",this._iframeResizer.style.border="none",this._iframeResizer.style.margin="0",this._iframeResizer.style.padding="0",this._mainContainer.appendChild(this._iframeResizer),this._iframeResizer.contentWindow.document.write("<html><body></body></html>"),this._iframeResizer.contentWindow.document.close();var i=function(){t._width=t._iframeResizer.contentWindow.innerWidth,t._height=t._iframeResizer.contentWindow.innerHeight,t.logger.debug("component resized",t.width,t.height),t._handleResize()};this._iframeResizer.contentWindow.addEventListener("resize",i,!1),this._handleResize(),this.style.backgroundColor="black"}catch(t){this.logger.debug("attachedCallback throw an exception",t)}}},function(t,e){/*! (C) WebReflection Mit Style License */
!function(t,e,n,i){function o(t,e){for(var n=0,i=t.length;n<i;n++)m(t[n],e)}function r(t){for(var e,n=0,i=t.length;n<i;n++)e=t[n],_(e,U[s(e)])}function a(t){return function(e){it(e)&&(m(e,t),o(e.querySelectorAll(j),t))}}function s(t){var e=t.getAttribute("is"),n=t.nodeName.toUpperCase(),i=W.call(F,e?N+e.toUpperCase():D+n);return e&&-1<i&&!c(n,e)?-1:i}function c(t,e){return-1<j.indexOf(t+'[is="'+e+'"]')}function u(t){var e=t.currentTarget,n=t.attrChange,i=t.attrName,o=t.target;gt&&(!o||o===e)&&e.attributeChangedCallback&&"style"!==i&&t.prevValue!==t.newValue&&e.attributeChangedCallback(i,n===t[I]?null:t.prevValue,n===t[k]?null:t.newValue)}function d(t){var e=a(t);return function(t){v.push(e,t.target)}}function l(t){ft&&(ft=!1,t.currentTarget.removeEventListener(x,l)),o((t.target||e).querySelectorAll(j),t.detail===T?T:S),nt&&f()}function p(t,e){var n=this;at.call(n,t,e),y.call(n,{target:n})}function h(t,e){$(t,e),E?E.observe(t,ut):(ht&&(t.setAttribute=p,t[C]=A(t),t.addEventListener(R,y)),t.addEventListener(L,u)),t.createdCallback&&gt&&(t.created=!0,t.createdCallback(),t.created=!1)}function f(){for(var t,e=0,n=ot.length;e<n;e++)t=ot[e],B.contains(t)||(n--,ot.splice(e--,1),m(t,T))}function g(t){throw new Error("A "+t+" type is already registered")}function m(t,e){var n,i=s(t);-1<i&&(w(t,U[i]),i=0,e!==S||t[S]?e===T&&!t[T]&&(t[S]=!1,t[T]=!0,i=1):(t[T]=!1,t[S]=!0,i=1,nt&&W.call(ot,t)<0&&ot.push(t)),i&&(n=t[e+"Callback"])&&n.call(t))}if(!(i in e)){var v,y,b,A,E,w,_,C="__"+i+(1e5*Math.random()>>0),S="attached",T="detached",O="extends",I="ADDITION",P="MODIFICATION",k="REMOVAL",L="DOMAttrModified",x="DOMContentLoaded",R="DOMSubtreeModified",D="<",N="=",V=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,M=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],F=[],U=[],j="",B=e.documentElement,W=F.indexOf||function(t){for(var e=this.length;e--&&this[e]!==t;);return e},H=n.prototype,G=H.hasOwnProperty,z=H.isPrototypeOf,Y=n.defineProperty,K=n.getOwnPropertyDescriptor,q=n.getOwnPropertyNames,X=n.getPrototypeOf,Z=n.setPrototypeOf,J=!!n.__proto__,Q=n.create||function t(e){return e?(t.prototype=e,new t):this},$=Z||(J?function(t,e){return t.__proto__=e,t}:q&&K?function(){function t(t,e){for(var n,i=q(e),o=0,r=i.length;o<r;o++)n=i[o],G.call(t,n)||Y(t,n,K(e,n))}return function(e,n){do{t(e,n)}while((n=X(n))&&!z.call(n,e));return e}}():function(t,e){for(var n in e)t[n]=e[n];return t}),tt=t.MutationObserver||t.WebKitMutationObserver,et=(t.HTMLElement||t.Element||t.Node).prototype,nt=!z.call(et,B),it=nt?function(t){return 1===t.nodeType}:function(t){return z.call(et,t)},ot=nt&&[],rt=et.cloneNode,at=et.setAttribute,st=et.removeAttribute,ct=e.createElement,ut=tt&&{attributes:!0,characterData:!0,attributeOldValue:!0},dt=tt||function(t){ht=!1,B.removeEventListener(L,dt)},lt=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(t){setTimeout(t,10)},pt=!1,ht=!0,ft=!0,gt=!0;Z||J?(w=function(t,e){z.call(e,t)||h(t,e)},_=h):(w=function(t,e){t[C]||(t[C]=n(!0),h(t,e))},_=w),nt?(ht=!1,function(){var t=K(et,"addEventListener"),e=t.value,n=function(t){var e=new CustomEvent(L,{bubbles:!0});e.attrName=t,e.prevValue=this.getAttribute(t),e.newValue=null,e[k]=e.attrChange=2,st.call(this,t),this.dispatchEvent(e)},i=function(t,e){var n=this.hasAttribute(t),i=n&&this.getAttribute(t),o=new CustomEvent(L,{bubbles:!0});at.call(this,t,e),o.attrName=t,o.prevValue=n?i:null,o.newValue=e,n?o[P]=o.attrChange=1:o[I]=o.attrChange=0,this.dispatchEvent(o)},o=function(t){var e,n=t.currentTarget,i=n[C],o=t.propertyName;i.hasOwnProperty(o)&&(i=i[o],e=new CustomEvent(L,{bubbles:!0}),e.attrName=i.name,e.prevValue=i.value||null,e.newValue=i.value=n[o]||null,null==e.prevValue?e[I]=e.attrChange=0:e[P]=e.attrChange=1,n.dispatchEvent(e))};t.value=function(t,r,a){t===L&&this.attributeChangedCallback&&this.setAttribute!==i&&(this[C]={className:{name:"class",value:this.className}},this.setAttribute=i,this.removeAttribute=n,e.call(this,"propertychange",o)),e.call(this,t,r,a)},Y(et,"addEventListener",t)}()):tt||(B.addEventListener(L,dt),B.setAttribute(C,1),B.removeAttribute(C),ht&&(y=function(t){var e,n,i,o=this;if(o===t.target){e=o[C],o[C]=n=A(o);for(i in n){if(!(i in e))return b(0,o,i,e[i],n[i],I);if(n[i]!==e[i])return b(1,o,i,e[i],n[i],P)}for(i in e)if(!(i in n))return b(2,o,i,e[i],n[i],k)}},b=function(t,e,n,i,o,r){var a={attrChange:t,currentTarget:e,attrName:n,prevValue:i,newValue:o};a[r]=t,u(a)},A=function(t){for(var e,n,i={},o=t.attributes,r=0,a=o.length;r<a;r++)e=o[r],"setAttribute"!==(n=e.name)&&(i[n]=e.value);return i})),e[i]=function(t,n){if(i=t.toUpperCase(),pt||(pt=!0,tt?(E=function(t,e){function n(t,e){for(var n=0,i=t.length;n<i;e(t[n++]));}return new tt(function(i){for(var o,r,a,s=0,c=i.length;s<c;s++)o=i[s],"childList"===o.type?(n(o.addedNodes,t),n(o.removedNodes,e)):(r=o.target,gt&&r.attributeChangedCallback&&"style"!==o.attributeName&&(a=r.getAttribute(o.attributeName))!==o.oldValue&&r.attributeChangedCallback(o.attributeName,o.oldValue,a))})}(a(S),a(T)),E.observe(e,{childList:!0,subtree:!0})):(v=[],lt(function t(){for(;v.length;)v.shift().call(null,v.shift());lt(t)}),e.addEventListener("DOMNodeInserted",d(S)),e.addEventListener("DOMNodeRemoved",d(T))),e.addEventListener(x,l),e.addEventListener("readystatechange",l),e.createElement=function(t,n){var i=ct.apply(e,arguments),o=""+t,r=W.call(F,(n?N:D)+(n||o).toUpperCase()),a=-1<r;return n&&(i.setAttribute("is",n=n.toLowerCase()),a&&(a=c(o.toUpperCase(),n))),gt=!e.createElement.innerHTMLHelper,a&&_(i,U[r]),i},et.cloneNode=function(t){var e=rt.call(this,!!t),n=s(e);return-1<n&&_(e,U[n]),t&&r(e.querySelectorAll(j)),e}),-2<W.call(F,N+i)+W.call(F,D+i)&&g(t),!V.test(i)||-1<W.call(M,i))throw new Error("The type "+t+" is invalid");var i,u,p=function(){return f?e.createElement(m,i):e.createElement(m)},h=n||H,f=G.call(h,O),m=f?n[O].toUpperCase():i;return f&&-1<W.call(F,D+m)&&g(m),u=F.push((f?N:D)+i)-1,j=j.concat(j.length?",":"",f?m+'[is="'+t.toLowerCase()+'"]':m),p.prototype=U[u]=G.call(h,"prototype")?h.prototype:Q(et),o(e.querySelectorAll(j),S),p}}}(window,document,Object,"registerElement")},function(t,e,n){function i(t){var e=[];return e.length>0&&(t=t.replace('id="'+o.c+'"','id="'+o.c+'" class="'+e.join(" ")+'"')),t}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"TEMPLATE",function(){return s}),e.expandTemplate=i,n.d(e,"inread",function(){return c});var o=n(67),r=n(176),a=n.n(r),s=a.a,c=i(a.a)},function(t,e,n){var i=n(5),o=n(13),r=n(2),a=n(7),s=n(3),c=n(28),u=n(18),d=n(11),l=n(1),p=n(91),h=n(26),f=n(6),g=n(36),m=n(46),v=n(150),y=n(67),b=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),A=function(t){function e(e,n,o){var r=t.call(this)||this;if(r.mainContainer=e,r.config=o,r.isFullscreen=!1,r.components=[],r.componentsByName={},r.logger=new l.a("ui.VPAIDUI"),r.initAdStartTime=0,r.logger.debug("Init Layout",e,o),r.config.container){r.container=r.config.container;var a=r.mainContainer.firstElementChild;a&&a.id===y.c&&r.mainContainer.removeChild(a)}else r.container=i.createIframe(),r.container.style.setProperty("width","1px"),r.container.style.setProperty("height","1px");return r.container.parentNode||r.mainContainer.appendChild(r.container),r.container.contentWindow.document.write(n),r.container.contentWindow.document.close(),r.mainComponentsContainer=r.container.contentWindow.document.getElementById(y.c),(s.isAmp()||s.isIABSafeFrame())&&(r.mainContainer.appendChild(r.mainComponentsContainer),r.mainContainer.removeChild(r.container)),r.videoComponentsContainer=r.mainComponentsContainer.ownerDocument.getElementById(y.d),r}return b(e,t),e.prototype.initAd=function(e,n,i,o,r,a){return void 0===r&&(r=""),void 0===a&&(a={}),this.vpaid?(this.resize(e,n,i),this.initAdStartTime=Date.now(),this.logger.debug("initAd"),t.prototype.initAd.call(this,e,n,i,o,r,a)):void this.logger.error("You must register vpaid creative to be wrapped using setVPAID() method")},e.prototype.startAd=function(){return this.status<h.a.LOADED?void this.dispatchEvent(f.a.AdLog,"VPAID not started, use initAd(), and wait for AdLoaded event before call startAd() method"):this.status>=h.a.STARTING?void this.dispatchEvent(f.a.AdLog,"cannot call startAd() twice, already started"):(this.render(this.getVPAID()),this.logger.debug("startAd"),void t.prototype.startAd.call(this))},e.prototype.resizeAd=function(e,n,i){void 0===i&&(i="normal"),e<=0||n<=0||(this.resize(e,n,i),t.prototype.resizeAd.call(this,e,n,i))},e.prototype.stopAd=function(){var e=this,n=function(){c.setTimeout(function(){e.container.parentNode&&e.container.parentNode.removeChild(e.container)},2e3),e.dispatchedEvents[f.a.AdStopped]||e.dispatchEvent(f.a.AdStopped)};this.isStopped?(this.logger.debug("Wrapped vpaid already stopped, remove UI"),n()):(this.logger.debug("Wrapped vpaid not stopped, try to stop it"),this.vpaid.subscribe(n,f.a.AdStopped),t.prototype.stopAd.call(this))},e.prototype.pauseAd=function(){this.callVPAIDMethod("pauseAd")},e.prototype.resumeAd=function(){this.callVPAIDMethod("resumeAd")},e.prototype.getAdWidth=function(){return this.isRendered&&!this.isStopped&&t.prototype.getAdWidth.call(this)?t.prototype.getAdWidth.call(this):a.getBoundingClientRect(this.getMainComponentsContainer()).width},e.prototype.getAdHeight=function(){return this.isRendered&&!this.isStopped&&t.prototype.getAdHeight.call(this)?t.prototype.getAdHeight.call(this):a.getBoundingClientRect(this.getMainComponentsContainer()).height},e.prototype.setAdVolume=function(e){return isNaN(e)?(this.logger.warn("setAdVolume: volume argument is NaN"),this.getAdVolume()):t.prototype.setAdVolume.call(this,e)},e.prototype.getAdExpanded=function(){return this.isFullscreen},e.prototype.setVPAID=function(e){var n=this;if(this.vpaid)return void this.logger.warn("setVPAID() : vpaid ad already register, can't use twice");this.logger.debug("setVPAID() : Register vpaid ad"),t.prototype.setVPAID.call(this,e),e.subscribe(function(){n.isStopped=!0},f.a.AdStopped);var i=function(t){0===v.getOverridenEventComponents(n.components,t.type).length&&n.handleVpaidEvent(t)};for(var o in f.a)if(f.a.hasOwnProperty(o)){var r=f.a[o];e.subscribe(m.createVPAIDEventCallback(i,r),r)}for(var o in g.default)if(g.default.hasOwnProperty(o)){var r=g.default[o];e.subscribe(m.createVPAIDEventCallback(i,r),r)}},e.prototype.getVPAID=function(){return this.vpaid},e.prototype.getVPAIDContainer=function(){return this.mainComponentsContainer.ownerDocument.getElementById(y.e)},e.prototype.getMainContainer=function(){return this.mainContainer},e.prototype.getMainComponentsContainer=function(){return this.mainComponentsContainer.ownerDocument.getElementById(y.c)},e.prototype.getCreativeContainer=function(){return this.getVPAID().container.getCreativeContainer()},e.prototype.getVideoComponentsContainer=function(){return this.mainComponentsContainer.ownerDocument.getElementById(y.d)},e.prototype.getComponent=function(t){return this.componentsByName[t]},e.prototype.getConfig=function(){return this.config},e.prototype.getContainer=function(){return this.container},e.prototype.getContentWindow=function(){return this.getContainer().contentWindow},e.prototype.render=function(t){var e=this;if(!this.isRendered){this.isRendered=!0,this.show(),this.resize(t.getAdWidth(),t.getAdHeight());var n=function(t){e.handleVpaidEvent(t)};this.logger.debug("init components:",this.config.components);for(var i in y.b)if(y.b.hasOwnProperty(i)&&y.b[i])for(var o=y.a+i,r=a.getElementsByClassName(o,this.getMainComponentsContainer(),this.getContentWindow()),s=0,c=r.length;s<c;s++)if(this.config.components&&this.config.components[i]&&this.config.components[i].disable||this.config.disableAllComponents&&!1!==this.config.components[i].disable){var u=r[s];u&&u.parentNode.removeChild(u),this.logger.debug("disable component "+i)}else{var d=new y.b[i](this,r[s],t,this.config.components&&this.config.components[i]?this.config.components[i]:{},n);this.components.push(d),this.componentsByName[i]=d;try{d.init(),this.logger.debug("init component "+i,this.config.components&&this.config.components[i]?this.config.components[i]:null)}catch(t){this.logger.error('error init component "'+i+'"',t.toString())}}}},e.prototype.showAllComponents=function(){v.showHideAllComponents(this.components,!0)},e.prototype.hideAllComponents=function(){v.showHideAllComponents(this.components,!1)},e.prototype.showComponent=function(t){v.showHideComponent(this.componentsByName,t,!0)},e.prototype.hideComponent=function(t){v.showHideComponent(this.componentsByName,t,!1)},e.prototype.dispatchCustomEvent=function(t,e){this.dispatchEvent(t,e)},e.prototype.getProperties=function(){return{adLinear:this.getAdLinear(),adWidth:this.getAdWidth(),adHeight:this.getAdHeight(),adExpanded:this.getAdExpanded(),adSkippableState:this.getAdSkippableState(),adRemainingTime:this.getAdRemainingTime(),adDuration:this.getAdDuration(),adVolume:this.getAdVolume()}},e.prototype.toJSON=function(){return d.stringify(this.getProperties())},e.prototype.handleVpaidEvent=function(e){switch(e.type){case f.a.AdSizeChange:this.getAdWidth()&&this.getAdHeight()&&this.isStopped&&(this.logger.debug("resize with AdSizeChange event"),this.resize(this.getAdWidth(),this.getAdHeight(),this.isFullscreen?"fullscreen":"normal"));break;case f.a.AdLoaded:if(this.initAdStartTime>0)try{var n=o.parse(this.config.vpaidUrl).hostname,i=Date.now()-this.initAdStartTime,r=u.getTimingByRegex(/t.teads.tv\/track\?action=adCall/),a=0;r&&(a=Math.round(r.startTime)),this.logger.info("initAd response time",i,n,a)}catch(t){}}t.prototype.handleVpaidEvent.call(this,e)},e.prototype.callVPAIDMethod=function(e,n){void 0===n&&(n=[]),r.forEach(this.components,function(t){t.onMethod(e,n)});var i=v.getOverridenMethodComponents(this.components,e);if(0===i.length)return t.prototype.callVPAIDMethod.call(this,e,n);var o;return i.forEach(function(t){o=t.onOverridenMethod(e,n)}),o},e.prototype.resize=function(t,e,n){var o=this;if(void 0===n&&(n="normal"),!(t<=0||e<=0)){var a=t+"px",s=e+"px";this.getVideoComponentsContainer().style.getPropertyValue("width")===a&&this.getVideoComponentsContainer().style.getPropertyValue("height")===s&&this.container.style.getPropertyValue("width")===a&&this.container.style.getPropertyValue("height")===s||(this.getVideoComponentsContainer().style.setProperty("width",a),this.getVideoComponentsContainer().style.setProperty("height",s),this.container.style.setProperty("width",a,"important"),this.container.style.setProperty("height",s,"important"),this.container.style.setProperty("max-height",s,"important"),this.logger.debug("vpaidui resize",t,e,n),!this.isFullscreen&&"fullscreen"===n||this.isFullscreen&&"normal"===n?(this.isFullscreen="fullscreen"===n,this.dispatchEvent(f.a.AdExpandedChange)):this.logger.debug("no fullscreen exit or enter"));var c=this.getVPAIDContainer();c.style.setProperty("width",a),c.style.setProperty("height",s);var u="l-screen";t<=480?u="xs-screen":t<=640&&(u="sm-screen"),r.forEach(["l-screen","xs-screen","sm-screen"],function(t){t!==u&&i.removeClass(o.mainComponentsContainer,t)}),i.addClass(this.mainComponentsContainer,u)}},e.prototype.show=function(){this.container.style.setProperty("display","block")},e.prototype.hide=function(){this.container.style.setProperty("display","none")},e}(p.a);e.a=A},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=(n(32),n(62)),o=n(74),r=n(78),a=n(72),s=n(15),c=n(76),u=n(77),d=n(80),l=n(79),p=n(82),h=n(81),f=n(43),g=n(75),m=n(39),v=n(23),y=n(73),b=n(83),A=n(12),E=window.teads||{};E.canvas=E.canvas||{},E.canvas.player={CanvasPlayer:i.default,components:{Audio:o.a,Buffering:r.a,Canvas:a.a,EventDispatcher:s.a,File:c.a,HtmlAudioElement:u.a,JpegVideo:d.a,Mp4CTVideo:l.a,Mp4Video:p.a,MpegVideo:h.a,Video:f.b,WebAudioApi:g.a,PLAYERS:f.a},helper:{Utils:m},model:{MediaState:v.a,Shader:y,StreamType:b.a,mediaEvents:A.a}},window.teads=E},function(t,e,n){n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o});var i;!function(t){t[t.NONE=0]="NONE",t[t.VPAID_1=1]="VPAID_1",t[t.VPAID_2=2]="VPAID_2",t[t.MRAID_1=3]="MRAID_1",t[t.ORMMA=4]="ORMMA",t[t.MRAID_2=5]="MRAID_2",t[t.MRAID_3=6]="MRAID_3",t[t.OMSDK=7]="OMSDK"}(i||(i={}));var o=[i.VPAID_1,i.VPAID_2]},,function(t,e,n){function i(){var t=d();if(t)return C.error("init","failed",t),m.a.sendError("SF "+t),t;E=new g.a;var e=b.par?b.par.w:b.self.w;return window.$sf.ext.register(e||window.innerWidth,1,function(t,e){return p(t,e)}),C.debug("init - register (width-innerWidth-geom)",e,window.innerWidth,b),o(function(){return b=window.$sf.ext.geom()}),t}function o(t){var e=T.push(t);return function(){return T[e-1]=function(){}}}function r(t){var e=O.push(t);return function(){return O[e-1]=function(){}}}function a(t){var e=I.push(t);return function(){return I[e-1]=function(){}}}function s(t){if(void 0===t&&(t=function(){}),C.debug("initSlot"),0===window.innerWidth){C.debug("initSlot - window.innerWidth=0 so wait for resize");var e,n=function(){0!==window.innerWidth&&(C.debug("SafeFrame - window resize receive - start"),E.remove("resize"),e(),t())};E.add("resize",window,n),e=o(n)}else if(1===b.self.w&&1===b.self.h)if(window.$sf.ext.supports()["exp-push"]){C.debug("initSlot - 1x1 detected - need to wait to get the slot width available");var i=function(){C.debug("initSlot - 1x1 detected - expand available - get width"),l({name:"initial expand",action:function(){return window.$sf.ext.expand({r:b.exp.r,push:!0})},callback:function(e){var n="expanded"===e;_=n?h.Init:h.Closed,n&&(w=b.exp.r,C.debug("initSlot - 1x1 detected - initial expand done - width",w),t())}})};if(b.exp.r)i();else var r=o(function(){b.exp.r&&(r(),i())})}else C.error("initSlot - 1x1 detected - but exp-push not supported");else t()}function c(t,e){void 0===e&&(e=function(){});var n=function(t){return l({name:"open "+t,action:function(){return window.$sf.ext.expand({b:t,r:w,push:!0})},callback:function(t){var n="expanded"===t;_=n?h.Expanded:h.Closed,e(n)}})},i=b.par?b.par.h:b.self.h,o=t-i;_!==h.Expanded&&o>0?window.$sf.ext.supports()["exp-push"]?o<=b.exp.b||b.par?(C.debug("open (askedHeight - currentHeight - allowed - requiredHeight)",t,i,b.exp.b,o),_===h.Init?(C.debug("open - slot already open by init - close it before"),u(function(){var t=Math.min(Math.floor(window.$sf.ext.geom().exp.b),o);n(t)})):n(o)):(C.debug("open not allowed (askedHeight - currentHeight - allowed - requiredHeight)",t,i,b.exp.b,o),e(!1)):(C.error("open failed - exp-push not supported"),e(!1)):(C.debug("already open (askedHeight - currentHeight - requiredHeight)",t,i,o),e(!0))}function u(t){void 0===t&&(t=function(){}),_!==h.Closed?(C.debug("close"),l({name:"close",action:function(){return window.$sf.ext.collapse()},callback:function(){return t(!0)}}),_=h.Closed):t(!0)}function d(){var t="";return Object(v.isIABSafeFrame)()||(t="not in IABSafeFrame context"),window.$sf.ext.geom?(b=window.$sf.ext.geom())||(t="window.$sf.ext.geom() return falsy value"):t="window.$sf.ext.geom not present",window.$sf.ext.supports||(t="window.$sf.ext.supports not present"),t}function l(t){t&&(C.debug("processRequest add to list",t.name),S.push(t)),!A&&S.length&&(A=S.shift(),C.debug("processRequest - process",A.name),A.action())}function p(t,e){switch(C.debug("event received",t,e),t){case"expanded":case"collapsed":case"failed":A&&A.callback&&A.callback(t),A=null,l();break;case"geom-update":e.cmd&&"focus-update"===e.cmd?y.forEach(O,function(t){return t(e)}):y.forEach(T,function(t){return t(e)});break;case"focus-change":y.forEach(O,function(t){return t(e)});break;case"cmpReturn":y.forEach(I,function(t){return t(e)})}}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"SF_ACTION",function(){return h}),n.d(e,"geom",function(){return b}),n.d(e,"currentStatus",function(){return _}),e.init=i,e.listenGeom=o,e.listenFocus=r,e.listenCmp=a,e.initSlot=s,e.open=c,e.close=u;var h,f=n(1),g=n(27),m=n(59),v=n(3),y=n(2);!function(t){t[t.Closed=0]="Closed",t[t.Init=1]="Init",t[t.Expanded=2]="Expanded"}(h||(h={}));var b,A,E,w,_=h.Closed,C=new f.a("helper.IABSafeFrame"),S=[],T=[],O=[],I=[]},function(t,e,n){function i(t){return o.b.of(t).flatMap(function(t){return t.adChoicesIconClickThrough}).getOrElse(function(){return a})}n.d(e,"a",function(){return a}),e.b=i;var o=n(4),r=n(0),a=Object(r.getProtocol)()+"//privacy-policy.teads.tv"},function(t,e,n){function i(t){S=t}function o(){window.teads.instances=T={}}function r(){return O++}function a(t,e,n){if(t){e.init(b.a.CONFIGS.FORMAT,null,"2.19.149"),e.sendMetadata({vFormat:"2.19.149",vShared:"2.19.149",vPlayer:"2.19.149"})}else n.debug("Could not initialize Sumologic (config.isSumologicLogsEnabled = false)")}function s(){y.isAmp()&&(window.context.observeIntersection(function(t){window._teads_amp.change=t.pop(),A.init()}),A.init()),y.isFacebookIA()&&window.document.body.style.setProperty("background-color","#fff")}function c(){var t=/^http(s)*:\/\/a\.teads\.tv\/page\/\d+\/tag/,e=new RegExp(g.b.basePathUrl+"\\/teads-format(\\.min)?\\.js"),n=!1,i=!1,o=!1;Object(C.forEach)(Object(_.findChildWindows)(document.body).concat(window),function(r){n=n||!!f.getTimingByRegex(t,r),o=o||!!f.getTimingByRegex(e,r),i=i||!!window._ttf}),m.a.sendInfo("pa o="+Number(i)+" t="+Number(n)+" f="+Number(o))}n.d(e,"a",function(){return S}),e.g=i,n.d(e,"d",function(){return T}),e.b=o,e.c=r,n.d(e,"f",function(){return u}),n.d(e,"e",function(){return I});var u,d=n(292),l=n(273),p=n(4),h=n(1),f=n(18),g=n(61),m=n(59),v=n(7),y=n(3),b=n(24),A=n(192),E=n(345),w=n(29),_=n(5),C=n(2),S=0,T={},O=0,I=l.c.page,P=(l.c.ad,new h.a("Main"));!function(){c(),p.b.of(window.teads.PAGE_PROCESSED).forEach(function(t){return S=t}),p.b.of(window.teads.instances).forEach(function(t){return T=t}),p.b.of(window.teads.currentPlayerId).forEach(function(t){return O=t}),f.mark("markFormatInit"),P.info("Init - Format initialization success"),a(g.b.isSumologicLogsEnabled,m.a,P),s(),w.c.loadAndStoreReportIfNeeded(m.a),u=new d.a}(),function(){v.onDomReady(function(){return E.a({ttpObject:p.b.of(window._ttp),pageInstance:u}).recover(function(t){return P.error(t)})})}()},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(294),o=n.n(i);n.d(e,"CREDITSCSS",function(){return o.a});var r=n(295),a=n.n(r);n.d(e,"LABELCSS",function(){return a.a});var s=n(406),c=n.n(s);n.d(e,"ADCHOICESCSS",function(){return c.a});var u=n(408),d=n.n(u);n.d(e,"EXPANDCSS",function(){return d.a});var l=n(409),p=n.n(l);n.d(e,"DISPLAYCSS",function(){return p.a});var h=n(411),f=n.n(h);n.d(e,"EXPANDHTML",function(){return f.a});var g=n(412),m=n.n(g);n.d(e,"COUNTDOWNCSS",function(){return m.a});var v=n(296),y=n.n(v);n.d(e,"COUNTDOWNHTML",function(){return y.a});var b=n(414),A=n.n(b);n.d(e,"SMARTHEADERCSS",function(){return A.a});var E=n(416),w=n.n(E);n.d(e,"SMARTHEADERHTML",function(){return w.a})},,function(t,e,n){n.d(e,"a",function(){return i});var i=function(t,e,n){for(var i,o=n;!(i=t.next()).done;)o=e(o,i.value);return o}},function(t,e,n){n.d(e,"a",function(){return i});var i={corsswf:"cors.swf"}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(197);n.d(e,"Bench",function(){return i.a});var o=n(198);n.d(e,"ClickThrough",function(){return o.a});var r=n(199);n.d(e,"Extensions",function(){return r.a});var a=n(202);n.d(e,"IAS",function(){return a.a});var s=n(203);n.d(e,"Responsive",function(){return s.a});var c=n(204);n.d(e,"Tracker",function(){return c.a});var u=n(205);n.d(e,"AdChoices",function(){return u.a})},function(t,e){},function(t,e,n){var i=n(87),o=n(2),r=n(5),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.setUpCreativeContainers=function(t,e){var n=this;if(this.mainContainer=document.createElement("div"),this.mainContainer.style.setProperty("position","relative"),t.appendChild(this.mainContainer),this.creativeContainer=document.createElement("div"),this.creativeContainer.id="vpaid-"+this.id,this.mainContainer.appendChild(this.creativeContainer),this.creativeContainer.innerHTML=this.getCreativeTemplate(e,this.callbackName,this.backgroundColor),this.vpaidContainer=Object(r.getDocument)(this.creativeContainer).getElementById("vpaidjs-container"),this.videoContainer=Object(r.getDocument)(this.creativeContainer).getElementById("video-container"),!Object(o.includes)([i.a.CANVAS,i.a.VIDEO],e)){var a=document.createElement("script"),s=Object(r.getWindow)(this.container);a.onload=function(){return s[n.callbackName](!0)},a.onerror=function(){return s[n.callbackName](!1)},a.src=e,this.creativeContainer.appendChild(a)}},e.prototype.getCreativeTemplate=function(t,e,n){return'\n      <div id="video-container" style="position:absolute;top:0px;left:0px;z-index:1;background-color:'+n+'"></div>\n      <div id="vpaidjs-container" style="position:absolute;top:0px;left:0px;z-index:2"></div>\n    '},e}(i.a);e.a=s},function(t,e){t.exports='<style> #{{countdown-id}} svg:nth-child(2) path { -webkit-animation: load {{countdown-duration}}s linear; -moz-animation: load {{countdown-duration}}s linear; -o-animation: load {{countdown-duration}}s linear; animation: load {{countdown-duration}}s linear; } </style> \x3c!-- Container --\x3e <ul class="countdown-circle" id="{{countdown-id}}"> \x3c!-- Item --\x3e <li data-countdown="{{countdown-duration}}" class="countdown-timer"> <svg viewBox="-10 -10 220 220"> <g fill="none" stroke-width="20" transform="translate(100,100)"> <path d="M 0,-100 A 100,100 0 0,1 86.6,-50" stroke="url(#cl1)"/> <path d="M 86.6,-50 A 100,100 0 0,1 86.6,50" stroke="url(#cl1)"/> <path d="M 86.6,50 A 100,100 0 0,1 0,100" stroke="url(#cl1)"/> <path d="M 0,100 A 100,100 0 0,1 -86.6,50" stroke="url(#cl1)"/> <path d="M -86.6,50 A 100,100 0 0,1 -86.6,-50" stroke="url(#cl1)"/> <path d="M -86.6,-50 A 100,100 0 0,1 0,-100" stroke="url(#cl1)"/> </g> </svg> <svg viewBox="-10 -10 220 220"> <path d="M200,100 C200,44.771525 155.228475,0 100,0 C44.771525,0 0,44.771525 0,100 C0,155.228475 44.771525,200 100,200 C155.228475,200 200,155.228475 200,100 Z" stroke-dashoffset="629"></path> </svg> </li> </ul> \x3c!-- Defining Angle Gradient Colors --\x3e <svg width="0" height="0"> <defs> <linearGradient id="cl1" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="1"> <stop stop-color="#FFFFFF"/> <stop offset="100%" stop-color="#FFFFFF"/> </linearGradient> </defs> </svg> '},function(t,e){t.exports='<div class="button-container"> <div class="button replay-button"> <div class="icon"> <span class="icon-replay"></span> </div> <div class="text"></div> </div> <div class="button call-button"> <div class="icon"> <span></span> </div> <div class="text"></div> </div> </div> <div class="close-button"> <div class="icon-closeendscreen"></div> </div> <div class="adchoices adchoices-icon"> <span>AdChoices</span> </div> <div class="countdown"></div> '},function(t,e,n){var i=n(7),o=n(5),r=n(3),a=n(19),s=n(6),c=n(22),u=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.init=function(){var t=this;this.ui.getConfig().showAdChoicesIcon?(this.eventName=c.a.AdChoicesClickRequest,r.isMobile()||(i.addEventListener("mouseover",this.getElement(),this.onMouseOver.bind(this)),i.addEventListener("mouseout",this.getElement(),this.onMouseOut.bind(this))),this.vpaid.subscribe(function(){t.hide()},s.a.AdVideoComplete)):this.remove()},e.prototype.onMouseOver=function(){o.addClass(this.getElement(),"expanded")},e.prototype.onMouseOut=function(){o.removeClass(this.getElement(),"expanded")},e}(a.a);e.a=d},function(t,e,n){t.exports='<!doctype html> <html> <head></head> <body> <div id="main-container"> <style> '+n(177)+' </style> <div id="layout-video-component"> <div class="teads-ui-component-startscreen"></div> <div id="vpaid-container"></div> <div class="teads-ui-component-fullscreenbutton"> <div class="icon-collapse"></div> </div> <div class="teads-ui-component-progressbar"> <div class="progress"></div> </div> <div class="teads-ui-component-soundbutton"></div> <div class="teads-ui-component-closebutton"> <div class="close-button icon-close hide"></div> </div> <div class="teads-ui-component-adchoices adchoices-icon"> <span>AdChoices</span> </div> <div class="teads-ui-component-clickbutton"></div> <div class="teads-ui-component-brandlogo"></div> <div class="teads-ui-component-clicktoplay gradient"> <div class="icon-watchmore"></div> </div> <div class="teads-ui-component-endscreen"></div> </div> </div> </body> </html> '},function(t,e,n){var i=n(178);t.exports="string"==typeof i?i:i.toString()},function(t,e,n){e=t.exports=n(49)(void 0),e.i(n(179),""),e.i(n(180),""),e.push([t.i,".teads-ui-component-fullscreenbutton{position:absolute;top:0;right:0;width:100%;height:100%;background:none}.fullscreen .teads-ui-component-fullscreenbutton,.fullscreen .teads-ui-component-fullscreenbutton .show{width:45px;height:45px;z-index:10!important}.teads-ui-component-fullscreenbutton .icon-collapse{display:none;margin-top:10px;margin-left:20px}.fullscreen .teads-ui-component-fullscreenbutton .icon-collapse{display:block}.fullscreen .teads-ui-component-closebutton .icon-close{display:none}",""])},function(t,e,n){e=t.exports=n(49)(void 0),e.push([t.i,'body{margin:0;padding:0;border:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:Helvetica,Arial,sans-serif!important;font-weight:300}#layout-video-component{width:100%;height:100%;position:relative}#vpaid-container{z-index:1;background-color:#000;position:relative}.teads-ui-component-progressbar{position:absolute;bottom:0;left:0;width:100%}.teads-ui-component-progressbar .progress{height:3px;width:0;background-color:#86c3f7;transition:all .4s linear}.teads-ui-component-playpausebutton{position:absolute;bottom:10px;left:10px;width:20px;height:20px;background-image:url("{{assetsPath}}/default/img/play.png");background-position:0 0;background-repeat:no-repeat;background-size:contain;cursor:pointer}.teads-ui-component-playpausebutton.playing{background-image:url("{{assetsPath}}/default/img/pause.png")}.teads-ui-component-fullscreenbutton{position:absolute;bottom:5px;right:30px;width:16px;height:16px;background-image:url("{{assetsPath}}/default/img/fullscreen.png");background-position:0 0;background-repeat:no-repeat;background-size:contain;cursor:pointer}.teads-ui-component-progresstext{height:30px;margin:0 40px 0 60px;text-align:center;padding:4px}.teads-ui-component-skipbutton{position:absolute;bottom:40px;right:4px;width:100px;height:20px;font-family:Helvetica,Arial,sans-serif!important;background-color:#ccc;text-align:center;padding:4px;border:1px solid #000}.adchoices-icon{background:url("data:image/svg+xml;base64,PHN2Zw0KICB2ZXJzaW9uPSIxLjEiDQogIGJhc2VQcm9maWxlPSJmdWxsIg0KICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KICA8c3R5bGU+DQogICAgLyogPCFbQ0RBVEFbICovDQogICAgLmFkY2hvaWNlcyB7DQogICAgICB0ZXh0LXJlbmRlcmluZzogZ2VvbWV0cmljUHJlY2lzaW9uOw0KICAgICAgZmlsbC1vcGFjaXR5OiAxLjA7DQogICAgICBmaWxsOiAjMDBhZWNkOw0KICAgICAgc3Ryb2tlOiBub25lOw0KICAgIH0NCiAgICAvKiBdXT4gKi8NCiAgPC9zdHlsZT4NCiAgPHN2ZyBjbGFzcz0iYWRjaG9pY2VzIiB4PSIwcHgiPg0KICAgIDxjaXJjbGUgY3g9IjYiIGN5PSI2IiByPSIwLjY3Ij48L2NpcmNsZT4NCiAgICA8cGF0aCBkPSJNNC4yLDExLjNRMy4zLDExLjgsMy4zLDEwLjc1TDMuMyw0LjFRMy4zLDMuMSw0LjMsMy41TDEwLjQsNy4wUTEyLjAsNy41LDEwLjQsOC4wTDYuNjUsMTAuMEw2LjY1LDcuNzVhMC42NSwwLjY1LDAsMSwwLC0xLjMsMEw1LjM1LDEwLjc1YTAuOSwwLjksMCwwLDAsMS4zLDAuOEwxMi43LDguMlExMy43LDcuNSwxMi43LDYuN0wzLjMsMS42UTIuMiwxLjMsMS44LDIuNUwxLjgsMTIuNVEyLjIsMTMuOSwzLjMsMTMuM0w0LjgsMTIuNUEwLjMsMC4zLDAsMSwwLDQuMiwxMS4zWiI+PC9wYXRoPg0KICA8L3N2Zz4NCjwvc3ZnPg0K")}.teads-ui-component-label{font-family:Helvetica,Arial,sans-serif!important;font-size:12px;color:#999;text-align:center;padding:3px 0;text-transform:uppercase;height:21px;line-height:21px;display:none}.fullscreen .teads-ui-component-label,.fullscreen .teads-ui-component-label.show{display:none!important}.teads-ui-component-credits{font-size:12px;color:#999;text-align:right;padding:3px 0;height:26px;line-height:26px;display:none}.fullscreen .teads-ui-component-credits,.fullscreen .teads-ui-component-credits.show{display:none!important}.sm-screen .teads-ui-component-label,.xs-screen .teads-ui-component-label{font-size:10px}.teads-ui-component-credits a{color:#999;text-decoration:none}.teads-ui-component-credits-blue{color:#79bbe9}.teads-ui-component-soundbutton{position:absolute;bottom:0;right:0;padding:13px 18px 18px 6px;cursor:pointer;display:none;opacity:0;transition:opacity 175ms linear}.teads-ui-component-soundbutton.show{display:block;opacity:.8}.teads-ui-component-soundbutton:hover{opacity:1}.teads-ui-component-soundbutton .equalizer{position:absolute;bottom:7px;right:5px;cursor:default}.teads-ui-component-soundbutton.show .equalizer{display:none}.teads-ui-component-soundbutton.show.muted .equalizer{display:block}.teads-ui-component-closebutton{position:absolute;top:0;right:0;padding:15px;cursor:pointer;display:none;transition:opacity 175ms linear}.teads-ui-component-closebutton svg{display:none}.teads-ui-component-closebutton .countdown{display:none;position:absolute;left:2px;bottom:20px}.teads-ui-component-closebutton .countdown .countdown-circle>li{color:#fff}.teads-ui-component-closebutton .countdown.show{display:block}.fullscreen .teads-ui-component-closebutton .countdown.show{display:none!important}.teads-ui-component-closebutton.show{display:block}.teads-ui-component-closebutton.show .close-button{opacity:.8}.teads-ui-component-closebutton.show:hover .close-button.show{opacity:1}.sm-screen .teads-ui-component-closebutton .closebutton,.xs-screen .teads-ui-component-closebutton .closebutton{padding:10px 10px 15px 15px}.teads-ui-component-clickbutton{display:none;position:absolute;top:0;left:0;cursor:pointer;-webkit-transition:background-color .25s;transition:background-color .25s}.teads-ui-component-clickbutton .text{font-size:12px;white-space:nowrap;max-height:30px;text-align:center;background-color:rgba(0,0,0,.1);border:1px solid #fff;color:#fff;margin:10px;padding:6px 10px}.teads-ui-component-clickbutton .text:hover{background-color:rgba(0,0,0,.25)}.sm-screen .teads-ui-component-clickbutton .text,.xs-screen .teads-ui-component-clickbutton .text{margin:5px;padding:5px}.teads-ui-component-clicktoplay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000;cursor:pointer;display:none;z-index:10!important}.teads-ui-component-clicktoplay .icon-watchmore{position:absolute;top:50%;left:50%;margin-left:-8px;margin-right:-10px;opacity:.8;transition:opacity 175ms linear}.sm-screen .teads-ui-component-clicktoplay .icon-watchmore,.xs-screen .teads-ui-component-clicktoplay .icon-watchmore{margin-left:-5px;margin-right:-7px}.teads-ui-component-clicktoplay:hover .icon-watchmore{opacity:1}.teads-ui-component-endscreen{position:absolute;width:100%;height:100%;top:0;left:0;z-index:10!important;background-color:#000;text-align:center;word-spacing:nowrap;opacity:0;display:none;transition:opacity 175ms ease}.teads-ui-component-endscreen.show{display:block!important;opacity:1!important}.teads-ui-component-endscreen .adchoices{font-family:arial;font-size:11px;cursor:pointer;position:absolute;top:14px;right:35px;width:15px;height:15px;line-height:15px;padding:1px;border-bottom-left-radius:8px;background-size:15px 15px;background-repeat:no-repeat;background-position:100%}.sm-screen .teads-ui-component-endscreen .adchoices,.xs-screen .teads-ui-component-endscreen .adchoices{top:12px;right:30px}.teads-ui-component-endscreen .adchoices.expanded{width:auto;padding:1px 17px 1px 4px;background-color:hsla(0,0%,100%,.8)!important}.teads-ui-component-endscreen .adchoices span{display:none}.teads-ui-component-endscreen .adchoices.expanded span{display:inline}.tea .teads-ui-component-endscreen .countdown .countdown-timer svg{opacity:0}.teads-ui-component-endscreen .countdown{position:absolute;bottom:18px;left:18px;color:#fff}.sm-screen .teads-ui-component-endscreen .countdown,.xs-screen .teads-ui-component-endscreen .countdown{bottom:5px;left:5px}.teads-ui-component-endscreen .close-button{position:absolute;top:0;right:0;padding:15px;cursor:pointer}.teads-ui-component-endscreen .button-container{position:absolute}.teads-ui-component-endscreen .button{display:block;width:100%;height:70px;margin-bottom:40px;cursor:pointer;transition:opacity 175ms ease}.sm-screen .teads-ui-component-endscreen .button{margin-bottom:15px!important;height:40px}.xs-screen .teads-ui-component-endscreen .button{margin-bottom:15px!important;height:32px}.xs-screen .teads-ui-component-endscreen .button.replay-button{margin-bottom:15px!important}.teads-ui-component-endscreen .button:last-child{margin-bottom:0!important}.teads-ui-component-endscreen.show .button{opacity:.8!important}.teads-ui-component-endscreen.show .button:hover{opacity:1!important}.teads-ui-component-endscreen.show .button.edge-touch-screen,.teads-ui-component-endscreen.show .button.edge-touch-screen:hover{opacity:.8!important}.teads-ui-component-endscreen .button .icon{float:left;border-radius:35px;border:2px solid #fff;border-color:#294355;height:66px;width:66px}.sm-screen .teads-ui-component-endscreen .button .icon{height:36px;width:36px}.xs-screen .teads-ui-component-endscreen .button .icon{border-width:1px;height:30px;width:30px}.teads-ui-component-endscreen .button .icon span{display:block;margin:18px 22px;height:30px;width:30px}.sm-screen .teads-ui-component-endscreen .button .icon span{margin:7px 10px;height:20px;width:16px}.xs-screen .teads-ui-component-endscreen .button .icon span{margin:4px 6px;height:20px;width:16px}.teads-ui-component-endscreen .button .text{float:left;line-height:70px;height:70px;font-size:23px;color:#294355;padding-left:25px}.sm-screen .teads-ui-component-endscreen .button .text{line-height:40px;height:40px;padding-left:20px;font-size:17px}.xs-screen .teads-ui-component-endscreen .button .text{line-height:30px;height:30px;font-size:14px;padding-left:15px}.teads-ui-component-endscreen .countdown{display:none;color:#294355}.teads-ui-component-uibutton.ui-invisible{text-decoration:line-through}.teads-ui-component-uibutton{position:absolute;bottom:5px;right:5px;width:16px;height:16px;text-align:center;vertical-align:middle;border:1px solid #000;color:#000;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;cursor:pointer;text-decoration:none;background-color:#fff;font-size:12px}@-webkit-keyframes load{0%{stroke-dashoffset:0}}@keyframes load{0%{stroke-dashoffset:0}}.countdown-circle{position:relative;display:inline-block;padding:0;margin:0;text-align:center}.countdown-circle>li:after{content:attr(data-countdown);position:absolute;width:100%;top:.3rem;left:0;font-size:1rem;text-align:center}.countdown-circle>li{display:inline-block;position:relative;text-align:center;color:#93a2ac;font-family:Helvetica,Arial,sans-serif!important;font-weight:100}.countdown-circle svg{width:30px;height:30px}.countdown-circle svg:nth-child(2){position:absolute;left:0;top:0;transform:rotate(-90deg);-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-ms-transform:rotate(-90deg)}.countdown-circle svg:nth-child(2) path{fill:none;stroke-width:20;stroke-dasharray:629;stroke:#999;opacity:.9}.equalizer{height:20px;width:16px;position:relative}.equalizer .equalizer-bar{position:absolute;left:0;bottom:0;width:3px;height:12px;background-color:#fff;transition:height 1s ease}.equalizer .equalizer-bar-1{left:4px}.equalizer .equalizer-bar-2{left:8px}.equalizer .equalizer-bar-3{left:12px}.teads-ui-component-brandlogo{display:none;opacity:.8;cursor:pointer;position:absolute;bottom:0;left:0;margin-left:10px;margin-bottom:18px;webkit-transition:background-color .25s;transition:background-color .25s;width:20%;height:10%;max-height:50px;background-repeat:no-repeat;background-position-x:left;background-position-y:bottom;background-size:contain}.sm-screen .teads-ui-component-brandlogo,.xs-screen .teads-ui-component-brandlogo{margin-left:5px;width:30%;height:15%}.teads-ui-component-adchoices{font-family:arial;font-size:11px;cursor:pointer;position:absolute;top:0;right:0;width:15px;height:15px;line-height:15px;padding:1px;border-bottom-left-radius:8px;background-size:15px 15px;background-repeat:no-repeat;background-position:100%}.teads-ui-component-adchoices.expanded{width:auto;padding:1px 17px 1px 4px;background-color:hsla(0,0%,100%,.8)}.teads-ui-component-adchoices span{display:none}.teads-ui-component-adchoices.expanded span{display:inline}.teads-ui-component-closebutton~.teads-ui-component-adchoices{position:absolute;top:14px;right:35px}.sm-screen .teads-ui-component-closebutton~.teads-ui-component-adchoices,.xs-screen .teads-ui-component-closebutton~.teads-ui-component-adchoices{top:12px;right:30px}.fullscreen .teads-ui-component-adchoices,.fullscreen .teads-ui-component-adchoices.show{display:none!important}.teads-ui-component-startscreen{width:100%;height:100%;position:absolute;-webkit-box-shadow:inset 0 0 85px rgba(0,0,0,.1);-moz-box-shadow:inset 0 0 85px rgba(0,0,0,.1);box-shadow:inset 0 0 85px rgba(0,0,0,.1);background-color:#fff}.show{display:block!important}.show:hover{opacity:1!important}.hide{display:none;opacity:0}',""])},function(t,e,n){e=t.exports=n(49)(void 0),e.push([t.i,'.icon-book{width:26px;height:29px;background-position:0 0}.sm-screen .icon-book,.xs-screen .icon-book{width:18px;height:20px;background-position:-35px 0}.icon-close{width:15px;height:15px;background-position:-60px 0}.sm-screen .icon-close,.xs-screen .icon-close{width:11px;height:11px;background-position:-80px 0}.icon-closeendscreen{width:15px;height:15px;background-position:-100px 0}.sm-screen .icon-closeendscreen,.xs-screen .icon-closeendscreen{width:11px;height:11px;background-position:-120px 0}.icon-collapse{width:15px;height:15px;background-position:-140px 0}.icon-contact{width:28px;height:23px;background-position:-160px 0}.sm-screen .icon-contact,.xs-screen .icon-contact{width:20px;height:16px;background-position:-195px 0}.icon-download{width:20px;height:25px;background-position:-220px 0}.sm-screen .icon-download,.xs-screen .icon-download{width:14px;height:17px;background-position:-245px 0}.icon-equalizer{width:15px;height:15px;background-position:-265px 0}.sm-screen .icon-equalizer,.xs-screen .icon-equalizer{width:11px;height:11px;background-position:-285px 0}.icon-learnmore{width:23px;height:28px;background-position:-305px 0}.sm-screen .icon-learnmore,.xs-screen .icon-learnmore{width:17px;height:20px;background-position:-335px 0}.icon-muteoff{width:22px;height:15px;background-position:-360px 0}.sm-screen .icon-muteoff,.xs-screen .icon-muteoff{width:16px;height:11px;background-position:-390px 0}.icon-muteon{width:22px;height:15px;background-position:-415px 0}.sm-screen .icon-muteon,.xs-screen .icon-muteon{width:16px;height:11px;background-position:-445px 0}.icon-replay{width:23px;height:29px;background-position:-470px 0}.sm-screen .icon-replay,.xs-screen .icon-replay{width:16px;height:20px;background-position:-500px 0}.icon-shop{width:29px;height:29px;background-position:-525px 0}.sm-screen .icon-shop,.xs-screen .icon-shop{width:20px;height:20px;background-position:-560px 0}.icon-signup{width:26px;height:31px;background-position:-585px 0}.sm-screen .icon-signup,.xs-screen .icon-signup{width:18px;height:22px;background-position:-620px 0}.icon-watchmore{width:16px;height:20px;background-position:-645px 0}.sm-screen .icon-watchmore,.xs-screen .icon-watchmore{width:11px;height:14px;background-position:-670px 0}.icon-book,.icon-close,.icon-closeendscreen,.icon-collapse,.icon-contact,.icon-download,.icon-equalizer,.icon-learnmore,.icon-muteoff,.icon-muteon,.icon-replay,.icon-shop,.icon-signup,.icon-watchmore{background-size:690px 40px}.no-svg .icon-book,.no-svg .icon-close,.no-svg .icon-closeendscreen,.no-svg .icon-collapse,.no-svg .icon-contact,.no-svg .icon-download,.no-svg .icon-equalizer,.no-svg .icon-learnmore,.no-svg .icon-muteoff,.no-svg .icon-muteon,.no-svg .icon-replay,.no-svg .icon-shop,.no-svg .icon-signup,.no-svg .icon-watchmore{background-image:url("{{assetsPath}}/default/player-sprite.png")}.icon-book,.icon-close,.icon-closeendscreen,.icon-collapse,.icon-contact,.icon-download,.icon-equalizer,.icon-learnmore,.icon-muteoff,.icon-muteon,.icon-replay,.icon-shop,.icon-signup,.icon-watchmore{background-image:url("{{assetsPath}}/default/player-sprite.svg")}',""])},function(t,e,n){function i(t){return"video/mp4"===t}function o(t){return"video/webm"===t}function r(t){return c.c.of(function(){return!!document.createElement("video").canPlayType(t)}).getOrElse(function(){return!1})}function a(t){return Object(s.isSDK)()?Object(s.isIos)()?i(t):Object(s.isAndroid)()?i(t)||o(t):void 0:r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.isMp4=i,e.isWebm=o,e.canPlayType=r,e.canPlay=a;var s=n(3),c=n(9)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=(n(32),n(119)),o=n(120),r=n(183),a=n(121),s=n(122),c=window.teads||{};c.video=c.video||{},c.video.BaseVPAIDCreative=i.a,c.video.NetworkState=o.a,c.video.ReadyState=o.b,c.video.VPAIDCanvas=r.a,c.video.VPAIDVideo=a.a,c.video.component=c.video.component||{},c.video.component.ClickThrough=s.a,window.teads=c},function(t,e,n){var i=(n(160),n(40)),o=n(12),r=n(62),a=n(26),s=n(6),c=n(121),u=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.initAd=function(e,n,a,s,c,u){var d=this;u.videoSlot&&u.videoSlot.parentNode&&u.videoSlot.parentNode.removeChild(u.videoSlot),this.createContainer(u.slot),i.decode(c).match({success:function(i){u.videoSlot=new r.default(d.container,e,n,i),u.videoSlot.addEventListener(o.a.ERROR,function(t){return d.dispatchVpaidEvent(d.eventMap[t.type])}),t.prototype.initAd.call(d,e,n,a,s,i,u)},failure:function(t){return d.handleException(t,"initAd")}})},e.prototype.startAd=function(){if(this.status>a.a.LOADED)return void this.dispatchVpaidEvent(s.a.AdLog,"try to call startAd but ad is starting or is already started");if(this.status<a.a.LOADED)return void this.dispatchVpaidEvent(s.a.AdLog,"Ad is not loaded, use initAd first");try{t.prototype.startAd.call(this),this.dispatchVpaidEvent(s.a.AdDurationChange)}catch(t){this.handleException(t,"startAd")}},e.prototype.appendVideo=function(){},e.prototype.removeVideo=function(){this.video.pause(),this.container.removeChild(this.video.html5video||this.video.canvas)},e}(c.a);e.a=d},function(t,e,n){var i=n(35),o=n(14),r=n(0),a=n(3),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"Format")||this;return i.value=n,i.checkValue(),i}return s(e,t),e.prototype.checkValue=function(){if(!Object(r.isString)(this.value)||!e.VALUES[this.value.toUpperCase()]||Object(a.isAmp)()&&!this.isInRead())throw new i.a(i.a.OPTION_FORMAT_INVALID)},e.prototype.get=function(){return this.value},e.prototype.isInRead=function(){return this.value===e.VALUES.INREAD},e.prototype.isInBoard=function(){return this.value===e.VALUES.INBOARD},e.prototype.isInterstitial=function(){return this.value===e.VALUES.INTERSTITIAL},e.prototype.isRewarded=function(){return this.value===e.VALUES.REWARDED},e.VALUES={INREAD:"inread",INBOARD:"inboard",INTERSTITIAL:"interstitial",REWARDED:"rewarded"},e.DEFAULT=null,e}(o.a);e.a=c},function(t,e,n){var i=n(200),o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t},a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i.a.apply(void 0,r(t.slice().reverse()))};e.a=a},,,function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=(n(32),n(123)),o=n(124),r=n(110),a=n(114),s=window.teads||{};s.tracker=s.tracker||{},s.tracker.Tracking=i.a,s.tracker.Metadata=o.a,s.tracker.Config=r.a,s.tracker.Tracker=a.a,window.teads=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=(n(32),n(190)),o=n(115),r=n(86),a=n(94),s=n(65),c=n(69),u=n(68),d=n(117),l=n(70),p=window.teads||{};p.vast=p.vast||{},p.vast.CallbackHelper=i,p.vast.XMLHelper=o,p.vast.ExtensionType=r.a,p.vast.TrackingDefinition=a.a,p.vast.TrackingEvent=a.b,p.vast.IAS=s,p.vast.LinearAd=c.a,p.vast.vastSumologic=u.b,p.vast.VASTLib=u.a,p.vast.VASTLoader=d,p.vast.VASTParser=l,window.teads=p},function(t,e,n){function i(t,e,n){try{t.apply(t,e)}catch(u){var a=new r.a("Callback"),s="user callback threw an exception: "+u;if(a.error(s,u,t,e),n){var c=o.b.UNDEFINED;c.message=s,i(n,[new o.b(c,u)])}}}Object.defineProperty(e,"__esModule",{value:!0}),e.execCallback=i;var o=n(16),r=n(1)},function(t,e,n){function i(t,e,n){s.b.of(e).map(function(t){return t.document}).forEach(function(e){if(!e.getElementById(n)){var i=u.replacePlaceholders(t,{assetsPath:a.b.assetsUrl}),o=e.createElement("style");o.setAttribute("id",n),o.setAttribute("class",m),o.appendChild(e.createTextNode(i)),e.head.appendChild(o)}})}function o(t,e){s.b.of(e).map(function(t){return t.document}).map(function(e){return e.getElementById(t)}).forEach(function(t){return s.b.of(t.parentNode).forEach(function(e){return e.removeChild(t)})})}function r(t){if(!c.getDocument(t).getElementById(g)){var e=document.createElement("style");e.setAttribute("type","text/css"),e.setAttribute("id",g),e.innerText=p.a+f.a,d.inject(e,c.getWindow(t))}}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"id",function(){return g}),n.d(e,"inlineStyleClassName",function(){return m}),e.embedCSS=i,e.removeCSS=o,e.injectFormatCSS=r;var a=n(61),s=n(4),c=n(5),u=n(58),d=n(7),l=n(417),p=n.n(l),h=n(419),f=n.n(h),g="teads-format-css",m="teads-inline-style"},function(t,e,n){function i(){_.isAmp()&&f()&&!o()&&(L=f().rootBounds,b(),I=_.isDesktop()?window.innerWidth:Math.min(Math.min(L.width,L.height),window.innerWidth),I!==window.innerWidth&&(I-=2*window.context.initialIntersection.boundingClientRect.left),O||(g(),f().boundingClientRect.height>10&&(a(),S.a.sendError("AMP tag malformed "+window.context.location.href)),O=!0),k!==A.Open&&P!==A.Open||s())}function o(){return!!L&&(O&&window._teads_amp.change.rootBounds.width===L.width)}function r(t,e){void 0===t&&(t=function(){}),void 0===e&&(e=!1),P=A.Clean,O&&m(0,t,P,e)}function a(t,e){void 0===t&&(t=function(){}),void 0===e&&(e=!1),P=A.Close,O&&m(1,t,P,e)}function s(t,e,n){void 0===t&&(t=null),void 0===e&&(e=function(){}),void 0===n&&(n=!1),P=A.Open,O&&m(t||c(),e,P,n)}function c(){return Math.ceil(I/R)}function u(){return k===A.Open}function d(t){var e="teads-";t?(e+=t.id?t.id:"0",e+="-",e+=t.creativeId?t.creativeId:"0"):e+="0",e=e}function l(){window.context&&Object(T.isFunction)(window.context.noContentAvailable)&&!V.noContentAvailable&&(V.noContentAvailable=!0,N.debug("noContentAvailable"),window.context.noContentAvailable())}function p(){if(window.context&&Object(T.isFunction)(window.context.renderStart)&&!V.renderStart){V.renderStart=!0;var t={height:c(),width:I};N.debug("renderStart",t),window.context.renderStart(t)}}function h(){if(x&&window.context&&Object(T.isFunction)(window.context.reportRenderedEntityIdentifier)&&!V.reportRenderedEntityIdentifier){V.reportRenderedEntityIdentifier=!0;var t="teads-"+x;N.debug("reportRenderedEntityIdentifier",t),window.context.reportRenderedEntityIdentifier(t)}}function f(){return window._teads_amp.change&&window.context.initialIntersection?(window._teads_amp.change||(window._teads_amp.change=window.context.initialIntersection),window._teads_amp.change):null}function g(){window.context.onResizeDenied(function(t,e){return y(t,e,!1)}),window.context.onResizeSuccess(function(t,e){return y(t,e,!0)})}function m(t,e,n,i){v(t,function(o){var r="function"==typeof i?i():i;o||r?(P=null,k=o?n:null,e(o),u()&&h()):P===n&&setTimeout(function(){return m(t,e,n,r)},100)})}function v(t,e){_.isAmp()&&window.context.requestResize&&O&&(D.push({width:I,height:t,done:!1,callback:e}),window.context.requestResize(I,t),N.warn("amp request resize",I,t))}function y(t,e,n){C.forEach(D,function(i){t!==i.height||e!==i.width||i.done||(i.done=!0,i.callback(n))}),n?N.warn("amp request resize success",e,t):N.error("amp request resize denied",e,t)}function b(){if(window.context){var t=window.context.initialConsentState||"na",e=window.context.consentSharedData||"na";window.context.getConsentState&&Object(T.isFunction)(window.context.getConsentState)?window.context.getConsentState(function(e){S.a.sendInfo("AmpConsent: "+t+" - "+e.consentState)}):S.a.sendInfo("AmpConsent: "+t+" - na"),S.a.sendInfo("AmpConsentData: "+Object(w.stringify)(e))}}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"AMP_ACTION",function(){return A}),e.init=i,e.isInitialized=o,e.clean=r,e.close=a,e.open=s,e.getHeight=c,e.isOpen=u,e.setCreativeInformation=d,e.noContentAvailable=l,e.renderStart=p,e.reportRenderedEntityIdentifier=h;var A,E=n(1),w=n(11),_=n(3),C=n(2),S=n(59),T=n(0);!function(t){t[t.Clean=0]="Clean",t[t.Close=1]="Close",t[t.Open=2]="Open"}(A||(A={}));var O,I,P,k,L,x,R=4/3,D=[],N=new E.a("helper.Amp"),V={noContentAvailable:!1,renderStart:!1,reportRenderedEntityIdentifier:!1}},,function(t,e,n){var i=n(14),o=n(35),r=n(0),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"Pid")||this;return i.value=n,i.checkValue(),i}return a(e,t),e.prototype.checkValue=function(){if(!Object(r.isNumber)(this.value)||this.value<=0)throw new o.a(o.a.OPTION_PID_INVALID)},e.prototype.get=function(){return this.value},e.DEFAULT=null,e}(i.a);e.a=s},function(t,e,n){var i=n(212),o=(n.n(i),n(3)),r=n(52),a=n(25),s=n(4),c=n(27),u=n(9),d=n(8),l=n(5),p=n(1),h=n(2),f=n(10),g=n(28),m=n(18),v=n(0),y=n(59),b=n(163),A=n(213),E=n(7),w=n(61),_=function(t){return new r.a(function(e,n){t(function(t,n){e(!!t&&t.cmpLoaded)}),g.setTimeout(n,S.PING_REQUEST_TIMEOUT)})},C=function(t){var e=Object(l.createIframe)();e.id="teadsConsensu",e.src=w.b.consensuIframeUrl,e.style.setProperty("display","none","important"),t.document.body.appendChild(e)},S=function(){function t(t,e){this.win=t,this.pageId=e,this.cmpHandler=Object(l.isInCrossDomainIframe)(document.body)&&!Object(o.isIABSafeFrame)()?new O(t):Object(o.isIABSafeFrame)()?new I(t):new T(t)}return t.isConsentDataValid=function(t){return Object(v.isBoolean)(t.gdprApplies)&&(Object(v.isUndefined)(t.hasGlobalScope)?Object(v.isBoolean)(t.hasGlobalConsent):Object(v.isBoolean)(t.hasGlobalScope))},t.getGlobalConsent=function(t){return Object(v.isUndefined)(t.hasGlobalScope)?!!t.hasGlobalConsent:t.hasGlobalScope},t.transformCmpResponse=function(e,n){var i={status:null,consent:"",reason:null},o=s.b.of(e),r=o.map(function(t){return t.consentData||t.consentObject}).orNull();return Object(v.isString)(r)||(r="",t.logWrongConsentData(o)),!n&&!r||o.isEmpty()?(i.status=A.c.UNSUCCESSFUL_CMP_RESPONSE,i.reason=A.b.UNSUCCESSFUL_CMP_RESPONSE):(i.consent=r,t.isConsentDataValid(e)?e.gdprApplies?t.getGlobalConsent(e)?(i.status=A.c.GDPR_APPLIES_GLOBAL,i.reason=t.isTimeoutNeeded?A.b.GDPR_APPLIES_GLOBAL_CLASSIC:A.b.GDPR_APPLIES_GLOBAL_OVERLAY):(i.status=A.c.GDPR_APPLIES_PUBLISHER,i.reason=t.isTimeoutNeeded?A.b.GDPR_APPLIES_PUBLISHER_CLASSIC:A.b.GDPR_APPLIES_PUBLISHER_OVERLAY):(i.status=A.c.GDPR_DOESNT_APPLY,i.reason=A.b.GDPR_DOESNT_APPLY):(i.status=A.c.OTHER,i.reason=A.b.OTHER)),t.updateTeadsGDPRPayload(i),i},t.updateTeadsGDPRPayload=function(e){t.payload=e,window.teads.gdprPayload.status=e.status,window.teads.gdprPayload.consent=e.consent,window.teads.gdprPayload.reason=e.reason,t.logger.info("payload: { status: "+e.status+", consent: "+e.consent+", reason: "+e.reason+"}")},t.logWrongConsentData=function(t){t.match({some:function(t){var e=h.filter(Object.keys(t),function(t){return!h.includes(["gdprApplies","hasGlobalScope","hasGlobalConsent","vendorListVersion"],t)}),n=h.map(e,function(e){return e+"("+(null===t[e]?"null":typeof t[e])+")"});y.a.sendInfo("gdpr-wrong-consent "+n.join(",").substr(0,120))},none:function(){return y.a.sendInfo("gdpr-wrong-consent null")}})},t.prototype.requestConsentString=function(e){var n=this;window.teads.gdprPayload.tsCmpCall=Object(f.now)(),this.cmpHandler.isIntegrated()?(t.isTimeoutNeeded?(t.logger.info("No overlay detected, putting a timeout on requestConsentString"),this.cmpTimeout=g.setTimeout(function(){t.logger.warn("No response from getConsentData after "+t.GET_CONSENT_DATA_REQUEST_TIMEOUT+"ms"),y.a.sendInfo("gdpr-cmp-consent-timeout 0"),n.retrievePayloadFromPublisherCookie(A.b.GDPR_APPLIES_PUBLISHER_TEADS_AFTER_TIMEOUT).catch(function(){return n.listenToTeadsEuConsentPostMessage(A.b.GDPR_APPLIES_GLOBAL_TEADS_AFTER_TIMEOUT)}).catch(function(){var e={status:A.c.CMP_NOT_READY,consent:"",reason:A.b.CMP_NOT_READY_NO_PING_RESPONSE};return n.cmpHandler.ping().then(function(t){return v.extend(e,{reason:t?A.b.CMP_NOT_READY_NO_RESPONSE:A.b.CMP_NOT_READY_JS_NOT_LOADED})}).catch(function(n){return t.logger.warn("Timeout on CMP ping command",n),e})}).then(function(n){e(n),t.updateTeadsGDPRPayload(n)})},t.GET_CONSENT_DATA_REQUEST_TIMEOUT)):t.logger.info("Overlay detected, not putting a timeout on requestConsentString"),m.mark("cmpResponseStart"),this.cmpHandler.onIntegrationSuccess(function(i,o){m.mark("cmpResponseEnd"),s.b.of(m.measure("cmpResponse","cmpResponseStart","cmpResponseEnd")).forEach(function(e){var n=t.isTimeoutNeeded?"gdpr-cmp-response "+e.duration.toFixed(2):"gdpr-cmp-response "+e.duration.toFixed(2)+" overlay-detected";y.a.sendInfo(n)}),n.cmpTimeout&&n.cmpTimeout.clear(),y.a.sendInfo("gdpr-cmp-consent-timeout 1"),e(t.transformCmpResponse(i,o))})):(t.logger.warn("Could not detect any CMP integration"),this.retrievePayloadFromPublisherCookie(A.b.GDPR_APPLIES_PUBLISHER_TEADS_BECAUSE_NO_CMP).catch(function(){return n.listenToTeadsEuConsentPostMessage(A.b.GDPR_APPLIES_GLOBAL_TEADS_BECAUSE_NO_CMP)}).catch(function(){return{status:A.c.CMP_NOT_FOUND,consent:"",reason:A.b.CMP_NOT_FOUND}}).then(function(n){e(n),t.updateTeadsGDPRPayload(n)}),this.retryAndLog())},t.prototype.retrievePayloadFromPublisherCookie=function(e){return t.logger.info("Trying to get publisher consent from cookies"),new r.a(function(n,i){Object(a.get)(t.CONSENT_COOKIE_NAME).toOption().match({some:function(i){t.logger.info("Consent retrieved from publisher cookies"),n({status:A.c.GDPR_APPLIES_PUBLISHER,consent:i,reason:e})},none:i})})},t.prototype.listenToTeadsEuConsentPostMessage=function(e){var n=this;return new r.a(function(i,o){t.logger.info("Trying to get global consent from "+w.b.consensuIframeUrl);var r,a=function(n){var a=s.b.of(n).map(function(t){return t.data}).map(function(t){return t.teadsEuConsent}).orNull();a&&(r.clear(),m.mark("cmpTeadsResponseEnd"),y.a.sendInfo("gdpr-teads-cmp-consent-timeout 1"),"na"!==a?(t.logger.info("Consent retrieved from consensu.org cookies"),i({status:A.c.GDPR_APPLIES_GLOBAL,consent:a,reason:e})):o(),s.b.of(m.measure("cmpTeadsResponse","cmpTeadsResponseStart","cmpTeadsResponseEnd")).forEach(function(t){y.a.sendInfo("gdpr-cmp-teads-response "+t.duration.toFixed(2))}))};n.win.addEventListener("message",a),m.mark("cmpTeadsResponseStart"),C(n.win),r=g.setTimeout(function(){y.a.sendInfo("gdpr-teads-cmp-consent-timeout 0"),t.logger.info("Timeout on postMessage for consensu.org cookies"),o()},t.GET_CONSENT_DATA_REQUEST_TIMEOUT)})},t.prototype.retryAndLog=function(){var t=this,e=Object(f.now)(),n=0,i=function(){return new r.a(function(i){if(t.cmpHandler instanceof T){var o=function(t){y.a.sendWarning("gdpr-integrated-after "+(Object(f.now)()-e)+"ms "+t),i()};t.cmpHandler.isIntegrated(!0,o)}else t.cmpHandler.isIntegrated()&&(y.a.sendWarning("gdpr-integrated-after "+(Object(f.now)()-e)+"ms"),i());++n>5&&(y.a.sendWarning("gdpr-still-not-integrated-after "+(Object(f.now)()-e)+"ms"),i())})},o=g.setInterval(function(){return i().then(o.clear)},1e3)},t.GET_CONSENT_DATA_REQUEST_TIMEOUT=250,t.PING_REQUEST_TIMEOUT=10,t.CMP_IFRAME_NAME="__cmpLocator",t.CONSENT_COOKIE_NAME="euconsent",t.QUANTCAST_OVERLAY_CLASSNAME="qc-cmp-ui qc-cmp-showing",t.isTimeoutNeeded=!0,t.logger=new p.a("GDPR"),t}();e.a=S;var T=function(){function t(t){this.win=t,this.logger=new p.a("GDPR - RegularCmpHandler"),this.childWindows=[],S.isTimeoutNeeded=!this.hasQuantcastOverlay(),S.isTimeoutNeeded&&this.detectAndLogQuantcastOverlay()}return t.prototype.isIntegrated=function(t,e,n){return void 0===t&&(t=!0),void 0===e&&(e=function(){}),void 0===n&&(n=this.win),Object(v.isFunction)(n.__cmp)?(n!==this.win?(this.win=n,this.logger.info("Regular CMP integration detected on a child window"),e("on a child window")):(this.logger.info("Regular CMP integration detected on top window"),e("on top window")),!0):(t&&(this.childWindows=this.childWindows.concat(Object(l.findChildWindows)(n.document.body))),this.childWindows.length>0&&this.isIntegrated(!1,e,this.childWindows.shift()))},t.prototype.onIntegrationSuccess=function(t){this.win.__cmp(A.a.getConsentData,null,t)},t.prototype.ping=function(){var t=this;return _(function(e){return t.win.__cmp(A.a.ping,null,e)})},t.prototype.hasQuantcastOverlay=function(){var t=Object(E.getElementsByClassName)(S.QUANTCAST_OVERLAY_CLASSNAME,this.win.document,this.win);return t.length>0&&"relative"===this.win.getComputedStyle(t[0]).position},t.prototype.detectAndLogQuantcastOverlay=function(){var t=this,e=Object(f.now)(),n=0,i=function(){return new r.a(function(i){t.hasQuantcastOverlay()&&(y.a.sendWarning("gdpr-overlay-detected "+(Object(f.now)()-e)+"ms"),i()),++n>10&&i()})},o=g.setInterval(function(){return i().then(o.clear)},100)},t}(),O=function(){function t(t){this.win=t,this.cmpWindow=s.a,this.eventListenerManager=new c.a,this.callId=Object(d.rand)(16,!1),this.logger=new p.a("GDPR - CrossDomainIframeCmpHandler"),this.cmpWindow=this.findCmpWindow()}return t.prototype.isIntegrated=function(){var t=Object(l.isInCrossDomainIframe)(document.body)&&!Object(o.isIABSafeFrame)()&&this.cmpWindow.nonEmpty();return t&&this.logger.info("Iframe cross-domain (non-SafeFrame) CMP integration detected"),t},t.prototype.onIntegrationSuccess=function(t){var e=this;this.cmpWindow.match({some:function(n){e.eventListenerManager.add("message",e.win,function(n){return e.messageHandler(n,t)}),n.postMessage({__cmpCall:{command:A.a.getConsentData,parameter:null,callId:e.callId}},"*")},none:function(){e.logger.warn("Could not get CMP locator iframe from parent window(s).")}})},t.prototype.ping=function(){var t=this;return _(function(e){t.cmpWindow.match({some:function(n){t.eventListenerManager.add("message",t.win,function(n){return t.messageHandler(n,e)}),n.postMessage({__cmpCall:{command:A.a.ping,parameter:null,callId:t.callId}},"*")},none:function(){t.logger.warn("Could not get CMP locator iframe from parent window(s).")}})})},t.prototype.findCmpWindow=function(){var t=this;return u.c.of(function(){var e=Object(l.findParentWindows)(t.win.document.body,!1),n=function(t){return t.frames[S.CMP_IFRAME_NAME]};return h.find(e,function(t){return!!n(t)})}).recover(function(e){throw t.logger.debug("CrossDomainIframeCmpHandler.findCmpWindow",e),e}).toOption()},t.prototype.messageHandler=function(t,e){var n=this,i=Object(v.isString)(t.data)?JSON.parse(t.data):t.data;s.b.of(i.__cmpReturn).forEach(function(t){t.callId===n.callId&&(e(t.returnValue,t.success),n.eventListenerManager.remove("message"))})},t}(),I=function(){function t(t){this.win=t,this.logger=new p.a("GDPR - SafeFrameCmpHandler")}return t.prototype.isIntegrated=function(){var t=Object(o.isIABSafeFrame)()&&Object(v.isFunction)(this.win.$sf.ext.cmp);return t&&this.logger.info("SafeFrame CMP integration detected"),t},t.prototype.onIntegrationSuccess=function(t){b.listenCmp(function(e){e.cmpCommand===A.a.getConsentData&&t(e.VendorConsentData,e.success)}),this.win.$sf.ext.cmp(A.a.getConsentData,null)},t.prototype.ping=function(){var t=this;return _(function(e){b.listenCmp(function(t){t.cmpCommand===A.a.ping&&e(t.PingReturn,t.success)}),t.win.$sf.ext.cmp(A.a.ping,null)})},t}()},function(t,e,n){var i=n(3),o=n(14),r=n(0),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(n,o){void 0===n&&(n=e.DEFAULT),void 0===o&&(o=null);var r=t.call(this,"VideoStart")||this;return r.value=n,o&&o.isInBoard()&&Object(i.isTablet)()&&(r.value=e.VALUES.CLICK),r.checkValue(),r}return a(e,t),e.prototype.checkValue=function(){Object(r.isString)(this.value)&&e.VALUES[this.value.toUpperCase()]||(this.value=e.DEFAULT)},e.prototype.isThreshold=function(){return this.value===e.VALUES.THRESHOLD},e.prototype.isClick=function(){return this.value===e.VALUES.CLICK},e.prototype.getValue=function(){return this.value},e.VALUES={THRESHOLD:"threshold",CLICK:"click"},e.DEFAULT=e.VALUES.THRESHOLD,e}(o.a);e.a=s},function(t,e,n){n.d(e,"a",function(){return u});var i=n(89),o=n(1),r=n(50),a=n(3),s=n(5),c=n(6),u=function(){function t(t,e,n,i,a,u){var d=this;this.container=t,this.config=e,this.vpaidAd=n,this.mediaFile=i,this.bufferingTimer=null,this.bufferingDone=!1,this.elapseTime=0,this.logger=new o.a("player.plugin.Bench");try{var l=s.findTopWindow(this.container),p=function(){d.elapseTime>1e3&&0===d.getCurrentTime()&&(d.clearBufferingTimer(!0),d.visibility.destroy())};this.visibility=r.a.listenWindow(l,p,function(){})}catch(t){this.logger.error("Error with visibility init",t)}this.vpaidAd.subscribe(function(){d.getBuffering()},c.a.AdStarted),this.vpaidAd.subscribe(function(){d.clearBufferingTimer()},c.a.AdPaused),this.vpaidAd.subscribe(function(){d.getBuffering()},c.a.AdPlaying)}return t.prototype.init=function(){},t.prototype.deinit=function(){},t.prototype.getBuffering=function(t){var e=this;void 0===t&&(t=500),this.bufferingDone||(this.bufferingTimer=setTimeout(function(){try{e.elapseTime=t;var n=e.getCurrentTime();if(n>0){var o=t-1e3*n>0?t-1e3*n:0;"number"==typeof o&&o>=0&&(e.logger.debug("Buffering: "+o+"ms"),i.b.sendInfo("Buffering: "+o+"ms with "+e.mediaFile.type+" on "+a.getContextSummary())),e.bufferingDone=!0,e.visibility.destroy()}else e.getBuffering(t+=500)}catch(t){e.logger.error("Error with buffering method",t)}},500))},t.prototype.clearBufferingTimer=function(t){void 0===t&&(t=!1);try{this.bufferingTimer&&(clearTimeout(this.bufferingTimer),this.bufferingTimer=null,t&&(this.logger.warn("Stop buffering calculation"),this.bufferingDone=!0))}catch(t){this.logger.error("An error occured while cleaning the buffering timer",t)}},t.prototype.getCurrentTime=function(){return this.vpaidAd.getAdDuration()-this.vpaidAd.getAdRemainingTime()?this.vpaidAd.getAdDuration()-this.vpaidAd.getAdRemainingTime():0},t}()},function(t,e,n){n.d(e,"a",function(){return o});var i=n(6),o=function(){function t(t,e,n,i,o,r){this.vpaidAd=n,this.linearAd=o}return t.prototype.init=function(){this.vpaidAd.subscribe(this.onClickThrough,i.a.AdClickThru,this)},t.prototype.deinit=function(){this.vpaidAd.unsubscribe(this.onClickThrough,i.a.AdClickThru)},t.prototype.onClickThrough=function(t,e,n){var i=t||this.linearAd.clickThrough[0];n&&i&&window.open(i,"_blank")},t}()},function(t,e,n){n.d(e,"a",function(){return v});var i=n(126),o=n(2),r=n(8),a=n(5),s=n(13),c=n(11),u=n(3),d=n(1),l=n(4),p=n(185),h=n(201),f=n(86),g=n(63),m=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},v=function(){function t(t,e,n,i,o,r,a){var s=this;this.container=t,this.config=e,this.vpaidAd=n,this.mediaFile=i,this.linearAd=o,this.businessIds=a,this.logger=new d.a("player.plugin.Extensions"),this.getVastMacros=function(){var t=l.b.of(g.a(s.linearAd.duration,s.vpaidAd.getAdRemainingTime())),e=g.e(l.b.of(s.mediaFile)),n=g.d(l.b.of(s.mediaFile)),i=g.b(s.container),o=l.b.of(g.g(s.container,i));return g.f({currentTime:t,assetUrl:e,mediaFileType:n,viewability:o})},this.getFunnelMacros=function(){return l.b.ofNested(s,"config.formatConfig").match({some:function(t){var e=l.b.of(t.pageId),n=l.b.of(t.placementId),i=l.b.of(t.insertionId),o=l.b.of(u.getEnv());return g.c({pageId:e,pid:n,insertionId:i,env:o})},none:function(){return g.c()}})}}return t.prototype.init=function(){var t=this;o.forEach(this.linearAd.extensions,function(e){var n=f.a.AD_VERIFICATIONS,r=f.a.MOAT_JS,a=f.a.VISIBILITY,s=f.a.HTML,c=f.a.IFRAME,u=f.a.SCRIPT,d=f.a.ALENTY;switch(e.type){case i.EXTENSION_TYPE:var l=i.parse(e.content);l&&l.width&&l.height&&(t.mediaFile.width=l.width,t.mediaFile.height=l.height);break;case n:var p=o.map(t.retrieveCreativePrefetchAdVerificationScriptUrls(e),function(t){return t.url});t.prefetchAdVerificationScripts(p);break;case r:t.initMoatTracking(e);break;case a:case s:case c:t.injectIframe(e.content);break;case u:case d:t.injectJs(e.content);break;default:t.logger.warn("Unhandled extension type",e)}})},t.prototype.deinit=function(){},t.prototype.getExtension=function(t){return l.b.of(o.find(this.linearAd.extensions,function(e){return e.type===t}))},t.prototype.retrieveCreativePrefetchAdVerificationScriptUrls=function(t){var e=this,n=o.fromNodeList(t.xml.querySelectorAll("Verification")),i=o.map(n,function(t){return[t.getAttribute("vendor"),t.querySelector("JavaScriptResource")]}),a=o.filter(i,function(t){return"creative-prefetch"===m(t,2)[1].getAttribute("apiFramework")}),c=/src="([^"]+)/gi,u=Object(h.a)(function(t,e){return o.map(e,function(e){var n=e.vendor,i=e.url;return{vendor:n,url:g.h(t)(i)}})}),d=Object(p.a)(u(this.getVastMacros()),u(this.getFunnelMacros())),f=o.map(a,function(t){var n=m(t,2),i=n[0],a=n[1];return l.b.of(a.textContent).map(r.trim).map(function(t){for(var n,r=[];null!==(n=c.exec(t));)r.push(n[1]);var a="DoubleVerify"===i?o.map(r,function(t){return s.replaceUrlParameter(t,"btreg",e.container.getAttribute("id"))}):r;return o.map(a,function(t){return{vendor:i,url:t}})}).map(d)});return o.reduce(f,function(t,e){return e.map(function(e){return t.concat(e)}).getOrElse(function(){return t})},[])},t.prototype.prefetchAdVerificationScripts=function(t){o.forEach(t,function(t){return(new Image).src=t})},t.prototype.initMoatTracking=function(e){var n=this,i=this.vpaidAd.getAdDuration();i<=0&&(i=this.linearAd.duration),this.externalAdVolume=this.vpaidAd.getAdVolume();var s=c.parse(e.content);s.zMoatAuctID=this.businessIds.auctid;var u=[],d={adData:{ids:s,duration:i,url:this.mediaFile.url},dispatchEvent:function(t){if(this.sendEvent){var e=t;u&&(u.push(t),e=u,u=null),this.sendEvent(e)}else u.push(t)}};this.logger.debug("intialized MOAT with",d.adData);var l=["AdStarted","AdImpression","AdStopped","AdVideoStart","AdVideoFirstQuartile","AdVideoMidpoint","AdVideoThirdQuartile","AdVideoComplete","AdPaused","AdPlaying"];o.forEach(l,function(t){n.vpaidAd.subscribe(function(){var e={type:t,adVolume:n.externalAdVolume};n.logger.debug("sending MOAT event",e),d.dispatchEvent(e)},t)}),this.vpaidAd.subscribe(function(){if(n.externalAdVolume!==n.vpaidAd.getAdVolume()){var t={type:"AdVolumeChanged",adVolume:n.vpaidAd.getAdVolume()};n.logger.debug("sending MOAT event",t),d.dispatchEvent(t),n.externalAdVolume=n.vpaidAd.getAdVolume()}},"AdVolumeChange");var p="_moatApi"+r.rand(8),h=a.getWindow(this.container);h[p]=d;var f=a.getDocument(this.container).createElement("script"),g=h.location.protocol,m="https:"===g?"z":"js";f.src=g+"//"+m+".moatads.com/"+t.MOAT_PARTNER_CODE+"/moatvideo.js#"+p,this.container.insertBefore(f,this.container.childNodes[0])},t.prototype.injectJs=function(t){var e=document.createElement("script");e.async=!0,e.src=t,document.body.appendChild(e)},t.prototype.injectIframe=function(t){var e=document.createElement("iframe");e.style.setProperty("width","10px"),e.style.setProperty("height","10px"),e.style.setProperty("position","absolute"),e.style.setProperty("left","-999em"),e.style.setProperty("top","0"),document.body.appendChild(e);var n=e.contentWindow.document;n.open(),n.write(-1===t.indexOf("<html")?"<!doctype html><html><head></head><body>"+t+"</body></html>":t),n.close()},t.MOAT_PARTNER_CODE="teads245638586802",t.MOAT_TEST_INSERTIONID=/^103055$/,t}()},function(t,e,n){var i=n(2),o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)throw new Error("expecting at least one argument");return function(e){return Object(i.reduce)(t,function(t,e){return e(t)},e)}};e.a=o},function(t,e,n){function i(t){var e=t.length;return function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return i.length<e?n.bind.apply(n,r([null],i)):t.call.apply(t,r([null],i))}}var o=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},r=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t};e.a=i},function(t,e,n){n.d(e,"a",function(){return c});var i=n(127),o=n(1),r=n(2),a=n(65),s=n(6),c=function(){function t(t,e,n,i,r,a){this.container=t,this.config=e,this.vpaidAd=n,this.mediaFile=i,this.linearAd=r,this.logger=new o.a("player.plugin.IAS"),this.lastSentData={},this.sentVpaidEvents={},this.isMuted=!0}return t.prototype.init=function(){var e=this;this.logger.debug("init IAS plugin");var n=a.getIASConfig(this.linearAd);n&&(r.forEach(t.IASEvents,function(t){e.vpaidAd.subscribe(function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e.sentVpaidEvents[t]=n},t)}),this.vpaidAd.subscribe(function(){e.loadIASVANS(n)},s.a.AdStarted))},t.prototype.deinit=function(){},t.prototype.loadIASVANS=function(t){var e=this,n=this.config.path+"/"+i.a.iasvans,o=document.createElement("script");o.onload=function(){e.logger.debug("IAS VANS loaded"),e.initIAS(t)},o.onerror=function(){e.logger.error("unable to load IASVANS "+n)},o.async=!0,o.defer=!0,o.src=n,document.head.appendChild(o)},t.prototype.initIAS=function(e){var n=this;this.logger.debug("init IAS extension",e);var i;try{var o=this.vpaidAd;if(o.container.getEnvironmentVars)i=o.container.getEnvironmentVars().videoSlot;else{if(!o.vpaid.container.getEnvironmentVars)return;i=o.vpaid.container.getEnvironmentVars().videoSlot}}catch(t){return void this.logger.error("unable to retrieve video node",this.vpaidAd)}this.vans=new __IASVANS;try{if(e.type===a.IAS_FIREWALL)this.vans.initFW(e.data,i,function(t){});else{if(e.type!==a.IAS_CAMPAIGN_MONITORING)throw"invalid config";this.vans.initCM(e.data,i)}this.logger.debug("init IAS VANS with",e,i)}catch(t){return void this.logger.error("error init on __IASVANS_3 "+t)}for(var c in this.sentVpaidEvents)this.sentVpaidEvents.hasOwnProperty(c)&&(this.logger.debug("redispatch VPAID event to IAS",c,this.sentVpaidEvents[c]),this.sendEvent(c,this.sentVpaidEvents[c]));r.forEach(t.IASEvents,function(t){n.vpaidAd.subscribe(function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];n.sendEvent(t,e)},t)}),this.vpaidAd.subscribe(function(){this.sendEvent("resizeAd")},s.a.AdSizeChange)},t.prototype.sendEvent=function(t,e){var n=function(t){return Math.round(100*t)/100},i={};switch(t){case"resizeAd":i={width:this.vpaidAd.getAdWidth(),height:this.vpaidAd.getAdHeight(),viewMode:"normal"};break;case s.a.AdError:i={message:e[0]};break;case s.a.AdClickThru:i={url:null,id:e[1],playerHandles:e[2]}}if(i.volume=n(this.vpaidAd.getAdVolume()),i.ad_duration=n(this.vpaidAd.getAdDuration()),isNaN(i.ad_duration)&&(i.ad_duration=-2),t!==s.a.AdDurationChange||this.lastSentData.ad_duration!==i.ad_duration){if(t===s.a.AdVolumeChange){if(this.isMuted&&0===i.volume||!this.isMuted&&i.volume>.1)return;this.isMuted=0===i.volume}try{this.vans.sendEvent(t,i),this.lastSentData=i,this.logger.debug("IAS VANS, sendEvent",t,i)}catch(e){this.logger.error("error sending IAS event",t,i)}}},t.IASEvents=[s.a.AdLoaded,s.a.AdStarted,s.a.AdStopped,s.a.AdSkipped,s.a.AdSkippableStateChange,s.a.AdDurationChange,s.a.AdVolumeChange,s.a.AdImpression,s.a.AdVideoStart,s.a.AdVideoFirstQuartile,s.a.AdVideoMidpoint,s.a.AdVideoThirdQuartile,s.a.AdVideoComplete,s.a.AdClickThru,s.a.AdPaused,s.a.AdPlaying,s.a.AdError],t}()},function(t,e,n){n.d(e,"a",function(){return u});var i=n(88),o=n(7),r=n(1),a=n(5),s=n(36),c=n(6),u=function(){function t(t,e,n,i){this.container=t,this.config=e,this.vpaidAd=n,this.mediaFile=i,this.logger=new r.a("player.plugin.Responsive")}return t.prototype.init=function(){this.logger.debug("init plugin"),this.vpaidAd.subscribe(this.onVideoMetadata,s.default.AdVideoMetadata,this),this.vpaidAd.subscribe(this.onVpaidStart,c.a.AdStarted,this)},t.prototype.deinit=function(){this.logger.debug("deinit plugin"),this.vpaidAd.unsubscribe(this.onVpaidStart,c.a.AdStarted),this.vpaidAd.unsubscribe(this.onVideoMetadata,s.default.AdVideoMetadata),this.unsetResponsive()},t.prototype.resize=function(t){if(!a.isFullscreen())try{var e=o.getBoundingClientRect(this.container).width;if(e!==this.vpaidAd.getAdWidth()||t){var n=this.config.vpaidApi&&this.config.vpaidApi.getStudioData(),r=i.c.getOptimalHeight(this.mediaFile,e,!!this.metadata||!!n),s=this.vpaidAd.getAdWidth(),c=this.vpaidAd.getAdHeight();s===e&&c===r||(this.vpaidAd.resizeAd(e,r,"normal"),this.logger.debug("container width change, resize from "+s+"x"+c+" to "+e+"x"+r))}}catch(t){this.logger.error("resize throw an Exception",t),this.unsetResponsive()}},t.prototype.setResponsive=function(){var t=this;return!this.iframe&&(this.vpaidAd.subscribe(function(){t.unsetResponsive()},c.a.AdError),this.vpaidAd.subscribe(function(){t.unsetResponsive()},c.a.AdStopped),this.resize(),this.iframe=document.createElement("iframe"),this.iframe.style.setProperty("height","0"),this.iframe.style.setProperty("width","100%"),this.iframe.style.setProperty("border","none"),this.iframe.style.setProperty("margin","0"),this.iframe.style.setProperty("padding","0"),this.container.appendChild(this.iframe),this.iframe.contentWindow.document.write("<html><body></body></html>"),this.iframe.contentWindow.document.close(),this.resizeCallback=function(){return t.resize()},o.addEventListener("resize",this.iframe.contentWindow,this.resizeCallback),!0)},t.prototype.unsetResponsive=function(){try{return!!this.iframe&&(o.removeEventListener("resize",this.iframe.contentWindow,this.resizeCallback),this.iframe.parentNode.removeChild(this.iframe),this.iframe=null,!0)}catch(t){return!1}},t.prototype.onVideoMetadata=function(t){this.logger.debug("Receive metadata from video",t),t.width&&t.height&&(this.metadata=t,this.mediaFile.width=t.width,this.mediaFile.height=t.height,Math.ceil(this.vpaidAd.getAdWidth()/this.vpaidAd.getAdHeight())!==Math.ceil(t.width/t.height)&&(this.logger.debug("vpaid ratio differ from mediafile ratio, force resize !"),this.resize(!0)))},t.prototype.onVpaidStart=function(){if(!this.config.width)try{this.logger.debug("set player responsive !"),this.setResponsive()}catch(t){this.logger.error("Exception raised while trying to initialize",t)}},t}()},function(t,e,n){n.d(e,"a",function(){return g});var i=n(152),o=n(89),r=n(4),a=n(1),s=n(2),c=n(3),u=n(5),d=n(16),l=n(63),p=n(94),h=n(6),f=n(36),g=function(){function t(t,e,n,i,r,u){var d=this;this.container=t,this.config=e,this.vpaidAd=n,this.mediaFile=i,this.linearAd=r,this.tracker=u,this.logger=new a.a("player.plugin.Tracker"),this.tracked={},this.trackedProgress=[],this.trackOnce=[p.b.skip,p.b.creativeView,p.b.start,p.b.impression,p.b.firstQuartile,p.b.midpoint,p.b.thirdQuartile,p.b.complete,p.b.error],this.isMuted=!1;var l=[h.a.AdLoaded,h.a.AdStarted,h.a.AdSkipped,h.a.AdImpression,h.a.AdVideoStart,h.a.AdVideoFirstQuartile,h.a.AdVideoMidpoint,h.a.AdVideoThirdQuartile,h.a.AdVideoComplete,h.a.AdClickThru,h.a.AdUserClose],g=[h.a.AdDurationChange,h.a.AdRemainingTimeChange],m=Object.keys(h.a);for(var v in f.default)m.push(v);s.forEach(m,function(t){s.indexOf(l,t)>-1&&d.vpaidAd.subscribe(function(e){t===h.a.AdError&&e||(e=""),o.b.sendInfo([t,c.getContextSummary(),e].join("|"))},t),-1===g.indexOf(t)&&d.vpaidAd.subscribe(function(e){void 0===e&&(e=""),d.logger.info(t+" "+e)},t)})}return t.prototype.init=function(){var t=this;this.logger.debug("init");try{this.previousRemainingTime=this.vpaidAd.getAdRemainingTime(),this.vpaidAd.subscribe(function(){return t.onTimeChange()},h.a.AdDurationChange),this.vpaidAd.subscribe(function(){return t.onTimeChange()},h.a.AdRemainingTimeChange);for(var e in this.linearAd.tracking)this.addTrackingCallback(e);this.vpaidAd.subscribe(function(){return t.onAdStarted()},h.a.AdStarted),this.vpaidAd.subscribe(function(){return t.onVolumeChange()},h.a.AdVolumeChange);var n;this.vpaidAd.subscribe(function(){var e=u.isFullscreen()||t.vpaidAd.getAdExpanded();!n&&e?(t.trackVastEvent(p.b.fullscreen),t.trackVastEvent(p.b.expand)):n&&!e&&(t.trackVastEvent(p.b.exitFullscreen),t.trackVastEvent(p.b.collapse)),n=e},h.a.AdExpandedChange)}catch(t){this.tracker.trackError(r.b.of(this.mediaFile),new d.b({id:900,message:"plugin.Tracker throw an exception on init "+t}))}},t.prototype.deinit=function(){this.logger.debug("deinit")},t.prototype.getTracker=function(){return this.tracker.getTracker()},t.prototype.removeResources=function(t){try{this.getTracker().getTracking(t).removeResources()}catch(e){this.logger.error("Remove tracking resources for event "+t+" throw an exception",e)}},t.prototype.onTimeChange=function(){this.adDuration=this.vpaidAd.getAdDuration(),this.adRemainingTime=this.vpaidAd.getAdRemainingTime()},t.prototype.onVolumeChange=function(){this.isMuted&&this.vpaidAd.getAdVolume()>0?this.trackVpaidEvent(p.b.unmute,h.a.AdVolumeChange):this.isMuted||0!==this.vpaidAd.getAdVolume()||this.trackVpaidEvent(p.b.mute,h.a.AdVolumeChange),this.isMuted=!this.vpaidAd.getAdVolume()},t.prototype.onAdStarted=function(){this.isMuted=!this.vpaidAd.getAdVolume()},t.prototype.addTrackingCallback=function(t){var e=this,n=i.a[t]||i.b[t];this.vpaidAd.subscribe(function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t===p.b.error?e.trackError(p.b.error,h.a.AdError,i):e.trackVpaidEvent(t,n)},n)},t.prototype.findExceptionMsg=function(t){for(var e in d.b)if(d.b[e].id===t)return d.b[e].message},t.prototype.trackEvent=function(t,e,n,i){var o=this,a=Object(l.b)(this.container),c=Object(l.g)(this.container,a);n=n.filter(function(t){return!isNaN(t)}).orElse(function(){return r.b.of(o.adDuration-o.adRemainingTime||0)});var u=Math.floor(n.getOrElse(function(){return 0}));if(t===p.b.progress){if(this.trackedProgress[u])return;if(this.previousRemainingTime===this.adRemainingTime)return;this.previousRemainingTime=this.adRemainingTime}switch(t){case p.b.start:this.tracked[p.b.impression]||this.trackVastEvent(p.b.impression);break;case p.b.complete:this.trackProgress(u+1);case p.b.firstQuartile:case p.b.midpoint:case p.b.thirdQuartile:this.tracked[p.b.start]||this.trackVastEvent(p.b.start);break;case p.b.progress:this.trackedProgress[u]=!0;var d=u-1;d>0&&!this.trackedProgress[d]&&(this.logger.debug("track missing previous progress "+d),this.trackProgress(d));break;case p.b.mute:if(!this.tracked[p.b.impression])return}s.includes(this.trackOnce,t)&&this.tracked[t]||(this.tracker.track(t,r.b.of(this.mediaFile),n,r.b.of(this.adDuration),i,r.b.of(c)),this.tracked[t]=!0)},t.prototype.trackVastEvent=function(t){this.trackEvent(t,r.b.empty(),r.b.empty(),r.b.empty())},t.prototype.trackVpaidEvent=function(t,e){this.trackEvent(t,r.b.of(e),r.b.empty(),r.b.empty())},t.prototype.trackProgress=function(t){this.trackEvent(p.b.progress,r.b.of(h.a.AdRemainingTimeChange),r.b.of(t),r.b.empty())},t.prototype.trackError=function(t,e,n){var i=n&&n[1]&&"number"==typeof n[1]&&!isNaN(n[1])?n[1]:d.b.GENERAL.id,o=n&&n[0]||this.findExceptionMsg(i);this.trackEvent(t,r.b.of(e),r.b.empty(),r.b.of(d.a.get(i,"AdError : "+o)))},t}()},function(t,e,n){n.d(e,"a",function(){return r});var i=n(22),o=n(164),r=function(){function t(t,e,n,i,o,r){this.config=e,this.vpaidAd=n,this.linearAd=o}return t.prototype.init=function(){this.vpaidAd.subscribe(this.onClickAdChoices,i.a.AdChoicesClickRequest,this)},t.prototype.deinit=function(){this.vpaidAd.unsubscribe(this.onClickAdChoices,i.a.AdChoicesClickRequest)},t.prototype.onClickAdChoices=function(){window.open(Object(o.b)(this.linearAd),"_blank")},t}()},function(t,e,n){var i=n(4),o=n(108),r=n(6),a=n(22),s=function(){function t(t){this.ui=t}return t.prototype.init=function(t,e,n,s,c,u,d){this.mode={isCorner:e,isTop:t},this.closeButton=i.b.of(this.ui.getComponent("closebutton")),this.soundButton=i.b.of(this.ui.getComponent("soundbutton")),this.clickButton=i.b.of(this.ui.getComponent("clickbutton")),this.adChoicesButton=i.b.of(this.ui.getComponent("adchoices")),this.closeButtonMode=this.closeButton.map(function(t){return t.mode}).orNull(),e&&this.closeButtonMode===o.a.COUNTDOWN&&this.closeButton.forEach(function(t){return t.changeOnCountdownEnded(function(){t.show(),c()})}),this.closeButton&&this.closeButtonMode!==o.a.COUNTDOWN&&!n&&this.ui.subscribe(u,r.a.AdVideoMidpoint),n&&s&&t?this.closeButton.forEach(function(t){return t.show()}):n&&s&&e&&c(),this.ui.subscribe(d,a.a.CollapseRequest)},t.prototype.start=function(t,e,n){this.clickButton.forEach(function(t){return t.hide()}),this.clickButton.forEach(function(t){return t.getConfig().disable=!0}),this.mode.isTop?(this.closeButton.forEach(function(t){return t.onClickAction=i.b.of(e)}),this.closeButtonMode===o.a.CLASSIC&&t&&this.closeButton.forEach(function(t){return t.show()})):this.mode.isCorner&&(this.soundButton.forEach(function(t){return t.hide()}),this.closeButton.forEach(function(t){return t.hide()}),this.adChoicesButton.forEach(function(t){return t.hide()}),this.closeButtonMode===o.a.COUNTDOWN&&this.closeButton.forEach(function(t){return t.changeOnCountdownEnded(n)}))},t.prototype.stop=function(t){this.clickButton.forEach(function(t){return t.show()}),this.clickButton.forEach(function(t){return t.getConfig().disable=!1}),this.mode.isTop?(this.closeButton.forEach(function(t){return t.restoreOnClickAction()}),this.closeButtonMode===o.a.CLASSIC&&this.closeButton.forEach(function(t){return t.hide()})):this.mode.isCorner&&(this.adChoicesButton.forEach(function(t){return t.show()}),this.soundButton.forEach(function(t){return t.show()}),this.closeButtonMode!==o.a.CLASSIC&&this.closeButton.forEach(function(t){return t.show()}),this.closeButtonMode===o.a.COUNTDOWN&&this.closeButton.forEach(function(e){return e.changeOnCountdownEnded(function(){e.show(),t()})}))},t.prototype.isCloseButtonMode=function(t){return t===this.closeButtonMode},t.prototype.showCloseButton=function(){this.closeButton.forEach(function(t){return t.show()})},t}();e.a=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=(n(32),n(182),n(104)),o=n(130),r=n(45),a=n(51),s=n(128),c=n(48),u=n(26),d=n(6),l=n(90),p=n(47),h=n(91),f=n(101),g=n(71),m=n(135),v=n(103),y=n(133),b=n(132),A=n(102),E=n(131),w=n(106),_=n(105),C=n(134),S=n(87),T=n(46),O=n(129),I=n(36),P=n(113),k=n(22),L=window.teads||{};L.vpaid=L.vpaid||{},L.vpaid.VPAIDEvent=d.a,L.vpaid.CustomVPAIDEvent=I,L.vpaid.ui=k.a,L.vpaid.VPAIDJSGuard=l.a,L.vpaid.VpaidStatus=u.a,L.vpaid.CreativeType=r.a,L.vpaid.EventHandler=p.a,L.vpaid.Timeout=c,L.vpaid.VPAIDHelper=T,L.vpaid.BaseVPAIDJSWrapper=h.a,L.vpaid.LoaderStatus=s.a,L.vpaid.BaseVPAIDContainer=f.a,L.vpaid.ErrorCode=a,L.vpaid.VPAIDJSContainer=g.a,L.vpaid.asset=i.a,L.vpaid.VPAIDSWFContainer=m.a,L.vpaid.PostMessage=v.a,L.vpaid.PostMessageServer=y.a,L.vpaid.PostMessageVPAID=b.a,L.vpaid.PostMessageClient=A.a,L.vpaid.PostMessageContainer=E.a,L.vpaid.adManagerList=o.a,L.vpaid.AdManagerHelper=O,L.vpaid.VPAIDWrapper=w.a,L.vpaid.VPAID2Over1=_.a,L.vpaid.AdManagerWrapper=C.a,L.vpaid.BundledContainer=S.a,L.vpaid.VPAIDLoader=P.a,window.teads=L},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=(n(32),n(159)),o=n(67),r=n(150),a=n(142),s=n(58),c=n(54),u=n(19),d=n(136),l=n(107),p=n(137),h=n(138),f=n(139),g=n(140),m=n(108),v=n(141),y=n(109),b=n(143),A=n(144),E=n(118),w=n(145),_=n(146),C=n(147),S=n(148),T=n(85),O=n(149),I=n(158),P=window.teads||{};P.ui=P.ui||{},P.ui.template=P.ui.template||{},P.ui.component=P.ui.component||{},P.ui.VPAIDUI=i.a,P.ui.components=o.b,P.ui.componentBaseClassName=o.a,P.ui.mainComponentsContainerId=o.c,P.ui.videoComponentsContainerId=o.d,P.ui.vpaidContainerId=o.e,P.ui.ComponentHelper=r,P.ui.StringHelper=a,P.ui.TemplateHelper=s,P.ui.VPAIDHelper=c,P.ui.component.Component=u.a,P.ui.component.Countdown=T.a,P.ui.component.CloseButton=m.b,P.ui.component.Credits=_.a,P.ui.component.FullscreenButton=d.a,P.ui.component.Label=w.a,P.ui.component.PlayPauseButton=h.a,P.ui.component.ProgressBar=p.a,P.ui.component.ProgressText=f.a,P.ui.component.SkipButton=g.a,P.ui.component.MuteButton=l.a,P.ui.component.SoundButton=E.b,P.ui.component.TextField=y.a,P.ui.component.ClickToPlay=b.a,P.ui.component.UIButton=v.a,P.ui.component.ClickButton=A.a,P.ui.component.EndScreen=C.a,P.ui.component.BrandLogo=S.a,P.ui.component.StartScreen=O.a,P.ui.template.inread=I.inread,window.teads=P},function(t,e,n){var i=n(7),o=n(44),r=n(259),a=function(){function t(t,e){void 0===e&&(e=0),this.isSizeResolved=!1,this.scoreValues={WIDTH:20,HEIGTH:20,LENGTH:20,HIGH_MIN_SLOT:-5,LOW_MIN_SLOT:500,EQUAL_MIN_SLOT:1e3},this.element=t,this.index=e;var n=i.getSize(t);this.width=n.width,this.height=n.height}return t.prototype.resolveSize=function(){if(!this.isSizeResolved){var t=this.element.style.overflow;this.element.style.setProperty("overflow","hidden");var e=i.getSize(this.element);e.height=e.width/o.DEFAULT_VIDEO_SIZE_RATIO,this.element.style.setProperty("overflow",t),this.width=e.width,this.height=e.height,this.isSizeResolved=!0}},t.prototype.getElement=function(){return this.element},t.prototype.getElementRect=function(){return this.elementRect?this.elementRect:(this.elementRect=i.getBoundingClientRect(this.element),this.elementRect)},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getScore=function(){return this.score},t.prototype.getIndex=function(){return this.index},t.prototype.computeScore=function(t){var e=r.configScore,n=0,o=t.minimum.get(),a=t.parentWindow.getWindow();this.width>t.minimumWidth.get()+e.WIDTH_MARGIN&&(n+=this.scoreValues.WIDTH),this.height>e.MIN_LONG_HEIGHT+e.HEIGHT_MARGIN&&(n+=this.scoreValues.HEIGTH),this.height>t.minimumTextLength.get()+e.LENGTH_MARGIN&&(n+=this.scoreValues.LENGTH),this.index>o+e.LENGTH_MARGIN?n+=this.scoreValues.EQUAL_MIN_SLOT:this.index>=0&&o?n+=this.scoreValues.HIGH_MIN_SLOT:n+=this.scoreValues.LOW_MIN_SLOT;var s=i.getBoundingClientRect(this.getElement()),c=a.document.body||a.document.documentElement;n-=(s.top+(a.pageYOffset||c.scrollTop))/20,this.score=n},t}();e.a=a},,function(t,e,n){var i=n(44),o=n(3),r=n(2),a=n(13),s=n(8),c=n(59),u=n(194),d=n(114),l=n(110),p=n(1),h=n(29),f=n(4),g=n(10),m=n(18),v=n(61),y=n(38),b=n(63),A=n(195),E=function(){function t(t,e,n,s){void 0===e&&(e=null),void 0===s&&(s=f.a);var m=this;this.pageId=t,this.sumologic=n,this.headerBiddingProvider=s,this.tracker=new d.a(f.b.of(l.a.format),c.a.businessIds.pid),this.slotType=i.SLOT_TYPE.native,this.hasTracked={},this.vastErrorCodeTracked=null,this.needToTrackNotFilled=!1,this.fraudReason=null,this.logger=new p.a("placement.tracker"),this.wigoi=null,this.userStore=f.b.empty(),this.pid=new u.a(e),this.setWigoi(new h.c),this.tracker.addResource(i.TRACKING.adCall,i.COMSCORE_URL.V1[window.location.protocol]),Object(o.isSDK)()?this.tracker.addResource(i.TRACKING.placementCall,i.COMSCORE_URL.V2SDK):this.tracker.addResource(i.TRACKING.placementCall,i.COMSCORE_URL.V2[window.location.protocol]),r.forEach(l.a.format,function(t){var e={action:t.name,pageId:y.TrackingMacro.PAGEID,pid:y.TrackingMacro.PID,gid:y.TrackingMacro.GID,slot:y.TrackingMacro.SLOT_TYPE,env:y.TrackingMacro.ENV,f:1,ts:Object(g.now)()},n=Object(a.buildUrlWithParams)(v.b.trackingUrl,e);t.name===i.TRACKING.adCall&&(n+="&gdpr_status="+y.TrackingMacro.GDPR_STATUS+"&gdpr_consent="+y.TrackingMacro.GDPR_CONSENT+"&gdpr_reason="+y.TrackingMacro.GDPR_REASON),m.headerBiddingProvider.forEach(function(){return n+="&hb_provider="+y.TrackingMacro.HEADER_BIDDING_PROVIDER}),m.tracker.addResource(t.name,n)})}return t.prototype.setSlotDimensionOnTracking=function(t){var e,n=this,i=/slot=/,o=/slot=\[slotType\]/,s=/^[a-z0-9]+\.(sandbox|par[0-9])\.teads\.(net|tech)$/;if(t&&t.tracking)for(var c in t.tracking)t.tracking.hasOwnProperty(c)&&r.forEach(t.tracking[c],function(r,u){e=Object(a.parse)(r.url),("t.teads.tv"===e.host||s.test(e.hostname))&&(o.test(e.search)?t.tracking[c][u].url.replace("[slotType]",n.slotType):i.test(e.search)||(t.tracking[c][u].url+=e.search?"&":"?",t.tracking[c][u].url+="slot="+n.slotType))})},t.prototype.setSlotType=function(t){this.slotType=t},t.prototype.setUserStore=function(t){this.userStore=f.b.of(t)},t.prototype.handleEmptyAdsArray=function(){this.needToTrackNotFilled=!0,this.wigoi&&this.wigoi.valid(1,2,i.TRACKING.noAd.notFilled,h.c.infoType.ERROR)},t.prototype.handleFraud=function(t){switch(t){case i.TRACKING.ivt.doubleVerify:this.fraudReason=i.TRACKING.noAd.ivt.doubleVerify;break;case i.TRACKING.ivt.tag:this.fraudReason=i.TRACKING.noAd.ivt.tag;break;case i.TRACKING.blockedSite.doubleVerify:this.fraudReason=i.TRACKING.noAd.blockedSite.doubleVerify;break;case i.TRACKING.blockedSite.teads:this.fraudReason=i.TRACKING.noAd.blockedSite.teads}this.wigoi&&this.wigoi.valid(1,2,t,h.c.infoType.ERROR)},t.prototype.track=function(e,n){if(!this.hasTracked[e]){var r="",a=e.split("-"),c="adAvailable"===a[0]?a[0]+"-"+a[1]:a[0];this.formatInstance&&this.formatInstance.formatConfig&&(r=this.formatInstance.formatConfig.vast.extractInsertionId());var u=Object(b.c)({pageId:f.b.of(this.pageId),pid:f.b.of(this.pid.get()),insertionId:f.b.of(r),slotType:f.b.of(this.slotType),env:f.b.of(Object(o.getEnv)()),impressionId:f.b.of(Object(g.now)()),cachebusting:f.b.of(Object(s.rand)(8)),headerBiddingProvider:this.headerBiddingProvider,gdprIab:f.b.of(A.a.payload),userStore:this.userStore});if(this.tracker.track(e,Object(f.c)(u),void 0,void 0,n),i.TRACKING_LOG[c]&&this.sumologic.sendInfo(i.TRACKING_LOG[c]),this.hasTracked[e]=!0,this.logger.info(e),e===i.TRACKING.adCall&&this.initAdTimingMark){var d=Math.round(Object(m.now)()-this.initAdTimingMark);this.vpaidAd&&this.vpaidAd.getVPAID().handleAdCallTimeout&&this.vpaidAd.getVPAID().handleAdCallTimeout(d),this.logger.info("Duration between initAd and adCall",d)}}this.setVastErrorCode(e.match(t.vastErrorRegExp)),this.sendToWigo(e),e===i.TRACKING.adCall&&this.handleMirroringEvent()},t.prototype.handleInitAdTimingMark=function(t){this.initAdTimingMark=Object(m.now)(),this.vpaidAd=t},t.prototype.handleMirroringEvent=function(){this.hasTracked[i.TRACKING.adCall]&&(this.hasTracked[i.TRACKING.adNotAvailable.networkError]?this.track(i.TRACKING.noAd.networkError):this.hasTracked[i.TRACKING.adNotAvailable.serverError]?this.track(i.TRACKING.noAd.serverError):this.vastErrorCodeTracked?this.track(i.TRACKING.noAd.vastError.replace(/\{code\}$/,this.vastErrorCodeTracked)):this.hasTracked[i.TRACKING.adAvailable.error.parseTimeout]?this.track(i.TRACKING.noAd.parseTimeout):this.hasTracked[i.TRACKING.adAvailable.error.settings]?this.track(i.TRACKING.noAd.settingsError):this.hasTracked[i.TRACKING.adAvailable.error.badResponse]?this.track(i.TRACKING.noAd.badResponse):this.hasTracked[i.TRACKING.adAvailable.success]?this.track(i.TRACKING.ad):this.hasTracked[i.TRACKING.adAvailable.error.sameAd]&&this.track(i.TRACKING.noAd.sameAd),this.needToTrackNotFilled&&this.track(i.TRACKING.noAd.notFilled),this.fraudReason&&this.track(this.fraudReason))},t.prototype.setWigoi=function(t){this.wigoi=t},t.prototype.getWigoi=function(){return this.wigoi},t.prototype.setVastErrorCode=function(t){if(t&&t.length>1){this.vastErrorCodeTracked=t[1];var e=i.TRACKING.noAd.vastError.replace(/\{code\}$/,this.vastErrorCodeTracked);this.logger.info(e),this.wigoi&&this.wigoi.valid(1,2,e,h.c.infoType.ERROR)}},t.prototype.sendToWigo=function(t){switch(t){case i.TRACKING.adNotAvailable.networkError:case i.TRACKING.adNotAvailable.serverError:case i.TRACKING.adAvailable.error.parseTimeout:case i.TRACKING.adAvailable.error.settings:case i.TRACKING.adAvailable.error.badResponse:case i.TRACKING.adAvailable.error.sameAd:case i.TRACKING.noAd.ivt.doubleVerify:case i.TRACKING.noAd.ivt.tag:case i.TRACKING.noAd.blockedSite.doubleVerify:case i.TRACKING.noAd.blockedSite.teads:this.wigoi&&this.wigoi.valid(1,2,t,h.c.infoType.ERROR)}},t.vastErrorRegExp=new RegExp(i.TRACKING.adAvailable.error.vast.replace(/\{code\}$/,"(\\d+)")),t}();e.a=E},function(t,e){},function(t,e,n){n.d(e,"c",function(){return i}),n.d(e,"b",function(){return o}),n.d(e,"a",function(){return r});var i;!function(t){t[t.GDPR_DOESNT_APPLY=0]="GDPR_DOESNT_APPLY",t[t.GDPR_APPLIES_GLOBAL=11]="GDPR_APPLIES_GLOBAL",t[t.GDPR_APPLIES_PUBLISHER=12]="GDPR_APPLIES_PUBLISHER",t[t.UNSUCCESSFUL_CMP_RESPONSE=21]="UNSUCCESSFUL_CMP_RESPONSE",t[t.CMP_NOT_FOUND=22]="CMP_NOT_FOUND",t[t.CMP_NOT_READY=23]="CMP_NOT_READY",t[t.OTHER=24]="OTHER"}(i||(i={}));var o;!function(t){t[t.GDPR_DOESNT_APPLY=0]="GDPR_DOESNT_APPLY",t[t.GDPR_APPLIES_GLOBAL_CLASSIC=110]="GDPR_APPLIES_GLOBAL_CLASSIC",t[t.GDPR_APPLIES_GLOBAL_OVERLAY=111]="GDPR_APPLIES_GLOBAL_OVERLAY",t[t.GDPR_APPLIES_GLOBAL_TEADS_BECAUSE_NO_CMP=112]="GDPR_APPLIES_GLOBAL_TEADS_BECAUSE_NO_CMP",t[t.GDPR_APPLIES_GLOBAL_TEADS_AFTER_TIMEOUT=113]="GDPR_APPLIES_GLOBAL_TEADS_AFTER_TIMEOUT",t[t.GDPR_APPLIES_PUBLISHER_CLASSIC=120]="GDPR_APPLIES_PUBLISHER_CLASSIC",t[t.GDPR_APPLIES_PUBLISHER_OVERLAY=121]="GDPR_APPLIES_PUBLISHER_OVERLAY",t[t.GDPR_APPLIES_PUBLISHER_TEADS_BECAUSE_NO_CMP=122]="GDPR_APPLIES_PUBLISHER_TEADS_BECAUSE_NO_CMP",t[t.GDPR_APPLIES_PUBLISHER_TEADS_AFTER_TIMEOUT=123]="GDPR_APPLIES_PUBLISHER_TEADS_AFTER_TIMEOUT",t[t.UNSUCCESSFUL_CMP_RESPONSE=210]="UNSUCCESSFUL_CMP_RESPONSE",t[t.CMP_NOT_FOUND=220]="CMP_NOT_FOUND",t[t.CMP_NOT_READY_NO_RESPONSE=230]="CMP_NOT_READY_NO_RESPONSE",t[t.CMP_NOT_READY_JS_NOT_LOADED=231]="CMP_NOT_READY_JS_NOT_LOADED",t[t.CMP_NOT_READY_NO_PING_RESPONSE=232]="CMP_NOT_READY_NO_PING_RESPONSE",t[t.OTHER=240]="OTHER"}(o||(o={}));var r;!function(t){t.getVendorConsents="getVendorConsents",t.getConsentData="getConsentData",t.ping="ping",t.getPublisherConsents="getPublisherConsents",t.getVendorList="getVendorList"}(r||(r={}))},function(t,e,n){var i=n(184),o=n(35),r=n(215),a=n(216),s=n(217),c=n(218),u=n(219),d=n(220),l=n(221),p=n(222),h=n(223),f=n(224),g=n(225),m=n(226),v=n(227),y=n(228),b=n(230),A=n(231),E=n(232),w=n(233),_=n(234),C=n(196),S=n(235),T=n(236),O=n(237),I=n(238),P=n(239),k=n(240),L=n(241),x=function(){function t(t){if(!t.settings)throw new o.a(o.a.INCOMPLETE_OBJECT);var e={type:t.type,content:t.content};this.vast=new r.a(e,t.settings.values.placementId),t.settings.values=t.settings.values||{placementFormat:null,pageId:null,placementId:null,threshold:null},t.settings.components=t.settings.components||{},t.settings.behaviors=t.settings.behaviors||{},this.adSourceId=t.ad_source_id,this.connectionId=t.connection_id,this.insertionId=t.insertion_id,this.dspCampaignId=t.dsp_campaign_id,this.dspCreativeId=t.dsp_creative_id,this.scenarioId=t.scenario_id,this.formatName=new i.a(t.settings.values.placementFormat),this.pageId=t.settings.values.pageId,this.placementId=t.settings.values.placementId,this.threshold=new a.a(t.settings.values.threshold),this.volume=new s.a(t.settings.values.volume),this.animations=new c.a(t.settings.values.animations,this.formatName,this.placementId),this.adType=new u.a(t.settings.values.adType),this.vtpEvent=new d.a(t.settings.values.vtpEvent),this.smartPosition=new l.a(t.settings.behaviors.smartPosition,this.insertionId,this.connectionId,this.formatName),this.sticky=new p.a(t.settings.behaviors.sticky,this.formatName),this.closeButton=new h.a(t.settings.components.closeButton),this.soundButton=new f.a(t.settings.components.soundButton),this.callButton=new g.a(t.settings.components.callButton),this.timer=new m.a(t.settings.components.timer),this.progressBar=new v.a(t.settings.components.progressBar),this.label=new y.a(t.settings.components.label),this.credits=new b.a(t.settings.components.credits,this.smartPosition,this.formatName),this.endScreen=new A.a(t.settings.components.endScreen),this.brandLogo=new E.a(t.settings.components.brandLogo,t.settings.values.brandLogoUrl),this.slider=new w.a(t.settings.components.slider),this.launch=new _.a(t.settings.behaviors.launch,this.placementId),this.videoStart=new C.a(t.settings.behaviors.videoStart,this.formatName),this.soundStart=new S.a(t.settings.behaviors.soundStart),this.videoPause=new T.a(t.settings.behaviors.videoPause),this.soundMute=new O.a(t.settings.behaviors.soundMute),this.playerClick=new I.a(t.settings.behaviors.playerClick),this.end=new P.a(t.settings.behaviors.end),this.callbacks=new k.a(t.callbacks,this.volume),this.allowedPlayer=new L.a(t.settings.values.allowedPlayer,this.formatName,this.smartPosition,this.placementId)}return t}();e.a=x},function(t,e,n){var i=n(14),o=n(35),r=n(13),a=n(0),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(e,n){var i=t.call(this,"Vast")||this;return i.type=e.type,i.content=e.content,i.pid=n,i.appendPID(),i.checkValue(),i}return s(e,t),e.prototype.checkValue=function(){if(!Object(a.isString)(this.type)||!e.VALUES[this.type.toUpperCase()])throw new o.a(o.a.OPTION_VAST_INVALID);if(!Object(a.isString)(this.content))throw new o.a(o.a.OPTION_VAST_INVALID)},e.prototype.isVastUrl=function(){return this.type===e.VALUES.VASTURL},e.prototype.isVastXml=function(){return this.type===e.VALUES.VASTXML},e.prototype.isDisplayUrl=function(){return this.type===e.VALUES.DISPLAYURL},e.prototype.isDisplayXml=function(){return this.type===e.VALUES.DISPLAYXML},e.prototype.getContent=function(){return this.content},e.prototype.extractInsertionId=function(){var t,e="";if(this.isVastUrl()){var n=/(get\/|[&\?]gid=|preview\/)(\d+)/;t=this.content.match(n),t&&(e=t[2])}return e},e.prototype.appendPID=function(){var t=Object(r.parse)(this.content);this.isVastUrl()&&"a.teads.tv"===t.hostname&&this.pid&&(this.content+=-1===this.content.indexOf("?")?"?":"&",this.content+="pid="+this.pid)},e.VALUES={VASTURL:"VastUrl",VASTXML:"VastXml",DISPLAYURL:"DisplayUrl",DISPLAYXML:"DisplayXml"},e}(i.a);e.a=c},function(t,e,n){var i=n(14),o=n(35),r=n(0),a=n(3),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"Threshold")||this;return i.value=n,Object(a.isFacebookIA)()&&Object(r.isNumber)(i.value)&&i.value>0&&(i.value=50),i.checkValue(),i}return s(e,t),e.prototype.checkValue=function(){if(!Object(r.isNumber)(this.value)||this.value<=0||this.value>100)throw new o.a(o.a.OPTION_THRESHOLD_MISSING)},e.prototype.get=function(){return this.value},e.DEFAULT=null,e}(i.a);e.a=c},function(t,e,n){var i=n(14),o=n(3),r=n(20),a=n(0),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"Volume")||this;return r.isGreaterOrEqual(Object(o.getIosVersion)(),"10")?i.value=e.DEFAULT_IOS10:i.value=a.extend(e.DEFAULT,n),i.checkValue(),i}return s(e,t),e.prototype.checkValue=function(){a.containsKeys(e.VALUES,this.value)||(this.value=e.DEFAULT)},e.prototype.getMain=function(){return this.value.main},e.VALUES={MAIN:"main"},e.DEFAULT={main:.35},e.DEFAULT_IOS10={main:1},e}(i.a);e.a=c},function(t,e,n){var i=n(14),o=n(2),r=n(0),a=n(44),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(n,i,o){void 0===n&&(n=e.DEFAULT),void 0===i&&(i=null),void 0===o&&(o=null);var s=t.call(this,"Animations")||this;return s.value=r.extend(e.DEFAULT,n),a.FORCE_EXPAND_ANIMATION_LIST.test(String(o))?s.value.expand=.5:i&&i.isInBoard()&&(s.value=e.DEFAULT_INBOARD),s.checkValue(),s}return s(e,t),e.prototype.checkValue=function(){r.containsKeys(e.VALUES,this.value)||(this.value=e.DEFAULT)},e.prototype.setExpandDuration=function(t){var n=this;o.forEach(e.PROPERTIES,function(e){t.style.setProperty(e,n.value.expand+"s")})},e.prototype.setCollapseDuration=function(t){var n=this;o.forEach(e.PROPERTIES,function(e){t.style.setProperty(e,n.value.collapse+"s")})},e.prototype.getExpandDuration=function(){return this.value.expand},e.prototype.getCollapseDuration=function(){return this.value.collapse},e.PROPERTIES=["-webkit-transition-duration","-o-transition-duration","-moz-transition-duration","transition-duration"],e.VALUES={EXPAND:"expand",COLLAPSE:"collapse"},e.DEFAULT={expand:0,collapse:.5},e.DEFAULT_INBOARD={expand:.5,collapse:.5},e}(i.a);e.a=c},function(t,e,n){var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"AdType")||this;return i.value=n,i.checkValue(),i}return r(e,t),e.prototype.checkValue=function(){Object(o.isString)(this.value)&&e.VALUES[this.value]||(this.value=e.DEFAULT)},e.prototype.get=function(){return this.value},e.prototype.isVideo=function(){return this.value===e.VALUES.video},e.prototype.isDisplay=function(){return this.value===e.VALUES.display},e.prototype.isNative=function(){return this.value===e.VALUES.native},e.VALUES={video:"video",display:"display",native:"native"},e.DEFAULT=e.VALUES.video,e}(i.a);e.a=a},function(t,e,n){var i=n(14),o=n(0),r=n(6),a=n(152),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},u=function(t){function e(n){void 0===n&&(n="");var i=t.call(this,"VtpEvent")||this;if(i.event=e.DEFAULT_EVENT,i.offset=e.DEFAULT_OFFSET,Object(o.isString)(n)){var s=c(n.split("-"),2),u=s[0],d=s[1];u&&a.a[u]&&(i.event=a.a[u]),i.event===r.a.AdRemainingTimeChange&&(i.offset=parseInt(d,10))}return i.checkValue(),i}return s(e,t),e.prototype.checkValue=function(){Object(o.isString)(this.event)&&Object(o.isNumber)(this.offset)&&!isNaN(this.offset)||(this.event=e.DEFAULT_EVENT,this.offset=e.DEFAULT_OFFSET)},e.prototype.getEvent=function(){return this.event},e.prototype.getOffset=function(){return this.offset},e.DEFAULT_EVENT=null,e.DEFAULT_OFFSET=0,e}(i.a);e.a=u},function(t,e,n){var i=n(14),o=n(0),r=n(2),a=n(3),s=n(20),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(t){function e(n,i,r,c){void 0===c&&(c=null);var u=t.call(this,"SmartPosition")||this;return u.insertionIdsForcedSmart=[168832,168841,168997,168994,168932,168931,168912,170214,170543,173090,174727,179060,165570,165569,165400,158386,158385,158384,158383,158382,158380,158379,158378,158377,158376,158375,158374,158373,158372,158371,158370,162268,158369,158368,158367,158366,158365,179756,180465,161147,172785,168949,169797,171213,173593,173635,176890,176895,176940,178464,179771,180368,178998,180918,180955,181009,181012,180763,181796,181798,181922,181926,181929,181656,183993,183994,184064,185424,185425,185443,185441,185615,186228,187087,187092,187131,190483,191902,191469,193076,195606,200392,200655,200697,201138,201150,197702,201588,201589,201603,205333,205317,199909,199900,198587,202307,201978,207094,207600,208142,209290,209292,211411,211418,211421,211422,211423,211424,211426,211614,211957,212504,214491,214493,213222,213221,212083,212081,215331,215324,216443,216887,216889,216992,216993,217010,217121,217853,217857,217800,219150,219151,219154,219155,219186,217833,213989,223008,223010,223011,221182,222328,222331,222339,222341,224761,224758,225039,225638,226336,227892,227893,229091,229252,229254,229256,230504,231990,232222,232583,232577,232726,234314,234321,231494,231986,234608,232824,238468,238582,238937,238936,238935,238934,238933,238932,239298,239297,239296,239293,239300,240820,241413,241024,241023,241536,241539,241541,241543,241999,235758,235756,232590,232589,243659,243708,243709,244049,244054,244524,245746,245744,245739,246119,246127,219307,245796,245797,246684,246687,246818,241821,246057,246387,246386,246385,246384,246383,246382,246143,248299,248298,248821,248928,248926,248927,232682,232698,247747,249471,249473,249475,249476,249503,249506,249738,250105,250106,184064,250840,250842,250852,250931,250933,250942,250944,250946,250948,250949,250950,250685,250689,250692,250694,248857,248856,251154,251159,251318,251320,251324,251326,251328,251330,251333,251335,251807,245687,245697,246813,249865,247893,247898,247907,251943,251966,251968,251970,251971,251972,252232,252664,252676,252914,253018,253019,242720,243228,253276,244403,244404,248984,249866,246615,253277,246619,253284,246585,253292,253293,253296,253298,253299,253300,253317,253316,253396,253415,253416,253414,253524,253947,253946,253945,253944,253943,253942,253940,253939,254005,253607,254426,246155,255039,255227,255225,255220,255218,255306,255307,255312,255708,255709,255710,255711,255856,250861,250865,250379,255968,256090,256180,255716,256200,256198,245701,246815,244406,244409,246817,256335,256336,256337,256338,256340,247894,247899,256429,256471,256557,256558,255377,256698,256706,256707,256708,256770,257100,257289,257288,257287,257284,256047,257282,248985,257945,249867,248987,257946,249868,248988,257949,249870,246616,257953,247895,246620,257954,247901,258218,258219,258220,258221,258288,258289,258290,253584,253583,258829,258837,258840,258842,258844,259013,258616,258622,258625,258628,258630,258632,258845,259014,259015,259707,259243,260056,260058,260059,260245,260753,260755,260756,260757,260042,261543,261168,262052,261302,262482,262511,262554,260312,260305,256180,255947,255716,263467,263469,263473,263789,263744,263746,263646,263969,264172,264174,264184,264193,264197,264199,175757,263425,265065,265067,265083,265106,265105,265094,265092,264418,265301,265304,265305,265311,265312,265313,265431,263425,265701,265713,78727,266019,266021,265917,265919,265929,265932,266201,265750,261618,264861,264863,266324,266325,266511,266525,266526,266531,266797,266846,266851,267370,267369,267368,267367,267366,267365,267462,267504,267503,268158,268195,268196,268197,268198,268199,268200,268201,268202,268203,268204,268205,268206,268207,268208,268209,268258,268235,267649,267646,267645,267626,267625,267623,267609,267605,267604,267591,267590,267589,267568,267565,267562,267516,267514,267513,268556,268555,267781,267380,267381,268661,268657,268732,268737,268777,268803,269028,269029,269030,269031,269032,269033,269034,269035,269036,269037,269038,269039,265151,266018,266020,176064,269673,269669,269926,269931,269967,267279,267280,267281,267282,267283,267285,266584,266585,266589,266591,266593,266597,266602,266604,266606,266608,270141,270221,270228,270229,269800,270366,270544,270545,270546,270755,270756,270817,269365,268851,267503,267504,267929,267930,271234,271233,271159,269537,80320,271747,271692,271572,270504,270503,259525,254735,268432,268431,268430,268429,265262,272533,272556,272555,272569,272567,272566,272565,272564,272563,272522,273347,266964,272500,270864,81925,273210,273216,273217,273222,274134,274186,274188,274190,273699,273703,274053,274045,273689,273687,274437,274439,274254,274526,274768,274767,274766,274765,274764,274763,274762,274761,274760,274776,274778,274780,272588,272589,272590,272592,275124,275564,276281,276290,276289,276285,276284,276318,276317,276113,276112,276613,276961,267960,277265,277299,277122,277121,277120,277119,277741,277742,278217,278201,278202,272312,272311,272310],u.connectionIdsForcedSmart=[39264,39265,39266,39140,43341,43486,43634,43638,43639,20709,25605,34011,34766,4783,43364,43357,43361,44094,44289,44292,44295,44298,44301,44305,43532,43531,43530,45061,45062,45067,45066,45065,45064,45168,45612,45613,45614,45615,45617,45619,45620,45621,45623,45627,45632,45847,45991,45994,46002,46141,46142,46227,46228,46235,46407,46408,46409,46407,46529,46657,45184,45185,46517,46776,46777,46778,46779,47090,47092,47103,47259,47257,47260,47287,47292,41437,48704,49078,49076,49895,50201,50219,50220,50222,50226,50229,50230,51426,47290,53394,49069,53406,45630,53643,53644,53650,48602,55457,55458,55459,55462,55466,55467,55468,55469,55470,55477,47290,55696,55698,58841,58844,60320,60351,34861,28299,36966,60645,60669,60670,61083,61239,61385,61387,61389,61391,61393,63278,63277,63476,63540,63541,63559,63560,63562,63563,63582,63581,63610,63611,63721,63722,63738,63739,63796,63828,63833,63906,63907,63934,14386,64127,64126,64191,51390,64639,48410,41380,41379,41378,36728,28342,41240,30242,33040,65043,65048,65060,65061,65062,34438,65292,65295,65980,65979,64732,64731,41111,65434,48203,20971,46812,66276,66516,66541,66655,66654,66653,66800,66801,66802,67084,68423,68666,68665,68663,68659,68661,68662,68675,68676,68677,68678,68679,68680,69779,69763,69846,46107,38768,46106,50176,69995,69996,69997,69998,70056,70058,70059,70063,70064,70065,70071,70072,70073,70098,70161,70162,70165,70166,71463,71643,71646,71689,71839,71946,72049,72065,72066,72067,72068,63555,72238,72214,72219,37325,37324,63551,63552,63553,63557,67008,67010,66816,66818,66819,66252,66246,66247,66191,66249,66244,66250,36854,72397,73136,73135,72531,74259,74506,74507,75072,75073,75074,75757,72111,76269,76270,76276,76438,76435,76499,76510,76550,76597,76600,76774,76775,76968,77226,77231,77235,77236,77238,77373,77350,77500,77503,77505,77582,77585,77589,77593,77596,77609,77613,77598,77600,77601,77602,77603,77604,77606,77607,77608,77623,77640,77643,77648,77651,77653,77666,77668,77671,63923,46058,44077,77618,77619,77620,77621,77622,77624,77625,77626,77627,77628,77629,77630,77631,77632,77633,77635,77636,77637,77638,77639,77927,77933,78017,78033,78024,78023,78349,77368,78393,78394,78527,78052,77392,78715,78332,78741,78769,78784,78815,78814,78813,78812,78929,79049,79064,77326,79212,79238,79326,79744,79539,79544,79546,79548,79550,79833,79837,79839,79841,79843,79845,79849,79851,79853,79864,79875,79879,79886,79884,79888,79596,79598,79600,79602,79604,79607,79867,79869,79871,79873,79877,79881,79541,79835,79847,77557,79979,80004,80002,80046,80137,80022,80024,51448,40407,78769,80023,80025,80028,80029,80116,80159,80161,80256,79714,80385,80386,80387,80388,80389,80390,41240,41724,41726,41740,41744,41752,41785,41786,64232,78133,80437,80509,80511,80514,80516,80512,80517,80520,80519,80521,80523,80524,80525,80414,80537,80203,80750,73180,72172,82922,84565,84573,84679,81049,81046,84698,84684,46107,84817,84802,84826,84827,81111,85194,85402,85403,85471,85942,85518,85519,85525,85526,85553,85669,85492,85775,85777,85779,85780,81120,85256,85903,85900,85904,86030,86027,86028,86035,86059,86060,86103,86122,86149,86151,86195,86248,86296,86437,86439,86440,86442,84945,84943,86080,86082,86584,85664,86668,86670,85249,80730,85318,88596,88719,88720,88784,88785,88612,88761,88764,88762,88765,88766,88769,88770,88797,88701,89028,89029,89059,89054,89529,90715,90716,88952,46058,63923,85316,85318,90738,91293,93833,93836,93839,93867,93865,93856,93853,41354,93932,93936,93988,93989,94009,94010,94094,94097,94098,94099,94100,94101,94102,94103,94104,94105,94128,143422,143534,85519,143581,143583,143586,76791,170803,170925,171044,171071,171076,171075,29318,171216,171177,171293,171314,171351,171353,172406,172404,172445,172446,172450,172467,170925,172505,172685,81120,172729,172730,172769,172987,172989,172990,173007,173026,173027,173028,173029,172889,172502,173114,173293,173329,173330,173331,173357,173418,173453,41378,41379,64639,173465,173458,170870,86340,172913,173549,173562,173293,173641,173706,173549,173781,173782,173802,173824,173826,173827,173828,173829,173830,173831,173832,173833,173834,173835,173836,173837,173838,173866,173910,173911,173915,173991,173802,173998,173997,173507,173473,173472,173250,173201,174243,173503,174211,174215,173503,174211,174215,174003,173326,174452,174471,256484,256209,174482,174536,174565,174619,174621,174647,174728,173293,173549,174705,174848,174846,174910,174917,174918,174952,174720,175034,174232,175178,175179,175180,175181,175195,175196,175197,175198,175058,174908,175237,175238,175313,175343,175346,175375,175408,175424,175468,171152,175480,175434,175433,175476,175367,172592,175686,175692,175779,175794,175988,175989,78919,66562,70189,174130,174112,175111,86286,176122,176123,175757,176075,176225,176226,176192,176065,175767,176500,176513,176514,176518,173875,176639,175573,176695,176697,175794,176789,176790,176821,176837,176664,176861,176862,176898,175509,176481,176482,176571,176572,176573,176192,176899,177112,177175,177246,177247,177270,177374,176930,176935,177412,177411,177648,177645,174558,177676,175944,175943,175941,177725,177742,177937,177938,177938,177937,177951,173992,173802,177962,178049,178080,178168,178190,178193,178552,178560,178569,178571,178849,178903,178904,178898,178807,178944,178633,178977,178566,40407,179191,179192,179254,178751,176899,178964,178969,178970,178971,178973,178978,178979,178980,178981,178982,178983,178984,178985,179139,179259,179260,179261,179262,178961,178960,177645,179395,179291,179391,179404,179428,179441,179447,179460,177216,177223,177070,179655,179658,179712,179710,179709,179708,179689,179719,179813,179814,179815,179821,179824,179833,179834,179852,179853,179854,179678,179880,179904,179903,179902,179901,179900,179898,179912,179980,180037,180092,180093,180094,180095,180097,180117,180120,180136,180140,180151,180182,180458,180463,180464,180465,180333,180543,180540,94100,94101,94102,94103,94104,77635,77631,180482,180484,180485,180486,180487,180488,180588,180648,180649,180650,180651,180652,180687,179816,179817,180721,180737,27794,177564,180832,180836,180839,180840,180841,180842,180872,180333,180889,180918,180947],u.insertionId=i,u.connectionId=r,u.value=o.extend(e.DEFAULT,n),u.formatName=c,(s.isLowerOrEqual(a.getIosVersion(),e.MIN_IOS_VERSION)||a.isAmp()||a.isFacebookIA()||a.isIABSafeFrame())&&(u.value.top=!1,u.value.corner=!1),u.checkValue(),u}return c(e,t),e.prototype.checkValue=function(){o.containsKeys(e.VALUES,this.value)||(this.value=e.DEFAULT)},e.prototype.isEnabled=function(){return!!(window.DO_BYPASS_DO_FORCE_SMART&&this.formatName&&this.formatName.isInRead())||(this.value.mustBypassWhitelist?this.value.corner||this.value.top:(r.includes(this.insertionIdsForcedSmart,this.insertionId)||r.includes(this.connectionIdsForcedSmart,this.connectionId))&&!this.value.mustBypassWhitelist&&(this.value.corner||this.value.top))},e.prototype.isCorner=function(){return this.value.corner&&this.isEnabled()},e.prototype.isTop=function(){return this.value.top&&this.isEnabled()&&!a.isDesktop()},e.prototype.getValue=function(){return this.value},e.prototype.setValue=function(t){this.value=t,this.checkValue()},e.MIN_IOS_VERSION="7",e.VALUES={top:"top",corner:"corner"},e.DEFAULT={top:!1,corner:!1,mustBypassWhitelist:!1},e}(i.a);e.a=u},function(t,e,n){var i=n(14),o=n(3),r=n(20),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(e,n){void 0===n&&(n=null);var i=t.call(this,"Sticky")||this;return i.value=e,i.formatName=n,i.checkValue(),i}return a(e,t),e.isCompatibleWithContext=function(){return(o.isMobile()||o.isTablet())&&(!o.isIos()||function(){return r.isGreaterThan(o.getIosVersion(),e.MIN_IOS_VERSION)}())&&!o.isAmp()&&!o.isFacebookIA()&&!o.isIABSafeFrame()},e.prototype.getValue=function(){return this.value},e.prototype.setValue=function(t){this.value=t,this.checkValue()},e.prototype.isEnabled=function(){return!0===this.value},e.prototype.checkValue=function(){this.value=!!(this.formatName&&this.formatName.isInBoard()&&e.isCompatibleWithContext()&&!1!==this.value)},e.MIN_IOS_VERSION="7",e}(i.a);e.a=s},function(t,e,n){var i=n(14),o=n(0),r=n(3),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(n){var i=t.call(this,"CloseButton")||this;return i.getValueFromVast=!n||o.isUndefined(n.display),i.value=o.extend(e.DEFAULT,n),Object(r.isFacebookIA)()&&(i.getValueFromVast=!1,i.value={display:!1,countdown:0}),i.checkValue(),i}return a(e,t),e.prototype.checkValue=function(){o.containsKeys(e.VALUES,this.value)?(this.value.countdown=+this.value.countdown,o.isNumber(this.value.countdown)||(this.value.countdown=0)):this.value=e.DEFAULT},e.prototype.isEnabled=function(){return this.value.display},e.prototype.getCountdown=function(){return this.value.countdown},e.prototype.hasToGetValueFromVast=function(){return this.getValueFromVast},e.VALUES={DISPLAY:"display",COUNTDOWN:"countdown"},e.DEFAULT={display:!0,countdown:0},e}(i.a);e.a=s},function(t,e,n){var i=n(3),o=n(0),r=n(4),a=n(2),s=n(14),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(t){function e(n){var i=t.call(this,"SoundButton")||this,o=e.sanitize(n),r=o.display,a=o.countdown,s=o.type;return i.isEnabled=r,i.countdown=a,i.type=s,i}return c(e,t),e.sanitize=function(t){return r.b.of(t).map(function(t){return o.extendWithoutNull(e.defaultValues,t)}).filter(o.matchesCheckers(e.checkers)).filter(e.isContextAllowed).getOrElse(function(){return e.defaultValues})},e.prototype.checkValue=function(){},e.prototype.toString=function(){return"SoundButton("+this.isEnabled+", "+this.countdown+", "+this.type+")"},e.defaultValues={display:!0,countdown:0,type:"mute"},e.checkers={display:o.isBoolean,countdown:o.isNumber,type:function(t){return a.includes(["mute","equalizer"],t)}},e.isContextAllowed=function(){return!(Object(i.isMobile)()||Object(i.isTablet)()||Object(i.isSafari11Plus)()||Object(i.isChrome66Plus)())},e}(s.a);e.a=u},function(t,e,n){var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"CallButton")||this;return i.value=o.extend(e.DEFAULT,n),i.checkValue(),i}return r(e,t),e.prototype.checkValue=function(){o.containsKeys(e.VALUES,this.value)||(this.value=e.DEFAULT)},e.prototype.isEnabled=function(){return this.value.display},e.prototype.getCountdown=function(){return this.value.countdown},e.prototype.getText=function(){return this.value.text},e.VALUES={DISPLAY:"display",COUNTDOWN:"countdown",TEXT:"text"},e.DEFAULT={display:!0,countdown:3,text:"Learn More"},e}(i.a);e.a=a},function(t,e,n){var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"Timer")||this;return i.value=n,i.checkValue(),i}return r(e,t),e.prototype.checkValue=function(){Object(o.isBoolean)(this.value)||(this.value=e.DEFAULT)},e.prototype.isEnabled=function(){return this.value},e.DEFAULT=!1,e}(i.a);e.a=a},function(t,e,n){var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"ProgressBar")||this;return i.value=n,i.checkValue(),i}return r(e,t),e.prototype.checkValue=function(){Object(o.isBoolean)(this.value)||(this.value=e.DEFAULT)},e.prototype.isEnabled=function(){return this.value},e.DEFAULT=!0,e}(i.a);e.a=a},function(t,e,n){var i=n(14),o=n(229),r=n(3),a=n(0),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"Label")||this;return i.value=a.extend(e.DEFAULT,n),r.isFacebookIA()&&(i.value.display=!1),i.checkValue(),i}return s(e,t),e.getTranslation=function(){var t=r.getLanguage(),e=new o.a(t).translate("label");return e||(e=new o.a(t.substr(0,2)).translate("label")),e||(e=new o.a("en").translate("label")),e},e.prototype.checkValue=function(){a.containsKeys(e.VALUES,this.value)||(this.value=e.DEFAULT)},e.prototype.getHTML=function(){return this.value.html},e.prototype.getText=function(){return this.value.text},e.prototype.isEnabled=function(){return this.value.display},e.VALUES={DISPLAY:"display",TEXT:"text",HTML:"html"},e.TEXT=e.getTranslation(),e.DEFAULT={display:!0,text:e.TEXT,html:e.TEXT},e}(i.a);e.a=c},function(t,e,n){n.d(e,"a",function(){return i});var i=function(){function t(t){this.lang=t,this.translations={ar:{label:"إعلان"},cs:{label:"REKLAMA"},de:{label:"WERBUNG"},da:{label:"ANNONCE"},en:{label:"ADVERTISING"},es:{label:"PUBLICIDAD"},fr:{label:"PUBLICITÉ"},fi:{label:"MAINONTA"},hr:{label:"OGLAS"},hu:{label:"HIRDETÉS"},id:{label:"ADVERTISING"},it:{label:"PUBBLICITÀ"},ja:{label:"広告"},jamobile:{label:"タップして音声が流れます"},jamobilePR:{label:"[PR]タップして音が流れます"},ko:{label:"광고"},kr:{label:"광고"},mo:{label:"ADVERTISING"},nl:{label:"ADVERTENTIE"},no:{label:"ANNONSERING"},pl:{label:"REKLAMA"},pt:{label:"PUBLICIDADE"},ro:{label:"PUBLICITATE"},ru:{label:"РЕКЛАМА"},sr:{label:"ОГЛАШАВАЊЕ"},sk:{label:"REKLAMA"},sl:{label:"OGLAŠAVANJE"},sv:{label:"ANNONS"},sw:{label:"REKLAM"},tr:{label:"ILAN"},zh:{label:"广告"},"zh-hk":{label:"廣告"},"zh-tw":{label:"廣告"}}}return t.prototype.translate=function(t){return(this.translations[this.lang]||{})[t]},t}()},function(t,e,n){var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n,i,r,a){void 0===r&&(r=null),void 0===a&&(a=null);var s=t.call(this,"Credits")||this,c=r&&r.isInBoard();return s.value=o.extend(c?e.DEFAULT_INBOARD:e.DEFAULT_INREAD,n),s.formatName=r,(a&&a.isDisplayXml()||i.isEnabled())&&(s.value.display=!1),s.checkValue(),s}return r(e,t),e.prototype.checkValue=function(){o.containsKeys(e.VALUES,this.value)||(this.value=e.DEFAULT_INREAD)},e.prototype.isEnabled=function(){return this.value.display},e.prototype.getText=function(){return this.value.text},e.prototype.getLink=function(){return this.value.link},e.VALUES={DISPLAY:"display",TEXT:"text",LINK:"link"},e.DEFAULT_INREAD={display:!0,text:"[inRead] invented by Teads",link:"https://teads.tv/inread-outstream/"},e.DEFAULT_INBOARD={display:!0,text:"[inBoard] invented by Teads",link:"https://teads.tv/inread-outstream/"},e}(i.a);e.a=a},function(t,e,n){var i=n(14),o=n(3),r=n(0),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"EndScreen")||this;return i.value=r.extend(e.DEFAULT,n),(Object(o.isAmp)()||Object(o.isFacebookIA)())&&(i.value.display=!0,i.value.autoClose=!1),!1===i.value.autoClose&&(i.value.countdown=0),i.checkValue(),i}return a(e,t),e.prototype.checkValue=function(){r.containsKeys(e.VALUES,this.value)||(this.value=e.DEFAULT)},e.prototype.isEnabled=function(){return this.value.display},e.prototype.getCountdown=function(){return this.value.countdown},e.prototype.getCallButton=function(){return this.value.callButton},e.prototype.getReplayButton=function(){return this.value.replayButton},e.prototype.getAutoClose=function(){return this.value.autoClose},e.VALUES={DISPLAY:"display",CALLBUTTON:"callButton",REPLAYBUTTON:"replayButton",AUTOCLOSE:"autoClose",COUNTDOWN:"countdown",TYPE:"type"},e.DEFAULT={display:!0,callButton:{text:"Learn More",type:"learnMore"},replayButton:{text:"Replay"},autoClose:!1,countdown:0,type:"simple"},e}(i.a);e.a=s},function(t,e,n){var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n,i){void 0===n&&(n=null),void 0===i&&(i="");var r=t.call(this,"BrandLogo")||this,a={display:!!n&&n.display,url:i};return r.value=o.extend(e.DEFAULT,a),r.checkValue(),r}return r(e,t),e.prototype.checkValue=function(){o.containsKeys(e.VALUES,this.value)||(this.value=e.DEFAULT)},e.prototype.getUrl=function(){return this.value.url},e.prototype.isEnabled=function(){return this.value.display},e.VALUES={DISPLAY:"display",URL:"url"},e.DEFAULT={display:!1,url:""},e}(i.a);e.a=a},function(t,e,n){var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(e){var n=t.call(this,"SmartPosition")||this;return n.value=e,n.checkValue(),n}return r(e,t),e.prototype.checkValue=function(){o.containsKeys(e.VALUES,this.value)||(this.value=e.DEFAULT)},e.prototype.closeButtonEnabled=function(){return this.value.closeButtonDisplay},e.VALUES={closeButtonDisplay:"closeButtonDisplay"},e.DEFAULT={closeButtonDisplay:!1},e}(i.a);e.a=a},function(t,e,n){var i=n(14),o=n(3),r=n(0),a=n(44),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(n,i){void 0===n&&(n=e.DEFAULT),void 0===i&&(i=null);var r=t.call(this,"Launch")||this;return a.FORCE_EXPAND_ANIMATION_LIST.test(String(i))?r.value=e.VALUES.THRESHOLD:Object(o.isAmp)()||Object(o.isFacebookIA)()?r.value=e.VALUES.AUTO:r.value=n,r.checkValue(),r}return s(e,t),e.prototype.checkValue=function(){Object(r.isString)(this.value)&&e.VALUES[this.value.toUpperCase()]||(this.value=e.DEFAULT)},e.prototype.isAuto=function(){return this.value===e.VALUES.AUTO},e.prototype.isThreshold=function(){return this.value===e.VALUES.THRESHOLD},e.VALUES={AUTO:"auto",THRESHOLD:"threshold"},e.DEFAULT=e.VALUES.AUTO,e}(i.a);e.a=c},function(t,e,n){var i=n(14),o=n(3),r=n(0),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"SoundStart")||this;return i.value=r.extend(e.DEFAULT,n),!Object(o.isMobile)()&&!Object(o.isTablet)()||Object(o.isSDK)()||(i.value.type="mute"),i.checkValue(),i}return a(e,t),e.prototype.checkValue=function(){r.containsKeys(e.VALUES,this.value)||(this.value=e.DEFAULT)},e.prototype.isMute=function(){return this.value.type===e.VALUES_TYPE.MUTE},e.prototype.isUnmute=function(){return this.value.type===e.VALUES_TYPE.UNMUTE},e.prototype.isCountdown=function(){return this.value.type===e.VALUES_TYPE.COUNTDOWN},e.prototype.getCountdown=function(){return this.value.countdown},e.prototype.getType=function(){return this.value.type},e.VALUES={TYPE:"type",COUNTDOWN:"countdown"},e.VALUES_TYPE={MUTE:"mute",UNMUTE:"unmute",COUNTDOWN:"countdown"},e.DEFAULT={type:"mute",countdown:0},e}(i.a);e.a=s},function(t,e,n){var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n){void 0===n&&(n=e.VALUES.THRESHOLD);var i=t.call(this,"VideoPause")||this;return i.value=n,i.checkValue(),i}return r(e,t),e.prototype.checkValue=function(){Object(o.isString)(this.value)&&e.VALUES[this.value.toUpperCase()]||(this.value=e.DEFAULT)},e.prototype.isNo=function(){return this.value===e.VALUES.NO},e.prototype.isThreshold=function(){return this.value===e.VALUES.THRESHOLD},e.prototype.getValue=function(){return this.value},e.prototype.setToNo=function(){return this.value=e.VALUES.NO},e.VALUES={NO:"no",THRESHOLD:"threshold"},e.DEFAULT=e.VALUES.THRESHOLD,e}(i.a);e.a=a},function(t,e,n){var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"SoundMute")||this;return i.value=n,i.checkValue(),i}return r(e,t),e.prototype.checkValue=function(){Object(o.isString)(this.value)&&e.VALUES[this.value.toUpperCase()]||(this.value=e.DEFAULT)},e.prototype.isNo=function(){return this.value===e.VALUES.NO},e.prototype.isThreshold=function(){return this.value===e.VALUES.THRESHOLD},e.VALUES={NO:"no",THRESHOLD:"threshold"},e.DEFAULT=e.VALUES.THRESHOLD,e}(i.a);e.a=a},function(t,e,n){var i=n(14),o=n(3),r=n(0),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"PlayerClick")||this;return i.value=n,Object(o.isDesktop)()&&(i.value=e.VALUES.CLICK),i.checkValue(),i}return a(e,t),e.prototype.checkValue=function(){Object(r.isString)(this.value)&&e.VALUES[this.value.toUpperCase()]||(this.value=e.DEFAULT)},e.prototype.isClick=function(){return this.value===e.VALUES.CLICK},e.prototype.isFullscreen=function(){return this.value===e.VALUES.FULLSCREEN},e.VALUES={CLICK:"click",FULLSCREEN:"fullscreen"},e.DEFAULT=Object(o.isDesktop)()?e.VALUES.CLICK:e.VALUES.FULLSCREEN,e}(i.a);e.a=s},function(t,e,n){var i=n(14),o=n(3),r=n(0),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"End")||this;return i.value=Object(o.isAmp)()?e.VALUES.ENDSCREEN:n,i.checkValue(),i}return a(e,t),e.prototype.checkValue=function(){Object(r.isString)(this.value)&&e.VALUES[this.value.toUpperCase()]||(this.value=e.DEFAULT)},e.prototype.isCollapse=function(){return this.value===e.VALUES.COLLAPSE},e.prototype.isEndScreen=function(){return this.value===e.VALUES.ENDSCREEN},e.VALUES={COLLAPSE:"collapse",ENDSCREEN:"endscreen"},e.DEFAULT=e.VALUES.ENDSCREEN,e}(i.a);e.a=s},function(t,e,n){var i=n(14),o=n(0),r=n(6),a=n(59),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(n,i){void 0===n&&(n=e.DEFAULT);var o=t.call(this,"Callbacks")||this;return o.callbacks=n,o.volume=i,o.checkValue(),o}return s(e,t),e.prototype.checkValue=function(){o.isObject(this.callbacks)||(this.callbacks=e.DEFAULT)},e.prototype.trigger=function(t,e,n){if(this.last===t)return this.logger.debug("Callbacks already triggered",t),!1;if(t===r.a.AdVolumeChange&&e&&(e.getVolume()===this.volume.getMain()?this.trigger("unmute"):e.isMuted()&&this.trigger("mute")),t===r.a.AdExpandedChange&&n&&(n.isActive()?this.trigger("enterFullscreen"):this.trigger("exitFullscreen")),o.isFunction(this.callbacks[t]))try{return this.callbacks[t](),this.last=t,!0}catch(e){a.a.sendError({message:'The "'+t+'" callback threw an error'}),this.logger.error('the "'+t+'" callback threw an error:',e)}else this.callbacks[t]&&this.logger.error('the "'+t+'" callback is not a function:',this.callbacks[t]);return!1},e.DEFAULT={},e}(i.a);e.a=c},function(t,e,n){var i=n(14),o=n(3),r=n(20),a=n(92),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(n,i,o,r){void 0===r&&(r=null);var s=t.call(this,"AllowedPlayer")||this;return s.formatName=i,s.smartPosition=o,s.placementId=r,s.isCustomContext()&&s.isCustomOs()?s.setValue(a.b.CANVAS):s.setValue(e.VALUES[n]),s.checkValue(),s}return s(e,t),e.prototype.checkValue=function(){var t=!1;for(var n in e.VALUES)e.VALUES.hasOwnProperty(n)&&(t=t||this.value===e.VALUES[n]);t||(this.value=e.DEFAULT)},e.prototype.getValue=function(){return this.value},e.prototype.setValue=function(t){this.value=t,o.cacheCanvasUsed(this.value===a.b.CANVAS)},e.prototype.isCustomContext=function(){return o.isAmp()||o.isIABSafeFrame()||o.isFacebookIA()||this.formatName.isInBoard()&&this.smartPosition.isEnabled()},e.prototype.isCustomOs=function(){return o.isAndroid()&&!r.isGreaterOrEqual(o.getChromeVersion(),"53")||o.isIos()&&!o.isWhiteListedIos10Safari(String(this.placementId))},e.VALUES={html5:a.b.HTML5,canvas:a.b.CANVAS,any:a.b.ANY},e.DEFAULT=a.b.ANY,e}(i.a);e.a=c},,function(t,e,n){function i(t){var e;return t&&t.extensions&&t.extensions.length>0&&a.forEach(t.extensions,function(t){t.type===s&&(e=o(t.content))}),e}function o(t){try{return JSON.parse(t)}catch(t){new r.a("ITeadsContextExtension").error(s+" extension throw an exception",t)}}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"EXTENSION_TYPE",function(){return s}),e.get=i,e.parse=o;var r=n(1),a=n(2),s="teads-context"},function(t,e,n){n.d(e,"a",function(){return y});var i=n(4),o=n(9),r=n(1),a=n(3),s=n(27),c=n(6),u=n(7),d=n(44),l=n(5),p=n(28),h=n(0),f=n(254),g=n(293),m=n(108),v=n(164),y=function(){function t(e){var n=this;this.abstractFormat=e,this.logger=new r.a("teads.helper.smartPosition"),this.active=!1,this.started=!1,this.stopped=!1,this.isTop=!1,this.isCorner=!1,this.isResponsive=!1,this.eventListenerManager=new s.a,this.creativeLimits={top:0,bottom:0},this.windowLimits={top:0,bottom:0},this.adSize={width:0,height:0},this.maxRatio=1,this.currentTop=0,this.getCreativeLimitsTries=0,this.originalPlayerZIndex=String(d.MIN_Z_INDEX_VALUE),this.transitionInProgress=!1,this.isMidPointReached=!1,this.isTimeOutSlotReached=!1,this.remainingTimeLastSmartInSec=0,this.timerOutOfSlot=null,this.smartElapsedTimeInSec=0,this.isDisabled=!1,this.parentContainer=e.parentContainer,this.playerContainer=e.playerContainer,this.player=e.player,this.placementConfig=e.placement.placementConfig,this.electedSlot=e.placement.getElectedSlot(),this.vpaidAd=e.getVpaidAd(),this.responsiveHelper=e.responsive,this.fullscreenHelper=e.getFullscreenHelper(),this.components=e.components,this.win=e.placement.placementConfig.parentWindow.getWindow(),this.smartConfig=e.formatConfig.smartPosition.getValue(),this.isSticky=e.formatConfig.sticky.getValue(),this.maxTop=u.getWindowSize(this.win).height*t.MAX_FLOATING_TOP,this.threshold=e.formatConfig.threshold.get()/100;var i=Object(a.isMobile)()||Object(a.isTablet)();i&&(this.smartConfig.top||this.isSticky)?this.isTop=!0:!i&&this.smartConfig.corner&&(this.isCorner=!0),this.logger.debug("isTop, isCorner",this.isTop,this.isCorner),this.isTop?this.maxRatio=t.MAX_SIZE_RATIO_TOP:this.isCorner&&(this.maxRatio=t.MAX_SIZE_RATIO_CORNER),this.originalPlayerZIndex=this.playerContainer.style.getPropertyValue("z-index"),this.isCorner&&(this.header=new g.a,this.header.init(this.vpaidAd,this.abstractFormat.getVolumeController()),this.header.smartCloseButton.onClickAction=function(){return n.disable()},this.header.setAdChoicesLink(Object(v.b)(this.abstractFormat.linearAd)),this.playerContainer.insertBefore(this.header.getElement(),this.playerContainer.firstChild))}return t.prototype.isActive=function(){return this.active},t.prototype.hasStarted=function(){return this.started},t.prototype.onScroll=function(t){this.started&&!this.stopped&&(this.windowLimits=this.getWindowLimits(),!this.active&&this.canStart()?this.start():this.active&&this.canStop()&&this.stop())},t.prototype.onTouch=function(t){this.started&&!this.stopped&&(this.windowLimits=this.getWindowLimits(),this.active&&this.canStop()&&this.stop())},t.prototype.init=function(){var t=this;if(!this.started&&(this.isTop||this.isCorner)){this.logger.debug("initializing"),this.responsiveHelper.unsetResponsive(),this.compensationDiv=this.initCompensationDiv();var e=h.throttle(function(){return t.onResizeEnd()},100,this);this.responsiveHelper.addResizeListener(function(t){return e(t)}),this.fullscreenHelper.addBeforeOpenEventListener(function(){return t.onFullscreenOpen()}),this.fullscreenHelper.addCloseEventListener(function(){return t.onFullscreenClose()}),this.responsiveHelper.addOrientationChangeListener(function(){return t.onOrientationChange()}),this.eventListenerManager.addMultiple(["touchstart","touchmove","touchend"],this.win,function(e){return t.onTouch(e)}),this.creativeLimits=this.getCreativeLimits(),this.currentTop=this.getCurrentTop(),this.logger.debug("init",this.currentTop),this.started=!0,this.responsiveHelper.setResponsive(),this.player.smartPosition.init(this.isTop,this.isCorner,this.abstractFormat.placement.isSliderEnabled(),this.abstractFormat.formatConfig.slider.closeButtonEnabled(),function(){return t.header.showCloseButton()},function(){return t.showCloseButtonAtMidPoint()},function(){return t.deinit()}),this.abstractFormat.placement.isSliderEnabled()&&(this.header.smartCloseButton.onClickAction=function(){t.stopCornerPosition(),t.vpaidAd.skipAd()})}},t.prototype.deinit=function(){var t=this;if(!this.stopped){this.stopped=!0;var e=function(){t.eventListenerManager.removeAll(),t.abstractFormat.slotType===d.SLOT_TYPE.native&&t.compensationDiv.parentNode.removeChild(t.compensationDiv)};o.c.of(function(){return t.stop(i.b.of(e))}).recover(function(e){t.logger.error("Couldn't stop Smart Position: \""+e+'"')}),f.hideCreativeLimits()}},t.prototype.start=function(){var e=this;if(!(this.active||this.transitionInProgress||this.isDisabled)){if(this.player.smartPosition.start(this.isTimeOutSlotReached||this.isMidPointReached,function(){return e.disable()},function(){return e.header.showCloseButton()}),this.isTimeOutSlotReached||this.isMidPointReached||this.player.smartPosition.isCloseButtonMode(m.a.COUNTDOWN)||(this.remainingTimeLastSmartInSec=this.vpaidAd.getAdRemainingTime(),this.timerOutOfSlot=this.showCloseButtonHandler()),this.responsiveHelper.unsetResponsive(),this.compensationDiv.style.setProperty("height",u.getBoundingClientRect(this.playerContainer).height+"px"),this.setResponsive(),this.playerContainer.style.setProperty("z-index",String(d.MAX_Z_INDEX_VALUE)),this.playerContainer.style.setProperty("position","fixed"),this.compensationDiv.style.setProperty("display","block"),this.isTop)this.currentTop=this.getCurrentTop(),this.playerContainer.style.setProperty("top",this.currentTop+"px");else{if(!this.isCorner)return this.logger.error("Starting smartPosition with unsupported mode."),void this.stop();this.setTransitionListener(),this.compensationDiv.style.setProperty("background-color","#000000"),p.requestAnimationFrame(function(){l.addTransitionProperties(e.compensationDiv,t.FADE_IN_DURATION_IN_SECONDS),e.compensationDiv.style.setProperty("background-color","#ffffff")},t.SET_COMPENSATION_DIV_BACKGROUND_DELAY_IN_MS),this.header.show(),this.startCornerPosition(),p.requestAnimationFrame(function(){e.playerContainer.style.setProperty("bottom",t.MARGIN_FROM_EDGES_IN_PX+"px"),e.playerContainer.style.setProperty("right",t.MARGIN_FROM_EDGES_IN_PX+"px")},t.ADD_MARGIN_FROM_EDGES_DELAY_IN_MS)}this.active=!0}},t.prototype.getOptimalDimension=function(){return this.responsiveHelper.getOptimalDimension(this.parentContainer,this.maxRatio)},t.prototype.getCreativeLimits=function(){var e=this,n=this.active||this.transitionInProgress?this.compensationDiv:this.playerContainer,i=u.getBoundingClientRect(n);if(i.top===i.bottom&&this.getCreativeLimitsTries<t.MAX_GET_CREATIVE_LIMITS_TRIES)return this.getCreativeLimitsTries++,this.win.setTimeout(function(){return e.getCreativeLimits()},10),this.logger.debug("Could not get creativeLimits after "+this.getCreativeLimitsTries+" tries"),this.creativeLimits;this.getCreativeLimitsTries=0;var o=u.getScrollTop(this.win),r=o+i.top,a=o+i.bottom,s={top:r,bottom:a};return f.showCreativeLimits(s,this.parentContainer.parentElement),s},t.prototype.getWindowLimits=function(){var t=u.getWindowSize(this.win).height,e=u.getScrollTop(this.win);return{top:e+this.currentTop,bottom:e+t}},t.prototype.disable=function(){this.stop(),this.isDisabled=!0},t.prototype.stop=function(e){var n=this;void 0===e&&(e=i.a),this.active&&!this.transitionInProgress&&(this.timerOutOfSlot&&(this.smartElapsedTimeInSec+=this.remainingTimeLastSmartInSec-this.vpaidAd.getAdRemainingTime(),this.clearTimerOutOfSlot()),this.active=!1,this.unsetResponsive(),this.isTop?(this.playerContainer.style.removeProperty("top"),this.afterStop(e)):this.isCorner&&(this.compensationDiv.style.setProperty("background-color","#ffffff"),this.setTransitionListener(i.b.of(function(){n.playerContainer.style.removeProperty("bottom"),n.playerContainer.style.removeProperty("right"),n.header.hide(),n.afterStop(e)})),p.requestAnimationFrame(function(){n.compensationDiv.style.setProperty("background-color","#000000")},t.SET_COMPENSATION_DIV_BACKGROUND_DELAY_IN_MS),this.stopCornerPosition()))},t.prototype.afterStop=function(t){var e=this;if(void 0===t&&(t=i.a),this.player.smartPosition.stop(function(){return e.header.showCloseButton()}),this.playerContainer.style.setProperty("position","relative"),this.playerContainer.style.setProperty("z-index",this.originalPlayerZIndex),this.compensationDiv.style.setProperty("display","none"),this.abstractFormat.slotType===d.SLOT_TYPE.native){var n=this.responsiveHelper.getOptimalDimension(this.compensationDiv);this.vpaidAd.getAdHeight()!==n.height&&(this.adSize=n,this.resizeAd(this.adSize.width,this.adSize.height)),this.responsiveHelper.setResponsive(),p.setTimeout(function(){e.responsiveHelper.resize(!0)},100)}t.forEach(function(t){return t()})},t.prototype.canStart=function(){return!!(this.isTop&&this.windowLimits.top>this.creativeLimits.top)||this.isCorner&&l.getPercentageInView(this.parentContainer,this.win)<this.threshold},t.prototype.canStop=function(){return!!(this.isTop&&this.windowLimits.top<=this.creativeLimits.top)||this.isCorner&&l.getPercentageInView(this.parentContainer,this.win)>=this.threshold},t.prototype.setResponsive=function(){var t=this;this.isResponsive=!0;var e=function(){t.isActive()&&t.isResponsive&&(t.handleResize(),t.resizeInterval=p.requestAnimationFrame(e,100))};this.resizeInterval=p.requestAnimationFrame(e,100)},t.prototype.handleResize=function(e){if(void 0===e&&(e=!1),!this.fullscreenHelper.isActive()){var n=this.getOptimalDimension();if((e||this.vpaidAd.getAdHeight()!==n.height)&&(this.adSize=n,this.logger.debug("resize to "+this.adSize.width+"x"+this.adSize.height+" from "+this.vpaidAd.getAdWidth()+"x"+this.vpaidAd.getAdHeight()),this.resizeAd(this.adSize.width,this.adSize.height)),n=this.responsiveHelper.getOptimalDimension(this.parentContainer,1),(e||u.getBoundingClientRect(this.compensationDiv).height!==n.height)&&this.compensationDiv.style.setProperty("height",n.height+"px"),this.isTop){this.maxTop=u.getWindowSize(this.win).height*t.MAX_FLOATING_TOP;var i=this.getTop();this.currentTop!==i&&(this.currentTop=i,this.playerContainer.style.setProperty("top",this.currentTop+"px"))}}},t.prototype.unsetResponsive=function(){p.cancelAnimationFrame(this.resizeInterval),this.isResponsive=!1},t.prototype.resizeAd=function(t,e){var n=Math.round(u.getBoundingClientRect(this.compensationDiv).width),i=(n-t)/2+"px";this.vpaidAd.resizeAd(t,e),this.isTop?(this.playerContainer.style.setProperty("margin-left",i),this.playerContainer.style.setProperty("margin-right",i)):(this.playerContainer.style.removeProperty("margin-left"),this.playerContainer.style.removeProperty("margin-right"))},t.prototype.initCompensationDiv=function(){var t=this.win.document.createElement("div");return t.className="teads-player teads-compensation-div",t.style.setProperty("-webkit-box-shadow","inset 0px 0px 85px rgba(0, 0, 0, 0.1)"),t.style.setProperty("-moz-box-shadow","inset 0px 0px 85px rgba(0, 0, 0, 0.1)"),t.style.setProperty("box-shadow","inset 0px 0px 85px rgba(0, 0, 0, 0.1)"),this.abstractFormat.slotType===d.SLOT_TYPE.native&&(this.playerContainer.nextSibling?this.playerContainer.parentNode.insertBefore(t,this.playerContainer.nextSibling):this.playerContainer.parentNode.appendChild(t)),t},t.prototype.onResizeEnd=function(){this.fullscreenHelper.isActive()||(this.creativeLimits=this.getCreativeLimits(),this.onScroll())},t.prototype.onOrientationChange=function(){this.creativeLimits=this.getCreativeLimits(),this.isTop&&(this.currentTop=this.getTop(),this.logger.debug("onOrientationChange",this.currentTop)),this.active&&!this.fullscreenHelper.isActive()&&(this.unsetResponsive(),this.handleResize(!0),this.setResponsive())},t.prototype.onFullscreenOpen=function(){this.active&&this.stop()},t.prototype.onFullscreenClose=function(){this.onScroll()},t.prototype.getTop=function(){return l.getTop(this.win,l.findFloatingHeaders(this.win,[this.playerContainer]),this.maxTop)},t.prototype.getCurrentTop=function(){return this.isTop&&!this.active?this.getTop():this.currentTop},t.prototype.clearTimerOutOfSlot=function(){this.timerOutOfSlot&&(this.timerOutOfSlot.clear(),this.timerOutOfSlot=null)},t.prototype.showCloseButtonAtMidPoint=function(){var t=this;if(!this.isTimeOutSlotReached){this.isMidPointReached=!0;var e=this.vpaidAd.getAdRemainingTime()-1,n=function(){return t.vpaidAd.unsubscribe(i,c.a.AdRemainingTimeChange)},i=function(){t.vpaidAd.getAdRemainingTime()<e&&(t.showCloseButton(),n())};this.vpaidAd.subscribe(i,c.a.AdRemainingTimeChange)}},t.prototype.showCloseButtonHandler=function(){var e=this;return p.setInterval(function(){if(!e.isMidPointReached){(e.abstractFormat.placement.isSliderEnabled()?e.vpaidAd.getAdDuration()-e.vpaidAd.getAdRemainingTime():e.remainingTimeLastSmartInSec+e.smartElapsedTimeInSec-e.vpaidAd.getAdRemainingTime())>=t.TIME_IN_SEC_BEFORE_CLOSE_BUTTON&&(e.showCloseButton(),e.clearTimerOutOfSlot(),e.isTimeOutSlotReached=!0)}},t.SHOW_CLOSE_BUTTON_INTERVAL_DELAY_IN_MS)},t.prototype.showCloseButton=function(){this.isTop&&this.active?this.player.smartPosition.showCloseButton():this.isCorner&&this.header.showCloseButton()},t.prototype.startCornerPosition=function(){var e=this,n=u.getBoundingClientRect(this.playerContainer).height;this.playerContainer.style.setProperty("bottom","-"+n+"px","important"),l.addTransitionProperties(this.playerContainer,t.TRANSITION_DURATION_IN_SECONDS,"ease-out"),p.requestAnimationFrame(function(){e.playerContainer.style.setProperty("opacity","1"),e.playerContainer.style.setProperty("bottom",t.MARGIN_FROM_EDGES_IN_PX+"px","important"),e.playerContainer.style.setProperty("right",t.MARGIN_FROM_EDGES_IN_PX+"px"),e.hideNativeSlotComponents()},t.ADD_TRANSITION_PROPERTIES_DELAY_IN_MS)},t.prototype.stopCornerPosition=function(){var e=this,n=u.getBoundingClientRect(this.playerContainer).height;l.addTransitionProperties(this.playerContainer,t.TRANSITION_DURATION_IN_SECONDS,"ease-out"),p.requestAnimationFrame(function(){e.playerContainer.style.setProperty("bottom","-"+n+"px","important"),e.showNativeSlotComponents()},t.ADD_TRANSITION_PROPERTIES_DELAY_IN_MS)},t.prototype.setTransitionListener=function(t){var e=this;void 0===t&&(t=i.a),this.transitionInProgress=!0;var n=function(){e.transitionInProgress=!1,e.eventListenerManager.removeMultiple(["transitionend","otransitionend","oTransitionEnd","webkitTransitionEnd"]),l.removeTransitionProperties(e.playerContainer),l.removeTransitionProperties(e.compensationDiv),t.forEach(function(t){return t()})};this.eventListenerManager.addMultiple(["transitionend","otransitionend","oTransitionEnd","webkitTransitionEnd"],this.playerContainer,n)},t.prototype.hideNativeSlotComponents=function(){var t=function(t){t.getElement().style.setProperty("opacity","0")};i.b.of(this.abstractFormat.components.getComponent("adChoices")).forEach(t),i.b.of(this.abstractFormat.components.getComponent("label")).forEach(t)},t.prototype.showNativeSlotComponents=function(){var t=function(t){t.getElement().style.setProperty("opacity","1")};i.b.of(this.abstractFormat.components.getComponent("adChoices")).forEach(t),i.b.of(this.abstractFormat.components.getComponent("label")).forEach(t)},t.MAX_SIZE_RATIO_CORNER=Object(a.isDesktop)()?.3:.25,t.TRANSITION_DURATION_IN_SECONDS=.4,t.FADE_IN_DURATION_IN_SECONDS=.4,t.MARGIN_FROM_EDGES_IN_PX=5,t.MAX_SIZE_RATIO_TOP=Object(a.isDesktop)()?.3:.5,t.MAX_FLOATING_TOP=Object(a.isDesktop)()?.25:.2,t.MAX_GET_CREATIVE_LIMITS_TRIES=5,t.TIME_IN_SEC_BEFORE_CLOSE_BUTTON=5,t.ADD_TRANSITION_PROPERTIES_DELAY_IN_MS=10,t.ADD_MARGIN_FROM_EDGES_DELAY_IN_MS=10,t.SET_COMPENSATION_DIV_BACKGROUND_DELAY_IN_MS=10,t.SHOW_CLOSE_BUTTON_INTERVAL_DELAY_IN_MS=300,t}()},function(t,e,n){n.d(e,"a",function(){return i});var i;!function(t){t[t.Error=0]="Error",t[t.AdError=1]="AdError",t[t.ResizeAmpError=2]="ResizeAmpError",t[t.ReplayError=3]="ReplayError",t[t.AdSuccess=4]="AdSuccess",t[t.NoAdSuccess=5]="NoAdSuccess",t[t.MoatNotVisibleAdSuccess=6]="MoatNotVisibleAdSuccess"}(i||(i={}))},,,,,,,,function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=(n(32),n(188),n(189),n(207),n(208),n(127)),o=n(88),r=n(125),a=n(92),s=n(243),c=n(126),u=n(153),d=n(89),l=n(181),p=n(170),h=n(152),f=window.teads||{};f.player=f.player||{},f.player.ASSETS=i.a,f.player.MEDIAFILE_TYPE=o.a,f.player.MediaFileHelper=o.c,f.player.MediaProvider=r.a,f.player.PLAYER_TYPE=a.b,f.player.RatioCategory=o.b,f.player.TeadsContextExtension=s,f.player.TeadsStudioExtension=c,f.player.VASTEventTracker=u.a,f.player.VASTPlayer=d.a,f.player.VideoHelper=l,f.player.playerSumologic=d.b,f.player.plugin=p,f.player.trackingMapping=h.a,window.teads=f},function(t,e,n){function i(){return c.get("teadsDebugInPage").toOption().existsIf(function(t){return"true"===t})}function o(t,e,n){if(i()){var o=document.createElement("div");o.setAttribute("id","teadsGhostAvoid"),o.style.position="absolute",o.style.top=e.top+"px",o.style.bottom=e.bottom+"px",o.style.left=e.left+"px",o.style.right=e.right+"px",o.style.width=e.width+"px",o.style.height=e.height+"px",o.style.background="rgba(255, 0, 0, 0.10)",o.style.pointerEvents="none",o.style.color="#F79C9C",o.style.zIndex="9999",o.style.padding="10px",o.innerText="avoidSlot",n.document.body.appendChild(o),t.style.backgroundColor="rgba(255, 0, 0, 0.20)"}}function r(t,e){void 0===e&&(e=window.document.body),a(),i()&&(d=[s(e,0,t.top,200,t.top,"#0000CC"),s(e,0,t.bottom,200,t.bottom,"#CC0000")],u.forEach(d,function(t){e.appendChild(t)}))}function a(){i&&(u.forEach(d,function(t){t.parentNode.removeChild(t)}),d=[])}function s(t,e,n,i,o,r){if(void 0===r&&(r="black"),n<o){var a=n;n=o,o=a,a=e,e=i,i=a}var s,c=Math.abs(e-i),u=Math.abs(n-o),d=(e+i)/2,l=(n+o)/2,p=Math.sqrt(c*c+u*u),h=d-p/2,f=l;c=p/2,s=Math.abs(d-h),u=Math.sqrt(Math.abs(e-h)*Math.abs(e-h)+Math.abs(n-f)*Math.abs(n-f));var g=(u*u-c*c-s*s)/(2*c*s),m=Math.acos(g),v=180*m/Math.PI,y=document.createElementNS("http://www.w3.org/1999/xhtml","div");return y.setAttribute("style","border:1px solid "+r+";width:"+p+"px;height:0px;-moz-transform:rotate("+v+"deg);-webkit-transform:rotate("+v+"deg);position:absolute;top:"+f+"px;left:"+h+"px;"),y}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"creativeLimits",function(){return d}),e.isActive=i,e.showAvoidSlot=o,e.showCreativeLimits=r,e.hideCreativeLimits=a;var c=n(25),u=n(2),d=[]},function(t,e,n){function i(t,e){var n={settings:{}};return!e.type||!e.content?(n.type=t.type,n.content=t.content):(n.type=e.type,n.content=e.content),n.settings=t.settings,n.insertion_id=t.insertion_id,n.connection_id=t.connection_id,n}function o(t){var e={status:!0,reasons:[]},n=t.parentWindow.getWindow();a.videoSupport(n.document)||s.hasFlashVersion(10)||(e.status=!1,e.reasons.push(r.TRACKING.incompatibility.video));var i=a.isMobile()&&t.isMobile(),o=a.isTablet()&&t.isTablet(),u=a.isDesktop()&&t.isDesktop();return i||o||u||(e.status=!1,e.reasons.push(r.TRACKING.incompatibility.context)),c.isLowerOrEqual(a.getIEVersion(),"8")&&(e.status=!1,e.reasons.push(r.TRACKING.incompatibility.browser)),e}Object.defineProperty(e,"__esModule",{value:!0}),e.extendAd=i,e.checkEnvironment=o;var r=n(44),a=n(3),s=n(37),c=n(20)},function(t,e,n){function i(){return o||(o=r.generate()),o}Object.defineProperty(e,"__esModule",{value:!0}),e.get=i;var o,r=n(301)},function(t,e,n){function i(t){return c.b.of(t).flatMap(function(t){return o(t.headerBiddingProvider)})}function o(t){return c.b.of(t).filter(r)}function r(t){return d.includes(u.HEADER_BIDDING_PROVIDERS,t)}function a(t){return t.match({some:function(t){return t===u.HEADER_BIDDING_DEBUG},none:function(){return!0}})}function s(t){return t.orNull()}Object.defineProperty(e,"__esModule",{value:!0}),e.fromIAd=i,e.fromProvider=o,e.isValidProvider=r,e.isUserSyncAllowed=a,e.extractHbSlotAvailableUrl=s;var c=n(4),u=n(44),d=n(2)},function(t,e,n){var i=n(59),o=n(304),r=n(260),a=n(309),s=n(319),c=n(44),u=n(209),d=n(272),l=n(29),p=n(267),h=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.prototype.initFormatInstance=function(t,e,n){if(n)this.registerInstance(new a.a(this,e,n,t));else{var i=t?t.getLinearAd():null;this.placementTracker.setSlotDimensionOnTracking(i),t&&t.setLinearAd(i),this.isSliderEnabled()?this.registerInstance(new s.a(this,e,t)):this.registerInstance(new p.a(this,e,t))}d.reorderWigoButtons()},e.prototype.checkSlot=function(){var t=this,e=this.placementConfig.selector.getSlots(),n=!1;if(e.length&&(this.electedSlotReport=this.processChecker(e,c.FORMAT.inread)),(!e.length||!this.electedSlotReport.report.status)&&this.placementConfig.auto.isEnabled()){n=!0,this.smartSlot=new r.a(this.placementConfig.parentWindow.getWindow());var o=this.smartSlot.find();if(o){for(var a=[],s=0,d=o.length;s<d;s++)a[s]=new u.a(o[s],s),a[s].computeScore(this.placementConfig);a.sort(function(t,e){return e.getScore()-t.getScore()}),this.electedSlotReport=this.processChecker(a,c.FORMAT.inread,!0)}}var p={};return this.electedSlotReport&&this.electedSlotReport.report?(i.a.sendInfo("checkslot "+(n?"1":"0")+" "+(this.electedSlotReport.report.status?"1":"0")),this.electedSlotReport.report.status?(this.electedSlot=this.electedSlotReport.slot,p={status:!0,reasons:[]}):(this.logger.info("No slot available"),p={status:!1,reasons:this.electedSlotReport.report.reasons},this.wigoi.forEach(function(e){return e.valid(1,1,t.electedSlotReport.report.reasons,l.c.infoType.ERROR)}))):(this.logger.info("No slot available"),p={status:!1,reasons:this.placementConfig.headerBiddingProvider.nonEmpty()?[c.TRACKING.noSlot.hbSelector]:[c.TRACKING.noSlot.selector]},this.wigoi.forEach(function(t){return t.valid(1,1,c.TRACKING.noSlot.selector,l.c.infoType.ERROR)})),p},e.prototype.getElectedSlot=function(){return this.electedSlot},e.prototype.initDom=function(t){var e=t.getElement(),n=this.parentContainer;return"PR"!==e.nodeName&&"BR"!==e.nodeName||n.style.setProperty("margin","10px 0"),this.placementConfig.insertInside.isEnabled()?this.placementConfig.insertBefore.isEnabled()&&e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n):this.placementConfig.insertBefore.isEnabled()&&e.parentNode?e.parentNode.insertBefore(n,e):e.parentNode&&e.nextSibling?e.parentNode.insertBefore(n,e.nextSibling):e.appendChild(n),n},e}(o.a);e.a=f},function(t,e,n){function i(t,e){if(!t.placementConfig.btf.isEnabled())return{status:!0,reason:"placement.placementConfig.btf is false"};var n=b.getScrollTop(t.placementConfig.parentWindow.getWindow()),i=e.getElementRect(),o=b.getWindowSize(t.placementConfig.parentWindow.getWindow()).height;if(t.placementConfig.belowSelector.get()){t.placementConfig.belowSelector.getFirstElement()&&(o=Math.max(o,t.placementConfig.belowSelector.getFirstElementRect().bottom))}if(t.placementConfig.insertBefore.isEnabled()){var r=i.top+n;return{status:r>=o,reason:A.TRACKING.noSlot.btf,information:"top: "+Math.round(r)+" px >= waterline: "+o+" px"}}var a=i.bottom+n;return{status:a>=o,reason:A.TRACKING.noSlot.btf,information:"bottom: "+Math.round(a)+"px >= waterline: "+o+"px"}}function o(t,e){var n=e.getIndex()+1;return n>=t.placementConfig.minimum.get()?{status:!0,reason:""}:{status:!1,reason:A.TRACKING.noSlot.minimum,information:"slot: "+n+" < config: "+t.placementConfig.minimum.get()}}function r(t,e,n){if(!t.placementConfig.belowSelector.get()||null===t.placementConfig.minimumBelow.get())return{status:!0,reason:""};var i=t.placementConfig.belowSelector.getFirstNodeBelowIndex(n),o=e.getIndex();return o>=t.placementConfig.minimumBelow.get()+i-1?{status:!0,reason:""}:{status:!1,reason:A.TRACKING.noSlot.minimumBelow,information:"slot: "+o+" < config: "+t.placementConfig.minimumBelow.get()}}function a(t,e){var n=650/A.DEFAULT_VIDEO_SIZE_RATIO,i=t.initDom(e),o=typeof i;if(("object"!==o||null===i)&&"function"!==o||1!==i.nodeType)return{status:!1,reason:""};i.style.setProperty("height","0px"),i.style.setProperty("text-align","center"),""===i.style.getPropertyValue("max-width")&&i.style.setProperty("max-width","100%");var r={x:i.offsetLeft,y:i.offsetTop};i.style.setProperty("overflow","hidden");var a={x:i.offsetLeft,y:i.offsetTop};i.style.setProperty("margin-top",.33*n+"px");var s={x:i.offsetLeft,y:i.offsetTop};i.style.setProperty("margin-top","0");var c=Math.abs(r.y-a.y)<8&&Math.abs(r.y-s.y)<.33*n+8;i.style.setProperty("position","relative");var u=b.getSize(i);return u.height=u.width/A.DEFAULT_VIDEO_SIZE_RATIO,i&&i.parentNode&&i.parentNode.removeChild(i),{status:c,reason:A.TRACKING.noSlot.position,information:"Check height failed"}}function s(t,e){var n={status:!0,reason:""};if(t.placementConfig.avoid.getSlots()){var i=t.placementConfig.avoid.getSlots(),o=b.getBoundingClientRect(e.getElement()),r=0;try{for(var a=T(i),s=a.next();!s.done;s=a.next()){var c=s.value;if(e.getElement()===c.getElement()){n.status=!1,n.reason=A.TRACKING.noSlot.avoid,n.information="AvoidSlot === Slot";break}var u=b.getBoundingClientRect(c.getElement()),d=t.placementConfig.avoid.getDistance(),l={top:u.top-d,left:u.left-d,bottom:u.bottom+d,right:u.right+d,height:u.height+2*d,width:u.width+2*d};if(S.showAvoidSlot(c.getElement(),l,t.placementConfig.parentWindow.getWindow()),o.top!==o.bottom){var p={x:Math.max(0,Math.min(o.right,l.right)-Math.max(o.left,l.left)),y:Math.max(0,Math.min(o.bottom,l.bottom)-Math.max(o.top,l.top))};if(r=p.x*p.y){n.status=!1,n.reason=A.TRACKING.noSlot.avoid,n.information="Avoid - "+Math.ceil(r)+"px2";break}}else if(o.top>l.top&&o.top<l.bottom){n.status=!1,n.reason=A.TRACKING.noSlot.avoid,n.information="Avoid - slot inside avoid area";break}}}catch(t){h={error:t}}finally{try{s&&!s.done&&(f=a.return)&&f.call(a)}finally{if(h)throw h.error}}}return n;var h,f}function c(t,e,n){e.resolveSize();var i={i:e.getIndex(),elt:e.getElement(),elts:n,wrappedSizes:{width:e.getWidth(),height:e.getWidth()/16*9}};return{status:t.placementConfig.filter.trigger(i),reason:A.TRACKING.noSlot.filter}}function u(t,e){var n={status:!0,reason:""};if(e.resolveSize(),b.isSelfClosingTag(e.getElement()))return n;for(var i,o={">=":function(t,e){return t>=e},"<=":function(t,e){return t<=e}},r=[{name:"minimumHeight",property:e.getHeight(),score:O.MIN_LONG_HEIGHT,operator:">="},{name:"minimumWidth",property:e.getWidth(),score:t.placementConfig.minimumWidth.get(),operator:">="},{name:"maximumHeight",property:e.getHeight(),score:O.MAX_LONG_HEIGHT,operator:"<="},{name:"maximumWidth",property:e.getWidth(),score:t.placementConfig.maximumWidth.get(),operator:"<="}],a=0;n.status&&r[a];)if(i=r[a++],n.status=o[i.operator](i.property,i.score),!n.status){n.reason=A.TRACKING.noSlot.size,n.information=i.name+": "+i.property+" "+i.operator+" "+i.score;break}return n}function d(t,e){if(!t.placementConfig.selector.get())return{status:!0,reason:"placement.placementConfig.selector not set"};var n=e.getElement(),i=b.getScrollTop(t.placementConfig.parentWindow.getWindow()),o=b.getBoundingClientRect(n).top;return{status:o+i>=O.MIN_POSITION_TOP&&o+i<=O.MAX_POSITION_TOP,reason:A.TRACKING.noSlot.position,information:"positionTop: "+O.MIN_POSITION_TOP+" <= "+(o+i)+" <= "+O.MAX_POSITION_TOP}}function l(t,e){var n=d.apply(this,arguments);return n.status?a.apply(this,arguments):n}function p(t,e){var n={status:!0,reason:A.TRACKING.noSlot.content},i=e.getElement(),o=[];b.getTextContent(i,o);var r=o.join("");return b.isSelfClosingTag(i)||(n.status=r.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").length>=t.placementConfig.minimumTextLength.get()),n}function h(t,e){var n,i=0,o=e.getElement(),r=o.children||o.childNodes;if(0===r.length)return{status:!0,reason:"children empty"};do{if(n=r[i++],"P"===n.nodeName||"DIV"===n.nodeName||"BR"===n.nodeName)return{status:!1,reason:A.TRACKING.noSlot.content,information:n.nodeName}}while(r[i]);return{status:!0,reason:""}}function f(t,e){var n=p.apply(this,arguments);return n.status?h.apply(this,arguments):n}function g(t,e){var n={status:!0,reason:""},i=t.placementConfig.parentWindow.getWindow();return t.placementConfig.videoFilter.get()===C.a.VALUES.SLOT?w.checkVideoPrevNextElement(e.getElement(),i)&&(n.status=!1,n.reason=A.TRACKING.noSlot.videoSlot,n.information="slot is too close to a video"):t.placementConfig.videoFilter.get()===C.a.VALUES.ARTICLE&&w.checkVideoSiblings(e.getElement(),i)&&(n.status=!1,n.reason=A.TRACKING.noSlot.videoArticle,n.information="slot container (article) has a video"),n}function m(t,e){var n={status:!0,reason:""},i=t.placementConfig.parentWindow.getWindow();return t.placementConfig.imageFilter.get()===_.a.VALUES.SLOT&&w.checkImagePrevNextElement(e.getElement(),i)&&(n.status=!1,n.reason=A.TRACKING.noSlot.imageSlot,n.information="slot is too close to an image"),n}function v(t,e){var n={status:!0,reason:""};return Object(y.isIABSafeFrame)()&&(n.information=E.init(),n.reason=n.information?A.TRACKING.noSlot.safeFrame:"",n.status=!n.information),n}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"configScore",function(){return O}),e.btf=i,e.minimum=o,e.minimumBelow=r,e.height=a,e.avoid=s,e.filter=c,e.size=u,e.positionTop=d,e.position=l,e.textLength=p,e.children=h,e.content=f,e.video=g,e.image=m,e.safeframe=v;var y=n(3),b=n(7),A=n(44),E=n(163),w=n(307),_=n(261),C=n(262),S=n(254),T=this&&this.__values||function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}},O={MIN_POSITION_TOP:100,MAX_POSITION_TOP:18e3,MIN_LONG_HEIGHT:30,MAX_LONG_HEIGHT:2e3,WIDTH_MARGIN:40,HEIGHT_MARGIN:20,LENGTH_MARGIN:150,LEVEL_POSITION:200}},function(t,e,n){n.d(e,"a",function(){return a});var i=n(1),o=n(7),r=n(18),a=function(){function t(t){this.win=t,this.logger=new i.a("helper.SmartSlot")}return t.findArticle=function(e,n,i,r){i.length=0,i.currentScore=0,i.childrenScore=0,i.isOverMinimumWidth=!1;var a=e.innerText||e.textContent||e.nodeValue,s=e.nodeName.toUpperCase();if(a&&(3===e.nodeType||t.textNodes[s]))i.length=a.replace(/\s+/g," ").length;else if(e===n.document.body||1===e.nodeType&&t.nodeScores[s]){for(var c=0,u=0,d=0,l=e.childNodes.length;d<l;d++){var p=t.findArticle(e.childNodes[d],n,i);c+=p.length,u+=p.currentScore,(p.isOverMinimumWidth||o.getSize(e).width>=t.MINIMUM_WIDTH)&&(i.isOverMinimumWidth=!0)}i.currentScore=c,i.childrenScore=u}if(i.childrenScore&&i.isOverMinimumWidth&&i.childrenScore>t.MINIMUM_CHARS){for(var h=t.nodeScores[s]||0,f=e.className.split(" "),g=1,m=void 0,d=0,v=f.length;d<v;d++)m=f[d].replace(/^\s+|\s+$/g,""),g+=t.classBonuses[m]||0;var y=1;for(var b in t.attributeBonuses)if(t.attributeBonuses.hasOwnProperty(b)){var A=t.attributeBonuses[b],E=void 0===A.value&&void 0!==e.getAttribute(b),w=A.value===e.getAttribute(b);(E||w)&&(y+=A.bonus||0)}var _=i.childrenScore*h*g*y;_>i.article.score&&(i.article.score=_,i.article.node=e,r&&r.debug("found a better node scoring ",i.article.score,i.article.node))}return i},t.prototype.find=function(){this.logger.info("Auto slot is finding a slot"),r.mark("markFormatSmartSlotStart");var e={length:0,currentScore:0,childrenScore:0,isOverMinimumWidth:!1,article:{score:0,node:null}},n=t.findArticle(this.win.document.body,this.win,e,this.logger);if(n.article&&n.article.node){var i=this.findParagraph(n.article.node);return r.mark("markFormatSmartSlotEnd"),i}return null},t.prototype.findParagraph=function(t){var e,n,i=["P","DIV"];for(n=0;n<i.length&&(e=t.getElementsByTagName(i[n]),!e.length);n++);return e},t.MINIMUM_SCORE=5e3,t.MINIMUM_CHARS=500,t.MINIMUM_WIDTH=200,t.nodeScores={DIV:10,P:4,ARTICLE:20,SECTION:5,SPAN:2,FORM:4,STRONG:2,EM:3,B:1,I:1,U:1,MAIN:2},t.textNodes={SPAN:!0,STRONG:!0,EM:!0,B:!0,I:!0,U:!0},t.classBonuses={article:4,"ob-text":6,"ob-section-html":4,contenuArticle:6},t.attributeBonuses={itemprop:{value:"articleBody",bonus:1e3}},t}()},function(t,e,n){var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"ImageFilter")||this;return i.value=n,i.checkValue(),i}return r(e,t),e.prototype.checkValue=function(){Object(o.isString)(this.value)||(this.value=e.DEFAULT)},e.prototype.get=function(){return this.value},e.VALUES={DISABLED:"disabled",SLOT:"slot"},e.DEFAULT=e.VALUES.DISABLED,e}(i.a);e.a=a},function(t,e,n){var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"VideoFilter")||this;return i.value=n,i.checkValue(),i}return r(e,t),e.prototype.checkValue=function(){Object(o.isString)(this.value)||(this.value=e.DEFAULT)},e.prototype.get=function(){return this.value},e.VALUES={DISABLED:"disabled",ARTICLE:"article",SLOT:"slot"},e.DEFAULT=e.VALUES.DISABLED,e}(i.a);e.a=a},function(t,e,n){n.d(e,"a",function(){return E});var i=n(59),o=n(26),r=n(6),a=n(264),s=n(1),c=n(5),u=n(61),d=n(4),l=n(9),p=n(36),h=n(266),f=n(243),g=n(126),m=n(0),v=n(265),y=n(7),b=n(3),A=n(191),E=function(){function t(t,e){this.placement=t,this.formatConfig=e,this.logger=new s.a("VPAIDApi");var n=this.placement.getPlayerContainer(),i=c.getWindow(n);this.communicationBridge=new a.a(this,i),this.communicationBridge.startListening()}return t.prototype.close=function(){this.communicationBridge&&this.communicationBridge.stopListening()},t.prototype.setStudioData=function(t){var e=this.placement.getFormat().getVpaidAd();this.studioData=t,e.status>=o.a.STARTED?this.applyStudioDataOnUI():e.subscribe(this.applyStudioDataOnUI.bind(this),r.a.AdStarted)},t.prototype.applyStudioDataOnUI=function(){if(this.studioData)try{var e=this.placement.getFormat().player.getPlugin("Tracker");e&&e.getTracker().setMetadata(t.STUDIO_CID_MACRO_METADATA,this.studioData.studio_cid,!0);var n=this.placement.getFormat().getVpaidAd(),i=n.getComponent("soundbutton");i&&i.setShowOnVideoStart(!this.studioData.display);var o=n.getComponent("progressbar");o&&(o.setShowOnVideoProgress(!this.studioData.display),o.setShowOnVideoStart(!this.studioData.display)),this.setSoundControlVisibility(!this.studioData.display),this.setProgressControlVisibility(!this.studioData.display)}catch(t){this.logger.error("setStudioData error "+t.message)}else this.logger.error("applyStudioDataOnUI error","studioData needed to apply them on UI")},t.prototype.getSumologicOption=function(){return{enabled:u.b.isSumologicLogsEnabled,pid:i.a.businessIds.pid,formatVersion:"2.19.149"}},t.prototype.isStudioDisplay=function(){return this.studioData&&this.studioData.display},t.prototype.getStudioData=function(){try{this.studioData=this.studioData||g.get(this.placement.getFormat().linearAd)}catch(t){this.logger.error("getStudioData error","format has not been instantiated yet",t)}return this.studioData},t.prototype.getContextData=function(){return f.get(this.placement.getFormat().linearAd)},t.prototype.isReplay=function(){return!!this.placement.getFormat().states.isReplay},t.prototype.activateTapMode=function(t){void 0===t&&(t=!0)},t.prototype.performTapMode=function(t){var e=this.placement.getFormat().getBrandingMode();e&&(void 0===t&&(t=!e.isActive()),t?e.isInitialized()?e.isActive()||e.start():(e.init(),e.start()):e.isActive()?(e.stop(),e.deinit()):e.isInitialized()&&e.deinit())},t.prototype.isFullscreen=function(){return this.placement.getFormat().getFullscreenHelper().isActive()},t.prototype.requestFullscreen=function(){try{this.placement.getFormat().getVpaidAd().dispatchCustomEvent("FullscreenRequest")}catch(t){this.logger.error("requestFullscreen error "+t.message)}},t.prototype.setSoundControlVisibility=function(t){try{var e=this.placement.getFormat().getVpaidAd();t?e.showComponent("soundbutton"):e.hideComponent("soundbutton")}catch(t){this.logger.error("setSoundControlVisibility error "+t.message)}},t.prototype.setFullscreenButtonVisibility=function(t){try{var e=this.placement.getFormat().getVpaidAd();t?e.showComponent("fullscreenbutton"):e.hideComponent("fullscreenbutton")}catch(t){this.logger.error("setFullscreenButtonVisibility error "+t.message)}},t.prototype.setProgressControlVisibility=function(t){try{var e=this.placement.getFormat().getVpaidAd();t?e.showComponent("progressbar"):e.hideComponent("progressbar")}catch(t){this.logger.error("setProgressControlVisibility error "+t.message)}},t.prototype.setStartScreenVisibility=function(t){try{var e=this.placement.getFormat().getVpaidAd();t?e.showComponent("startscreen"):e.hideComponent("startscreen")}catch(t){this.logger.error("setStartScreenVisibility error "+t.message)}},t.prototype.getSlotBounds=function(){var t=this;return l.c.of(function(){var e=t.placement.getPlayerContainer(),n=c.getWindow(e);return Object(m.extend)(y.getBoundingClientRect(e),{viewportHeight:n.innerHeight,viewportWidth:n.innerWidth})}).recover(function(e){t.logger.error("getSlotBounds error "+e.message)}).toOption().getOrElse(function(){return null})},t.prototype.sendAdClickThru=function(t){var e=this;l.c.of(function(){e.placement.getFormat().getVpaidAd().dispatchCustomEvent(r.a.AdClickThru,t)}).recover(function(t){return e.logger.error("sendAdClickThru error "+t.message)})},t.prototype.sendVideoMetadata=function(t){var e=this;l.c.of(function(){e.placement.getFormat().getVpaidAd().dispatchCustomEvent(p.default.AdVideoMetadata,t)}).recover(function(t){return e.logger.error("sendVideoMetadata error "+t.message)})},t.prototype.setFixedBackgroundImage=function(t,e){var n=this;void 0===e&&(e=function(){});var i=new h.a(this.placement.getPlayerContainer(),this.placement.getParentContainer()),a=this.placement.getFormat().getVpaidAd();this.setBackgroundColor("transparent"),this.hideVideoContainer(),b.isUIWebview()||a.subscribe(function(){return i.resizeContainer()},r.a.AdSizeChange),a.subscribe(function(){return i.resizeContainer()},r.a.AdStarted),a.subscribe(function(){return i.destroy()},r.a.AdStopped),a.subscribe(function(){return i.destroy()},r.a.AdError),i.loadImage(t,function(){i.initContainer(),n.logger.debug("background image ready !"),a.status>=o.a.LOADED?(i.append(),n.checkTouchOverflow(i)):a.subscribe(function(){i.append(),n.checkTouchOverflow(i)},r.a.AdLoaded),e(!0)})},t.prototype.hideVideoContainer=function(){this.placement.getFormat().getVpaidAd().getCreativeContainer().contentDocument.getElementById("video-container").style.setProperty("display","none")},t.prototype.setBackgroundColor=function(t){try{this.placement.getFormat().getVpaidAd().getVPAIDContainer().style.setProperty("background-color",t)}catch(t){this.logger.error("setBackgroundColor error "+t.message)}},t.prototype.addDeviceOrientationListener=function(){v.addDeviceOrientationListener(this,this.communicationBridge,c.getWindow(this.placement.getPlayerContainer()))},t.prototype.getUserLocation=function(t,e){v.getUserLocation(c.getWindow(this.placement.getPlayerContainer()),t,e)},t.prototype.customizeUI=function(t){var e=this;d.b.of(this.placement).match({some:function(n){return d.b.of(n.getFormat()).match({some:function(n){return d.b.of(n.getVpaidAd()).match({some:function(e){var n=c.getWindow(e.getMainComponentsContainer());A.removeCSS("vpaid-ui-custom-css",n),A.embedCSS(t,n,"vpaid-ui-custom-css")},none:function(){return e.logger.error("customizeUI: getVpaidAd() returned undefined or null")}})},none:function(){return e.logger.error("customizeUI: getFormat() returned undefined or null")}})},none:function(){return e.logger.error("customizeUI: this.placement is undefined or null")}})},t.prototype.getTeadsInfo=function(){return{placementId:this.formatConfig.placementId||null,connectionId:this.formatConfig.connectionId||null,insertionId:this.formatConfig.insertionId||null,creativeId:parseInt(this.placement.getFormat().linearAd.creativeId,10)||null,slotType:this.placement.getFormat().slotType,environment:b.getEnv()}},t.prototype.triggerViewabilityTag=function(t){try{this.placement.getFormat().viewabilityTagsHelper.onceThresholdReached(t)}catch(t){this.logger.error("triggerViewabilityTag error "+t.message),i.a.sendError("triggerViewabilityTag "+t.getMessage().substr(0,120))}},t.prototype.getCreativeTag=function(t){try{return this.placement.getFormat().viewabilityTagsHelper.getCreativeTag(t)}catch(e){return this.logger.error('"Unable to get creative tag: "'+e+'"'),t}},t.prototype.checkTouchOverflow=function(t){var e=function(t,n){return t===n||!(!n||!n.parentElement)&&e(t,n.parentElement)},n=function(t,n){var i=y.getBoundingClientRect(t),o=c.getDocument(t).elementFromPoint(i.left+i.width/2,i.top+n);return o===t||e(t,o)};try{var o=void 0,r=this.placement.getParentContainer(),a=t.getBaseContainer();n(r,-10)?(a.style.setProperty("z-index","-1"),o=n(r,-10)?"unsolved":n(r,10)?"solved":"hidden-slot"):o="none",i.a.sendInfo("touch-overflow:"+o+":"+this.placement.pid)}catch(t){i.a.sendError("touch-overflow-check-error:"+this.placement.pid)}},t.STUDIO_CID_MACRO_METADATA="[STUDIO_CID]",t}()},function(t,e,n){n.d(e,"a",function(){return c});var i=n(265),o=n(27),r=n(0),a=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},s=this&&this.__spread||function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a(arguments[e]));return t},c=function(){function t(t,e){this.api=t,this.playerWindow=e,this.eventListenerManager=new o.a}return t.prototype.startListening=function(){var e=this;this.eventListenerManager.add("message",this.playerWindow,function(n){if(Object(r.isObject)(n.data)){var i=n.data;if(!i.method)return;switch(i.method){case t.INIT_MESSAGE:e.pairedAdWindow=n.source,e.sendMessage({method:t.INIT_MESSAGE});break;default:try{if(Object(r.isFunction)(e.api[i.method]))if("getUserLocation"===i.method)e.handleGetUserLocationRequest(i);else{var o=(a=e.api)[i.method].apply(a,s(i.methodArgs));e.sendMessage({method:i.method,methodReturn:o})}else e.sendMessage({method:i.method,error:"Method "+i.method+" does not exist on api"})}catch(t){e.sendMessage({method:i.method,error:t.toString()})}}}var a})},t.prototype.stopListening=function(){this.eventListenerManager.remove("message")},t.prototype.sendMessage=function(t){this.pairedAdWindow&&this.pairedAdWindow.postMessage(t,"*")},t.prototype.handleGetUserLocationRequest=function(t){var e=this,n=function(n){e.sendMessage({method:t.method,methodReturn:i.extractCoordsFromPosition(n)})},o=function(n){e.sendMessage({method:t.method,methodReturn:n.message||n.toString()})};this.api[t.method](n,o)},t.INIT_MESSAGE="studio-ad--format-RPC",t.SENSOR_UPDATE="-studio-ad--sensors-update",t}()},function(t,e,n){function i(t,e,n){return a.c.of(function(){t.navigator.geolocation.getCurrentPosition(e,n)}).recover(function(t){n({code:1,message:t.message,PERMISSION_DENIED:1,POSITION_UNAVAILABLE:2,TIMEOUT:3})})}function o(t){var e=t.coords;return{accuracy:e.accuracy,latitude:e.latitude,longitude:e.longitude}}function r(t,e,n){n&&n.DeviceOrientationEvent&&!u&&(u=!0,s.addEventListener("deviceorientation",n,function(t){e.sendMessage({method:c.a.SENSOR_UPDATE,methodReturn:{alpha:t.alpha,beta:t.beta,gamma:t.gamma,absolute:t.absolute}})}))}Object.defineProperty(e,"__esModule",{value:!0}),e.getUserLocation=i,e.extractCoordsFromPosition=o,e.addDeviceOrientationListener=r;var a=n(9),s=n(7),c=n(264),u=!1},function(t,e,n){n.d(e,"a",function(){return h});var i=n(3),o=n(7),r=n(5),a=n(20),s=n(191),c=n(1),u=n(27),d=n(0),l=n(4),p=n(166),h=function(){function t(t,e,n){var i=this;this.container=t,this.logger=new c.a("FixedBackground"),this.resizeContainer=function(t){t&&"orientationchange"===t.type&&(i.center=null);var e=o.getBoundingClientRect(i.container),n=o.getWindowSize(i.win),r=Math.round(e.width),a=i.image.height*r/i.image.width;if(i.baseContainer.style.setProperty("width",r+"px"),i.baseContainer.style.setProperty("height",Math.round(e.height)+"px"),i.canUseBackgroundAttachment())i.center=i.center||(n.height-a)/2,i.baseContainer.style.setProperty("background-size",Math.round(r)+"px "+Math.round(a)+"px"),i.baseContainer.style.setProperty("background-position",Math.round(e.left)+"px "+i.center+"px");else{i.fixedContainer.style.setProperty("width",Math.round(r)+"px"),i.fixedContainer.style.setProperty("height",Math.round(1.2*(n.height+a))+"px"),i.fixedContainer.style.setProperty("background-size",Math.round(r)+"px "+Math.round(a)+"px"),i.fixedContainer.style.setProperty("left",Math.round(e.left)+"px"),i.center=i.center||(n.height-a)/2%a;var s=i.center>0?i.center-a:i.center;i.fixedContainer.style.setProperty("top",s+"px")}},this.win=r.getWindow(this.container),r.addClass(e,"teads-display-format"),n=Object(d.isFunction)(n)?n:this.resizeContainer,this.eventListenerManager=new u.a,this.eventListenerManager.addMultiple(["resize","orientationchange"],this.win,function(){return n()}),this.eventListenerManager.addMultiple(["transitionend","otransitionend","oTransitionEnd","webkitTransitionEnd"],this.container,function(){return n()})}return t.prototype.loadImage=function(t,e){var n=this;return this.image=new Image,this.image.onerror=function(t){return e(!1,l.b.empty())},this.image.onload=function(t){n.image.naturalWidth&&n.image.naturalHeight?e(!0,l.b.of(n.image)):(n.logger.error("setFixedBackgroundImage: Asset size error: cannot retrieve image dimensions"),e(!1,l.b.of(n.image)))},this.image.src=t,this.image},t.prototype.initContainer=function(){s.embedCSS(t.CSS,this.win,t.STYLE_NODE_ID),this.baseContainer=this.win.document.createElement("div"),this.baseContainer.className=t.CSSCLASSES.absolute,this.canUseBackgroundAttachment()?this.baseContainer.style.setProperty("background-image","url("+this.image.src+")"):(this.fixedContainer=this.win.document.createElement("div"),this.fixedContainer.style.setProperty("background-image","url("+this.image.src+")"),this.fixedContainer.className=t.CSSCLASSES.fixed,(a.isGreaterOrEqual(i.getChromeVersion(),"55")||i.isSafari())&&(this.baseContainer.style.setProperty("-webkit-clip-path","inset(1px 0px)","important"),this.baseContainer.style.setProperty("clip-path","inset(1px 0px)","important")),this.baseContainer.appendChild(this.fixedContainer)),this.resizeContainer()},t.prototype.append=function(){this.container.style.setProperty("position","relative"),this.container.style.setProperty("z-index","100"),this.container.parentNode.insertBefore(this.baseContainer,this.container)},t.prototype.destroy=function(){this.baseContainer.parentNode.removeChild(this.baseContainer),this.eventListenerManager.removeAll()},t.prototype.canUseBackgroundAttachment=function(){return i.isDesktop()||i.isFirefox()&&i.isAndroid()||i.isSamsungBrowser()},t.prototype.getBaseContainer=function(){return this.baseContainer},t.CSS=p.DISPLAYCSS,t.CSSCLASSES={absolute:"teads-display-absolute",fixed:"teads-display-fixed",clickZone:"teads-display-clickzone"},t.STYLE_NODE_ID="teads-inread-display",t}()},function(t,e,n){var i=n(268),o=n(245),r=n(315),a=n(3),s=n(5),c=n(2),u=n(7),d=n(4),l=n(63),p=n(44),h=n(163),f=n(192),g=n(93),m=n(6),v=n(244),y=n(64),b=n(92),A=n(59),E=n(86),w=n(28),_=n(271),C=n(422),S=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),T=function(t){function e(e,n,i){var o=t.call(this,e,n,i,p.SLOT_TYPE.native)||this;return o.placement=e,o.config=n,o.player=i,o.hasLoggedPlayProblem=!1,o.facebookPercentInView=r.NOT_IN_VIEW,o.getFunnelMacros=function(){var t=d.b.of(o.slotType);return l.c({slotType:t})},a.isFacebookIA()&&o.initFacebookIA(),o.config.adType.isDisplay()&&s.addClass(o.parentContainer,"teads-display"),o}return S(e,t),e.prototype.load=function(e,n){var i=this;a.isIABSafeFrame()?h.initSlot(function(){return t.prototype.load.call(i,e,n)}):t.prototype.load.call(this,e,n)},e.prototype.getTemplateName=function(){return"inread"},e.prototype.start=function(){var e=this,n=this.placement.placementConfig.scrollSelector.getSlot();a.isIABSafeFrame()?h.listenGeom(function(){return e.onScroll(new Event("touchmove"))}):a.isAmp()?this.unlistenAmp=this.win.context.observeIntersection(function(t){return e.onScroll(new Event("touchmove"))}):(a.isDesktop()&&this.setRealVisibilityInterval(),this.eventListenerManager.add("scroll",n,function(t){return e.onScroll()}),this.eventListenerManager.addMultiple(["touchstart","touchmove","touchend"],n,function(t){return e.onScroll(t)})),this.isInView=this.getInViewState(),this.formatConfig.vast.getContent()&&this.player.getMediafile()?t.prototype.start.call(this):this.onScroll()},e.prototype.onAdLoaded=function(){var e=this;if(t.prototype.onAdLoaded.call(this),this.extensions=d.b.of(this.player).map(function(t){return t.getPlugin("Extensions")}),this.extensions.forEach(function(t){return e.loadAdVerificationScripts(t)}),this.fullscreenHelper.addCloseEventListener(function(){e.isSmartPositionned()||e.responsive&&e.responsive.resize(!0)}),this.isVertical){var n=function(){e.responsive.unsetResponsive(),e.parentContainer.style.setProperty("display","none"),e.isInView=!1,e.requestPauseAd()};this.responsive.addOrientationChangeListener(function(t){e.isFullscreen()||(e.responsive.isLandscape?n():(e.parentContainer.style.setProperty("display","block"),e.responsive.setResponsive(),e.onScroll(t)))}),this.fullscreenHelper.addCloseEventListener(function(){e.responsive&&e.responsive.isLandscape&&n()})}a.isDesktop()||this.vpaidAd.render(this.vpaidAd.getVPAID()),!a.isIABSafeFrame()&&!a.isFacebookIA()||this.states.hasOpened||this.openFormat(),this.onScroll(),this.isInView=this.getInViewState()},e.prototype.onAdVideoStart=function(){t.prototype.onAdVideoStart.call(this),this.smartPositionHelper&&this.smartPositionHelper.init(),this.states.hasStarted&&this.states.hasOpened&&this.fitContainerToContent()},e.prototype.onAdSizeChange=function(){if(t.prototype.onAdSizeChange.call(this),this.states.hasOpened){var e=this.fitContainerToContent();a.isAmp()&&f.open(e)}},e.prototype.onAdVideoComplete=function(){t.prototype.onAdVideoComplete.call(this),this.smartPositionHelper&&this.smartPositionHelper.deinit()},e.prototype.onVpaidReady=function(){var e=this;t.prototype.onVpaidReady.call(this),this.fullscreenHelper=new _.a(this.parentContainer,this.vpaidAd,this.components,this.responsive,this.win,this.playerContainer),this.brandingMode=new C.a(this),this.isVertical||!this.formatConfig.sticky.isEnabled()&&!this.formatConfig.smartPosition.isEnabled()||(this.smartPositionHelper=new v.a(this)),this.vpaidAd.subscribe(function(){return e.pauseAdIfShouldNotBePlaying()},m.a.AdStarted),this.vpaidAd.subscribe(function(){return e.pauseAdIfShouldNotBePlaying()},m.a.AdRemainingTimeChange),this.vpaidAd.subscribe(function(){return e.clearRealVisibilityInterval()},m.a.AdError),this.vpaidAd.subscribe(function(){return e.clearRealVisibilityInterval()},m.a.AdStopped),this.vpaidAd.subscribe(function(){return e.clearRealVisibilityInterval()},m.a.AdSkipped),this.vpaidAd.subscribe(function(){return e.clearRealVisibilityInterval()},m.a.AdVideoComplete)},e.prototype.close=function(e){t.prototype.close.call(this,e),this.clearRealVisibilityInterval()},e.prototype.startInView=function(){this.states.hasStarted&&(this.formatConfig.videoPause.isThreshold()||this.isVertical||this.states.hasCompleted)&&this.requestResumeAd(),this.volumeController.startInView()},e.prototype.endInView=function(){this.formatConfig.videoPause.isThreshold()||this.states.hasCompleted?this.requestPauseAd():this.volumeController.endInView()},e.prototype.fitContainerToContent=function(t){void 0===t&&(t=!1);var e=this.getEnvironmentVars();if(this.vpaidApi.isStudioDisplay());else if(a.isIos()&&!d.b.ofNested(e,"videoSlot.mediaProxy").isEmpty()){var n=e.videoSlot.mediaProxy,i=n.getStatus();if(i!==g.a.READY)return}if((this.states.hasOpened||t)&&!this.isFullscreen()){var o=u.getBoundingClientRect(this.placement.getInnerContainer()),r=o.height;if(a.isFacebookIA()){r+=0===u.getBoundingClientRect(this.playerContainer).height?o.width/p.DEFAULT_VIDEO_SIZE_RATIO:0}return this.parentContainer.style.setProperty("height",r+"px"),r}},e.prototype.manageInView=function(t){t!==this.isInView&&(t?this.startInView():this.endInView()),this.isInView=t},e.prototype.openFormat=function(){var t=this;this.states.hasOpened=!0,this.formatConfig.animations.setExpandDuration(this.parentContainer);var e=this.getEnvironmentVars();if(this.vpaidApi.isStudioDisplay()||!this.formatConfig.adType.isVideo());else if(a.isIos()&&!d.b.ofNested(e,"videoSlot.mediaProxy").isEmpty()){var n=e.videoSlot.mediaProxy,i=n.getStatus();if(i===g.a.READY)this.logger.debug("mediaProxy is ready !",e.videoSlot.src);else{if(i===g.a.ERROR)return void this.logger.error("mediaProxy error, video is not available for the moment",e.videoSlot.src);if(!e.videoSlot.src||i<g.a.READY)return this.logger.debug("mediaProxy not ready or video.src not setted, delay inread opening",e.videoSlot.src),void n.listen(y.a.READY,function(){t.openFormat()},!1)}}var o=this.fitContainerToContent(!0);this.logger.debug("Format (pageId = "+this.formatConfig.pageId+", placementId = "+this.formatConfig.placementId+") has been opened"),this.responsive&&!this.isSmartPositionned()&&this.responsive.setResponsive(),a.isIABSafeFrame()&&h.open(o,function(e){t.states.hasOpened=e}),a.isFacebookIA()&&this.startFacebookIA()},e.prototype.trackAdCall=function(t){t&&!this.states.hasStopped&&(this.placement.placementTracker.track(p.TRACKING.adCall),this.linearAd||this.close(o.a.NoAdSuccess))},e.prototype.isUserInteraction=function(t){return!!(!a.isMobile()&&!a.isTablet()||this.formatConfig.allowedPlayer.getValue()===b.b.CANVAS||a.isWhiteListedIos10Safari(String(this.config.placementId))||a.isFacebookWebviewIOS10()||a.canAutoplay())||!!t&&"scroll"!==t.type},e.prototype.onScroll=function(t){if(this.wigoi&&window.teads.WIGO_DEBUG_KEY&&this.wigoi.followPlayer(),!this.isFullscreen()&&!this.isVerticalLandscape()){this.smartPositionHelper&&this.smartPositionHelper.onScroll(t);var e=this.getInViewState();this.trackAdCall(e),!this.isSmartPositionned()&&this.states.isReady&&(this.states.hasOpened||this.isUserInteraction(t)&&this.isVisible()&&(this.formatConfig.launch.isAuto()||this.formatConfig.launch.isThreshold()&&e)&&this.openFormat(),this.states.hasOpened&&!this.states.hasStopped&&(this.states.hasStarted?this.manageInView(e):(this.viewabilityTagsHelper.onScroll(),(this.isUserInteraction(t)||this.states.isReplay)&&this.canStart(e)&&(this.vpaidAd.startAd(),a.isDesktop()||this.setRealVisibilityInterval()))))}},e.prototype.canStart=function(t){return!this.formatConfig.videoStart.isThreshold()||t||this.states.isReplay},e.prototype.canPlay=function(t){return this.formatConfig.videoPause.isNo()||t},e.prototype.isFullscreen=function(){return!!this.fullscreenHelper&&this.fullscreenHelper.isActive()},e.prototype.isSmartPositionned=function(){return!!this.smartPositionHelper&&this.smartPositionHelper.isActive()},e.prototype.getViewportInViewState=function(){if(a.isFacebookIA())return this.facebookPercentInView>this.formatConfig.threshold.get();var t=this.vpaidAd?this.vpaidAd.getAdHeight():1;return s.isInView(this.playerContainer,this.win,this.formatConfig.threshold.get()/100,t)},e.prototype.initFacebookIA=function(){var t=this;this.eventListenerManager.add("message",this.win,function(e){t.facebookPercentInView=r.getPercentInView(t.facebookPercentInView,e.data,r.isFlowValid),t.states.isReady&&t.startFacebookIA()}),this.win.removeEventListener("message",window._teads_fbia.listener,!0);var e=c.filter(window._teads_fbia.events||[],function(t){return!!r.eventToPercent[t]});this.facebookPercentInView=parseInt(e.pop(),10)},e.prototype.startFacebookIA=function(){var t=this.getInViewState();this.states.hasOpened?this.states.isReplay&&this.responsive&&this.responsive.setResponsive():(this.formatConfig.launch.isAuto()||this.formatConfig.launch.isThreshold()&&t)&&this.openFormat(),this.states.hasStarted||(!this.formatConfig.videoStart.isThreshold()||t||this.formatConfig.smartPosition.isEnabled()||this.states.isReplay)&&this.vpaidAd.startAd(),this.manageInView(t)},e.prototype.setRealVisibilityInterval=function(){var t=this;this.realVisibilityInterval=w.setInterval(function(){return t.checkRealVisibility()},250)},e.prototype.checkRealVisibility=function(){if(!this.isFullscreen()&&!this.isVerticalLandscape()){this.smartPositionHelper&&this.smartPositionHelper.onScroll();var t=this.getInViewState();this.trackAdCall(t),this.states.isReady&&(this.states.hasOpened?this.states.hasOpened&&!this.states.hasStopped&&(this.states.hasStarted?this.manageInView(t):(this.viewabilityTagsHelper.onScroll(),this.canStart(t)&&this.vpaidAd.startAd())):this.isVisible()&&(this.formatConfig.launch.isAuto()||this.formatConfig.launch.isThreshold()&&t)&&this.openFormat())}},e.prototype.pauseAdIfShouldNotBePlaying=function(){if(this.states.isPlaying){var t=this.getInViewState();if(!(this.states.hasStarted?this.canPlay(t):this.canStart(t))&&(this.isInView=!1,this.requestPauseAd(),!this.hasLoggedPlayProblem)){this.hasLoggedPlayProblem=!0;var e="0",n="0";this.linearAd&&(n=this.linearAd.id?this.linearAd.id:"0",e=this.linearAd.creativeId?this.linearAd.creativeId:"0"),A.a.sendInfo({pid:this.placement.pid,cpid:n,crid:e})}}},e.prototype.isVerticalLandscape=function(){return this.isVertical&&this.responsive&&this.responsive.isLandscape},e.prototype.loadAdVerificationScripts=function(t){var e=this;t.getExtension(E.a.AD_VERIFICATIONS).map(function(e){return t.retrieveCreativePrefetchAdVerificationScriptUrls(e)}).map(function(t){var n=e.getFunnelMacros();return c.map(t,function(t){var e=t.vendor,i=t.url;return{vendor:e,url:l.h(n)(i)}})}).forEach(function(t){e.viewabilityTagsHelper.onceThresholdReached(function(){c.forEach(t,function(t){var n=t.vendor,i=t.url,o=document.createElement("script");o.type="text/javascript",o.src=i,o.async=!0,"DoubleVerify"===n?e.playerContainer.parentElement.appendChild(o):e.playerContainer.insertBefore(o,e.playerContainer.firstChild)})})})},e}(i.a);e.a=T},function(t,e,n){function i(t,e){var n={},i=function(t,e){n[t]||(n[t]={origins:[e],count:0}),n[t].count++,O.includes(n[t].origins,e)||n[t].origins.push(e)};O.forEach(t.mediaFiles,function(t){return i(Object(c.parse)(t.url).hostname,a.MediaFile)}),O.forEach(t.wrappers,function(t){return i(Object(c.parse)(t).hostname,a.WrapperUrl)}),t.url&&i(Object(c.parse)(t.url).hostname,a.VastUrl);for(var o in t.tracking)t.tracking.hasOwnProperty(o)&&O.forEach(t.tracking[o],function(t){return i(Object(c.parse)(t.url).hostname,a.Tracking)});return O.forEach(t.extensions,function(t){switch(t.type){case g.a.MOAT_JS:i(("https:"===Object(u.getProtocol)()?"z":"js")+".moatads.com",a.Extension);break;case g.a.AD_VERIFICATIONS:var n=e.getPlugin("Extensions"),o=n.retrieveCreativePrefetchAdVerificationScriptUrls(t);O.forEach(o,function(t){var e=t.url;return i(Object(c.parse)(e).hostname,a.Extension)})}}),n}function o(t,e){if(O.some(t,F.c.isPlayableVideo))for(var n in e)if(e.hasOwnProperty(n)){var i=1===e[n].origins.length&&e[n].origins[0]===a.Extension;i||M.a.sendRaw("v-do g="+M.a.businessIds.gid+";s="+M.a.businessIds.sid+";d="+n+";c="+e[n].count,.01)}}function r(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(Y({hostname:n},t[n]));window.teads.vastDomains=e}n.d(e,"a",function(){return K});var a,s=n(310),c=n(13),u=n(0),d=n(245),l=n(1),p=n(311),h=n(312),f=n(313),g=n(86),m=n(92),v=n(314),y=n(27),b=n(263),A=n(50),E=n(29),w=n(44),_=n(192),C=n(5),S=n(3),T=n(20),O=n(2),I=n(7),P=n(269),k=n(270),L=n(421),x=n(293),R=n(28),D=n(4),N=n(165),V=n(163),M=n(59),F=n(88),U=n(164),j=n(11),B=n(22),W=n(6),H=n(91),G=n(196),z=n(191),Y=this&&this.__assign||Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},K=function(){function t(t,e,n,i){this.placement=t,this.formatConfig=e,this.player=n,this.slotType=i,this.states={hasOpened:!1,isReady:!1,hasStarted:!1,hasStopped:!1,hasCompleted:!1,isReplay:!1,isPlaying:!1,isCollapsed:!1,shouldBePaused:!1},this.hasMoatExtension=!1,this.adWidth=0,this.adHeight=0,this.adDuration=-2,this.adRemainingTime=NaN,this.isVertical=!1,this.campaignToTest=/^(29690|29686|30201|31079|29605|25615|31856|33457)$/,this.wigoi=null,this.logger=new l.a("format"),this.logger.debug("new",e.formatName.get()),this.linearAd=this.player?this.player.getLinearAd():null,this.hasMoatExtension=!!this.player&&this.player.hasMoatExtension(this.linearAd),_.setCreativeInformation(this.linearAd),this.parentContainer=this.placement.getParentContainer(),this.playerContainer=this.placement.getPlayerContainer(),this.win=t.placementConfig.parentWindow.getWindow(),this.eventListenerManager=new y.a,this.volumeController=new v.a,this.viewabilityTagsHelper=new f.a(D.b.of(this.formatConfig.insertionId),this.formatConfig.connectionId,this.formatConfig.adType,this.playerContainer,this.win),this.initComponents(),this.player?this.vpaidApi=this.player.getConfig().vpaidApi:this.vpaidApi=new b.a(t,this.formatConfig)}return t.prototype.setWigoi=function(t){this.wigoi=t},t.prototype.getWigoi=function(){return this.wigoi},t.prototype.initComponents=function(){var t=this,e=this.placement.getElectedSlot();if(!e)return void this.logger.debug("Could not init components because no elected slot");var n=(C.getDocument(e.getElement()),new P.a(this.formatConfig.label)),i=new k.a(this.formatConfig.credits),o={label:n,credits:i};if((this.formatConfig.smartPosition.isEnabled()||"corner"===this.slotType)&&(o.smartHeader=new x.a),!this.placement.isSliderEnabled()){o.adChoices=new L.a(Object(U.b)(this.linearAd));var r=this.formatConfig.formatName.isInBoard()||this.formatConfig.smartPosition.isTop()||!this.formatConfig.label.isEnabled()?m.a.IN:m.a.OUT;r===m.a.OUT&&this.playerContainer.parentNode.insertBefore(o.adChoices.getElement(),this.playerContainer),D.b.of(this.player).forEach(function(t){return t.getConfig().adChoicesIconLocation=r})}this.components=new h.a(o),function(e){for(var n in e)D.b.of(e[n]).filter(function(t){return!!t.getHTML()}).filter(function(t){return!!t.getCSS()}).forEach(function(e){return z.embedCSS(e.getCSS(),t.win,"teads-inline-"+Math.ceil(1e4*Math.random()))})}(o),n.getHTML()&&!this.placement.isSliderEnabled()&&this.playerContainer.parentNode.insertBefore(n.getElement(),this.playerContainer),i.getHTML()&&!this.placement.isSliderEnabled()&&this.playerContainer.parentNode.appendChild(i.getElement()),this.components.hideAllComponents(),this.placement.placementConfig.css.applyRulesOn(this.parentContainer)},t.prototype.getBrandingMode=function(){return this.brandingMode},t.prototype.getTemplateName=function(){throw new Error("getTemplateName must be implemented in child class")},t.prototype.getVpaidAd=function(){return this.vpaidAd},t.prototype.getVolumeController=function(){return this.volumeController},t.prototype.getFullscreenHelper=function(){return this.fullscreenHelper},t.prototype.exit=function(t){var e=this;switch(this.vpaidAd&&this.vpaidAd.stopAd(),this.smartPositionHelper&&this.smartPositionHelper.deinit(),this.eventListenerManager.removeAll(),this.vpaidApi&&this.vpaidApi.close(),this.responsive&&this.responsive.unsetResponsive(),this.parentContainer&&this.parentContainer.parentNode&&R.setTimeout(function(){e.parentContainer&&e.parentContainer.parentNode&&(e.parentContainer.parentNode.removeChild(e.parentContainer),e.unsetVisibility())},2e3),t){case d.a.AdSuccess:this.logger.info("Format successfully exited after displaying an ad");break;case d.a.NoAdSuccess:this.logger.info("Format successfully exited without displaying an ad");break;case d.a.MoatNotVisibleAdSuccess:this.logger.info("Format successfully exited because the VAST contains a MOAT extension while the player is hidden by CSS");break;case d.a.AdError:this.logger.error("Format exited with an ad error");break;case d.a.ResizeAmpError:this.logger.error("Format exited due to resize denied on opening by AMP framework");break;case d.a.ReplayError:this.logger.error("Format exited due to an exception thrown during replay");break;default:this.logger.warn("Format exited with unknown status")}for(var n=N.d[this.formatConfig.formatName.get()],i=0,o=n.length;i<o;i++)if(n[i]===this){n.splice(i,1);break}S.isAmp()&&(t!==d.a.NoAdSuccess?_.clean():this.placement.placementConfig.fallback.hasValue()||(_.clean(),_.reportRenderedEntityIdentifier())),S.isIABSafeFrame()&&V.close()},t.prototype.getCurrentTime=function(){return this.adDuration>0&&this.adRemainingTime>=0?this.adDuration-this.adRemainingTime:0},t.prototype.getEnvironmentVars=function(){return this.vpaidAd&&this.vpaidAd.getTeadsEnvironmentVars()||{}},t.prototype.load=function(t,e){var n=this,i=function(t){n.logger.error("VPAID play:",t),M.a.sendError({pid:n.placement.pid,cid:n.vpaidApi.getContextData()?n.vpaidApi.getContextData().tracking.cid:void 0,scid:n.vpaidApi.getContextData()?n.vpaidApi.getContextData().tracking.studio_cid:void 0,message:"Error when loading mediafile|"+t.getFullMessage().substr(0,120)}),e&&e(t)},o=function(e,i){n.vpaidAd=e,n.initAdConfig=i,t&&(n.formatConfig.callbacks.trigger("adAvailable"),t());var o=F.c.getMediaFileRatioLog(n.player.getMediafile(),n.placement.pid,D.b.of(n.formatConfig.adSourceId));M.a.sendInfo(o)},r=function(t){return n.placement.placementConfig.allowedRatio.mediafileRatioIsValid(t)};!this.player&&t?t():this.mediafile?this.player.loadMediaFile(this.mediafile,o,i):this.player.loadOptimalMediaFile(o,i,r)},t.prototype.close=function(t){var e=this;this.states.hasStopped||(this.states.hasStopped=!0,!this.states.hasOpened||T.isLowerOrEqual(S.getIEVersion(),"9")||S.isAmp()||this.states.isCollapsed?(this.collapse(),this.exit(t)):(this.eventListenerManager.addMultiple(["transitionend","otransitionend","oTransitionEnd","webkitTransitionEnd"],this.parentContainer,function(){return e.exit(t)}),this.collapse()))},t.prototype.collapse=function(){this.states.isCollapsed||(this.states.isCollapsed=!0,this.components.hideAllComponents(),this.formatConfig.animations.setCollapseDuration(this.parentContainer),this.parentContainer.style.setProperty("height","0"))},t.prototype.start=function(){this.components.showAllComponents(),this.addCustomTracking(window._ttc),this.logger.debug("VPAID started",this.vpaidAd,this.initAdConfig),this.mediafile=this.player.getMediafile(),this.onVpaidReady(),this.placement.placementTracker.handleInitAdTimingMark(this.vpaidAd),this.vpaidAd.initAd(this.initAdConfig.width,this.initAdConfig.height,this.initAdConfig.mode,this.initAdConfig.bitrate,this.initAdConfig.parameters)},t.prototype.onAdLoaded=function(){var t=this;this.states.isReady=!0;var e=i(this.linearAd,this.player);o(this.linearAd.mediaFiles,e),r(e);var n=C.findChildWindows(this.parentContainer,!0);O.forEach(n,function(e){s.a(e,M.a,t.placement.pid)}),S.isAmp()&&!_.isOpen()&&(M.a.sendInfo("AMP resize open request"),_.renderStart(),_.open(this.fitContainerToContent(!0),function(e){if(!e){t.close(d.a.ResizeAmpError),t.unlistenAmp();var n="AMP resize open request denied";M.a.sendInfo(n),t.logger.info("AdLoaded",n),t.wigoi&&t.wigoi.valid(3,4,n,E.c.infoType.ERROR)}},function(){var t=window._teads_amp.change;return!(t.boundingClientRect.top>=t.rootBounds.height)})),this.volumeController.mute(),this.updateAdSize(),this.vpaidAd.render(this.vpaidAd.getVPAID())},t.prototype.onAdVideoStart=function(){this.states.hasCompleted=!1,this.states.isPlaying=!0,this.volumeController.onAdVideoStart()},t.prototype.onAdStarted=function(){this.states.hasStarted=!0,this.vpaidApi.getStudioData()?this.brandingMode.deinit():this.brandingMode.init(),this.placement.placementConfig.capping.record(),this.volumeController.mute(),this.updateAdSize(),this.states.shouldBePaused&&this.requestPauseAd()},t.prototype.onAdPaused=function(){this.states.isPlaying=!1},t.prototype.onAdPlaying=function(){this.states.isPlaying=!0},t.prototype.onAdStopped=function(){this.states.isPlaying=!1,this.close(d.a.AdSuccess)},t.prototype.onAdSkipped=function(){this.collapse()},t.prototype.onAdVideoComplete=function(){this.states.hasCompleted=!0},t.prototype.onAdError=function(t){var e="string"==typeof t?t:t.message?t.message:j.stringify(t),n=this.player.getLinearAd();M.a.sendError({aid:n?n.id:-1,pid:this.placement.pid,cid:this.vpaidApi.getContextData()?this.vpaidApi.getContextData().tracking.cid:void 0,scid:this.vpaidApi.getContextData()?this.vpaidApi.getContextData().tracking.studio_cid:void 0,message:"AdError: "+e}),this.logger.error("AdError:",e),this.close(d.a.AdError)},t.prototype.onAdSizeChange=function(){this.updateAdSize(),this.updateParentContainerClass()},t.prototype.onAdRemainingTimeChange=function(){this.adRemainingTime=this.vpaidAd.getAdRemainingTime()},t.prototype.onAdDurationChange=function(){this.adDuration=this.vpaidAd.getAdDuration(),this.onAdRemainingTimeChange()},t.prototype.onCollapseRequest=function(){this.formatConfig.callbacks.trigger("CollapseRequest"),this.collapse()},t.prototype.onSoundToggleRequest=function(){var t=this,e=this.getEnvironmentVars();e.videoSlot&&e.videoSlot.audio&&!e.videoSlot.audio.authorized?e.videoSlot.audio.authorizeAudio(function(){return t.volumeController.toggleVolume()}):this.volumeController.toggleVolume()},t.prototype.onReplayRequest=function(){this.replay(),M.a.sendInfo("click-replay "+S.getContextSummary(),null,1)},t.prototype.onEndscreenInit=function(){this.getInViewState()||(this.logger.debug("The video completed but it's not in view, pause it."),this.requestPauseAd()),this.visibility&&!this.visibility.isEnabled()&&(this.visibility.enable(),this.visibility.isVisible()||this.onHidden())},t.prototype.onVisible=function(){if(this.logger.debug("Format is visible",this.playerContainer.id),!this.states.hasStopped&&this.states.hasOpened&&this.states.hasStarted){var t=void 0;t=this.formatConfig.videoPause.isThreshold()||this.states.hasCompleted?!this.getInViewState():!this.formatConfig.videoPause.isNo(),t||this.requestResumeAd(),this.logger.debug("onVisible mustPause",t)}},t.prototype.onHidden=function(){this.logger.debug("Format is hidden",this.playerContainer.id),this.states.hasStarted&&this.states.isPlaying&&(!this.formatConfig.videoPause.isNo()||this.states.hasCompleted?this.requestPauseAd():!this.formatConfig.soundMute.isNo()&&this.volumeController.getVolume()>0&&this.volumeController.mute())},t.prototype.initInternalResponsive=function(){this.player&&this.vpaidAd&&(this.player.getPlugin("Responsive").deinit(),this.responsive=new p.a(this),this.responsive.resizeOnStart())},t.prototype.onVpaidReady=function(){var e=this;this.initInternalResponsive(),this.isVertical=this.player.getMediafile().height>t.VERTICAL_MARGIN*this.player.getMediafile().width,this.volumeController.init(this),this.visibility=A.a.listenWindow(this.win,function(){return e.onVisible()},function(){return e.onHidden()}),this.vpaidAd.subscribe(function(){return e.onAdLoaded()},W.a.AdLoaded),this.vpaidAd.subscribe(function(){return e.onAdVideoStart()},W.a.AdVideoStart),this.vpaidAd.subscribe(function(){return e.onAdStarted()},W.a.AdStarted),this.vpaidAd.subscribe(function(){return e.onAdPaused()},W.a.AdPaused),this.vpaidAd.subscribe(function(){return e.onAdPlaying()},W.a.AdPlaying),this.vpaidAd.subscribe(function(){return e.onAdSizeChange()},W.a.AdSizeChange),this.vpaidAd.subscribe(function(){return e.onAdDurationChange()},W.a.AdDurationChange),this.vpaidAd.subscribe(function(){return e.onAdRemainingTimeChange()},W.a.AdRemainingTimeChange),this.vpaidAd.subscribe(function(){return e.onAdVideoComplete()},W.a.AdVideoComplete),this.vpaidAd.subscribe(function(){return e.onAdStopped()},W.a.AdStopped),this.vpaidAd.subscribe(function(){return e.onAdSkipped()},W.a.AdSkipped),this.vpaidAd.subscribe(function(t){return e.onAdError(t)},W.a.AdError);var n=this;for(var i in W.a)!function(t){W.a.hasOwnProperty(t)&&n.vpaidAd.subscribe(function(){e.formatConfig.callbacks.trigger(t,e.volumeController,e.fullscreenHelper)},t)}(i);this.linearAd.clickThrough&&this.linearAd.clickThrough.length&&this.vpaidAd.subscribe(function(){e.onHidden()},W.a.AdClickThru),this.vpaidAd.subscribe(function(){return e.onCollapseRequest()},B.a.CollapseRequest),this.vpaidAd.subscribe(function(){return e.onSoundToggleRequest()},B.a.SoundToggleRequest),this.vpaidAd.subscribe(function(){return e.onReplayRequest()},B.a.ReplayRequest),this.vpaidAd.subscribe(function(){return e.onEndscreenInit()},B.a.EndscreenInit),this.formatConfig.vtpEvent.getEvent()&&this.vpaidAd.subscribe(function(){return e.onVtpEvent()},this.formatConfig.vtpEvent.getEvent())},t.prototype.triggerOnVtpEvent=function(){this.formatConfig.videoPause.setToNo(),this.states.isPlaying||this.requestResumeAd()},t.prototype.onVtpEvent=function(){if(!this.formatConfig.videoPause.isNo())if(this.formatConfig.vtpEvent.getEvent()===W.a.AdRemainingTimeChange){var t=this.vpaidAd.getAdDuration(),e=this.vpaidAd.getAdRemainingTime(),n=Math.floor(t-e);!isNaN(n)&&n>0&&n>=this.formatConfig.vtpEvent.getOffset()&&this.triggerOnVtpEvent()}else this.triggerOnVtpEvent()},t.prototype.updateAdSize=function(){this.adWidth=this.vpaidAd.getAdWidth(),this.adHeight=this.vpaidAd.getAdHeight()},t.prototype.updateParentContainerClass=function(){var t=this;if(this.vpaidAd){var e=I.getBoundingClientRect(this.parentContainer).width;O.forEach([w.RESPONSIVE.xs.className,w.RESPONSIVE.sm.className],function(e){C.removeClass(t.parentContainer,e)}),e<=w.RESPONSIVE.xs.size?C.addClass(this.parentContainer,w.RESPONSIVE.xs.className):e<=w.RESPONSIVE.sm.size&&C.addClass(this.parentContainer,w.RESPONSIVE.sm.className)}},t.prototype.replay=function(){var t=this;this.logger.debug("replay called"),this.placement.placementTracker.track("click-replay"),M.a.sendInfo("click-replay "+S.getContextSummary(),!0),this.volumeController.replay();try{this.player.getPlugin("Responsive").unsetResponsive(),this.player.setLinearAd(this.linearAd),this.responsive&&this.responsive.unsetResponsive(),this.unsetVisibility(),this.states.isReady=!0,this.states.hasOpened=!0,this.states.hasStarted=!1,this.states.hasStopped=!1,this.states.hasCompleted=!1,this.states.isReplay=!0,this.vpaidAd=null,H.a.hasLogged=[],S.isDesktop()&&this.formatConfig.videoStart.isClick()&&(this.formatConfig.videoStart=new G.a(G.a.DEFAULT,this.formatConfig.formatName)),this.load(function(){return t.start()})}catch(t){this.logger.error("Replay callback threw an exception",t),this.close(d.a.ReplayError)}},t.prototype.unsetVisibility=function(){this.visibility&&(this.visibility.destroy(),this.visibility=null)},t.prototype.isVisible=function(){return S.isAmp()?!!this.visibility&&(this.visibility.isVisible()&&_.isOpen()):!this.visibility||!this.visibility.isEnabled()||this.visibility.isVisible()},t.prototype.getMoatInViewState=function(){var t=!0;return S.isFacebookIA()||S.isAmp()||S.isIABSafeFrame()||(t=C.getRealVisibilityState(this.playerContainer)&&this.isVisible()),t},t.prototype.getInViewState=function(){return this.getViewportInViewState()&&this.getMoatInViewState()},t.prototype.clearRealVisibilityInterval=function(){this.realVisibilityInterval&&this.realVisibilityInterval.clear()},t.prototype.requestPauseAd=function(){this.states.hasStarted?this.vpaidAd.pauseAd():this.states.shouldBePaused=!0},t.prototype.requestResumeAd=function(){this.states.hasStarted?this.vpaidAd.resumeAd():this.states.shouldBePaused=!1},t.prototype.addCustomTracking=function(t){var e=this;void 0===t&&(t={});var n=this.player.getPlugin("Tracker"),i=n.getTracker();for(var o in t)if(t.hasOwnProperty(o)){var r=t[o].trackings||[];O.forEach(r,function(t){var n=t.event;"progress"!==n?i.addResource(n,t.url):e.logger.warn("Custom tracking cannot be handled",t)})}},t.VERTICAL_MARGIN=1.05,t}();!function(t){t.MediaFile="mediafile",t.VastUrl="vasturl",t.WrapperUrl="wrapperurl",t.Tracking="tracking",t.Extension="extension"}(a||(a={}))},function(t,e,n){var i=n(151),o=n(166),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(e){var n=t.call(this,"teads-ui-components-label",o.LABELCSS)||this;return n.label=e,n.innerHTML=n.label.getText(),n.initElement(),n}return r(e,t),e.prototype.isEnabled=function(){return this.label.isEnabled()},e}(i.a);e.a=a},function(t,e,n){var i=n(151),o=n(166),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(e){var n=t.call(this,"teads-ui-components-credits",o.CREDITSCSS)||this;n.config=e;var i=/\[([^\]]*)\]/g,r=n.config.getText().replace(i,'<span class="teads-ui-components-credits-colored">$1</span>'),a=n.config.getLink()||"http://teads.tv/en";return n.innerHTML='<a href="'+a+'" rel="nofollow" target="_blank">'+r+"</a>",n.initElement(),n}return r(e,t),e.prototype.isEnabled=function(){return this.config.isEnabled()},e}(i.a);e.a=a},function(t,e,n){n.d(e,"a",function(){return l});var i=n(44),o=n(27),r=n(1),a=n(6),s=n(3),c=n(2),u=n(5),d=n(7),l=function(){function t(t,e,n,d,l,p){var h=this;if(this.formatContainer=t,this.vpaidAd=e,this.components=n,this.responsive=d,this.win=l,this.fullscreenElement=p,this.originalVpaidSize={width:0,height:0},this.fullscreenFormatStyle={width:"100%",height:"100%",top:"0",left:"0",position:"fixed","z-index":String(i.MAX_Z_INDEX_VALUE),"background-color":"#000000",margin:"0","max-width":"none",padding:"0"},this.originalFormatStyle={width:"",height:"",top:"",left:"",position:"","z-index":"","background-color":"",margin:"","max-width":"",padding:""},this.canvasTag=null,this.active=!1,this.isVideoPaused=!1,this.wasVideoPaused=!1,this.eventListenerManager=new o.a,this.beforeOpenEventListeners=[],this.closeEventListeners=[],this.logger=new r.a("FullscreenHelper"),this.parentsPropertiesList=[],this.logger.debug("new"),this.vpaidAd.subscribe(function(){return h.isVideoPaused=!0},a.a.AdPaused),this.vpaidAd.subscribe(function(){return h.isVideoPaused=!1},a.a.AdPlaying),!s.isIos()){var f=["webkitfullscreenchange","mozfullscreenchange","fullscreenchange","MSFullscreenChange"];this.eventListenerManager.addMultiple(f,this.win,function(t){u.isFullscreen(h.win.document)?h.vpaidAd.resizeAd(h.win.screen.width,h.win.screen.height,"fullscreen"):(c.forEach(h.closeEventListeners,function(t){t()}),h.close())}),this.vpaidAd.subscribe(function(){return h.eventListenerManager.removeMultiple(f)},a.a.AdStopped)}if(this.responsive&&this.responsive.addOrientationChangeListener(function(){return h.handleOrientationChange()}),s.isIos()){var g=this.vpaidAd.getCreativeContainer();g&&g.contentWindow&&this.eventListenerManager.add("touchmove",g.contentWindow,function(t){h.isActive()&&t.preventDefault()})}}return t.getPropertyToSave=function(t,e){return{name:e,value:t.style.getPropertyValue(e),priority:t.style.getPropertyPriority(e)}},t.prototype.handleOrientationChange=function(){this.active&&(this.logger.debug("orientation change, resizeAd"),this.responsive.resize(!0))},t.prototype.isActive=function(){return this.active},t.prototype.init=function(t){this.vpaidEnvironmentVars=t,this.vpaidEnvironmentVars.videoSlot&&(this.canvasTag=this.vpaidEnvironmentVars.videoSlot.canvas)},t.prototype.addBeforeOpenEventListener=function(t){c.indexOf(this.beforeOpenEventListeners,t)<0&&this.beforeOpenEventListeners.push(t)},t.prototype.addCloseEventListener=function(t){c.indexOf(this.closeEventListeners,t)<0&&this.closeEventListeners.push(t)},t.prototype.open=function(){this.active||(this.active=!0,c.forEach(this.beforeOpenEventListeners,function(t){t()}),u.addClass(this.vpaidAd.getMainComponentsContainer(),"fullscreen"),s.isIos()?(this.overrideParentsProperties(),this.originalVpaidSize.width=Object(d.getBoundingClientRect)(this.formatContainer).width,this.originalVpaidSize.height=this.vpaidAd.getAdHeight(),u.addClass(this.formatContainer,"no-transition"),this.applyStyleRules(),this.components.hideAllComponents()):u.openFullscreen(this.fullscreenElement),this.responsive.resize(!0),this.isVideoPaused?(this.vpaidAd.resumeAd(),this.wasVideoPaused=!0):this.wasVideoPaused=!1)},t.prototype.close=function(){var t=this;this.active&&(u.removeClass(this.vpaidAd.getMainComponentsContainer(),"fullscreen"),s.isIos()?(this.restoreParentsProperties(),u.removeClass(this.formatContainer,"no-transition"),this.components.showAllComponents(),this.restoreStyleRules()):s.isAndroid()?setTimeout(function(){return u.closeFullscreen(t.vpaidAd.getContainer())},100):u.closeFullscreen(this.fullscreenElement),this.wasVideoPaused&&this.vpaidAd.pauseAd(),this.active=!1,this.responsive.resize(!0),this.canvasTag&&this.resetCanvas(),c.forEach(this.closeEventListeners,function(t){t()}))},t.prototype.applyStyleRules=function(){for(var t in this.originalFormatStyle)this.originalFormatStyle.hasOwnProperty(t)&&(this.originalFormatStyle[t]=this.formatContainer.style.getPropertyValue(t));for(var t in this.fullscreenFormatStyle)this.fullscreenFormatStyle.hasOwnProperty(t)&&this.formatContainer.style.setProperty(t,this.fullscreenFormatStyle[t])},t.prototype.restoreStyleRules=function(){for(var t in this.originalFormatStyle)this.originalFormatStyle.hasOwnProperty(t)&&this.formatContainer.style.setProperty(t,this.originalFormatStyle[t])},t.prototype.resetCanvas=function(){this.logger.debug("reset canvas"),this.canvasTag.style.setProperty("position","relative"),this.canvasTag.style.setProperty("top","0"),this.canvasTag.style.setProperty("left","0")},t.prototype.overrideParentsProperties=function(){var e=this;this.parentsPropertiesList=[];var n=u.findParentElements(this.formatContainer);c.forEach(n,function(n){var i={element:n,properties:[]},o=e.win.getComputedStyle(n);o.zIndex&&"auto"!==o.zIndex&&(i.properties.push(t.getPropertyToSave(n,"z-index")),n.style.setProperty("z-index","auto","important"));var r=["transform","-webkit-transform","transition","-webkit-transition"];c.forEach(r,function(e){i.properties.push(t.getPropertyToSave(n,e))}),c.forEach(r,function(t){n.style.setProperty(t,"none","important")}),e.parentsPropertiesList.push(i)}),this.parentsPropertiesList.push({element:this.win.document.body,properties:[t.getPropertyToSave(this.win.document.body,"overflow")]}),this.win.document.body.style.setProperty("overflow","hidden")},t.prototype.restoreParentsProperties=function(){c.forEach(this.parentsPropertiesList,function(t){c.forEach(t.properties,function(e){t.element.style.removeProperty(e.name),t.element.style.setProperty(e.name,e.value,e.priority)})})},t}()},function(t,e,n){function i(){var t=[];for(var e in u.d)r.forEach(u.d[e],function(e){e.playerContainer&&e.getWigoi()&&t.push(e)});t.sort(function(t,e){return a.getBoundingClientRect(t.playerContainer).top-a.getBoundingClientRect(e.playerContainer).top});var n=[];try{for(var i=d(t),l=i.next();!l.done;l=i.next()){var p=l.value,h=p.getWigoi();h&&!r.includes(n,h)&&n.push(h)}}catch(t){v={error:t}}finally{try{l&&!l.done&&(y=i.return)&&y.call(i)}finally{if(v)throw v.error}}var f=Object.keys(s.a)[0];if(f&&void 0!==f)for(var g in s.a[f])Object(c.isArray)(s.a[f][g])&&r.forEach(s.a[f][g],function(t){var e=t.getWigoi();e&&!r.includes(n,e)&&n.push(e)});var m=1;for(o.c.setTotalInstances(n.length);n.length;)n.pop().moveButton(m),m+=1;var v,y}Object.defineProperty(e,"__esModule",{value:!0}),e.reorderWigoButtons=i;var o=n(29),r=n(2),a=n(7),s=n(273),c=n(0),u=n(165),d=this&&this.__values||function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}},function(t,e,n){n.d(e,"a",function(){return O}),n.d(e,"b",function(){return i}),n.d(e,"c",function(){return P});var i,o=n(310),r=n(300),a=n(1),s=n(29),c=n(61),u=n(18),d=n(4),l=n(9),p=n(0),h=n(7),f=n(8),g=n(13),m=n(2),v=n(5),y=n(59),b=n(110),A=n(44),E=n(272),w=n(257),_=n(165),C=n(320),S=this&&this.__values||function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}},T=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},O={},I={};!function(t){t[t.INIT=0]="INIT",t[t.LOADING=1]="LOADING",t[t.LOADED=2]="LOADED",t[t.SERVED=3]="SERVED",t[t.ERROR=4]="ERROR"}(i||(i={}));var P=function(){function t(e,n,o,r,s){void 0===r&&(r=!1),void 0===s&&(s=0);var u=this;this.pageId=e,this.pid=n,this.rawSettings=o,this.defer=r,this.pageIndex=s,this.doServe=!1,this.doPassback=!1,this.passbacks={beforeServe:[],afterServe:[]},this.scripts=[],this.trackings=[],this.headerBiddingContext=d.a,this.wigoi=null,this.logger=new a.a("TagManager (pageId: "+e+", placementId: "+n+")"),this.logger.debug("new placement",o),this.settings=Object(p.extend)({},o||t.defaultRawPlacement),this.settings.pid=n,this.settings.format=this.settings.format||"inread",this.settings.fallback=function(){return u.logger.debug("no ad to serve so exec passback"),u.execPassback()},this.state=i.INIT,this.headerBiddingContext=w.fromIAd(I[this.pid]),this.headerBiddingContext.nonEmpty()&&this.handleHeaderBiddingAd(),c.b.refresh(window.teads),this.handleDataInsertion(n).forEach(function(t){C.a(),g.isInternalUrl(c.b.buyingEngineUrl)||y.a.sendWarning("illegal-be-url "+n+"|"+c.b.buyingEngineUrl),u.getAd=t})}return t.replaceTimestampMacro=function(t){return f.replaceStringsWithValue(c.b.timestampMacroNames,Object(u.now)())(t)},t.getRawAdFromScript=function(t,e,n,i){return t.match({some:function(t){return h.getAndRemoveAttributeValue(t,e).match({some:function(t){var e=i(Object(d.c)({type:"VastUrl",content:c.b.buyingEngineUrl+"/"+t,insertion_id:parseInt(t,10)}));return n.debug("data-insertion handled",e),Object(d.c)(e)},none:function(){return n.error(e+" detected but the value is empty"),d.b.empty()}})},none:function(){return d.b.empty()}})},t.getStaticMediafileUrl=function(t,e){return void 0===e&&(e=null),l.c.of(function(){return t.match(e)[1]}).getOrElse(function(){return t})},t.page=function(e){return O[e]||(O[e]={placement:function(n,i,o,r){return t.placement(e,n,i,o,r)}})},t.ad=function(e,n){return I[e]&&new a.a("TagManager placementId: "+e).warn("ad settings already exist and will be overwritten",I[e],n),I[e]=n,{page:t.page}},t.placement=function(e,n,i,o,r){var a=O[e],s=a[n]||(a[n]=[]);r=d.b.of(r).getOrElse(function(){return s.length?s.length-1:0}),s[r]?i&&i!==s[r].rawSettings&&(s[r].rawSettings=i):s[r]=new t(e,n,i,o,r);var c=s[r];return c.findMatchingScript()?(c.logger.debug("found script with serve attribute -> serve it"),c.serve()):o?c.logger.debug("tag deferred"):c.load(),c},t.prototype.load=function(){var t=this;o.a(window.top,y.a,this.pid);var e=d.b.of(I[this.pid]).map(function(t){return t.headerBiddingSlotAvailableTrackUrl});return this.state!==i.INIT?(this.logger.warn("tag already loaded, loading or served",this.state),this):(this.state=i.LOADING,this.logger.debug("load: checkPlacement > checkSlot > callRAS > loadAd"),this.onReadyState(function(){t.placementTracker=_.f.initTracker(t.pageId,t.pid,t.headerBiddingContext),t.placementTracker?(t.trackings=t.findCustomTracking(t.scripts),t.fillCustomTracking(t.trackings,b.a.format,t.placementTracker.tracker),t.adInfos=_.f.checkPlacement(t.settings,t.pageId,t.placementTracker,t.headerBiddingContext,d.b.of(I[t.pid]).map(function(t){return t.headerBiddingProvider})),t.adInfos?(t.adInfos.placement&&(t.wigoi=t.adInfos.placement.getWigoi(),d.b.of(I[t.pid]).map(function(t){return t.wigoEnabled}).filter(function(t){return!0===t}).forEach(function(){t.wigoi.enableWigo()})),t.logger.debug("load -> checkPlacement ok"),t.adInfos=_.f.checkSlot(t.adInfos,e),t.adInfos?(t.logger.debug("load -> checkSlot ok"),t.adInfos.ad=t.getAd,_.f.callRAS(t.adInfos,t.pageId,function(e){t.logger.debug("load -> callRAS",t.getAd?"bypassed by data-insertion":"ok"),t.adInfos=e,t.sendTagToWigo(),_.f.loadAd(e,function(n,i,o){t.logger.debug("load -> loadAd",n?"ok":"noAd"),t.loadFormat(e,n,i,o,function(){t.doServe?t.serve():t.logger.debug("waiting for serve")})})})):(t.logger.debug("load - checkSlot failure"),t.state=i.ERROR)):(t.logger.debug("load - placement failure"),t.state=i.ERROR)):(t.logger.debug("load - tracker init failure"),t.state=i.ERROR)}),this)},t.prototype.serve=function(){var t=this;switch(this.state){case i.ERROR:this.state=i.SERVED,this.logger.warn("serve - this placement cannot be served - state = ERROR");break;case i.SERVED:this.logger.warn("already served - reload and serve it again"),t=this.reload().serve();break;case i.INIT:this.doServe=!0,this.logger.debug("load before serve (defer)",this.adInfos),this.load();break;case i.LOADING:this.logger.warn("serve - the tag is currently loading"),this.doServe=!0;break;case i.LOADED:this.state=i.SERVED,this.logger.debug("serve",this.adInfos);var e=this.adInfos.placement.getFormat();e&&e.start(),this.logger.debug("ad successfully served"),this.vastPlayer&&this.vastPlayer.getMediafile()&&!this.isSameAd()||(this.logger.debug("serve - no ad to serve so exec passback"),this.execPassback())}return t},t.prototype.reload=function(){return Object(_.e)(this.pageId).placement(this.pid,this.rawSettings,this.defer,this.pageIndex+1)},t.prototype.passback=function(t,e){return void 0===e&&(e=!1),this.state!==i.SERVED||e?(m.includes(this.passbacks.afterServe,t)?this.logger.warn("passback - signature was already appended to the passback list",t,this.passbacks.afterServe):"function"==typeof t?(this.passbacks.afterServe.push(t),this.logger.debug("passback - pushed to the list",t),e&&(this.passbacks.beforeServe.push(t),this.logger.debug("passback - pushed to the *before serve* list too")),this.doPassback&&(this.logger.debug("passback - execPassback already called with no passback to exec, call it again"),this.doPassback=!1,this.execPassback())):this.logger.warn("passback - must be a function"),this):this.reload().passback(t)},t.prototype.getWigoi=function(){return this.wigoi},t.prototype.loadFormat=function(t,e,n,o,r){var a=this;this.formatConfig=e||t.placement.handleNoAd(),this.vastPlayer=n,this.displayAd=o,this.wigoi&&e&&this.wigoi.setStatus(!0,"Ready to serve"),E.reorderWigoButtons(),this.formatConfig?(this.adInfos.placement.initDom(this.adInfos.placement.electedSlot),this.adInfos.placement.initFormatInstance(this.vastPlayer,this.formatConfig,this.displayAd),this.adInfos.placement.getFormat().load(function(){a.vastPlayer&&(a.isSameAd()?(a.logger.error("same ad detected"),a.placementTracker.track(A.TRACKING.adAvailable.error.sameAd),a.formatConfig=a.adInfos.placement.handleNoAd(),a.adInfos.placement.initFormatInstance(a.vastPlayer,a.formatConfig,a.displayAd)):(a.placementTracker.track(A.TRACKING.adAvailable.success),a.fillCustomTracking(a.trackings,b.a.vast,a.vastPlayer.getPlugin("Tracker").getTracker()))),a.state=i.LOADED,Object(p.isFunction)(r)&&r()},function(t){a.state=i.LOADED,a.placementTracker.track(A.TRACKING.adAvailable.error.vast.replace(/\{code\}$/,String(t.getId()))),a.adInfos.placement.handleNoAd(),r()})):Object(p.isFunction)(r)&&(this.state=i.LOADED,r())},t.prototype.execPassback=function(){var t,e=this;switch(this.state){case i.SERVED:t=this.passbacks.afterServe,this.logger.debug("exec passback - after serve");break;default:t=this.passbacks.beforeServe,this.logger.debug("exec passback - before serve")}if(t.length){var n=t.shift();return this.logger.debug("exec passback -",n),n(function(){return e.execPassback()}),this.doPassback=!1,null}return this.logger.debug("exec passback - no passback to exec"),this.doPassback=!0,this.passbacks.afterServe.length?null:A.INTERNAL_PASSBACK_NO_PASSBACK},t.prototype.findMatchingScript=function(){var t=!1,e=v.findAllWindows(document.body);try{for(var n=S(e),i=n.next();!i.done;i=n.next())for(var o=i.value,r=h.querySelectorAll("script.teads",o),a=0;a<r.length;a++){this.scripts.push(r[a]);var s=r[a]?r[a].getAttribute("data-serve"):"";s&&s.match(this.pid.toString())&&(r[a].setAttribute("data-serve",s.replace(this.pid.toString(),"")),t=!0)}}catch(t){c={error:t}}finally{try{i&&!i.done&&(u=n.return)&&u.call(n)}finally{if(c)throw c.error}}return t;var c,u},t.prototype.constructAdSettings=function(e){return void 0===e&&(e=d.b.empty()),Object(p.extend)(t.defaultAdsSettings,e.getOrElse(function(){return{}}),{settings:{values:{pageId:this.pageId,placementId:this.pid,placementFormat:this.settings.format}}},I[this.pid])},t.prototype.handleHeaderBiddingAd=function(){this.getAd=this.constructAdSettings()},t.prototype.handleDataInsertion=function(e){var n="data-insertion-"+e,i=v.findAllWindows(document.body),o=h.findMatchingElement(m.map(i,function(t){return t.document}),"script.teads["+n+"]");return t.getRawAdFromScript(o,n,this.logger,this.constructAdSettings.bind(this))},t.prototype.findCustomTracking=function(t){var e=[];try{for(var n=S(t),i=n.next();!i.done;i=n.next()){var o=i.value,r=h.getOuterHTML(o)||"",a=r.match(new RegExp('data-tracking(?:-(\\d+))?-([^=]+)="([^"]+)"',"g"))||[];try{for(var s=S(a),c=s.next();!c.done;c=s.next()){var u=c.value,d=u.match(new RegExp('data-tracking(?:-(\\d+))?-([^=]+)="([^"]+)"'));if(4===d.length){var l=T(d,4),p=l[1],f=l[2],g=l[3];(p&&Number(p)===this.pid||!p)&&(this.logger.debug("find custom tracking (event, url, pid)",f,g,p),e.push({event:f,url:g}),p&&o.removeAttribute("data-tracking-"+f+"-"+p))}else this.logger.debug('error on data-tracking extraction, 3 args expected (["all", "key", "value"])',d)}}catch(t){y={error:t}}finally{try{c&&!c.done&&(b=s.return)&&b.call(s)}finally{if(y)throw y.error}}}}catch(t){m={error:t}}finally{try{i&&!i.done&&(v=n.return)&&v.call(n)}finally{if(m)throw m.error}}return e;var m,v,y,b},t.prototype.fillCustomTracking=function(e,n,i){var o=this;try{for(var r=S(e),a=r.next();!a.done;a=r.next()){var s=a.value;!function(e){var r=/(progress)-(\d+)/,a=T(e.event.match(r)||["","",""],3),s=a[1],c=a[2],u=m.find(n,function(t){return t.name.toLowerCase()===s||t.name.toLowerCase()===e.event.toLowerCase()});u&&(e.url=t.replaceTimestampMacro(e.url),i.addResource(u.name,e.url,Number(c)),o.logger.debug("fill custom tracking (tracking.name, url, offset)",u.name,e.url,Number(c)))}(s)}}catch(t){c={error:t}}finally{try{a&&!a.done&&(u=r.return)&&u.call(r)}finally{if(c)throw c.error}}var c,u},t.prototype.avoidSameAd=function(){var e=!1,n=[];for(var i in O[this.pageId])if("placement"!==i&&O[this.pageId][i].length)try{for(var o=S(O[this.pageId][i]),r=o.next();!r.done;r=o.next()){var a=r.value,s=a.vastPlayer,c=s?s.getMediafile():null;if(s&&c&&a!==this){var u=t.getStaticMediafileUrl(c.url,A.DBM_UNIQUE_ID_PATTERN);n.push(u+c.adParameters)}}}catch(t){d={error:t}}finally{try{r&&!r.done&&(l=o.return)&&l.call(o)}finally{if(d)throw d.error}}return m.forEach(this.vastPlayer?this.vastPlayer.getLinearAd().mediaFiles:[],function(i){var o=t.getStaticMediafileUrl(i.url,A.DBM_UNIQUE_ID_PATTERN);-1!==m.indexOf(n,o+i.adParameters)&&(e=!0)}),this.index=t.sameAdGlobalIndex=t.sameAdGlobalIndex?++t.sameAdGlobalIndex:1,e;var d,l},t.prototype.isSameAd=function(){return!this.getAd&&this.avoidSameAd()},t.prototype.sendTagToWigo=function(){this.wigoi&&this.wigoi.valid(0,1,{ttp:this.settings,tta:this.adInfos.ad,tts:this.adInfos.placement.placementSetting},s.c.infoType.MODAL)},t.prototype.onReadyState=function(t){var e=Object(r.a)(window.teads),n=e.getPageTagDurationMs(),i=e.getFormatAssetDurationMs();y.a.sendInfo("loadtime "+this.pageId+" "+n+" "+i);var o,a=v.findAllWindows(document.body);try{for(var s=S(a),c=s.next();!c.done;c=s.next()){var u=c.value;o=o||u.document.querySelector("script.teads[data-readystate]")}}catch(t){d={error:t}}finally{try{c&&!c.done&&(l=s.return)&&l.call(s)}finally{if(d)throw d.error}}o&&"domcomplete"===o.getAttribute("data-readystate")?(this.logger.debug("waiting dom complete"),h.onDomComplete(t)):(this.logger.debug("waiting dom ready"),h.onDomReady(t));var d,l},t.defaultRawPlacement={pid:null,format:null,slot:null},t.defaultAdsSettings={settings:{values:{pageId:0,placementFormat:"inread",placementId:1,threshold:50}}},t}()},,,,,,,,,,,,,,,,,,,function(t,e,n){n.d(e,"a",function(){return L});var i=n(13),o=n(59),r=n(18),a=n(1),s=n(0),c=n(2),u=n(5),d=n(3),l=n(44),p=n(7),h=n(244),f=n(4),g=n(35),m=n(297),v=n(255),y=n(299),b=n(61),A=n(211),E=n(165),w=n(257),_=n(191),C=n(302),S=n(303),T=n(258),O=n(321),I=n(245),P=n(320),k=n(345),L=function(){function t(){this.logger=new a.a("Page"),this.hasSlider=!1}return t.trackSlotAvailable=function(t,e,n){var i=e?l.TRACKING.hbSlotAvailable:l.TRACKING.slotAvailable;t.placement.placementTracker.track(i,n)},t.getPlayerSize=function(t,e){var n={width:0,height:0};if(t){if(e.insertInside.isEnabled())n.width=t.getWidth();else if(t.getElement().parentNode){var i=p.getSize(t.getElement().parentNode);n.width=i.width}n.height=n.width/l.DEFAULT_VIDEO_SIZE_RATIO}else{var o=p.getWindowSize(e.parentWindow.getWindow());n.height=o.height*h.a.MAX_SIZE_RATIO_CORNER,n.width=n.height*l.DEFAULT_VIDEO_SIZE_RATIO}return n.width=Math.round(n.width),n.height=Math.round(n.height),n},t.prototype.processPlacements=function(t,e){var n=this;this.onDomComplete(t),c.forEach(e,function(e){return n.processPlacement(t,e)})},t.prototype.processPlacement=function(t,e){var n=this,i=this.initTracker(t,e.pid||null);i&&(this.placementAd=this.checkPlacement(e,t,i),this.placementAd&&(this.placementAd=this.checkSlot(this.placementAd),this.placementAd&&this.callRAS(this.placementAd,t,function(t){n.loadAd(t,function(e,o,r){e=e||t.placement.handleNoAd(),n.vastPlayer=o,e&&(t.placement.initDom(t.placement.electedSlot),t.placement.initFormatInstance(o,e,r),t.placement.getFormat().load(function(){n.vastPlayer&&i.track(l.TRACKING.adAvailable.success),t.placement.getFormat().start()},function(e){i.track(l.TRACKING.adAvailable.error.vast.replace(/\{code\}$/,String(e.getId()))),t.placement.handleNoAd()}))})})))},t.prototype.initTracker=function(t,e,n){void 0===n&&(n=f.a);var i;try{i=new A.a(t,e,o.a,n)}catch(i){o.a.sendError({pageId:t,pid:e||null,headerBiddingProvider:n.getOrElse(function(){return null}),error:Object(s.isFunction)(i.getMessage)?i.getMessage():i.message||i})}return i},t.prototype.checkPlacement=function(t,e,n,i,r){void 0===i&&(i=f.a),void 0===r&&(r=f.a);var a,s;if(t.launched)return void this.logger.warn("This format has already been launched");if(t.launched=!0,o.a.fillEmptyBusinessIds({pid:t.pid}),r.nonEmpty()&&i.isEmpty())return this.logger.error("headerBiddingProvider is filled but not valid"),void o.a.sendError("hb invalid-provider");i.isEmpty()&&n.track(l.TRACKING.placementCall);var c=window._ttf&&0===e?"2":"3";o.a.sendInfo("tagtype "+c);try{var u,p=new O.a(t,i),h=t.slider?{slider:t.slider}:m.a.getPlacementSetting(p.pid);h&&(u=new m.a(h))}catch(i){return this.logger.error(i.getMessage()),i.getId()===g.a.OPTION_FORMAT_INVALID.id&&n.track(l.TRACKING.incompatibility.format),void o.a.sendError({pageId:e,pid:t.pid||null,error:i.getMessage()})}switch(p.formatName.get()){case l.FORMAT.inread:s=new T.a(e,p,u,n);break;case l.FORMAT.inboard:s=new S.a(e,p,u,n)}if(window._ttc&&window._ttc[e]&&window._ttc[e].rpm)return o.a.sendInfo("ttc-rpm"),void s.placementConfig.rpmFallback.trigger();if(a={status:!0,reasons:[]},s.placementConfig.capping.reached())a.status=!1,s.placementTracker.track(l.TRACKING.placementCapping);else{var y=v.checkEnvironment(s.placementConfig);if(this.logger.debug("Check environment",y),!y.status&&(a.status=!1,!d.isAmp()||d.isAmp()&&p.formatName.get()===l.FORMAT.inread)){var b=y.reasons[0];b&&s.placementTracker.track(b),s.placementConfig.fallback.trigger()&&s.placementTracker.track(l.TRACKING.fallback.integration)}}return{placement:s,report:{id:s.pid,validity:a,player:null,slotType:s.placementTracker.slotType},ad:null}},t.prototype.checkSlot=function(e,n){if(void 0===n&&(n=f.a),e.report.validity.status){e.report.validity=e.placement.checkSlot(),this.logger.debug("Slot availability",e.report.validity);var i=e.placement.getElectedSlot();e.report.player=t.getPlayerSize(i,e.placement.placementConfig)}var o=function(){t.trackSlotAvailable(e,e.placement.placementConfig.headerBiddingProvider.nonEmpty(),w.extractHbSlotAvailableUrl(n))};return e.report.validity.status||!e.report.validity.reasons.length?(o(),e):e.placement.canEnableSlider()&&!this.hasSlider?(this.hasSlider=!0,e.report.validity.reasons=[],e.report.validity.status=!0,e.placement.enableSlider(),e.report.slotType=e.placement.placementTracker.slotType,o(),e):void function(){e.placement.placementTracker.track(e.report.validity.reasons[0]),P.a()}()},t.prototype.callRAS=function(t,e,n){var i=this;new y.a(t,e,this.getAdRequestUrl(e),function(t,o){w.isUserSyncAllowed(t.placement.placementConfig.headerBiddingProvider)&&i.userSync(t.placement,e,o),i.hasSlider&&t.placement.placementTracker.track(l.TRACKING.adCall),n(t)}).send()},t.prototype.loadAd=function(t,e){var n=this;if(t.placement){if(!t.ad)return void(t.report.validity.status&&e(null,null));if(t.placement.getElectedSlot()&&_.injectFormatCSS(t.placement.getElectedSlot().getElement()),t.ad.handled)return void this.logger.debug("Ad already handled for this placement");if(t.ad.handled=!0,t.ad.callbacks=t.placement.placementConfig.raw.callbacks,!t.placement.getElectedSlot())return void this.logger.debug("No elected slot -> not placing format");var i=t.placement.getFormatConfig(t.ad);i?t.placement.loadVast(i,function(t,o){t?e(i,t,o):(n.logger.debug("VAST loading failed, couldn't get VAST player instance"),e(null,null))}):(this.logger.debug("Could not load config for format"),e(null,null))}},t.prototype.clearInstances=function(){for(var t in l.FORMAT)if(l.FORMAT.hasOwnProperty(t)&&E.d[t]&&E.d[t].length)for(;E.d&&E.d[t]&&E.d[t].length;)E.d[t].pop().exit(I.a.AdSuccess)},t.prototype.reload=function(){var t=this;this.clearInstances();var e=f.b.of(window._ttp);k.b(e),Object(E.b)(),k.a({ttpObject:e,pageInstance:this}).recover(function(e){return t.logger.error(e)})},t.prototype.userSync=function(t,e,n){var i=this;if(t&&t.pid&&!this.isUserSyncIframeLoaded){var o=C.insert(t.pid,n);p.addEventListener("load",o,function(t){r.mark("markUserSyncResponse"),i.isUserSyncIframeLoaded=!0,i.processTiming(e)})}},t.prototype.onDomComplete=function(t){var e=this;try{p.onDomComplete(function(){e.isDomComplete=!0,e.processTiming(t)},Object(u.findTopWindow)(window.document.body),this)}catch(t){this.logger.warn("Can not access top window for performance",t)}},t.prototype.getAdRequestUrl=function(t){var e=b.b.richAdServerUrl.replace("{id}",String(t)),n=this.getTrackingMetadata();return Object(i.buildUrlWithParams)(e,n)},t.prototype.getTrackingMetadata=function(){var t=null;try{var e=Object(u.findParentWindows)(window.document.body),n="",i=void 0;window.top!==window&&(d.isAmp()&&window.context.sourceUrl?(n=window.context.sourceUrl,i=window.context.canonicalUrl):d.isAmpSF()&&window.AMP_CONTEXT_DATA.sourceUrl?(n=window.AMP_CONTEXT_DATA.sourceUrl,i=window.AMP_CONTEXT_DATA.canonicalUrl):document.referrer&&(n=document.referrer)),n.match("ampproject.org")&&(o.a.sendInfo("referrer match ampproject.org"),i&&!i.match("amproject.org")?n=i:o.a.sendInfo("ampref nok "+n)),t={windowWidth:window.innerWidth,windowHeight:window.innerHeight,windowDepth:e.length,windowReferrerUrl:encodeURIComponent(n)}}catch(t){this.logger.warn("An error occurred retrieving top window - Window metadata will be empty on the ad request")}return t},t.prototype.processTiming=function(t){if(this.isDomComplete&&this.isUserSyncIframeLoaded)try{var e=r.measure("measureSmartSlot","markFormatSmartSlotStart","markFormatSmartSlotEnd"),n=r.measure("measureUserSyncRequest","markUserSyncRequest","markUserSyncResponse"),i=r.getLastEntryByName("markFormatInit"),a=r.getTimingByRegex(/teads-format(.min)?\.js/),s={pageId:t,smartSlotDuration:e?Math.round(e.duration):null,markFormatInit:i?Math.round(i.startTime):null,entryCount:r.getResourceCount(),domLoading:null,domInteractive:null,domComplete:null,teadsFormatStart:a?Math.round(a.startTime):null,teadsFormatDuration:a?Math.round(a.duration):null,userSyncRequestDuration:n?Math.round(n.duration):null};if(r.performance&&r.performance.timing){var c=r.performance.timing;s.domLoading=Math.round(c.domLoading-c.fetchStart),s.domInteractive=Math.round(c.domInteractive-c.fetchStart),s.domComplete=Math.round(c.domComplete-c.fetchStart)}this.logger.debug("Sending timing data"),o.a.sendInfo(s)}catch(t){this.logger.debug("Error on timing data process")}},t}()},function(t,e,n){var i=n(151),o=n(403),r=n(6),a=n(54),s=n(5),c=n(166),u=n(118),d=n(27),l=n(4),p=n(28),h=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),f=function(t){function e(){var e=t.call(this,"teads-ui-components-smart-header",c.SMARTHEADERCSS)||this;return e.isMuted=!0,e.eventListenerManagerAdChoices=new d.a,e.eventListenerManagerSound=new d.a,e.innerHTML=c.SMARTHEADERHTML,e}return h(e,t),e.prototype.init=function(t,e){var n=this;this.vpaidAd=t,this.volumeController=e,this.initElement(),this.hide(),this.smartCloseButton=new o.a,this.closeButtonContainer=this.element.getElementsByClassName("close-button-smart")[0],this.closeButtonContainer.appendChild(this.smartCloseButton.getElement()),this.hideCloseButton();var i=this.element.getElementsByClassName("adChoices-button-smart")[0];this.eventListenerManagerAdChoices.add("click",i,function(){return n.onClickAdChoicesButton()}),this.smartSoundButton=this.element.getElementsByClassName("sound-button-smart")[0],this.eventListenerManagerSound.add("click",this.smartSoundButton,function(){return n.onClickSoundButton()}),this.vpaidAd.subscribe(function(){return n.onVolumeChange()},r.a.AdVolumeChange)},e.prototype.showCloseButton=function(){var t=this;this.closeButtonContainer.style.setProperty("display","inline-block"),p.requestAnimationFrame(function(){return t.smartCloseButton.show()},e.SMART_CLOSE_BUTTON_SHOW_DELAY_IN_MS)},e.prototype.hideCloseButton=function(){this.closeButtonContainer.style.setProperty("display","none"),this.smartCloseButton.hide()},e.prototype.setAdChoicesLink=function(t){this.adChoicesLink=Object(l.c)(t)},e.prototype.isEnabled=function(){return!0},e.prototype.toggleSoundButtonIcon=function(){var t=this.smartSoundButton.firstElementChild,e=this.isMuted?u.a.OFF:u.a.ON,n=this.isMuted?u.a.ON:u.a.OFF;Object(s.replaceClass)(t,e,n)},e.prototype.onClickSoundButton=function(){this.volumeController.toggleVolume()},e.prototype.onClickAdChoicesButton=function(){this.adChoicesLink.forEach(function(t){return window.open(t,"_blank")})},e.prototype.onVolumeChange=function(){this.isMuted=Object(a.isMuted)(this.vpaidAd),this.toggleSoundButtonIcon()},e.SMART_CLOSE_BUTTON_SHOW_DELAY_IN_MS=50,e}(i.a);e.a=f},function(t,e,n){var i=n(404);t.exports="string"==typeof i?i:i.toString()},function(t,e,n){var i=n(405);t.exports="string"==typeof i?i:i.toString()},function(t,e){t.exports='<div class="teads-countdown"> <div class="teads-countdown-background"></div> <div class="teads-countdown-circle" style="width:100px;height:100px"> <svg viewbox="0 0 100 100" shape-rendering="optimizeQuality"> <path class="teads-countdown-circle-background" fill="none" stroke-linecap="round" stroke-width="2" stroke="#CCC" stroke-dasharray="250" d="M50 10 a 40 40 0 0 1 0 80 a 40 40 0 0 1 0 -80"> </path> <path class="teads-countdown-circle-main" fill="none" stroke-linecap="round" stroke-width="2" stroke="#fff" stroke-dasharray="250" d="M50 10 a 40 40 0 0 1 0 80 a 40 40 0 0 1 0 -80"></path> <text class="teads-countdown-number" x="50" y="53" text-anchor="middle" dy="7" font-size="20" fill="#FFFFFF">3</text> </svg> </div> <div class="teads-countdown-fsicon"> <svg width="15" height="15" xmlns="http://www.w3.org/2000/svg"> <path fill="#FFFFFF" d="m1.09374,7.62501c-0.32761,0 -0.59374,0.26613 -0.59374,0.59374l0,5.93753c0,0.00114 0,0.00114 0,0.00231c0,0.07712 0.01536,0.15308 0.04523,0.22438c0.02842,0.07016 0.07103,0.13279 0.12352,0.18614c0.00231,0.0029 0.00231,0.00523 0.00465,0.00754c0.00117,0.00117 0.00348,0.00117 0.00465,0.00348c0.05363,0.05218 0.1177,0.09627 0.18787,0.12466c0.07364,0.03014 0.15077,0.04523 0.22786,0.04523l5.93753,0c0.32761,0 0.59374,-0.26613 0.59374,-0.59374c0,-0.32761 -0.26613,-0.59377 -0.59374,-0.59377l-4.5042,0l11.03542,-11.03542l0,4.50418c0,0.32761 0.26613,0.59374 0.59377,0.59374c0.32761,0 0.59374,-0.26613 0.59374,-0.59374l0,-5.93753l0,0c0,-0.07712 -0.01508,-0.15425 -0.0464,-0.22672c-0.06028,-0.14495 -0.17567,-0.26151 -0.32065,-0.32065c-0.07248,-0.031 -0.14957,-0.04637 -0.22669,-0.04637l-5.93753,0c-0.32761,0 -0.59374,0.26613 -0.59374,0.59374c0,0.32761 0.26613,0.59377 0.59374,0.59377l4.50418,0l-11.03542,11.03542l0,-4.50418c0,-0.32761 -0.26616,-0.59374 -0.59377,-0.59374z"/> </svg> </div> </div> '},function(t,e,n){var i=n(298),o=function(){function t(t){this.rawConfig=t,t&&(this.slider=new i.a(t.slider))}return t.getPlacementSetting=function(t){if(window._tts&&window._tts[t.get()])return window._tts[t.get()]},t}();e.a=o},function(t,e,n){n.d(e,"a",function(){return a});var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n){var i=t.call(this,"Slider")||this;return i.value=Object(o.extend)(e.DEFAULT,n),i.checkValue(),i}return r(e,t),e.prototype.checkValue=function(){Object(o.containsKeys)(e.VALUES,this.value)||(this.value=e.DEFAULT)},e.prototype.allowCorner=function(){return this.value.allow_corner_position},e.VALUES={allow_top_position:"top",allow_corner_position:"corner"},e.DEFAULT={allow_top_position:!1,allow_corner_position:!1},e}(i.a)},function(t,e,n){n.d(e,"a",function(){return C});var i=n(13),o=n(5),r=n(59),a=n(300),s=n(195),c=n(1),u=n(0),d=n(61),l=n(256),p=n(3),h=n(2),f=n(10),g=n(255),m=n(11),v=n(44),y=n(20),b=n(17),A=n(29),E=n(4),w=n(52),_=n(9),C=function(){function t(t,e,n,i){var r=this;this.placementAd=t,this.pageId=e,this.done=i,this.logger=new c.a("helper.RASRequest"),this.timeoutFired=!1,this.isRequestSent=!1,this.isInitialized=!1,this.shouldSendAfterInit=!1,new s.a(Object(o.findTopWindow)(window.document.body),e).requestConsentString(function(t){r.gdprIabObject=t,r.initRequest(n,{id:Number(r.pageId),placements:[r.placementAd.report],gdpr_iab:t}),r.shouldSendAfterInit&&!r.isRequestSent&&r.send()})}return t.getAdPlacementId=function(t){return t&&t.settings&&t.settings.values&&Object(u.isNumber)(t.settings.values.placementId)?t.settings.values.placementId:null},t.prototype.initRequest=function(t,e){var n=this;if(this.isInitialized)return void this.logger.warn("Could not initialize RASRequest instance as it is already initialized.");if(!this.placementAd.ad&&d.b.isRichAdServerRequestEnabled){var o={page:encodeURIComponent(m.stringify(e)),userId:l.get(),formatVersion:encodeURIComponent("2.19.149"),env:p.getEnv()};p.getNetworkBandwidthInMbps().forEach(function(t){return o.netBw=t}),this.rasUrl=Object(i.buildUrlWithParams)(t,o),this.request=b.createXmlHttpRequest(),this.request.open("GET",this.rasUrl,!0),this.request.withCredentials=!0,this.request.timeout=d.b.richAdServerRequestTimeout,this.request.setRequestHeader&&this.request.setRequestHeader("Accept","application/json; charset=UTF-8"),this.request.onload=function(){n.onload()},this.request.onerror=function(t){void 0===t&&(t={}),n.onerror(t)},this.request.ontimeout=function(){r.a.sendWarning({message:"RAS request: timeout"}),n.ontimeout()},this.timeoutLatencyRAS=setTimeout(function(){r.a.sendWarning({message:"RAS request: custom timeout"}),n.ontimeout()},d.b.richAdServerRequestTimeout+10)}this.isInitialized=!0},t.prototype.send=function(){var e=this;if(!this.isInitialized)return this.shouldSendAfterInit=!0,void this.logger.debug("Could not send ad request as RASRequest instance is not initialized yet.");var n=function(){if(e.placementAd.ad)e.next();else if(d.b.isRichAdServerRequestEnabled)e.adRequestStart=Object(f.now)(),e.isRequestSent||e.request.send(),e.isRequestSent=!0;else{var n;h.forEach(window._tta[e.pageId],function(i){(n=t.getAdPlacementId(i))&&(e.placementAd.placement.pid===n?e.placementAd.ad=i:e.logger.warn("Trying to process _tta object but could not find the related _ttp object (PID: "+n+")",e.placementAd.placement,i))}),e.next()}};this.getAdPromiseFromWigo().match({some:function(t){return t.then(function(t){e.logger.warn("ad has been successfully load from a wigo report",t),e.placementAd.ad=t,e.placementAd.placement.getWigoi().enableWigo("enableFromReport"),e.next()}).catch(function(t){e.logger.error("ad Promise from wigo failed =>",t),n()})},none:n})},t.prototype.getAdPromiseFromWigo=function(){var t=this;return E.b.of(A.c.reportPromise).map(function(e){return e.then(function(e){return t.getAdFromWigoReport(e).match({some:w.a.resolve,none:function(){return w.a.reject("ad not available in the report")}})})})},t.prototype.getAdFromWigoReport=function(t){var e=this;return E.b.of(t.steps).map(function(t){return t.filter(function(t){return t.step===A.a.TAG&&t.substep===A.b.TAG})}).filter(h.isNotEmpty).map(function(t){return t.pop()}).flatMap(function(t){return _.c.of(function(){return Object(u.isString)(t.info.store)?m.parse(t.info.store):t.info.store}).toOption()}).map(function(t){return t.tta}).map(function(t){return t[e.pageId]&&Object(u.isArray)(t[e.pageId])&&(t=t[e.pageId].shift()),t.handled=!1,t})},t.prototype.next=function(){this.timeoutLatencyRAS&&clearTimeout(this.timeoutLatencyRAS),this.done&&this.done(this.placementAd,this.gdprIabObject)},t.prototype.ontimeout=function(){this.timeoutFired||(this.timeoutFired=!0,this.logger.warn("RAS request: timeout"),this.placementAd.placement&&this.placementAd.report.validity.status&&this.placementAd.placement.placementTracker.track(v.TRACKING.adNotAvailable.networkError),this.next())},t.prototype.onload=function(){var e=this;this.logger.info("Successful request",this.rasUrl),this.processTiming();var n;try{n=y.isLowerOrEqual(p.getIEVersion(),"9")?this.request.responseText:this.request.response,Object(u.isString)(n)&&(n=JSON.parse(n)),this.logger.info("RAS response",n),Array.isArray(n.ads)||(r.a.sendError({message:"RAS request: response.ads is not an array"}),this.placementAd.placement&&this.placementAd.report.validity.status&&this.placementAd.placement.placementTracker.track(v.TRACKING.adAvailable.error.badResponse),n.ads=[]),n.ads.length>1&&(this.logger.warn("Received more than one ad, WTF?"),n.ads=[n.ads[0]]);var i=0===n.ads.length,o=void 0;if(!0===n.wigoEnabled&&this.placementAd.placement.getWigoi().enableWigo(),i?this.placementAd.placement&&this.placementAd.report.validity.status&&(n.noAdReason?this.placementAd.placement.placementTracker.handleFraud(n.noAdReason):this.placementAd.placement.placementTracker.handleEmptyAdsArray()):(o=t.getAdPlacementId(n.ads[0]),o&&this.placementAd.placement.pid===o?this.placementAd.ad?this.logger.debug("The ad for the PID "+o+" has already been loaded",n.ads[0]):this.placementAd.ad=n.ads[0]:this.logger.warn("This placement doesn't exist in the tag",this.placementAd.placement,n.ads[0])),window._tta&&window._tta[this.pageId]){var a;h.forEach(window._tta[this.pageId],function(n){a=t.getAdPlacementId(n),e.placementAd.placement.pid===a?e.placementAd.ad?e.placementAd.ad=g.extendAd(e.placementAd.ad,n):e.placementAd.ad=n:e.logger.warn("Trying to process _tta object but could not find the related _ttp object (PID: "+a+")",e.placementAd.placement,n)})}}catch(t){var s=t.message?t.message:JSON.stringify(t);return r.a.sendError({pageId:this.pageId,message:"RAS request: response is not valid|"+s.substr(0,120)}),this.placementAd.placement&&this.placementAd.report.validity.status&&this.placementAd.placement.placementTracker.track(v.TRACKING.adAvailable.error.badResponse),void this.logger.error("Response is not valid:",t.message,n)}this.next()},t.prototype.onerror=function(t){clearTimeout(this.timeoutLatencyRAS);var e=t.message?t.message:JSON.stringify(t);r.a.sendError({pageId:this.pageId,message:"RAS request: request error|"+e.substr(0,120)}),this.logger.error("Request error - Status:",t.target.status);var n=this.request.status||0,i=0===n?v.TRACKING.adNotAvailable.networkError:v.TRACKING.adNotAvailable.serverError;this.placementAd.placement&&this.placementAd.report.validity.status&&this.placementAd.placement.placementTracker.track(i),this.next()},t.prototype.processTiming=function(){var t=Object(f.now)(),e=t-this.adRequestStart,n=Object(a.a)(window.teads);r.a.sendInfo({pageId:this.pageId,durationSinceTagStart:n.getDurationSinceTagStartMs(t),reqDuration:e})},t}()},function(t,e,n){var i=n(4),o=n(185),r=n(0),a=function(t){return-1!==t},s=function(t){return t.filter(r.isNumber)},c=function(t){return t.getOrElse(function(){return-1})},u=function(t){return t.map(Math.round)},d=Object(o.a)(c,u,s),l=function(t){return function(){return d(t.map(function(t){return t.duration}))}},p=function(t,e){return function(){var n=e.flatMap(function(e){return t.map(function(t){return e-t})});return d(n)}},h=function(t){return function(e){var n=d(t);return a(n)?e-n:-1}},f=function(t,e){return function(n){var i=l(t)(),o=d(e);return a(i)&&a(o)?i+(n-o):-1}},g=function(t){var e=m(t),n=e.pageTagPerf,i=e.formatAssetLoadStart,o=e.formatAssetLoadEnd;return{getPageTagDurationMs:l(n),getFormatAssetDurationMs:p(i,o),getDurationSinceFormatAssetStartMs:h(i),getDurationSinceTagStartMs:f(n,i)}},m=function(t){return{pageTagPerf:i.b.of(t.pageTagPerf),formatAssetLoadStart:i.b.of(t.formatAssetLoadStart),formatAssetLoadEnd:i.b.of(t.formatAssetLoadEnd)}};e.a=g},function(t,e,n){/**
 * Fast UUID generator, RFC4122 version 4 compliant.
 * @author Jeff Ward (jcward.com).
 * @license MIT license
 * @link http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/21963136#21963136
 * @return {string} Generated UUID
 **/
function i(){for(var t=[],e=0;e<256;e++)t[e]=(e<16?"0":"")+e.toString(16);var n=4294967295*Math.random()|0,i=4294967295*Math.random()|0,o=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return t[255&n]+t[n>>8&255]+t[n>>16&255]+t[n>>24&255]+"-"+t[255&i]+t[i>>8&255]+"-"+t[i>>16&15|64]+t[i>>24&255]+"-"+t[63&o|128]+t[o>>8&255]+"-"+t[o>>16&255]+t[o>>24&255]+t[255&r]+t[r>>8&255]+t[r>>16&255]+t[r>>24&255]}function o(){var t=i(),e=Object(r.now)().toString(16);return 11===e.length?t.slice(0,-11)+e:t}Object.defineProperty(e,"__esModule",{value:!0}),e.generate=i,e.generateTimeBased=o;var r=n(18)},function(t,e,n){function i(t,e){var n;if(!o){try{n=Object(a.findTopWindow)(window.document.body)}catch(t){h.warn("Cannot get top window"),n=window}!function(n){var i={pid:t,userId:u.get(),gdprIab:l.stringify(e)};o=Object(a.createIframe)(),o.id=f,o.src=Object(p.buildUrlWithParams)(c.b.userSyncUrl,i)+"&"+Object(s.now)(),o.style.setProperty("display","none"),d.mark("markUserSyncRequest"),n.document.body.appendChild(o)}(n)}return o}Object.defineProperty(e,"__esModule",{value:!0}),e.insert=i;var o,r=n(1),a=n(5),s=n(10),c=n(61),u=n(256),d=n(18),l=n(11),p=n(13),h=new r.a("helper.UserSync"),f="teadsusersync"},function(t,e,n){var i=n(258),o=n(44),r=n(29),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(e,n,i,o){var r=t.call(this,e,n,i,o)||this;return r.placementConfig.btf.set(!1),r.placementConfig.minimum.set(0),r.placementConfig.auto.set(!1),r}return a(e,t),e.prototype.checkSlot=function(){var t=this,e=this.placementConfig.selector.getSlots();e.length&&(this.electedSlotReport=this.processChecker(e,o.FORMAT.inboard));var n={};return this.electedSlotReport&&this.electedSlotReport.report?this.electedSlotReport.report.status?(this.electedSlot=this.electedSlotReport.slot,n={status:!0,reasons:[]}):(this.logger.info("No slot available"),n={status:!1,reasons:this.electedSlotReport.report.reasons},this.wigoi.forEach(function(e){return e.valid(1,1,t.electedSlotReport.report.reasons,r.c.infoType.ERROR)})):(this.logger.info("No slot available"),n={status:!1,reasons:[o.TRACKING.noSlot.selector]},this.wigoi.forEach(function(t){return t.valid(1,1,o.TRACKING.noSlot.selector,r.c.infoType.ERROR)})),n},e}(i.a);e.a=s},function(t,e,n){var i=n(212),o=(n.n(i),n(4)),r=n(1),a=n(29),s=n(53),c=n(59),u=n(214),d=n(44),l=n(89),p=n(16),h=n(13),f=n(305),g=n(3),m=n(209),v=n(192),y=n(165),b=n(61),A=n(263),E=n(126),w=n(308),_=n(259),C=n(11),S=n(2),T=function(){function t(t,e,n,i){this.pageId=t,this.placementConfig=e,this.placementSetting=n,this.placementTracker=i,this.logger=new r.a("placement"),this.wigoi=o.a,this.sliderEnabled=!1,this.pid=e.pid.get(),this.win=e.parentWindow.getWindow(),this.sessionStore=new s.b(t,this.pid).setWigo(i.getWigoi()).build(),this.initContainer(),this.setWigoi(i.getWigoi()),window.teads.router&&this.wigoi.forEach(function(t){return t.valid(0,0)}),window._ttp&&this.wigoi.forEach(function(e){return e.valid(0,1,{ttp:o.b.of(window._ttp).map(function(e){return e[t]}).filter(S.isNotEmpty).map(function(t){return t[0]}).orNull(),tta:o.b.of(window._tta).map(function(e){return e[t]}).filter(S.isNotEmpty).map(function(t){return t[0]}).orNull(),tts:o.b.of(window._tts).map(function(e){return e[t]}).orNull()},a.c.infoType.MODAL)}),this.wigoi.forEach(function(t){return t.valid(1,0)})}return t.prototype.getFormatConfig=function(t){if(!t||!t.type||!t.content)return null;try{var e=new u.a(t);return c.a.setAdType(e.adType.get()),this.logger.info("formatConfig",e),e}catch(t){this.logger.warn("Error during FormatConfig instantiation",t),this.placementTracker.track(d.TRACKING.adAvailable.error.settings);var n=t.message?t.message:C.stringify(t);return c.a.sendError({pageId:this.pageId,message:d.TRACKING.adAvailable.error.settings+"|"+n.substr(0,120)}),null}},t.prototype.loadVast=function(t,e){var n=this,i=new l.a(this.playerContainer,this.getPlayerConfig(t),this.sessionStore),o=function(t){return n.onVastError(t,e)};if(t.vast.isDisplayUrl()||t.vast.isDisplayXml()){var r=function(t){n.debugInfosFromAd(i,t),i.setLinearAd({}),e(i,t)};t.vast.isDisplayUrl()?f.load(t.vast.getContent(),r,o,this.getWigoi()):t.vast.isDisplayXml()&&f.parse(t.vast.getContent(),r,o,this.getWigoi())}else{var r=function(o){n.debugInfosFromAd(i,o),i.setConfigUI(n.getPlayerConfigUI(t,o)),e(i)};t.vast.isVastUrl()?i.loadVast(t.vast.getContent(),r,o):t.vast.isVastXml()&&i.parseVast(t.vast.getContent(),r,o)}},t.prototype.canEnableSlider=function(){if(!g.isDesktop()||!this.placementConfig.formatName.isInRead())return!1;var t=this.placementSetting&&this.placementSetting.slider&&this.placementSetting.slider.allowCorner();return d.SLIDER_WHITELIST.test(String(this.pid))||t},t.prototype.enableSlider=function(){this.sliderEnabled=!0,this.placementTracker.setSlotType(d.SLOT_TYPE.corner),this.electedSlot=new m.a(this.placementConfig.parentWindow.getWindow().document.body),this.placementConfig.btf.set(!1),this.placementConfig.minimum.set(0),this.placementConfig.auto.set(!1),this.placementConfig.insertBefore.set(!1),this.placementConfig.insertInside.set(!0)},t.prototype.onVastError=function(t,e){c.a.sendError({pid:this.pid,message:"Error when loading VAST|"+t.getFullMessage().substr(0,120)});var n=t.getId()||0;n===p.b.WRAPPER_TIMEOUT.id?this.placementTracker.track(d.TRACKING.adAvailable.error.parseTimeout):this.placementTracker.track(d.TRACKING.adAvailable.error.vast.replace(/\{code\}$/,""+n)),this.logger.error("VAST loading:",t),e(null)},t.prototype.handleNoAd=function(){if(this.placementTracker.handleMirroringEvent(),this.placementConfig.fallback.trigger()?(this.placementTracker.track(d.TRACKING.fallback.noAd),this.logger.info(d.TRACKING.fallback.noAd),this.wigoi.forEach(function(t){return t.valid(1,2,d.TRACKING.fallback.noAd,a.c.infoType.ERROR)})):g.isAmp()&&v.close(),!this.sliderEnabled)return new u.a({type:"VastUrl",content:"",settings:{values:{placementFormat:this.placementConfig.formatName.get(),pageId:this.pageId,placementId:this.pid,threshold:100},components:{},behaviors:{}}})},t.prototype.getFormat=function(){return this.formatInstance},t.prototype.getParentContainer=function(){return this.parentContainer},t.prototype.getPlayerContainer=function(){return this.playerContainer},t.prototype.getInnerContainer=function(){return this.innerContainer},t.prototype.processChecker=function(e,n,i){void 0===i&&(i=!1);for(var o,r,a,s,c,u=i?"auto":"selector",d=t.checkersConfig[n][u],l={report:{status:!1,reasons:[]}},p=0,h=!1;!h&&e[p];){for(r=e[p++],a=r.getElement(),o=0,c={status:!0,reason:""};c.status&&d[o];)s=d[o++],c=_[s](this,r,e),c.status||(this.logger.info("Invalid slot","["+p+"/"+e.length+"]",c.reason,"=>",c.information,a),l.report.reasons=[c.reason],l.report.status=!1,c.status=!1);c.status&&(this.logger.info("Elected slot","["+p+"/"+e.length+"]",a),l.report.status=!0,l.report.reasons=[],l.slot=r,h=!0,this.wigoi.forEach(function(t){return t.valid(1,1)}))}return l},t.prototype.setWigoi=function(t){this.wigoi=o.b.of(t)},t.prototype.getWigoi=function(){return this.wigoi.orNull()},t.prototype.isSliderEnabled=function(){return this.sliderEnabled},t.prototype.registerInstance=function(t){this.formatInstance=t;var e=t.formatConfig.formatName.get();y.d[e]||(y.d[e]=[]),y.d[e].push(t),this.getFormat().setWigoi(this.getWigoi())},t.prototype.getPlayerConfig=function(t){return{path:b.b.basePathUrl,type:t.allowedPlayer.getValue(),formatConfig:t,background:"transparent",vpaidApi:new A.a(this,t),replaceIASVPAID:b.b.isIasBypassEnabled,adType:t.adType.get()}},t.prototype.getPlayerConfigUI=function(t,e){return{name:"inread",config:{components:w.getComponentsConfig(t,this,e,E.get(e))}}},t.prototype.initContainer=function(){this.parentContainer=this.win.document.createElement("div"),this.parentContainer.className="teads-"+this.placementConfig.formatName.get(),this.placementConfig.formatName.isInBoard()&&this.parentContainer.style.setProperty("width","100%"),this.innerContainer=this.win.document.createElement("div"),this.innerContainer.style.setProperty("position","relative"),this.parentContainer.appendChild(this.innerContainer),this.playerContainer=this.win.document.createElement("div"),this.playerContainer.className="teads-player",this.playerContainer.style.setProperty("display","block","important"),this.playerContainer.id="teads"+Object(y.c)(),this.innerContainer.appendChild(this.playerContainer)},t.prototype.debugInfosFromAd=function(t,e){this.logger.info("Ad is ready"),this.wigoi.forEach(function(t){return t.valid(1,2)});var n=Object(h.getBusinessIdsFromTracking)(e.tracking.impression);this.sessionStore.businessIds=n,c.a.fillEmptyBusinessIds(n),t.updateSumologicBusinessIds(n)},t.checkersConfig={inread:{auto:["safeframe","image","video","minimum","btf","position","avoid","content","size","filter"],selector:["safeframe","image","video","minimum","btf","avoid","filter"]},inboard:{auto:["safeframe","image","video","minimum","btf","avoid","filter"],selector:["safeframe","image","video","minimum","btf","avoid","filter"]}},t}();e.a=T},function(t,e,n){function i(t,e,n,i){u.load(t,{},function(t){o(t,e,n,i)},function(e){f.error("Could not load XML file",t,e),d.execCallback(n,[e])})}function o(t,e,n,i){try{var o=l.getXMLDoc(t),r=o.documentElement;if(!r)return d.execCallback(n,[new s.b(s.b.NO_ADS)]);if("DISPLAY"!==r.tagName.toUpperCase())return d.execCallback(n,[new s.b(s.b.XML_PARSE)]);var u=r.getElementsByTagName("Ad")[0];if(!u)return d.execCallback(n,[new s.b(s.b.NO_ADS)]);var m=new p.a;if(m.version=Number(l.getAttributeValue(r,"version")),m.version<1)return d.execCallback(n,[new s.b(s.b.UNSUPPORTED_VERSION)]);m.id=l.getAttributeValue(u,"id"),m.title=l.getNodeContent(u.getElementsByTagName("AdTitle")[0]),m.adSystem=l.getNodeContent(u.getElementsByTagName("AdSystem")[0]);var v=u.getElementsByTagName("Creative")[0];if(!v)return d.execCallback(n,[new s.b(s.b.NO_ADS)]);m.creative.id=l.getAttributeValue(v,"id"),m.creative.type=String(l.getAttributeValue(v,"type"));var y=v.getElementsByTagName("Asset")[0];if(!y)return d.execCallback(n,[new s.b(s.b.NO_ADS)]);if(m.creative.asset.id=l.getAttributeValue(y,"id"),m.creative.asset.content=String(l.getNodeContent(y)),!m.creative.asset.content)return d.execCallback(n,[new s.b(s.b.NO_ADS)]);var b=document.createElement("div");b.innerHTML=m.creative.asset.content;var A=b.firstElementChild;if(!A)return d.execCallback(n,[new s.b(s.b.NO_ADS)]);if(m.creative.asset.width=Number(A.getAttribute("width")),m.creative.asset.height=Number(A.getAttribute("height")),m.creative.asset.url=A.getAttribute("src"),!m.creative.asset.url)return d.execCallback(n,[new s.b(s.b.NO_ADS)]);if(!g.test(m.creative.asset.url))return d.execCallback(n,[new s.b(s.b.UNSUPPORTED_MEDIAFILE)]);for(var E=u.getElementsByTagName("ClickThrough"),w=0,_=E.length;w<_;w++)m.clickThrough.push(l.getNodeContent(E[w])),m.expand.push("true"===l.getAttributeValue(E[w],"expand")),m.rolloverCountdown.push(parseInt(l.getAttributeValue(E[w],"rolloverCountdown"),10)),m.closeCountdown.push(parseInt(l.getAttributeValue(E[w],"closeCountdown"),10));for(var C=u.getElementsByTagName("Impression"),w=0,_=C.length;w<_;w++)m.tracking.impression.push({url:l.getNodeContent(C[w]),data:null});var S=u.getElementsByTagName("ClickTracking");for(w=0,_=S.length;w<_;w++)m.tracking.click.push({url:l.getNodeContent(S[w]),data:null});var T=u.getElementsByTagName("Error");for(w=0,_=T.length;w<_;w++)m.tracking.error.push({url:l.getNodeContent(T[w]),data:null});if(u){f.info("Init - Vast player initialization success"),i&&i.valid(2,0),m.tracking[h.TRACKING.openExpand]=[];var O=u.getElementsByTagName("Tracking");for(w=0,_=O.length;w<_;w++){var I=l.getAttributeValue(O[w],"event");if(m.tracking.hasOwnProperty(I)){var P=null;if(I===h.TRACKING.open||I===h.TRACKING.visible){if(P=l.getAttributeValue(O[w],"offset"),I!==h.TRACKING.visible||P||(P="00:00:01"),!(P&&P.indexOf(":")>0)){f.error("Wrong offset for progress tracking: "+P);continue}P=c.seconds(P)}m.tracking[I].push({url:l.getNodeContent(O[w]),offset:P})}}}f.info("DisplayXml loaded",m),i&&(i.valid(2,1,m,a.c.infoType.MODAL),i.valid(2,2,m.creative.asset.url,a.c.infoType.STRING),i.valid(2,3,"Engage",a.c.infoType.STRING),i.valid(3,0),i.valid(3,1,"1.0",a.c.infoType.STRING)),d.execCallback(e,[m],n)}catch(t){d.execCallback(n,[new s.b(s.b.XML_PARSE,t)])}}Object.defineProperty(e,"__esModule",{value:!0}),e.load=i,e.parse=o;var r=n(1),a=n(29),s=n(16),c=n(0),u=n(117),d=n(190),l=n(115),p=n(306),h=n(44),f=new r.a("parser.Display"),g=/.+\.(jpg|jpeg|png)$/i},function(t,e,n){n.d(e,"b",function(){return r}),n.d(e,"c",function(){return a}),n.d(e,"d",function(){return s}),n.d(e,"a",function(){return c});var i=n(94),o=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=function(){function t(){this.width=0,this.height=0}return t}(),a=function(){function t(){this.asset=new r}return t}(),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.open=[],e.visible=[],e}return o(e,t),e}(i.a),c=function(){function t(){this.version=1,this.creative=new a,this.tracking=new s,this.clickThrough=[],this.expand=[],this.rolloverCountdown=[],this.closeCountdown=[],this.title=""}return t}()},function(t,e,n){function i(t,e){if(void 0===e&&(e=window),!t)return!1;var n,i=!1;if("img"===t.tagName.toLowerCase()?i=u([t]):(n=h.querySelectorAll("img",e,t),i=u(n)),!i){var o=d(t);o&&("img"===o.tagName.toLowerCase()?i=u([o]):(n=h.querySelectorAll("img",e,o),i=n.length>0&&u(n)))}if(!i){var r=l(t);r&&("img"===r.tagName.toLowerCase()?i=u([r]):(n=h.querySelectorAll("img",e,r),i=n.length>0&&u(n)))}return i}function o(t,e){if(void 0===e&&(e=window),!t)return!1;var n=r(t,e);if(!n){var i=d(t);i&&(n=r(i,e))}if(!n){var o=l(t);o&&(n=r(o,e))}return n}function r(t,e){void 0===e&&(e=window);var n=["video","object","embed"],i=p.includes(n,t.tagName.toLowerCase());if(!i){var o=t.getAttribute("src");i=o&&c(o)}if(i||(i=h.querySelectorAll("video",e,t).length>0),i||(i=h.querySelectorAll("object",e,t).length>0),!i){var r=h.querySelectorAll("[src]",e,t),a=p.map(r,function(t){return t.getAttribute("src")}),s=function(t){return c(t)};i=p.filter(a,s).length>0}return i}function a(t,e){void 0===e&&(e=window);var n=null,i={length:0,currentScore:0,childrenScore:0,isOverMinimumWidth:!1,article:{score:0,node:null}},o=f.a.findArticle(e.document.body,e,i);return o&&o.article&&o.article.node&&(n=s(t,o.article.node,0)),n||(n=t.parentElement),r(n,e)}function s(t,e,n){if(t&&10!==n){var i=t.parentElement;return i===e?i:s(i,e,n+1)}}function c(t){return/youtube|youtu\.be|dailymotion|day\.ly|vimeo|instagram|vine-videos/i.test(t)}function u(t){void 0===t&&(t=[]);var e=p.map(t,function(t){return h.getSize(t).width}),n=function(t){return t>g};return p.filter(e,n).length>0}function d(t,e){if(void 0===e&&(e=0),!t||e===m)return t;var n=t.previousElementSibling;return n&&!h.isEmpty(n)?n:d(n,e+1)}function l(t,e){if(void 0===e&&(e=0),!t||e===m)return t;var n=t.nextElementSibling;return n&&!h.isEmpty(n)?n:l(n,e+1)}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"LARGE_IMG_THRESHOLD",function(){return g}),n.d(e,"MAX_TRY_CHECK_EMPTY",function(){return m}),e.checkImagePrevNextElement=i,e.checkVideoPrevNextElement=o,e.checkVideoInElement=r,e.checkVideoSiblings=a;var p=n(2),h=n(7),f=n(260),g=75,m=3},function(t,e,n){function i(t,e,n,i){void 0===n&&(n=null);var a=i&&i.display,s=r(t,n,e),c=o(s,t,e);return{clicktoplay:{disable:!t.videoStart.isClick()},closebutton:{disable:s.disable,countdown:s.countdown,listenSkippableState:s.listenSkippableState},soundbutton:{disable:!(!a&&!e.isSliderEnabled())||!t.soundButton.isEnabled,startOffset:t.soundButton.countdown,type:t.soundButton.type},progressbar:{disable:!!a||!t.progressBar.isEnabled()},clickbutton:{disable:!!i||!t.callButton.isEnabled(),startOffset:t.callButton.getCountdown(),text:t.callButton.getText()},label:{disable:!0,html:t.label.getHTML()},credits:{formatName:t.formatName.get(),disable:!0,text:t.credits.getText(),url:t.credits.getLink()},endscreen:{disable:!(!a&&!e.isSliderEnabled())||(t.end.isCollapse()||t.end.isEndScreen()&&!t.endScreen.isEnabled()),countdown:t.endScreen.getCountdown(),callButton:t.endScreen.getCallButton(),closeButton:{disable:c.disable,listenSkippableState:c.listenSkippableState},replayButton:t.endScreen.getReplayButton(),autoClose:t.endScreen.getAutoClose()},fullscreenbutton:{disable:!!a||!t.playerClick.isFullscreen(),preventDefault:!0},brandlogo:{disable:!t.brandLogo.isEnabled(),url:t.brandLogo.getUrl()},startscreen:{disable:!t.adType.isVideo()}}}function o(t,e,n){var i={disable:t.disable,listenSkippableState:t.listenSkippableState};return n.isSliderEnabled()&&(i.disable=!0,i.listenSkippableState=!1),i}function r(t,e,n){var i={disable:!t.closeButton.isEnabled(),countdown:t.closeButton.getCountdown(),listenSkippableState:!1};return(t.closeButton.hasToGetValueFromVast()||i.disable&&t.smartPosition.isTop())&&(i.disable=!1,e&&e.skipDelay?i.countdown=e.skipDelay:i.listenSkippableState=!0),n.isSliderEnabled()&&(i.disable=!0,i.listenSkippableState=!1),i}Object.defineProperty(e,"__esModule",{value:!0}),e.getComponentsConfig=i,e.reconcileEndScreenCloseButtonConfig=o,e.reconcileCloseButtonConfig=r},function(t,e,n){var i=n(267),o=n(245),r=n(3),a=n(7),s=n(5),c=n(316),u=n(317),d=n(114),l=n(266),p=n(44),h=n(4),f=n(59),g=n(16),m=n(163),v=n(318),y=n(63),b=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),A=function(t){function e(e,n,i,o){var a=t.call(this,e,n,o)||this;return a.placement=e,a.formatConfig=n,a.ad=i,a.isExpand=!1,a.hasTrackedImpression=!1,a.visibleOffset=0,a.fixedBackgroundHelper=new l.a(a.placement.getPlayerContainer(),a.placement.getParentContainer(),function(){return a.handleResize()}),a.slot=a.placement.getElectedSlot().getElement(),a.asset=a.ad.creative.asset,a.clickThrough=a.ad.clickThrough.length?a.ad.clickThrough[0]:null,r.isDesktop()&&(a.isExpand=!!a.ad.expand.length&&a.ad.expand[0]),a.rolloverCountdown=a.ad.rolloverCountdown.length?a.ad.rolloverCountdown[0]:null,a.closeCountdown=a.ad.closeCountdown.length?a.ad.closeCountdown[0]:null,a.isParallax="parallax"===a.ad.creative.type,a.tracker=new d.a(h.b.of([{name:p.TRACKING.impression,multiple:!1,resources:a.ad.tracking[p.TRACKING.impression]},{name:p.TRACKING.openExpand,multiple:!1,resources:a.ad.tracking[p.TRACKING.openExpand]},{name:p.TRACKING.open,multiple:!0,resources:a.ad.tracking[p.TRACKING.open]},{name:p.TRACKING.visible,multiple:!0,resources:a.ad.tracking[p.TRACKING.visible]},{name:p.TRACKING.click,multiple:!0,resources:a.ad.tracking[p.TRACKING.click]}]),f.a.businessIds.pid),a}return b(e,t),e.prototype.load=function(){var t=this;this.fixedBackgroundHelper.loadImage(this.asset.url,function(e,n){if(e)n.forEach(function(e){t.asset.width=e.naturalWidth,t.asset.height=e.naturalHeight}),t.logger.info("AdLoaded"),t.wigoi&&t.wigoi.valid(3,2),r.isIABSafeFrame()?m.initSlot(function(){return t.start()}):t.start();else{var i=n.map(function(){return g.b.MEDIAFILE_DISPLAY}).getOrElse(function(){return g.b.FILE_NOT_FOUND});t.placement.onVastError(new g.b(i),function(){t.placement.initFormatInstance(null,t.placement.handleNoAd(),t.ad),t.start()})}})},e.prototype.start=function(){var t=this;if(this.components.showAllComponents(),this.playerContainer.innerHTML="",this.initContainers(),this.assembleContainers(),this.initUi(),this.handleResize(),r.isAmp())this.win.context.observeIntersection(function(e){return t.onScroll(new Event("touchmove"))});else{var e=this.placement.placementConfig.scrollSelector.getSlot();this.eventListenerManager.add("scroll",e,function(){return t.onScroll()}),this.eventListenerManager.addMultiple(["touchstart","touchmove","touchend"],e,function(e){return t.onScroll(e)})}this.onScroll()},e.prototype.close=function(e){this.isParallax&&this.fixedBackgroundHelper.destroy(),t.prototype.close.call(this,e)},e.prototype.openFormat=function(){t.prototype.openFormat.call(this),this.handleResize(),this.logger.info("AdStarted"),this.wigoi&&this.wigoi.valid(3,3)},e.prototype.initContainers=function(){var t=this;this.isParallax&&(this.fixedBackgroundHelper.initContainer(),this.displayContainer=this.fixedBackgroundHelper.getBaseContainer()),this.clickZone=this.win.document.createElement("div"),this.clickZone.className=l.a.CSSCLASSES.clickZone,this.isExpand&&this.clickThrough&&(this.countdownContainer=document.createElement("div"),this.countdown=new u.a(this.playerContainer,this.clickZone,this.countdownContainer,function(){return t.openExpand()},function(){return t.openExpand()},this.win,this.rolloverCountdown))},e.prototype.assembleContainers=function(){this.isParallax&&(this.fixedBackgroundHelper.append(),this.isExpand&&this.clickThrough&&this.displayContainer.appendChild(this.countdownContainer)),this.playerContainer.appendChild(this.clickZone)},e.prototype.initUi=function(){var t=this;if(this.clickThrough?(this.clickZone.style.setProperty("cursor","pointer"),this.initClickArea()):a.addEventListener("click",this.clickZone,function(){return t.tracker.track(p.TRACKING.click)}),this.isParallax){var e={disable:!0};this.closeButton=new c.a(e,this.playerContainer,function(){return t.close(o.a.AdSuccess)},this.win),this.fixedBackgroundHelper.canUseBackgroundAttachment()||(this.visualCloseButton=new c.a(e,this.displayContainer,function(){},this.win))}},e.prototype.initClickArea=function(){var t=this;this.isExpand?(a.addEventListener("mouseover",this.clickZone,function(){return t.showCountdown()}),a.addEventListener("mouseout",this.clickZone,function(){return t.hideCountdown()})):a.addEventListener("click",this.clickZone,function(){t.tracker.track(p.TRACKING.click),window.open(t.clickThrough,"_blank")})},e.prototype.handleResize=function(){var t=a.getBoundingClientRect(this.parentContainer),n=t.width,i=n/e.RATIO;if(this.playerContainer.style.setProperty("height",Math.round(i)+"px"),this.playerContainer.style.setProperty("width",Math.round(n)+"px"),this.fixedBackgroundHelper.resizeContainer(),this.states.hasOpened){var o=i;for(var r in this.components.getComponents())if(this.components.getComponents().hasOwnProperty(r)){var s=this.components.getComponent(r);o+=a.getBoundingClientRect(s.getElement()).height}this.parentContainer.style.setProperty("height",Math.round(o)+"px")}},e.prototype.onScroll=function(t){var e=this.getInViewState();this.trackAdCall(e),this.states.hasOpened||(this.formatConfig.launch.isAuto()||this.formatConfig.launch.isThreshold()&&e)&&this.openFormat(),this.manageInView(e)},e.prototype.getViewportInViewState=function(){return s.isInView(this.parentContainer,this.win,this.formatConfig.threshold.get()/100,this.getAdHeight())},e.prototype.startInView=function(){var t=this;this.hasTrackedImpression||(this.tracker.track(p.TRACKING.impression,Object(h.c)(this.getTrackingMacros())),this.hasTrackedImpression=!0);var n=function(){return clearInterval(t.visibleTimer)};this.visibleTimer=setInterval(function(){t.visibleOffset+=1e3;var i=t.visibleOffset/1e3;t.tracker.track(p.TRACKING.visible,Object(h.c)(t.getTrackingMacros()),i),i>=e.MAX_VISIBLE_OFFSET&&n()},1e3),this.closeButton.resumeCoutdown(),this.fixedBackgroundHelper.canUseBackgroundAttachment()||this.visualCloseButton.resumeCoutdown()},e.prototype.endInView=function(){clearInterval(this.visibleTimer),this.closeButton.pauseCoutdown(),this.fixedBackgroundHelper.canUseBackgroundAttachment()||this.visualCloseButton.pauseCoutdown()},e.prototype.showCountdown=function(){this.closeButton.hide(),this.fixedBackgroundHelper.canUseBackgroundAttachment()||this.visualCloseButton.hide(),this.countdown.show()},e.prototype.hideCountdown=function(){this.countdown.hide(),this.closeButton.show(),this.fixedBackgroundHelper.canUseBackgroundAttachment()||this.visualCloseButton.show()},e.prototype.openExpand=function(){var t=this;this.hideCountdown();var n,i=function(){return clearInterval(n)},o=function(){t.tracker.track(p.TRACKING.openExpand,Object(h.c)(t.getTrackingMacros()));var o=0;n=setInterval(function(){o+=5e3;var n=o/1e3;t.logger.debug("open currentOffset",n),t.tracker.track(p.TRACKING.open,Object(h.c)(t.getTrackingMacros()),n),n>=e.MAX_OPEN_OFFSET&&i()},5e3)};v.a.openExpand(this.placement.getInnerContainer(),this.formatConfig,this.clickThrough,o,i,this.closeCountdown)},e.prototype.getAdHeight=function(){return a.getBoundingClientRect(this.playerContainer).height||1},e.prototype.getTrackingMacros=function(){var t=Math.ceil(100*s.getPercentageInView(this.playerContainer,this.win,this.getAdHeight()));return(t<0||!s.getRealVisibilityState(this.playerContainer))&&(t=0),Object(y.f)({viewability:h.b.of(t)})},e.RATIO=r.isMobile()?16/9:2.35,e.MAX_VISIBLE_OFFSET=1,e.MAX_OPEN_OFFSET=30,e}(i.a);e.a=A},function(t,e,n){n.d(e,"a",function(){return p});var i=n(2),o=n(9),r=n(1),a=n(13),s=[18446,20307,21020,21021,21121,21122,21123,28491,65669,73309,78357,84758,89296,18448,20303,21019,21124,21125,21126,28495,89297,20304,20305,20306,21200,21201,21202,73997,89298,26296,26427,26507,26508,28494,89299,35398,35399,35402,35404,74015,89300,74662,88400,89301,86107,88401,89302,19465,20805,20990,20996,24250,75948,19643,21593,21594,21595,24291,76007,24493,24552,24660,76336,24494,24553,24659,76325,24566,24662,76283,24663,24665,56450,76329,24814,24815,48169,76280,24816,24817,76296,26611,46389,76345,46307,46308,76290,46309,46310,76323,46311,46312,76327,54910,54913,54917,55183,76287,60026,60027,76340,69023,69027,75953,77371,77374,77375,77377,77380,77382,77383,77384,80506,80507,82796,82797,82799,82800,82801,82802,86905,86906,86907,86908,86909,86910,93725,93728,18293,21625,80545,21873,28328,28340,29493,21874,26838,27384,31809,54933,22707,22728,24041,29482,29483,29484,32962,93573,23373,23378,24045,26835,32992,93574,23374,23379,24044,26834,31810,32752,23375,23534,24042,24043,27082,29488,49630,52185,53255,26362,26836,27883,31514,75815,75816,87787,26363,27383,85543,26677,26837,27882,26746,32963,26747,26839,32991,26748,26840,32388,26750,27385,58395,26751,27386,37184,26752,26753,32387,26754,26841,26842,27387,26858,32567,80820,33560,33561,73759,73760,75142,75143,76023,76024,78087,78431,78544,79433,79434,81271,81270,84874,89428,95560,22435,22436,22474,22458,24229,31341,35066,39747,45650,48644,64868,69881,69882,69883,24232,29684,31344,41236,24236,29683,31346,41235,24237,37281,41238,24238,27617,41240,63316,90430,24251,24961,29682,41232,24605,27616,39748,41242,67015,29465,29466,41234,67016,33111,33112,33116,33119,45649,46271,71250,71253,86361,86576,86362,86577,86363,86578,86364,86579,86365,86580,24788,79053,79054,79055,25088,28361,28589,28854,42838,42839,42840,43765,59585,59586,59587,65879,65880,91913,32601,32677,34805,34806,41912,41913,41914,41915,42270,42271,42272,42273,42274,42275,65881,65882,65884,65885,65886,65887,65888,65889,65890,65891,66382,66383,66384,66385,88837,91544,91545,91546,91547,91911,34807,40075,47226,50382,65893,71133,71134,91914,37950,37951,43106,43107,43112,43113,65895,65896,65897,65898,65899,91915,41910,41911,48470,65900,65901,66386,66387,91916,42268,42269,42780,42781,65902,65903,91917,45879,45892,45897,55165,56241,56242,56940,65904,65905,45963,45964,48233,53911,56244,59873,59874,65906,65907,83801,83802,87273,90893,91912,48578,48579,48580,48581,48582,48583,59869,59870,75011,75012,75013,75016,91918,25781,25782,25900,31030,31032,33258,33869,56292,95667,31033,31034,33257,33868,65584,95666,33087,33088,35268,38234,46867,65585,35269,38229,46864,65586,35270,38232,46865,65587,95668,35271,38231,46869,65588,35272,38228,46868,65589,35273,38230,46862,65590,35274,38233,46866,65591,52910,52911,65592,75357,26328,27856,28953,33577,33948,26329,26330,26331,27862,31197,33580,26332,27866,31196,33578,26333,27867,31200,26334,27857,31198,52961,26335,31264,27858,27860,27861,31199,52962,27873,27874,33579,52632,43032,71312,75113,84819,43033,71311,75112,84820,43034,71296,75111,84961,43320,67064,71310,75110,84962,67065,71309,75109,85238,67066,71308,75108,84954,67067,71307,75107,84818,67068,71306,67069,71305,75106,84956,67070,71304,75105,84963,67071,71303,75104,84817,67072,71302,75103,67073,71301,75102,85240,67074,71300,75101,84957,67075,71299,75100,67076,71298,75099,85241,87645,67077,71297,75098,67078,67079,71295,75097,84960,67080,71294,75096,84959,67081,71293,75095,84964,67082,71292,75094,84958,67083,71291,75093,84821,67340,71290,75092,84955,68114,75354,75355,84441,73453,81834,85239,95247,87490,87491,87492,87494,87495,87496,89004,89005,89006,89007,89008,89009,89010,89011,89012,89013,89014,89015,89016,89017,89018,95250,95251,95252,44764,44766,44829,74016,44765,44798,44805,44820,44831,65670,44769,44773,44791,44806,44818,44821,44819,73998,74663,48240,48241,48242,48243,48244,48245,87908,87909,61201,61202,61203,61204,79470,92641,67461,67462,77539,77538,88933,81701,83749,83750,83751,83752,83753,83754,88363],c=function(t,e,n){return function(i){t[i]||(t[i]=!0,e.debug("Log domain "+i),n.sendInfo("domain "+i,null,.1))}},u=function(t){var e=function(t){return t.name},n=function(t){return Object(a.parse)(t).hostname},o=Object(i.map)(Object(i.map)(t,e),n);return Object(i.unique)(o)},d=function(t,e,n){return function(o){var r=o.getEntriesByType("resource");Object(i.forEach)(u(r),c(t,e,n))}},l=function(t,e,n){return function(o,r){Object(i.forEach)(u(o.getEntriesByType("resource")),c(t,e,n))}},p=function(t,e,n){var a=new r.a("DomainRetriever");if(Object(i.includes)(s,n)){var c={};o.c.of(function(){return t.performance||t.webkitPerformance||t.msPerformance||t.mozPerformance}).match({success:d(c,a,e),failure:function(t){return a.error(t)}}),o.c.of(function(){return t.PerformanceObserver}).match({success:function(t){return new t(l(c,a,e))},failure:function(t){return a.error(t)}})}}},function(t,e,n){n.d(e,"a",function(){return p});var i=n(0),o=n(5),r=n(7),a=n(2),s=n(3),c=n(1),u=n(6),d=n(36),l=n(88),p=function(){function t(t){var e=this;if(this.abstractFormat=t,this.isLandscape=!1,this.logger=new c.a("Format.Responsive"),this.orientationChangeListeners=[],this.resizeListeners=[],this.manualMaxWidth=!1,this.vpaidAd=t.getVpaidAd(),this.mainContainer=t.parentContainer,this.formatContainer=t.placement.getInnerContainer(),this.mediafile=t.player.getMediafile(),this.win=t.placement.placementConfig.parentWindow.getWindow(),this.linearAd=t.linearAd,this.vpaidAd.subscribe(function(){e.unsetResponsive()},u.a.AdError),this.vpaidAd.subscribe(function(){e.unsetResponsive()},u.a.AdStopped),Object(s.isMobile)()||Object(s.isTablet)()){var n=function(t){var n=r.getWindowSize(e.win);e.isLandscape=n.width>n.height};n(),this.addOrientationChangeListener(n),this.addOrientationChangeListener(function(){e.isNativeFullscreen()&&e.resize()});var i=function(t){e.win.setTimeout(function(){e.onOrientationChange(t)},200)};r.addEventListener("orientationchange",this.win,i),this.vpaidAd.subscribe(function(){r.removeEventListener("orientationchange",e.win,i)},u.a.AdStopped)}}return t.prototype.resizeOnStart=function(){var t=this;this.vpaidAd.subscribe(function(e){t.logger.debug("Receive metadata from video",e),e.width&&e.height&&(t.mediafile.width!==e.width||t.mediafile.height!==e.height)&&(t.logger.debug("video size is different from VAST mediafile, force resize to good dimensions"),t.mediafile.width=e.width,t.mediafile.height=e.height,t.resize(!0))},d.default.AdVideoMetadata),this.vpaidAd.subscribe(function(){return t.resize(!0)},u.a.AdVideoStart),this.vpaidAd.subscribe(function(){return t.resize(!0)},u.a.AdStarted)},t.prototype.setMainContainer=function(t){this.mainContainer=t,this.iframe&&(this.unsetResponsive(),this.setResponsive())},t.prototype.setResponsive=function(){var t=this;this.iframe||(this.iframe=document.createElement("iframe"),this.iframe.className="teads-resize",this.iframe.style.setProperty("height","0","important"),this.iframe.style.setProperty("min-height","0","important"),this.iframe.style.setProperty("width","100%","important"),this.iframe.style.setProperty("border","none","important"),this.iframe.style.setProperty("margin","0","important"),this.iframe.style.setProperty("padding","0","important"),this.iframe.style.setProperty("display","block","important")),this.abstractFormat.placement.getElectedSlot().getElement().appendChild(this.iframe),this.resizeCallback=function(){return t.resize()},r.addEventListener("resize",this.iframe.contentWindow,this.resizeCallback),this.resize()},t.prototype.unsetResponsive=function(){return!(!this.iframe||!this.iframe.parentNode)&&(r.removeEventListener("resize",this.iframe.contentWindow,this.resizeCallback),this.iframe.parentNode.removeChild(this.iframe),!0)},t.prototype.addOrientationChangeListener=function(t){a.indexOf(this.orientationChangeListeners,t)<0&&this.orientationChangeListeners.push(t)},t.prototype.addResizeListener=function(t){a.indexOf(this.resizeListeners,t)<0&&this.resizeListeners.push(t)},t.prototype.getOptimalDimension=function(t,e){void 0===t&&(t=this.mainContainer),void 0===e&&(e=1);var n=r.getWindowSize(this.win),i=this.getContainerWidth(t),o=!!this.abstractFormat.vpaidApi.getStudioData(),a=l.c.getOptimalHeight(this.mediafile,i,o),c={width:this.vpaidAd.getAdWidth(),height:this.vpaidAd.getAdHeight()};if(a>e*n.height&&!Object(s.isFacebookIA)()){var u=n.height/a;c.width=u*i*e,c.height=e*n.height}else c.width===i&&c.height===a||(c.width=i,c.height=this.isFullscreen()?n.height:a);return c.width=Math.round(c.width),c.height=Math.round(c.height),c},t.prototype.resize=function(t,e){void 0===t&&(t=!1),void 0===e&&(e=this.mainContainer);var n={width:this.vpaidAd.getAdWidth(),height:this.vpaidAd.getAdHeight()};this.setMaxWidth(e);var i,o=this.getContainerWidth(e),a=this.getOptimalDimension(),s=r.getWindowSize(this.win),c=!1;this.isNativeFullscreen()||this.isFullscreen()&&t?n.height===s.height&&n.width===s.width||(this.logger.debug("fullscreen resize from "+n.width+"x"+n.height+" to "+s.width+"x"+s.height),this.vpaidAd.resizeAd(s.width,s.height,"fullscreen"),c=!0):(t||n.height!==a.height||n.width!==a.width)&&(i=a.width>=o?0:(o-a.width)/2,this.formatContainer.style.setProperty("margin-left",i+"px"),this.formatContainer.style.setProperty("margin-right",this.formatContainer.style.marginLeft),this.logger.debug("resize from "+n.width+"x"+n.height+" to "+a.width+"x"+a.height),this.vpaidAd.resizeAd(a.width,a.height,this.isFullscreen()?"fullscreen":"normal"),c=!0),c&&this.onResize()},t.prototype.isFullscreen=function(){return Object(o.hasClass)(this.vpaidAd.getMainComponentsContainer(),"fullscreen")},t.prototype.isNativeFullscreen=function(){return Object(o.isFullscreen)(this.win.document)},t.prototype.onOrientationChange=function(t){a.forEach(this.orientationChangeListeners,function(e){e(t)})},t.prototype.onResize=function(){var t=this;this.win.setTimeout(function(){a.forEach(t.resizeListeners,function(t){t()})},100)},t.prototype.getContainerWidth=function(t){if(void 0===t&&(t=this.mainContainer),this.isFullscreen())return r.getWindowSize(this.win).width;var e=this.win.getComputedStyle(t),n=e.getPropertyValue("width");if(Object(i.isSizeInPx)(n))return Math.round(parseFloat(n));var o=parseFloat(e.getPropertyValue("padding-left"))||0,a=parseFloat(e.getPropertyValue("padding-right"))||0;return Math.round(r.getBoundingClientRect(t).width-(o+a))},t.prototype.setMaxWidth=function(t){if(void 0===t&&(t=this.mainContainer),this.isFullscreen())t.style.setProperty("max-width","none");else if(!t.style.getPropertyValue("max-width")||this.manualMaxWidth){var e=r.getBoundingClientRect(t),n=r.getBoundingClientRect(this.iframe);t.style.setProperty("max-width",Math.round(n.width-Math.max(e.left-n.left,e.right-n.right))+"px"),this.manualMaxWidth=!0}},t}()},function(t,e,n){n.d(e,"a",function(){return i});var i=function(){function t(t){this.components=t}return t.prototype.getComponent=function(t){return this.components.hasOwnProperty(t)?this.components[t]:null},t.prototype.getComponents=function(){return this.components},t.prototype.showComponent=function(t){this.components.hasOwnProperty(t)&&this.components[t].show()},t.prototype.hideComponent=function(t){this.components.hasOwnProperty(t)&&this.components[t].hide()},t.prototype.showAllComponents=function(){for(var t in this.components)this.components.hasOwnProperty(t)&&this.components[t].show()},t.prototype.hideAllComponents=function(){for(var t in this.components)this.components.hasOwnProperty(t)&&this.components[t].hide()},t}()},function(t,e,n){n.d(e,"a",function(){return E});var i,o=n(1),r=n(2),a=n(5),s=n(7),c=[{name:"DoubleVerify",domain:/cdn\.doubleverify\.com/,appendRule:function(t,e){t.parentElement.appendChild(e)}},{name:"ComScore",domain:/sb\.voicefive\.com/,appendRule:function(t,e){t.insertBefore(e,t.firstChild)}},{name:"IAS",domain:/pixel\.adsafeprotected\.com/,appendRule:function(t,e){t.insertBefore(e,t.firstChild)}},{name:"MOAT",domain:/\.moatads\.com/,appendRule:function(t,e){t.insertBefore(e,t.firstChild)}}],u=function(t){return r.find(c,function(e){return e.name===t})},d=function(t){return r.find(c,function(e){return e.domain.test(t)})},l=function(){if(void 0!==i)return i;if("undefined"==typeof DOMParser||"function"!=typeof DOMParser)i=!1;else{var t=new DOMParser;try{var e=t.parseFromString("<div>Hello</div>","text/html");i="DIV"===e.body.firstElementChild.nodeName&&"Hello"===e.body.firstElementChild.innerHTML}catch(t){i=!1}}return i},p=function(t,e){var n=e.onEnterElement;if(!0!==n(t))for(var i=t.firstElementChild;i;i=i.nextElementSibling)p(i,{onEnterElement:n})},h=function(t,e){var n=[];return p(t,{onEnterElement:function(t){if(e(t))return n.push(t),t.parentElement&&t.parentElement.removeChild(t),!0}}),n},f=function(t,e){var n=[];return p(t,{onEnterElement:function(t){if(e(t))return n.push(t),!0}}),n},g=function(t){var e=t.getAttribute("src");return!("SCRIPT"!==t.nodeName||!e||!r.some(c,function(t){return t.domain.test(e)}))},m=function(t){for(var e=document.createElement("script"),n=0;n<t.attributes.length;n++){var i=t.attributes[n],o=i.name,r=i.value;e.setAttribute(o,r)}return e},v=function(t){var e=new DOMParser,n=A(e)(t),i=r.map(h(n,g),function(t){var e=t.getAttribute("src");return{provider:d(e).name,source:e,script:t}});return{creative:n.innerHTML,viewabilityTags:i}},y=function(t){var e=new DOMParser,n=A(e)(t);r.forEach(f(n,g),function(t){(new Image).src=t.getAttribute("src")})},b=function(t){return"<div>"+t+"</div>"},A=function(t){return function(e){return t.parseFromString(b(e),"text/html").body.firstElementChild}},E=function(){function t(t,e,n,i,r){this.insertionId=t,this.connectionId=e,this.connectionType=n,this.playerContainer=i,this.win=r,this.logger=new o.a("ViewabilityTags"),this.thresholdReached=!1,this.thresholdReachedCallbacks=[],l()}return t.prototype.appendViewabilityTags=function(t){var e=this;r.forEach(t,function(t){return u(t.provider).appendRule(e.playerContainer,m(t.script))})},t.prototype.getCreativeTag=function(t){var e=this;if(l()&&this.connectionType.isDisplay()){y(t);var n=v(t),i=n.creative,o=n.viewabilityTags;return this.onceThresholdReached(function(){return e.appendViewabilityTags(o)}),i}return t},t.prototype.onceThresholdReached=function(t){this.thresholdReached?t():this.thresholdReachedCallbacks.push(t)},t.prototype.onScroll=function(){if(!this.thresholdReached){.25<=Object(a.getPercentageInView)(this.playerContainer,this.win,Object(s.getSize)(this.playerContainer).height,!0)&&this.resolveThresholdReach()}},t.prototype.resolveThresholdReach=function(){!0!==this.thresholdReached&&(this.thresholdReached=!0,r.forEach(this.thresholdReachedCallbacks,function(t){return t()}),this.thresholdReachedCallbacks=[])},t}()},function(t,e,n){n.d(e,"a",function(){return d});var i,o=n(27),r=n(2),a=n(1),s=n(6),c=n(3),u=n(7);!function(t){t[t.NO=0]="NO",t[t.HAS_MUTED=1]="HAS_MUTED",t[t.HAS_UNMUTED=2]="HAS_UNMUTED"}(i||(i={}));var d=function(){function t(){this.lastUserInteractionSound=i.NO,this.cursorCoords={x:0,y:0},this.currentVolume=0,this.muteCallbacks=[],this.unmuteCallbacks=[],this.logger=new a.a("helper.VolumeController"),this.eventListenerManager=new o.a}return t.prototype.init=function(t){this.abstractFormat=t,this.vpaidAd=t.getVpaidAd(),this.formatConfig=t.formatConfig,this.formatConfig.soundStart.isMute()?this.hasStarted=!1:this.formatConfig.soundStart.isUnmute()?this.hasStarted=!0:this.formatConfig.soundStart.isCountdown()&&(this.hasStarted=!1)},t.prototype.getVolume=function(){return-1===this.vpaidAd.getAdVolume()?this.currentVolume:this.vpaidAd.getAdVolume()},t.prototype.setVolume=function(t){this.getVolume()!==t&&(this.currentVolume=t,this.vpaidAd.setAdVolume(t))},t.prototype.toggleVolume=function(){if(this.getVolume()>0)this.mute(),this.lastUserInteractionSound=i.HAS_MUTED,r.forEach(this.muteCallbacks,function(t){return t()});else{var t=this.formatConfig.volume.getMain();this.setVolume(t),this.lastUserInteractionSound=i.HAS_UNMUTED,r.forEach(this.unmuteCallbacks,function(t){return t()})}},t.prototype.userAlreadyInteracted=function(){return this.lastUserInteractionSound!==i.NO},t.prototype.startAt=function(t){var e=this,n=function(){e.vpaidAd.getAdDuration()-e.vpaidAd.getAdRemainingTime()>=t&&(e.vpaidAd.unsubscribe(n,s.a.AdRemainingTimeChange),e.hasStarted||(e.hasStarted=!0,e.setVolume(e.formatConfig.volume.getMain())))};this.vpaidAd.subscribe(n,s.a.AdRemainingTimeChange)},t.prototype.mute=function(){this.setVolume(0)},t.prototype.isMuted=function(){return 0===this.getVolume()},t.prototype.onAdVideoStart=function(){this.formatConfig.soundStart.isUnmute()?this.setVolume(this.formatConfig.volume.getMain()):this.formatConfig.soundStart.isCountdown()?this.startAt(this.formatConfig.soundStart.getCountdown()):this.setVolume(0)},t.prototype.replay=function(){var t=this,e=Object(u.getBoundingClientRect)(this.abstractFormat.parentContainer);Object(c.isDesktop)()&&(this.cursorCoords={x:Math.floor(e.left+e.width/2),y:Math.floor(e.top+e.height/2)},this.eventListenerManager.add("mousemove",this.abstractFormat.placement.placementConfig.parentWindow.getWindow().document.body,function(e){t.cursorCoords={x:e.clientX,y:e.clientY}}))},t.prototype.startInView=function(){if(!this.userAlreadyInteracted()){this.formatConfig.soundMute.isThreshold()&&this.hasStarted&&(this.formatConfig.soundStart.isCountdown()||this.formatConfig.soundStart.isUnmute())&&this.setVolume(this.formatConfig.volume.getMain())}},t.prototype.endInView=function(){!this.userAlreadyInteracted()&&this.formatConfig.soundMute.isThreshold()&&this.hasStarted&&this.setVolume(0)},t.prototype.addMuteCallback=function(t){r.indexOf(this.muteCallbacks,t)<0&&this.muteCallbacks.push(t)},t.prototype.addUnmuteCallback=function(t){r.indexOf(this.unmuteCallbacks,t)<0&&this.unmuteCallbacks.push(t)},t}()},function(t,e,n){function i(t,e,n){var i=p[t],o=l[e];return n(i,e)&&o||(o=t),o}function o(t,e){var n=!1;switch(t){case s.FACEBOOK_IA.exitsViewport:n=e===s.FACEBOOK_IA.entersViewport;break;case s.FACEBOOK_IA.entersViewport:n=e===s.FACEBOOK_IA.centerEntersViewport||e===s.FACEBOOK_IA.exitsViewport;break;case s.FACEBOOK_IA.centerEntersViewport:n=e===s.FACEBOOK_IA.centerExitsViewport;break;case s.FACEBOOK_IA.centerExitsViewport:n=e===s.FACEBOOK_IA.exitsViewport||e===s.FACEBOOK_IA.centerEntersViewport;break;case void 0:n=!0}return u.debug(t+" -> "+e+" = "+n),n}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"logger",function(){return u}),n.d(e,"NOT_IN_VIEW",function(){return d}),n.d(e,"eventToPercent",function(){return l}),n.d(e,"percentToEvent",function(){return p}),e.getPercentInView=i,e.isFlowValid=o;var r,a,s=n(44),c=n(1),u=new c.a("helper.Facebook"),d=-1,l=(r={},r[s.FACEBOOK_IA.exitsViewport]=d,r[s.FACEBOOK_IA.entersViewport]=1,r[s.FACEBOOK_IA.centerExitsViewport]=49,r[s.FACEBOOK_IA.centerEntersViewport]=51,r),p=(a={},a[d]=s.FACEBOOK_IA.exitsViewport,a[1]=s.FACEBOOK_IA.entersViewport,a[49]=s.FACEBOOK_IA.centerExitsViewport,a[51]=s.FACEBOOK_IA.centerEntersViewport,a)},function(t,e,n){n.d(e,"a",function(){return l});var i=n(1),o=n(67),r=n(8),a=n(58),s=n(7),c=n(296),u=n.n(c),d=function(){function t(e,n,o){if(this.element=e,this.countdown=n,this.callback=o,this.logger=new i.a("helper.DisplayCloseButton.countdown"),this.element.className=t.ELEMENT_CLASS,this.countdown=Number(this.countdown),this.countdown<=0||isNaN(this.countdown))return void this.onEnded();var s=a.replacePlaceholders(t.TEMPLATE,{"countdown-duration":this.countdown,"countdown-id":"countdown-"+r.rand(10)});this.element.innerHTML=s,this.countdownTextElement=e.querySelector("."+t.TIMER_CLASS)}return t.prototype.resume=function(){this.ended||(this.paused=!1,this.initTimer())},t.prototype.pause=function(){this.ended||(this.paused=!0,this.stopTimer())},t.prototype.onEnded=function(){if(this.ended=!0,clearInterval(this.timerInterval),this.hide(),this.callback&&"function"==typeof this.callback)try{this.callback()}catch(t){this.logger.error("countdown ended callback failed",t)}},t.prototype.initTimer=function(){var t=this,e=function(){t.paused||t.countdown--,t.countdown<=0?t.onEnded():t.updateDisplay()};this.timerInterval=setInterval(e,1e3),this.updateDisplay()},t.prototype.stopTimer=function(){clearInterval(this.timerInterval)},t.prototype.updateDisplay=function(){this.countdownTextElement&&this.countdownTextElement.setAttribute&&this.countdownTextElement.setAttribute("data-countdown",String(this.countdown))},t.prototype.hide=function(){this.element.style.setProperty("display","none")},t.TEMPLATE=u.a,t.ELEMENT_CLASS="components-countdown",t.TIMER_CLASS="components-countdown-timer",t}(),l=function(){function t(t,e,n,r){var a=this;if(this.config=t,this.clickZoneContainer=e,this.callback=n,this.win=r,this.isVisible=!0,this.countdownEnded=!1,this.logger=new i.a("helper.DisplayCloseButton"),!this.config.disable){this.clickZone=this.win.document.createElement("div"),this.clickZone.className=o.a+"closebutton",this.clickZone.style.setProperty("position","absolute"),this.clickZone.style.setProperty("top","0px"),this.clickZone.style.setProperty("right","0px"),this.clickZone.style.setProperty("padding","15px");var s=this.win.document.createElement("div");this.countdown=new d(s,this.config.countdown,function(){return a.onCountdownEnded()}),this.clickZone.appendChild(s),this.clickZoneContainer.appendChild(this.clickZone)}}return t.prototype.hide=function(){!this.config.disable&&this.isVisible&&(this.clickZone.style.setProperty("display","none"),this.isVisible=!1)},t.prototype.show=function(){this.config.disable||this.isVisible||(this.clickZone.style.setProperty("display","block"),this.isVisible=!0)},t.prototype.resumeCoutdown=function(){this.config.disable||this.countdown.resume()},t.prototype.pauseCoutdown=function(){this.config.disable||this.countdown.pause()},t.prototype.onCountdownEnded=function(){var t=this;if(!this.countdownEnded){this.countdownEnded=!0;var e=this.win.document.createElement("div");e.className=o.a+"closebutton icon-close",e.style.setProperty("cursor","pointer"),this.clickZone.appendChild(e),s.addEventListener("click",e,function(){t.onClose()})}},t.prototype.onClose=function(){if(this.callback&&"function"==typeof this.callback)try{this.callback()}catch(t){this.logger.error("onClose callback failed",t)}},t}()},function(t,e,n){var i=n(166),o=n(1),r=n(191),a=n(7),s=n(61),c=n(28),u=n(0),d=n(58),l=function(){function t(e,n,i,s,c,u,d){var l=this;this.parentContainer=e,this.clickZone=n,this.container=i,this.endCallback=s,this.clickCallback=c,this.win=u,this.rolloverCountdown=d,this.logger=new o.a("helper.Countdown"),Object(r.embedCSS)(t.CSS,this.win,t.STYLE_NODE_ID),this.container.className=t.CSSCLASSES.countdownContainer,a.addEventListener("click",this.clickZone,function(){l.onClick()})}return t.prototype.show=function(){var e=this;this.logger.debug("init countdown called"),Object(r.embedCSS)(i.COUNTDOWNCSS,this.win,t.CSSCLASSES.countdownStyle),this.container.style.setProperty("opacity","0"),this.container.innerHTML=d.replacePlaceholders(i.COUNTDOWNHTML,{assetsPath:s.b.assetsUrl});var n=a.getElementsByClassName(t.CSSCLASSES.countdownCircle,this.container)[0],o=a.getBoundingClientRect(n),u=a.getBoundingClientRect(this.parentContainer);n.style.setProperty("top",(u.height-o.height)/2+"px"),n.style.setProperty("right",(u.width-o.width)/2+"px"),setTimeout(function(){return e.container.style.setProperty("opacity","1")},100);var l=a.getElementsByClassName(t.CSSCLASSES.countdownNumber,this.container)[0],p=3,h=a.getElementsByClassName(t.CSSCLASSES.countdownCircleStroke,this.container)[0],f=h.attributes["stroke-dasharray"]?Number(h.attributes["stroke-dasharray"].value):0;h.style.setProperty("stroke-dashoffset",String(f));var g=this.rolloverCountdown?1e3*this.rolloverCountdown/p:600,m=p*g/(1e3/60),v=0,y=function(){v<=m&&(h.style.setProperty("stroke-dashoffset",""+(f-v/m*f)),v++,e.countdownCircleStrokeTimer=c.requestAnimationFrame(y,1e3/60))};this.countdownCircleStrokeTimer=c.requestAnimationFrame(y,1e3/60),this.countdownTimer=setInterval(function(){p>0&&p--,l.textContent=String(p),0===p&&e.onEnded()},g)},t.prototype.hide=function(){this.container&&(this.container.innerHTML="",clearInterval(this.countdownTimer),c.cancelAnimationFrame(this.countdownCircleStrokeTimer))},t.prototype.onEnded=function(){if(this.endCallback&&Object(u.isFunction)(this.endCallback))try{this.endCallback()}catch(t){this.logger.error("Countdown onEnded callback error",t)}},t.prototype.onClick=function(){if(this.clickCallback&&Object(u.isFunction)(this.clickCallback))try{this.clickCallback()}catch(t){this.logger.error("Countdown onClick callback error",t)}},t.STYLE_NODE_ID="teads-inread-countdown",t.CSS=i.COUNTDOWNCSS,t.CSSCLASSES={countdown:"teads-countdown",countdownStyle:"teads-countdown-style",countdownBackground:"teads-countdown-background",countdownCircle:"teads-countdown-circle",countdownCircleStroke:"teads-countdown-circle-main",countdownNumber:"teads-countdown-number",countdownClickZone:"teads-countdown-clickzone",countdownContainer:"teads-countdown-container",countdownMainContainer:"teads-countdown-maincontainer"},t}();e.a=l},function(t,e,n){var i=n(166),o=n(7),r=n(5),a=n(269),s=n(270),c=n(0),u=n(61),d=n(58),l=function(){function t(e,n,o,a,s){void 0===n&&(n=document.body),void 0===o&&(o=10),void 0===a&&(a=400),this.fromElement=n,this.margin=o,this.transitionDuration=a,this.scope=s,this.css=i.EXPANDCSS,this.content=d.replacePlaceholders(i.EXPANDHTML,{iframeurl:e,assetsPath:u.b.assetsUrl}),s||(this.scope=r.findTopWindow(window.document.body)),this.background=this.scope.document.createElement("div"),this.background.style.setProperty("display","none"),this.background.className="teads-expand-overlay open",this.scope.document.body.appendChild(this.background),this.container=this.scope.document.createElement("div"),this.container.style.setProperty("display","none"),this.container.className="teads-expand-container",this.scope.document.body.appendChild(this.container),this.setCSS(this.css),this.contentContainer=document.createElement("div"),this.contentContainer.className=t.CSSCLASSES.expandContentContainer,this.contentContainer.innerHTML=this.content,this.container.appendChild(this.contentContainer)}return t.openExpand=function(e,n,i,r,u,d){var l=new t(i,e),p=l.getContentElement(),h=o.getElementsByClassName(t.CSSCLASSES.expandLabel,p)[0],f=o.getElementsByClassName(t.CSSCLASSES.expandCredit,p)[0],g=o.getElementsByClassName(t.CSSCLASSES.expandCloseButton,p)[0],m=function(t,e){if(t){var n=e.getHTML();!n&&t.parentNode?t.parentNode.removeChild(t):t.innerHTML=n}};m(h,new a.a(n.label)),m(f,new s.a(n.credits)),d&&(g.style.setProperty("display","none"),setTimeout(function(){g.style.setProperty("display","block")},1e3*d));var v=function(){var e=o.getElementsByClassName(t.CSSCLASSES.expandIframe,p)[0],n=o.getElementsByClassName(t.CSSCLASSES.expand,p)[0],i=o.getBoundingClientRect(n).height,r=l.getContainerHeight()-i+o.getBoundingClientRect(e).height;e.style.setProperty("width",l.getContainerWidth()+"px"),e.style.setProperty("height",r+"px")};l.open(function(){v(),r&&Object(c.isFunction)(r)&&r()},function(){return v()}),o.addEventListener("click",g,function(){l.close(function(){u&&Object(c.isFunction)(u)&&u(),l.destroy()})})},t.prototype.setCSS=function(e){this.css=e;var n=this.scope.document.getElementById(t.styleNodeId);n&&n.parentNode.removeChild(n);var i=document.createElement("style");i.setAttribute("id",t.styleNodeId),i.appendChild(this.scope.document.createTextNode(d.replacePlaceholders(this.css,{transitionDuration:this.transitionDuration,assetsPath:u.b.assetsUrl})));var n=this.scope.document.head||this.scope.document.body||this.background;n.appendChild(i)},t.prototype.open=function(t,e){var n=this;if(!this.opened){this.opened=!0,this.contentContainer.style.setProperty("display","none"),this.background.style.setProperty("display","block"),this.fitContainerToElement(this.fromElement),this.container.style.setProperty("display","block");var i=function(t){e&&e()};setTimeout(function(){r.addClass(n.background,"opened"),r.addClass(n.container,"opened"),n.container.style.setProperty("top",n.margin+"px"),n.container.style.setProperty("left",n.margin+"px"),n.updateSize(),setTimeout(function(){r.addClass(n.scope.document.body,"noscroll"),i(),n.contentContainer.style.setProperty("display","block"),t&&"function"==typeof t&&t()},n.transitionDuration)},10);var a=function(){n.updateSize(),i()};this.resizeWindowListener=a,o.addEventListener("resize",this.scope,a)}},t.prototype.close=function(t){var e=this;this.opened&&(this.resizeWindowListener&&(o.removeEventListener("resize",this.scope,this.resizeWindowListener),this.resizeWindowListener=null),this.contentContainer.style.setProperty("display","none"),r.removeClass(this.scope.document.body,"noscroll"),this.fitContainerToElement(this.fromElement),r.removeClass(this.background,"opened"),r.removeClass(this.container,"opened"),setTimeout(function(){e.background.style.setProperty("display","none"),e.container.style.setProperty("display","none"),e.opened=!1,t&&Object(c.isFunction)(t)&&t()},this.transitionDuration))},t.prototype.destroy=function(){this.container.parentNode.removeChild(this.container),this.background.parentNode.removeChild(this.background);var e=this.scope.document.getElementById(t.styleNodeId);e.parentNode.removeChild(e)},t.prototype.isOpened=function(){return!!this.opened},t.prototype.updateSize=function(){this.container.style.setProperty("width",this.getContainerWidth()+"px"),this.container.style.setProperty("height",this.getContainerHeight()+"px")},t.prototype.getContentElement=function(){return this.container},t.prototype.getContainerWidth=function(){return this.scope.innerWidth-2*this.margin},t.prototype.getContainerHeight=function(){return this.scope.innerHeight-2*this.margin},t.prototype.fitContainerToElement=function(t){var e=o.getBoundingClientRect(t);this.container.style.setProperty("position","fixed"),this.container.style.setProperty("top",e.top+"px"),this.container.style.setProperty("left",e.left+"px"),this.container.style.setProperty("width",e.width+"px"),this.container.style.setProperty("height",e.height+"px")},t.styleNodeId="teads-expand-helper-style",t.CSSCLASSES={expand:"teads-expand",expandIframe:"teads-expand-iframe",expandLabel:"teads-expand-label",expandCredit:"teads-expand-credits",expandCloseButton:"teads-expand-closebutton",expandContentContainer:"teads-expand-content"},t}();e.a=l},function(t,e,n){n.d(e,"a",function(){return l});var i=n(244),o=n(268),r=n(44),a=n(3),s=n(20),c=n(28),u=n(271),d=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),l=function(t){function e(e,n,i){var o=t.call(this,e,n,i,r.SLOT_TYPE.corner)||this;return o.placement=e,o.config=n,o.player=i,o}return d(e,t),e.prototype.load=function(e,n){t.prototype.load.call(this,e,n)},e.prototype.getTemplateName=function(){return"inread"},e.prototype.close=function(t){var e=this;s.isLowerOrEqual(a.getIEVersion(),"9")?this.exit(t):this.eventListenerManager.addMultiple(["transitionend","otransitionend","oTransitionEnd","webkitTransitionEnd"],this.parentContainer,function(){e.exit(t)})},e.prototype.onAdLoaded=function(){var e=this;t.prototype.onAdLoaded.call(this),this.smartPositionHelper.init(),c.setTimeout(function(){e.smartPositionHelper.start();var t=e.smartPositionHelper.getOptimalDimension();e.parentContainer.style.setProperty("width",t.width+"px"),e.parentContainer.style.setProperty("height",t.height+"px"),e.vpaidAd.startAd()},1)},e.prototype.onAdVideoStart=function(){t.prototype.onAdVideoStart.call(this),this.openFormat()},e.prototype.onAdVideoComplete=function(){t.prototype.onAdVideoComplete.call(this),this.smartPositionHelper.deinit()},e.prototype.fitContainerToContent=function(t){return null},e.prototype.getViewportInViewState=function(){return!0},e.prototype.onVpaidReady=function(){t.prototype.onVpaidReady.call(this),this.placement.placementTracker.handleMirroringEvent(),this.fullscreenHelper=new u.a(this.parentContainer,this.vpaidAd,this.components,this.responsive,this.win,this.playerContainer),this.formatConfig.smartPosition.setValue({corner:!0,top:!1,mustBypassWhitelist:!1}),this.smartPositionHelper=new i.a(this)},e.prototype.openFormat=function(){this.states.hasOpened=!0,this.placement.placementConfig.css.applyRulesOn(this.parentContainer)},e}(o.a)},function(t,e,n){function i(){var t=function(t){o=Object(a.createIframe)(),o.id=d,o.src=s.b.wigoIframeUrl,o.style.setProperty("display","none","important"),t.document.body.appendChild(o)};return c.c.of(function(){return Object(a.findTopWindow)(window.document.body)}).recover(function(t){return u.warn("Cannot get top window",t),window}).forEach(t),o}e.a=i;var o,r=n(1),a=n(5),s=n(61),c=n(9),u=new r.a("helper.WigoIframe"),d="wigoiframe"},function(t,e,n){var i=n(194),o=n(423),r=n(4),a=n(322),s=n(323),c=n(324),u=n(325),d=n(184),l=n(326),p=n(327),h=n(328),f=n(329),g=n(330),m=n(331),v=n(332),y=n(333),b=n(334),A=n(335),E=n(336),w=n(262),_=n(261),C=n(337),S=n(338),T=n(339),O=n(340),I=n(342),P=n(343),k=n(344),L=function(){function t(t,e){void 0===e&&(e=r.a),this.raw=t,this.headerBiddingProvider=e,t.slot||(t.slot={}),this.pid=new i.a(t.pid),this.formatName=new d.a(t.format),this.btf=new l.a(t.slot.btf),this.css=new p.a(t.css),this.filter=new h.a(t.slot.filter),this.insertBefore=new f.a(t.slot.insertBefore),this.insertInside=new g.a(t.slot.insertInside),this.minimum=new m.a(t.slot.minimum),this.minimumBelow=new v.a(t.slot.minimumBelow),this.capping=new y.a(t.capping,t.pid),this.parentWindow=new b.a(t.parentWindow),this.fallback=new A.a(t.fallback),this.rpmFallback=new E.a(t.rpmFallback),this.videoFilter=new w.a(t.slot.videoFilter),this.imageFilter=new _.a(t.slot.imageFilter),this.minimumTextLength=new C.a(t.slot.minimumTextLength),this.minimumWidth=new S.a(t.slot.minimumWidth),this.maximumWidth=new T.a(t.slot.maximumWidth),this.belowSelector=new O.a(t.slot.belowSelector,this.parentWindow.getWindow()),this.selector=new a.a(t.slot.selector,this.parentWindow.getWindow()),this.auto=new I.a(t.slot.auto,this.selector),this.avoid=new P.a(t.slot.avoid,this.parentWindow.getWindow()),this.scrollSelector=new k.a(t.slot.scrollSelector,this.parentWindow.getWindow()),this.callbacks=t.callbacks,this.mobile=new c.a(t.mobile),this.tablet=new u.a(t.tablet),this.desktop=new s.a(t.desktop),this.allowedRatio=new o.a}return t.prototype.isMobile=function(){return this.mobile.isEnabled()},t.prototype.isTablet=function(){return this.tablet.isEnabled()},t.prototype.isDesktop=function(){return this.desktop.isEnabled()},t}();e.a=L},function(module,__webpack_exports__,__webpack_require__){var __WEBPACK_IMPORTED_MODULE_0_format_option_AbstractOption__=__webpack_require__(14),__WEBPACK_IMPORTED_MODULE_1_common_FormatException__=__webpack_require__(35),__WEBPACK_IMPORTED_MODULE_2_common_Context__=__webpack_require__(3),__WEBPACK_IMPORTED_MODULE_3_common_Dom__=__webpack_require__(7),__WEBPACK_IMPORTED_MODULE_4_common_ArrayHelper__=__webpack_require__(2),__WEBPACK_IMPORTED_MODULE_5_common_HTMLHelper__=__webpack_require__(5),__WEBPACK_IMPORTED_MODULE_6_common_Utils__=__webpack_require__(0),__WEBPACK_IMPORTED_MODULE_7_format_placement_Slot__=__webpack_require__(209),__extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),Selector=function(_super){function Selector(t,e){var n=_super.call(this,"Selector")||this;if(n.value=t,n.win=e,n.default=null,n.screenSizes={mobile:"[WIDTH]<768",tablet:"[WIDTH]>=768 && [WIDTH]<992",desktop:"[WIDTH]>=992 && [WIDTH]<1200",large:"[WIDTH]>=1200"},!e)throw new __WEBPACK_IMPORTED_MODULE_1_common_FormatException__.a(__WEBPACK_IMPORTED_MODULE_1_common_FormatException__.a.OPTION_PARENTWINDOW_INVALID);return n.checkValue(),n}return __extends(Selector,_super),Selector.prototype.checkValue=function(){Object(__WEBPACK_IMPORTED_MODULE_6_common_Utils__.isString)(this.value)||__WEBPACK_IMPORTED_MODULE_3_common_Dom__.isHTMLElement(this.value)||__WEBPACK_IMPORTED_MODULE_3_common_Dom__.isNodeList(this.value)||__WEBPACK_IMPORTED_MODULE_3_common_Dom__.isISlotSelector(this.value)||(this.value=this.default)},Selector.prototype.get=function(){return this.value},Selector.prototype.getSlots=function(){var t=[],e=this.value;if(__WEBPACK_IMPORTED_MODULE_3_common_Dom__.isISlotSelector(this.value)){var n=void 0;for(var i in this.value)if(this.value.hasOwnProperty(i)&&(n=this.checkScreenSelector(i,this.win))){e=this.value[i];break}n?this.logger.debug("Slot",n,"selected:",e):this.logger.warn("Slots by device not found: ",this.value)}if(Object(__WEBPACK_IMPORTED_MODULE_6_common_Utils__.isString)(e)&&e){var o=[],r=__WEBPACK_IMPORTED_MODULE_5_common_HTMLHelper__.findAllWindows(document.body);__WEBPACK_IMPORTED_MODULE_4_common_ArrayHelper__.forEach(r,function(t){Object(__WEBPACK_IMPORTED_MODULE_6_common_Utils__.isString)(e)&&(o=o.concat(__WEBPACK_IMPORTED_MODULE_3_common_Dom__.querySelectorAll(e,t)))});for(var a=0;a<o.length;a++)t.push(new __WEBPACK_IMPORTED_MODULE_7_format_placement_Slot__.a(o[a],a))}else if(__WEBPACK_IMPORTED_MODULE_3_common_Dom__.isHTMLElement(e))t.push(new __WEBPACK_IMPORTED_MODULE_7_format_placement_Slot__.a(e));else if(__WEBPACK_IMPORTED_MODULE_3_common_Dom__.isNodeList(e))for(var a=0;a<e.length;a++)t.push(new __WEBPACK_IMPORTED_MODULE_7_format_placement_Slot__.a(e[a],a));return!t.length&&(Object(__WEBPACK_IMPORTED_MODULE_2_common_Context__.isAmp)()||Object(__WEBPACK_IMPORTED_MODULE_2_common_Context__.isIABSafeFrame)()||Object(__WEBPACK_IMPORTED_MODULE_2_common_Context__.isFacebookIA)())&&t.push(new __WEBPACK_IMPORTED_MODULE_7_format_placement_Slot__.a(this.win.document.body)),t},Selector.prototype.checkScreenSelector=function(screen,win){var _this=this,selectedScreenSelector=null,currentWidth=Math.max(win.document.documentElement.clientWidth,win.innerWidth||0);return __WEBPACK_IMPORTED_MODULE_4_common_ArrayHelper__.forEach(screen.split("+"),function(screenSelector){if(_this.screenSizes[screenSelector])try{var screenSelectorPattern=_this.screenSizes[screenSelector].replace(/\[WIDTH\]/g,currentWidth);if(eval(screenSelectorPattern))return void(selectedScreenSelector=screenSelector)}catch(t){_this.logger.warn("screenSelector eval has failed")}}),selectedScreenSelector},Selector}(__WEBPACK_IMPORTED_MODULE_0_format_option_AbstractOption__.a);__webpack_exports__.a=Selector},function(t,e,n){var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"Desktop")||this;return i.value=n,i.checkValue(),i}return r(e,t),e.prototype.checkValue=function(){Object(o.isBoolean)(this.value)||(this.value=e.DEFAULT)},e.prototype.isEnabled=function(){return this.value},e.DEFAULT=!0,e}(i.a);e.a=a},function(t,e,n){var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"Mobile")||this;return i.value=n,i.checkValue(),i}return r(e,t),e.prototype.checkValue=function(){Object(o.isBoolean)(this.value)||(this.value=e.DEFAULT)},e.prototype.isEnabled=function(){return this.value},e.DEFAULT=!0,e}(i.a);e.a=a},function(t,e,n){var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"Tablet")||this;return i.value=n,i.checkValue(),i}return r(e,t),e.prototype.checkValue=function(){Object(o.isBoolean)(this.value)||(this.value=e.DEFAULT)},e.prototype.isEnabled=function(){return this.value},e.DEFAULT=!0,e}(i.a);e.a=a},function(t,e,n){var i=n(14),o=n(3),r=n(0),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"Btf")||this;return i.value=n,(Object(o.isFacebookIA)()||Object(o.isAmp)()||Object(o.isIABSafeFrame)())&&(i.value=!1),i.checkValue(),i}return a(e,t),e.prototype.checkValue=function(){Object(r.isBoolean)(this.value)||(this.value=e.DEFAULT)},e.prototype.set=function(t){this.value=t},e.prototype.isEnabled=function(){return this.value},e.DEFAULT=!0,e}(i.a);e.a=s},function(t,e,n){var i=n(14),o=n(2),r=n(8),a=n(0),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=this&&this.__read||function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a},u=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"Css")||this;return i.originalRules=n,i.checkValue(),i.originalRules&&(i.rules=e.transformStringToObject(i.originalRules)),i}return s(e,t),e.transformStringToObject=function(t){var e={};if(!t)return e;var n=t.split(";");return o.forEach(n,function(t){var n=c(t.split(":"),2),i=n[0],o=n[1];i&&o&&(i=r.trim(i),o=r.trim(o),e[i]=o,"float"===i&&(e.cssFloat=o,e.styleFloat=o))}),e},e.prototype.checkValue=function(){Object(a.isString)(this.originalRules)||(this.originalRules=e.DEFAULT)},e.prototype.getOriginal=function(){return this.originalRules},e.prototype.applyRulesOn=function(t){this.applyCssRulesOn(t,this.rules)},e.prototype.applyCssRulesOn=function(t,n){var i,o=!1;for(var r in n)n.hasOwnProperty(r)&&(o=e.IMPORTANT_REGEX.test(n[r]),i=n[r].replace(e.IMPORTANT_REGEX,"").trim(),t.style.setProperty(r,i,o?"important":null))},e.DEFAULT=null,e.IMPORTANT_REGEX=/!\s*important/i,e}(i.a);e.a=u},function(t,e,n){var i=n(14),o=n(59),r=n(0),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"Filter")||this;return i.func=n,i.checkValue(),i}return a(e,t),e.prototype.checkValue=function(){Object(r.isFunction)(this.func)||(this.func=e.DEFAULT)},e.prototype.trigger=function(t){var e=!0;if("function"==typeof this.func){try{e=this.func.call(this.func,t)}catch(t){o.a.sendError({message:"The filter function threw an error"}),this.logger.error("the filter function threw an error:",t,this.func)}"boolean"!=typeof e&&(e=!0)}return e},e.DEFAULT=null,e}(i.a);e.a=s},function(t,e,n){var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"InsertBefore")||this;return i.value=n,i.checkValue(),i}return r(e,t),e.prototype.checkValue=function(){Object(o.isBoolean)(this.value)||(this.value=e.DEFAULT)},e.prototype.isEnabled=function(){return this.value},e.prototype.set=function(t){this.value=t},e.DEFAULT=!1,e}(i.a);e.a=a},function(t,e,n){var i=n(14),o=n(3),r=n(0),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"InsertInside")||this;return i.value=n,i.checkValue(),i}return a(e,t),e.prototype.checkValue=function(){Object(o.isAmp)()?this.value=e.DEFAULT_AMP:Object(r.isBoolean)(this.value)||(this.value=e.DEFAULT)},e.prototype.isEnabled=function(){return this.value},e.prototype.set=function(t){this.value=t},e.DEFAULT=!1,e.DEFAULT_AMP=!0,e}(i.a);e.a=s},function(t,e,n){var i=n(3),o=n(0),r=n(14),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var o=t.call(this,"Minimum")||this;return o.value=n,(Object(i.isAmp)()||Object(i.isIABSafeFrame)()||Object(i.isFacebookIA)())&&(o.value=1),o.checkValue(),o}return a(e,t),e.prototype.checkValue=function(){Object(o.isNumber)(this.value)||(this.value=e.DEFAULT)},e.prototype.set=function(t){this.value=t},e.prototype.get=function(){return this.value},e.DEFAULT=1,e}(r.a);e.a=s},function(t,e,n){var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"MinimumBelow")||this;return i.value=n,i.checkValue(),i}return r(e,t),e.prototype.checkValue=function(){Object(o.isNumber)(this.value)||(this.value=e.DEFAULT)},e.prototype.get=function(){return this.value},e.DEFAULT=null,e}(i.a);e.a=a},function(t,e,n){var i=n(14),o=n(55),r=n(18),a=n(0),s=n(4),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(t){function e(n,i){void 0===n&&(n=e.DEFAULT),void 0===i&&(i=null);var a=t.call(this,"Capping")||this;return a.capping=n,a.pid=i,a.checkValue(),a.capping&&a.pid?o.get("teadsCapping"+a.pid).filter(function(t){return t.expiry>=Object(r.now)()}).match({some:function(t){a.capping.counter=t.counter,a.capping.expiry=new Date(t.expiry)},none:function(){a.logger.debug("Capping has expired, resetting"),a.capping.counter=a.capping.frequency||1,a.capping.expiry=new Date(Object(r.now)()+1e3*e.durations[a.capping.unit])}}):a.logger.debug("No capping"),a}return c(e,t),e.prototype.checkValue=function(){Object(a.isObject)(this.capping)||(this.capping=e.DEFAULT),(!Object(a.isNumber)(this.pid)||this.pid<=0)&&(this.pid=null)},e.prototype.reached=function(){return this.capping&&this.capping.counter<=0},e.prototype.record=function(){var t=this;s.b.of(this.capping).map(function(t){return{counter:t.counter-1,expiry:t.expiry.getTime()}}).forEach(function(e){t.logger.debug("Record capping data:",e),o.set("teadsCapping"+t.pid,e)})},e.durations={second:1,minute:60,hour:3600,day:86400,week:604800,month:2592e3},e.VALUES={UNIT:"unit",FREQUENCY:"frequency"},e.DEFAULT=null,e}(i.a);e.a=u},function(t,e,n){var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"ParentWindow")||this;if(i.value=n,i.win=window,i.checkValue(),i.value)try{window.top.document&&(i.win=window.top)}catch(t){i.logger.warn("parentWindow option is enabled but parent window is not accessible",t)}return i}return r(e,t),e.prototype.checkValue=function(){Object(o.isBoolean)(this.value)||(this.value=e.DEFAULT)},e.prototype.getWindow=function(){return this.win},e.prototype.getValue=function(){return this.value},e.DEFAULT=!0,e}(i.a);e.a=a},function(t,e,n){var i=n(14),o=n(0),r=n(44),a=n(3),s=n(192),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"Fallback")||this;return i.value=n,i.called=!1,i.checkValue(),i}return c(e,t),e.prototype.checkValue=function(){Object(o.isFunction)(this.value)||(this.value=e.DEFAULT)},e.prototype.trigger=function(t){if(!this.value||this.called)return!1;try{var e=this.value.call(t);if(this.called=!0,e===r.INTERNAL_PASSBACK_NO_PASSBACK)return this.value=null,!1}catch(t){a.isAmp()&&s.clean(),this.logger.error("the fallback threw an error:",t)}return!0},e.prototype.hasValue=function(){return!!this.value},e.DEFAULT=null,e}(i.a);e.a=u},function(t,e,n){var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"RpmFallback")||this;return i.value=n,i.called=!1,i.checkValue(),i}return r(e,t),e.prototype.checkValue=function(){Object(o.isFunction)(this.value)||(this.value=e.DEFAULT)},e.prototype.trigger=function(t){if(!this.value||this.called)return!1;try{this.value.call(t),this.called=!0}catch(t){this.logger.error("the rpmFallback threw an error:",t)}return!0},e.DEFAULT=null,e}(i.a);e.a=a},function(t,e,n){var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"MinimumTextLength")||this;return i.value=n,i.checkValue(),i}return r(e,t),e.prototype.checkValue=function(){Object(o.isNumber)(this.value)||(this.value=e.DEFAULT)},e.prototype.get=function(){return this.value},e.DEFAULT=100,e}(i.a);e.a=a},function(t,e,n){var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"MinimumWidth")||this;return i.value=n,i.checkValue(),i}return r(e,t),e.prototype.checkValue=function(){Object(o.isNumber)(this.value)||(this.value=e.DEFAULT)},e.prototype.get=function(){return this.value},e.DEFAULT=100,e}(i.a);e.a=a},function(t,e,n){var i=n(0),o=n(14),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"MaximumWidth")||this;return i.value=n,i.checkValue(),i}return r(e,t),e.prototype.checkValue=function(){Object(i.isNumber)(this.value)||(this.value=e.DEFAULT)},e.prototype.get=function(){return this.value},e.DEFAULT=2e3,e}(o.a);e.a=a},function(t,e,n){var i=n(341),o=n(35),r=n(0),a=n(7),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(n,i){var r=t.call(this,"BelowSelector")||this;if(void 0===i)throw new o.a(o.a.OPTION_PARENTWINDOW_INVALID);return r.win=i,n||(n=e.DEFAULT),r.value=n,r.checkValue(),r}return s(e,t),e.prototype.checkValue=function(){this.value===e.DEFAULT||Object(r.isString)(this.value)||a.isHTMLElement(this.value)||a.isNodeList(this.value)||(this.value=e.DEFAULT)},e.prototype.get=function(){return this.value},e.prototype.getFirstElement=function(){if(!this.hasCachedElement){var t,e=this.value;if("object"==typeof this.value){var n;for(var i in this.value)if(this.value.hasOwnProperty(i)&&(n=this.checkScreenSelector(i,this.win),e=this.value[i],n))break;n?this.logger.debug("Below Selector",n,"selected:",e):this.logger.warn("Below Selector by device not found: ",this.value)}Object(r.isString)(e)&&e.length>0?t=a.querySelectorAll(e,this.win)[0]:a.isHTMLElement(e)?t=e:a.isNodeList(e)&&(t=e[0]),this.cacheElement(t)}return this.firstElement},e.prototype.getFirstElementRect=function(){return this.firstElementRect||(this.firstElementRect=a.getBoundingClientRect(this.getFirstElement())),this.firstElementRect},e.prototype.getFirstNodeBelowIndex=function(t){if(!this.firstNodeBelowIndex&&0!==this.firstNodeBelowIndex){for(var e,n=!1,i=0;!n&&t[i];)e=t[i++],e.getElementRect().top>=this.getFirstElementRect().bottom&&(n=!0);this.firstNodeBelowIndex=i-1}return this.firstNodeBelowIndex},e.prototype.cacheElement=function(t){this.firstElement=t,this.hasCachedElement=!0},e.DEFAULT=null,e}(i.a);e.a=c},function(module,__webpack_exports__,__webpack_require__){var __WEBPACK_IMPORTED_MODULE_0_format_option_AbstractOption__=__webpack_require__(14),__WEBPACK_IMPORTED_MODULE_1_common_ArrayHelper__=__webpack_require__(2),__extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),AbstractSelector=function(_super){function AbstractSelector(t){var e=_super.call(this,t)||this;return e.screenSizes={mobile:"[WIDTH]<768",tablet:"[WIDTH]>=768 && [WIDTH]<992",desktop:"[WIDTH]>=992 && [WIDTH]<1200",large:"[WIDTH]>=1200"},e}return __extends(AbstractSelector,_super),AbstractSelector.prototype.checkScreenSelector=function(screen,win){var _this=this,selectedScreenSelector=null,currentWidth=Math.max(win.document.documentElement.clientWidth,win.innerWidth||0);return __WEBPACK_IMPORTED_MODULE_1_common_ArrayHelper__.forEach(screen.split("+"),function(screenSelector){if(_this.screenSizes[screenSelector])try{var screenSelectorPattern=_this.screenSizes[screenSelector].replace(/\[WIDTH\]/g,""+currentWidth);if(eval(screenSelectorPattern))return void(selectedScreenSelector=screenSelector)}catch(t){_this.logger.warn("screenSelector eval has failed")}}),selectedScreenSelector},AbstractSelector}(__WEBPACK_IMPORTED_MODULE_0_format_option_AbstractOption__.a);__webpack_exports__.a=AbstractSelector},function(t,e,n){var i=n(14),o=n(0),r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),a=function(t){function e(n,i){void 0===n&&(n=e.DEFAULT),void 0===i&&(i=null);var o=t.call(this,"Auto")||this;return o.value=n,i&&null!==i.get()&&(o.value=!1),o.checkValue(),o}return r(e,t),e.prototype.checkValue=function(){Object(o.isBoolean)(this.value)||(this.value=e.DEFAULT)},e.prototype.isEnabled=function(){return this.value},e.prototype.set=function(t){this.value=t},e.DEFAULT=!0,e}(i.a);e.a=a},function(t,e,n){var i=n(14),o=n(209),r=n(7),a=n(0),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),c=function(t){function e(n,i){void 0===n&&(n=e.DEFAULT),void 0===i&&(i=window);var o=t.call(this,"Avoid")||this;return o.value=n,o.win=i,o.checkValue(),o}return s(e,t),e.prototype.checkValue=function(){Object(a.containsKeys)(e.VALUES,this.value)||(this.value=e.DEFAULT)},e.prototype.get=function(){return this.value},e.prototype.getSlots=function(){if(this.value){var t=[],e=this.value.selector;if("string"==typeof e&&e.length>0)for(var n=r.querySelectorAll(e,this.win),i=0;i<n.length;i++)t.push(new o.a(n[i],i));else r.isHTMLElement(e)&&t.push(new o.a(e));return t}},e.prototype.getDistance=function(){return this.value.distance},e.VALUES={SELECTOR:"selector",DISTANCE:"distance"},e.DEFAULT=null,e}(i.a);e.a=c},function(t,e,n){var i=n(14),o=n(0),r=n(7),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(n,i){var o=t.call(this,"ScrollSelector")||this;return o.win=i,o.value=void 0===n?e.DEFAULT:n,o.checkValue(),o}return a(e,t),e.prototype.checkValue=function(){Object(o.isString)(this.value)||r.isHTMLElement(this.value)||(this.value=e.DEFAULT)},e.prototype.getSlot=function(){var t=this.win,e=this.value;if("string"==typeof e&&e.length>0){var n=r.querySelectorAll(e,this.win);n&&1===n.length?t=n[0]:this.logger.warn("Parameter must be a string (CSS Selector) or a DOM Element")}else r.isHTMLElement(e)&&(t=e);return t},e.DEFAULT=null,e}(i.a);e.a=s},function(t,e,n){function i(t){var e=t.ttpObject,n=t.pageInstance;return g.c.of(function(){return e.filter(r).match({some:p.a(c(n)),none:function(){return y.warn("The provided ttp object is not valid",e)}})})}function o(t){t.forEach(function(t){for(var e in t)t.hasOwnProperty(e)&&Object(l.forEach)(t[e],function(t){return t.launched=!1})})}function r(t){return Object(h.isObject)(t)}function a(t){return v.a===t||0===v.a||0===t}function s(t){return Object(h.isString)(t)?parseInt(t,10):t}function c(t){return function(e,n){var i=s(e);if(!a(i))throw m.a.sendError("multi-page "+i+" "+Object(l.map)(n,function(t){return t.pid}).join(";")),new d.a(d.a.MULTIPLE_PAGE_PROCESS);t.processPlacements(i,n),Object(f.g)(v.a||i)}}e.a=i,e.b=o;var u=n(1),d=n(35),l=n(2),p=n(424),h=n(0),f=n(165),g=n(9),m=n(59),v=n(165),y=new u.a("TtpHandler")},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){t.exports=n(401)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var i=n(402),o=(n.n(i),n(32),n(188),n(189),n(253),n(165)),r=n(265),a=n(264),s=n(263),c=n(151),u=n(270),d=n(269),l=n(306),p=n(268),h=n(267),f=n(309),g=n(319),m=n(192),v=n(307),y=n(255),b=n(312),A=n(317),E=n(191),w=n(254),_=n(316),C=n(318),S=n(315),T=n(266),O=n(271),I=n(257),P=n(308),k=n(299),L=n(311),x=n(163),R=n(244),D=n(260),N=n(256),V=n(302),M=n(301),F=n(313),U=n(314),j=n(272),B=n(239),W=n(234),H=n(238),G=n(221),z=n(237),Y=n(235),K=n(222),q=n(236),X=n(196),Z=n(232),J=n(225),Q=n(223),$=n(230),tt=n(231),et=n(228),nt=n(227),it=n(233),ot=n(224),rt=n(226),at=n(219),st=n(241),ct=n(218),ut=n(184),dt=n(216),lt=n(217),pt=n(220),ht=n(215),ft=n(298),gt=n(341),mt=n(342),vt=n(343),yt=n(340),bt=n(326),At=n(328),Et=n(261),wt=n(329),_t=n(330),Ct=n(339),St=n(331),Tt=n(332),Ot=n(337),It=n(338),Pt=n(344),kt=n(322),Lt=n(262),xt=n(333),Rt=n(327),Dt=n(323),Nt=n(335),Vt=n(324),Mt=n(334),Ft=n(194),Ut=n(336),jt=n(325),Bt=n(14),Wt=n(240),Ht=n(305),Gt=n(304),zt=n(259),Yt=n(303),Kt=n(258),qt=n(209),Xt=n(61),Zt=n(44),Jt=n(214),Qt=n(59),$t=n(229),te=n(292),ee=n(321),ne=n(297),ie=n(211),oe=n(273),re=n(166),ae=window.teads||{};ae.ad=oe.c.ad,ae.page=oe.c.page,ae.HTMLApi=r,ae.StudioCommunicationBridge=a.a,ae.VPAIDApi=s.a,ae.Config=Xt.a,ae.Constant=Zt,ae.FormatConfig=Jt.a,ae.formatSumologic=Qt.a,ae.L10n=$t.a,ae.Page=te.a,ae.PlacementConfig=ee.a,ae.PlacementSetting=ne.a,ae.PlacementTracker=ie.a,ae.TAG=oe.a,ae.TAG_STATUS=oe.b,ae.TagManager=oe.c,ae.Template=re,ae.component=ae.component||{},ae.component.AbstractComponent=c.a,ae.component.Credits=u.a,ae.component.Label=d.a,ae.display=ae.display||{},ae.display.Ad=l.a,ae.display.DisplayAsset=l.b,ae.display.DisplayCreative=l.c,ae.display.DisplayTrackingDefinition=l.d,ae.format=ae.format||{},ae.format.AbstractFormat=p.a,ae.format.Inread=h.a,ae.format.InreadDisplay=f.a,ae.format.Slider=g.a,ae.helper=ae.helper||{},ae.helper.Amp=m,ae.helper.CheckerHelper=v,ae.helper.Compatibility=y,ae.helper.Components=b.a,ae.helper.Countdown=A.a,ae.helper.CSSHelper=E,ae.helper.Debug=w,ae.helper.DisplayCloseButton=_.a,ae.helper.ExpandHelper=C.a,ae.helper.Facebook=S,ae.helper.FixedBackground=T.a,ae.helper.FullscreenHelper=O.a,ae.helper.HeaderBidding=I,ae.helper.RASHelper=P,ae.helper.RASRequest=k.a,ae.helper.Responsive=L.a,ae.helper.IABSafeFrame=x,ae.helper.SafeFrameResize=x,ae.helper.SmartPosition=R.a,ae.helper.SmartSlot=D.a,ae.helper.UserId=N,ae.helper.UserSync=V,ae.helper.UUID=M,ae.helper.ViewabilityTags=F.a,ae.helper.VolumeController=U.a,ae.helper.WigoHelper=j,ae.option=ae.option||{},ae.option.End=B.a,ae.option.Launch=W.a,ae.option.PlayerClick=H.a,ae.option.SmartPosition=G.a,ae.option.SoundMute=z.a,ae.option.SoundStart=Y.a,ae.option.Sticky=K.a,ae.option.VideoPause=q.a,ae.option.VideoStart=X.a,ae.option.BrandLogo=Z.a,ae.option.CallButton=J.a,ae.option.CloseButton=Q.a,ae.option.Credits=$.a,ae.option.EndScreen=tt.a,ae.option.Label=et.a,ae.option.ProgressBar=nt.a,ae.option.Slider=it.a,ae.option.SoundButton=ot.a,ae.option.Timer=rt.a,ae.option.AdType=at.a,ae.option.AllowedPlayer=st.a,ae.option.Animations=ct.a,ae.option.Format=ut.a,ae.option.Threshold=dt.a,ae.option.Volume=lt.a,ae.option.VtpEvent=pt.a,ae.option.Vast=ht.a,ae.option.AbstractSelector=gt.a,ae.option.Auto=mt.a,ae.option.Avoid=vt.a,ae.option.BelowSelector=yt.a,ae.option.Btf=bt.a,ae.option.Filter=At.a,ae.option.ImageFilter=Et.a,ae.option.InsertBefore=wt.a,ae.option.InsertInside=_t.a,ae.option.MaximumWidth=Ct.a,ae.option.Minimum=St.a,ae.option.MinimumBelow=Tt.a,ae.option.MinimumTextLength=Ot.a,ae.option.MinimumWidth=It.a,ae.option.ScrollSelector=Pt.a,ae.option.Selector=kt.a,ae.option.VideoFilter=Lt.a,ae.option.Capping=xt.a,ae.option.Css=Rt.a,ae.option.Desktop=Dt.a,ae.option.Fallback=Nt.a,ae.option.Mobile=Vt.a,ae.option.ParentWindow=Mt.a,ae.option.Pid=Ft.a,ae.option.RpmFallback=Ut.a,ae.option.Tablet=jt.a,ae.option.AbstractOption=Bt.a,ae.option.Callbacks=Wt.a,ae.option.setting=ae.option.setting||{},ae.option.setting.Slider=ft.a,ae.parser=ae.parser||{},ae.parser.Display=Ht,ae.placement=ae.placement||{},ae.placement.AbstractPlacement=Gt.a,ae.placement.Checker=zt,ae.placement.Inboard=Yt.a,ae.placement.Inread=Kt.a,ae.placement.Slot=qt.a,ae.instances=ae.instances||o.d,ae.pageInstance=ae.pageInstance||o.f,window.teads=ae},function(t,e){var n=window.teads||{};n.vastDomains=[],n.gdprPayload={},window.teads=n},function(t,e,n){var i=n(151),o=n(27),r=n(0),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),s=function(t){function e(){var e=t.call(this,"close-button icon-close","")||this;return e.WIDTH_WHEN_VISIBLE=11,e.eventListenerManager=new o.a,e.innerHTML="",e.initElement(),e.eventListenerManager.add("click",e.getElement(),function(t){return e.onClick(t)}),e}return a(e,t),e.prototype.isEnabled=function(){return!0},e.prototype.hide=function(){this.element&&this.element.style.setProperty("width","0")},e.prototype.show=function(){this.element&&this.element.style.setProperty("width",this.WIDTH_WHEN_VISIBLE+"px")},e.prototype.onClick=function(t){Object(r.isFunction)(this.onClickAction)&&this.onClickAction()},e}(i.a);e.a=s},function(t,e,n){e=t.exports=n(49)(void 0),e.push([t.i,"div.teads-expand div.teads-ui-components-credits,div.teads-inboard div.teads-ui-components-credits,div.teads-inread div.teads-ui-components-credits{font-family:Helvetica,Arial,sans-serif!important;font-size:11.5px!important;color:#aaa!important;text-align:right!important;padding:1px 0!important;height:26px!important;line-height:26px!important;padding-right:4px!important;letter-spacing:.3px!important}div.teads-expand div.teads-ui-components-credits a span,div.teads-inboard div.teads-ui-components-credits a span,div.teads-inread div.teads-ui-components-credits a span{display:inline!important}div.teads-expand div.teads-ui-components-credits a,div.teads-expand div.teads-ui-components-credits a span,div.teads-inboard div.teads-ui-components-credits a,div.teads-inboard div.teads-ui-components-credits a span,div.teads-inread div.teads-ui-components-credits a,div.teads-inread div.teads-ui-components-credits a span{font-family:Helvetica,Arial,sans-serif!important;font-size:11.5px!important;box-shadow:none!important;letter-spacing:.3px!important}div.teads-expand.sm-screen div.teads-ui-components-credits a,div.teads-expand.sm-screen div.teads-ui-components-credits a span,div.teads-expand.xs-screen div.teads-ui-components-credits a,div.teads-expand.xs-screen div.teads-ui-components-credits a span,div.teads-inboard.sm-screen div.teads-ui-components-credits a,div.teads-inboard.sm-screen div.teads-ui-components-credits a span,div.teads-inboard.xs-screen div.teads-ui-components-credits a,div.teads-inboard.xs-screen div.teads-ui-components-credits a span,div.teads-inread.sm-screen div.teads-ui-components-credits a,div.teads-inread.sm-screen div.teads-ui-components-credits a span,div.teads-inread.xs-screen div.teads-ui-components-credits a,div.teads-inread.xs-screen div.teads-ui-components-credits a span{font-family:Helvetica,Arial,sans-serif!important;font-size:9px!important;box-shadow:none!important;letter-spacing:.3px!important}div.teads-inboard.xs-screen div.teads-ui-components-credits,div.teads-inread.sm-screen div.teads-ui-components-credits{font-size:9px!important;letter-spacing:.3px!important}div.teads-expand .teads-ui-components-credits a,div.teads-inboard .teads-ui-components-credits a,div.teads-inread .teads-ui-components-credits a{color:#aaa!important;text-decoration:none!important;font-weight:300!important;border:none!important;letter-spacing:.3px!important;background:none!important;padding:0!important}div.teads-expand.sm-screen .teads-ui-components-credits a,div.teads-expand.xs-screen .teads-ui-components-credits a,div.teads-inboard.sm-screen .teads-ui-components-credits a,div.teads-inboard.xs-screen .teads-ui-components-credits a,div.teads-inread.sm-screen .teads-ui-components-credits a,div.teads-inread.xs-screen .teads-ui-components-credits a{font-size:9px!important;letter-spacing:.3px!important}div.teads-expand div.teads-ui-components-credits span.teads-ui-components-credits-colored,div.teads-inboard div.teads-ui-components-credits span.teads-ui-components-credits-colored,div.teads-inread div.teads-ui-components-credits span.teads-ui-components-credits-colored{color:#79bbe9!important}div.teads-inboard div.teads-ui-components-credits a:after,div.teads-inboard div.teads-ui-components-credits a:before,div.teads-inboard div.teads-ui-components-credits span:after,div.teads-inboard div.teads-ui-components-credits span:before,div.teads-inread div.teads-ui-components-credits a:after,div.teads-inread div.teads-ui-components-credits a:before,div.teads-inread div.teads-ui-components-credits span:after,div.teads-inread div.teads-ui-components-credits span:before{display:none!important}",""])},function(t,e,n){e=t.exports=n(49)(void 0),e.push([t.i,"div.teads-expand div.teads-ui-components-label,div.teads-inboard div.teads-ui-components-label,div.teads-inread div.teads-ui-components-label{font-family:Helvetica,Arial,sans-serif!important;font-size:11.5px!important;color:#aaa;text-align:center!important;text-transform:uppercase!important;height:21px!important;line-height:21px!important;letter-spacing:.3px!important;font-weight:300!important}div.teads-inboard div.teads-ui-components-label:after,div.teads-inboard div.teads-ui-components-label:before,div.teads-inread div.teads-ui-components-label:after,div.teads-inread div.teads-ui-components-label:before{display:none!important}div.teads-inboard.sm-screen div.teads-ui-components-label,div.teads-inboard.xs-screen div.teads-ui-components-label,div.teads-inread.sm-screen div.teads-ui-components-label,div.teads-inread.xs-screen div.teads-ui-components-label{font-size:10px!important}",""])},function(t,e,n){var i=n(407);t.exports="string"==typeof i?i:i.toString()},function(t,e,n){e=t.exports=n(49)(void 0),e.push([t.i,'.teads-expand .teads-ui-components-adchoices,.teads-inread .teads-ui-components-adchoices{color:#000;font-family:arial;font-size:11px;cursor:pointer;position:absolute;top:3px;right:5px;width:15px;height:15px;line-height:15px;padding:1px;background:url("data:image/svg+xml;base64,PHN2Zw0KICB2ZXJzaW9uPSIxLjEiDQogIGJhc2VQcm9maWxlPSJmdWxsIg0KICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KICA8c3R5bGU+DQogICAgLyogPCFbQ0RBVEFbICovDQogICAgLmFkY2hvaWNlcyB7DQogICAgICB0ZXh0LXJlbmRlcmluZzogZ2VvbWV0cmljUHJlY2lzaW9uOw0KICAgICAgZmlsbC1vcGFjaXR5OiAxLjA7DQogICAgICBmaWxsOiAjMDBhZWNkOw0KICAgICAgc3Ryb2tlOiBub25lOw0KICAgIH0NCiAgICAvKiBdXT4gKi8NCiAgPC9zdHlsZT4NCiAgPHN2ZyBjbGFzcz0iYWRjaG9pY2VzIiB4PSIwcHgiPg0KICAgIDxjaXJjbGUgY3g9IjYiIGN5PSI2IiByPSIwLjY3Ij48L2NpcmNsZT4NCiAgICA8cGF0aCBkPSJNNC4yLDExLjNRMy4zLDExLjgsMy4zLDEwLjc1TDMuMyw0LjFRMy4zLDMuMSw0LjMsMy41TDEwLjQsNy4wUTEyLjAsNy41LDEwLjQsOC4wTDYuNjUsMTAuMEw2LjY1LDcuNzVhMC42NSwwLjY1LDAsMSwwLC0xLjMsMEw1LjM1LDEwLjc1YTAuOSwwLjksMCwwLDAsMS4zLDAuOEwxMi43LDguMlExMy43LDcuNSwxMi43LDYuN0wzLjMsMS42UTIuMiwxLjMsMS44LDIuNUwxLjgsMTIuNVEyLjIsMTMuOSwzLjMsMTMuM0w0LjgsMTIuNUEwLjMsMC4zLDAsMSwwLDQuMiwxMS4zWiI+PC9wYXRoPg0KICA8L3N2Zz4NCjwvc3ZnPg0K");background-size:15px 15px;background-repeat:no-repeat;background-position:100%;z-index:1}.teads-expand .teads-ui-components-adchoices.expanded:first-child,.teads-inread .teads-ui-components-adchoices.expanded:first-child{border-bottom-left-radius:8px;padding:1px 17px 1px 4px;background-color:hsla(0,0%,100%,.8)}.teads-expand .teads-ui-components-adchoices.expanded,.teads-inread .teads-ui-components-adchoices.expanded{width:auto;padding-right:19px}.teads-inread .teads-ui-components-adchoices span{display:none}.teads-expand .teads-ui-components-adchoices.expanded span,.teads-inread .teads-ui-components-adchoices.expanded span{display:inline}',""])},function(t,e,n){t.exports="/** This will include vpaid-ui assets */ "+n(295)+" "+n(294)+" .teads-expand { position: relative; } .teads-expand-closebutton { padding: 5px; text-align:center; color:white; cursor:pointer; position:absolute; z-index: 2147483646; top:5px; right:5px; width: 15px; height: 15px; padding: 0px; } .teads-expand-iframe { width: 100%; height: 100%; } .teads-expand-iframe iframe { border: 0px; width: 100%; height: 100%; background: #FFFFFF url({{assetsPath}}/default/img/loading.gif) no-repeat center center } .teads-expand-overlay { position: fixed; opacity: 0; background: #000000; border: 0; top: 0; left: 0; z-index: 2147483646; overflow: hidden; width: 100%; height: 100%; transition-property: opacity; -webkit-transition-property: opacity; -moz-transition-property: opacity; -o-transition-property: opacity; -ms-transition-property: opacity; transition-duration: {{transitionDuration}}ms; -webkit-transition-duration: {{transitionDuration}}ms; -moz-transition-duration: {{transitionDuration}}ms; -o-transition-duration: {{transitionDuration}}ms; -ms-transition-duration: {{transitionDuration}}ms; } .teads-expand-overlay.opened { opacity: 0.6 } .teads-expand-container.opened { opacity: 1 } .teads-expand-container { opacity: 0; position: fixed; background: #FFFFFF; border: 0; left: 0px; top: 0px; z-index: 2147483647; transition-property: opacity width height left top; -webkit-transition-property: opacity width height left top; -moz-transition-property: opacity width height left top; -o-transition-property: opacity width height left top; -ms-transition-property: opacity width height left top; transition-duration: {{transitionDuration}}ms; -webkit-transition-duration: {{transitionDuration}}ms; -moz-transition-duration: {{transitionDuration}}ms; -o-transition-duration: {{transitionDuration}}ms; -ms-transition-duration: {{transitionDuration}}ms; } body.noscroll { overflow:hidden; } "},function(t,e,n){var i=n(410);t.exports="string"==typeof i?i:i.toString()},function(t,e,n){e=t.exports=n(49)(void 0),e.push([t.i,'div.teads-display-absolute{position:absolute!important;overflow:hidden!important;z-index:99!important;pointer-events:none!important;background-repeat:repeat-y;background-attachment:fixed}.teads-display-fixed{position:fixed!important;background-repeat:repeat-y!important}.teads-display-clickzone{display:block!important;position:absolute!important;top:0!important;width:100%!important;height:100%!important}div.teads-display-format .icon-close{background-size:650px 40px!important;background-image:url("{{assetsPath}}/default/player-sprite.svg")!important}div.teads-display-format .icon-close,div.teads-display-format .sm-screen .icon-close,div.teads-display-format .xs-screen .icon-close{width:11px!important;height:11px!important;background-position:-80px 0!important}div.teads-display-format .teads-ui-component-closebutton svg{display:none!important}div.teads-ui-component-closebutton .components-countdown{display:none!important;position:absolute!important;left:2px!important;bottom:20px!important}div.teads-display-format .teads-ui-component-closebutton .components-countdown .countdown-circle>li{color:#fff!important}div.teads-display-format .teads-ui-component-closebutton .components-countdown .show,div.teads-display-format .teads-ui-component-closebutton .show{display:block!important}div.teads-display-format .teads-ui-component-closebutton .show .close-button{opacity:.8!important}div.teads-display-format .teads-ui-component-closebutton .show:hover .close-button.show{opacity:1!important}div.teads-display-format .sm-screen .teads-ui-component-closebutton .closebutton,div.teads-display-format .xs-screen .teads-ui-component-closebutton .closebutton{padding:10px 10px 15px 15px!important}',""])},function(t,e){t.exports='<div class="teads-expand"> <div class="teads-expand-label"></div> <div class="teads-expand-iframe"> <iframe src="{{iframeurl}}"></iframe> </div> <div class="teads-expand-closebutton"> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 15 15" style="enable-background:new 0 0 15 15;" xml:space="preserve"> <g> <path style="fill:#000000;" d="M8.883,7.5l5.83-5.83c0.382-0.382,0.382-1.001,0-1.383c-0.382-0.382-1.002-0.382-1.383,0L7.5,6.117 l-5.83-5.83c-0.382-0.382-1.002-0.382-1.383,0c-0.382,0.382-0.382,1.001,0,1.383l5.83,5.83l-5.83,5.83 c-0.382,0.382-0.382,1.001,0,1.383C0.478,14.904,0.728,15,0.978,15c0.25,0,0.501-0.096,0.692-0.287l5.83-5.83l5.83,5.83 C13.521,14.904,13.771,15,14.022,15c0.25,0,0.501-0.096,0.692-0.287c0.382-0.382,0.382-1.001,0-1.383L8.883,7.5z"/> </g> </svg> </div> </div> '},function(t,e,n){var i=n(413);t.exports="string"==typeof i?i:i.toString()},function(t,e,n){e=t.exports=n(49)(void 0),e.push([t.i,".teads-countdown,.teads-countdown-container{width:100%;height:100%}.teads-countdown-number{font-family:Helvetica,Arial,sans-serif!important;font-weight:300;font-size:30px}.teads-countdown-circle-background{opacity:.8;stroke-width:1px}.teads-countdown-circle{position:absolute;width:100px;height:100px}.teads-countdown-fsicon{width:20px;height:20px;position:absolute;top:10px;right:10px}.teads-countdown-background{background-color:#000;opacity:.6;width:100%;height:100%}.teads-countdown-clickzone{position:absolute;top:0;left:0;width:100%;height:100%}",""])},function(t,e,n){var i=n(415);t.exports="string"==typeof i?i:i.toString()},function(t,e,n){e=t.exports=n(49)(void 0),e.push([t.i,'.teads-inread .teads-ui-components-smart-header{margin-bottom:2px!important;height:21px}.teads-inread .teads-ui-components-smart-header .smart-header-content{position:absolute!important;right:0!important;background-color:#434343!important;padding:1px 6px 0}.smart-header-content .close-button-smart .icon-close{transition:.1s;-webkit-transition:.1s;-moz-transition:.1s;-o-transition:.1s;-ms-transition:.1s}.smart-header-content .adChoices-button-smart,.smart-header-content .close-button-smart,.smart-header-content .sound-button-smart{display:inline-block;cursor:pointer}.smart-header-content .adChoices-button-smart,.smart-header-content .close-button-smart{margin-right:5px}.smart-header-content .close-button-smart .icon-close{width:11px;height:11px;background-position:-80px 0;background-image:url("{{assetsPath}}/default/player-sprite.svg")}.smart-header-content .adChoices-button-smart{width:13px;height:13px;background:url("data:image/svg+xml;base64,PHN2Zw0KICB2ZXJzaW9uPSIxLjEiDQogIGJhc2VQcm9maWxlPSJmdWxsIg0KICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KICA8c3R5bGU+DQogICAgLyogPCFbQ0RBVEFbICovDQogICAgLmFkY2hvaWNlcyB7DQogICAgICB0ZXh0LXJlbmRlcmluZzogZ2VvbWV0cmljUHJlY2lzaW9uOw0KICAgICAgZmlsbC1vcGFjaXR5OiAxLjA7DQogICAgICBmaWxsOiAjRkZGOw0KICAgICAgc3Ryb2tlOiBub25lOw0KICAgIH0NCiAgICAvKiBdXT4gKi8NCiAgPC9zdHlsZT4NCiAgPHN2ZyBjbGFzcz0iYWRjaG9pY2VzIiB4PSIwcHgiPg0KICAgIDxjaXJjbGUgY3g9IjYiIGN5PSI2IiByPSIwLjY3Ij48L2NpcmNsZT4NCiAgICA8cGF0aCBkPSJNNC4yLDExLjNRMy4zLDExLjgsMy4zLDEwLjc1TDMuMyw0LjFRMy4zLDMuMSw0LjMsMy41TDEwLjQsNy4wUTEyLjAsNy41LDEwLjQsOC4wTDYuNjUsMTAuMEw2LjY1LDcuNzVhMC42NSwwLjY1LDAsMSwwLC0xLjMsMEw1LjM1LDEwLjc1YTAuOSwwLjksMCwwLDAsMS4zLDAuOEwxMi43LDguMlExMy43LDcuNSwxMi43LDYuN0wzLjMsMS42UTIuMiwxLjMsMS44LDIuNUwxLjgsMTIuNVEyLjIsMTMuOSwzLjMsMTMuM0w0LjgsMTIuNUEwLjMsMC4zLDAsMSwwLDQuMiwxMS4zWiI+PC9wYXRoPg0KICA8L3N2Zz4NCjwvc3ZnPg==")}.icon-muteoff{background-position:-390px 0}.icon-muteon{background-position:-445px 0}.icon-muteoff,.icon-muteon{width:16px;height:11px;background-image:url("{{assetsPath}}/default/player-sprite.svg")}',""])},function(t,e){t.exports='<div class="smart-header-content"> <div class="close-button-smart"></div> <div class="adChoices-button-smart"></div> <div class="sound-button-smart"> <div class="icon-muteon"></div> </div> </div> '},function(t,e,n){var i=n(418);t.exports="string"==typeof i?i:i.toString()},function(t,e,n){e=t.exports=n(49)(void 0),e.push([t.i,".teads-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#000;opacity:0;cursor:pointer}",""])},function(t,e,n){var i=n(420);t.exports="string"==typeof i?i:i.toString()},function(t,e,n){e=t.exports=n(49)(void 0),e.push([t.i,".teads-inboard,.teads-inread{overflow:hidden;height:0;-webkit-transition:height .5s;-moz-transition:height .5s;-o-transition:height .5s;-ms-transition:height .5s;transition:height .5s;box-sizing:content-box}.teads-inboard.no-transition,.teads-inread.no-transition{-webkit-transition:none;-moz-transition:none;-o-transition:none;-ms-transition:none;transition:none}.teads-inboard div,.teads-inread div{margin-bottom:0!important}div.teads-inboard div:after,div.teads-inboard div:before,div.teads-inread div:after,div.teads-inread div:before{display:none!important}div.teads-inread.teads-display{margin-bottom:10px!important}",""])},function(t,e,n){var i=n(151),o=n(3),r=n(7),a=n(5),s=n(166),c=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),u=function(t){function e(e){var n=t.call(this,"teads-ui-components-adchoices",s.ADCHOICESCSS)||this;return n.link=e,n.innerHTML="<span>AdChoices</span>",n.initElement(),o.isMobile()||(r.addEventListener("mouseover",n.getElement(),n.onMouseOver.bind(n)),r.addEventListener("mouseout",n.getElement(),n.onMouseOut.bind(n))),r.addEventListener("click",n.getElement(),n.onClick.bind(n)),n}return c(e,t),e.prototype.onMouseOver=function(){a.addClass(this.getElement(),"expanded")},e.prototype.onMouseOut=function(){a.removeClass(this.getElement(),"expanded")},e.prototype.onClick=function(){window.open(this.link,"_blank")},e.prototype.isEnabled=function(){return!!this.link},e}(i.a);e.a=u},function(t,e,n){var i=n(1),o=n(22),r=n(6),a=n(3),s=function(){function t(t){this.format=t,this.initialized=!1,this.active=!1,this.logger=new i.a("BrandingMode")}return t.prototype.isActive=function(){return this.active},t.prototype.isInitialized=function(){return this.initialized},t.prototype.init=function(){var t=this;if(this.logger.debug("init called"),this.initialized)return void this.logger.warn("Branding mode helper has already been initialized");this.initialized=!0,this.vpaidEnvironmentVars=this.format.getEnvironmentVars();var e=this.format.getVpaidAd();e.showComponent("fullscreenbutton");var n=this.format.states.isReplay;this.format.getFullscreenHelper().init(this.vpaidEnvironmentVars),n&&a.isAndroid()&&e.subscribe(function(){t.setVolume(t.format.formatConfig.volume.getMain()),t.initialVolume=t.format.getVolumeController().getVolume(),t.onUnmute()},r.a.AdVideoStart);var i=function(){t.isFullscreenSupported()&&t.stop()};e.subscribe(i,r.a.AdClickThru,this),e.subscribe(function(){return e.unsubscribe(i,r.a.AdClickThru)},r.a.AdStopped),e.subscribe(this.toggle,o.a.FullscreenRequest,this),e.subscribe(function(){return e.unsubscribe(t.toggle,o.a.FullscreenRequest)},r.a.AdStopped),this.format.vpaidApi.getStudioData()||e.subscribe(this.stop,o.a.AdVideoComplete,this),e.subscribe(this.stop,o.a.EndscreenInit,this),e.subscribe(this.stop,o.a.AdStopped,this),this.format.getVolumeController().addUnmuteCallback(function(){return t.onUnmute()}),this.format.getVolumeController().addMuteCallback(function(){return t.onMute()})},t.prototype.deinit=function(){var t=this;this.logger.debug("deinit called"),this.initialized=!1;var e=this.format.getVpaidAd(),n=function(){t.isFullscreenSupported()&&t.stop()};e.subscribe(n,r.a.AdClickThru,this),e.subscribe(function(){return e.unsubscribe(n,r.a.AdClickThru)},r.a.AdStopped),e.unsubscribe(this.toggle,o.a.FullscreenRequest),e.unsubscribe(this.stop,o.a.AdVideoComplete),e.unsubscribe(this.stop,o.a.EndscreenInit),e.unsubscribe(this.stop,o.a.AdStopped),e.hideComponent("fullscreenbutton")},t.prototype.toggle=function(){if(!this.initialized)return void this.logger.warn("Cannot toggle branding mode helper before its initialization");this.active?this.stop():this.start()},t.prototype.start=function(){this.active||(this.logger.debug("start"),this.initialVolume=this.format.getVolumeController().getVolume(),this.setVolume(this.format.formatConfig.volume.getMain()),this.isFullscreenSupported()?(this.format.getFullscreenHelper().open(),this.format.getVpaidAd().showComponent("fullscreenbutton")):this.format.getVpaidAd().hideComponent("fullscreenbutton"),this.active=!0)},t.prototype.stop=function(){this.active&&(this.logger.debug("stop"),this.format.getVolumeController().isMuted()&&(this.initialVolume=0),this.setVolume(this.initialVolume),this.isFullscreenSupported()?this.format.getFullscreenHelper().close():this.format.getVpaidAd().showComponent("fullscreenbutton"),this.format.getVpaidAd().hideComponent("fullscreenbutton"),this.active=!1)},t.prototype.setVolume=function(t){var e=this,n=function(){return e.format.getVolumeController().setVolume(t)};this.vpaidEnvironmentVars.videoSlot&&this.vpaidEnvironmentVars.videoSlot.audio&&!this.vpaidEnvironmentVars.videoSlot.audio.authorized?this.vpaidEnvironmentVars.videoSlot.audio.authorizeAudio(n.bind(this)):n()},t.prototype.isFullscreenSupported=function(){var t=this.format.getVpaidAd(),e=this.format.getFullscreenHelper().isActive()||t.getAdWidth()>t.getAdHeight();return!a.isDesktop()&&!a.isAmp()&&!a.isFacebookIA()&&!a.isIABSafeFrame()&&e},t.prototype.onUnmute=function(){this.isFullscreenSupported()||this.start()},t.prototype.onMute=function(){this.isFullscreenSupported()||this.stop()},t}();e.a=s},function(t,e,n){var i=n(14),o=n(0),r=n(4),a=n(2),s=n(3),c=n(88),u=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),d=function(t){function e(n){void 0===n&&(n=e.DEFAULT);var i=t.call(this,"AllowedRatio")||this;return i.value=n,i.checkValue(),i}return u(e,t),e.isInternalHostname=function(t){return/(teads\.(tv|net))|(ebuzzing\.(com|github\.io)|(localhost)|(\.pantheonsite\.io))$/i.test(t)},e.forceValueIfNeeded=function(t){return Object(s.isDesktop)()&&!e.isInternalHostname(location.hostname)?["LANDSCAPE"]:t},e.filterInvalidValues=function(t){return a.filter(t,function(t){return t in e.AvailableRatio})},e.prototype.checkValue=function(){this.value=r.b.of(this.value).map(e.forceValueIfNeeded).filter(o.isArray).map(e.filterInvalidValues).filter(a.isNotEmpty).getOrElse(function(){return e.DEFAULT})},e.prototype.get=function(){return this.value},e.prototype.getRatioFilters=function(){return a.map(this.value,function(t){return e.AvailableRatio[t]})},e.prototype.mediafileRatioIsValid=function(t){return a.isNotEmpty(a.filter(this.getRatioFilters(),function(e){return e(c.c.getRatio(t))}))},e.AvailableRatio={LANDSCAPE:function(t){return t>1},SQUARE:function(t){return 1===t},VERTICAL:function(t){return t<1},ALL:function(t){return!0}},e.DEFAULT=["ALL"],e}(i.a);e.a=d},function(t,e,n){function i(t){return function(e){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])}}e.a=i}]);