var __IntegralASDiagnosticCall = function(){}; try { var __IntegralASConfig = { jsDoSplit : false, cocaPuffsPath : "", debug : "false", killPhrases : "", jsDiag:'false', version:'17.3.45', 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.10.js", main: "static.adsafeprotected.com/main.17.3.45.js"}, protocol:'https', jsref : "http:\/\/www.networkworld.com\/article\/3210745\/storage\/radical-innovation-could-reduce-data-density-by-50.html?idg_eid=364a52d5b929c3efd5fea28ebf84c7fc&email_SHA1_lc=711153b5e987f01875bda29a9514e99431ac2a0a&cid=nww_nlt_networkworld_daily_news_alert_2017-07-26&utm_source=Sailthru&utm_medium=email&utm_campaign=NWW%20Daily%20AM%20Alert%202017-07-26&utm_term=networkworld_daily_news_alert", asid : "f778b8ad-72aa-11e7-b5c0-00259086cc16", 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:0,mmsb:0,bigmon:0,chromeNativeIO:100,oddet:0,ios:100,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,customMetric:100,sizmek,celtra,groupmCM,avidPropertiesInImpression,abcAudit", 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=922561&advId=desktop&pubId=11429&chanId=BTF000INLINE000DISPLAY&placementId=12772&planId=c86fafdadd5cbbf23f4258c0f8dd7350174adff861451c49b3667d211f328b0b&adsafe_par&uId=11429_1653c623d1b23f84892eacdd32d2c9bf", mode : "jload", requrl : "https:\/\/pixel.adsafeprotected.com\/mon", dtBaseURL: "https:\/\/dt.adsafeprotected.com\/dt?anId=922561", adsafeSrc : "", tpiLookupURL:"", getTpl: "false", use100v: false, useBapiCallback: "", useViewabilityNotification: "", scriptUrl : "https:\/\/pixel.adsafeprotected.com\/jload?anId=922561&advId=desktop&pubId=11429&chanId=BTF000INLINE000DISPLAY&placementId=12772&planId=c86fafdadd5cbbf23", accountForSadImps:'', sendCookie:'false', cookieBaseURL:'sc.iasds01.com\/dtc?anId=922561&pubId=11429', fwMonitoring:'', doNothing: false, mn: "app01ami", mobOrTab: false, mobFwUrl : "https://mobile.adsafeprotected.com/external/monitoring/app/initial/922561/", anId : '922561', advEntityId : '', pubEntityId : '', videoId : '', videoChannel : '', 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"] },{ "id":"grpm1", "tiv": 1, "minunit":1, "thresholds": [{"piv":100, "ub": 242499}, {"piv": 50, "lb": 242500}], "mediaTypes":["display"], "deviceGroups":["desktop","mobile"], "distributionChannels":["web","app"], "rts":"_onInViewGroupM" }, { "id":"grpm2", "tiv": "15|50%", "minunit":1, "sound": "on", "soundExcl": "groupm_native", "thresholds": [{"piv":100, "ub": 299999},{"piv":80, "lb": 300000} ], "mediaTypes":["video"], "deviceGroups":["desktop","mobile"], "distributionChannels":["web","app"] },{ "id":"fiv1", "tiv": 1, "minunit":1, "thresholds": [{"piv":100, "lb": 0}], "mediaTypes":["display"], "deviceGroups":["desktop","mobile"], "distributionChannels":["web","app"], "type": "pf" }, { "id":"fiv2", "tiv": 2, "minunit":1, "thresholds": [{"piv":100, "lb": 0}], "mediaTypes":["video"], "deviceGroups":["desktop","mobile"], "distributionChannels":["web","app"], "type": "pf" }] }; 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,y){var k,pb=function(){L.startSystem();k=L.getAggregator();var n;k.provide("mobileApp",function(){return n=n||new ta(b)});var a;k.provide("avidJsClient",function(){return a=a||new ua(q.getWindow())});k.provide("context",u);var b=k.provide("features",va()),c=k.provide("browser",wa()),d=xa(),f=k.provide("ids",ya()),g=new za(k),p=ba(),p=Aa(d,p),m=Z.getMeasurement(f,b,c);b.on("swapids")&&(r.oid=r.asid,r.asid=f.unq);var l,s=Ba(b),t=Ca(),B=Da(k),D=k.provide("mPage", Ea()),A=Fa(),H=k.provide("pageUrls",Ga(A,q)),z=Ha(),C=k.provide("intersectionWatcher",Ia());k.provide("ieXDomainViewability",Ja(c));k.provide("iframe",Ka(c));var E=La(c),M=k.provide("video",!u.isVideo()||u.isAvid()||u.isInMobiMraidVideo()?{}:Ma(r.videoId,b,z));Na(Oa.build());var F=Pa(d,E,b),v=Qa(F,d,D),w=k.provide("jobFactory",Ra(B)),t=Sa(F,d,b,f,g,c,z,t),F=Ta(d,b,k,B),F=Ua(F,b,m.isImmediate()),D=k.provide("viewability",Va(new I,m,c,t,d,b,E,k,f,g,w,D,v,z,M));Z.startViewabilityMeasurementStrategies(b, D,B,w);var P=ca(),T;t.setViewabilityMod(D);if(!Z.killRequest(d)){if(s.isApplicable(u))try{s.start(),g.addItem(s.getFrameMap(),"fm"),b.on("fm2")&&g.addItem(s.getFrameMapIncludingPeerCase(),"fm2"),b.on("idMap")&&(l=s.getIdMap())&&g.addItem(l,"idMap")}catch(Q){d.add(h.ERROR_CODES.ADTALK_GENERAL)}l=Wa();l.isApplicable()&&l.start();A.isApplicable(c,b,u)&&A.start();var O;try{C.isApplicable(c,b,u)&&(q.getDoc().body?C.start():x.whenReady(C.start,q.getDoc()));O=H.detectTopURL();b.on("exch")&&Xa(d,g).parse(O); var da=Ya();da.isApplicable(b)&&da.start(b);u.usesGroupMLegacyCustomMetric()&&Za();var y=$a();y.isApplicable(b)&&(y.start(),k.trigger("sendCookie"))}catch(G){d.add(h.ERROR_CODES.IMPRESSION_LEADUP)}try{ab(d,b,f,F,g,c,D).send(O),e.isFunction(M.triggerInitializationEvents)&&M.triggerInitializationEvents()}catch(bb){__IntegralASDiagnosticCall("impsend",bb,r)}try{var J=cb();J.start();J.addFieldTypes([h.DT_SLOT.IM,h.DT_SLOT.FRAUD,h.DT_SLOT.ENVIRONMENT]);var K=db(c,f,D);K.isApplicable(b)&&K.start();b.bootstrapOn("getTpl")&& b.on("usetpl")&&eb(p,t,d,f,g).init();r.tpiLookupURL&&fb(p,t).init(r.tpiLookupURL);gb(b);"true"!==r.minimizeCalls&&(T=(new Date).getTime(),q.execAtEndOfThread(function(){q.execAtEndOfThread(function(){try{var a={output:(new Date).getTime()-T};g.addItem(a,"sinceFw",{type:h.DT_CODES.ADTALK});e.isDef(P.loopStarted())&&g.addItem({output:P.loopStarted()},"readyFired",{type:h.DT_CODES.ADTALK});s.isApplicable(u)&&s.sendAdTalkCall()}catch(b){d.add(h.ERROR_CODES.ADTALK_DELAY)}})}));m&&m.start();var N=hb(); N.isApplicable(b,c)&&N.start(c);var S=ib();S.isApplicable(b,c)&&S.start();var U=jb();U.isApplicable(b,c)&&U.start();var V=kb();V.isApplicable(b,c)&&V.start();var W=lb();W.isApplicable(b)&&W.start();var X=mb();X.isApplicable(b,c)&&X.start();nb().start(["sca"],b);A.isStarted()&&A.sendOriginList();L.runAll();var Y=ob();Y.isApplicable(b)&&(Y.start(),R.recordBlockingTime(),R.setupOnLoadTracking(),R.setupBrowserDelayTracking())}catch(aa){d.add(h.ERROR_CODES.POST_IMPRESSION)}}},Z=function(){function n(a){var b= new qb(a,u),c=new rb,d=new sb(a,u),f=tb(a,u),g=(new ub(r,u,a)).resolve(),p=[b],m=[];f.applies()&&p.push(f);d.applies()&&p.push(d);c.applies(a,u)&&p.push(c);e(g).each(function(a,b){p.push(new vb(b,u));m.push(b.id)});0e,d="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""), f=[];e=c?-e:e;do b=e%a,f.push(d[b]),e=(e-b)/a;while(0=h.MRC_LARGE_AD_SIZE;d()});k.on("impressionsent",function(){a=!0;d()});c.onHiddenChange(d)},Ca=function(){var n=[],a={},b={percentInView:"piv",sl:"vs",reason:"r",width:"w",height:"h"};k.on("newScreenEvent",function(c){c=e(c).selectProperties(e(b).keys());c=e(c).asStrings();var d=e(c).compareTo(a);d&&(d.t=u.getTagTime(),n.push(d));e(a).mixin(c)});return{toString:function(){return e(n).toION(b)}}}, Wb=function(n,a,b,c,d,f,g){var p;(function(){var f=b.getRounded(),l=f.width-5,e=f.height-5,t=0.5*f.width+1,f=0.5*f.height+1;p=[new n(a,l,e,d,g,c),new n(a,l,5,d,g,c),new n(a,5,e,d,g,c),new n(a,5,5,d,g,c),new n(a,t,f,d,g,c)]})();return{getNumInView:function(){var a=[],b=0;e(p).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(p).each(function(b, c){c.isNotReadyToReport()&&(a=!1)});return a},remove:function(){e(p).each(function(a,b){try{b.remove()}catch(c){}})}}},Xb=function(n,a,b,c,d,f,g,p){var m=new n(ja,y.body,a,c,d,g,p),l,s,t=0;b=b||e.noop;l=setInterval(function(){m.isReady()&&!s?(s=!0,b(),clearInterval(l)):(5===++t||s)&&clearInterval(l)},50);return{checkViewable:function(){var a=m.isReady(),c=m.getNumInView(),c=m.getPctInView(c),d=f.calcInitialViewState(c,!0);a&&!s&&(s=!0,b());return{str:a?d:h.NA,pct:a?c:-1}},removePixels:function(){m.remove()}}}, $b=function(n,a,b,c,d,f,g){var p,m,l=a.getRounded(),s=[],t=!1,B=0,k=49>a.area(),A=(c.on("largeAd")&&a.isMrcLarge()&&!u.isVideo()||g)&&!k?Yb(l):Zb(l,k),q=function(){var a;if(!t)for(t=!0,a=0;a=f?h.IN_VIEW:h.OUT_OF_VIEW);d&&!m&&(m=!0,b());return{str:d?f:h.NA,pct:d?z():-1}},removePixels:function(){e(s).each(function(a,b){try{b.remove()}catch(c){}})},getPercentInView:z}},ia=function(){var n=new ac,a=new I;return e(n).mixin(a)},I=function(){var n={},a=function(a,c,d){n[a]=n[a]||new U;n[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=n[a])d.shift(),c.run.apply({},d)}}},Wa=function(){var n={},a={ox:0},b=q.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&&!n[c]&&(d=!0);return d},f=function(a,b){if(b)return b.type="receipt",b},g=function(b,c,d){a[c.vendorKey]++;d();n[c.uniqueId]=!0;p(c)&&(d="false"===c.isSampling,b=["ext",c.vendorKey,c.dataKey].join("_"), d={encode:!0,minDt:d,type:d?h.DT_CODES.EXTERNAL:h.DT_CODES.UNLOAD},k.trigger("addOutputItem",{output:c.dataValue},b,d),k.trigger("addOutputItem",{output:c.vendorKey},"ext_vendor",d),"false"===c.isSampling&&k.trigger("sendMinDt",h.DT_CODES.EXTERNAL))},p=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 ka).listen(d,g,f)}}},V=function(e,a,b,c){var d=k.request("browser");if(k.request("features").bootstrapOn("killFlash"))return{style:{}, isPlaceholder:!0};var f=function(a,b){return''};return function(){var g,p,m,l=r.dtBaseURL,s=r.cocaPuffsPath,l=new N(l);l.sub(a||"static");l.master(l.master().split(":")[0]);l.path("");s&&(l.master(s),l.sub(""));l+=e;s=f("allowscriptaccess","always");g=f("movie",l)+f("play","true")+f("loop","true");m=d.browserIs(h.BROWSERS.IE)||d.browserIs(h.BROWSERS.MSEDGE);p=d.browserIs(h.BROWSERS.IE);m&&(m=c?"window":"transparent",g+=f("wmode",m));b&&(s+=f("FlashVars",b));p?(p= y.createElement("div"),m="blag"+r.birthdate+q.random(),p.innerHTML=""+g+s+"",g=p.firstChild):(g=y.createElement("object"),g.data=l,g.type=h.FLASH_MIME,g.innerHTML=s);l=g;l.style.position="absolute";l.style.width="1px";l.style.opacity="0";l.style.height="0px";return g}()},ja=function(n,a,b,c,d,f,g,p){var m=f.browserIs(h.BROWSERS.IE)||f.browserIs(h.BROWSERS.MSEDGE), l="_IASflashPixelCallback"+(r.birthdate+""+q.round(1E6*q.random())),s=!1,t=!1,B,D,A,H,z=function(){if(B&&e.isFunction(B.jsHandshake)&&!s){B.style.height="1px"===B.style.height?"2px":"1px";try{B.confirmResize()}catch(a){s=!0,k.trigger("error",h.ERROR_CODES.FLASH_API_ACCESS)}}},C=function(){if(s)return!1;var a,b;try{(a=H||B&&e.isFunction(B.jsHandshake))&&!t&&(H=!0,w[l]=E,b=B.jsHandshake(l),t=!0,E(b))}catch(c){a=!1,s=!0,k.trigger("error",h.ERROR_CODES.FLASH_API_ACCESS)}return a},E=function(a){try{if(e.isUndef(a.isInView))throw"corrupted Flash pixel message received"; A=1===+a.isInView}catch(b){k.trigger("error",h.ERROR_CODES.FLASH_API_ACCESS)}},u=function(a,b,c){var d=new V(m?"/detector_4_5_IE.pix":"/detector_4_5.pix"),f=d.style;d[h.IAS_DETECTOR]="true";f.left=b+"px";f.top=c+"px";d.isPlaceholder||a.appendChild(d);f.height="1px";B=d;m&&!d.isPlaceholder&&setInterval(z,100);return d}(n,a,b);return{isInView:function(){var a;if(C()){try{a=A}catch(b){H=!1,k.trigger("error",h.ERROR_CODES.COCOA_GONE)}f.browserIs("w")&&void 0!==a&&(B.style.height=D?"1px":"2px",D=!D)}return C()&& a},isNotReadyToReport:function(){return!C()},createdFlash:B,remove:function(){u.parentNode&&u.parentNode.removeChild(u)}}},W=function(){var n=function(a,c,d){var f=c.length,g=v.isWindow(a)?a.frames:v.getChildWindowsOf(a);d&&d(a,c);if(g.length){for(a=0;a=c&&(b.task(),n.shift())},getNextJob:function(){return n[0]}}},ka=function(){var n,a=function(a,c,d,f){var g,p=e.noop,m,l;if(JSON&&JSON.parse)try{g=JSON.parse(a.data),m=a.source,c(g)&&(f&&(l=f(m,g))&&(p=function(){(new la(m)).send(function(){return l})}),d(a, g,p))}catch(s){g&&k.trigger("error",h.ERROR_CODES.MESSAGE_LISTENER)}};return{listen:function(b,c,d){n=function(f){a(f,b,c,d)};x.addEvent(w,"message",n)},stop:function(){n&&x.removeEvent(w,"message",n);n=null}}},la=function(n){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(n).isObj()?[n]:(new W).getFrames(n);e(c).each(function(c,f){var g;g=e.resolve(b,f)||{};g.sentTime=q.now();g=a(g);f.postMessage(e(g).JSONStringify(), "*")})}}}},bc=function(n,a){return{onAll:function(b){var c={};e(a).each(function(d,f){n.on(f,function(){c[f]=1;e(c).keys().length===a.length&&(c={},b())})})}}},za=function(n){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 l=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){l({output:b},a,f)}):l(a,d,f)};n.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,n;a(f)&&(n=d.output(),f.encode&&(c=encodeURIComponent(c),n=encodeURIComponent(n)),e.isFunction(b)?b(c,n):b[c]=n)})},iterate:d,cleanup:function(){d(function(a,c){c.props.flagForRemoval&& delete b[a]})},getItem:function(a){return b[a]}}},Yb=function(e){var a=e.width-5,b=e.height-5,c=0.5*e.width+1,d=0.5*e.height+1,f=0.3*e.width+1,g=0.7*e.width+1,p=0.3*e.height+1,m=0.7*e.height+2,l,s=function(a,b){1>a&&(a=1);1>b&&(b=1);a>e.width&&(a=0!==e.width?e.width:1);b>e.height&&(b=0!==e.height?e.height:1);return{x:q.floor(a),y:q.floor(b)}};l=[s(a,b),s(a,5),s(5,b),s(5,5),s(c,d),s(f,p),s(g,p),s(f,m),s(g,m)];return{get:function(){return l},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}}},Zb=function(e,a){var b=0.5*e.width+1,c;c=[{y:q.floor(0.5*e.height+1),x:q.floor(b)}];return{get:function(){return c},getPctInView:function(a){return 1===a?50:0}}},ac=function(){var n={},a=function(a,c){n[a]=c};return{request:function(a){var c,d=n[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?n[b]=c:e(b).each(a);return c}}},Qa=function(n,a,b){return{collect:function(){var a= n.find(),d=a.getOutOfViewReasons(),f=b.isHidden(),g=G(v.calcWinDims()),p=a.getDims();if(!a.hasAd()||!g.hasValidDims()||!p.hasValidDims())return{viewState:h.NA,posViewState:h.NA,embedded:u.embedded,winDimensions:g,adDimensions:p};!0===f&&d.push(h.OUT_OF_VIEW_REASONS.FOCUS);return{winDimensions:g,adDimensions:p,containerDimensions:a.getContainerDims(),method:a.getDetectionMethod(),viewState:d.length?h.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()}}}},cc=function(n){n=n||e.identity;var a=[],b=q.now(),c=function(){var c=q.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=n(b);c();0!==a.length&&b===f.state||a.push({state:b,duration:0})}}}, ma=function(e,a){var b=e||1,c=0,d=0,f,g=0;return{start:function(){0===c%b&&(f=q.now())},stop:function(){var p=f||a;0===c%b&&(g+=q.now()-p,d++);c++},getTime:function(){return g},getCount:function(){return d}}},na=function(){var n,a=0,b=0,c=new I(!0),d=function(){n&&(a++,c.trigger(a),b>a?q.execAtEndOfThread(d):f())},f=function(){n=!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(){n||(n=!0,q.execAtEndOfThread(d))}, kill:f,isActive:function(){return n}}},dc=function(e,a){var b,c=a,d=q.getWindow(),f=function(a){b||(a&&e(),b=d.setInterval(e,c))},g=function(){d.clearInterval(b);b=null};return{start:f,stop:g,updateFrequency:function(a,b){c=a;g();f(b)}}},Vb=function(e){var a,b,c=0,d=u.getTagTime(),f=0,g=!1;return{getTotalTime:function(){return f},stop:function(){c=0;d=u.getTagTime();g=!1},mark:function(){a=g?u.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=y.createElement("DIV"),c.innerHTML=d,f.appendChild(c.childNodes[0])):(c=y.createElement("SCRIPT"),c.src=b,f.appendChild(c)):y.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=v.createImage(),b&&(c.onload=b),c.src=a)},d=function(a,b,c,d){var f=y.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)},g=function(b,c,f,g){d(a.wrap(b,c,f,g))};k.on({addNode:b,send:c,exec:d,notify:f,jsonp:g});return{addNode:b,send:c,exec:d,notify:f,jsonp:g}},u=function(){var n=w!=top,a=function(){var a;try{a=!!top.document}catch(b){a=!1}return a}(),b=function(){return e.isDef(q.getWindow().mraid)}, c=function(){var a=q.getWindow().inmobi,c=a&&a.IASDocumentVideoBuffer,a=a&&c&&e.isFunction(c.addVideoEventListener);return b()&&!!a},d=function(a){return!1===e(r.customViewability).isArray()?!1:0=h.MRC_LARGE_AD_SIZE},isOneByOne:function(){return c()&&1>=f()}}},v={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=v.windowPosition(),b=v.windowSize(),e={scrX:q.round(a.scrX), scrY:q.round(a.scrY),width:q.round(b.width),height:q.round(b.height)}}catch(c){k.trigger("error",h.ERROR_CODES.GET_WIN_DIMENSIONS),e={}}return e},windowSize:function(){var n={},a,b;if(u.friendly)if(a=top.document,b=a.documentElement,a=a.getElementsByTagName("body")[0],e.isDef(top.innerWidth))n.width=top.innerWidth,n.height=top.innerHeight;else if(e.isDef(b.clientWidth))n.width=b.clientWidth,n.height=b.clientHeight;else if(e.isDef(a.clientWidth))n.width=a.clientWidth,n.height=a.clientHeight;else throw n.width= n.height=0,"";else e.isDef(w.outerWidth)&&(n.width=w.outerWidth,n.height=w.outerHeight);return n},windowPosition:function(){var n=0,a=0;e.isDef(w.screenX)?(n=w.screenX,a=w.screenY):e.isDef(w.screenLeft)&&(n=w.screenLeft,a=w.screenTop);return{scrX:n,scrY:a}},getNodeArea:function(e){var a=-1;e&&(e=v.getRect(e),a=e.width*e.height);return a},getRect:function(n){var a={},b=v.windowPosition();n=n.getBoundingClientRect();e.isUndef(n.x)&&(a.x=n.left,a.y=n.top);e.isUndef(n.width)&&(a.width=n.right-n.left, a.height=n.bottom-n.top);e(a).mixin(n,!0);a.scrX=b.scrX+a.x;a.scrY=b.scrY+a.y;return a},getIeDimObj:function(){return y.documentElement&&e.isDef(y.documentElement.clientWidth)&&y.documentElement||y.body},getPlaceholderSpan:function(){var n=y.createElement("span");e(n.style).mixin({width:"0px",height:"0px",display:"block",overflow:"hidden",visibiility:"hidden"});n.innerHTML=".";return n},createImage:function(){var n=u.friendly&&q.getTop().Image;return e.isFunction(n)?new n:new Image},createHiddenIframe:function(e){var a= q.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,g=1E4;b=x.nodeIsAbsolutelyPositioned(e);d=!v.tagNameIs(e,"OBJECT");if(null!==e.parentNode&&!b&&d&&!v.tagNameIs(a,"BODY")){d=e;do d=d.parentNode,b=!v.tagNameIs(d,"OBJECT"),c="inline"!==x.getStyle(d,"display"), b&&c&&(b=v.getRect(d),f=b.widthm){t=void 0;if(t=l.parentNode===e)if(t=void 0,t="DIV"===l.nodeName)if(t=void 0,t=""=== l.style.backgroundImage){var h=t=void 0,k=l.childNodes;for(t=0;ta.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&&v.getAttribute(e,a);return b.test(e)},isImageTag:function(e){return e&&e.src&&v.tagNameIs(e,"img")},getDimensionFromStyle:function(h){var a,b=x.getStyle(h,"width");h=x.getStyle(h,"height");b&&h&&(a={width:e.getNum(b),height:e.getNum(h)});return a},getDimensionFromAttributes:function(h){var a,b=v.getAttribute(h,"width");h=v.getAttribute(h,"height"); b&&h&&(a={width:e.getNum(b),height:e.getNum(h)});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*q.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]=e.fromBoolToNum(a[c]);return d});f=e(d).mapToObj(function(a,b){var c={};c[a]=e.fromBoolToNum(g(b));return c});f.gm=e.fromBoolToNum(u.usesIASFullyInViewCustomMetric());return e(b).mixin(f)},g=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:g,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()}}},La=function(a){var b=h.BROWSERS,c=k.request("intersectionWatcher");return{calcInitialViewState:function(d,f,e){var p={IN_VIEW:65,OUT_OF_VIEW:25,PARTIAL_VIEW:30},m={IN_VIEW:75,OUT_OF_VIEW:25,PARTIAL_VIEW:50},l=h.NA,s=!u.xDomainIframe||c.isStarted()||a.browserIs(b.GECKO)||a.browserIs(b.IE);e=e?p:m;if(s||f)l= d===h.PIV_NA?h.NA:d>=e.IN_VIEW?h.IN_VIEW:d<=e.OUT_OF_VIEW?h.OUT_OF_VIEW:d>=e.PARTIAL_VIEW?h.PARTIAL_VIEW_PLUS:h.PARTIAL_VIEW_MINUS;return l},calcPercentInView:function(a,b,g,p){var m=0,l=a;c.isStarted()?m=c.getPiv():a.hasValidDims()&&!a.isHidden()&&(e([b,g,p]).each(function(a,b){if(b.hasValidDims()){var c=l.getRounded(),d=b.getRounded(),f=Math.max(c.scrX,d.scrX),e=Math.max(c.scrY,d.scrY),p=Math.min(c.scrX+c.width,d.scrX+d.width),c=Math.min(c.scrY+c.height,d.scrY+d.height),p=p-f,c=c-e;l=G({scrX:f, scrY:e,width:0a.length;)c?(b=new Uint32Array(1),w.crypto.getRandomValues(b),a+=b[0].toString(16)):a+=(16*q.random()|0).toString(16);a=a.slice(0,32)}catch(d){k.trigger("error", h.ERROR_CODES.UID_GENERATION)}return a}());var d=function(){return r.anId};return{getAsid:function(){return r.asid},getAnId:d,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 d()||r.advEntityId+"-"+r.pubEntityId},impressionIsIdentifiable:function(a){a&&(b=!0);return b},unq:a,getAvidIds:function(){return c},setAvidAdSessionContext:function(a){c=a}}},Ka=function(a){var b,c,d=k.request("features"),f=function(){var f, g,m,B,D=q.getMaxNumber();f=q.getMaxNumber();g=q.getWindow();q.getDoc();u.friendly?(f=p(),m=f.left,B=f.top,D=f.width,f=f.height,g=v.windowPosition(),m=g.scrX+m,B=g.scrY+B):d.on("rattie")&&a.browserIs(h.BROWSERS.IE)?(c=c||k.request("ieXDomainViewability"),b=c.determineFramePosition(),m=b.scrX,B=b.scrY):e.isDef(g.mozInnerScreenX)&&(m=q.round(g.mozInnerScreenX),B=q.round(g.mozInnerScreenY));return{scrX:m,scrY:B,iFrameClippingWidth:D,iFrameClippingHeight:f}},g=function(){var a,b,c=v.getIeDimObj(),d=q.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 g=b.getWindow();f=!1;e.isDef(g.navigator)&&e.isDef(g.navigator.userAgent)&&(g=g.navigator.userAgent.match(/Firefox\/([\.0-9]+)/),null!==g&&2==g.length&&(g=g[1].split("."),3==parseInt(g[0],10)&&6>=parseInt(g[1],10)&&(3==g.length?13>=parseInt(g[2],10)&&(f=!0):f=!0)))}f&&(a.g=d)}return a},l= {};try{l.a=encodeURIComponent(top.location.href)}catch(h){}try{l.b=encodeURIComponent(parent.location.href)}catch(t){}if(u.embedded){try{l.c=encodeURIComponent(parent.document.referrer)}catch(k){}try{l.e=encodeURIComponent(w.document.referrer)}catch(q){}}try{"jsi"!==r.mode&&(l.d=encodeURIComponent(w.location.href))}catch(A){}try{l.f=encodeURIComponent(r.jsref)}catch(H){}try{g=m(),l.g=encodeURIComponent(g.g||""),l.q=encodeURIComponent(g.q||""),a.isStarted()&&!g.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;u.embedded&&q.execAtEndOfThread(function(){try{e=r.contextNode.parentNode;var p=b=fc().getDFPValue(e),m={};m.df=p.type;p.size&&(m.sz=p.size.width+"."+p.size.height);p.tag&&(m.dom=p.tag);c("dfp",m);b.size&&a&&(a.events.on("newState",d),a.start())}catch(l){k.trigger("error",h.ERROR_CODES.HIDDEN)}})})()},{tier:h.TIERS.PRE_IMPRESSION_FRAUD,applies:function(a,b,c){return a.on("usehaps")}}); var Ba=function(a){var b,c,d,f=new ia,g=new W,p=new hc(f),m=new ic,l=new jc,h=new kc(f,a),t=function(){e.isUndef(d)&&(d=new lc(f));return d},q=function(){f.provide({frameCollection:function(){return p},adProxy:function(){return l},adTalkMessage:function(a){return new mc(a,f)},adTalkMessageCollection:function(){return m},idMapModule:t,interFrameQuerySelector:function(a){return new nc(a)}})};return{isApplicable:function(a){return e.isDef(w.JSON)&&e.isDef(w.postMessage)&&!a.isAvid()},start:function(){q(); g.traverse(p.addFrame);h.startListening();h.sendToKnownFrames();k.once("stopAdTalk",function(){h.stopListening()})},sendAdTalkCall:h.sendAdTalkCall,getFrameMap:function(){e.isUndef(b)&&(b=new oa(f));return b},getFrameMapIncludingPeerCase:function(){e.isUndef(c)&&(c=new oa(f,!0));return c},getIdMap:t}},mc=function(a,b){var c,d=b.request("adProxy").myIdCard,e=b.request("frameCollection").getMe().getStringifiedPosition();c=k.request("features").on("swapids")?r.oid:r.asid;var g=a||{},p=r.asid,d=d.tagId, m=u.embedded,l=u.friendly,s=r.birthdate;c=c.split("-")[2];var t;u.friendly?t="["+h.AD_IDENTIFIER+"-"+r.asid+"]":(t=q.getWindow(),t=t.location&&t.location.href,t='iframe[src*="'+(t&&t.replace(/^https?\:\/\//i,""))+'"]');return{messageContent:g,srcAsid:p,srcTagId:d,srcIsEmbedded:m,srcIsFriendly:l,srcBirthdate:s,iasCommonId:c,nodeSelector:t,positionStr:e,version:"0.1"}},ic=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]}}},oc=function(a,b,c,d){var f,g=a==w;f={position:b.slice(0),id:b.join("-"),isMe:g,isLeaf:!a.frames.length,adProxies:g?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 p=function(a){var b= f.adProxies;a=a.adProxies;var c=[];b.length&&a.length?e(a).each(function(a,d){m(b,d)&&c.push(d)}):c=a;f.adProxies=b.concat(c)},m=function(a,b){return!e(a).find(function(a,c){return c.adSafeId&&c.adSafeId===b.adSafeId})},l=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){p(b);l(a);f.srcIsEmbedded=a.srcIsEmbedded;f.selfDescription=b};return f},hc=function(a){var b=[],c={},d={noMe:!0};return{addFrame:function(e, g,p){var m=a.request("adProxy").getAll();e=new oc(e,g,m,p);b.push(e);c[e.id]=e;e.isMe&&(d=e);return e},getFrame:function(a){return c[a]},list:b,dictionary:c,getMe:function(){return d}}},oa=function(a,b){var c=function(a,c){var e=c.adProxies,m="";if(c.isValidForMapping()){if(b)m+=d(e,c.getStringifiedPosition());else{var l;l=""+c.getStringifiedPosition();l+=c.isMe?"*":"";l+=e.length?"."+e[0].tagId:"";m+=l}return m}},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}}},lc=function(a){var b=a.request("frameCollection").getMe().getStringifiedPosition(),c=r.contextNode.parentNode,d=a.request("interFrameQuerySelector",c),e=function(a){var b=a.length;return 120b.unifiedId&&(a.unifiedId=b.unifiedId)},m=function(a){return q.now()-a.sentTime},l=function(){var c=h.DT_CODES.ADTALK;a.request("frameCollection");b||(b=!0);k.trigger("sendDt",c)},s=function(a){return e.isUndef(a)||e.isUndef(a.selfDescription)}, t=function(c,d,e){var f=!1,g,t,q,r;try{g=a.request("frameCollection"),t=d.messageContent.self,p(g.getMe(),t),d.transferDuration=m(d),q=g.getFrame(t.id),a.request("adTalkMessageCollection").add(d,function(){f=!0}),s(q)||f?(q=q||g.addFrame(c.source,t.id.split("-"),d),q.addInformationFromSrc(d,t),e()):q.addInformationFromSrc(d,t),(r=b&&f&&a.request("idMapModule").isCandidateForMyIdMap(d))&&l()}catch(u){k.trigger("error",h.ERROR_CODES.ADTALK_DUBIOUS)}};return{sendAdTalkCall:l,sendToKnownFrames:function(){(new la).send(g)}, startListening:function(){c=new ka;c.listen(f,t,g)},stopListening:function(){c&&c.stop()},validateMessage:f,processMessage:t,createMessage:g}},pc=function(){var a=k.request("ids"),b=a.getAsid();return{tagId:a.getFwId(),adSafeId:b}},jc=function(){var a,b=[],c=function(a){a=new pc(a);b.push(a);return a};a=c();return{createNew:c,getAll:function(){return b},myIdCard:a}},Ja=function(a){var b,c,d=!1,e=q.getDoc().documentElement,g=function(a){var e=!0;d&&(d=!1,a.stopPropagation(),a.preventDefault(),b=a.screenX- a.clientX,c=a.screenY-a.clientY,e=!1);return e};a.browserIs(h.BROWSERS.IE)&&x.addEvent(e,"click",g,!0);return{determineFramePosition:function(){a.browserIs(h.BROWSERS.IE)&&(d=!0,e.click());return{scrX:b,scrY:c}}}},Ia=function(){var a=h.NA,b=!1,c=function(a){if(!e.isUndef(a)){var b=q.getDoc().createElement("div");e(b.style).mixin({position:"absolute",width:"100%",opacity:"0",height:"100%",zIndex:-999,top:"0px",left:"0px"});b[h.IAS_DETECTOR]=!0;a.appendChild(b);return b}};return{getPiv:function(){return a}, isApplicable:function(a,b,c){var e=k.request("mobileApp");return(a.browserIs(h.BROWSERS.CHROME)||a.isAndroidWebViewBrowser())&&!e.isMobileAppEnvironment()&&a.hasIntersectionObserver()&&c.xDomainIframe&&b.on("chromeNativeIO")},start:function(){var d=q.getIntersectionObserver(function(b){b=b.pop();a=Math.min(b.intersectionRect.width*b.intersectionRect.height/(b.boundingClientRect.width*b.boundingClientRect.height)*100,100)},{threshold:[0,0.01,0.25,0.3,0.5,0.75,0.8,0.99,1]});q.execAtEndOfThread(function(){a=== h.NA&&(a=0)});d.observe(c(q.getDoc().body));q.execAtEndOfThread(function(){u.isBustedIframe()||k.trigger("delayedViewabilityReady")});b=!0},isStarted:function(){return b}}},ca=function(){var a=!1;(function(){x.whenReady(function(){k.trigger("startViewabilityLoop");a=!0})})();return{loopStarted:function(){return a}}};L("loopDelay",[],ca,{applies:function(a,b,c){return a.bootstrapOn("allowViewability")},tier:h.TIERS.VIEWABILITY});var qc=function(){return{start:function(a){k.on("measurable",function(){a()})}, isApplicable:function(a,b){return!b.browserIs(h.BROWSERS.WEBKIT)}}},rc=function(){return{start:function(a){a()},isApplicable:function(a){return a.isImmediatelyMeasurable()}}},db=function(a,b,c){var d=!1,f=function(){b.impressionIsIdentifiable()&&!d&&(d=!0,k.trigger("notify",r._onMeasurable))};return{start:function(){var b;b=[sc(),tc(),rc(),qc()];(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)}}}, tc=function(){return{start:function(a){bc(k,["adImpression","measurable"]).onAll(function(){a()})},isApplicable:function(a,b){return!b.browserIs(h.BROWSERS.WEBKIT)&&u.isVideo()}}},sc=function(){return{start:function(a){k.on("adImpression",function(){a()})},isApplicable:function(a){return a.isImmediatelyMeasurable()&&u.isVideo()}}},Ab=function(a,b,c){var d=["rjss","jss","jload"],f=function(){var b=!1,c=a.getAvidAdSessionContext();e.isDef(c)&&(b=c.isDeferred);return!b};return{accepts:function(){var a= e.isDef(e(d).find(function(a,b){return b===c}));return b.accepts()&&b.isMediaType(h.MEDIA_TYPE.DISPLAY)&&a},isImmediate:f,isMediaType:b.isMediaType,start:function(){f()||a.addEventListener("ready",function(){k.trigger("adImpression")})}}},zb=function(a){return{accepts:function(){return a.isAvidAvailable()},getAvidAdSessionContext:function(){return a.getAvidAdSessionContext()},isMediaType:function(b){var c,d=a.getAvidAdSessionContext();a.isAvidAvailable()&&e.isDef(d)&&(c=d.mediaType||h.MEDIA_TYPE.DISPLAY); return b===c},supportsAdContainerGeometry:function(){var b=!1,c=a.getAvidAdSessionContext();e.isDef(c)&&(b=c.avidJsVersion,(c=e.isUndef(b))||(c=e.getNum(b.split(".")[0]),b=e.getNum(b.split(".")[1]),c=2===c?7<=b:3<=c),b=c);return b}}},yb=function(a,b){var c,d=function(a){var d,e,m;try{d=a.eventData.percentageInView,e=c&&75<=d,m={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",m)}catch(l){}};return{start:function(){try{var b=a.getAvidAdSessionContext().avidAdSessionType;c="display"===b||"video"===b;a.addEventListener("viewability",d)}catch(e){}},addScreenLocationChangedListener:function(a){b.on("screenLocationChanged",a)}}},Cb=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(h.MEDIA_TYPE.VIDEO)&&a},isImmediate:function(){return!1},isMediaType:b.isMediaType,start:function(){try{a.addEventListener("video",function(a){"AdImpression"===a.eventSubType&&k.trigger("adImpression")})}catch(b){}}}},Bb=function(a,b){var c=function(a){try{b.trigger("videoPlaybackEvent",{eventType:a.eventSubType,eventData:a.eventData})}catch(c){}};return{start:function(){a.addEventListener("video",c)},addVideoPlaybackEventListener:function(a){b.on("videoPlaybackEvent", a)}}},aa=function(a,b){var c=!1,d=function(a){var d=a.percentageInView;c=!0;a.viewState=50<=d?h.IN_VIEW:h.OUT_OF_VIEW;a.outOfViewReason=50<=d?"":h.OUT_OF_VIEW_REASONS.GEOM;b.trigger("measurementChanged",a)};return{start:function(){k.trigger("addOutputItem",{output:h.MEDIA_TYPE.DISPLAY_CODE},h.MEDIA_TYPE_CODE,{type:h.IMPRESSION_EVENT});a.addScreenLocationChangedListener(d);a.start()},getStrategyName:function(){return h.MEASUREMENT_STRATEGY.DISPLAY},addMeasurementChangedListener:function(a){b.on("measurementChanged", a)},isMeasurable:function(){return c}}},Qb=function(a,b,c){var d=e.isDef(a)?a.environment:void 0,f=e.isDef(a)?a.measurementStrategy:void 0,g=function(){return e.isDef(f)};e.isDef(b)&&b.start();return{hasMeasurementStrategy:g,getScreenLocationInfo:function(a){return b.create(a)},isImmediate:function(){return g()?d.isImmediate():!0},isMeasurable:function(){return g()?f.isMeasurable():!1},isMediaType:function(a){return g()?d.isMediaType(a):!1},start:function(){g()&&d.start()},requiresDelayedViewabilityEvent:function(){g()&& b.requiresDelayedViewabilityEvent()}}},ga=function(a){return{resolve:function(){var b=e(a).findFirst(function(a,b){return b.environment.accepts()});if(e.isDef(b))return b}}},Pb=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:h.NA,viewState:h.NA,percentInView:h.NA,reason:"",obstructed:h.NA,isHidden:h.NA,tabHidden:h.NA,posViewState:h.NA,adCompCount:1},g=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})},p=function(a){d={winDimensions:g(a.windowDimensions),adDimensions:g(a.adDimensions),containerDimensions:g(a.containerDimensions),method:a.detectionMethod||h.NA,viewState:a.viewState||h.NA,percentInView:e.isDef(a.percentageInView)?a.percentageInView:h.NA,reason:a.outOfViewReason||"",obstructed:e.stringifyTriState(a.isObstructed),isHidden:h.NA,tabHidden:h.NA,posViewState:a.viewState||h.NA,adCompCount:1,shouldDelegateToDomBasedViewability:a.shouldDelegateToDomBasedViewability}; a.isMeasurable&&c&&(c=!1,k.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(p),b.start())},requiresDelayedViewabilityEvent:function(){c=!0}}},ea=function(a,b,c){var d=!1,f=!1,g=!1,p,m,l,s,t=function(){if(!e.isUndef(m)){var a= [],b,k;d?(f?(k=!1,b=100):(k=s,b=l),50>b&&a.push(h.OUT_OF_VIEW_REASONS.GEOM)):(k=!1,b=0,a.push(h.OUT_OF_VIEW_REASONS.VIDEO));g=!0;m.shouldDelegateToDomBasedViewability=k;m.percentageInView=b;m.viewState=50>b?h.OUT_OF_VIEW:h.IN_VIEW;m.outOfViewReason=a.join(".");p=m;c.trigger("measurementChanged",p)}},q=function(a){m=a;l=a.percentageInView;s=a.shouldDelegateToDomBasedViewability;t()},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);t()};return{start:function(){k.trigger("addOutputItem",{output:h.MEDIA_TYPE.VIDEO_CODE},h.MEDIA_TYPE_CODE,{type:h.IMPRESSION_EVENT});a.addScreenLocationChangedListener(q);a.start();b.addVideoPlaybackEventListener(r);b.start()},getStrategyName:function(){return h.MEASUREMENT_STRATEGY.VIDEO},addMeasurementChangedListener:function(a){c.on("measurementChanged",a)},isMeasurable:function(){return g}}},Eb=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,k.trigger("adImpression"))})}catch(d){}}}},Db=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)}}},Fb=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:h.DETECTION_METHODS.AVID,outOfViewReason:d(a.eventData.reasons)};b.trigger("containerGeometryMeasurementChanged",a)},d=function(a){var b={inactive:h.OUT_OF_VIEW_REASONS.FOCUS,viewport:h.OUT_OF_VIEW_REASONS.GEOM, clipped:h.OUT_OF_VIEW_REASONS.GEOM,obstructed:h.OUT_OF_VIEW_REASONS.OBSTRUCTION,backgrounded:h.OUT_OF_VIEW_REASONS.FOCUS,notFound:h.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(){a.addEventListener("viewability",c)},addAdContainerGeometryMeasurementChangedListener:function(a){b.on("containerGeometryMeasurementChanged",a)},translateAvidOutOfViewReasons:d}},Kb=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&&k<=h)return!0});c=!r&&u>=c.piv;g&&(c=c&&b.isVideoPlaying);return c},metricId:a.id,minUnit:a.minunit?1E3*a.minunit:1E3}},ub=function(a,b,c){var d=b.isVideo()?"video":"display",f=b.isMobileApp()?"app":"web",g=b.isDeviceTypeGroupMobile()?"mobile":"desktop",h=e(a.customViewability).isArray()&&0a.percentInView;!e&&g?(p.updateFrequency(1E3),e=!0):e&&!g&&(p.updateFrequency(c.isVideo()?200:100),e=!1)},t=function(){var a=new S(h.DT_CODES.VIDEO_EVENTS);k.trigger("sendDt",a.callType,a.enumerator,function(){var a={id:r.videoId,msg:"unloadComplete", messageType:"misc"};q.getWindow().postMessage(JSON.stringify(a),"*")})};k.once("startViewabilityLoop",function(){if(k.request("ids").impressionIsIdentifiable()){p=dc(a.checkScreenLoc,c.isVideo()?200:100);p.start(!0);if(b.on("viewabilityOptimization")&&!l)k.on("newScreenEvent",s);x.addEvent(w,"beforeunload",function(){k.trigger("adSessionComplete")},!1)}});k.once("adSessionComplete",function(){c.isVideo()&&!c.isAvid()&&t();k.trigger("unload");p&&p.stop();a.cleanupPixelGrids();k.trigger("endAdSession"); k.trigger("stopAdTalk")})},{tier:h.TIERS.VIEWABILITY});var vc=function(a,b,c,d,f){var g,p,m,l=q.getWindow(),s=q.getDoc(),t=h.AD_IDENTIFIER+"-"+r.asid,B;d=d||b.parentNode||b.parent;var D=function(){if(!g)if(m=m||uc(d,f),g=m.calcDims(b,d),c===h.DETECTION_METHODS.VIDEO&&u.embedded){var a=g,e=(new G(b)).getRounded();try{a.set("width",e.width),a.set("height",e.height)}catch(l){k.trigger("error",h.ERROR_CODES.VIDEO_IN_IFRAME_DIMS_CALC)}}else c===h.DETECTION_METHODS.AD_PLACEHOLDER&&g.treatAsPlaceholder(); return g},A=function(){var b,d,g,l;d=r.mobOrTab;e.isUndef(p)&&(b=!d&&(u.friendly||e.isDef(w.mozInnerScreenX))&&f.on("offscreen"),g=D(),d=new G(v.calcWinDims()),b=new G(b?v.calcMonDims():{}),l=c===h.DETECTION_METHODS.VIDEO&&u.embedded?k.request("iframe").getClippedDims():new G({}),p=a.calcPercentInView(g,d,b,l));return p},H=function(){return a.calcInitialViewState(A())},z=function(){return b===w?!1:D().isHidden()};(function(){var a=s.body,a=b===l&&a?s.body:b;B=u.friendlyIframe?l.frameElement:a;x.addEvent(a, "click",function(){k.trigger("adComponentClicked")});x.addEvent(a,"mouseover",function(){k.trigger("adComponentMousedOver")})})();return{mark:function(){v.setAttributeOf(B,t,"")},cleanup:function(){v.removeAttributeOf(B,t)},isNode:function(a){return b===a},isHidden:z,isObstructed:function(){return!1},getDims:D,getPercentInView:A,getLocationState:H,getOnPageViewability:function(){return z()?h.OUT_OF_VIEW:H()},getDetectionMethod:function(){return c},getContainerDims:function(){return G(d)},refresh:function(){p= g=void 0;var a,c=b.parentNode;if(c){for(;b!==w&&c&&c!==y&&!a;)a=c===d,c=c.parentNode;a||(d=b.parentNode)}}}},wc=function(a,b){var c=[],d=function(){return c[0]&&c[0].getDetectionMethod()===h.DETECTION_METHODS.AD_PLACEHOLDER},f=function(e,f,g){var l=d()||0===c.length;e=vc(a,e,f,g,b);d()&&(g=c.shift(),g.cleanup());c.push(e);l&&e.mark();l&&f!==h.DETECTION_METHODS.AD_PLACEHOLDER&&k.trigger("primaryadfound",e)},g=function(){var a,b=!1,d=0,f=0;e(c).each(function(c,e){var g;g=e.getDims();g.hasValidDims()&& (a=e.getPercentInView(),b=a!==h.NA,g=g.area(),d+=g,f+=a/100*g)});return{totalArea:d,totalInView:f,hasMeasurement:b}},p=function(){var a=g();return a.hasMeasurement?q.round(a.totalInView/a.totalArea*100):h.PIV_NA},m=function(){var c=g().totalArea>=h.MRC_LARGE_AD_SIZE&&b.on("largeAd")&&!u.isVideo();return a.calcInitialViewState(p(),!1,c)},l=function(a){var b=-1;e(c).each(function(c,d){d.isNode(a)&&(b=c)});return b},s=function(a){return function(){return c[0]&&c[0][a]()}};k.on("adComponentAdded",function(a){e(a).each(function(a, b){-1===l(b)&&f(b,h.DETECTION_METHODS.MUTATION)})});k.on("adComponentRemoved",function(a){e(a).each(function(a,b){var d=l(b);-1v:!0;t=q.now();0===b.adDimensions.area()&&(s=0);r||(s=0);var M=s;l.push({tm:u.getTagTime(),piv:M});3=F)e.isUndef(m)&&(m=k.request("video")),s=m.getViewStateOverride(), F=!0,s&&(F=s===h.IN_VIEW),s=F;x=s}s=x}else s=!y&&s>=F;b.viewState=s?h.IN_VIEW:h.OUT_OF_VIEW;b.percentInView=z();F=[];x=e(b.reason);y=h.OUT_OF_VIEW_REASONS;s||F.push(y.GEOM);x.contains(y.HIDDEN)&&F.push(y.HIDDEN);x.contains(y.OBSTRUCTION)&&F.push(y.OBSTRUCTION);b.reason=F;w||(w=!0,q.execAtEndOfThread(C))}else b.viewState=h.NA,b.percentInView=-1;return b},start:function(){k.on("endAdSession",y);c&&setTimeout(F,2E3)},getStrategyName:function(){return"mobileWebXdomainSafari"},isMeasurable:function(){return A}, isImmediate:function(){return!0},hasMeasurementStrategy:function(){return!0}}},ha=function(a,b,c,d){return{accepts:function(){var e=c.xDomainIframe,g=a.bootstrapOn("mobOrTab"),p=a.on("ios"),m=b.browserIs(h.BROWSERS.WEBKIT),l,k;l=!1;b.getUserAgent()&&(k=b.getUserAgent().match(/OS\s\d+/))&&0