var __IntegralASDiagnosticCall = function(){};
try {
var __IntegralASConfig = {
jsDoSplit : "false",
cocaPuffsPath : "",
debug : "false",
killPhrases : "",
jsDiag:'false',
version:'0',
mtCell: 10,
mtSample: 5,
trackMouse : "true",
exchList:{'e1':'nqzryq','e2':'tbbtyrnqf.t.qbhoyrpyvpx','e3':'ehovpbacebwrpg','e4':'chozngvp','e5':'bcrak','e6':'nqoevgr.pbz','e7':'tynz.pbz','e8':'lvryqznantre.pbz','e9':'yvwvg','e10':'nqakf','p11':'ghea.pbz','p12':'zngugnt','p13':'vaivgrzrqvn','p14':'qngnkh','n15':'zrqvn6qrterrf','n16':'dhnagfreir','n17':'esvuho.arg','a18':'napubeserr','a19':'eff2frnepu','a20':'mgfgngvp.pbz','n21':'ovq.npr.nqiregvfvat','e22':'wnfba','v23':'fcbgkpqa','v24':'ogeyy','v25':'yvirenvy','v26':'nqncgi','v27':'nqnc.gi','n29':'qbzqrk.pbz','n30':'ernyih.arg','d31':'cvengronl','d32':'cebklonl','d33':'onlcebkl','d34':'cvengrcebkl','d35':'cebklcvengr','d36':'onlcvengr','n37':'tjnyyrg','p39':'j55p.arg','p40':'c0l.pa','p41':'vcvalbh.pbz','p42':'c0lwferaqre'},
killFlash: 'true',
sp_cdnDomain:'cdn.adsafeprotected.com',
sp_cdnScripts:{sca: "cdn.adsafeprotected.com/sca.17.2.2.js"},
protocol:'http',
jsref : "http:\/\/www.itworld.com\/article\/3182140\/data-storage\/cw-50-the-data-storage-industry-comes-into-its-own.html?idg_eid=364a52d5b929c3efd5fea28ebf84c7fc&email_SHA1_lc=711153b5e987f01875bda29a9514e99431ac2a0a&cid=itw_nlt_itworld_today_2017-04-04&utm_source=Sailthru&utm_medium=email&utm_campaign=ITworld%20Today%202017-04-04&utm_term=itworld_today",
asid : "360d2c25-19d9-11e7-a304-382c4ac63085",
allowViewability : "true",
jsFeatures : "cocoapuffs,viewabilityready,consecutive,cachebust:0,forcecocoa:0,rattie,exch,recordalternate:0,usedtdomain,nextcocoa:100,bapiDiag,cookie,postDts:0,videotwoseconds,getPl,decodePl,resolution,usetpl,tpiLookupURL,hundredpct,jloadDiag:0,blur:0,sendclogs,zeroPing,idMap,offscreen,everySecond:1,sdkdetection,moreAdTalkCalls,slid,fm2:1,largeAd,nextcocoaie:100,usevh,fxdet,mmsb:0,bigmon:0,chromeNativeIO:100,oddet:100,ios:0,ancestor:100,avmm:100,avgrn:100,useScreenLocationInfoAdaptor:100,swapids:100,pIntervals:10,firewall_cdn_domain,forceid:0,usesca:10,bustediframe:100,impFailSafe:100,yieldmo:100,displayCustomView:0,sfdetect,pmdetect:100,novidnodeerr:5,diagnosticCM:0,viewabilityOptimization:100,usehaps:100,useAvidGeometricMeasurement:100,customMetric:100",
adsafeDomain : "adsafeprotected.com:80",
minimizeCalls : "false",
adWidth : "",
adHeight : "",
forceAppend : "true",
sp_imp_maxLength: 6000,
sp_imp_jsInfo_minLength: 200,
_onInViewMRC15 : __IntegralASConfig && __IntegralASConfig.onInViewMRC15,
_onAPIResult : __IntegralASConfig && __IntegralASConfig.onAPIResult,
_onMeasurable : __IntegralASConfig && __IntegralASConfig.onMeasurable,
_onSuspicious : __IntegralASConfig && __IntegralASConfig.onSuspicious,
_onInViewMRC : __IntegralASConfig && __IntegralASConfig.onInViewMRC,
_onInViewFull : __IntegralASConfig && __IntegralASConfig.onInViewFull,
_onInViewMRC5 : __IntegralASConfig && __IntegralASConfig.onInViewMRC5,
reqquery : "anId=8879&campId=1x1&pubId=13374656&chanId=22306136&placementId=1042448576",
mode : "jload",
requrl : "http:\/\/pixel.adsafeprotected.com\/mon",
dtBaseURL: "http:\/\/dt.adsafeprotected.com\/dt?anId=8879",
adsafeSrc : "",
tpiLookupURL:"",
getTpl: "false",
use100v: true,
useBapiCallback: "",
useViewabilityNotification: "",
scriptUrl : "http://pixel.adsafeprotected.com/jload?anId=8879&campId=1x1&pubId=13374656&chanId=22306136&placementId=1042448576",
accountForSadImps:'',
sendCookie:'false',
cookieBaseURL:'sc.iasds01.com/dtc?anId=8879&pubId=13374656',
fwMonitoring:'',
doNothing: false,
mn: "app31ami",
mobOrTab: false,
mobFwUrl : "http://mobile.adsafeprotected.com/external/monitoring/app/initial/8879/",
anId : '8879',
advEntityId : '',
pubEntityId : '',
videoId : '',
customViewability: [{ "id":"publ1", "tiv": 1, "minunit":1, "thresholds": [{"piv":100, "ub":242499}, {"piv":30, "lb":242500}], "mediaTypes":["display"], "distributionChannels":["web","app"] }, { "id":"publ2", "tiv": 2, "minunit":2, "thresholds": [{"piv":100, "ub": 242499}, {"piv":50, "lb": 242500}], "mediaTypes":["video"], "distributionChannels":["web","app"] }]
};
if (__IntegralASConfig.jsFeatures.indexOf('asidJsDiagnostic') !== -1) {
var fakeErr = { message: __IntegralASConfig.asid };
__IntegralASDiagnosticCall('asid', fakeErr);
}
__IntegralASConfig.birthdate = new Date().getTime();
__IntegralASConfig.useFIF = (!!window.__IntegralASUseFIF) && __IntegralASConfig.mode === 'jload';
__IntegralASConfig.contextNode = (function() {
if (__IntegralASConfig.useFIF) {
return window.frameElement; // Early exit if using FIF
}
var tempScript,
embedded = window != top,
scripts = document.getElementsByTagName('script'),
result = scripts[scripts.length - 1],
scriptIndex = scripts.length,
useDocWrite = 'jss,jsi,jspix'.indexOf(__IntegralASConfig.mode) !== -1,
scriptUrl = __IntegralASConfig.scriptUrl;
try {
while (--scriptIndex >= 0) {
tempScript = scripts[scriptIndex];
if (tempScript.src && tempScript.src.indexOf(scriptUrl) === 0 && tempScript.getAttribute('data-ias-script-tag') === null) {
result = tempScript;
tempScript.setAttribute('data-ias-script-tag', 'found');
break;
}
}
if (scriptIndex === 0 && useDocWrite && !embedded) {
document.write('');
result = document.getElementById('s' + __IntegralASConfig.asid).parentNode;
}
} catch(e) { }
return result;
}());
} catch(err) {
__IntegralASConfig = {};
__IntegralASDiagnosticCall('bootstrapper', err);
}
__IntegralASConfig.initialize=function(r,w,z){var l,Nb=function(){I.startSystem();l=I.getAggregator();var k;l.provide("mobileApp",function(){return k=k||new qa(a)});l.provide("context",v);var a=l.provide("features",ra()),b=sa(),c=l.provide("ids",ta()),d=new ua(l),f=Y(),h=va(b,f),f=function(){var b=l.request("mobileApp"),d=l.request("context"),f=b.isSafeToInjectMraid(),m=new wa(p.getWindow(),new D),f=new xa(p.getWindow(),f,b.isMobileAppEnvironment()),h=new Z(m,new D),n=new ya(p.getWindow(),new D),
q=new za(p.getWindow(),c),t=new Aa(p.getWindow(),q,r.mode),k=new Z(n,new D),e=new Ba(p.getWindow(),new D),u=new Ca(p.getWindow(),q,r.mode),n=new $(n,e,new D),g=new Da(p.getWindow(),new D),d=new Ea(p.getWindow(),d),m=new $(m,g,new D),g=new Fa(p.getWindow(),new D),y=new Ga,A=new Ha,E=new Ia(new aa,p.getWindow(),new D),F=new Ja(p.getWindow(),new D),A=(y=(new ba([{environment:y,measurementStrategy:F},{environment:A,measurementStrategy:E}])).resolve())?y.measurementStrategy:{},E=new Ka(new La),y=new Ma(g,
A,new D,E),e=new Na(g,A,e,new D,E),q=q.accepts()&&q.supportsAdContainerGeometry(),q=a.on("useAvidGeometricMeasurement")&&q,f=(new ba(q?[{environment:t,measurementStrategy:y},{environment:u,measurementStrategy:e},{environment:d,measurementStrategy:m},{environment:f,measurementStrategy:h}]:[{environment:t,measurementStrategy:k},{environment:u,measurementStrategy:n},{environment:d,measurementStrategy:m},{environment:f,measurementStrategy:h}])).resolve(),h=new Oa(f,q);return new Pa(f,h,b.isMobileAppEnvironment())}();
a.on("swapids")&&(r.oid=r.asid,r.asid=c.unq);var m,q,n=Qa(),t=Ra(),u=Sa(a),y=Ta(),E=Ua(l),A=l.provide("mPage",Va()),F=Wa(),N=Xa(F,p),B=Ya(),C=l.provide("browser",Za()),ca=l.provide("intersectionWatcher",$a(p.getDoc().body));l.provide("ieXDomainViewability",ab(C));l.provide("iframe",bb(C));var R=cb(C),s=l.provide("video",!v.isVideo()||v.isAvid()||v.isInMobiMraidVideo()?{}:db(r.videoId,a,B));eb(fb.build());var w=gb(b,R,a),K=hb(w,b,A),O=ib(E),x=jb(w,b,a,c,d,C,B,y),y=kb(),z=lb(b,a,l,E),w=mb(h,x,b,c,d),
h=nb(h,x),z=ob(z,a,f.isImmediate()),T=l.provide("viewability",pb(new D,f,C,x,b,a,R,l,c,d,O,A,K,B,s)),G=function(){var b=new qb(a,v),c=new rb(a,v),d=(new sb(r,v,a)).resolve(),f=[b],m=[];c.applies()&&f.push(c);e(d).each(function(a,b){f.push(new tb(b,v));m.push(b.id)});0k,d="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),f=[];k=c?-k:k;do b=k%a,f.push(d[b]),k=(k-b)/a;while(0=g.MRC_LARGE_AD_SIZE;d()});l.on("impressionsent",function(){a=!0;d()});c.onHiddenChange(d)},Ta=function(){var k=[],a={},b={percentInView:"piv",sl:"vs",reason:"r",width:"w",height:"h"};l.on("newScreenEvent",function(c){c=e(c).selectProperties(e(b).keys());c=e(c).asStrings();var d=e(c).compareTo(a);d&&(d.t=
v.getTagTime(),k.push(d));e(a).mixin(c)});return{toString:function(){return e(k).toION(b)}}},Ob=function(k,a,b,c,d,f,h){var m;(function(){var f=b.getRounded(),n=f.width-5,e=f.height-5,u=0.5*f.width+1,f=0.5*f.height+1;m=[new k(a,n,e,d,h,c),new k(a,n,5,d,h,c),new k(a,5,e,d,h,c),new k(a,5,5,d,h,c),new k(a,u,f,d,h,c)]})();return{getNumInView:function(){var a=[],b=0;e(m).each(function(b,c){var d=c.isInView()?1:0;a.push(d)});f.addItem({output:a.join(".")},"pvs");e(a).each(function(a,c){b+=c});return b},
getPctInView:function(a){return 5===a?100:3<=a?51:0},isReady:function(){var a=!0;e(m).each(function(b,c){c.isNotReadyToReport()&&(a=!1)});return a},remove:function(){e(m).each(function(a,b){try{b.remove()}catch(c){}})}}},Pb=function(k,a,b,c,d,f,h,m){var q=new k(X,z.body,a,c,d,h,m),n,t,u=0;b=b||e.noop;n=setInterval(function(){q.isReady()&&!t?(t=!0,b(),clearInterval(n)):(5===++u||t)&&clearInterval(n)},50);return{checkViewable:function(){var a=q.isReady(),c=q.getNumInView(),c=q.getPctInView(c),d=f.calcInitialViewState(c,
!0);a&&!t&&(t=!0,b());return{str:a?d:g.NA,pct:a?c:-1}},removePixels:function(){q.remove()}}},Sb=function(k,a,b,c,d,f){var h,m,q=a.getRounded(),n=[],t=!1,u=0,y=c.on("largeAd")&&a.isMrcLarge()&&!v.isVideo()?Qb(q):Rb(q),l=function(){var a;if(!t)for(t=!0,a=0;a=f?g.IN_VIEW:g.OUT_OF_VIEW);d&&!m&&(m=!0,b());return{str:d?f:g.NA,pct:d?A():-1}},removePixels:function(){e(n).each(function(a,b){try{b.remove()}catch(c){}})}}},U=function(){var k=new Tb,a=new D;return e(k).mixin(a)},D=function(){var k={},a=function(a,c,d){k[a]=k[a]||new S;
k[a].push(c,d)};return{on:function(b,c){c?a(b,c):e(b).each(a)},once:function(b,c){a(b,c,1)},trigger:function(a){var c,d=e(arguments).toArray();if(c=k[a])d.shift(),c.run.apply({},d)}}},Jb=function(){var k={},a={ox:0},b=p.getWindow(),c=e.isDef(b.JSON)&&e.isDef(b.postMessage),d=function(b){var c=b.uniqueId;b=a[b.vendorKey];var d=!1;e.isDef(b)&&1>b&&c&&!k[c]&&(d=!0);return d},f=function(a,b){if(b)return b.type="receipt",b},h=function(b,c,d){a[c.vendorKey]++;d();k[c.uniqueId]=!0;m(c)&&(d="false"===c.isSampling,
b=["ext",c.vendorKey,c.dataKey].join("_"),d={encode:!0,minDt:d,type:d?g.DT_CODES.EXTERNAL:g.DT_CODES.UNLOAD},l.trigger("addOutputItem",{output:c.dataValue},b,d),l.trigger("addOutputItem",{output:c.vendorKey},"ext_vendor",d),"false"===c.isSampling&&l.trigger("sendMinDt",g.DT_CODES.EXTERNAL))},m=function(a){var b=function(a){return e.isStr(a)&&100>a.length};return b(a.vendorKey)&&b(a.dataKey)&&b(a.dataValue)};return{isApplicable:function(){return c},start:function(){(new ha).listen(d,h,f)}}},Q=function(e,
a,b,c){var d=l.request("browser");if(l.request("features").bootstrapOn("killFlash"))return{style:{},isPlaceholder:!0};var f=function(a,b){return''};return function(){var h,m,q,n=r.dtBaseURL,t=r.cocaPuffsPath,n=new J(n);n.sub(a||"static");n.master(n.master().split(":")[0]);n.path("");t&&(n.master(t),n.sub(""));n+=e;t=f("allowscriptaccess","always");h=f("movie",n)+f("play","true")+f("loop","true");q=d.browserIs(g.BROWSERS.IE)||d.browserIs(g.BROWSERS.MSEDGE);m=d.browserIs(g.BROWSERS.IE);
q&&(q=c?"window":"transparent",h+=f("wmode",q));b&&(t+=f("FlashVars",b));m?(m=z.createElement("div"),q="blag"+r.birthdate+p.random(),m.innerHTML="",h=m.firstChild):(h=z.createElement("object"),h.data=n,h.type=g.FLASH_MIME,h.innerHTML=t);n=h;n.style.position="absolute";n.style.width="1px";n.style.opacity="0";n.style.height="0px";return h}()},X=function(k,
a,b,c,d,f,h,m){var q=f.browserIs(g.BROWSERS.IE)||f.browserIs(g.BROWSERS.MSEDGE),n="_IASflashPixelCallback"+(r.birthdate+""+p.round(1E6*p.random())),t=!1,u=!1,y,E,A,F,N=function(){if(y&&e.isFunction(y.jsHandshake)&&!t){y.style.height="1px"===y.style.height?"2px":"1px";try{y.confirmResize()}catch(a){t=!0,l.trigger("error",g.ERROR_CODES.FLASH_API_ACCESS)}}},B=function(){if(t)return!1;var a,b;try{(a=F||y&&e.isFunction(y.jsHandshake))&&!u&&(F=!0,w[n]=v,b=y.jsHandshake(n),u=!0,v(b))}catch(c){a=!1,t=!0,
l.trigger("error",g.ERROR_CODES.FLASH_API_ACCESS)}return a},v=function(a){try{if(e.isUndef(a.isInView))throw"corrupted Flash pixel message received";A=1===+a.isInView}catch(b){l.trigger("error",g.ERROR_CODES.FLASH_API_ACCESS)}},s=function(a,b,c){var d=new Q(q?"/detector_4_5_IE.pix":"/detector_4_5.pix"),f=d.style;d[g.IAS_DETECTOR]="true";f.left=b+"px";f.top=c+"px";d.isPlaceholder||a.appendChild(d);f.height="1px";y=d;q&&!d.isPlaceholder&&setInterval(N,100);return d}(k,a,b);return{isInView:function(){var a;
if(B()){try{a=A}catch(b){F=!1,l.trigger("error",g.ERROR_CODES.COCOA_GONE)}f.browserIs("w")&&void 0!==a&&(y.style.height=E?"1px":"2px",E=!E)}return B()&&a},isNotReadyToReport:function(){return!B()},createdFlash:y,remove:function(){s.parentNode&&s.parentNode.removeChild(s)}}},V=function(){var k=function(a,c,d){var f=c.length,h=s.isWindow(a)?a.frames:s.getChildWindowsOf(a);d&&d(a,c);if(h.length){for(a=0;a=c&&(b.task(),k.shift())},getNextJob:function(){return k[0]}}},ha=function(){var k,a=function(a,c,d,f){var h,m=e.noop,q,
n;if(JSON&&JSON.parse)try{h=JSON.parse(a.data),q=a.source,c(h)&&(f&&(n=f(q,h))&&(m=function(){(new ia(q)).send(function(){return n})}),d(a,h,m))}catch(k){h&&l.trigger("error",g.ERROR_CODES.MESSAGE_LISTENER)}};return{listen:function(b,c,d){k=function(f){a(f,b,c,d)};x.addEvent(w,"message",k)},stop:function(){k&&x.removeEvent(w,"message",k);k=null}}},ia=function(k){var a=function(a){return e(a).mapToObj(function(a,b){var f;e.isFunction(b)||(f={},f[a]=b);return f})};return{send:function(b){if(JSON&&JSON.stringify){var c=
e(k).isObj()?[k]:(new V).getFrames(k);e(c).each(function(c,f){var h;h=e.resolve(b,f)||{};h.sentTime=p.now();h=a(h);f.postMessage(e(h).JSONStringify(),"*")})}}}},Ub=function(k,a){return{onAll:function(b){var c={};e(a).each(function(d,f){k.on(f,function(){c[f]=1;e(c).keys().length===a.length&&(c={},b())})})}}},ua=function(k){var a=0,b={},c=function(b,c,d){if(e.isUndef(b.output))throw Error("item with id "+c+' must have "output" method');this.item=b;this.id=c||++a;this.props=d||{};this.output=function(){var a=
e.resolve(b.output);this.props.asION&&(a=e(a).toION());return a}},d=function(a){var c,d,f=[];for(c in b)b.hasOwnProperty(c)&&(d=a(c,b[c]))&&f.push(d);return f},f=function(a,d,f){f=f||d;f="string"!==typeof f?f:{};var n=function(a,d,f){a=new c(a,d,f);b[a.id]=a};e(a.output).isObj()&&!f.asION?e(a.output).each(function(a,b){n({output:b},a,f)}):n(a,d,f)};k.on("addOutputItem",function(a,b,c){f(a,b,c)});return{addItem:f,filterOutput:function(a,b){return d(function(c,d){var f=d.props,k;a(f)&&(k=d.output(),
f.encode&&(c=encodeURIComponent(c),k=encodeURIComponent(k)),e.isFunction(b)?b(c,k):b[c]=k)})},iterate:d,cleanup:function(){d(function(a,c){c.props.flagForRemoval&&delete b[a]})},getItem:function(a){return b[a]}}},Qb=function(k){var a=k.width-5,b=k.height-5,c=0.5*k.width+1,d=0.5*k.height+1,f=0.3*k.width+1,h=0.7*k.width+1,m=0.3*k.height+1,q=0.7*k.height+2,n,e=function(a,b){1>a&&(a=1);1>b&&(b=1);a>k.width&&(a=0!==k.width?k.width:1);b>k.height&&(b=0!==k.height?k.height:1);return{x:p.floor(a),y:p.floor(b)}};
n=[e(a,b),e(a,5),e(5,b),e(5,5),e(c,d),e(f,m),e(h,m),e(f,q),e(h,q)];return{get:function(){return n},getPctInView:function(a){var b;0===a?b=0:1===a?b=10:2===a?b=20:5>a?b=30:7>a?b=50:9>a?b=70:9===a&&(b=100);return b}}},Rb=function(e,a){var b=0.5*e.width+1,c;c=[{y:p.floor(0.5*e.height+1),x:p.floor(b)}];return{get:function(){return c},getPctInView:function(a){return 1===a?50:0}}},Tb=function(){var k={},a=function(a,c){k[a]=c};return{request:function(a){var c,d=k[a],f=e(arguments).toArray();f.shift();e.isUndef(d)||
(c=e.isFunction(d)?d.apply({},f):d);return c},provide:function(b,c){c?k[b]=c:e(b).each(a);return c}}},hb=function(k,a,b){return{collect:function(){var a=k.find(),d=a.getOutOfViewReasons(),f=b.isHidden(),h=G(s.calcWinDims()),m=a.getDims();if(!a.hasAd()||!h.hasValidDims()||!m.hasValidDims())return{viewState:g.NA,posViewState:g.NA,embedded:v.embedded,winDimensions:h,adDimensions:m};!0===f&&d.push(g.OUT_OF_VIEW_REASONS.FOCUS);return{winDimensions:h,adDimensions:m,containerDimensions:a.getContainerDims(),
method:a.getDetectionMethod(),viewState:d.length?g.OUT_OF_VIEW:a.getViewState(),percentInView:a.getPercentInView(),reason:d.join("."),obstructed:e.stringifyTriState(a.isObstructed()),isHidden:e.stringifyTriState(a.isHidden()),tabHidden:e.stringifyTriState(f),posViewState:a.getViewState(),adCompCount:a.getComponentCount()}}}},Vb=function(k){k=k||e.identity;var a=[],b=p.now(),c=function(){var c=p.now();a.length&&(a[a.length-1].duration+=c-b,b=c)};return{clear:function(){c();a=[]},fastForward:c,get:function(){return a},
hasAlwaysBeen:function(b){return 1===a.length&&a[0].state===b},addState:function(b){var f=a[a.length-1];b=k(b);c();0!==a.length&&b===f.state||a.push({state:b,duration:0})}}},ja=function(e,a){var b=e||1,c=0,d=0,f,h=0;return{start:function(){0===c%b&&(f=p.now())},stop:function(){var m=f||a;0===c%b&&(h+=p.now()-m,d++);c++},getTime:function(){return h},getCount:function(){return d}}},ka=function(){var k,a=0,b=0,c=new D(!0),d=function(){k&&(a++,c.trigger(a),b>a?p.execAtEndOfThread(d):f())},f=function(){k=
!1;a=0};return{onTick:function(a,d){var f=e.collapseArgsIntoHash(a,d);e(f).each(function(a,c){a=parseInt(a);b=a>b?a:b});c.on(f)},start:function(){k||(k=!0,p.execAtEndOfThread(d))},kill:f,isActive:function(){return k}}},Wb=function(e,a){var b,c=a,d=p.getWindow(),f=function(a){b||(a&&e(),b=d.setInterval(e,c))},h=function(){d.clearInterval(b);b=null};return{start:f,stop:h,updateFrequency:function(a,b){c=a;h();f(b)}}},yb=function(e){var a,b,c=0,d=v.getTagTime(),f=0,h=!1;return{getTotalTime:function(){return f},
stop:function(){c=0;d=v.getTagTime();h=!1},mark:function(){a=h?v.getTagTime()-d:0;c+=a;c>=e&&(b=c-a\x3c/script>'],iframe:[''],img:['']}[a];d=c[0]+b+c[1];"true"===r.forceAppend?"script"!==a?(c=z.createElement("DIV"),c.innerHTML=d,f.appendChild(c.childNodes[0])):(c=z.createElement("SCRIPT"),c.src=b,f.appendChild(c)):z.write(d)},c=function(a,b,c){var d=!c&&x.getXHR2();d?(d.open("POST",a),d.onreadystatechange=function(){4===d.readyState&&200===d.status&&b&&b()},d.send()):(c=s.createImage(),b&&(c.onload=b),c.src=a)},d=function(a,b,c,d){var f=z.createElement("script");c=c||r.contextNode.parentNode;
f.type="text/javascript";f.src=a;b&&(f.onload=b);d&&(f.setAttribute("defer",""),f.setAttribute("async",""));e.isDef(c)&&c.appendChild(f)},f=function(a){e.isFunction(a)?a({iasImpId:r.asid}):a&&"string"===typeof a&&c(a,void 0,!0)},h=function(b,c,f,h){d(a.wrap(b,c,f,h))};l.on({addNode:b,send:c,exec:d,notify:f,jsonp:h});return{addNode:b,send:c,exec:d,notify:f,jsonp:h}},v=function(){var k=w!=top,a=function(){var a;try{a=!!top.document}catch(b){a=!1}return a}(),b=function(){return e.isDef(p.getWindow().mraid)},
c=function(){var a=p.getWindow().inmobi,c=a&&a.IASDocumentVideoBuffer,a=a&&c&&e.isFunction(c.addVideoEventListener);return b()&&!!a},d=function(){return e.isDef(p.getWindow().avid)};return{embedded:k,friendly:a,isFriendlyToParent:function(a){var b;try{b=a.frameElement}catch(c){b=!1}return b},friendlyIframe:k&&a,xDomainIframe:k&&!a,getTagTime:function(){return p.now()-r.birthdate},getPageTime:function(){return e.isDef(w.chrome)&&e.isDef(w.chrome.csi)&&e.isFunction(w.chrome.csi)?p.round(chrome.csi().pageT):
g.NA},isVideo:function(){var a;if(!(a=-1!==r.mode.indexOf("jsvid"))){var b;a=!1;if(d())try{b=p.getWindow().avid.getAvidAdSessionContext(),a=b.mediaType===g.MEDIA_TYPE.VIDEO}catch(m){}a=a||c()}return a},isMobileApp:function(){return e.isDef(w.mraid)},isSpecifiedAd:function(){var a=r._cl_adpath;return a&&e.isStr(a)},isAvid:d,isAvidNative:function(){var a;return d()?(a=p.getWindow().avid.getAvidAdSessionContext().avidAdSessionType,a===g.AVID.AD_SESSION_TYPE.MANAGED_DISPLAY||a===g.AVID.AD_SESSION_TYPE.MANAGED_VIDEO):
!1},isBustedIframe:function(){return void 0!==M()},isMraid:b,isSafeFrame:function(){return e(p.getWindow().$sf).isObj(!1)&&e(p.getWindow().$sf.ext).isObj(!1)},isInMobiMraidVideo:c,isDeviceTypeGroupMobile:function(){return r.mobOrTab}}}(),x={addEvent:function(k,a,b,c){e.isDef(k.addEventListener)?"mouseenter"===a?k.addEventListener("mouseover",x.mouseEnter(b),c):"mouseleave"===a?k.addEventListener("mouseout",x.mouseEnter(b),c):k.addEventListener(a,b,c):e.isDef(k.attachEvent)&&("DOMContentLoaded"===
a&&(a="load"),k.attachEvent("on"+a,b))},removeEvent:function(k,a,b){e.isDef(k.removeEventListener)?("mouseenter"===a?(a="mouseover",b=x.mouseEnter):"mouseleave"===a&&(a="mouseout",b=x.mouseEnter),k.removeEventListener(a,b)):e.isDef(k.detachEvent)&&k.detachEvent("on"+a,b)},mouseEnter:function(e){var a=this;return function(b){var c=b.relatedTarget;this===c||a.isAChildOf(this,c)||e.call(this,b)}},isAChildOf:function(e,a){if(e===a)return!1;for(;a&&a!==e;)a=a.parentNode;return a===e},getStyle:function(e,
a,b){var c="",d=z.defaultView&&z.defaultView.getComputedStyle;b=b||"";d?c=(e=z.defaultView.getComputedStyle(e,b))?e.getPropertyValue(a):c:e.currentStyle&&(a=a.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()}),c=e.currentStyle[a]);return c},getXHR2:function(k,a){var b,c;e.isDef(w.XMLHttpRequest)?(c=new XMLHttpRequest,"withCredentials"in c&&(b=c)):e.isDef(XDomainRequest)&&(b=new XDomainRequest);return b},whenReady:function(k,a){var b=a||(v.xDomainIframe?z:p.getTop().document),c=function(a){var c=
setInterval(function(){b.body&&(clearInterval(c),a())},50)},d=this;(function(a){var h=function(){a(!0)};e.isFunction(z.addEventListener)?"complete"==b.readyState||"loaded"==b.readyState||"interactive"==b.readyState?p.execAtEndOfThread(h):d.addEvent(b,"DOMContentLoaded",h,!1):c(a)})(k)},isSandboxed:function(e){var a,b=p.getWindow(),c=!1;if("sandbox"in p.getDoc().createElement("iframe")){try{a=b.frameElement}catch(d){}if(a)e=a.hasAttribute("sandbox");else{a=!1;b=p.getDoc();if(e.browserIs(g.BROWSERS.CHROME))try{b.domain=
"hol@#3+~"}catch(f){/Assignment is forbidden for sandboxed iframes/.test(f.message)&&(a=!0)}e=a}c=e}return c},styleElement:function(k,a){if(k&&e(k.style).isObj()&&e(a).isObj()){var b="";e(a).each(function(a,d){b+=a+": "+d+" !important;"});k.style.cssText=b}},nodeIsAbsolutelyPositioned:function(e){return"absolute"===x.getStyle(e,"position")||e.style&&"absolute"===e.style.position}},jb=function(k,a,b,c,d,f,h,m){var q=0,n=0,t=!1,u,y={},E=[g.DT_CODES.ADTALK],A=function(a,f,m,k,u,A){m=m||!b.on("postDts");
var E=a===g.DT_CODES.VH||a===g.DT_CODES.DIAGNOSTIC||a===g.DT_CODES.ADTALK||a===g.DT_CODES.SCA||a===g.DT_CODES.EXTERNAL;if(c.impressionIsIdentifiable()&&(E||"n"!==h.getCurrentLoc()))try{var F=r.dtBaseURL,s=new J(F,!0),v=p.now(),N=y[a];l.trigger("preSendDt",a);F||(s.path("dt"),b.on("usedtdomain")&&s.sub("dt"));B(s,a,f);u&&u.field&&s.setParam(u.field,u.value);k||C(s,a);l.trigger("send",s,function(){n+=1;q=p.now()-v;e.isFunction(A)&&A()},m);a===g.DT_CODES.UNLOAD&&(t=!0);y[a]=e.isDef(N)?N+1:1;d.cleanup()}catch(w){__IntegralASDiagnosticCall("dt-"+
a,w),l.trigger("error",g.ERROR_CODES.PHONE_HOME)}};k=function(){t||A(g.DT_CODES.UNLOAD,-1,!0)};var F=function(a,c){var d={bapi:"a",bapiClient:"b",jload:"c",jss:"d",jsi:"e"},f=r.mode,d=d[a]||d[f];b.on(c||f+"Diag")&&d&&A(g.DT_CODES.DIAGNOSTIC,-5,!0,!0,{field:"bkp",value:d})},s=function(a){var b;a===g.DT_CODES.UNLOAD?b=-1:a===g.DT_CODES.ADTALK?b=-2:a===g.DT_CODES.VIEWABILITY_READY?b=-3:a===g.DT_CODES.VIDEO_EVENTS?b=-4:a===g.DT_CODES.DIAGNOSTIC?b=-5:a===g.DT_CODES.THIRD_PARTY?b=-6:a===g.DT_CODES.QUARTILE_FULLY_INVIEW?
b=-7:a===g.DT_CODES.LARGE_BILLABLE?b=-8:a===g.DT_CODES.AVIREEN?b=-9:a===g.DT_CODES.SCA&&(b=-10);var c=y[a];e.isDef(c)&&-1!==E.indexOf(a)&&0!==c&&(b=b+"."+c);return b},B=function(a,b,f){f=e.isDef(f)?f:s(b);a.setParam("asId",r.asid);f={c:c.getCacheBustId(),pingTime:f,time:v.getTagTime(),type:b};d.filterOutput(function(a){var c=a.minDt&&(!a.type||a.type===b);c&&a.oneTime&&(a.flagForRemoval=!0);return c},f);a.setParam("tv",f)},C=function(c,e){var k,t={};d.filterOutput(function(a){return a.standalone&&
!a.minDt&&a.type===e},function(a,b){c.setParam(a,b.replace("%3A",":"))});h.fastForward();if(e===g.DT_CODES.VIDEO_EVENTS||v.isVideo()&&e===g.DT_CODES.CUSTOM)if(k=l.request("videoEventsString"))t.ve=k;if(e===g.DT_CODES.CUSTOM||e===g.DT_CODES.UNLOAD||e===g.DT_CODES.VIDEO_EVENTS)t.clog=m;e===g.DT_CODES.UNLOAD&&(t.ndt=n);-1!==r.mode.indexOf("jsvid")&&(t.vv=l.request("videoVersion"));t.NULL1=b.output();t.NULL2=h.stringify(10);t.em=v.embedded;t.fr=v.friendly;t.uf=u.useFlash()?1:0;t.e=a.toString();t.tt=r.mode;
t.dtt=q;d.filterOutput(function(a){var b=!a.standalone&&!a.minDt&&(!a.type||a.type===e);b&&a.oneTime&&(a.flagForRemoval=!0);return b},t);c.setParam("tv",t);c.setParam("br",f.getBrowserType())};l.on({sendDt:function(a,b,c){A(a,e.resolve(b),void 0,void 0,void 0,c)},sendMinDt:function(a,b){A(a,b,void 0,!0)},sendDiag:F,updateDtCount:function(){n++},unload:k});return{send:A,unload:k,diagnostic:F,setViewabilityMod:function(a){u=a}}},G=function(k){var a={},b=!1,c=function(){var b={};e(a).each(function(a,
c){b[a]=p.round(c)});return b},d=function(){return p.round(a.width)*p.round(a.height)};(function(){var b;k!==w.parent&&(1!==k.nodeType?a=k:e.isDef(k.getBoundingClientRect)&&(b=s.getRect(k),e(a).mixin({x:e.useIfDef(b.x)||b.scrX,y:e.useIfDef(b.y)||b.scrY,scrX:b.scrX,scrY:b.scrY,width:b.width,height:b.height})))})();return{hasValidDims:function(){var b,c=e(a).find(function(a,c){b=!0;return isNaN(c)});return e.isDef(b)&&e.isUndef(c)},toString:function(){var a=c();return[a.scrX,a.scrY,a.width,a.height].join(".")},
getRounded:c,set:function(b,c){a[b]=c},isHidden:function(){var a=1===k.nodeType?s.nodeIsHidden(k):0===k.width||0===k.height;return b?!1:a},treatAsPlaceholder:function(){b=!0},area:d,isMrcLarge:function(){return d()>=g.MRC_LARGE_AD_SIZE}}},s={nodeIsHidden:function(e){var a=this.getRect(e),b=0!==parseInt(x.getStyle(e,"width"))&&0===a.width,a=0===a.width||0===a.height;e="hidden"===x.getStyle(e,"visibility");return b||a||e},calcWinDims:function(){var e,a,b;try{a=s.windowPosition(),b=s.windowSize(),e=
{scrX:p.round(a.scrX),scrY:p.round(a.scrY),width:p.round(b.width),height:p.round(b.height)}}catch(c){l.trigger("error",g.ERROR_CODES.GET_WIN_DIMENSIONS),e={}}return e},windowSize:function(){var k={},a,b;if(v.friendly)if(a=top.document,b=a.documentElement,a=a.getElementsByTagName("body")[0],e.isDef(top.innerWidth))k.width=top.innerWidth,k.height=top.innerHeight;else if(e.isDef(b.clientWidth))k.width=b.clientWidth,k.height=b.clientHeight;else if(e.isDef(a.clientWidth))k.width=a.clientWidth,k.height=
a.clientHeight;else throw k.width=k.height=0,"";else e.isDef(w.outerWidth)&&(k.width=w.outerWidth,k.height=w.outerHeight);return k},windowPosition:function(){var k=0,a=0;e.isDef(w.screenX)?(k=w.screenX,a=w.screenY):e.isDef(w.screenLeft)&&(k=w.screenLeft,a=w.screenTop);return{scrX:k,scrY:a}},getNodeArea:function(e){var a=-1;e&&(e=s.getRect(e),a=e.width*e.height);return a},getRect:function(k){var a={},b=s.windowPosition();k=k.getBoundingClientRect();e.isUndef(k.x)&&(a.x=k.left,a.y=k.top);e.isUndef(k.width)&&
(a.width=k.right-k.left,a.height=k.bottom-k.top);e(a).mixin(k,!0);a.scrX=b.scrX+a.x;a.scrY=b.scrY+a.y;return a},getIeDimObj:function(){return z.documentElement&&e.isDef(z.documentElement.clientWidth)&&z.documentElement||z.body},getPlaceholderSpan:function(){var k=z.createElement("span");e(k.style).mixin({width:"0px",height:"0px",display:"block",overflow:"hidden",visibiility:"hidden"});k.innerHTML=".";return k},createImage:function(){var k=v.friendly&&p.getTop().Image;return e.isFunction(k)?new k:
new Image},createHiddenIframe:function(e){var a=p.getDoc().createElement("iframe"),b={width:"0px",height:"0px",border:"0",position:"absolute",top:"-10000px",left:"-10000px"};x.styleElement(a,e?{display:"none"}:b);return a},tagNameIs:function(e,a){return e.tagName.toUpperCase()===a.toUpperCase()},getClippedDimensions:function(e,a){var b,c,d,f=1E4,h=1E4;b=x.nodeIsAbsolutelyPositioned(e);d=!s.tagNameIs(e,"OBJECT");if(null!==e.parentNode&&!b&&d&&!s.tagNameIs(a,"BODY")){d=e;do d=d.parentNode,b=!s.tagNameIs(d,
"OBJECT"),c="inline"!==x.getStyle(d,"display"),b&&c&&(b=s.getRect(d),f=b.widthq){g=void 0;if(g=n.parentNode===e)if(g=
void 0,g="DIV"===n.nodeName)if(g=void 0,g=""===n.style.backgroundImage){var l=g=void 0,p=n.childNodes;for(g=0;ga.width&&c>a.height;return b*c>a.width*a.height&&d},getTagName:function(e){return e.tagName.toLowerCase()},getAttribute:function(e,a){return e.getAttribute(a)},attributeMatches:function(e,a,b){e=e&&s.getAttribute(e,a);return b.test(e)},isImageTag:function(e){return e&&e.src&&s.tagNameIs(e,"img")},getDimensionFromStyle:function(k){var a,b=x.getStyle(k,"width");k=x.getStyle(k,"height");b&&k&&(a={width:e.getNum(b),height:e.getNum(k)});return a},getDimensionFromAttributes:function(k){var a,
b=s.getAttribute(k,"width");k=s.getAttribute(k,"height");b&&k&&(a={width:e.getNum(b),height:e.getNum(k)});return a},traverseAndFindFirstMatchingNode:function a(b,c){var d,f,e;if(c(b))f=b;else if(e=b.children)for(d=0;d100*p.random());return a[b]},c={rt:"rattie",cb:"cachebust",th:"tabHiddenDtCall",es:"everySecond",sa:"swapids",sc:"usesca",ha:"usehaps"},d={gm:"use100v",fif:"useFIF"},f=function(){var b,f;b=e(c).mapToObj(function(b,
c){var d={};d[b]=a[c]?1:0;return d});f=e(d).mapToObj(function(a,b){var c={};c[a]=h(b)?1:0;return c});return e(b).mixin(f)},h=function(a){a=r[a];return!0===a||"true"===a||e.isFunction(a)};e(c).each(function(a,c){b(c)});return{on:b,bootstrapOn:h,bootstrapperHas:function(a){a=e.isStr(a)?[a]:a;return e(a).map(function(a,b){if(e.isDef(r[b]))return 1}).length===a.length},getEnabledScriptUrl:function(a){var c=b("use"+a);a=r.sp_cdnScripts&&r.sp_cdnScripts[a];return c&&a},output:function(){return e(f()).toParams()}}},
cb=function(a){var b=g.BROWSERS,c=l.request("intersectionWatcher");return{calcInitialViewState:function(d,f,e){var m={IN_VIEW:65,OUT_OF_VIEW:25,PARTIAL_VIEW:30},q={IN_VIEW:75,OUT_OF_VIEW:25,PARTIAL_VIEW:50},n=g.NA,t=!v.xDomainIframe||c.isStarted()||a.browserIs(b.GECKO)||a.browserIs(b.IE);e=e?m:q;if(t||f)n=d===g.PIV_NA?g.NA:d>=e.IN_VIEW?g.IN_VIEW:d<=e.OUT_OF_VIEW?g.OUT_OF_VIEW:d>=e.PARTIAL_VIEW?g.PARTIAL_VIEW_PLUS:g.PARTIAL_VIEW_MINUS;return n},calcPercentInView:function(a,b,h,m){var q=0,n=a;c.isStarted()?
q=c.getPiv():a.hasValidDims()&&!a.isHidden()&&(e([b,h,m]).each(function(a,b){if(b.hasValidDims()){var c=n.getRounded(),d=b.getRounded(),f=Math.max(c.scrX,d.scrX),e=Math.max(c.scrY,d.scrY),h=Math.min(c.scrX+c.width,d.scrX+d.width),c=Math.min(c.scrY+c.height,d.scrY+d.height),h=h-f,c=c-e;n=G({scrX:f,scrY:e,width:0a.length;)c?(b=new Uint32Array(1),w.crypto.getRandomValues(b),a+=b[0].toString(16)):a+=(16*p.random()|0).toString(16);a=a.slice(0,32)}catch(e){l.trigger("error",g.ERROR_CODES.UID_GENERATION)}return a}());var c=function(){return r.anId};return{getAsid:function(){return r.asid},getAnId:c,getCacheBustId:function(){var a=new Date,b=Date.parse("Jan 1 "+a.getFullYear()),
a=a.getTime()-b;return e.toBase(a,62)},getFwId:function(){return c()||r.advEntityId+"-"+r.pubEntityId},impressionIsIdentifiable:function(a){a&&(b=!0);return b},unq:a}},bb=function(a){var b,c,d=l.request("features"),f=function(){var f,h,q,y,r=p.getMaxNumber();f=p.getMaxNumber();h=p.getWindow();p.getDoc();v.friendly?(f=m(),q=f.left,y=f.top,r=f.width,f=f.height,h=s.windowPosition(),q=h.scrX+q,y=h.scrY+y):d.on("rattie")&&a.browserIs(g.BROWSERS.IE)?(c=c||l.request("ieXDomainViewability"),b=c.determineFramePosition(),
q=b.scrX,y=b.scrY):e.isDef(h.mozInnerScreenX)&&(q=p.round(h.mozInnerScreenX),y=p.round(h.mozInnerScreenY));return{scrX:q,scrY:y,iFrameClippingWidth:r,iFrameClippingHeight:f}},h=function(){var a,b,c=s.getIeDimObj(),d=p.getWindow();e.isDef(d.innerWidth)?(a=d.innerWidth,b=d.innerHeight):c&&e.isDef(c.clientWidth)?(a=c.clientWidth,b=c.clientHeight,0===a&&0")),f;if(f=e.isDef(d)){var h=b.getWindow();f=!1;e.isDef(h.navigator)&&e.isDef(h.navigator.userAgent)&&(h=h.navigator.userAgent.match(/Firefox\/([\.0-9]+)/),null!==
h&&2==h.length&&(h=h[1].split("."),3==parseInt(h[0],10)&&6>=parseInt(h[1],10)&&(3==h.length?13>=parseInt(h[2],10)&&(f=!0):f=!0)))}f&&(a.g=d)}return a},m={};try{m.a=encodeURIComponent(top.location.href)}catch(q){}try{m.b=encodeURIComponent(parent.location.href)}catch(g){}if(v.embedded){try{m.c=encodeURIComponent(parent.document.referrer)}catch(t){}try{m.e=encodeURIComponent(w.document.referrer)}catch(l){}}try{"jsi"!==r.mode&&(m.d=encodeURIComponent(w.location.href))}catch(p){}try{m.f=encodeURIComponent(r.jsref)}catch(E){}try{f=
h(),m.g=encodeURIComponent(f.g||""),m.q=encodeURIComponent(f.q||""),a.isStarted()&&!f.g&&1b.val.length?1:a.val.length=a?90:122)>=(a=a.charCodeAt(0)+13)?a:a-26)})},
stringToFn:function(a){var b,c=w,d=a.split(".");for(a=0;ab&&c("ha1",a);b++};(function(){var b,e;v.embedded&&p.execAtEndOfThread(function(){try{e=r.contextNode.parentNode;var m=b=Yb().getDFPValue(e),q={};q.df=m.type;m.size&&(q.sz=m.size.width+"."+m.size.height);m.tag&&(q.dom=m.tag);c("dfp",q);b.size&&a&&(a.events.on("newState",
d),a.start())}catch(n){l.trigger("error",g.ERROR_CODES.HIDDEN)}})})()},{tier:g.TIERS.PRE_IMPRESSION_FRAUD,applies:function(a,b,c){return a.on("usehaps")}});var Sa=function(a){var b,c,d,f=new U,h=new V,m=new $b(f),q=new ac,g=new bc,t=new cc(f,a),u=function(){e.isUndef(d)&&(d=new dc(f));return d},p=function(){f.provide({frameCollection:function(){return m},adProxy:function(){return g},adTalkMessage:function(a){return new ec(a,f)},adTalkMessageCollection:function(){return q},idMapModule:u,interFrameQuerySelector:function(a){return new fc(a)}})};
return{isApplicable:function(a){return e.isDef(w.JSON)&&e.isDef(w.postMessage)&&!a.isAvid()},start:function(){p();h.traverse(m.addFrame);t.startListening();t.sendToKnownFrames();l.once("stopAdTalk",function(){t.stopListening()})},sendAdTalkCall:t.sendAdTalkCall,getFrameMap:function(){e.isUndef(b)&&(b=new la(f));return b},getFrameMapIncludingPeerCase:function(){e.isUndef(c)&&(c=new la(f,!0));return c},getIdMap:u}},ec=function(a,b){var c,d=b.request("adProxy").myIdCard,f=b.request("frameCollection").getMe().getStringifiedPosition();
c=l.request("features").on("swapids")?r.oid:r.asid;var e=a||{},m=r.asid,d=d.tagId,q=v.embedded,n=v.friendly,t=r.birthdate;c=c.split("-")[2];var u;v.friendly?u="["+g.AD_IDENTIFIER+"-"+r.asid+"]":(u=p.getWindow(),u=u.location&&u.location.href,u='iframe[src*="'+(u&&u.replace(/^https?\:\/\//i,""))+'"]');return{messageContent:e,srcAsid:m,srcTagId:d,srcIsEmbedded:q,srcIsFriendly:n,srcBirthdate:t,iasCommonId:c,nodeSelector:u,positionStr:f,version:"0.1"}},ac=function(){var a={};return{add:function(b,c){var d=
b&&b.srcAsid;d&&!a[d]&&(a[d]=b,d!==r.asid&&e.isFunction(c)&&c(b))},map:function(b){return e(a).map(b)},has:function(b){return a[b]}}},gc=function(a,b,c,d){var f,h=a==w;f={position:b.slice(0),id:b.join("-"),isMe:h,isLeaf:!a.frames.length,adProxies:h?c:[],selfDescription:void 0,unifiedId:r.birthdate,srcIsEmbedded:d?d.srcIsEmbedded:void 0,inbox:d?[d]:[],getDomObj:function(){return a},getStringifiedPosition:function(){return e(f.position).map(function(a,b){return e.toBase(Number(b)+1,36)}).join("")},
isValidForMapping:function(){return f.isLeaf||f.isMe||e.isDef(f.selfDescription)}};var m=function(a){var b=f.adProxies;a=a.adProxies;var c=[];b.length&&a.length?e(a).each(function(a,d){q(b,d)&&c.push(d)}):c=a;f.adProxies=b.concat(c)},q=function(a,b){return!e(a).find(function(a,c){return c.adSafeId&&c.adSafeId===b.adSafeId})},g=function(a){e(f.inbox).find(function(b,c){return c.srcAsid&&c.srcAsid===a.srcAsid})||f.inbox.push(a)};f.addInformationFromSrc=function(a,b){m(b);g(a);f.srcIsEmbedded=a.srcIsEmbedded;
f.selfDescription=b};return f},$b=function(a){var b=[],c={},d={noMe:!0};return{addFrame:function(f,e,m){var g=a.request("adProxy").getAll();f=new gc(f,e,g,m);b.push(f);c[f.id]=f;f.isMe&&(d=f);return f},getFrame:function(a){return c[a]},list:b,dictionary:c,getMe:function(){return d}}},la=function(a,b){var c=function(a,c){var e=c.adProxies,g="";if(c.isValidForMapping()){if(b)g+=d(e,c.getStringifiedPosition());else{var n;n=""+c.getStringifiedPosition();n+=c.isMe?"*":"";n+=e.length?"."+e[0].tagId:"";
g+=n}return g}},d=function(a,b){var c="";return c=a.length?c+e(a).stringify(function(a,c){return b+(r.asid===c.adSafeId?"*":"")+"."+c.tagId},"|"):c+b};return{output:function(){var b=a.request("frameCollection"),d=e(b.list).stringify(c,"|");return e.toBase(b.getMe().unifiedId,62)+"+"+d}}},dc=function(a){var b=a.request("frameCollection").getMe().getStringifiedPosition(),c=r.contextNode.parentNode,d=a.request("interFrameQuerySelector",c),f=function(a){var b=a.length;return 120b.unifiedId&&(a.unifiedId=b.unifiedId)},q=function(a){return p.now()-a.sentTime},n=function(){var c=g.DT_CODES.ADTALK;a.request("frameCollection");
b||(b=!0);l.trigger("sendDt",c)},t=function(a){return e.isUndef(a)||e.isUndef(a.selfDescription)},u=function(c,d,f){var e=!1,h,u,p,r;try{h=a.request("frameCollection"),u=d.messageContent.self,m(h.getMe(),u),d.transferDuration=q(d),p=h.getFrame(u.id),a.request("adTalkMessageCollection").add(d,function(){e=!0}),t(p)||e?(p=p||h.addFrame(c.source,u.id.split("-"),d),p.addInformationFromSrc(d,u),f()):p.addInformationFromSrc(d,u),(r=b&&e&&a.request("idMapModule").isCandidateForMyIdMap(d))&&n()}catch(s){l.trigger("error",
g.ERROR_CODES.ADTALK_DUBIOUS)}};return{sendAdTalkCall:n,sendToKnownFrames:function(){(new ia).send(h)},startListening:function(){c=new ha;c.listen(f,u,h)},stopListening:function(){c&&c.stop()},validateMessage:f,processMessage:u,createMessage:h}},hc=function(){var a=l.request("ids"),b=a.getAsid();return{tagId:a.getFwId(),adSafeId:b}},bc=function(){var a,b=[],c=function(a){a=new hc(a);b.push(a);return a};a=c();return{createNew:c,getAll:function(){return b},myIdCard:a}},ab=function(a){var b,c,d=!1,f=
p.getDoc().documentElement,e=function(a){var f=!0;d&&(d=!1,a.stopPropagation(),a.preventDefault(),b=a.screenX-a.clientX,c=a.screenY-a.clientY,f=!1);return f};a.browserIs(g.BROWSERS.IE)&&x.addEvent(f,"click",e,!0);return{determineFramePosition:function(){a.browserIs(g.BROWSERS.IE)&&(d=!0,f.click());return{scrX:b,scrY:c}}}},$a=function(a){var b=g.NA,c=!1,d=function(a){if(!e.isUndef(a)){var b=p.getDoc().createElement("div");e(b.style).mixin({position:"absolute",width:"100%",opacity:"0",height:"100%",
zIndex:-999,top:"0px",left:"0px"});b[g.IAS_DETECTOR]=!0;a.appendChild(b);return b}};return{getPiv:function(){return b},isApplicable:function(a,b,c){return a.browserIs(g.BROWSERS.CHROME)&&a.hasIntersectionObserver()&&c.xDomainIframe&&b.on("chromeNativeIO")},start:function(){var f=p.getIntersectionObserver(function(a){a=a.pop();b=a.intersectionRect.width*a.intersectionRect.height/(a.boundingClientRect.width*a.boundingClientRect.height)*100},{threshold:[0,0.01,0.25,0.3,0.5,0.75,0.99,1]});p.execAtEndOfThread(function(){b=
0});f.observe(d(a));p.execAtEndOfThread(function(){l.trigger("delayedViewabilityReady")});c=!0},isStarted:function(){return c}}},fa=function(){var a=!1;(function(){x.whenReady(function(){l.trigger("startViewabilityLoop");a=!0})})();return{loopStarted:function(){return a}}};I("loopDelay",[],fa,{applies:function(a,b,c){return a.bootstrapOn("allowViewability")},tier:g.TIERS.VIEWABILITY});var ic=function(){return{start:function(a){l.on("measurable",function(){a()})},isApplicable:function(a,b){return!b.browserIs(g.BROWSERS.WEBKIT)}}},
jc=function(){return{start:function(a){a()},isApplicable:function(a){return a.isImmediatelyMeasurable()}}},Ab=function(a,b,c){var d=!1,f=function(){b.impressionIsIdentifiable()&&!d&&(d=!0,l.trigger("notify",r._onMeasurable))};return{start:function(){var b;b=[kc(),lc(),jc(),ic()];(b=e(b).findFirst(function(b,d){return d.isApplicable(c,a)}))&&b.start(f)},isApplicable:function(a){return a.bootstrapOn("useViewabilityNotification")&&e.isDef(r._onMeasurable)}}},lc=function(){return{start:function(a){Ub(l,
["adImpression","measurable"]).onAll(function(){a()})},isApplicable:function(a,b){return!b.browserIs(g.BROWSERS.WEBKIT)&&v.isVideo()}}},kc=function(){return{start:function(a){l.on("adImpression",function(){a()})},isApplicable:function(a){return a.isImmediatelyMeasurable()&&v.isVideo()}}},Aa=function(a,b,c){var d=["rjss","jss","jload"],f=function(){var a=!1,c=b.getAvidContext();e.isDef(c)&&(a=c.isDeferred);return!a};return{accepts:function(){var a=e.isDef(e(d).find(function(a,b){return b===c}));return b.accepts()&&
b.isMediaType(g.MEDIA_TYPE.DISPLAY)&&a},isImmediate:f,isMediaType:b.isMediaType,start:function(){try{var b=a.avid;f()||b.addEventListener("ready",function(){l.trigger("adImpression")})}catch(c){}}}},za=function(a){var b=function(){var b;try{b=a.avid.getAvidAdSessionContext()}catch(d){}return b};return{accepts:function(){var b=e.isDef(a.avid),d=b;b&&(b=a.avid.getAvidAdSessionContext().partner,(b=e.isDef(b)&&"mopub"===b.toLowerCase())||(b=a.avid.getAvidAdSessionContext(),b=!e.isDef(b.partner)));b&&
(d="jload"===r.mode)&&(d=(d=l.request("ids").getAnId())&&"8260"===d);return d},isMediaType:function(a){var d,f=b();e.isDef(f)&&(d=f.mediaType||g.MEDIA_TYPE.DISPLAY);return a===d},getAvidContext:b,supportsAdContainerGeometry:function(){var a=!1,d=b();e.isDef(d)&&(a=d.avidJsVersion,(d=e.isUndef(a))||(d=e.getNum(a.split(".")[0]),a=e.getNum(a.split(".")[1]),d=2===d?7<=a:3<=d),a=d);return a}}},ya=function(a,b){var c,d=function(a){var d,e,g;try{d=a.eventData.percentageInView,e=c&&75<=d,g={windowDimensions:{x:0,
y:0,width:0,height:0},adDimensions:{x:0,y:0,width:0,height:0},containerDimensions:{x:0,y:0,width:0,height:0},shouldDelegateToDomBasedViewability:e,isMeasurable:0===d||75<=d,isObstructed:!1,isHidden:!1,numberOfAdverts:1,percentageInView:d,detectionMethod:"av"},b.trigger("screenLocationChanged",g)}catch(n){}};return{start:function(){try{var b=a.avid,e=b.getAvidAdSessionContext().avidAdSessionType;c="display"===e||"video"===e;b.addEventListener("viewability",d)}catch(g){}},addScreenLocationChangedListener:function(a){b.on("screenLocationChanged",
a)}}},Ca=function(a,b,c){var d=["rjss","jss","jload"];return{accepts:function(){var a=e.isDef(e(d).find(function(a,b){return b===c}));return b.accepts()&&b.isMediaType(g.MEDIA_TYPE.VIDEO)&&a},isImmediate:function(){return!1},isMediaType:b.isMediaType,start:function(){try{a.avid.addEventListener("video",function(a){"AdImpression"===a.eventSubType&&l.trigger("adImpression")})}catch(b){}}}},Ba=function(a,b){var c=function(a){try{b.trigger("videoPlaybackEvent",{eventType:a.eventSubType,eventData:a.eventData})}catch(c){}};
return{start:function(){try{a.avid.addEventListener("video",c)}catch(b){}},addVideoPlaybackEventListener:function(a){b.on("videoPlaybackEvent",a)}}},Z=function(a,b){var c=!1,d=function(a){var d=a.percentageInView;c=!0;a.viewState=50<=d?g.IN_VIEW:g.OUT_OF_VIEW;a.outOfViewReason=50<=d?"":g.OUT_OF_VIEW_REASONS.GEOM;b.trigger("measurementChanged",a)};return{start:function(){l.trigger("addOutputItem",{output:g.MEDIA_TYPE.DISPLAY_CODE},g.MEDIA_TYPE_CODE,{type:g.IMPRESSION_EVENT});a.addScreenLocationChangedListener(d);
a.start()},getStrategyName:function(){return g.MEASUREMENT_STRATEGY.DISPLAY},addMeasurementChangedListener:function(a){b.on("measurementChanged",a)},isMeasurable:function(){return c}}},Pa=function(a,b,c){var d=e.isDef(a)?a.environment:void 0,f=e.isDef(a)?a.measurementStrategy:void 0,h=function(){return e.isDef(f)};e.isDef(b)&&b.start();return{hasMeasurementStrategy:h,getScreenLocationInfo:function(a){return b.create(a)},isImmediate:function(){return h()?d.isImmediate():!0},isMeasurable:function(){return h()?
f.isMeasurable():!1},isMediaType:function(a){return h()?d.isMediaType(a):!1},start:function(){h()&&d.start()},requiresDelayedViewabilityEvent:function(){h()&&b.requiresDelayedViewabilityEvent()}}},ba=function(a){return{resolve:function(){var b=e(a).findFirst(function(a,b){return b.environment.accepts()});if(e.isDef(b))return b}}},Oa=function(a,b){var c=!1,d,f={winDimensions:G({scrX:0,scrY:0,width:0,height:0}),adDimensions:G({scrX:0,scrY:0,width:0,height:0}),containerDimensions:G({scrX:0,scrY:0,width:0,
height:0}),method:g.NA,viewState:g.NA,percentInView:g.NA,reason:"",obstructed:g.NA,isHidden:g.NA,tabHidden:g.NA,posViewState:g.NA,adCompCount:1},h=function(a){return a?new G({scrX:a.x,scrY:a.y,width:a.width,height:a.height}):G({scrX:0,scrY:0,width:0,height:0})},m=function(a){d={winDimensions:h(a.windowDimensions),adDimensions:h(a.adDimensions),containerDimensions:h(a.containerDimensions),method:a.detectionMethod||g.NA,viewState:a.viewState||g.NA,percentInView:e.isDef(a.percentageInView)?a.percentageInView:
g.NA,reason:a.outOfViewReason||"",obstructed:e.stringifyTriState(a.isObstructed),isHidden:g.NA,tabHidden:g.NA,posViewState:a.viewState||g.NA,adCompCount:1,shouldDelegateToDomBasedViewability:a.shouldDelegateToDomBasedViewability};a.isMeasurable&&c&&(c=!1,l.trigger("delayedViewabilityReady"))};return{create:function(a){var c=f;if(e.isDef(d))if(b)c=d;else if(d.shouldDelegateToDomBasedViewability)c=a,c.method=d.method;else if(0===d.percentInView||75<=d.percentInView)c=d;return c},start:function(){var b;
e.isDef(a)&&e.isDef(a.measurementStrategy)&&(b=a.measurementStrategy,b.addMeasurementChangedListener(m),b.start())},requiresDelayedViewabilityEvent:function(){c=!0}}},$=function(a,b,c){var d=!1,f=!1,h=!1,m,q,n,t,u=function(){if(!e.isUndef(q)){var a=[],b,l;d?(f?(l=!1,b=100):(l=t,b=n),50>b&&a.push(g.OUT_OF_VIEW_REASONS.GEOM)):(l=!1,b=0,a.push(g.OUT_OF_VIEW_REASONS.VIDEO));h=!0;q.shouldDelegateToDomBasedViewability=l;q.percentageInView=b;q.viewState=50>b?g.OUT_OF_VIEW:g.IN_VIEW;q.outOfViewReason=a.join(".");
m=q;c.trigger("measurementChanged",m)}},p=function(a){q=a;n=a.percentageInView;t=a.shouldDelegateToDomBasedViewability;u()},r=function(a){a=a.eventType;"AdEnteredFullscreen"===a?f=!0:"AdExitedFullscreen"===a?f=!1:-1!=="AdStarted|AdVideoStart|AdPlaying".indexOf(a)?d=!0:-1!=="AdSkipped|AdUserClose|AdPaused|AdVideoComplete|AdStopped".indexOf(a)&&(d=!1);u()};return{start:function(){l.trigger("addOutputItem",{output:g.MEDIA_TYPE.VIDEO_CODE},g.MEDIA_TYPE_CODE,{type:g.IMPRESSION_EVENT});a.addScreenLocationChangedListener(p);
a.start();b.addVideoPlaybackEventListener(r);b.start()},getStrategyName:function(){return g.MEASUREMENT_STRATEGY.VIDEO},addMeasurementChangedListener:function(a){c.on("measurementChanged",a)},isMeasurable:function(){return h}}},Ea=function(a,b){return{accepts:function(){return b.isInMobiMraidVideo()},isImmediate:function(){return!1},start:function(){try{var b;a.inmobi.IASDocumentVideoBuffer.addVideoEventListener(function(a){"AdVideoStart"!==a.type||b||(b=!0,l.trigger("adImpression"))})}catch(d){}}}},
Da=function(a,b){var c=function(a){try{b.trigger("inMobiMraidVideoPlaybackEvent",{eventType:a.type})}catch(c){}};return{start:function(){try{a.inmobi.IASDocumentVideoBuffer.addVideoEventListener(c)}catch(b){}},addVideoPlaybackEventListener:function(a){b.on("inMobiMraidVideoPlaybackEvent",a)}}},Fa=function(a,b){var c=function(a){a={viewport:a.eventData.viewport||{width:0,height:0},originalAdContainer:a.eventData.originalAdContainer||{x:0,y:0,width:0,height:0},computedAdContainer:a.eventData.computedAdContainer||
{x:0,y:0,width:0,height:0},percentageInView:a.eventData.percentageInView,detectionMethod:g.DETECTION_METHODS.AVID,outOfViewReason:d(a.eventData.reasons)};b.trigger("containerGeometryMeasurementChanged",a)},d=function(a){var b={inactive:g.OUT_OF_VIEW_REASONS.FOCUS,viewport:g.OUT_OF_VIEW_REASONS.GEOM,clipped:g.OUT_OF_VIEW_REASONS.GEOM,obstructed:g.OUT_OF_VIEW_REASONS.OBSTRUCTION,backgrounded:g.OUT_OF_VIEW_REASONS.FOCUS,notFound:g.OUT_OF_VIEW_REASONS.HIDDEN},c=[];if(!a)return"";e(a).each(function(a,
d){var e=b[d];e&&0>c.indexOf(c)&&c.push(e)});return c.join(".")};return{start:function(){try{a.avid.addEventListener("viewability",c)}catch(b){}},addAdContainerGeometryMeasurementChangedListener:function(a){b.on("containerGeometryMeasurementChanged",a)},translateAvidOutOfViewReasons:d}},Ka=function(a){var b=function(a,b){var c=Math.max(a.x,b.x),d=Math.max(a.y,b.y),e=Math.min(a.x+a.width,b.x+b.width),f=Math.min(a.y+a.height,b.y+b.height),e=e-c,f=f-d;return{x:c,y:d,width:0=d&&l<=g)return!0});c=!r&&s>=c.piv;h&&(c=c&&b.isVideoPlaying);return c},metricId:a.id,minUnit:a.minunit?1E3*a.minunit:1E3}},sb=function(a,b,c){var d=b.isVideo()?"video":"display",f=b.isMobileApp()?"app":"web",h=b.isDeviceTypeGroupMobile()?
"mobile":"desktop",m=e(a.customViewability).isArray()&&0a.percentInView;!d&&e?(h.updateFrequency(1E3),d=!0):d&&!e&&(h.updateFrequency(c.isVideo()?200:100),d=!1)},q=function(){l.trigger("sendDt",g.DT_CODES.VIDEO_EVENTS,void 0,function(){w.postMessage(JSON.stringify({id:r.videoId,msg:"unloadComplete",messageType:"misc"}),"*")})};l.once("startViewabilityLoop",function(){if(l.request("ids").impressionIsIdentifiable()){h=Wb(a.checkScreenLoc,c.isVideo()?
200:100);h.start(!0);if(b.on("viewabilityOptimization"))l.on("newScreenEvent",m);x.addEvent(w,"beforeunload",function(){l.trigger("adSessionComplete")},!1)}});l.once("adSessionComplete",function(){c.isVideo()&&!c.isAvid()&&q();l.trigger("unload");h&&h.stop();a.cleanupPixelGrids();l.trigger("stopAdTalk")})},{tier:g.TIERS.VIEWABILITY});var nc=function(a,b,c,d,f){var h,m,q,n=p.getWindow(),t=p.getDoc(),u=g.AD_IDENTIFIER+"-"+r.asid,y;d=d||b.parentNode||b.parent;var E=function(){if(!h)if(q=q||mc(d,f),h=
q.calcDims(b,d),c===g.DETECTION_METHODS.VIDEO&&v.embedded){var a=h,e=(new G(b)).getRounded();try{a.set("width",e.width),a.set("height",e.height)}catch(m){l.trigger("error",g.ERROR_CODES.VIDEO_IN_IFRAME_DIMS_CALC)}}else c===g.DETECTION_METHODS.AD_PLACEHOLDER&&h.treatAsPlaceholder();return h},A=function(){var b,d,h,n;d=r.mobOrTab;e.isUndef(m)&&(b=!d&&(v.friendly||e.isDef(w.mozInnerScreenX))&&f.on("offscreen"),h=E(),d=new G(s.calcWinDims()),b=new G(b?s.calcMonDims():{}),n=c===g.DETECTION_METHODS.VIDEO&&
v.embedded?l.request("iframe").getClippedDims():new G({}),m=a.calcPercentInView(h,d,b,n));return m},F=function(){return a.calcInitialViewState(A())},D=function(){return b===w?!1:E().isHidden()};(function(){var a=b===n?t.body:b;y=v.friendlyIframe?n.frameElement:a;x.addEvent(a,"click",function(){l.trigger("adComponentClicked")});x.addEvent(a,"mouseover",function(){l.trigger("adComponentMousedOver")})})();return{mark:function(){s.setAttributeOf(y,u,"")},cleanup:function(){s.removeAttributeOf(y,u)},isNode:function(a){return b===
a},isHidden:D,isObstructed:function(){return!1},getDims:E,getPercentInView:A,getLocationState:F,getOnPageViewability:function(){return D()?g.OUT_OF_VIEW:F()},getDetectionMethod:function(){return c},getContainerDims:function(){return G(d)},refresh:function(){m=h=void 0;var a,c=b.parentNode;if(c){for(;b!==w&&c&&c!==z&&!a;)a=c===d,c=c.parentNode;a||(d=b.parentNode)}}}},oc=function(a,b){var c=[],d=function(){return c[0]&&c[0].getDetectionMethod()===g.DETECTION_METHODS.AD_PLACEHOLDER},f=function(e,f,h){var m=
d()||0===c.length;e=nc(a,e,f,h,b);d()&&(h=c.shift(),h.cleanup());c.push(e);m&&e.mark();m&&f!==g.DETECTION_METHODS.AD_PLACEHOLDER&&l.trigger("primaryadfound",e)},h=function(){var a,b=!1,d=0,f=0;e(c).each(function(c,e){var h;h=e.getDims();h.hasValidDims()&&(a=e.getPercentInView(),b=a!==g.NA,h=h.area(),d+=h,f+=a/100*h)});return{totalArea:d,totalInView:f,hasMeasurement:b}},m=function(){var a=h();return a.hasMeasurement?p.round(a.totalInView/a.totalArea*100):g.PIV_NA},q=function(){var c=h().totalArea>=
g.MRC_LARGE_AD_SIZE&&b.on("largeAd")&&!v.isVideo();return a.calcInitialViewState(m(),!1,c)},n=function(a){var b=-1;e(c).each(function(c,d){d.isNode(a)&&(b=c)});return b},t=function(a){return function(){return c[0]&&c[0][a]()}};l.on("adComponentAdded",function(a){e(a).each(function(a,b){-1===n(b)&&f(b,g.DETECTION_METHODS.MUTATION)})});l.on("adComponentRemoved",function(a){e(a).each(function(a,b){var d=n(b);-1a||""===a?b:a};return{send:function(n){try{var p,u=d.baseUrl;p=h.browserIs(g.BROWSERS.IE)?2E3:q(r.sp_imp_maxLength,2E3);var s=u,v=u.length,w,x,z=q(r.sp_imp_jsInfo_minLength,0),B="";try{w=p-v-z,0=e&&d++;a=b;c++},100,f),m=e.debounce(function(){s.contains(f.document,s.getOurNodeInTop())||x.removeEvent(f.document,"mousemove",q)},1E3,f),q=function(){b++;h();m()},n=function(){l.trigger("addOutputItem",{output:{tmm:function(){return b},tma:function(){return c},sma:function(){return d}}},
{type:g.DT_CODES.UNLOAD})};return{start:function(){n();x.addEvent(f.document,"mousemove",q)},isApplicable:function(a){return a.on("mmsb")&&!a.bootstrapOn("mobOrTab")&&!v.xDomainIframe}}},Db=function(){var a={},b=function(b,e){var g;b[e]=function(b,d,e){e&&(a[e]={x:b,y:d},a.ul&&a.lsr&&(g=pa().getOffDesktopResult(a.ul,a.lsr),c(g)))}},c=function(a){try{l.trigger("addOutputItem",{output:a},"od")}catch(b){l.trigger("error",g.ERROR_CODES.OFF_DESKTOP)}};return{isApplicable:function(a,b){var c=a.on("oddet"),
e=b.hasFlashEnabled(),l=b.getBrowserType()===g.BROWSERS.IE,n=b.isOnWin7(),p=b.isIEVersion(8);return!a.bootstrapOn("killFlash")&&c&&e&&l&&n&&!p&&!x.isSandboxed(b)},start:function(){try{Wc().setupPixels(b),setTimeout(function(){a.ul&&a.lsr||c(pa().getOffDesktopResult())},1E4)}catch(d){l.trigger("error",g.ERROR_CODES.OFF_DESKTOP)}}}},pa=function(){var a=function(a){var c=g.NA;return a?{x:a.x-250,y:a.y-188}:{x:c,y:c}};return{getOffDesktopResult:function(b,c){b=a(b);c=a(c);return e({mc:[b.x,b.y,c.x,c.y].join("|")}).toION()}}},
Wc=function(){var a="_postPosition_"+r.asid.replace(/-/g,""),b=function(b){var d=Q("/PixelB.swf","cdn","name="+b+"&jsPostFn="+a,!0);b=Xc[b];d.style.width=b.WIDTH+"px";d.style.height=b.HEIGHT+"px";d.style.position="fixed";d.style.top=b.TOP+"px";d.style.left=b.LEFT+"px";return d};return{setupPixels:function(c){var d=p.getDoc(),d=d.body||d.contentElement,e;e=p.getDoc().createElement("div");e.innerHTML='';
e=e.firstChild;d.appendChild(e);d=e.contentWindow;d.document.open().close();e=d.document.body;var g=b("ul"),l=b("lsr");e.appendChild(g);e.appendChild(l);c(d,a)}}},Sc=function(a){return{hash:function(){for(var b=0,c=a.length,d=[],f;b