
        (function(config) {
            var ConfigWrapper=function(){"use strict";function e(e){function t(e,t){var i,n,r=t.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split("."),a=r.length;for(i=0;i<a;i+=1){if(n=r[i],!(n in e))return null;e=e[n]}return e}this.get=function(i,n){var r,a=n;return 0===arguments.length?JSON.parse(JSON.stringify(e)):(1===arguments.length&&(a=null),r=t(e,i),null==r&&(r=a),r?JSON.parse(JSON.stringify(r)):r)}}return e}();!function(e,t){"use strict";function i(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i<t.length;i++)t[i]=arguments[i+1];var n={callback:e,args:t};return m[h]=n,d(h),h++}function n(e){delete m[e]}function r(e){var i=e.callback,n=e.args;switch(n.length){case 0:i();break;case 1:i(n[0]);break;case 2:i(n[0],n[1]);break;case 3:i(n[0],n[1],n[2]);break;default:i.apply(t,n)}}function a(e){if(f)setTimeout(a,0,e);else{var t=m[e];if(t){f=!0;try{r(t)}finally{n(e),f=!1}}}}function s(){d=function(e){process.nextTick(function(){a(e)})}}function o(){if(e.postMessage&&!e.importScripts){var t=!0,i=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=i,t}}function l(){var t="setImmediate$"+Math.random()+"$",i=function(i){i.source===e&&"string"==typeof i.data&&0===i.data.indexOf(t)&&a(+i.data.slice(t.length))};e.addEventListener?e.addEventListener("message",i,!1):e.attachEvent("onmessage",i),d=function(i){e.postMessage(t+i,"*")}}function c(){var e=new MessageChannel;e.port1.onmessage=function(e){var t=e.data;a(t)},d=function(t){e.port2.postMessage(t)}}function p(){var e=v.documentElement;d=function(t){var i=v.createElement("script");i.onreadystatechange=function(){a(t),i.onreadystatechange=null,e.removeChild(i),i=null},e.appendChild(i)}}function u(){d=function(e){setTimeout(a,0,e)}}if(!e.setImmediate){var d,h=1,m={},f=!1,v=e.document,g=Object.getPrototypeOf&&Object.getPrototypeOf(e);g=g&&g.setTimeout?g:e,"[object process]"==={}.toString.call(e.process)?s():o()?l():e.MessageChannel?c():v&&"onreadystatechange"in v.createElement("script")?p():u(),g.setImmediate=i,g.clearImmediate=n}}("undefined"==typeof self?"undefined"==typeof global?this:global:self);var EventEmitter=function(){"use strict";function e(){this.listeners={}}var t=function(e,t,i){null!=e[t]&&i>=0&&e[t].length>i&&(e[t][i]=null)},i=function(e,t){null!=e[t]&&(e[t]=null)};return e.prototype.emit=function(e,t){null!=this.listeners[e]&&this.listeners[e].forEach(function(e){null!=e&&window.setImmediate(function(){e(t)})})},e.prototype.emitSync=function(e,t){null!=this.listeners[e]&&this.listeners[e].forEach(function(e){null!=e&&e(t)})},e.prototype.on=function(e,t){return this.listeners[e]?this.listeners[e].push(t):this.listeners[e]=[t],this.listeners[e].length-1},e.prototype.once=function(e,t){var i=this.on(e,function(n){this.listeners[e][i]&&(this.off(e,i),t(n))}.bind(this));return i},e.prototype.off=function(){switch(arguments.length){case 0:this.listeners={};break;case 1:i(this.listeners,arguments[0]);break;default:t(this.listeners,arguments[0],arguments[1])}},e}(),utils=function(){"use strict";var e={};return e.canAccessTopWindow=function(){return e.canAccessWindow(window.top)},e.canAccessWindow=function(e){var t;try{return t=e.location.href,!!t}catch(i){return!1}},e.getRealDomain=function(){var t,i,n;if(e.canAccessTopWindow())i=window.top.location.href;else{for(t=window;e.canAccessWindow(t.parent);)t=t.parent;i=t.document.referrer}return n=i.match(/^https?\:\/\/(?:www\.)?([^\/:?#]+)(?:[\/:?#]|$)/i),n&&n[1]},e.isString=function(e){return"string"==typeof e||e instanceof String},e}(),inDapIF,wnd,doc,injectorPlayerEmitter;config=new ConfigWrapper(config),inDapIF=window!==window.top&&utils.canAccessTopWindow(),wnd=function(e){"use strict";var t=config.get("format_family"),i=config.get("enable_intext_animation",!0),n=!("banner"===t||"display"===t||"gallery"===t||"native"===t&&!i)||"no"!==config.get("vip_mode","no");return inDapIF&&n?e.top:e}(window),doc=wnd.document,injectorPlayerEmitter=new EventEmitter;var cssTpl='#viralize-wide-wrapper-namespace,#viralize-wide-wrapper-namespace *{top:auto;left:auto;right:auto;clear:none;bottom:auto;border:0;margin:0;padding:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;overflow:visible;outline:0;visibility:visible;z-index:auto;white-space:normal;word-spacing:normal;text-decoration:none}#viralize-wide-wrapper-namespace *{float:none;height:auto;width:auto}#viralize-wide-wrapper-namespace div,#viralize-wide-wrapper-namespace iframe{margin:0;padding:0;border:0}#viralize-wide-wrapper-namespace{width:100%;height:0;text-align:center;position:relative;float:none}#viralize-wide-wrapper-namespace div{float:none}#viralize-wide-wrapper-namespace div:first-child{background-color:#000}#viralize-wide-wrapper-namespace.vr-namespace-vip{z-index:2147483647}#viralize-wide-wrapper-namespace.vr-namespace-vip #viralize-native-wrapper-namespace{position:fixed;width:25%;height:auto}#viralize-native-wrapper-namespace{width:100%;max-width:640px;max-height:0;display:inline-block;height:auto;overflow:hidden;-webkit-transition:max-height .3s ease-in;-o-transition:max-height .3s ease-in;-moz-transition:max-height .3s ease-in;transition:max-height .3s ease-in}#viralize-native-namespace{width:100%;height:0;position:relative;overflow:hidden}#viralize-player-iframe-namespace{position:absolute;top:0;left:0;z-index:1}#viralize-wide-wrapper-namespace #vr-namespace-disclaimer{display:none;height:20px;line-height:20px;color:#000;font-family:"Helvetiva Neue",Helvetica,Arial,sans-serif;font-size:10px;white-space:nowrap;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;text-transform:uppercase}#viralize-wide-wrapper-namespace #vr-namespace-disclaimer.show{display:block;font-family:"Helvetiva Regular",Helvetica,Arial,sans-serif;size:10px;color:#c5c5c5}@media screen and (min-width:1025px) and (orientation:landscape){#viralize-wide-wrapper-namespace.vr-namespace-vip #viralize-native-wrapper-namespace{width:25%}#viralize-wide-wrapper-namespace.vr-namespace-vip.vr-namespace-medium #viralize-native-wrapper-namespace{min-width:400px}#viralize-wide-wrapper-namespace.vr-namespace-vip.vr-namespace-large #viralize-native-wrapper-namespace{min-width:535px}#viralize-wide-wrapper-namespace.vr-namespace-vip.vr-namespace-desktop-bottom-right #viralize-native-wrapper-namespace{bottom:20px;right:20px}#viralize-wide-wrapper-namespace.vr-namespace-vip.vr-namespace-desktop-bottom-left #viralize-native-wrapper-namespace{bottom:20px;left:20px}#viralize-wide-wrapper-namespace.vr-namespace-vip.vr-namespace-desktop-top-left #viralize-native-wrapper-namespace{top:20px;left:20px}#viralize-wide-wrapper-namespace.vr-namespace-vip.vr-namespace-desktop-top-right #viralize-native-wrapper-namespace{top:20px;right:20px}#viralize-wide-wrapper-namespace.vr-namespace-vip.vr-namespace-desktop-top #viralize-native-wrapper-namespace{top:20px;left:50%;-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%);transform:translateX(-50%)}#viralize-wide-wrapper-namespace.vr-namespace-vip.vr-namespace-desktop-bottom #viralize-native-wrapper-namespace{bottom:20px;left:50%;-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%);transform:translateX(-50%)}}@media screen and (max-width:1024px) and (orientation:landscape){#viralize-wide-wrapper-namespace.vr-namespace-vip #viralize-native-wrapper-namespace{position:fixed;width:50%;min-width:0}#viralize-wide-wrapper-namespace.vr-namespace-vip.vr-namespace-mobile-landscape-bottom-right #viralize-native-wrapper-namespace{bottom:5px;right:5px}#viralize-wide-wrapper-namespace.vr-namespace-vip.vr-namespace-mobile-landscape-top-left #viralize-native-wrapper-namespace{top:5px;left:5px}#viralize-wide-wrapper-namespace.vr-namespace-vip.vr-namespace-mobile-landscape-top-right #viralize-native-wrapper-namespace{top:5px;right:5px}#viralize-wide-wrapper-namespace.vr-namespace-vip.vr-namespace-mobile-landscape-bottom-left #viralize-native-wrapper-namespace{bottom:5px;left:5px}#viralize-wide-wrapper-namespace.vr-namespace-vip.vr-namespace-mobile-landscape-top #viralize-native-wrapper-namespace{top:5px;left:50%;-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%);transform:translateX(-50%)}#viralize-wide-wrapper-namespace.vr-namespace-vip.vr-namespace-mobile-landscape-bottom #viralize-native-wrapper-namespace{bottom:5px;left:50%;-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%);transform:translateX(-50%)}}@media screen and (orientation:portrait){#viralize-wide-wrapper-namespace.vr-namespace-vip #viralize-native-wrapper-namespace{position:fixed;width:75%;min-width:0}#viralize-wide-wrapper-namespace.vr-namespace-vip.vr-namespace-mobile-portrait-top #viralize-native-wrapper-namespace{top:0;left:50%;-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%);transform:translateX(-50%)}#viralize-wide-wrapper-namespace.vr-namespace-vip.vr-namespace-mobile-portrait-bottom #viralize-native-wrapper-namespace{bottom:5px;left:50%;-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%);transform:translateX(-50%)}#viralize-wide-wrapper-namespace.vr-namespace-vip.vr-namespace-mobile-portrait-top-left #viralize-native-wrapper-namespace{top:0;left:0}#viralize-wide-wrapper-namespace.vr-namespace-vip.vr-namespace-mobile-portrait-top-right #viralize-native-wrapper-namespace{top:0;right:0}#viralize-wide-wrapper-namespace.vr-namespace-vip.vr-namespace-mobile-portrait-bottom-left #viralize-native-wrapper-namespace{bottom:5px;left:0}#viralize-wide-wrapper-namespace.vr-namespace-vip.vr-namespace-mobile-portrait-bottom-right #viralize-native-wrapper-namespace{bottom:5px;right:0}}',CssLoader=function(){"use strict";var e=function(e,t,i){this.id=e,this.css=utils.copyString(t),i&&(this.css+=i)};return e.prototype.getCssNameNamespace=function(){return"vr-"+this.id},e.prototype.loadStyle=function(e){var t=this.css.replace(new RegExp("namespace","g"),this.id),i=doc.createElement("style");if(i.id="vr-"+this.id,e.parentNode.insertBefore(i,e),i.styleSheet)i.styleSheet.disabled||(i.styleSheet.cssText=t);else try{i.innerHTML=t}catch(n){i.innerText=t}},e}(),ajax=function(){"use strict";var e={},t=function(e,t,i,n){var r=!0,a={UNSET:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},s=[200,201,202,204,206,304,1223],o=function(){try{return new XDomainRequest}catch(e){r=!1}try{return new XMLHttpRequest}catch(e){}try{return new ActiveXObject("Msxml3.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}return null},l=o(),c=t?"POST":"GET";l&&(l.open(c,e,!0),r?(l.onload=function(){i&&i(l.responseText)},l.onprogress=function(){},l.ontimeout=function(){},l.onerror=function(){n&&n()}):l.onreadystatechange=function(){l.readyState===a.DONE&&(s.indexOf(l.status)>-1?i&&i(l.responseText):n&&n())},"withCredentials"in l&&(l.withCredentials=!0),t&&l.setRequestHeader("Content-type","application/json"),l.send(t))};return e.get=function(e,i,n){return t(e,null,i,n)},e.post=function(e,i,n,r){var a=i?JSON.stringify(i):"{}";return t(e,a,n,r)},e}(),Log;Log=function(){"use strict";function e(e){this.prefix="["+(e||"VR-LOG")+"]"}return e.prototype.debug=function(){},e.prototype.info=function(){},e.prototype.warn=function(){},e.prototype.error=function(){},e}();var TemplateLoader=function(){"use strict";var e={};return e.render=function(e,t){var i=e;return Object.keys(t).forEach(function(e){var n=new RegExp("{{"+e+"}}","g");i=i.replace(n,t[e])}),i},e}(),PlayerDependencies={player:{debug:["//ajax.googleapis.com/ajax/libs/jquery/1.12.1/jquery.js","https://polyfill.io/v3/polyfill.js?features=default,es2015,es2016,es2017,es2018,es2019,es5,es6,es7&flags=gated","//imasdk.googleapis.com/js/sdkloader/ima3_debug.js"],default:["//ajax.googleapis.com/ajax/libs/jquery/1.12.1/jquery.min.js","https://polyfill.io/v3/polyfill.min.js?features=default,es2015,es2016,es2017,es2018,es2019,es5,es6,es7&flags=gated","//imasdk.googleapis.com/js/sdkloader/ima3.js"]},mobi:{debug:["//ajax.googleapis.com/ajax/libs/jquery/1.12.1/jquery.js","https://polyfill.io/v3/polyfill.js?features=default,es2015,es2016,es2017,es2018,es2019,es5,es6,es7&flags=gated"],default:["//ajax.googleapis.com/ajax/libs/jquery/1.12.1/jquery.min.js","https://polyfill.io/v3/polyfill.min.js?features=default,es2015,es2016,es2017,es2018,es2019,es5,es6,es7&flags=gated"]},banner:{debug:["//ajax.googleapis.com/ajax/libs/jquery/1.12.1/jquery.js","https://polyfill.io/v3/polyfill.js?features=default,es2015,es2016,es2017,es2018,es2019,es5,es6,es7&flags=gated"],default:["//ajax.googleapis.com/ajax/libs/jquery/1.12.1/jquery.min.js","https://polyfill.io/v3/polyfill.min.js?features=default,es2015,es2016,es2017,es2018,es2019,es5,es6,es7&flags=gated"]},strip:{debug:["//ajax.googleapis.com/ajax/libs/jquery/1.12.1/jquery.js","https://polyfill.io/v3/polyfill.js?features=default,es2015,es2016,es2017,es2018,es2019,es5,es6,es7&flags=gated"],default:["//ajax.googleapis.com/ajax/libs/jquery/1.12.1/jquery.min.js","https://polyfill.io/v3/polyfill.min.js?features=default,es2015,es2016,es2017,es2018,es2019,es5,es6,es7&flags=gated"]},sentry:"//cdn.ravenjs.com/3.17.0/raven.min.js"},MaxInstancesError=function(){"use strict";function e(e){this.message=e}return e.prototype=new Error,e}(),DuplicateInjectorError=function(){"use strict";function e(e){this.message=e}return e.prototype=new Error,e}(),ViewabilityUnavailableError=function(){"use strict";function e(e){this.message=e}return e.prototype=new Error,e}(),ViewabilityClassNotFoundError=function(){"use strict";function e(e){this.message=e}return e.prototype=new Error,e}(),DuplicatedViewabilityImplementationError=function(){"use strict";function e(e){this.message=e}return e.prototype=new Error,e}(),Constants={ADUNIT_REQUEST_ERRORS:{SCRIPT_NOT_FOUND:30001,LOCATION_INLINE_ERROR:30002,LOCATION_AUTO_ERROR:30003,LOCATION_BY_ID_ERROR:30004,LOCATION_BY_SELECTOR_ERROR:30005,SCRIPT_IN_HEAD:30006,INVALID_VPT_CONFIGURATION:50001}};utils=function(e,t,i){"use strict";try{new CustomEvent("?"),i.CustomEvent=CustomEvent}catch(n){i.CustomEvent=function(e,i){function n(n,a){var s=t.createEvent(e);return null!==n?r.call(s,n,(a||(a=i)).bubbles,a.cancelable,a.detail):s.initCustomEvent=r,s}function r(t,i,n,r){this["init"+e](t,i,n,r),"detail"in this||(this.detail=r)}return n}(e.CustomEvent?"CustomEvent":"Event",{bubbles:!1,cancelable:!1,detail:null})}return i.matchMedia=function(i){if(e.matchMedia)return e.matchMedia(i);var n=e.styleMedia||e.media;if(!n){var r=t.createElement("style"),a=t.getElementsByTagName("script")[0],s=null;r.type="text/css",r.id="matchmediajs-test",a.parentNode.insertBefore(r,a),s="getComputedStyle"in e&&e.getComputedStyle(r,null)||r.currentStyle,n={matchMedium:function(e){var t="@media "+e+"{ #matchmediajs-test { width: 1px; } }";return r.styleSheet?r.styleSheet.cssText=t:r.textContent=t,"1px"===s.width}}}return{matches:n.matchMedium(i||"all"),media:i||"all"}},i.sessionStorage=function(){var t=!0;try{if(e.sessionStorage.setItem("VR_TEST_SESSIONSTORAGE","test"),"test"!==e.sessionStorage.getItem("VR_TEST_SESSIONSTORAGE"))throw new Error("sessionStorage unavailable")}catch(i){e.VR_sessionStorageFallback=e.VR_sessionStorageFallback||{},t=!1}return t?e.sessionStorage:{setItem:function(t,i){e.VR_sessionStorageFallback[t]=i},getItem:function(t){return e.VR_sessionStorageFallback[t]||null},removeItem:function(t){try{delete e.VR_sessionStorageFallback[t]}catch(i){}},clear:function(){e.VR_sessionStorageFallback={}}}},i}(wnd,doc,utils||{}),utils=function(e,t,i){"use strict";var n={BE:!0,BG:!0,CZ:!0,DK:!0,DE:!0,EE:!0,IE:!0,EL:!0,ES:!0,FR:!0,HR:!0,IT:!0,CY:!0,LV:!0,LT:!0,LU:!0,HU:!0,MT:!0,NL:!0,AT:!0,PL:!0,PT:!0,RO:!0,SI:!0,SK:!0,FI:!0,SE:!0,UK:!0},r={mov:"mp4",mkv:"x-matroska","3gp":"3gpp","3g2":"3gpp2",h261:"h261",h263:"h263",h264:"h264",jpgv:"jpeg",jpm:"jpm",mj2:"mj2",mp4:"mp4",mpeg:"mpeg",ogv:"ogg",qt:"quicktime",uvh:"vnd.dece.hd",uvm:"vnd.dece.mobile",uvp:"vnd.dece.pd",uvs:"vnd.dece.sd",uvv:"vnd.dece.video",fvt:"vnd.fvt",mxu:"vnd.mpegurl",pyv:"vnd.ms-playready.media.pyv",uvu:"vnd.uvvu.mp4",viv:"vnd.vivo",webm:"webm",f4v:"x-f4v",fli:"x-fli",flv:"x-flv",m4v:"x-m4v",asf:"x-ms-asf",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx",avi:"x-msvideo",movie:"x-sgi-movie"};return i.urlEncode=function(e){var t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(i+"="+encodeURIComponent(e[i]));return t.join("&")},i.getViewportSize=function(e){var t="inner",i=e;return"innerWidth"in e||(t="client",i=i.document.documentElement||i.document.body),{width:i[t+"Width"],height:i[t+"Height"]}},i.getScreenSize=function(e){return{width:e.screen.width,height:e.screen.height}},i.getPageSize=function(e){return{width:e.document.body.scrollWidth,height:e.document.body.scrollHeight}},i.setCookie=function(e,i,n){var r=(new Date).valueOf(),a=new Date(864e5+r);a.setHours(0,0,0,0),n=n||a;var s=Math.floor((n-r)/1e3),o=e+"="+i+";path=/;max-age="+s+";expires="+n.toUTCString();return t.cookie=o,o},i.getCookie=function(i){i=e.encodeURIComponent(i),i=i.replace(/[\-\.\+\*]/g,"\\$&");var n=new RegExp("(?:(?:^|.*;)\\s*"+i+"\\s*\\=\\s*([^;]*).*$)|^.*$"),r=t.cookie.replace(n,"$1");return""!==r?e.decodeURIComponent(r):null},i.deleteCookie=function(e){t.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;"},i.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},i.extend=function(){for(var e=1;e<arguments.length;e++)for(var t in arguments[e])arguments[e].hasOwnProperty(t)&&(arguments[0][t]=arguments[e][t]);return arguments[0]},i.filter=function(e,t){for(var i=[],n=0;n<e.length;n++){var r=e[n];t(r)&&i.push(r)}return i},i.classNamePrefix=function(e,t){for(var i=0,n=t.length;i<n;i++)t[i]=e+"-"+t[i];return t.join(" ")},i.addEventListener=function(e,t,i,n){var r=!1;e.addEventListener?(n&&detect.isPassiveListenersSupported()&&(r={passive:!0}),e.addEventListener(t,i,r)):e.attachEvent&&e.attachEvent("on"+t,i)},i.removeEventListener=function(e,t,i,n){var r=!1;e.removeEventListener?(n&&detect.isPassiveListenersSupported()&&(r={passive:!0}),e.removeEventListener(t,i,r)):e.detachEvent&&e.detachEvent("on"+t,i)},i.bind=function(e,t){return function(){return e.apply(t,Array.prototype.slice.call(arguments))}},i.hashCode=function(e){var t,i,n,r=0;if(0===e.length)return r;for(t=0,n=e.length;t<n;t++)i=e.charCodeAt(t),r=(r<<5)-r+i,r|=0;return r},i.pad=function(e,t){for(var i=String(e);i.length<(t||2);)i="0"+i;return i},i.throwException=function(e){setTimeout(function(){throw e},0)},i.getCustomCss=function(e){var t=e.getAttribute("data-custom-style"),i="";if(t){var n=document.getElementById(t);n?i=n.innerHTML:this.throwException("Couldn't find the custom style tag "+t)}return i},i.onDOMContentLoaded=function(e,n){var r=n||"complete";t.readyState===r||"complete"===t.readyState?e():i.addEventListener(t,"readystatechange",function(){t.readyState===r&&e()})},i.trackRequestEvent=function(e,t){var i=t||"ok",n=7,r=config.get("scheme")+"://"+config.get("endpoint_host")+"/track/?session_id="+config.get("sid")+"&request_session_id="+config.get("sid")+"&label="+e+"&ver="+n+"&reason="+i+"&type=event&category=request_session",a=new Image;a.onload=function(){},a.src=r},i.trackUrl=function(e){var t=new Image;t.onload=function(){},t.src=e},i.getVPTInstance=function(e){var t=e.get("is_preview"),i=e.get("is_test");return"instream"===e.get("format_family")&&(t||i)?null:viralize.__VR&&viralize.__VR.vptimpl},i.getAdditionalPlayerConfig=function(e){var t=null,n=e.get("zid"),r=i.getVPTInstance(e);return null!=r&&null!=r.getConfig&&(t=r.getConfig(n)),t},i.loadPlayerIframe=function(e,t,n,r,a,s){var o=n.get("sentry",null),l=n.get("player.mobi"),c="banner"===n.get("format_family"),p=n.get("player.script"),u=c?templates.banner:templates.player,d=s||injectorPlayerEmitter;ajax.get(t,function(t){var r,s=JSON.parse(t),o=e.elem.contentWindow||e.elem;return s.error?void d.emit("event::loadPlayerError"):(a&&a(s),r=i.getVPTInstance(n),void(o.onPlayerReady?o.onPlayerReady(s,d,r):(o.config=s,o.injectorPlayerEmitter=d,o.vpt=r)))});var h=l?"mobi":c?"banner":"player",m=TemplateLoader.render(u,{scripts:function(){var e=PlayerDependencies[h],t=n.get("debug",!1)?e.debug.slice():e["default"].slice();return o&&t.unshift(PlayerDependencies.sentry),t.push(p),t.reduce(function(e,t){return/https?:/i.test(location.protocol)||/^https?/i.test(t)||(t=n.get("scheme")+":"+t),e+'<script type="text/javascript" src="'+t+'"></script>'},"")},ecgEndpoint:n.get("scheme")+"://"+n.get("endpoint_host")+"/track/",sentryConfig:function(){return o?JSON.stringify({dsn:o.dsn,sampleRate:o.sample_rate}):null}});d.once("cmd::dmp_user_data",function(e){r&&r(e.data)}),i.loadFriendlyIframeWithTemplate(e,m)},i.loadFriendlyIframeWithTemplate=function(e,t){var i=e.elem||e,n=i.contentDocument||i.contentWindow.document;n.open("text/html","replace"),n.write(t),n.close()},i.isUrl=function(e){var t=/(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;return t.test(e)},i.getOrigin=function(e){return i.isUrl(e.location.origin)?e.location.origin:config.get("scheme")+"://"+t.domain},i.isInUE=function(e){return n[e]||!1},i.getFifAbsolutePosition=function(e){for(var t,i,n,r={top:0,left:0},a=e;a!==window.top;)t=a.frameElement.getBoundingClientRect(),i=a.parent.pageYOffset||a.parent.document.documentElement.scrollTop||a.parent.document.body.scrollTop||0,n=a.parent.pageXOffset||a.parent.document.documentElement.scrollLeft||a.parent.document.body.scrollLeft||0,r.top+=t.top+i,r.left+=t.left+n,a=a.parent;return r},i.copyString=function(e){return(" "+e).slice(1)},i.getFileExtension=function(e){return null==e?"":e.split(".").pop()},i.getMimetype=function(e){var t=i.getFileExtension(e);return r[t.toLowerCase()]||""},i}(wnd,doc,utils||{}),utils=function(e,t,i){"use strict";function n(e){return this instanceof n?void(this.elem=e):new n(e)}return n.create=function(e,i){var r=new n(t.createElement(e));if(i)for(var a in i)r.attr(a,i[a]);return r},n.get=function(e){var i=t.querySelector(e);return null!==i&&(i=new n(i)),i},n.getById=function(e){var i=t.getElementById(e);return null!==i&&(i=new n(i)),i},n.getAll=function(e){for(var i=t.querySelectorAll(e),r=[],a=0;a<i.length;a++)r[a]=new n(i[a]);return r},n.remove=function(e){var i=t.getElementById(e);null!==i&&i.parentNode&&i.parentNode.removeChild(i)},n.removeByClass=function(e){for(var i=t.getElementsByClassName(e),n=i.length-1;n>=0;n--){var r=i[n];r.parentNode.removeChild(r)}},n.insertHTMLBefore=function(e,t,n){if(""===n)return null;var r=i.Element.create("ins",{id:t});r.elem.innerHTML=n,e.parentNode.insertBefore(r.elem,e);for(var a=r.elem.getElementsByTagName("script"),s=0;s<a.length;s++){for(var o=document.createElement("script"),l=a[s].attributes,c=0;c<l.length;c++)o.setAttribute(l[c].nodeName,l[c].value);a[s].innerHTML&&(o.text=a[s].innerHTML),a[s].parentNode.replaceChild(o,a[s])}return this},n.prototype.remove=function(){this.elem.parentNode.removeChild(this.elem)},n.prototype.attr=function(e,t){return this.elem.setAttribute(e,t),this},n.prototype.appendTo=function(e){return e.appendChild(this.elem),this},n.prototype.append=function(e){return e.nextSibling?e.parentNode.insertBefore(this.elem,e.nextSibling):e.parentNode.appendChild(this.elem),this},n.prototype.prepend=function(e){return e.parentNode.insertBefore(this.elem,e),this},n.prototype.text=function(e){return void 0===e?"textContent"in this.elem?this.elem.textContent:this.elem.innerText:("textContent"in this.elem?this.elem.textContent=e:this.elem.innerText=e,this)},n.prototype.offset=function(){var i=this.elem.getBoundingClientRect(),n=t.body,r=t.documentElement,a=e.pageYOffset||r.scrollTop||n.scrollTop,s=e.pageXOffset||r.scrollLeft||n.scrollLeft,o=r.clientTop||n.clientTop||0,l=r.clientLeft||n.clientLeft||0,c=i.top+a-o,p=i.left+s-l;return{top:Math.round(c),left:Math.round(p)}},n.prototype.hasClass=function(e){return new RegExp(" "+e+" ").test(" "+this.elem.className+" ")},n.prototype.addClass=function(e){return this.hasClass(e)||(this.elem.className+=(this.elem.className.length?" ":"")+e),this},n.prototype.removeClass=function(e){return this.hasClass(e)&&(this.elem.className=this.elem.className.replace(e,"").replace(/\s+$/g,"")),this},n.prototype.hide=function(){return this.elem.style.display="none",this.elem.style.visibility="hidden",this},n.prototype.show=function(){return this.elem.style.visibility="visible",this.elem.style.display="",this},i.Element=n,i}(wnd,doc,utils||{});var ViewabilityFactory=function(){"use strict";var e={},t={};return e.publishingPlatform={STANDARD:"standard",ACCELERATED_MOBILE_PAGE:"amp",FACEBOOK_INSTANT_ARTICLES:"fbia",APPLE_NEWS:"an",OEMBED:"oembed"},e.register=function(e,i){var n=t[e];if(n)throw new DuplicatedViewabilityImplementationError(n+" is already registered for the platform "+e);t[e]=i},e.getInstance=function(i,n,r,a,s){var o=i||e.publishingPlatform.STANDARD,l=t[o];if(!l)throw new ViewabilityClassNotFoundError("No viewabilityClass registered for the platform "+i);return new l(n,r,a,s)},e}(),Viewability=function(e){"use strict";function t(e,t,i,n){this.reasons={OUT_OF_VIEWPORT:0,HIDDEN:1,NOT_IN_FOCUS:2,TOO_SMALL:3,IN_VIEWPORT:4,FIXED_VIEWABILITY:5},this.elem=e,this.wnd=t,this.forceViewability=i,this.onViewabilityChange=n}return t.prototype.start=function(){if(this.isViewabilityUnavailable())throw new ViewabilityUnavailableError;this.stop(),this.attachListeners(e.bind(this.notifier,this)),this.notifier()},t.prototype.stop=function(){this.detachListeners()},t.prototype.notifier=function(){this.onViewabilityChange(this.computeViewability())},t}(utils),viewabilityPercentageCalculator=function(e,t){"use strict";var i=e.getBoundingClientRect(),n=i.width*i.height,r=Math.ceil(Math.max(0,i.left)),a=Math.ceil(Math.min(t.width,i.right)),s=Math.ceil(Math.max(0,i.top)),o=Math.ceil(Math.min(t.height,i.bottom)),l=(a-r)*(o-s),c=Math.floor(l/n*100);return c},IntersectionViewabilityObserver=function(e,t){"use strict";function i(e,t){this.callback=null,this.intersectionObserver=null,this.intersectionData=null,this.elem=t,this.wnd=e}return i.prototype.start=function(e){var t=this,i={root:null,rootMargin:"0px",threshold:this.createIntersectionObserverThresholds()};this.callback=e,this.intersectionObserver=new IntersectionObserver(function(e){0!==e.length&&(t.intersectionData=t.parseIntersectionData(e),t.callback())},i),this.intersectionObserver.observe(this.elem)},i.prototype.createIntersectionObserverThresholds=function(){var e,t,i=100,n=[];for(t=0;t<=i;t+=1)e=t/i,n.push(e);return n},i.prototype.parseIntersectionData=function(e){var t=e[e.length-1];return Math.min(100,Math.round(100*t.intersectionRatio))},i.prototype.stop=function(){this.intersectionObserver&&(this.intersectionObserver.disconnect&&this.intersectionObserver.disconnect(),this.intersectionObserver.unobserve&&this.intersectionObserver.unobserve(this.elem),this.intersectionObserver=null)},i.prototype.computeViewabilityPercentage=function(){var i,n=t.getViewportSize(this.wnd);return this.intersectionObserver.takeRecords&&(i=this.intersectionObserver.takeRecords(),i.length>0&&(this.intersectionData=this.parseIntersectionData(i))),null!=this.intersectionData?this.intersectionData:e(this.elem,n)},i}(viewabilityPercentageCalculator,utils),MutationViewabilityObserver=function(e,t){"use strict";function i(e,t){this.callback=null,this.viewabilityObserver=null,this.elem=t,this.wnd=e}return i.prototype.start=function(e){function i(e){var t,i;for(i=0;i<e.length;i+=1)if(t=e[i],t.target.contains(this.elem))return void this.callback()}this.callback=e,this.viewabilityObserver=new this.wnd.MutationObserver(t.bind(i,this)),this.viewabilityObserver.observe(this.wnd.document.body,{attributes:!0,subtree:!0})},i.prototype.stop=function(){this.viewabilityObserver&&(this.viewabilityObserver.disconnect(),this.viewabilityObserver=null)},i.prototype.computeViewabilityPercentage=function(){var i=t.getViewportSize(this.wnd);return e(this.elem,i)},i}(viewabilityPercentageCalculator,utils),PollingViewabilityObserver=function(e,t){"use strict";function i(e,t){this.callback=null,this.viewabilityLoopTimer=null,this.elem=t,this.wnd=e,this.loopInterval=250}return i.prototype.start=function(e){function t(){i.callback(),i.viewabilityLoopTimer=i.wnd.setTimeout(t,i.loopInterval)}var i=this;this.callback=e,t()},i.prototype.stop=function(){this.viewabilityLoopTimer&&(this.wnd.clearTimeout(this.viewabilityLoopTimer),this.viewabilityLoopTimer=null)},i.prototype.computeViewabilityPercentage=function(){var i=t.getViewportSize(this.wnd);return e(this.elem,i)},i}(viewabilityPercentageCalculator,utils),StandardViewability=function(e,t,i,n,r){"use strict";function a(e,t,a,s){Viewability.call(this,e,t,a,s),this.callback=null,this.windowEvents=["focus","blur","check","checkAndNotify"],this.documentEvents=["visibilitychange","mozvisibilitychange","msvisibilitychange","webkitvisibilitychange"],this.hiddenProperty=function(){var e,t=["hidden","mozHidden","webkitHidden","msHidden","oHidden"],i=null;for(e=0;e<t.length;e++)if(i=t[e],i in document)return i;return i}(),this.minElementArea=1,this.ancestors=this.getElementAncestors(),this.viewabilityObserver=null,window.IntersectionObserver?this.viewabilityObserver=new r(this.wnd,this.elem):(this.windowEvents=this.windowEvents.concat(["scroll","resize"]),window.MutationObserver?this.viewabilityObserver=new n(this.wnd,this.elem):this.viewabilityObserver=new i(this.wnd,this.elem))}return a.prototype=Object.create(Viewability.prototype),a.prototype.constructor=a,a.prototype.getElementAncestors=function(){for(var e=[],t=this.elem;t;)e.unshift(t),t=t.parentNode;return e},a.prototype.isViewabilityUnavailable=function(){return!window.IntersectionObserver&&this.isInIframe()},a.prototype.isInIframe=function(){var e,t;if(this.wnd.top!==this.wnd.self)return!0;for(e=this.wnd.top.document.getElementsByTagName("iframe"),t=0;t<e.length;t+=1)if(e[t]===this.elem)return!1;return!0},a.prototype.computeViewability=function(){var e=this.inFocus(),t=this.computeViewabilityReason(e),i={reason:t,focus:e};return!this.forceViewability()||t!==this.reasons.OUT_OF_VIEWPORT&&t!==this.reasons.IN_VIEWPORT?t!==this.reasons.IN_VIEWPORT?(i.perc=0,i):(i.perc=this.viewabilityObserver.computeViewabilityPercentage(),i):(i.perc=100,i)},a.prototype.computeViewabilityReason=function(e){var i,n,r=this.elem,a=t.getViewportSize(this.wnd),s=r.getBoundingClientRect(),o=s.width*s.height,l=this.ancestors;if("none"===r.style.display||"hidden"===r.style.visibility)return this.reasons.HIDDEN;for(i=0;i<l.length;i+=1)if(n=l[i].style,n&&("none"===n.display||"hidden"===n.visibility))return this.reasons.HIDDEN;return e?s.bottom<=0||s.right<=0||s.top>=a.height||s.left>=a.width?this.reasons.OUT_OF_VIEWPORT:o<this.minElementArea?this.reasons.TOO_SMALL:this.reasons.IN_VIEWPORT:this.reasons.NOT_IN_FOCUS},a.prototype.inFocus=function(){var e=this.wnd.document[this.hiddenProperty];return void 0!==e?!e:"function"!=typeof this.wnd.document.hasFocus||this.wnd.document.hasFocus()},a.prototype.attachListeners=function(e){var i;for(this.callback=e,i=0;i<this.windowEvents.length;i+=1)t.addEventListener(this.wnd,this.windowEvents[i],e,!0);for(i=0;i<this.documentEvents.length;i+=1)t.addEventListener(this.wnd.document,this.documentEvents[i],e,!0);this.viewabilityObserver.start(e)},a.prototype.detachListeners=function(){var e;for(e=0;e<this.windowEvents.length;e+=1)t.removeEventListener(this.wnd,this.windowEvents[e],this.callback,!0);for(e=0;e<this.documentEvents.length;e+=1)t.removeEventListener(this.wnd.document,this.documentEvents[e],this.callback,!0);this.viewabilityObserver.stop();
},e.register(e.publishingPlatform.STANDARD,a),e.register(e.publishingPlatform.APPLE_NEWS,a),e.register(e.publishingPlatform.OEMBED,a),a}(ViewabilityFactory,utils,PollingViewabilityObserver,MutationViewabilityObserver,IntersectionViewabilityObserver),AmpViewability=function(e){"use strict";function t(e,t,i,n){Viewability.call(this,e,t,i,n),this.detachWiewabilityObserver=null,this.currentViewability=null}return t.prototype=Object.create(Viewability.prototype),t.prototype.constructor=t,t.prototype.isViewabilityUnavailable=function(){return!1},t.prototype.computeViewability=function(){var e=!window.context.hidden,t=this.computeViewabilityReason(e),i={reason:t,focus:e};return t!==this.reasons.IN_VIEWPORT?(i.perc=0,i):(i.perc=this.currentViewability?Math.min(100,Math.round(100*this.currentViewability.intersectionRatio)):0,i)},t.prototype.computeViewabilityReason=function(e){var t=this.currentViewability.boundingClientRect,i=t.width*t.height;return e?this.currentViewability<=0?this.reasons.OUT_OF_VIEWPORT:i<this.minElementArea?this.reasons.TOO_SMALL:this.reasons.IN_VIEWPORT:this.reasons.NOT_IN_FOCUS},t.prototype.attachListeners=function(e){var t=this;this.detachWiewabilityObserver=window.context.observeIntersection(function(i){t.currentViewability=i[i.length-1],e()})},t.prototype.detachListeners=function(){this.detachWiewabilityObserver&&this.detachWiewabilityObserver()},e.register(e.publishingPlatform.ACCELERATED_MOBILE_PAGE,t),t}(ViewabilityFactory),FBiaViewability=function(e,t){"use strict";function i(e,i,n,r){Viewability.call(this,e,i,n,r),this.boundedListener=t.bind(this.receiveMessage,this),this.callback=null}var n={enters_viewport:1,center_enters_viewport:100,center_exits_viewport:49,exits_viewport:-1};return i.prototype=Object.create(Viewability.prototype),i.prototype.constructor=i,i.prototype.isViewabilityUnavailable=function(){return!1},i.prototype.computeViewability=function(){return{reason:this.wnd.viewabilityPerc>0?this.reasons.IN_VIEWPORT:this.reasons.OUT_OF_VIEWPORT,focus:!0,perc:this.wnd.viewabilityPerc}},i.prototype.attachListeners=function(e){this.wnd.viewabilityPerc=n[this.wnd.lastViewabilityMessage],this.callback=e,this.wnd.addEventListener("message",this.boundedListener)},i.prototype.detachListeners=function(){this.wnd.removeEventListener("message",this.boundedListener)},i.prototype.receiveMessage=function(e){n[e.data]&&(this.wnd.viewabilityPerc=n[e.data],this.callback&&this.callback())},e.register(e.publishingPlatform.FACEBOOK_INSTANT_ARTICLES,i),i}(ViewabilityFactory,utils),IABViewability=function(){"use strict";function e(e,t,i){var n=i||2;this.viewability=e,this.callback=t,this.iabViewabilityTimeout=null,this.counter=8,this.loopInterval=n/this.counter*1e3}return e.prototype.start=function(){function e(){var n=t.viewability.computeViewability();n.perc>=50?(i-=1,0===i?t.callback():t.iabViewabilityTimeout=window.setTimeout(e,t.loopInterval)):(i=t.counter,t.iabViewabilityTimeout=window.setTimeout(e,t.loopInterval))}var t=this,i=this.counter;if(this.stop(),this.viewability.isViewabilityUnavailable())throw new ViewabilityUnavailableError;this.iabViewabilityTimeout=window.setTimeout(e,t.loopInterval)},e.prototype.stop=function(){window.clearTimeout(this.iabViewabilityTimeout)},e}(),detect=function(e){"use strict";var t={};return t.detectAutoplay=function(){var t,i=[/mobile/i,/android/i,/(iphone|ipad|ipod)/i,/silk-accelerated/i];for(t=0;t<i.length;t++)if(e.navigator&&e.navigator.userAgent&&e.navigator.userAgent.match(i[t]))return!1;return!0},t.detectMobile=function(){return navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i)},t.detectiOS=function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream},t.detectAndroidVersion=function(){var e=navigator.userAgent.toLowerCase(),t=e.match(/android\s([0-9\.]*)/);return t[1]},t.isPassiveListenersSupported=function(){var e,t=!1;try{e=Object.defineProperty({},"passive",{get:function(){t=!0}}),window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch(i){}return t},t}(wnd),FrequencyCapping=function(){"use strict";var e=function(){if(!(this instanceof e))return new e;this.maxValue=config.get("capping_count");var t=config.get("zid"),i=config.get("format_family");if(t&&0!==this.maxValue)if(this.cookieName="__VR_fc_"+t+"_"+i,this.cookieValue=utils.getCookie(this.cookieName),this.cookieValue){var n=this.cookieValue.split("-");this.hits=parseInt(n[0],10),this.expireTime=new Date(parseInt(n[1],10))}else{var r=(new Date).valueOf();this.hits=0,this.expireTime=new Date(r+1e3*parseInt(config.get("capping_interval"),10))}};return e.prototype.incHits=function(){if(this.cookieName){var e=this.hits+1+"-"+this.expireTime.valueOf();return utils.setCookie(this.cookieName,e,this.expireTime)}},e.prototype.reachedCapping=function(){return!!this.cookieName&&(this.maxValue>0&&this.hits>=this.maxValue)},e}(),CmpV1=function(){"use strict";var e="1",t=2e3,i=function(e){for(var t,i,n,r,a,s,o,l=window;!t;){try{l.frames.__cmpLocator&&(t=l)}catch(c){}if(l===window.top)break;l=l.parent}return i={},e.__cmp=function(e,a,s){return t?(n=Math.random().toString(32).substr(2),r={__cmpCall:{command:e,parameter:a,callId:n}},i[n]=s,void t.postMessage(r,"*")):void s({msg:"CMP not found"},!1)},o=function(t){try{a="string"==typeof t.data?JSON.parse(t.data):t.data,a.__cmpReturn&&(utils.removeEventListener(e,"message",o),s=a.__cmpReturn,i[s.callId]&&(i[s.callId](s.returnValue,s.success),i[s.callId]=null))}catch(n){}},utils.addEventListener(e,"message",o),function(){utils.removeEventListener(e,"message",o)}},n=function(n,r){var a,s,o=utils.canAccessTopWindow(),l=o?window.top:window,c=function(){l.__cmp("getConsentData",null,function(t,i){var s,o,l;if(null!=a){if(i&&null==t.consentData)return void setTimeout(c(),0);clearTimeout(a),a=null,i?(s="available",o=t.gdprApplies?1:0,l=t.consentData):(s="error",o=utils.isInUE(n)?1:0,l=""),r(e,s,o,l)}})};return o||(s=i(l)),l.__cmp?(a=setTimeout(function(){a=null,s&&s(),r(e,"timeout",utils.isInUE(n)?1:0,"")},t),void c()):void r("","unavailable",utils.isInUE(n)?1:0,"")};return{readCMPData:n}}(),CmpV2=function(){"use strict";var e,t="2",i=2e3,n=function(){for(var e,t=window;t;){try{if(t.frames.__tcfapiLocator){e=t;break}}catch(i){}if(t===window.top)break;t=t.parent}return e},r=function(e){function t(e){var t,i={};try{i="string"==typeof e.data?JSON.parse(e.data):e.data}catch(n){}t=i.__tcfapiReturn,t&&"function"==typeof r[t.callId]&&(r[t.callId](t.returnValue,t.success),r[t.callId]=null)}var i=n(),r={};return e.__tcfapi=function(e,t,n,a){var s,o;i?(s=Math.random()+"",o={__tcfapiCall:{command:e,parameter:a,version:t,callId:s}},r[s]=n,i.postMessage(o,"*")):n({msg:"CMP not found"},!1)},utils.addEventListener(e,"message",t),function(){utils.removeEventListener(e,"message",t)}},a=function(n,a){var s,o,l,c,p,u;return e()?(p=utils.canAccessTopWindow(),u=p?window.top:window,null==u.__tcfapi&&(l=r(u)),s=function(){null!=o&&(clearTimeout(o),o=null),l&&l(),c&&(c=null,u.__tcfapi("removeEventListener",2,function(){},c))},o=setTimeout(function(){s(),a(t,"timeout",utils.isInUE(n)?1:0,"")},i),void u.__tcfapi("addEventListener",2,function(e,i){if(c=e.listenerId,null!=o)return i?i&&"tcloaded"===e.eventStatus?(s(),void a(t,"available",e.gdprApplies?1:0,e.tcString)):void(i&&"useractioncomplete"===e.eventStatus&&(s(),a(t,"available",e.gdprApplies?1:0,e.tcString))):(s(),void a(t,"error",utils.isInUE(n)?1:0,""))})):void a("","unavailable",utils.isInUE(n)?1:0,"")};return e=function(){return null!=window.__tcfapi||null!=n()},{isPresent:e,readCMPData:a}}(),Cmp=function(){"use strict";var e=function(e,t){CmpV2.isPresent()?CmpV2.readCMPData(e,t):CmpV1.readCMPData(e,t)};return{readCMPData:e}}(),viralize=function(e,t){"use strict";var i=inDapIF?window.top:e;i.__VR=i.__VR||{},i.__VR.widgets=i.__VR.widgets||[],i.__VR.customScripts=i.__VR.customScripts||{},i.__VR.dataLayers=i.__VR.dataLayers||{};var n="((https?:)?//)?{endpoint_host}/.*[?&]",r="kxviralize_segs",a="_kxviralize_segs",s="VR-DMP-COLLECT",o="VR-INJECTOR-INSTANCES-MAP",l={},c={};return c.__VR=i.__VR,c.findScript=function(e,t){var i=document.getElementsByTagName("script"),r=null,a=null,s=null;"undefined"!=typeof t&&null!==t&&(a=n+"zid="+t,a=a.replace("{endpoint_host}",e),s=new RegExp(a,"gi"));for(var o=function(e){return!e.hasAttribute("data-injected")&&!!(null!==e.getAttribute("data-wid")||s&&s.test(e.getAttribute("src")))},l=i.length;l--;)if(o(i[l])){r=i[l];break}return r},c.findIframe=function(){return window.frameElement},c.generateSuffixId=function(){return Math.random().toString(32).substr(2)},c.markAsInjected=function(e){e.hasAttribute("data-injected")||e.setAttribute("data-injected",!0)},c.register=function(e,t,i){var n,r,a,s,l,p;if(t&&i&&this.registerOnSafeFrameApi(t,i),n={},r=utils.sessionStorage().getItem(o),null!=r&&(n=JSON.parse(utils.sessionStorage().getItem(o))),a=n[e.injectorName]||{count:0,instances:{}},s=a.count,l=e.config.get("max_family_instances",0),p=e.config.get("sid"),l>0&&s>=l)throw new MaxInstancesError("Sorry, but the "+e.injectorName+" format can be used at most "+l+" times.");if(a.instances[p])throw new DuplicateInjectorError("Duplicated injector for sid: "+p);a.instances[p]=!0,a.count+=1,n[e.injectorName]=a,utils.sessionStorage().setItem(o,JSON.stringify(n)),c.__VR.widgets.push(e)},c.registerOnSafeFrameApi=function(t,i){e.$sf&&e.$sf.ext&&e.$sf.ext.register(t,i)},c.unRegister=function(e){var t,i,n,r={},a=utils.sessionStorage().getItem(o);for(null!=a&&(r=JSON.parse(utils.sessionStorage().getItem(o))),t=r[e.injectorName]||{count:0,instances:{}},i=e.config.get("sid"),t.count>0&&(t.count-=1),r[e.injectorName]=t,utils.sessionStorage().setItem(o,JSON.stringify(r)),n=0;n<c.__VR.widgets.length;n+=1)c.__VR.widgets[n].config.get("sid")===i&&c.__VR.widgets.splice(n,1)},c.replaceInjector=function(e){for(var i=t.createElement("script"),n=e.attributes,r=0;r<n.length;r++)"data-injected"!==n[r].nodeName&&i.setAttribute(n[r].nodeName,n[r].value);i.src=i.src+"&cb="+(new Date).getTime();var a=e.parentNode;a.insertBefore(i,e),a.removeChild(e)},c.createIframe=function(e,i,n){var r=i?i+"px":"100%",a=n?n+"px":"100%",s={allowfullscreen:!0,webkitallowfullscreen:t.webkitFullscreenEnabled,mozallowfullscreen:t.mozFullScreenEnabled},o=utils.Element.create("iframe",{id:e,src:"about:blank",scrolling:"no",frameborder:0,marginheight:0,marginwidth:0,allow:"autoplay; fullscreen"});for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&s[l]&&o.attr(l,s[l]);return o.elem.style.width=r,o.elem.style.height=a,o},c.createPageId=function(t){function i(){var e,t=52,i="",n=(new Date).getTime();for(n=utils.pad(n.toString(16),12),e=0;e<t;e+=1)i+=Math.round(Math.random()).toString();return i=parseInt(i,2).toString(16),n+i}var n,r=c.getPublishingPlatform(t),a=e.navigator?e.navigator:null,s=t.get("publisher"),o=t.get("page_url"),l=a?a.userAgent||"":"",p=utils.hashCode(s+o+l),u=utils.pad((16777215&p).toString(16),6),d=0;return r===ViewabilityFactory.publishingPlatform.ACCELERATED_MOBILE_PAGE?e.context.computeInMasterFrame(e,"VR-PAGEID-PREFIX",function(e){e(i())},function(e){n=e}):n=i(),n+u+d},c.getPublishingPlatform=function(t){var i=t.get("pub_platform","");try{return e.context&&e.context.observeIntersection?ViewabilityFactory.publishingPlatform.ACCELERATED_MOBILE_PAGE:i===ViewabilityFactory.publishingPlatform.FACEBOOK_INSTANT_ARTICLES?ViewabilityFactory.publishingPlatform.FACEBOOK_INSTANT_ARTICLES:i===ViewabilityFactory.publishingPlatform.OEMBED?ViewabilityFactory.publishingPlatform.OEMBED:""}catch(n){return""}},c.createSrc=function(i,n,r,a,s){var o,l,p={},u=utils.getRealDomain();return c.__VR.pageId=c.__VR.pageId||c.createPageId(a),l=s||{},l.player_size||(l.player_size={width:0,height:0}),o={page_id:c.__VR.pageId,screen:utils.getScreenSize(e),page:utils.getPageSize(e),viewport:utils.getViewportSize(e),player_size:{width:Math.round(l.player_size.width),height:Math.round(l.player_size.height)},semantic_data:l.semantic_data},l.player_position&&(o.player_position={top:Math.round(l.player_position.top),left:Math.round(l.player_position.left)}),p.player_session=JSON.stringify(o),t.referrer&&(p.r=t.referrer),l.cid&&(p.cid=l.cid),l.sound&&(p.sound=l.sound),l.gallery_init&&(p.gallery_init=l.gallery_init),l.sessionCounter>0&&(p.sc=l.sessionCounter),l.pub_platform&&(p.pub_platform=l.pub_platform),l.activation&&(p.activation=l.activation),l.cs&&(p.cs=l.cs),null!=l.gdpr&&(p.gdpr=l.gdpr),l.cmp&&(p.cmp=l.cmp),null!=l.cmp_ver&&(p.cmp_ver=l.cmp_ver),u&&(p.dd=u),i+"/"+n+"/?"+r+"&"+utils.urlEncode(p)},c.createPlayerSrc=function(e,t){var i=e.get("is_preview"),n=e.get("is_test"),r=i?"preview":n?"test":"player",a=t||{};return c.createSrc(e.get("scheme")+"://"+e.get("endpoint_host"),r,e.get("base_query"),e,a)},c.findInjectionElem=function(e,t){var i={script:"",iframe:""};return i.iframe=c.findIframe(),i.script=document.currentScript||c.findScript(e,t),null===i.script&&utils.trackRequestEvent("adunit_request_error",Constants.ADUNIT_REQUEST_ERRORS.SCRIPT_NOT_FOUND),i},c.isInHead=function(e){for(var t=e.parentNode;null!=t;){if("head"===t.nodeName.toLowerCase())return!0;t=t.parentNode}return!1},c.setElementRemovedListener=function(e,t,i){function n(e,t){for(var i=t;null!=i;){if(e===i)return!0;i=i.parentNode}return!1}var r={childList:!0,subtree:!0};this.unsetElementRemovedListener();try{l=new MutationObserver(function(e){e.forEach(function(e){if(e.removedNodes.length>0)for(var r=0;r<e.removedNodes.length;r++)n(e.removedNodes[r],t)&&i()})}),l.observe(e,r)}catch(a){}},c.unsetElementRemovedListener=function(){l.disconnect&&(l.disconnect(),l={})},c.addPluginsForNotBlacklisted=function(e,t,i){var n={179:!0,358:!0,711:!0};null!=i&&null!=n[i]||c.addCustomScripts(e,null,t)},c.addCustomScripts=function(e,i,n){function r(e){var t=e;return n&&Object.keys(n).forEach(function(e){t=t.split("{"+e+"}").join(n[e])}),t}function a(e){var i=t.createElement("script");i.setAttribute("id",l+e.id),i.src=r(e.src),i.setAttribute("async",""),i=t.body.appendChild(i)}function s(e){utils.Element.insertHTMLBefore(o,l+e.id,r(e.content))}var o,l="";i&&(l=i+"-"),o=t.createElement("placeholder"),t.body.appendChild(o);for(var p=0;p<e.length;p++)c.__VR.customScripts[e[p].id]||(e[p].src?a(e[p]):e[p].content&&s(e[p]),c.__VR.customScripts[e[p].id]=!0);t.body.removeChild(o)},c.getInjectionPoint=function(i,n,r,a){for(var s=utils.Element.getAll(i),o=parseInt((r-n)/a)||1,l=function(e){return function(t){return 0!==t.offset().top&&t.text().length>e}},c=[],p=!1,u=r;u>=n;u-=o)if(c=utils.filter(s,utils.bind(l(u),this)),c.length>0){p=!0;break}if(p){var d=e.innerHeight;void 0===d&&(d=t.documentElement.clientHeight),c=utils.filter(c,function(e){return e.offset().top>d});var h=c.sort(function(e,t){return e.offset().top-t.offset().top});return h[0]?h[~~(h.length/2)]:null}return null},c.searchPlayerLocation=function(t,i,n){var r,a,s,o=function(e){for(var t=window,i=t.document.getElementById(e);null==i&&t!==t.parent&&utils.canAccessWindow(t.parent);)t=t.parent,i=t.document.getElementById(e);return null!==i&&(i=new utils.Element(i)),i},l=function(e){for(var t=window,i=t.document.querySelector(e);null==i&&t!==t.parent&&utils.canAccessWindow(t.parent);)t=t.parent,i=t.document.querySelector(e);return null!==i&&(i=new utils.Element(i)),i},p=new RegExp(/^id-.*/),u=new RegExp(/^sel-.*/),d=t.length,h="article p",m=10,f=100,v=20,g={auto:Constants.ADUNIT_REQUEST_ERRORS.LOCATION_AUTO_ERROR,inline:Constants.ADUNIT_REQUEST_ERRORS.LOCATION_INLINE_ERROR,idSelector:Constants.ADUNIT_REQUEST_ERRORS.LOCATION_BY_ID_ERROR,querySelector:Constants.ADUNIT_REQUEST_ERRORS.LOCATION_BY_SELECTOR_ERROR};for(s=0;s<d;s+=1){if(r=t[s],"inline"===r)return!n||""!==i&&i||utils.trackRequestEvent("adunit_request_error",g.inline),{playerLocation:i,usedCriteria:r};if("auto"===r?a=c.getInjectionPoint(h,m,f,v):p.test(r)?(a=o(r.slice(3)),r="idSelector"):u.test(r)&&(a=l(e.decodeURIComponent(r.slice(4))),r="querySelector"),a)return{playerLocation:a.elem,usedCriteria:r}}return n&&utils.trackRequestEvent("adunit_request_error",g[r]),{playerLocation:null,usedCriteria:null}},c.sendDmpData=function(t,i,n){c.readDmpUserSegments(r,function(e){c.setCookieSyncPixel(t,e)},n),c.__VR.dataLayers.dmp=c.__VR.dataLayers.dmp||{collected:!1,data:{}},c.__VR.dataLayers.dmp.collected||(c.__VR.dataLayers.dmp.collected=!0,c.__VR.dataLayers.dmp.data=i||{},e.dispatchEvent(new utils.CustomEvent(s)))},c.readDmpUserSegments=function(e,t,i){var n=250,r=function(e){function t(e){var t,i,n,r=e.length;for(i=0;i<r;i++){for(t=e[i],n=i-1;n>-1&&e[n]>t;n--)e[n+1]=e[n];e[n+1]=t}return e}return e?t(e.split(",")).join(","):""},s=r(i),o=localStorage.getItem(a),l=0,c=2,p=function(){var i,u=localStorage.getItem(a)!==o;u?(l+=1,i=r(localStorage.getItem(e)),i!==s?t(i):l<c&&setTimeout(p,n)):setTimeout(p,n)};setTimeout(p,n)},c.setCookieSyncPixel=function(e,t){var i=window.encodeURIComponent(t),n=e+"/u-segment/?seg="+i,r=new Image;r.onload=function(){},r.src=n},c.readCMPData=function(e,t){var i=e.get("gdpr");return i?void t("",i.cmp,i.gdpr?1:0,i.cs):void Cmp.readCMPData(e.get("country"),t)},c.setupVPT=function(e){var t,i,n={EVENTS:e.EVENTS,ALL_ZID:e.ALL_ZID,queue:e.queue,on:e.on,once:e.once,off:e.off,addConfig:e.addConfig,getConfig:e.getConfig};i=window,utils.canAccessTopWindow()&&(i=window.top),null!=i.vpt?"[object Array]"===Object.prototype.toString.call(i.vpt.queue)&&(t=i.vpt.queue,i.vpt=n,c.__VR.vptimpl=e,t.forEach(function(e){e()})):(i.vpt=n,c.__VR.vptimpl=e)},c.evaluatePlayerPosition=function(t,i){var n,r,a,s=null,o=t.getBoundingClientRect();return i===ViewabilityFactory.publishingPlatform.ACCELERATED_MOBILE_PAGE?s={top:e.context.initialLayoutRect.top,left:e.context.initialLayoutRect.left}:e!==window.top?inDapIF?(s=utils.getFifAbsolutePosition(e),s.top+=o.top,s.left+=o.left):e.$sf&&e.$sf.ext&&(a=e.$sf.ext.geom(),null!=a&&null!=a.self&&null!=a.self.t&&null!=a.self.l&&(s={top:a.self.t,left:a.self.l})):(n=e.pageYOffset||e.document.documentElement.scrollTop||e.document.body.scrollTop||0,r=e.pageXOffset||e.document.documentElement.scrollLeft||e.document.body.scrollLeft||0,s={top:o.top+n,left:o.left+r}),s},c}(wnd,doc),setupVPTImpl=function(){"use strict";var e={},t={},i={},n="DELETED",r=function(e,t){var i=e+";"+t,n=Math.random().toString(32).substr(2);return i+";"+n},a=function(t,i,r){null!=e[t]&&null!=e[t][i]&&null!=e[t][i][r]&&(e[t][i][r]=n)},s=function(t,i){null!=e[t]&&null!=e[t][i]&&Object.keys(e[t][i]).forEach(function(e){a(t,i,e)})},o=function(e){var t={event:i.EVENTS.ALL,zid:i.ALL_ZID};return utils.isString(e)?t.event=e:(t.event=e.event||t.event,t.zid=e.zid||t.zid),t},l=function(e,t){Object.keys(t).forEach(function(i){e.push(t[i])})},c=function(t,n){var r=[],a=i.ALL_ZID,s=i.EVENTS.ALL;return e[a]&&e[a][s]&&l(r,e[a][s]),n!==a&&e[n]&&e[n][s]&&l(r,e[n][s]),t!==s&&(e[a]&&e[a][t]&&l(r,e[a][t]),e[n]&&e[n][t]&&l(r,e[n][t])),r};return i.emit=function(e,t,i,r){var a=c(e,t),s={event:e,zid:t,format:i,data:r,timestamp:(new Date).getTime()};a.forEach(function(e){e!==n&&window.setImmediate(function(){e(s)})})},i.on=function(t,i){var n=o(t),a=r(n.zid,n.event);for(e[n.zid]||(e[n.zid]={}),e[n.zid][n.event]||(e[n.zid][n.event]={});null!=e[n.zid][n.event][a];)a=r(n.zid,n.event);return e[n.zid][n.event][a]=i,a},i.once=function(t,r){var a=o(t),s=i.on(a,function(t){e[a.zid][a.event][s]!==n&&(i.off(a,s),r(t))});return s},i.off=function(e,t){var i=o(e);null!=t?a(i.zid,i.event,t):s(i.zid,i.event)},i.EVENTS={ALL:"VPT-EVENT::*",AD_SESSION_START:"VPT-EVENT::AD_SESSION_START",AD_SESSION_END:"VPT-EVENT::AD_SESSION_END",AD_IMPRESSION:"VPT-EVENT::AD_IMPRESSION",COLLAPSE:"VPT-EVENT::COLLAPSE",END:"VPT-EVENT::END",ACTIVATION:"VPT-EVENT::ACTIVATION",START:"VPT-EVENT::START",FIRST_QUARTILE:"VPT-EVENT::FIRST_QUARTILE",MID_POINT:"VPT-EVENT::MID_POINT",THIRD_QUARTILE:"VPT-EVENT::THIRD_POINT",COMPLETE:"VPT-EVENT::COMPLETE",ERROR:"VPT-EVENT::ERROR",CLICK:"VPT-EVENT::CLICK",SKIP:"VPT-EVENT::SKIP"},i.ALL_ZID="VPT-ZID::*",i.queue={push:function(e){setTimeout(e,0)}},i.addConfig=function(){var e,n;utils.isString(arguments[0])?(e=arguments[0],n=arguments[1]):(e=i.ALL_ZID,n=arguments[0]),t[e]=n},i.getConfig=function(e){return null!=t[e]?t[e]:t[i.ALL_ZID]},function(){viralize.setupVPT(i)}}(),Native=function(e,t,i,n,r,a,s,o){"use strict";var l=["16/9","9/16","11/9","unknown"],c=16/9,p="16/9",u=.5,d=640,h=960,m=20,f=3,v=function(){var e;return this instanceof v?(this.cssNamespace="",this.script=null,this.playerIframe=null,this.injectionElem=null,this.playerLocation=null,this.playerLocationSelectionCriteria=null,this.injectorName="native",this.sessionCounter=1,e=t.createElement("div"),this.isTransitionendSupported=!1,void 0!==e.style.transition&&(this.isTransitionendSupported=!0),this.isPreview=n.get("is_preview"),this.frequencyCappingManager=new FrequencyCapping,this.ratio=c,this.ratioCategory=p,this.viewportParent=null,this.enableIntextAnimation=n.get("enable_intext_animation",!0),this.seen=!1,this.detectedPlatform=o.getPublishingPlatform(n),this.vipModeEnabled=this.isVipModeEnabled(),this.vipPositions=n.get("vip_positions",["desktop-bottom-right","mobile-landscape-bottom-right","mobile-portrait-bottom"]),this.isVip=!1,this.suffixId=o.generateSuffixId(),this.dropdownAcked=!1,this.forceAckDroppeddownNextLoop=!1,this.vipSize=n.get("vip_size","large"),this.config=n,this.reloadToImpressions=n.get("reload_to_impressions",null),this.failedLoops=0,this.successLoops=0,this.scrollCallbackBound=null,this.scrollVipCallbackBound=null,this.setVipPositionBound=null,this.transitionendDropdownCallbackBound=null,void(this.cssLoader=null)):new v};return v.prototype.isVipModeEnabled=function(){var e=a.publishingPlatform.ACCELERATED_MOBILE_PAGE,t=a.publishingPlatform.FACEBOOK_INSTANT_ARTICLES;return this.detectedPlatform!==e&&this.detectedPlatform!==t&&"no"!==n.get("vip_mode")},v.prototype.isDroppable=function(){return this.isFullyVisible(this.playerIframe.elem,!1)},v.prototype.isFullyVisible=function(i,n){var a,s,o,l,c,p,d=!1,h=r.getViewportSize(e),m=Math.max(t.body.scrollHeight,t.body.offsetHeight,t.documentElement.clientHeight,t.documentElement.scrollHeight,t.documentElement.offsetHeight),f=e.innerHeight;return void 0===f&&(f=t.documentElement.clientHeight),a=i.getBoundingClientRect(),s=Math.floor(a.top),o=t.documentElement.scrollTop||t.body.scrollTop,l=o+f,c=Math.floor(this.nativeHeight*u),n?(p=Math.abs(s),d=s<0?p<c:f-p>=c):d=m===l||s+c<h.height,d},v.prototype.animatedPullUp=function(){var t=this,i=!1,n=function(){i||(i=!0,t.wideWrapperElement.elem.style.display="none",injectorPlayerEmitter.emit("inj::pulledup"),t.detectedPlatform===a.publishingPlatform.ACCELERATED_MOBILE_PAGE&&e.context.requestResize(0,0),t.sendVPTCollapse())};0!==this.successLoops&&(!this.isVip&&this.isTransitionendSupported?(r.addEventListener(this.nativeWrapper.elem,"transitionend",function(){n()}),this.nativeWrapper.elem.style["max-height"]="0"):n())},v.prototype.dropDown=function(){this.disclaimerElement.addClass("show"),this.setNativeElementSize(),this.wideWrapperElement.elem.style.height="auto",this.nativeWrapper.elem.style["max-height"]=this.getComputedMaxHeight()+"px",this.responsive&&"16/9"!==this.ratioCategory&&"11/9"!==this.ratioCategory?this.nativeWrapper.elem.style["max-width"]=this.wrapperWidth+"px":this.nativeWrapper.elem.style.removeProperty("max-width"),this.frequencyCappingManager.incHits()},v.prototype.getComputedMaxHeight=function(){var e=0;return e=this.responsive?"16/9"===this.ratioCategory||"11/9"===this.ratioCategory?Math.floor(this.wrapperWidth/this.ratio)+m:this.nativeHeight+m:this.nativeHeight},v.prototype.setNativeElementSize=function(){var t=n.get("width"),i=n.get("height"),a=r.getViewportSize(e),s=a.width,o=a.height-m;null===t||null===i?(this.responsive=!0,s=Math.min(s,d),o=Math.min(o,h),"16/9"===this.ratioCategory||"11/9"===this.ratioCategory?(this.wrapperWidth=s,this.nativeHeight=Math.floor(s/this.ratio),this.nativeElement.elem.style.height="auto",this.nativeElement.elem.style.paddingBottom=1/this.ratio*100+"%"):"unknown"===this.ratioCategory?(this.nativeHeight=this.fixedHeight,this.wrapperWidth=d,this.nativeElement.elem.style.height=this.nativeHeight+"px",this.nativeElement.elem.style.paddingBottom=""):(this.nativeHeight=o,this.wrapperWidth=Math.floor(o*this.ratio),this.nativeElement.elem.style.height="auto",this.nativeElement.elem.style.paddingBottom=1/this.ratio*100+"%")):(this.responsive=!1,this.wrapperWidth=t,this.nativeHeight=i,this.nativeElement.elem.style.height=this.nativeHeight+"px",this.nativeElement.elem.style.width=this.wrapperWidth+"px",this.wideWrapperElement.elem.style.width=this.wrapperWidth+"px")},v.prototype.removePlaceholder=function(){r.Element.remove("viralize-placeholder-"+this.suffixId)},v.prototype.scrollCallback=function(){this.isDroppable()&&(this.seen=!0,injectorPlayerEmitter.emit("inj::droppable"),this.enableIntextAnimation&&!this.forceAckDroppeddownNextLoop||(this.dropdownAcked=!0,injectorPlayerEmitter.emit("inj::droppeddown")))},v.prototype.setVipPosition=function(){var t,i,n,a,s=20,o=this.nativeWrapper,l=detect.detectMobile();l&&(o=this.nativeElement),this.nativeWrapper.elem.style.height="100%",a=e.scrollY+e.innerHeight-(o.elem.offsetHeight+s),this.nativeWrapper.elem.style.top=a+"px",this.nativeWrapper.elem.style.bottom="",r.matchMedia("(orientation: portrait)").matches?this.nativeWrapper.elem.style.left="":(t=parseInt(getComputedStyle(this.viewportParent)["margin-right"].split(/[^0-9]+/)[0],10),i=t+o.elem.offsetWidth+s,n=e.innerWidth-i,this.nativeWrapper.elem.style.left=n+"px")},v.prototype.disableVip=function(){this.removePlaceholder(),this.isVip=!1,this.wideWrapperElement.removeClass(r.classNamePrefix(this.cssNamespace,["vip",this.vipSize].concat(this.vipPositions))),this.disclaimerElement.addClass("show"),null!==this.viewportParent&&(r.removeEventListener(e,"scroll",this.setVipPositionBound,!0),r.removeEventListener(e,"resize",this.setVipPositionBound))},v.prototype.addPlaceholder=function(){var e=this.nativeWrapper.elem.cloneNode(!1);e.setAttribute("id","viralize-placeholder-"+this.suffixId),e.style.height=e.style["max-height"],this.wideWrapperElement.elem.appendChild(e)},v.prototype.enableVip=function(){var t=this;this.addPlaceholder(),this.isVip=!0,this.wideWrapperElement.addClass(r.classNamePrefix(this.cssNamespace,["vip",this.vipSize].concat(this.vipPositions))),this.disclaimerElement.removeClass("show"),null!==this.viewportParent&&e.setTimeout(function(){t.setVipPosition(),r.addEventListener(e,"scroll",t.setVipPositionBound,!0),r.addEventListener(e,"resize",t.setVipPositionBound)},0)},v.prototype.scrollVipCallback=function(){(this.seen||this.enableIntextAnimation)&&(this.isFullyVisible(this.wideWrapperElement.elem,!0)?this.dropdownAcked&&this.isVip&&this.disableVip():this.dropdownAcked&&!this.isVip&&this.enableVip())},v.prototype.transitionendDropdownCallback=function(){this.dropdownAcked||(this.dropdownAcked=!0,injectorPlayerEmitter.emit("inj::droppeddown"))},v.prototype.setupCommunication=function(){function t(t){for(var i=t.parentNode;null!=i;){try{if("none"!==e.getComputedStyle(i).transform)return i}catch(n){}i=i.parentNode}return null}var i=this,n=this.nativeWrapper;null!=this.scrollCallbackBound&&r.removeEventListener(e,"scroll",this.scrollCallbackBound,!0),null!=this.scrollVipCallbackBound&&r.removeEventListener(e,"scroll",this.scrollVipCallbackBound,!0),null!=this.setVipPositionBound&&(r.removeEventListener(e,"scroll",this.setVipPositionBound,!0),r.removeEventListener(e,"resize",this.setVipPositionBound)),null!=this.transitionendDropdownCallbackBound&&r.removeEventListener(n.elem,"transitionend",i.transitionendDropdownCallbackBound),injectorPlayerEmitter.off(),this.scrollCallbackBound=r.bind(this.scrollCallback,this),this.scrollVipCallbackBound=r.bind(this.scrollVipCallback,this),this.setVipPositionBound=r.bind(this.setVipPosition,this),this.transitionendDropdownCallbackBound=r.bind(this.transitionendDropdownCallback,this),r.addEventListener(e,"scroll",this.scrollCallbackBound,!0),this.vipModeEnabled&&(this.viewportParent=t(this.nativeWrapper.elem),r.addEventListener(e,"scroll",this.scrollVipCallbackBound,!0)),this.enableIntextAnimation&&injectorPlayerEmitter.on("cmd::dropdown",r.bind(function(t){r.removeEventListener(e,"scroll",this.scrollCallbackBound,!0),l.indexOf(t.category)!==-1&&(this.ratio=t.value,this.ratioCategory=t.category,"unknown"===t.category&&(this.fixedHeight=t.height)),this.dropDown(),this.isTransitionendSupported?r.addEventListener(n.elem,"transitionend",i.transitionendDropdownCallbackBound):this.transitionendDropdownCallback(),r.removeEventListener(e,"scroll",this.scrollCallbackBound,!0)},this)),injectorPlayerEmitter.on("cmd::pullup",r.bind(this.onPullUpRequest,this)),injectorPlayerEmitter.on("event::loadPlayerError",r.bind(this.onLoadPlayerError,this)),injectorPlayerEmitter.on("pl::playerReady",function(){i.forceMaxHeight().afterLoad(),i.scrollCallback()}),this.enableIntextAnimation&&injectorPlayerEmitter.on("cmd::remove",r.bind(function(){r.removeEventListener(e,"scroll",this.scrollVipCallbackBound,!0),o.unsetElementRemovedListener(),this.wideWrapperElement.remove()},this))},v.prototype.sendVPTCollapse=function(){o.__VR.vptimpl&&o.__VR.vptimpl.emit(o.__VR.vptimpl.EVENTS.COLLAPSE,n.get("zid"),n.get("format_family"))},v.prototype.scheduleVPTEndEvent=function(){var e;o.__VR.vptimpl&&(e=injectorPlayerEmitter.on("cmd::remove",r.bind(function(){injectorPlayerEmitter.off(e),o.__VR.vptimpl.emit(o.__VR.vptimpl.EVENTS.END,n.get("zid"),n.get("format_family"))},this)))},v.prototype.onLoadPlayerError=function(){null==this.reloadToImpressions?this.handleFallback():0===this.successLoops?this.handleFallback():this.startPullUp()},v.prototype.onPullUpRequest=function(e){var t;return e.adFilled?(this.successLoops+=1,this.failedLoops=0):this.failedLoops+=1,null==this.reloadToImpressions?(this.scheduleVPTEndEvent(),this.startPullUp(),void(e.adFilled||this.handleFallback())):void(this.failedLoops<f&&this.successLoops<this.reloadToImpressions&&!e.skipped?(o.unsetElementRemovedListener(),e.eventsFlushed?this.start():t=injectorPlayerEmitter.on("cmd::remove",r.bind(function(){injectorPlayerEmitter.off(t),this.start()},this))):(this.scheduleVPTEndEvent(),this.startPullUp(),0===this.successLoops&&this.handleFallback()))},v.prototype.startPullUp=function(){this.enableIntextAnimation?this.animatedPullUp():(this.playerIframe.elem.style.display="none",this.disableVip(),r.removeEventListener(e,"scroll",this.scrollVipCallbackBound,!0),o.unsetElementRemovedListener(),injectorPlayerEmitter.emit("inj::pulledup"),this.sendVPTCollapse())},v.prototype.handleFallback=function(){var e,t;o.unRegister(this),e="viralize-fallback-"+this.suffixId,t=r.Element.insertHTMLBefore(this.script,e,n.get("fallback_body")),this.wideWrapperElement&&this.wideWrapperElement.hide(),t&&(r.trackRequestEvent("adunit_response_fallback"),injectorPlayerEmitter.emit("inj::fallback"))},v.prototype.setupViewability=function(){var t=r.bind(function(){return detect.detectiOS()&&this.isVip},this),i=a.getInstance(this.detectedPlatform,this.iframe.elem,e,t,r.bind(function(e){injectorPlayerEmitter.emit("inj::viewability",e)},this)),n=new s(i,r.bind(function(){injectorPlayerEmitter.emit("inj::viewable")},this));injectorPlayerEmitter.on("cmd::startViewability",r.bind(function(){try{i.start(),injectorPlayerEmitter.emit("inj::viewabilityAvailable")}catch(e){injectorPlayerEmitter.emit("inj::viewabilityNotAvailable")}},this)),injectorPlayerEmitter.on("cmd::startIABViewability",function(){try{n.start()}catch(e){}}),injectorPlayerEmitter.on("cmd::stopViewability",function(){i.stop()}),injectorPlayerEmitter.on("cmd::stopIABViewability",function(){n.stop()})},v.prototype.forceMaxHeight=function(){var e=this;return{beforeLoad:function(){e.enableIntextAnimation&&(e.playerIframe.elem.style["max-height"]="0px")},afterLoad:function(){e.enableIntextAnimation&&(e.playerIframe.elem.style["max-height"]="")}}},v.prototype.inject=function(){var e,t,a,s,l,c,p,u,d=n.get("zid"),h=n.get("endpoint_host"),m=n.get("enable_fc_ignore"),f=o.findInjectionElem(h,d),v=this.script=f.script;
if(null===v)return null;if(o.markAsInjected(v),i?this.injectionElem=f.iframe:this.injectionElem=v,!this.isPreview&&!m&&this.frequencyCappingManager.reachedCapping())return r.trackRequestEvent("adunit_request_cap"),this.handleFallback(),null;e=r.getCustomCss(v)||n.get("custom_style"),this.cssLoader=new CssLoader(this.suffixId,cssTpl,e),this.cssNamespace=this.cssLoader.getCssNameNamespace(),t=r.Element.create("div"),t.attr("id","viralize-wide-wrapper-"+this.suffixId),t.addClass(r.classNamePrefix(this.cssNamespace,["native","wide-wrapper"])),this.wideWrapperElement=t,a=r.Element.create("p"),a.attr("id","vr-"+this.suffixId+"-disclaimer"),this.disclaimerElement=a,this.disclaimerElement.text(n.get("disclaimer","Advertisement")),s=r.Element.create("div"),s.attr("id","viralize-native-wrapper-"+this.suffixId),s.addClass(r.classNamePrefix(this.cssNamespace,["native","native-wrapper"])),this.nativeWrapper=s,l=this.nativeElement=r.Element.create("div"),l.attr("id","viralize-native-"+this.suffixId),l.addClass(r.classNamePrefix(this.cssNamespace,["native","native-element"])),this.setNativeElementSize(),this.enableIntextAnimation||this.dropDown(),c=this.iframe=o.createIframe("viralize-player-iframe-"+this.suffixId,n.get("width"),n.get("height")),c.addClass(r.classNamePrefix(this.cssNamespace,["native","frame"])),this.playerIframe=c,this.forceMaxHeight().beforeLoad(),n.get("enable_disclaimer",!0)&&a.appendTo(t.elem),s.appendTo(t.elem),l.appendTo(s.elem),c.appendTo(l.elem),p=n.get("location",["inline"]);try{o.register(this,this.wrapperWidth,this.nativeHeight)}catch(g){if(g instanceof MaxInstancesError)throw g;return g instanceof DuplicateInjectorError&&o.replaceInjector(this.script),null}u=o.searchPlayerLocation([p[0]],this.injectionElem,!1),this.playerLocation=u.playerLocation,this.playerLocationSelectionCriteria=u.usedCriteria,this.playerLocation?this.start():r.onDOMContentLoaded(r.bind(function(){u=o.searchPlayerLocation(p,this.injectionElem,!0),this.playerLocation=u.playerLocation,this.playerLocationSelectionCriteria=u.usedCriteria,this.start()},this))},v.prototype.start=function(){var s,l,c,p,u;if(o.isInHead(this.playerLocation))throw r.trackRequestEvent("adunit_request_error",Constants.ADUNIT_REQUEST_ERRORS.SCRIPT_IN_HEAD),new Error('You are trying to put the player into the head.Please check the script location or the "location" parameter');if(this.dropdownAcked&&(this.forceAckDroppeddownNextLoop=!0),this.playerLocation&&(p=this.playerLocation.ownerDocument.defaultView||this.playerLocation.ownerDocument.parentWindow,i&&this.vipModeEnabled&&p===window)){this.vipModeEnabled=!1,r.removeEventListener(e,"scroll",this.scrollVipCallbackBound,!0),u=new Error("VIP Mode cannot be enabled: location forced inside an iframe. VIP Mode units must be placed in the top window.");var d=console;d.error(u)}return!i||this.enableIntextAnimation||this.vipModeEnabled||"inline"!==this.playerLocationSelectionCriteria?this.playerLocation.parentNode.insertBefore(this.wideWrapperElement.elem,this.playerLocation):document.body.appendChild(this.wideWrapperElement.elem),this.cssLoader.loadStyle(this.wideWrapperElement.elem),l=this.nativeElement.elem.getBoundingClientRect(),c=o.evaluatePlayerPosition(this.nativeElement.elem,this.detectedPlatform),o.readCMPData(n,r.bind(function(e,i,p,u){var d,h,m=n.get("pub_platform","");m===a.publishingPlatform.OEMBED&&this.detectedPlatform!==a.publishingPlatform.OEMBED?m+="-"+this.detectedPlatform:m=this.detectedPlatform,h={player_size:l,pub_platform:m,cs:u,gdpr:p,cmp:i,cmp_ver:e,sessionCounter:this.sessionCounter},c&&(h.player_position=c),s=o.createPlayerSrc(n,h),r.loadPlayerIframe(this.iframe,s,n,function(e){o.sendDmpData(n.get("scheme")+"://"+n.get("endpoint_host"),e,n.get("dmp_segments"))}),d={gdpr_consent:u,gdpr:p,country:n.get("country")},o.addPluginsForNotBlacklisted(n.get("plugins",[]),d,n.get("publisher")),this.sessionCounter+=1,this.setupCommunication(),this.setupViewability(),o.setElementRemovedListener(t.body,this.playerIframe.elem,function(){throw new Error("Player removed by an external script")})},this)),!0},v}(wnd,doc,inDapIF,config,utils,ViewabilityFactory,IABViewability,viralize),templates={player:'<!DOCTYPE html>\n<html>\n    <head>\n        <meta http-equiv="content-type" content="text/html; charset=UTF-8">\n        <link rel="icon" href="data:;base64,iVBORw0KGgo=">\n        {{scripts}}\n        <script type="text/javascript">\n            Ecg(window, "ecg", "{{ecgEndpoint}}");\n            ecg("create");\n        </script>\n        <title>Viralize Player</title>\n    </head>\n    <body>\n        <script type="text/javascript">\n            function onPlayerReady (config, injectorPlayerEmitter, vpt) {\n                window.config = config;\n                window.injectorPlayerEmitter = injectorPlayerEmitter;\n\n                if (vpt != null) {\n                    window.vpt = vpt;\n                }\n\n                var user_data = config.user_data || {};\n                var sentryConfig = {{sentryConfig}};\n                var player = new Player(config, sentryConfig);\n                player.init();\n                injectorPlayerEmitter.emit("cmd::dmp_user_data", user_data);\n            }\n\n            if (window.config && window.injectorPlayerEmitter) {\n                // window.vpt could be undefined, and this is the expected behaviour\n                // for format without the api (as vpaid)\n                onPlayerReady(window.config, window.injectorPlayerEmitter, window.vpt);\n            } else {\n                window.onPlayerReady = onPlayerReady;\n            }\n        </script>\n    </body>\n</html>\n'};!function(e){"use strict";var t;setupVPTImpl(),t=new e,t.inject()}(Native);
        })({"format_family": "native", "is_preview": false, "height": null, "reload_to_impressions": 3, "max_family_instances": 0, "capping_interval": 86400, "sentry": {"dsn": "https://1aec9d790bc84140bb25fdb76f019171@sentry.viralize.com/6", "sample_rate": 0.05}, "vip_size": "large", "location": ["sel-#cuerpo", "inline"], "player": {"script": "https://static.viralize.tv/viralize_player.min.90e11e7a.js?e=ops", "mobi": false}, "scheme": "https", "is_test": false, "endpoint_host": "ads.viralize.tv", "country": "DE", "experiment": "ops.", "enable_disclaimer": true, "pub_platform": null, "publisher": "4680", "fallback_body": "", "capping_count": 0, "enable_intext_animation": true, "plugins": [{"id": "113", "content": "<script language=\"javascript\" type=\"text/javascript\">\r\n\ts = document.createElement('script');\r\n\ts.src='https://sync.richaudience.com/b3adde1f4bbb31c3485562d6e3ddceb4/js/?r='+Math.round(Math.random()*99999999999); \r\n\tdocument.body.append(s);\r\n</script>"}, {"id": "41", "content": "<script type=\"text/javascript\">function setUpAgknTag(tag) {\r\ntag.setGdpr(\"{gdpr}\");tag.setGdprConsent(\"{gdpr_consent}\");\r\ntag.setBpId(\"viralizeit\");}</script>\r\n<script src=\"//js.agkn.com/prod/v0/tag.js\" async></script>"}, {"id": "3", "content": "<script>\r\n\t// Smart RTB+ force cookie-sync code - https only - 2020-02-04\r\n       var c ={\r\n           'insertionId' : 5733718,\r\n           'pageId' : 692816,\r\n           'domain' : 'www8.smartadserver.com'\r\n       }\r\n       var h = document.getElementsByTagName('head')[0];\r\n       var sl = document.createElement('script');\r\n       sl.type = 'text/javascript';\r\n       sl.src =  'https://'+ c.domain+'/ac?pgid='+c.pageId+'&insid='+c.insertionId+'&tmstp='+Math.round(Math.random()*10000000000)+'&out=js';\r\n       sl.async = true;\r\n       h.appendChild(sl);\r\n</script>"}, {"id": "1", "content": "<img src=\"//ads.stickyadstv.com/auto-user-sync\" style=\"display:none;\" width=\"1\" height=\"1\">"}], "zid": "AADJP8FSEyMYn7S7", "page_url": "http://www.esdiario.com/982660396/Algunos-heridos-rechazaron-recibir-la-visita-de-los-Reyes-en-el-hospital.html", "sid": "01ea998e5cd67e782af99a45364997e1", "width": null, "disclaimer": "Advertisement", "enable_fc_ignore": false, "dmp_segments": "", "custom_style": "", "enable_branding": true, "vip_mode": "playing", "vip_positions": ["desktop-bottom-right", "mobile-portrait-bottom", "mobile-landscape-bottom-right"], "gdpr": null, "base_query": "zid=AADJP8FSEyMYn7S7&dp1=0&sid=01ea998e5cd67e782af99a45364997e1&activation=onload&experiment=ops.&u=http%3A%2F%2Fwww.esdiario.com%2F982660396%2FAlgunos-heridos-rechazaron-recibir-la-visita-de-los-Reyes-en-el-hospital.html&ahd=1&dp3=1"});
        