
        (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 f[m]=n,d(m),m++}function n(e){delete f[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(h)setTimeout(a,0,e);else{var t=f[e];if(t){h=!0;try{r(t)}finally{n(e),h=!1}}}}function o(){d=function(e){process.nextTick(function(){a(e)})}}function s(){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,m=1,f={},h=!1,v=e.document,g=Object.getPrototypeOf&&Object.getPrototypeOf(e);g=g&&g.setTimeout?g:e,"[object process]"==={}.toString.call(e.process)?o():s()?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="@-webkit-keyframes spinner{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes spinner{to{-moz-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes spinner{to{-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spinner{to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}#vr-namespace-wrapper,#vr-namespace-wrapper *{float:none;top:auto;left:auto;right:auto;bottom:auto;border: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;width:auto;white-space:normal;word-spacing:normal;text-decoration:none}#vr-namespace-wrapper *{clear:none;margin:0;height:auto}#vr-namespace-wrapper #vr-namespace-close-button.vr-namespace-show,#vr-namespace-wrapper div{display:block}#vr-namespace-wrapper a,#vr-namespace-wrapper iframe,#vr-namespace-wrapper img,#vr-namespace-wrapper span{display:inline}#vr-namespace-wrapper{margin:0 auto;height:100%;clear:both}#vr-namespace-wrapper #vr-namespace-strip{position:relative;width:100%;height:0}#vr-namespace-wrapper #vr-namespace-placeholder,#vr-namespace-wrapper #vr-namespace-strip>iframe{width:100%}#vr-namespace-wrapper #vr-namespace-inner,#vr-namespace-wrapper #vr-namespace-plaer-wrapper{position:relative}#vr-namespace-wrapper #vr-namespace-background{display:block;width:100%;height:0;background:#000}#vr-namespace-wrapper #vr-namespace-spinner{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;top:50%;left:50%;width:30px;height:30px;margin-top:-15px;margin-left:-15px;-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;border:1px solid #ccc;border-top-color:#f06;-webkit-animation:spinner 1s linear infinite;-moz-animation:spinner 1s linear infinite;-o-animation:spinner 1s linear infinite;animation:spinner 1s linear infinite;z-index:0;display:none}#vr-namespace-wrapper #vr-namespace-close-button{position:absolute;right:0;top:0;cursor:pointer;color:#fff;font:30px/100% arial,sans-serif;font-weight:700;text-decoration:none;z-index:1000000;padding-top:5px;padding-right:10px;padding-left:8px;display:none}#vr-namespace-wrapper #vr-namespace-close-button:after{content:'\\00d7'}#vr-namespace-wrapper #vr-namespace-disclaimer{padding-right:3px;padding-bottom:3px;padding-top:5px;text-align:right;font-family:Verdana;font-size:11px;color:#b2b2b2}#vr-namespace-wrapper #vr-namespace-disclaimer.hide{display:none}#vr-namespace-wrapper #vr-namespace-disclaimer-logo{vertical-align:middle;width:70px}#vr-namespace-wrapper #viralize-player-iframe-namespace{position:absolute;top:0;left:0}#vr-namespace-wrapper #viralize-thumbs-iframe-namespace{position:absolute;bottom:1px;left:0}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-vip{position:fixed;width:25%;z-index:10000}@media screen and (min-width:1025px) and (orientation:landscape){#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-vip{width:25%}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-vip.vr-namespace-medium{min-width:400px}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-vip.vr-namespace-large{min-width:535px}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-desktop-bottom-right{bottom:20px;right:20px}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-desktop-bottom-left{bottom:20px;left:20px}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-desktop-top-left{top:20px;left:20px}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-desktop-top-right{top:20px;right:20px}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-desktop-bottom,#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-desktop-top{left:50%;-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%);transform:translateX(-50%)}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-desktop-top{top:20px}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-desktop-bottom{bottom:20px}}@media screen and (max-width:1024px) and (orientation:landscape){#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-vip{position:fixed;width:50%;min-width:0}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-mobile-landscape-bottom-right{bottom:5px;right:5px}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-mobile-landscape-top-left{top:5px;left:5px}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-mobile-landscape-top-right{top:5px;right:5px}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-mobile-landscape-bottom-left{bottom:5px;left:5px}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-mobile-landscape-top{top:5px;left:50%;-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%);transform:translateX(-50%)}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-mobile-landscape-bottom{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){#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-vip{position:fixed;width:75%;min-width:0}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-mobile-portrait-top{top:0;left:50%;-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%);transform:translateX(-50%)}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-mobile-portrait-bottom{bottom:5px;left:50%;-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%);transform:translateX(-50%)}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-mobile-portrait-top-left{top:0;left:0}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-mobile-portrait-top-right{top:0;right:0}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-mobile-portrait-bottom-left{bottom:5px;left:0}#vr-namespace-wrapper #vr-namespace-player-wrapper.vr-namespace-mobile-portrait-bottom-right{bottom:5px;right:0}}\n/*! end strip */",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},o=[200,201,202,204,206,304,1223],s=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=s(),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&&(o.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 PlayerDependencies={player:{debug:["//ajax.googleapis.com/ajax/libs/jquery/1.12.1/jquery.js","//cdn.polyfill.io/v2/polyfill.js?flags=gated","//imasdk.googleapis.com/js/sdkloader/ima3_debug.js"],default:["//ajax.googleapis.com/ajax/libs/jquery/1.12.1/jquery.min.js","//cdn.polyfill.io/v2/polyfill.min.js?unknown=polyfill&flags=gated","//imasdk.googleapis.com/js/sdkloader/ima3.js"]},mobi:{debug:["//ajax.googleapis.com/ajax/libs/jquery/1.12.1/jquery.js","//cdn.polyfill.io/v2/polyfill.js?flags=gated"],default:["//ajax.googleapis.com/ajax/libs/jquery/1.12.1/jquery.min.js","//cdn.polyfill.io/v2/polyfill.min.js?unknown=polyfill&flags=gated"]},banner:{debug:["//ajax.googleapis.com/ajax/libs/jquery/1.12.1/jquery.js","//cdn.polyfill.io/v2/polyfill.js?flags=gated"],default:["//ajax.googleapis.com/ajax/libs/jquery/1.12.1/jquery.min.js","//cdn.polyfill.io/v2/polyfill.min.js?unknown=polyfill&flags=gated"]},strip:{debug:["//ajax.googleapis.com/ajax/libs/jquery/1.12.1/jquery.js","//cdn.polyfill.io/v2/polyfill.js?flags=gated"],default:["//ajax.googleapis.com/ajax/libs/jquery/1.12.1/jquery.min.js","//cdn.polyfill.io/v2/polyfill.min.js?unknown=polyfill&flags=gated"]},sentry:"//cdn.ravenjs.com/3.17.0/raven.min.js"},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}(),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 o=t.createEvent(e);return null!==n?r.call(o,n,(a||(a=i)).bubbles,a.cancelable,a.detail):o.initCustomEvent=r,o}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],o=null;r.type="text/css",r.id="matchmediajs-test",a.parentNode.insertBefore(r,a),o="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"===o.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 o=Math.floor((n-r)/1e3),s=e+"="+i+";path=/;max-age="+o+";expires="+n.toUTCString();return t.cookie=s,s},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,o){var s=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=o||injectorPlayerEmitter;ajax.get(t,function(t){var r,o=JSON.parse(t),s=e.elem.contentWindow||e.elem;return o.error?(d.emit("cmd::fallback"),void d.emit("event::loadPlayerError")):(a&&a(o),r=i.getVPTInstance(n),void(s.onPlayerReady?s.onPlayerReady(o,d,r):(s.config=o,s.injectorPlayerEmitter=d,s.vpt=r)))});var m=l?"mobi":c?"banner":"player",f=TemplateLoader.render(u,{scripts:function(){var e=PlayerDependencies[m],t=n.get("debug",!1)?e.debug.slice():e["default"].slice();return s&&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 s?JSON.stringify({dsn:s.dsn,sampleRate:s.sample_rate}):null}});d.once("cmd::dmp_user_data",function(e){r&&r(e.data)}),i.loadFriendlyIframeWithTemplate(e,f)},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"),o=0;o<a.length;o++){for(var s=document.createElement("script"),l=a[o].attributes,c=0;c<l.length;c++)s.setAttribute(l[c].nodeName,l[c].value);a[o].innerHTML&&(s.text=a[o].innerHTML),a[o].parentNode.replaceChild(s,a[o])}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,o=e.pageXOffset||r.scrollLeft||n.scrollLeft,s=r.clientTop||n.clientTop||0,l=r.clientLeft||n.clientLeft||0,c=i.top+a-s,p=i.left+o-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},n.prototype.show=function(){return this.elem.style.visibility="visible",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,o){var s=i||e.publishingPlatform.STANDARD,l=t[s];if(!l)throw new ViewabilityClassNotFoundError("No viewabilityClass registered for the platform "+i);return new l(n,r,a,o)},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)),o=Math.ceil(Math.max(0,i.top)),s=Math.ceil(Math.min(t.height,i.bottom)),l=(a-r)*(s-o),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,o){Viewability.call(this,e,t,a,o),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),o=r.getBoundingClientRect(),s=o.width*o.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?o.bottom<=0||o.right<=0||o.top>=a.height||o.left>=a.width?this.reasons.OUT_OF_VIEWPORT:s<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),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",o="VR-DMP-COLLECT",s="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,o=null;"undefined"!=typeof t&&null!==t&&(a=n+"zid="+t,a=a.replace("{endpoint_host}",e),o=new RegExp(a,"gi"));for(var s=function(e){return!e.hasAttribute("data-injected")&&!!(null!==e.getAttribute("data-wid")||o&&o.test(e.getAttribute("src")))},l=i.length;l--;)if(s(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,o,l,p;if(t&&i&&this.registerOnSafeFrameApi(t,i),n={},r=utils.sessionStorage().getItem(s),null!=r&&(n=JSON.parse(utils.sessionStorage().getItem(s))),a=n[e.injectorName]||{count:0,instances:{}},o=a.count,l=e.config.get("max_family_instances",0),p=e.config.get("sid"),l>0&&o>=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(s,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(s);for(null!=a&&(r=JSON.parse(utils.sessionStorage().getItem(s))),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(s,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%",o={allowfullscreen:!0,webkitallowfullscreen:t.webkitFullscreenEnabled,mozallowfullscreen:t.mozFullScreenEnabled},s=utils.Element.create("iframe",{id:e,src:"about:blank",scrolling:"no",frameborder:0,marginheight:0,marginwidth:0,allow:"autoplay; fullscreen"});for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.attr(l,o[l]);return s.elem.style.width=r,s.elem.style.height=a,s},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,o=t.get("publisher"),s=t.get("page_url"),l=a?a.userAgent||"":"",p=utils.hashCode(o+s+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,o){var s,l,p={},u=utils.getRealDomain();return c.__VR.pageId=c.__VR.pageId||c.createPageId(a),l=o||{},l.player_size||(l.player_size={width:0,height:0}),s={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&&(s.player_position={top:Math.round(l.player_position.top),left:Math.round(l.player_position.left)}),p.player_session=JSON.stringify(s),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),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 o(e){utils.Element.insertHTMLBefore(s,l+e.id,r(e.content))}var s,l="";i&&(l=i+"-"),s=t.createElement("placeholder"),t.body.appendChild(s);for(var p=0;p<e.length;p++)c.__VR.customScripts[e[p].id]||(e[p].src?a(e[p]):e[p].content&&o(e[p]),c.__VR.customScripts[e[p].id]=!0);t.body.removeChild(s)},c.getInjectionPoint=function(i,n,r,a){for(var o=utils.Element.getAll(i),s=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-=s)if(c=utils.filter(o,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 m=c.sort(function(e,t){return e.offset().top-t.offset().top});return m[0]?m[~~(m.length/2)]:null}return null},c.searchPlayerLocation=function(t,i,n){var r,a,o,s=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,m="article p",f=10,h=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(o=0;o<d;o+=1){if(r=t[o],"inline"===r)return!n||""!==i&&i||utils.trackRequestEvent("adunit_request_error",g.inline),{playerLocation:i,usedCriteria:r};if("auto"===r?a=c.getInjectionPoint(m,f,h,v):p.test(r)?(a=s(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(o)))},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(","):""},o=r(i),s=localStorage.getItem(a),l=0,c=2,p=function(){var i,u=localStorage.getItem(a)!==s;u?(l+=1,i=r(localStorage.getItem(e)),i!==o?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.construbCMPPostMessageStub=function(e){for(var t,i,n,r,a,o,s,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,o){return t?(n=Math.random().toString(32).substr(2),r={__cmpCall:{command:e,parameter:a,callId:n}},i[n]=o,void t.postMessage(r,"*")):void o({msg:"CMP not found"},!1)},s=function(t){try{a="string"==typeof t.data?JSON.parse(t.data):t.data,a.__cmpReturn&&(utils.removeEventListener(e,"message",s),o=a.__cmpReturn,i[o.callId]&&(i[o.callId](o.returnValue,o.success),i[o.callId]=null))}catch(n){}},utils.addEventListener(e,"message",s),function(){utils.removeEventListener(e,"message",s)}},c.readCMPData=function(e,t){var i,n,r=utils.canAccessTopWindow(),a=r?window.top:window,o=e.get("country"),s=e.get("gdpr");return s?void t(s.cmp,s.gdpr?1:0,s.cs):(r||(n=c.construbCMPPostMessageStub(a)),a.__cmp?(i=setTimeout(function(){i=null,n&&n(),t("timeout",utils.isInUE(o)?1:0,"")},2e3),void a.__cmp("getConsentData",null,function(e,n){if(i){if(clearTimeout(i),n)return void t("available",e.gdprApplies?1:0,e.consentData);t("error",utils.isInUE(o)?1:0,"")}})):void t("unavailable",utils.isInUE(o)?1:0,""))},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,o=null,s=t.getBoundingClientRect();return i===ViewabilityFactory.publishingPlatform.ACCELERATED_MOBILE_PAGE?o={top:e.context.initialLayoutRect.top,left:e.context.initialLayoutRect.left}:e!==window.top?inDapIF?(o=utils.getFifAbsolutePosition(e),o.top+=s.top,o.left+=s.left):e.$sf&&e.$sf.ext&&(a=e.$sf.ext.geom(),null!=a&&null!=a.self&&null!=a.self.t&&null!=a.self.l&&(o={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,o={top:s.top+n,left:s.left+r}),o},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)},o=function(t,i){null!=e[t]&&null!=e[t][i]&&Object.keys(e[t][i]).forEach(function(e){a(t,i,e)})},s=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,o=i.EVENTS.ALL;return e[a]&&e[a][o]&&l(r,e[a][o]),n!==a&&e[n]&&e[n][o]&&l(r,e[n][o]),t!==o&&(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),o={event:e,zid:t,format:i,data:r,timestamp:(new Date).getTime()};a.forEach(function(e){e!==n&&window.setImmediate(function(){e(o)})})},i.on=function(t,i){var n=s(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=s(t),o=i.on(a,function(t){e[a.zid][a.event][o]!==n&&(i.off(a,o),r(t))});return o},i.off=function(e,t){var i=s(e);null!=t?a(i.zid,i.event,t):o(i.zid,i.event)},i.EVENTS={ALL:"VPT-EVENT::*",AD_IMPRESSION:"VPT-EVENT::AD_IMPRESSION",COLLAPSE:"VPT-EVENT::COLLAPSE",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)}}(),Strip=function(){"use strict";var e={ALWAYS:"always",NOT_VIEWABLE:"notviewable",PLAYING:"playing",NEVER:"no"},t=.5,i=function(){return this instanceof i?(this.injectorName="strip",this.script=null,this.suffixId=viralize.generateSuffixId(),this.detectedPlatform=viralize.getPublishingPlatform(config),this.vipModeType=this.getVipModeType(),this.shouldListenForVipMode=this.vipModeType!==e.NEVER,this.started=!1,this.isVip=!1,this.vipPositions=config.get("vip_positions",["desktop-bottom-right","mobile-landscape-bottom-right","mobile-portrait-bottom"]),this.vipSize=config.get("vip_size","large"),this.bindedScrollVipCallback=utils.bind(this.scrollVipCallback,this),this.playingContent=!1,this.disableVipRequested=!1,this.sessionCounter=1,this.config=config,this.pluginLoaded=!1,this.closeVipDelay=config.get("close_delay",0),this.showCloseVipTimeoutId=null,this.cmpAvailability=null,this.gdprApplies=null,this.consentString=null,void(this.cssLoader=null)):new i};return i.prototype.getVipModeType=function(){var t=ViewabilityFactory.publishingPlatform.ACCELERATED_MOBILE_PAGE,i=ViewabilityFactory.publishingPlatform.FACEBOOK_INSTANT_ARTICLES;return this.detectedPlatform===t||this.detectedPlatform===i?e.NEVER:config.get("vip_mode")},i.prototype.cleanPlayerCommunication=function(){injectorPlayerEmitter.off("cmd::playing"),injectorPlayerEmitter.off("cmd::play"),injectorPlayerEmitter.off("cmd::contentPaused"),injectorPlayerEmitter.off("cmd::adPaused"),injectorPlayerEmitter.off("cmd::startViewability"),injectorPlayerEmitter.off("cmd::startIABViewability"),injectorPlayerEmitter.off("cmd::stopViewability"),injectorPlayerEmitter.off("cmd::stopIABViewability")},i.prototype.setupPlayerCommunication=function(){var t,i=this;this.setupPlayerViewability(),injectorPlayerEmitter.on("cmd::play",function(){i.disableVipRequested=!1}),t=function(){var e=i.isFullyVisible(i.inner.elem,!0);e&&(i.disableVip(),utils.removeEventListener(wnd,"scroll",t))},injectorPlayerEmitter.on("cmd::playing",function(e){i.started=!0,e.isContent?i.playingContent=!0:i.playingContent=!1,i.shouldListenForVipMode&&!i.disableVipRequested&&(utils.removeEventListener(wnd,"scroll",t),i.bindedScrollVipCallback(),i.listenForVipMode())}),injectorPlayerEmitter.on("cmd::contentPaused",function(){i.started=!1,i.shouldListenForVipMode&&i.vipModeType!==e.NOT_VIEWABLE&&(utils.removeEventListener(wnd,"scroll",i.bindedScrollVipCallback,!0),utils.addEventListener(wnd,"scroll",t))}),injectorPlayerEmitter.on("cmd::adPaused",function(){i.playingContent||(i.started=!1,i.shouldListenForVipMode&&i.vipModeType!==e.NOT_VIEWABLE&&(utils.removeEventListener(wnd,"scroll",i.bindedScrollVipCallback,!0),utils.addEventListener(wnd,"scroll",t)))})},i.prototype.setupThumbsCommunication=function(){function e(e){var t,i=0,n=0,r=0,a=0,o=e.titlesHeight,s=e.thumbHeight,l=e.thumbsRow,c=e.thumbsCol,p=[],u=[];for(t=0;t<o.length;t+=c)p.push(o.slice(t,t+c));for(u=p.map(function(e){return Math.max.apply(null,e)}),t=0;t<u.length;t+=1)n+=u[t]/s;return r=9*(l+n)/(16*c)*100,a=9*(c+l+n)/(16*c)*100,i=u.reduce(function(e,t){return e+t},s*u.length),{collapsedPaddingBottom:r,expandedPaddingBottom:a,thumbsIframeHeight:i}}var t=this;injectorPlayerEmitter.on("thumbs::ready",function(){injectorPlayerEmitter.emit("inj::ready",{contents:t.contents})}),injectorPlayerEmitter.on("cmd::setSize",function(i){var n=e(i);t.collapsedPaddingBottom=n.collapsedPaddingBottom,t.expandedPaddingBottom=n.expandedPaddingBottom,t.strip.elem.style["padding-bottom"]=t.collapsedPaddingBottom+"%",t.thumbs.elem.style.height=n.thumbsIframeHeight+"px",injectorPlayerEmitter.emit("inj::sizeSet")}),injectorPlayerEmitter.on("cmd::openPlayer",function(e){t.addPlayer(e.cid,e.sound),injectorPlayerEmitter.emit("inj::playerOpened")})},i.prototype.expand=function(){this.strip.elem.style["padding-bottom"]=this.expandedPaddingBottom+"%",this.strip.elem.style.transition="all 0.3s linear",this.background.elem.style["padding-bottom"]="56.25%",this.background.elem.style.transition="all 0.3s linear",this.spinner.elem.style.display="block",this.closeButton.addClass(utils.classNamePrefix(this.cssNamespace,["show"]))},i.prototype.collapse=function(){this.removePlayer(),this.strip.elem.style["padding-bottom"]=this.collapsedPaddingBottom+"%",this.background.elem.style["padding-bottom"]="0%",this.spinner.elem.style.display="none",this.closeButton.removeClass(utils.classNamePrefix(this.cssNamespace,["show"])),injectorPlayerEmitter.emit("inj::playerClosed")},i.prototype.removePlayer=function(){this.player&&(this.viewability.stop(),this.iabViewability.stop(),this.viewability=null,this.iabViewability=null,this.cleanPlayerCommunication(),this.player.remove(),this.player=null)},i.prototype.addPlayer=function(t,i){var n,r,a,o=this.wrapper.elem.offsetWidth,s=9*o/16;this.removePlayer(),r=this.player=viralize.createIframe("viralize-player-iframe-"+this.suffixId),r.appendTo(this.playerWrapper.elem);var l=config.get("pub_platform","");l===ViewabilityFactory.publishingPlatform.OEMBED&&this.detectedPlatform!==ViewabilityFactory.publishingPlatform.OEMBED?l+="-"+this.detectedPlatform:l=this.detectedPlatform,n=viralize.createPlayerSrc(config,{cid:t,sound:i,sessionCounter:this.sessionCounter,player_size:{width:o,height:s},pub_platform:l}),this.expand(),this.vipModeType===e.NOT_VIEWABLE&&(this.bindedScrollVipCallback(),this.listenForVipMode()),utils.loadPlayerIframe(r,n,config),this.pluginLoaded||(a={gdpr_consent:this.consentString,gdpr:this.gdprApplies,country:config.get("country")},viralize.addPluginsForNotBlacklisted(config.get("plugins",[]),a,config.get("publisher")),this.pluginLoaded=!0),this.sessionCounter+=1,this.setupPlayerCommunication()},i.prototype.listenForVipMode=function(){utils.removeEventListener(wnd,"scroll",this.bindedScrollVipCallback,!0),utils.addEventListener(wnd,"scroll",this.bindedScrollVipCallback,!0)},i.prototype.scrollVipCallback=function(){var t=this.isFullyVisible(this.inner.elem,!0);(this.started||this.vipModeType===e.NOT_VIEWABLE)&&(t?this.isVip&&this.disableVip():this.isVip||this.enableVip())},i.prototype.disableVip=function(){var e=utils.classNamePrefix(this.cssNamespace,["show"]);this.disablePlaceholder(),this.isVip=!1,this.playerWrapper.removeClass(utils.classNamePrefix(this.cssNamespace,["vip",this.vipSize].concat(this.vipPositions))),null!=this.showCloseVipTimeoutId&&(clearTimeout(this.showCloseVipTimeoutId),this.showCloseVipTimeoutId=null),this.closeButton.hasClass(e)||this.closeButton.addClass(e)},i.prototype.enableVip=function(){var e=this;this.enablePlaceholder(),this.isVip=!0,this.playerWrapper.addClass(utils.classNamePrefix(this.cssNamespace,["vip",this.vipSize].concat(this.vipPositions))),this.closeButton.removeClass(utils.classNamePrefix(this.cssNamespace,["show"])),this.closeVipDelay!==-1&&(this.showCloseVipTimeoutId=setTimeout(function(){e.showCloseVipTimeoutId=null,e.closeButton.addClass(utils.classNamePrefix(e.cssNamespace,["show"]))},1e3*this.closeVipDelay))},i.prototype.enablePlaceholder=function(){this.placeholder.elem.style.height=9*this.wrapper.elem.offsetWidth/16+"px"},i.prototype.disablePlaceholder=function(){this.placeholder.elem.style.height="0px"},i.prototype.isFullyVisible=function(e,i){var n=!1,r=utils.getViewportSize(wnd),a=this.inner.elem.getBoundingClientRect().height,o=Math.max(doc.body.scrollHeight,doc.body.offsetHeight,doc.documentElement.clientHeight,doc.documentElement.scrollHeight,doc.documentElement.offsetHeight),s=wnd.innerHeight;void 0===s&&(s=doc.documentElement.clientHeight);var l=e.getBoundingClientRect(),c=Math.floor(l.top),p=doc.documentElement.scrollTop||doc.body.scrollTop,u=p+s,d=Math.floor(a*t);if(i){var m=Math.abs(c);n=c<0?m<d:s-m>=d}else n=o===u||c+d<r.height;return n},i.prototype.setupPlayerViewability=function(){var e=this,t=utils.bind(function(){return detect.detectiOS()&&this.isVip},this);this.viewability=ViewabilityFactory.getInstance(this.detectedPlatform,this.player.elem,wnd,t,utils.bind(function(e){injectorPlayerEmitter.emit("inj::viewability",e)},this)),this.iabViewability=new IABViewability(this.viewability,utils.bind(function(){injectorPlayerEmitter.emit("inj::viewable")},this)),injectorPlayerEmitter.on("cmd::startViewability",utils.bind(function(){try{e.viewability.start(),injectorPlayerEmitter.emit("inj::viewabilityAvailable")}catch(t){injectorPlayerEmitter.emit("inj::viewabilityNotAvailable")}},this)),injectorPlayerEmitter.on("cmd::startIABViewability",function(){try{e.iabViewability.start()}catch(t){}}),injectorPlayerEmitter.on("cmd::stopViewability",function(){e.viewability.stop()}),injectorPlayerEmitter.on("cmd::stopIABViewability",function(){e.iabViewability.stop()})},i.prototype.closeButtonClickHandler=function(){this.isVip?(utils.removeEventListener(wnd,"scroll",this.bindedScrollVipCallback,!0),injectorPlayerEmitter.emit("inj::dismiss_vip_mode"),this.disableVip(),this.disableVipRequested=!0):(this.started=!1,utils.removeEventListener(wnd,"scroll",this.bindedScrollVipCallback,!0),this.collapse())},i.prototype.removeInjector=function(){viralize.unsetElementRemovedListener(),this.wrapper.remove()},i.prototype.setupContainer=function(){var e,t={environment:{session:{sid:config.get("sid")},client:{device:{type:config.get("device_type")},page_url:"",endpoint_host:config.get("endpoint_host"),is_preview:config.get("is_preview")},site:{domain:""},zone:{activation_hover_delay:config.get("activation_hover_delay"),activation:config.get("activation"),strip_thumb_numbers:config.get("strip_thumb_numbers")}}},i=TemplateLoader.render(templates.grid,{unit:function(){return Array(config.get("strip_thumb_numbers")+1).join(templates.unit)},script:function(){var e,t=config.get("container_url",null);return e=config.get("debug",!1)?PlayerDependencies.strip.debug:PlayerDependencies.strip["default"],e.push(t),e.reduce(function(e,t){return/https?:/i.test(window.location.protocol)||/^https?/i.test(t)||(t=config.get("scheme")+":"+t),e+'<script type="text/javascript" src="'+t+'"></script>'},"")},ecg:'var endpoint ="'+config.get("scheme")+"://"+config.get("endpoint_host")+'/track/";(function(v, i, r) {Ecg(v, i, r);})(window, "ecg", endpoint);ecg("create");',namespace:this.suffixId});utils.loadFriendlyIframeWithTemplate(this.thumbs,i),e=this.thumbs.elem.contentWindow||this.thumbs.elem,e.onPlayerReady?e.onPlayerReady(t,injectorPlayerEmitter):(e.config=t,e.injectorPlayerEmitter=injectorPlayerEmitter)},i.prototype.inject=function(){var e,t=null,i=config.get("zid"),n=config.get("endpoint_host"),r=viralize.findInjectionElem(n,i),a=this.script=r.script;if(null===a)return null;try{viralize.register(this)}catch(o){if(o instanceof MaxInstancesError)throw o;return o instanceof DuplicateInjectorError&&viralize.replaceInjector(this.script),null}viralize.markAsInjected(a),t=inDapIF?r.iframe:a;var s=utils.getCustomCss(a)||config.get("custom_style");this.cssLoader=new CssLoader(this.suffixId,cssTpl,s);var l=this.cssNamespace=this.cssLoader.getCssNameNamespace(),c=this.wrapper=utils.Element.create("div");c.elem.innerHTML=TemplateLoader.render(templates.strip,{namespace:this.suffixId}),e=utils.bind(function(e){var t=this;if(viralize.isInHead(e))throw utils.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');e.parentNode.insertBefore(c.elem,e),this.cssLoader.loadStyle(c.elem),this.strip=utils.Element.getById(l+"-strip"),this.inner=utils.Element.getById(l+"-inner"),this.placeholder=utils.Element.getById(l+"-placeholder"),this.playerWrapper=utils.Element.getById(l+"-player-wrapper"),this.closeButton=utils.Element.getById(l+"-close-button"),this.background=utils.Element.getById(l+"-background"),this.spinner=utils.Element.getById(l+"-spinner"),this.disclaimer=utils.Element.getById(l+"-disclaimer"),config.get("enable_branding",!0)||this.disclaimer.addClass("hide"),utils.addEventListener(this.closeButton.elem,"click",utils.bind(this.closeButtonClickHandler,this));var i=this.thumbs=viralize.createIframe("viralize-thumbs-iframe-"+this.suffixId,config.get("width"),config.get("height"));i.appendTo(this.strip.elem),viralize.setElementRemovedListener(doc.body,i.elem,function(){throw new Error("Player removed by an external script")}),viralize.readCMPData(config,utils.bind(function(e,i,n){var r,a,o,s,l,c,p;this.cmpAvailability=e,this.gdprApplies=i,this.consentString=n,this.setupThumbsCommunication(),o=this.wrapper.elem.offsetWidth,s=9*o/16,l={},viralize.registerOnSafeFrameApi(o,s),r=viralize.evaluatePlayerPosition(this.playerWrapper.elem,this.detectedPlatform),a={page_id:viralize.__VR.pageId||viralize.createPageId(config),screen:utils.getScreenSize(wnd),page:utils.getPageSize(wnd),viewport:utils.getViewportSize(wnd),player_size:{width:o,height:s}},r&&(a.player_position=r),l.player_session=JSON.stringify(a),p=utils.getRealDomain(),p&&(l.dd=p),c=config.get("scheme")+"://"+config.get("endpoint_host")+"/api/v2/content/?"+config.get("base_query")+"&cs="+n+"&gdpr="+i+"&cmp="+e+"&"+utils.urlEncode(l),ajax.get(c,function(e){t.contents=JSON.parse(e),t.contents.items&&t.contents.items.length>0?t.setupContainer(t.contents):t.removeInjector(),viralize.sendDmpData(config.get("scheme")+"://"+config.get("endpoint_host"),t.contents.extra.user_data,config.get("dmp_segments"))},function(){t.removeInjector()})},this))},this);var p=config.get("location",["inline"]),u=viralize.searchPlayerLocation([p[0]],t,!1).playerLocation;u?e(u):utils.onDOMContentLoaded(function(){u=viralize.searchPlayerLocation(p,t,!0).playerLocation,e(u)})},i}(),templates={grid:'<!DOCTYPE html>\n<html>\n    <head>\n        {{script}}\n    </head>\n    <body>\n        <div class="grid container">\n            <div class="grid">\n                {{unit}}\n            </div>\n        </div>\n        <script type="text/javascript">\n            {{ecg}}\n            function onPlayerReady (config, injectorPlayerEmitter) {\n                window.injectorPlayerEmitter = injectorPlayerEmitter;\n                var strip = new Strip(config);\n                strip.init();\n            }\n\n            if (window.config && window.injectorPlayerEmitter) {\n                onPlayerReady(window.config, window.injectorPlayerEmitter);\n            } else {\n                window.onPlayerReady = onPlayerReady;\n            }\n        </script>\n    </body>\n</html>\n',strip:'<div id="vr-{{namespace}}-wrapper">\n    <div id="vr-{{namespace}}-strip">\n        <div id="vr-{{namespace}}-inner">\n            <div id="vr-{{namespace}}-placeholder"></div>\n            <div id="vr-{{namespace}}-player-wrapper">\n                <div id="vr-{{namespace}}-close-button"></div>\n                <div id="vr-{{namespace}}-background"></div>\n                <div id="vr-{{namespace}}-spinner"></div>\n            </div>\n        </div>\n    </div>\n    <div id="vr-{{namespace}}-disclaimer">\n        <span id="vr-{{namespace}}-disclaimer-text">Powered by </span>\n        <a href="//www.viralize.com" target="_blank" rel="nofollow">\n            <img id="vr-{{namespace}}-disclaimer-logo" src="data:image/png;base64,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">\n        </a>\n    </div>\n</div>\n',
unit:'<div class="unit">\n    <div class="countdown"></div>\n    <div class="bar-container">\n      <div id="bar-1" class="bar"></div>\n      <div id="bar-2" class="bar"></div>\n      <div id="bar-3" class="bar"></div>\n    </div>\n    <div class="thumb">\n        <div class="play-button"></div>\n        <img>\n    </div>\n    <div class="title-wrapper">\n        <div class="title"></div>\n    </div>\n</div>\n',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()}(Strip);
        })({"custom_style": "", "vip_size": "large", "location": ["inline"], "container_url": "https://static.viralize.tv/viralize_strip.min.f4a54cc2.js", "activation": "adfill", "experiment": null, "device_type": "D", "width": null, "plugins": [{"id": "1", "content": "<img src=\"//ads.stickyadstv.com/auto-user-sync\" style=\"display:none;\" width=\"1\" height=\"1\">"}], "publisher": "4744", "dmp_segments": "", "page_url": "https://www.amusingplanet.com/2014/11/the-trans-amazonian-highway-ecological.html", "is_preview": false, "vip_mode": "no", "zid": "AADQMj9YXdQb7Pz_", "sid": "01ea1d1535beea487d66c36d6b55b351", "player": {"script": "https://static.viralize.tv/viralize_player.min.959090ab.js", "mobi": false}, "format_family": "strip_hover", "country": "US", "activation_hover_delay": 1, "endpoint_host": "ads.viralize.tv", "fallback_body": "", "max_family_instances": 0, "enable_branding": true, "strip_thumb_numbers": 5, "enable_fc_ignore": false, "close_delay": 0, "pub_platform": null, "sentry": {"dsn": "https://1aec9d790bc84140bb25fdb76f019171@sentry.viralize.com/6", "sample_rate": 0.05}, "scheme": "https", "capping_count": 0, "height": null, "is_test": false, "vip_positions": ["desktop-bottom-right", "mobile-portrait-bottom", "mobile-landscape-bottom-right"], "capping_interval": 0, "gdpr": null, "base_query": "zid=AADQMj9YXdQb7Pz_&sid=01ea1d1535beea487d66c36d6b55b351&activation=adfill&u=https%3A%2F%2Fwww.amusingplanet.com%2F2014%2F11%2Fthe-trans-amazonian-highway-ecological.html&ahd=1&dp1=0.15&dp3=1"});
        