var impressionTagOptions = {"creatives":{"373611":{"size":{"width":728,"height":90},"processors":{},"channels":{"externalPage":true,"feature":{"dynodeBaseUrl":"https://dynode.spongecell.com","studioAssetBaseUrl":"https://live-ssl.cdn.spongecell.com","ipLocateUrl":"https://dynamic.spongecell.com/location.js","locationsUrl":"https://locations-ssl.cdn.spongecell.com/api/locations.js","features":[]},"mraid":{"mraid":true},"setup":{"features":[],"landingPages":{"54763":"http://www.roadtripeats.com/home/?utm_source=Spongecell\u0026utm_medium=Banner\u0026utm_content=Contextual728x90\u0026utm_campaign=RoadTripEats","54796":"http://www.roadtripeats.com/home/?utm_source=Spongecell\u0026utm_medium=Banner\u0026utm_content=Contextual728x90\u0026utm_campaign=RoadTripEats","":"http://www.roadtripeats.com/home/?utm_source=Spongecell\u0026utm_medium=Banner\u0026utm_content=Contextual728x90\u0026utm_campaign=RoadTripEats"},"api":{"landingPages":{"54763":{"id":54763,"url":"http://www.spongecell.com"},"54796":{"id":54796,"url":"http://www.roadtripeats.com"}}},"studioAssetBaseUrl":"https://live-ssl.cdn.spongecell.com","assets":{"813607":{"label":"160x600.html","path":"/studio/assets/1086043/original/160x600.html","width":null,"height":null,"contentType":"text/html","children":[{"path":"/studio/assets/1086043/original/assets/160x600_edge.js","width":null,"height":null,"contentType":"text/javascript","bitrate":null},{"path":"/studio/assets/1086043/original/assets/160x600_edgeActions.js","width":null,"height":null,"contentType":"text/javascript","bitrate":null},{"path":"/studio/assets/1086043/original/assets/2Packs.png","width":325,"height":257,"contentType":"image/png","bitrate":null},{"path":"/studio/assets/1086043/original/assets/Background.png","width":160,"height":600,"contentType":"image/png","bitrate":null},{"path":"/studio/assets/1086043/original/assets/CurlysLogo.png","width":96,"height":93,"contentType":"image/png","bitrate":null},{"path":"/studio/assets/1086043/original/assets/edge.6.0.0.min.js","width":null,"height":null,"contentType":"text/javascript","bitrate":null},{"path":"/studio/assets/1086043/original/assets/EnterNow.svg","width":null,"height":null,"contentType":"image/svg+xml","bitrate":null},{"path":"/studio/assets/1086043/original/assets/EnterToWin.svg","width":null,"height":null,"contentType":"image/svg+xml","bitrate":null},{"path":"/studio/assets/1086043/original/assets/PacksF.png","width":160,"height":125,"contentType":"image/png","bitrate":null},{"path":"/studio/assets/1086043/original/assets/RTE_logo.png","width":61,"height":52,"contentType":"image/png","bitrate":null}]},"814495":{"label":"300x250.html","path":"/studio/assets/1085354/original/300x250.html","width":null,"height":null,"contentType":"text/html","children":[{"path":"/studio/assets/1085354/original/assets/300x250_edge.js","width":null,"height":null,"contentType":"text/javascript","bitrate":null},{"path":"/studio/assets/1085354/original/assets/Background.png","width":300,"height":250,"contentType":"image/png","bitrate":null},{"path":"/studio/assets/1085354/original/assets/BG.jpg","width":300,"height":600,"contentType":"image/jpeg","bitrate":null},{"path":"/studio/assets/1085354/original/assets/CurlysLogo.png","width":96,"height":93,"contentType":"image/png","bitrate":null},{"path":"/studio/assets/1085354/original/assets/edge.6.0.0.min.js","width":null,"height":null,"contentType":"text/javascript","bitrate":null},{"path":"/studio/assets/1085354/original/assets/EnterNow.svg","width":null,"height":null,"contentType":"image/svg+xml","bitrate":null},{"path":"/studio/assets/1085354/original/assets/EnterToWin.svg","width":null,"height":null,"contentType":"image/svg+xml","bitrate":null},{"path":"/studio/assets/1085354/original/assets/FPO.jpg","width":300,"height":600,"contentType":"image/jpeg","bitrate":null},{"path":"/studio/assets/1085354/original/assets/Packs.png","width":160,"height":125,"contentType":"image/png","bitrate":null},{"path":"/studio/assets/1085354/original/assets/RTE_logo.png","width":61,"height":52,"contentType":"image/png","bitrate":null},{"path":"/studio/assets/1085354/original/assets/Win10K.png","width":568,"height":135,"contentType":"image/png","bitrate":null}]},"816808":{"label":"16CURL0131_RTE_StaticBanner_300x250_082216.jpg","path":"/studio/assets/1086141/full/16CURL0131_RTE_StaticBanner_300x250_082216.jpg","width":300,"height":250,"contentType":"image/jpeg"},"816809":{"label":"16CURL0131_RTE_StaticBanner_160x600_082216.jpg","path":"/studio/assets/1086142/full/16CURL0131_RTE_StaticBanner_160x600_082216.jpg","width":160,"height":600,"contentType":"image/jpeg"},"816827":{"label":"728x90.html","path":"/studio/assets/1086265/original/728x90.html","width":null,"height":null,"contentType":"text/html","children":[{"path":"/studio/assets/1086265/original/assets/728x90_edge.js","width":null,"height":null,"contentType":"text/javascript","bitrate":null},{"path":"/studio/assets/1086265/original/assets/Background3.png","width":728,"height":90,"contentType":"image/png","bitrate":null},{"path":"/studio/assets/1086265/original/assets/CurlysLogo.png","width":96,"height":93,"contentType":"image/png","bitrate":null},{"path":"/studio/assets/1086265/original/assets/edge.6.0.0.min.js","width":null,"height":null,"contentType":"text/javascript","bitrate":null},{"path":"/studio/assets/1086265/original/assets/EnterNow.svg","width":null,"height":null,"contentType":"image/svg+xml","bitrate":null},{"path":"/studio/assets/1086265/original/assets/EnterToWin.svg","width":null,"height":null,"contentType":"image/svg+xml","bitrate":null},{"path":"/studio/assets/1086265/original/assets/PacksF.png","width":160,"height":125,"contentType":"image/png","bitrate":null},{"path":"/studio/assets/1086265/original/assets/RTE_logo.png","width":61,"height":52,"contentType":"image/png","bitrate":null},{"path":"/studio/assets/1086265/original/assets/Win10K2.png","width":273,"height":65,"contentType":"image/png","bitrate":null}]},"816884":{"label":"300x600.html","path":"/studio/assets/1086948/original/300x600.html","width":null,"height":null,"contentType":"text/html","children":[{"path":"/studio/assets/1086948/original/assets/300x600_edge.js","width":null,"height":null,"contentType":"text/javascript","bitrate":null},{"path":"/studio/assets/1086948/original/assets/300x600_edgeActions.js","width":null,"height":null,"contentType":"text/javascript","bitrate":null},{"path":"/studio/assets/1086948/original/assets/BG.jpg","width":300,"height":600,"contentType":"image/jpeg","bitrate":null},{"path":"/studio/assets/1086948/original/assets/CurlysLogo.png","width":96,"height":93,"contentType":"image/png","bitrate":null},{"path":"/studio/assets/1086948/original/assets/edge.6.0.0.min.js","width":null,"height":null,"contentType":"text/javascript","bitrate":null},{"path":"/studio/assets/1086948/original/assets/EnterNow.svg","width":null,"height":null,"contentType":"image/svg+xml","bitrate":null},{"path":"/studio/assets/1086948/original/assets/EnterToWin.svg","width":null,"height":null,"contentType":"image/svg+xml","bitrate":null},{"path":"/studio/assets/1086948/original/assets/Packs2.png","width":247,"height":128,"contentType":"image/png","bitrate":null},{"path":"/studio/assets/1086948/original/assets/RTE_logo.png","width":61,"height":52,"contentType":"image/png","bitrate":null}]},"816885":{"label":"16CURL0131_RTE_StaticBanner_300x600_082216.jpg","path":"/studio/assets/1086958/full/16CURL0131_RTE_StaticBanner_300x600_082216.jpg","width":300,"height":600,"contentType":"image/jpeg"},"816889":{"label":"16CURL0131_RTE_StaticBanner_728x90_082216.jpg","path":"/studio/assets/1086962/full/16CURL0131_RTE_StaticBanner_728x90_082216.jpg","width":728,"height":90,"contentType":"image/jpeg"},"1":{"label":"SC_LeftArrow_up.png","path":"/studio/assets/102777/full/SC_LeftArrow_up.png","width":40,"height":40,"contentType":"image/png"},"2":{"label":"SC_LeftArrow_over.png","path":"/studio/assets/102778/full/SC_LeftArrow_over.png","width":40,"height":40,"contentType":"image/png"},"3":{"label":"SC_RightArrow_up.png","path":"/studio/assets/102779/full/SC_RightArrow_up.png","width":40,"height":40,"contentType":"image/png"},"4":{"label":"SC_RightArrow_over.png","path":"/studio/assets/102780/full/SC_RightArrow_over.png","width":40,"height":40,"contentType":"image/png"},"5":{"label":"SC_CloseBtn_up.png","path":"/studio/assets/102781/full/SC_CloseBtn_up.png","width":26,"height":26,"contentType":"image/png"},"6":{"label":"SC_CloseBtn_over.png","path":"/studio/assets/102782/full/SC_CloseBtn_over.png","width":26,"height":26,"contentType":"image/png"},"7":{"label":"SC_CloseBtn_down.png","path":"/studio/assets/102783/full/SC_CloseBtn_down.png","width":26,"height":26,"contentType":"image/png"},"8":{"label":"SC_MapMarker_active.png","path":"/studio/assets/102784/full/SC_MapMarker_active.png","width":18,"height":30,"contentType":"image/png"},"9":{"label":"SC_MapMarker_inactive.png","path":"/studio/assets/102785/full/SC_MapMarker_inactive.png","width":18,"height":30,"contentType":"image/png"}},"loading":{"strategy":"home"},"formatSettings":{"mobile":null}},"tracking":{"heatMapBaseUrl":"https://fire.spongecell.com","trackingBaseUrl":"https://analytics.spongecell.com/ad_tags","coreIid":"Nl127UL3OGI-LKMFptmkDyE","heatMapEnabled":true,"trackingEnabled":true,"macros":{"placementId":["SPONGECELL_PLACEMENT_ID"],"siteId":["%%TTD_SITE%%","SPONGECELL_SITE_ID"],"activityPixel":["SPONGECELL_ACTIVITY_PIXEL"]},"pixels":{"impression":null,"impressions":[],"dynode":null,"dynodes":[],"core":null,"cores":[],"engagement":"https://insight.adsrvr.org/track/conv/?adv=9etml0z\u0026ct=0:2d1maum\u0026fmt=3","engagements":["https://insight.adsrvr.org/track/conv/?adv=9etml0z\u0026ct=0:2d1maum\u0026fmt=3"],"completion":null,"completions":[],"expansion":null,"expansions":[],"clickThrough":null,"clickThroughs":[],"start":null,"starts":[],"firstQuartile":null,"firstQuartiles":[],"midpoint":null,"midpoints":[],"thirdQuartile":null,"thirdQuartiles":[],"complete":null,"completes":[]},"adTag":{"id":51378283,"name":"Curlys Media_728x90"},"brand":{"id":11624},"campaign":{"id":13235},"container":{"id":12461},"concept":{"id":30602,"targeting":[{"concept_targeting":{"id":2240,"concept_id":30602,"container_id":12461,"raw_data":{"default":true},"targeting":{"item":{"type":"default"}},"created_at":"2016-08-30T13:09:02.000-07:00","updated_at":"2016-08-30T13:09:02.000-07:00"}}]},"frequencyEnabled":false,"creative":{"id":373611,"name":"Curlys Media","width":728,"height":90},"weight":{"value":1.0},"rotationGroup":{"id":43387},"flight":{"id":35284,"name":"Spongecell Exchange - Curly's BBQ- Sweepstakes-Display-Contextual/Keyword/Behavioral Targeting"},"placement":{"id":"CurlysBBQ_728x9_1","name":"Curlys Media_728x90"},"site":{"id":""}},"loading":{"animation":{"type":"circle","bgColor":"rgb(255, 255, 255)","fgColor":"rgb(0, 0, 0)"}}},"tags":{"backup":{"imageUrl":"https://live-ssl.cdn.spongecell.com/studio/assets/1086962/full/16CURL0131_RTE_StaticBanner_728x90_082216.jpg","linkUrl":"http://www.roadtripeats.com","border":{"thickness":1,"color":"rgb(0, 0, 0)"},"html5":true,"size":{"width":728,"height":90}},"studioIframe":{"loading":"initial","size":{"width":728,"height":90},"baseSize":{"width":728,"height":90},"border":{"thickness":1,"color":"rgb(0, 0, 0)"},"iframeUrl":"https://royale-ssl.cdn.spongecell.com/studio/ads/45159/476447","iframeBaseUrl":"https://royale-ssl.cdn.spongecell.com"}},"weight":1.0}},"channels":{"externalPage":true,"feature":true,"mraid":true,"setup":true,"tracking":true,"loading":true},"tags":{"backup":true,"studioIframe":true}}; (function(){var e,t;e="undefined"!=typeof window&&null!==window?window:global,t=null!=e.spongecell?e.spongecell:e.spongecell={},t.Cookie=function(){function e(){}return e.createCookie=function(e,t,n){var i,r;return null==n&&(n=24),navigator.cookieEnabled?(i=new Date,i.setTime(i.getTime()+60*parseInt(n)*60*1e3),r="; expires="+i.toGMTString(),document.cookie=e+"="+t+r+"; path=/"):null},e.readCookie=function(e){var t,n,i,r,a,o;if(!navigator.cookieEnabled)return null;for(o=e+"=",n=document.cookie.split(";"),i=0,r=0,a=n.length;a>r;r++)if(t=n[r]," "===t[0]&&(t=t.substring(1,t.length)),0===t.indexOf(o))return t.substring(o.length,t.length);return null},e}()}).call(this),function(){var e,t;e="undefined"!=typeof window&&null!==window?window:global,t=null!=e.spongecell?e.spongecell:e.spongecell={},t.Browser=function(){function e(){}var t,n;return t=/Android ([2].?[3-9].?[0-9]?|[4-6].?[0-9].?[0-9]?)/i,e.detect=function(e){var n,i,r,a,o,s,l,u,c;return null==e&&(e=navigator.userAgent),o=null!=(s=e.match(/(ipod|iphone|ipad)/i))&&null!=(l=s[1])?l.toLowerCase():void 0,n=/android/i.test(e),a=function(t){var n;return n=e.match(t),parseFloat(null!=n?n[1]:void 0)||""},c=a(/version\/(\d+(\.\d+)?)/i),i=/chrome.+? edge/i.test(e)?{msedge:!0,version:a(/edge\/(\d+(\.\d+)?)/i)}:/chrome|crmo|spotify|crios/i.test(e)?{chrome:!0,version:a(/(?:chrome|crmo|spotify)\/(\d+(\.\d+)?)/i)}:/firefox/i.test(e)?{firefox:!0,version:a(/(?:firefox)[ \/](\d+(\.\d+)?)/i)}:/msie|trident/i.test(e)?(u=a(/(?:msie |rv:)(\d+(\.\d+)?)/i),r={msie:!0,version:u},10>u?r.unsupported=!0:void 0,r):/phantom/i.test(e)?{phantom:!0}:/safari/i.test(e)&&!/android/i.test(e)?{safari:!0,version:c,unsupported:5.2>c}:void 0,o?(null==i&&(i={}),i.ios=!0,i.iosVersion=c,delete i.unsupported,i.mobile=!0):n&&(null==i&&(i={}),i.android=!0,i.androidVersion=a(/android (\d+(\.\d+)?)/i),i.mobile=!0,t.test(e)||(i.unsupported=!0)),null==i&&(i={unsupported:!0}),i},n=e.detect(),e.supported=function(){return!n.unsupported},e.isAndroidSupported=function(){return n.android&&t.test(navigator.userAgent)},e.isAndroidGingerbread=function(){return n.android&&n.androidVersion>=2.3&&n.androidVersion<3},e.isAndroidIceCreamSandwich=function(){return n.android&&n.androidVersion>=4&&n.androidVersion<4.1},e.isAndroidJellyBean=function(){return n.android&&n.androidVersion>=4.1&&n.androidVersion<4.4},e.isAndroidLollipop=function(){return n.android&&n.androidVersion>=5&&n.androidVersion<6},e.isAndroid=function(){return n.android},e.isiOS=function(){return n.ios},e.isIE8=function(){return n.msie&&8===+n.version},e.isIE9=function(){return n.msie&&9===+n.version},e.isIE10=function(){return n.msie&&10===+n.version},e.isIE11=function(){return n.msie&&11===+n.version},e.isIE9Below=function(){return n.msie&&+n.version<=9},e.isIE10Below=function(){return n.msie&&+n.version<=10},e.isIE=function(){return n.msie},e.isiOS5=function(){return n.ios&&5===+n.iosVersion},e.isMobile=function(){return n.android||n.ios||/tablet|[^-]mobi/i.test(navigator.userAgent)},e.isChrome=function(){return n.chrome},e.isFirefox=function(){return n.firefox},e.isSafari=function(){return n.safari},e.isPhantom=function(){return n.phantom},e.isWindowsSafari=function(){return/Windows.*AppleWebKit.*Safari/.test(navigator.userAgent)&&!/Chrome|Spotify/.test(navigator.userAgent)},e.supportsFullscreen=function(){return!this.isIE()&&!this.isWindowsSafari()},e.supportsSrcdoc=function(){return!this.isSafari()&&!this.isChrome()},e.supportsLinkOnload=function(){return!(n.android&&!n.chrome||n.safari&&n.version<6)},e.detectsSrcdoc=function(){return"about:srcdoc"===window.location.href},e}()}.call(this),function(){var e,t,n=[].slice;e="undefined"!=typeof window&&null!==window?window:global,t=null!=e.spongecell?e.spongecell:e.spongecell={},t.Console=function(){function e(){}return e.ENABLED=function(){var e,n;try{return!!(null!=(n=t.Cookie)?n.readCookie("_console_logging"):void 0)}catch(i){return e=i,!1}}(),e.log=function(){var e,t,i;return t=arguments[0],e=2<=arguments.length?n.call(arguments,1):[],this.ENABLED&&window.console?null!=window.console.log.apply?(i=window.console).log.apply(i,[t].concat(n.call(e))):window.console.log(t):void 0},e.debug=function(){var e,i,r,a,o;return i=arguments[0],e=2<=arguments.length?n.call(arguments,1):[],this.ENABLED&&window.console?null!=(null!=(r=window.console.debug)?r.apply:void 0)?(a=window.console).debug.apply(a,[i].concat(n.call(e))):(o=t.Console).log.apply(o,[i].concat(n.call(e))):void 0},e.pad=function(e,t){var n;for(n=e||"";n.length\n'},e.removeWrappers=function(e){var t,n,i,r,a,o;for(null==e&&(e=null),e?n=[document.getElementById(e)]:null==n&&(n=document.querySelectorAll(".outer-wrapper")),o=[],i=0,r=n.length;r>i;i++)t=n[i],o.push(null!=t&&null!=(a=t.parentNode)?a.removeChild(t):void 0);return o},e.onHover=function(e,t){var n,i,r,a,o,s,l,u,c,d,h,p,f;return u=null!=t?t:{},o=u.node,c=u.repeatInterval,o||(this.topOnHoverCallback=e,null==o&&(o=document.querySelectorAll(".wrapper")[0])),a=200,h=32,n=null,i=null,f=function(e){return n=e.pageX,i=e.pageY},p=null,s=null,l=null,d=function(e){return s=n,l=i,p=setTimeout(function(){return r(e)},a)},r=function(t){return function(a){var u,g,m;return g=r.prev,null==n||null==i||null==s||null==l?d(a):(u=Math.abs(n-s)+Math.abs(i-l),m=null==g&&0===u,h>u&&!m?(null!=t.topOnHoverCallback&&(t.topOnHoverCallback(),t.topOnHoverCallback=null),o.removeEventListener("mousemove",f),e!==t.topOnHoverCallback&&(e(),r.prev=null),null!=c?p=setTimeout(function(){return r(a)},c):void 0):(r.prev=m?null:u,d(a)))}}(this),o.addEventListener("mouseenter",function(){return function(e){return s=e.pageX,l=e.pageY,o.addEventListener("mousemove",f),p=setTimeout(function(){return r(e)},a)}}(this)),o.addEventListener("mouseleave",function(){return function(){return o.removeEventListener("mousemove",f),n=i=null,clearTimeout(p)}}(this))},e}()}.call(this),function(){var e,t;e="undefined"!=typeof window&&null!==window?window:global,t=null!=e.spongecell?e.spongecell:e.spongecell={},t.Event=function(){function e(){}return e.onLoad=function(e){return document&&"complete"===document.readyState?void setTimeout(function(){return e()},0):"undefined"!=typeof document.addEventListener?document.addEventListener("DOMContentLoaded",e,!1):"undefined"!=typeof window.addEventListener?window.addEventListener("DOMContentLoaded",e,!1):"undefined"!=typeof window.attachEvent?window.attachEvent("onload",e):void 0},e.on=function(e,t,n){return"undefined"!=typeof document.addEventListener?e.addEventListener(t,n,!1):"undefined"!=typeof document.attachEvent?e.attachEvent("on"+t,n):void 0},e}()}.call(this),function(){var e,t;e="undefined"!=typeof window&&null!==window?window:global,t=null!=e.spongecell?e.spongecell:e.spongecell={},t.Expansion=function(){function n(){}return n.getWindow=function(){var t;return this.allowedAccessToTop()?null!=e&&null!=(t=e.top)?t:window:null!=e?e:window},n.getDocument=function(t){return null==t&&(t="expandable"),this.inIframe()&&"overlay"!==t?e.document:this.getWindow().document},n.documentDimensions=function(){var e,n;return t.Browser.isMobile()?{height:screen.height,width:screen.width}:(e=this.getDocument(),n=this.getWindow(),{height:n.innerHeight||e.documentElement.clientHeight||e.body.clientHeight,width:n.innerWidth||e.documentElement.clientWidth||e.body.clientWidth})},n.inIframe=function(){var t;try{return e!==top}catch(n){return t=n,!0}},n.inFriendlyIframe=function(){var t;try{return void 0===e.parent.location.host?!1:!0}catch(n){return t=n,!1}},n.allowedAccessToTop=function(){return!this.inIframe()||this.inFriendlyIframe()?(t.Console.log("allowed access to parent window"),!0):!1},n.fixedPositionSupported=function(){var e,t,n,i;return t=this.getDocument(),n=1,i=!1,e=t.createElement("div"),e.style.position="fixed",e.style.top="0px",e.style.right="0px",t.body.appendChild(e),"number"==typeof e.offsetTop&&null!==e.offsetTop&&"undefined"!==e.offsetTop&&(n=parseInt(e.offsetTop)),0===n&&(i=!0),e.parentNode.removeChild(e),i},n.panelLargerThanWindow=function(e){var t,n,i;return i=this.getWindow(),t=i.innerHeight?i.document.documentElement.clientHeight:i.document.body.scrollHeight,n=i.innerWidth?i.document.documentElement.clientWidth:i.document.body.scrollWidth,ts?0:s,o=(r-l)/2-1,c=0>o?0:o,t.Browser.isMobile()?["absolute",0,0]:["fixed",Math.round(c),Math.round(d)]},n.calcAbsolutePositions=function(e,n){var i,r,a,o,s,l,u,c,d,h,p,f,g;return null==n&&(n={}),i=this.getDocument(),p=this.getWindow(),o=e.height,h=e.width,n.x=n.x?parseInt(n.x):0,n.y=n.y?parseInt(n.y):0,r=this.documentDimensions().height,a=this.documentDimensions().width,c=this.scrollPositions(),u=c[0],d=c[1],l=d+(r-o)/2-1,g=this.panelLargerThanWindow(e)||0>l?0:l,s=u+(a-h)/2-1,f=0>s?0:s,t.Browser.isMobile()?["absolute",0,0]:["absolute",Math.round(f+n.x),Math.round(g+n.y)]},n.scrollPositions=function(){var e,t,n;return t=this.getDocument(),n=this.getWindow(),e=t.body,"number"==typeof n.pageYOffset?[n.pageXOffset,n.pageYOffset]:e&&(e.scrollLeft||e.scrollTop)?[e.scrollLeft,e.scrollTop]:t.documentElement&&(t.documentElement.scrollLeft||t.documentElement.scrollTop)?[t.documentElement.scrollLeft,t.documentElement.scrollTop]:[0,0]},n.safeFrameExpansionParams=function(e){var t,n,i,r,a,o,s,l,u,c,d,h,p;if(r=e.coords,u=e.initialDims,s=e.expansionDims,a=e.direction,h=e.type,l={push:"push"===h&&$sf.ext.supports()["exp-push"]},"overlay"===h)p=r.win,o=r.exp,c=(p.w-s.width)/2,d=(p.h-s.height)/2,t=r.self,n=o.l>c?c-o.l:o.l-c,i=o.t>d?d-o.t:o.t-d,l.l=-1*n,l.r=+o.l-l.l+s.width-(+o.l+u.width),l.t=-1*i,l.b=+o.t-l.t+s.height-(+o.t+u.height);else switch(null==a&&(a="down"),a){case"left":l.l=s.width-u.width,l.t=s.height>=u.height?u.height-s.height:s.height-u.height;break;case"right":l.r=s.width-u.width,l.t=s.height>=u.height?u.height-s.height:s.height-u.height;break;case"up":l.t=u.height-s.height,l.l=s.width>=u.width?u.width-s.width:s.width-u.width;break;case"down":l.b=s.height-u.height,l.l=s.width>=u.width?u.width-s.width:s.width-u.width}return l},n}()}.call(this),function(){var e,t;e="undefined"!=typeof window&&null!==window?window:global,t=null!=e.spongecell?e.spongecell:e.spongecell={},t.Flash=function(){function e(){}return e.isIE=-1!==navigator.appVersion.indexOf("MSIE")?!0:!1,e.isWin=-1!==navigator.appVersion.toLowerCase().indexOf("win")?!0:!1,e.isOpera=-1!==navigator.userAgent.indexOf("Opera")?!0:!1,e.controlVersion=function(){var e,t,n;n=void 0,e=void 0,t=void 0;try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),n=e.GetVariable("$version")}catch(i){}if(!n)try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),n="WIN 6,0,21,0",e.AllowScriptAccess="always",n=e.GetVariable("$version")}catch(i){}if(!n)try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"),n=e.GetVariable("$version")}catch(i){}if(!n)try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"),n="WIN 3,0,18,0"}catch(i){}if(!n)try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),n="WIN 2,0,0,11"}catch(i){t=i,n=-1}return n},e.getSwfVer=function(){var e,t,n,i,r,a,o,s;return n=-1,null!=navigator.plugins&&navigator.plugins.length>0?(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"])&&(i=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"",t=navigator.plugins["Shockwave Flash"+i].description,e=t.split(" "),r=e[2].split("."),a=r[0],o=r[1],s=e[3],""===s&&(s=e[4]),"d"===s[0]?s=s.substring(1):"r"===s[0]&&(s=s.substring(1),s.indexOf("d")>0&&(s=s.substring(0,s.indexOf("d")))),n=a+"."+o+"."+s):-1!==navigator.userAgent.toLowerCase().indexOf("webtv/2.6")?n=4:-1!==navigator.userAgent.toLowerCase().indexOf("webtv/2.5")?n=3:-1!==navigator.userAgent.toLowerCase().indexOf("webtv")?n=2:this.isIE&&this.isWin&&!this.isOpera&&(n=this.controlVersion()),n},e.detectFlashVer=function(e,t,n){var i,r,a,o,s,l,u;if(u=this.getSwfVer(),a=null,-1===u)return!1;if(0!==u){if(this.isIE&&this.isWin&&!this.isOpera?(i=u.split(" "),r=i[1],a=r.split(",")):a=u.split("."),o=a[0],s=a[1],l=a[2],o>parseFloat(e))return!0;if(o===parseFloat(e)){if(s>parseFloat(t))return!0;if(s===parseFloat(t)&&l>=parseFloat(n))return!0}return!1}},e.html=function(e,n,i,r,a){return null==a&&(a=""),t.Browser.isIE11()?'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n':'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'},e}()}.call(this),function(){var e,t=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};e=["extended","included"],spongecell.Module=function(){function n(){}return n.extend=function(n){var i,r,a;for(i in n)a=n[i],t.call(e,i)<0&&(this[i]=a);return null!=(r=n.extended)&&r.apply(this),this},n.include=function(n){var i,r,a;for(i in n)a=n[i],t.call(e,i)<0&&(this.prototype[i]=a);return null!=(r=n.included)&&r.apply(this),this},n}()}.call(this),!function(e){function t(e,t){return function(){e.apply(t,arguments)}}function n(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],l(e,t(r,this),t(a,this))}function i(e){var t=this;return null===this._state?void this._deferreds.push(e):void u(function(){var n=t._state?e.onFulfilled:e.onRejected;if(null===n)return void(t._state?e.resolve:e.reject)(t._value);var i;try{i=n(t._value)}catch(r){return void e.reject(r)}e.resolve(i)})}function r(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void l(t(n,e),t(r,this),t(a,this))}this._state=!0,this._value=e,o.call(this)}catch(i){a.call(this,i)}}function a(e){this._state=!1,this._value=e,o.call(this)}function o(){for(var e=0,t=this._deferreds.length;t>e;e++)i.call(this,this._deferreds[e]);this._deferreds=null}function s(e,t,n,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=i}function l(e,t,n){var i=!1;try{e(function(e){i||(i=!0,t(e))},function(e){i||(i=!0,n(e))})}catch(r){if(i)return;i=!0,n(r)}}var u=n.immediateFn||"function"==typeof setImmediate&&setImmediate||function(e){setTimeout(e,1)},c=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};n.prototype["catch"]=function(e){return this.then(null,e)},n.prototype.then=function(e,t){var r=this;return new n(function(n,a){i.call(r,new s(e,t,n,a))})},n.all=function(){var e=Array.prototype.slice.call(1===arguments.length&&c(arguments[0])?arguments[0]:arguments);return new n(function(t,n){function i(a,o){try{if(o&&("object"==typeof o||"function"==typeof o)){var s=o.then;if("function"==typeof s)return void s.call(o,function(e){i(a,e)},n)}e[a]=o,0===--r&&t(e)}catch(l){n(l)}}if(0===e.length)return t([]);for(var r=e.length,a=0;ai;i++)e[i].then(t,n)})},"undefined"!=typeof module&&module.exports?module.exports=n:e.Promise||(e.Promise=n)}(this),function(){"use strict";var e,t;t=null!=window.spongecell?window.spongecell:window.spongecell={},e=null!=t.requestMap?t.requestMap:t.requestMap={},t.Net=function(){function n(){}return n.isSSL=function(){var e;return"https:"===document.location.protocol||(null!=(e=document.baseURI)?e.indexOf("https"):void 0)>-1},n.isHttp=function(e){return!!/^https?\:\/\//i.test(e)},n.isHttpEncoded=function(e){return/^https?\%3a\%2f\%2f/i.test(e)},n.encode=function(e){return e?encodeURIComponent(e):null},n.writePixel=function(e,n){var i,r;return t.Net.isHttp(e)?(i=document.createElement("div"),i.setAttribute("style","position:absolute;left:0px;top:0px;visibility:hidden;"),r=document.createElement("img"),r.setAttribute("width",0),r.setAttribute("height",0),r.setAttribute("style","width:0px;height:0px;"),r.setAttribute("src",e),i.appendChild(r),(null!=n?n:document.body).appendChild(i)):void 0},n.writeRequest=function(e){var n;return n=this,new Promise(function(i,r){return t.Browser.isIE9Below()?n.writeScript(e,i,r):n.ajax(e,i,r)})},n.writeScript=function(n,i,r,a,o){var s,l,u;if(null==o&&(o=null),o=null!=o?o:document,this.isSSL()&&(n=n.replace(/^http:\/\//,"https://")),null!=i){if(n+=n.indexOf("?")>0?"&":"?",e[n])return this.nestCallbackFn(e[n],i);n+="callback="+(e[n]=t.Broker.registerCallbackFn(i))}return u=o.createElement("script"),u.defer=u.async=!0,u.src=n,null!=r&&(u.onload=r),u.onerror=null!=a?a:null!=r?r:void 0,(null!=(l=t.Browser)?l.isIE8():void 0)&&(u.onreadystatechange=function(){return"loaded"===this.readyState?r():void 0}),s=o.getElementsByTagName("head")[0],s.appendChild(u)},n.ajax=function(e,t,n,i,r,a){var o,s,l,u;if(null==i&&(i=!1),null==r&&(r={}),null==a&&(a="function"==typeof(o="undefined"!=typeof XMLHttpRequest&&null!==XMLHttpRequest?XMLHttpRequest:ActiveXObject)?new o("MSXML2.XMLHTTP.3.0"):void 0),!a)return this.writeScript.apply(this,arguments);if(l=setTimeout(function(){return a.abort(),n({error:"AJAX request timed out"})},2e3),a.withCredentials=!0,a.onreadystatechange=function(){var e,i,r;if(!(a.readyState<4)){clearTimeout(l);try{e=JSON.parse(a.responseText)}catch(o){return i=o,n({error:i})}switch(r=a.status){case 200:return t(e,a);default:return n({error:"AJAX request responded with a "+r})}}},a.open("GET",e,!0),a.setRequestHeader){for(s in r)u=r[s],a.setRequestHeader(s,u);i&&a.setRequestHeader("X-Requested-With","XMLHttpRequest")}return a.send(""),a},n.getParam=function(e,t,n){var i;return null==n&&(n="&"),null!=(i=this.getParams(t,n)[e])?i:""},n.getParams=function(e,t){var n,i,r,a,o,s;for(o={},s=e.split(t),n=0,r=s.length;r>n;n++)a=s[n],i=a.split("="),2===i.length&&(o[i[0]]=i[1]);return o},n.nestCallbackFn=function(e,n){var i,r;return i=e.split(".").pop(),r=t.callbacks[i],t.callbacks[i]=function(){var e,i,a;e=[];for(i in arguments)a=arguments[i],e[i]="object"==typeof a?t.Utils.extend({},a):a;return r.apply(null,arguments),void n.apply(null,e)}},n.scrubTargeting=function(e,t){var n;return"ysa"===e&&(n=decodeURIComponent(t).match(/yud=(.*)/))?n[1]:t},n}()}.call(this),function(){"use strict";var e,t,n=[].slice;e="undefined"!=typeof window&&null!==window?window:global,t=null!=e.spongecell?e.spongecell:e.spongecell={},t.Utils=function(){function e(){}var i;return i=new RegExp('^(http|https)://[^ "]+$'),e.intervals={},e.extend=function(e){var t,n,i,r,a,o;if(arguments.length>1)for(t=Array.prototype.slice.call(arguments,1,arguments.length),i=0,r=t.length;r>i;i++)if(a=t[i],"object"==typeof a)for(n in a)o=a[n],e[n]=o;return e},e.generateIID=function(){return"xxxx-xxxx-Axxx-xxxx".replace(/x/g,function(){return new Number(36*Math.random()|0).toString(36)})},e.generateElementIID=function(){return"xxxxxxxx".replace(/x/g,function(){return new Number(36*Math.random()|0).toString(36)})},e.flashSupported=function(){return t.Flash.detectFlashVer(9,0,0)},e.getUrl=function(e){return t.Utils.isString(e)?e:t.Utils.isObject(e)?t.Net.isSSL()?null!=e?e.ssl:void 0:null!=e?e.no_ssl:void 0:void 0},e.convertUrls=function(e,n){var i,r,a,o,s,l,u;if(n){for(o=[],r=0,a=n.length;a>r;r++)i=n[r],l=e[i],o.push(null!=l?e[i]=t.Utils.getUrl(l):void 0);return o}s=[];for(i in e)u=e[i],s.push(null!=u?e[i]=t.Utils.getUrl(u):void 0);return s},e.toQueryString=function(e){var t,n,i;if(n=[],null!=e)for(t in e)i=e[t],n.push(t+"="+i);return n.join("&")},e.toCamelCase=function(e){return e.toLowerCase().replace(/_(.)/g,function(e,t){return t.toUpperCase()})},e.isFunction=function(e){return"function"==typeof e},e.isObject=function(e){return"object"==typeof e},e.isString=function(e){return"string"==typeof e},e.compact=function(e){var t,n,i,r;for(null==e&&(e=[]),t=[],n=0,i=e.length;i>n;n++)r=e[n],r&&t.push(r);return t},e.shuffle=function(e){var t,n,i;for(t=e.length;--t>0;)n=~~(Math.random()*(t+1)),i=e[n],e[n]=e[t],e[t]=i;return e},e.random=function(e){return null==e&&(e=1e9),Math.floor(Math.random()*e)},e.keys=function(e){var t,n,i;n=[];for(t in e)i=e[t],e.hasOwnProperty(t)&&n.push(t);return n},e.include=function(e,t){return-1!==e.join("|").indexOf(t)?!0:!1},e.isUrl=function(e){return i.test(e)},e.debounce=function(e,t,i){var r;return r=null,function(){var a,o,s;return a=1<=arguments.length?n.call(arguments,0):[],s=this,o=function(){return i||e.apply(s,a),r=null},r?clearTimeout(r):i&&e.apply(s,a),r=setTimeout(o,t||100)}},e.setInterval=function(e,t,n){var i,r,a;return r=this.random(),a=this,i=function(t,n,r){return function(){var o;if(a.intervals[r])return!1;if("undefined"==typeof n||n-->0){setTimeout(i,t);try{e.call(null)}catch(s){throw o=s,n=0,o.toString()}}}}(t,n,r),setTimeout(i,t),r},e.clearInterval=function(e){return this.intervals[e]=1},e}()}.call(this),function(){var e,t;e="undefined"!=typeof window&&null!==window?window:global,t=null!=e.spongecell?e.spongecell:e.spongecell={},t.Iframe=function(){function e(){}var n,i,r;return n="&",e.parse=function(e,r){var a,o,s,l,u,c,d,h,p,f,g,m,v,w,y,k,b,E,T,I;if(null==e&&(e=""),null==r&&(r={}),e.indexOf(";$;")>=0&&(n=";$;"),-1!==e.indexOf("?")){e=e.replace(/.+?\?/,""),i(e,r),d=t.Net.getParams(e,n),p=null!=(f=d.placementId)?f:"",p&&p.length>0&&(r.placementId=p),b=null!=(g=d.siteId)?g:"",b&&b.length>0&&(r.siteId=b),E=null!=(m=d.targeting)?m:"",E&&E.length>0&&(r.targeting=E),k=null!=(v=d.signalData)?v:"",k&&k.length>0&&(r.targeting={ysa:k}),o=null!=(w=d.adTagId)?w:"",o&&o.length>0&&(r.adTagId=o),a=null!=(y=d.activeCreativeId)?y:"",a&&a.length>0&&(r.activeCreativeId=a),c=d.heatMapStartDate,u=d.heatMapStartDate,((null!=c?c.length:void 0)||(null!=u?u.length:void 0))&&(null==r.channels&&(r.channels={}),null==(s=r.channels).remote&&(s.remote={}),r.channels.remote.heatMapStartDate=c,r.channels.remote.heatMapEndDate=u),T=d.trackingEnabled,(null!=T?T.length:void 0)&&(null==r.channels&&(r.channels={}),null==(l=r.channels).tracking&&(l.tracking={}),r.channels.tracking.trackingEnabled="true"===T);for(h in d)I=d[h],r[h]=I}return r},i=function(e,t){var i,r,a,o,s,l,u;if(l="clickTag.?.?.?.?.?=([^("+n+")#]*)",s=new RegExp(l,"g"),o=e.match(s),null!=o){for(i=0,u=[];i0&&(t[a.slice(0,r)]=a.slice(r+1)),u.push(++i);return u}},e.addMessageListener=function(e,t){return null==t&&(t=window),null!=t.addEventListener?t.addEventListener("message",r(e),!1):null!=t.attachEvent?t.attachEvent("onmessage",r(e)):void 0},r=function(e){return function(n){var i,r;if("mocha-zero-timeout"!==n.data)try{i=JSON.parse(n.data)}catch(a){return r=a,void t.Console.debug("Iframe parse error: %o",r)}return e(i,n)}},e}()}.call(this),function(){var e,t;e="undefined"!=typeof window&&null!==window?window:global,t=null!=e.spongecell?e.spongecell:e.spongecell={},t.Macros=function(){function e(){this.dynodeObjects={},this.dynamicValues={},this.values={},this.thirdPartyMacroValues={},this.defaultDynamicValues={},this.defaultDynamicValues[r("signal.id")]="",this.defaultDynamicValues[r("signal.name")]="",this.defaultDynamicValues[r("sv.id")]="fallback",this.defaultDynamicValues[r("sv.name")]="fallback",this.defaultDynamicValues[r("item.id")]="",this.defaultDynamicValues[r("item.name")]=""}var n,i,r,a;return e.THIRD_PARTY_PIXEL_NAMES=["impression","dynode","engagement","completion","expansion","clickThrough","landingPages","start","firstQuartile","midpoint","thirdQuartile","complete"],i=null,e.get=function(){return i||(i=new t.Macros),i},e.prototype.dynodeResponse=function(e){var t,n,i,a,o,s,l,u,c,d,h,p,f,g,m,v,w,y,k,b,E;if(t={},v=[],w=[],k=[],b=[],e.signals){for(p=e.signals,n=0,c=p.length;c>n;n++)if(m=p[n],v.push(m.id),w.push(m.name),m.signalValues){for(f=m.signalValues,s=0,d=f.length;d>s;s++)y=f[s],k.push(y.id);for(g=m.signalValues,l=0,h=g.length;h>l;l++)y=g[l],b.push(y.value)}v.length>0&&(t[r("signal.id")]=v),w.length>0&&(t[r("signal.name")]=w),k.length>0&&(t[r("sv.id")]=k),b.length>0&&(t[r("sv.name")]=b)}if(a=[],o=[],e.items&&e.items.length>0){i=e.items[0],a.push(i.id);for(u in i)if(E=i[u],null!=E?E.text:void 0){o.push(E.text);break}t[r("item.id")]=a,t[r("item.name")]=o}return this.addDynodeObject(e.id,t)},e.prototype.addDynodeObject=function(e,t){var n,i,r;this.dynodeObjects[e]=t,i=[];for(n in t)r=t[n],i.push(r instanceof Array?this.dynamicValues[n]?this.dynamicValues[n]=this.dynamicValues[n].concat(r):this.dynamicValues[n]=r:void 0);return i},e.prototype.init=function(e,i){var r,o,s,l,u,c,d,h,p,f,g,m,v,w,y,k,b,E;n(this.values,"flight.id",null!=(l=e.flight)?l.id:void 0),n(this.values,"flight.name",null!=(u=e.flight)?u.name:void 0),n(this.values,"creative.id",null!=(p=e.creative)?p.id:void 0),n(this.values,"creative.name",null!=(f=e.creative)?f.name:void 0),n(this.values,"creative.width",null!=(g=e.creative)?g.width:void 0),n(this.values,"creative.height",null!=(m=e.creative)?m.height:void 0),n(this.values,"tag.id",null!=(v=e.adTag)?v.id:void 0),n(this.values,"tag.name",null!=(w=e.adTag)?w.name:void 0),n(this.values,"placement.id",null!=(y=e.placement)?y.id:void 0),n(this.values,"placement.name",null!=(k=e.placement)?k.name:void 0),n(this.values,"weight",null!=(c=e.weight)?c.value:void 0),n(this.values,"concept.id",null!=(d=e.concept)?d.id:void 0),n(this.values,"site.name",null!=(h=e.site)?h.id:void 0),s=new RegExp("^([A-Za-z]+)[0-9]+$"),b=[];for(r in i)E=i[r],o=r.match(s),b.push(o&&t.Macros.THIRD_PARTY_PIXEL_NAMES.indexOf(o[1])>-1?this.thirdPartyMacroValues[a(r)]=E:void 0);return b},e.prototype.replace=function(e,t){return e=this.replaceValues(e,this.values),e=this.replaceValues(e,this.thirdPartyMacroValues),e=(null!=t?t.sp_id:void 0)?this.replaceValues(e,this.dynodeObjects[t.sp_id]):this.replaceValues(e,this.dynamicValues),e=this.replaceValues(e,this.defaultDynamicValues),e=e.replace(/\[clickTag.*?\]/g,""),e=e.replace(/\[rand\]/g,Math.floor(1e10*Math.random())),e=e.replace(/\[timestamp\]/g,(new Date).getTime().toString())},e.prototype.replaceValues=function(e,t){var n,i;for(n in t)i=t[n],e=e.replace(RegExp(n,"g"),this.macroToValue(i));return e},e.prototype.macroToValue=function(e){var t;return t=e instanceof Array?encodeURIComponent(e.join(",")):e},n=function(e,t,n){return e[r(t)]=encodeURIComponent(n)},r=function(e){return"\\$\\{"+e+"\\}"},a=function(e){return"%"+e+"%"},e}()}.call(this),function(){var e,t;e="undefined"!=typeof window&&null!==window?window:global,t=null!=e.spongecell?e.spongecell:e.spongecell={},t.Tracker=function(){function e(e){var t,n;for(t in e)n=e[t],this[t]=n;this.adVersion=this.AD_VERSION_PLATFORM,null==this.iid&&(this.iid="xxxx-xxxx-Axxx-xxxx".replace(/x/g,function(){return new Number(36*Math.random()|0).toString(36)})),this.trackOnce={ENGAGEMENT:!1,MOUSEOVER:!1},this.featureEvents={},this.defaultOptions={}}return e.prototype.METRIC={IMPRESSION:"IMPRESSION",ENGAGEMENT:"ENGAGEMENT",MOUSEOVER:"MOUSEOVER",START:"START",COMPLETION:"COMPLETION",CLICK_THROUGH:"CLICK_THROUGH",DYNODE:"DYNODE",CORE:"CORE",INTERACTION:"INTERACTION",TIME:"TIME",EXPANSION:"EXPANSION",ITEMS_REQUEST:"ITEMS_REQUEST"},e.prototype.AD_VERSION_PLATFORM="PLATFORM",e.prototype.SINGLE_ITEM_METRICS=["INTERACTION"],e.prototype.trackEvent=function(e){switch(this.cacheUuids(e),e.action){case"clickThrough":return this.trackClickThrough(e);case"mouseOver":return this.track("MOUSEOVER",{feature:e.feature,description:"Mouse over "+e.feature});case"clickEvent":return this.trackHeatMap(e);case"play":return this.trackPlay(e.feature,e.baseFeature,e.engaged);case"pause":return this.trackPause(e.feature,e.baseFeature);case"unpause":return this.trackUnpause(e.feature,e.baseFeature);case"replay":return this.trackReplay(e.feature,e.baseFeature);case"played":return this.trackPlayed(e.feature,e.percentage,e.baseFeature);case"seek":return this.track("INTERACTION",{feature:e.feature,description:"Seek Video",data:e.data,baseFeature:e.baseFeature});case"mute":return this.track("INTERACTION",{feature:e.feature,description:"Muted Video",data:e.data,baseFeature:e.baseFeature});case"unmute":return this.track("INTERACTION",{feature:e.feature,description:"Unmuted Video",data:e.data,baseFeature:e.baseFeature});case"enterFullscreen":return this.track("INTERACTION",{feature:e.feature,description:"Entered Full Screen",data:e.data});case"exitFullscreen":return this.track("INTERACTION",{feature:e.feature,description:"Exited Full Screen",data:e.data});case"timeStart":return this.timerStart();case"timeStop":return this.timerStop();case"engagement":return this.track("ENGAGEMENT",e);case"start":return this.trackStart(e.feature,e);case"completion":return this.trackCompletion(e.feature,e);case"mobileMapSwipe":return this.track("INTERACTION",{feature:e.feature,description:"Map Swipe",data:e.data});case"mobileMapClickThrough":return this.track("CLICK_THROUGH",{feature:e.feature,description:e.description,data:e.data}),this.track("INTERACTION",{feature:e.feature,description:e.description,data:e.data}),this.trackCompletion(e.feature,e);case"mapGeocoded":return this.track("INTERACTION",{feature:e.feature,description:"IP Geocoded",data:e.data,baseFeature:e.baseFeature,featureId:e.featureId});case"slideView":return this.track("ENGAGEMENT",e),this.track("INTERACTION",{feature:e.feature,description:e.description,data:e.data,i:e.i,baseFeature:e.baseFeature,featureId:e.featureId,item_id:e.item_id}),this.trackStart(e.feature,e);case"mapInteraction":return this.track("INTERACTION",{feature:e.feature,description:e.description,data:e.data,baseFeature:e.baseFeature}),this.trackCompletion(e.feature,e);case"itemsRequest":return this.trackItemsRequest(e);default:return this.track(e.action,e)}},e.prototype.trackClickThrough=function(e){return this.track("ENGAGEMENT",e),this.track("INTERACTION",e),this.track("CLICK_THROUGH",e),this.trackHeatMap(e) },e.prototype.trackHeatMap=function(e){var n,i,r,a,o;return null==e&&(e={}),a=e.x,o=e.y,n=null!=(i=e.partition)?i:"Creative",null!=a&&null!=o?(t.Console.log("HEATMAP POINT ("+n+"): "+a+", "+o),r=this.heatmapBaseURL+"/create_point?x="+a+"&y="+o+"&partition="+n+"&event=click&heatmap="+this.creative.id,null!=e.elapsed&&(r+="&elapsed="+e.elapsed),this.writePixel(r)):void 0},e.prototype.trackItemsRequest=function(e){return this.track(this.METRIC.ITEMS_REQUEST,e)},e.prototype.trackPlay=function(e,t,n){return null==n&&(n=!0),n&&this.track("ENGAGEMENT",{feature:e,baseFeature:t}),this.trackStart(e,{baseFeature:t}),this.track("INTERACTION",{feature:e,description:"Started Video",baseFeature:t})},e.prototype.trackReplay=function(e,t){return this.track("INTERACTION",{feature:e,description:"Replayed "+e,baseFeature:t})},e.prototype.trackPause=function(e,t){return this.track("INTERACTION",{feature:e,description:"Paused "+e,baseFeature:t})},e.prototype.trackUnpause=function(e,t){return this.track("INTERACTION",{feature:e,description:"Unpaused "+e,baseFeature:t})},e.prototype.trackPlayed=function(e,t,n){return this.trackOncePerFeature("INTERACTION",e,{description:"Viewed "+t+"%",baseFeature:n,eventName:"INTERACTION"+t}),100===t?this.trackCompletion(e,{description:"Viewed 100%",baseFeature:n}):void 0},e.prototype.trackOncePerFeature=function(e,t,n){var i,r,a,o,s,l;return null==n&&(n={}),i=null!=(s=n.baseFeature)?s:"unknown",null==n.feature&&(n.feature=t),null==(r=this.featureEvents)[i]&&(r[i]={}),null==(a=this.featureEvents[i])[t]&&(a[t]={START:!1,COMPLETION:!1}),o=null!=(l=n.eventName)?l:e,delete n.eventName,this.featureEvents[i][t][o]!==!0&&this.track(e,n),this.featureEvents[i][t][o]=!0},e.prototype.trackStart=function(e,t){return null==t&&(t={}),this.trackOncePerFeature("START",e,t)},e.prototype.trackCompletion=function(e,t){return null==t&&(t={}),this.trackStart(e,t),this.trackOncePerFeature("COMPLETION",e,t)},e.prototype.trackDynamic=function(e,t){return null==e&&(e={}),null==t&&(t=this.METRIC.DYNODE),this.track(t,e)},e.prototype.timerStart=function(){return this.timer=t.Utils.setInterval(function(e){return function(){return e.trackTime()}}(this),500,180)},e.prototype.timerStop=function(){return t.Utils.clearInterval(this.timer)},e.prototype.trackTime=function(){return null==this.timeSpent&&(this.timeSpent=0),this.timeSpent+=.5,this.timeSpent%5===0&&this.timeSpent<=90?this.track("TIME",{duration:this.timeSpent}):void 0},e.prototype.trackOpen=function(){return this.track("EXPANSION"),this.timerStart()},e.prototype.trackClose=function(e){return this.track("INTERACTION",{description:e}),this.timerStop()},e.prototype.track=function(e,n){var i,r,a,o,s,l,u,c,d,h,p,f,g,m,v,w,y,k;if(null==n&&(n={}),e=e.toUpperCase(),this.uuids&&(n=this.addUuids(n,e)),this.trackOnce[e]===!1)this.trackOnce[e]=!0;else if(this.trackOnce[e]===!0)return;if(l=t.Console.pad("Tracking "+e+":",24),w=n.feature||"",n.feature&&n.baseFeature&&(w+=" ("+n.baseFeature+")"),l+=t.Console.pad(w,24),n.description&&(l+=t.Console.pad(n.description,32)),n.data&&(l+=t.Console.pad("("+n.data+")",32)),null!=n.i&&(l+=t.Console.pad("("+n.i+")",32)),n.pixel&&(l+=n.pixel),t.Console.group(l),y=this.reportBaseURL+"/"+this.adTag.id+"?",u=[],i=function(){return function(e,n,i){return null==i&&(i=!1),u.push([e,encodeURIComponent(n)].join("=")),t.Console.groupCollapsedSupported()?t.Console.log(e+": "+n):void 0}}(this),i("type",e),n.creativeOptions){c=n.creativeOptions;for(s in c)k=c[s],i(s,k)}d=this.defaultOptions;for(s in d)k=d[s],"items"!==s&&(r=(null!=(h=this.defaultOptions.items)?h.length:void 0)>0&&null!=(null!=(p=n.elementAction)?p.itemIndex:void 0),["item_uuid","item_id"].indexOf(s)>-1&&r?(a=null!=(f=this.defaultOptions.items[null!=(g=n.elementAction)?g.itemIndex:void 0])?f.id:void 0,o=null!=(m=this.defaultOptions.items[null!=(v=n.elementAction)?v.itemIndex:void 0])?m.item_id:void 0,null!=a&&i("item_id",a),null!=a&&i("item_uuid",o)):null==n[s]&&i(s,k));return n.feature&&i("screen",n.feature),n.featureId&&i("screen_id",n.featureId),n.baseFeature&&i("base_screen",n.baseFeature),n.description&&i("description",n.description),n.duration&&i("duration",n.duration),n.item_id&&i("item_id",n.item_id),n.item_uuid&&i("item_uuid",n.item_uuid),n.sp_id&&i("sp_id",n.sp_id),n.srcdoc&&i("srcdoc",n.srcdoc),n.sv_id&&i("sv_id",n.sv_id),n.data&&i("data",n.data),null!=n.i&&i("i",n.i),i("flight_id",this.flight.id),i("creative_id",this.creative.id),i("iid",this.iid),this.container&&i("container_id",this.container.id),this.concept&&i("concept_id",this.concept.id),this.rotationGroup&&i("rg_id",this.rotationGroup.id),this.weight&&i("weight",this.weight.value),i("ad_version",n.adVersion?n.adVersion:this.adVersion),this.placement.id&&i("external_placement_id",this.placement.id),this.site.id&&i("external_site_id",this.site.id),this.ysa&&i("ysa",this.ysa),this.idfa&&i("idfa",this.idfa),this.aaid&&i("aaid",this.aaid),this.puid&&i("puid",this.puid),this.xaid&&i("xaid",this.xaid),this.xcid&&i("xcid",this.xcid),this.xcrv&&i("xcrv",this.xcrv),this.xauc&&i("xauc",this.xauc),i("anticache",(new Date).getTime()),i("e","mc2"),y+=u.join("&"),t.Console.groupCollapsedSupported()&&t.Console.log("Analytics URL: "+y),this.writePixel(y),"IMPRESSION"===e&&n.item_id||this.trackExternalPixels(e,n),t.Console.groupEnd()},e.prototype.trackExternalPixels=function(e,n){var i,r,a,o,s,l;if(e=t.Utils.toCamelCase(e),null!=(null!=(s=this.pixels[n.feature])?s[e]:void 0))return this.trackPixel(this.pixels[n.feature][e],e,n);if(o=this.pixels[e+"s"]){for(l=[],i=0,r=o.length;r>i;i++)a=o[i],l.push(this.trackPixel(a,e,n));return l}return this.trackPixel(this.pixels[e],e,n)},e.prototype.trackPixel=function(e,n,i){return e&&(e=t.Macros.get().replace(e,i),t.Console.log("PIXEL: "+e),this.writePixel(e)),this.trackActivityPixel(n,i)},e.prototype.trackActivityPixel=function(e,n){var i;return i=this.pixels.activity,i?(i=t.Macros.get().replace(i,n),i=i.replace("[activity]",e),i=i.replace("[feature]",n.feature||""),i=i.replace("[base_feature]",n.baseFeature||n.feature||""),this.writePixel(i),t.Console.log("Activity pixel: "+i)):void 0},e.prototype.writePixel=function(e){return this.trackingDisabled?void 0:t.Net.writePixel(e,document.getElementById("spongecell-ad-"+this.iid))},e.prototype.trackImpression=function(e){return this.track(this.METRIC.IMPRESSION,e),this.frequencyEnabled?this.increaseFrequencyPixel():void 0},e.prototype.increaseFrequencyPixel=function(){var e,n;return e=t.Utils.generateIID(),n="http://rt.spongecell.com/v1/r/"+this.brand.id+"?"+this.container.id+"-"+this.concept.id+"_frequency="+e,this.writePixel(n)},e.prototype.inspect=function(){return"Campaign: "+this.campaign.id+" Flight: "+(this.flight.id||"")+" Ad Tag: "+(this.adTag.id||"")+" Creative: "+this.creative.id+" Placement: "+(this.placement.id||"")+" Site: "+this.site.id+" IID: "+this.iid},e.prototype.cacheUuids=function(e){return(null!=e?e.uuids:void 0)?this.uuids=e.uuids:void 0},e.prototype.addUuids=function(e,t){var n;return this.uuids&&this.SINGLE_ITEM_METRICS.indexOf(t)>-1?e.item_uuid=null!=(n=this.uuids.single)?n:this.uuids.all:this.uuids&&null==e.item_uuid&&(e.item_uuid=this.uuids.all),delete e.uuids,e},e}()}.call(this),function(){var e,t;e="undefined"!=typeof window&&null!==window?window:global,t=null!=e.spongecell?e.spongecell:e.spongecell={},t.BaseChannel=function(){function e(e,t,n){this.iid=e,this.options=t,this.impTag=n,this._init()}return e.prototype._init=function(){},e.prototype.start=function(){},e.prototype.send=function(e){return t.Console.log("BaseChannel received %o",e)},e.prototype.findClickTags=function(e){var n,i,r;n={};for(i in e)r=e[i],0===i.indexOf("clickTag")&&(t.Net.isHttp(r)||t.Net.isHttpEncoded(r)?t.Net.isHttpEncoded(r)&&(r=decodeURIComponent(r)):r="",n[i]=r);return n},e.prototype.mergeClickTagsAndLandingPages=function(e,n,i){var r,a,o,s,l,u,c,d,h,p,f;null==i&&(i=!1),u={},r=e.clickTag;for(s in n){f=n[s],a=null!=(d=e["clickTag"+s])?d:r,c=a&&(null!=f&&"function"==typeof f.indexOf?f.indexOf(a):void 0)<0?a+f:f,c=t.Macros.get().replace(c),h=this.impTag.params;for(o in h)p=h[o],c=c.replace("%"+o+"%",p);u[s]=c}if(!i)for(s in e)f=e[s],l=s.replace("clickTag",""),null==u[l]&&(u[l]=f);return u},e}()}.call(this),function(){"use strict";var e,t;e="undefined"!=typeof window&&null!==window?window:global,t=null!=e.spongecell?e.spongecell:e.spongecell={},t.Broker=function(){function e(){}var n,i,r,a,o,s,l;return n=null!=t.brokerChannels?t.brokerChannels:t.brokerChannels={},i=null!=t.brokerClients?t.brokerClients:t.brokerClients={},s=null!=t.brokerChannels?t.brokerChannels:t.brokerChannels={},a=function(){return t.Utils.random(1e5)+"_"+ +new Date},o=function(e){return s[e]},l=function(e,t){return s[e]=t},r=function(e){var n;return n="call"+e,null==t.callbacks&&(t.callbacks={}),t.callbacks[n]=function(t){return s[e](t)},"spongecell.callbacks."+n},e.registerCallbackFn=function(e){var n;return n=a(),l(n,function(){var i,r,a,o;e.apply(null,arguments),r=t.requestMap,a=[];for(i in r)o=r[i],a.push(o.indexOf(n)>-1?delete r[i]:void 0);return a}),r(n)},e.registerChannels=function(e,i,r){var a,o,s,l,u;t.Console.group("Registering Channels for %s, %o",e,i),o={};for(u in i)l=i[u],a=function(){switch(u){case"feature":return t.FeatureChannel;case"hooks":return t.HooksChannel;case"loading":return t.LoadingChannel;case"mraid":return t.MRAIDChannel;case"nav":return t.NavChannel;case"panel":return t.PanelChannel;case"remote":return t.RemoteChannel;case"setup":return t.SetupChannel;case"tracking":return t.TrackingChannel;case"vpaid":return t.VPAIDChannel;case"externalPage":return t.ExternalPageChannel}}(),null!=a&&(t.Console.debug("Initializing Channel: %s with %o",u,l),o[u]=new a(e,l,r));n[e]=o;for(u in o)s=o[u],t.Console.debug("Starting Channel: %s",u),s.start();return t.Console.groupEnd(),o},e.registerClient=function(e,t){return null==i[e]&&(i[e]=[]),i[e].push(t)},e.clientRegistered=function(e){var t;return(null!=(t=i[e])?t.length:void 0)>0},e.sendOnChannel=function(e,t){var r,a,o,s,l,u;if(e.iid&&(r=n[e.iid]),null!=r&&(o=r[e.topic],null!=o&&o.send(e,t)),null!=(a=i[e.topic])){for(u=[],s=0,l=a.length;l>s;s++)t=a[s],u.push(t(e));return u}},e}()}.call(this),function(){var e,t;e="undefined"!=typeof window&&null!==window?window:global,t=null!=e.spongecell?e.spongecell:e.spongecell={},t.CreativeTag=function(){function e(e,n){this.iid=e,t.Utils.extend(this,n),this._init()}return e.prototype._init=function(){},e.prototype.html=function(){},e}()}.call(this),function(){var e,t,n=function(e,t){return function(){return e.apply(t,arguments)}};e="undefined"!=typeof window&&null!==window?window:global,t=null!=e.spongecell?e.spongecell:e.spongecell={},t.ImpressionTag=function(){function e(e,i){var r,a,o,s,l,u,c,d,h,p,f,g,m,v,w,y;this.params=i,this._trackEngagement=n(this._trackEngagement,this),this.params.iframeSrc&&t.Iframe.parse(this.params.iframeSrc,this.params),this.creativeSettings=o=this.rotate(e.creatives),this.creativeImpressionTrackingOptions={},a=null!=(d=o.channels.tracking)?d.coreIid:void 0,u="${",c="iid}",s=a&&a!==u+c?a:t.Utils.generateIID(),this.iid=s,this.size=o.size,this.processors=null!=(h=o.processors)?h:{},t.Console.debug("Impression Tag %s initializing with %o rotated to %o",this.iid,e,o),p=e.channels;for(y in p)l=p[y],"object"==typeof l&&(null==(r=o.channels)[y]&&(r[y]={}),t.Utils.extend(o.channels[y],l));f=o.channels;for(y in f)e=f[y],null!=(null!=(g=this.params)&&null!=(m=g.channels)?m[y]:void 0)&&t.Utils.extend(e,this.params.channels[y]);t.Broker.registerChannels(this.iid,o.channels,this),t.Browser.isMobile()&&this.sendChannelMessage("mraid",{fn:"loadMraid"}),this.sendDebugMessage({description:"tag_init",type:"start"}),this._initTags(o.tags),t.Console.group(null!=(v=this.tracker)?v.inspect():void 0),t.Console.log("Ad Tag: %O",this),t.Console.log("Ad Server Parameters: %O",this.params),t.Console.groupEnd(),(null!=(w=this.params.targeting)?w.ysa:void 0)&&(this.creativeImpressionTrackingOptions.ysa=this.params.targeting.ysa),this.sendChannelMessage("hooks",{description:"before_ad_load_hook",type:"beforeAdLoad"})}return e.prototype._initTags=function(e){var n,i,r,a,o,s;r=[];for(o in e)switch(a=e[o],t.Console.debug("Initializing Tag: %s tag with %o",o,a),o){case"backup":a.clickTags=this.clickTags,a.tracker=this.tracker,a.macros={},i=this.params;for(n in i)s=i[n],a.macros[n]=s;r.push(this.backupTag=new t.BackupTag(this.iid,a));break;case"flash":r.push(this.flashTag=new t.FlashTag(this.iid,a));break;case"studioIframe":r.push(this.studioTag=new t.StudioIframeTag(this.iid,a,this.params));break;case"studioScript":r.push(this.studioTag=new t.StudioScriptTag(this.iid,a,this.params));break;case"panel":this.panelTag=new t.PanelTag(t.Utils.generateIID(),a,this),r.push(this.sendChannelMessage("panel",{description:"setup_panel_or_site_window",action:"setup"}));break;case"vpaid":this.vpaid=!0,r.push(this.studioTag=new t.VPAIDTag(this.iid,a,this.params));break;default:r.push(void 0)}return r},e.prototype.render=function(){var e,n,i;return e=null!=document.body?this._html():""+this._html()+"",n=function(n){return function(){var i,r,a,o,s,l,u,c;return n.studioTag&&n.studioTag.size&&(n.topDimensions={width:null!=(i=n.studioTag.size)?i.width:void 0,height:null!=(r=n.studioTag.size)?r.height:void 0}),(null!=(a=n.studioTag)?a.iframeBusted:0)?void 0:(null!=n.params.currentScript?(t.Console.debug("Rendering self after %o: %o",n.params.currentScript),n.params.currentScript.insertAdjacentHTML("afterEnd",e)):document.write(e),n._addLoadListeners(),n.hasBackup||null!=(o=n.studioTag)&&o.delegateEvents(),document.close(),n.studioTag&&!n.hasBackup&&n.sendChannelMessage("loading",{action:"renderPreloader"}),null!=(s=n.tracker)&&s.trackImpression(n.creativeImpressionTrackingOptions),n._setupEngagementTracking(),n.sendChannelMessage("panel",{description:"setup_initial_expansion",action:"initialExpansion"}),n.sendDebugMessage({description:null!=(l=null!=(u=n.creativeImpressionTrackingOptions.creativeOptions)?u.screen:void 0)?l:null!=(c=n.creativeImpressionTrackingOptions.creativeOptions)?c.feature:void 0,type:"IMPRESSION"}),n.sendDebugMessage({description:"tag_init",type:"stop"}))}}(this),i=function(t){return function(){var n,i;return i=function(){var n,i;return i=null!=(n=t.studioTag["interface"])?n._slot:void 0,i.insertAdjacentHTML("beforeend",e),t.hasBackup?void 0:t.studioTag.delegateEvents()},t.studioTag["interface"].subscribe(i,"initAd",t),n=function(){var e;return null!=(e=t.tracker)?e.trackImpression(t.creativeImpressionTrackingOptions):void 0},t.studioTag["interface"].subscribe(n,"AdImpression",t)}}(this),this.vpaid?i():window.mraid&&window.mraid.addEventListener?this.sendChannelMessage("mraid",{fn:"setup"},n):n()},e.prototype._setupEngagementTracking=function(){var e;return e=document.querySelectorAll(".outer-wrapper")[0],null==e&&(e=document.getElementById("spongecell-ad-"+this.iid)),t.Engagement.onHover(this._trackEngagement,{node:e})},e.prototype._trackEngagement=function(){var e;return null!=(e=this.tracker)?e.trackEvent({action:"engagement"}):void 0},e.prototype._html=function(){var e,t,n,i,r,a,o,s,l,u,c,d,h,p;if(null==(e=this.creativeImpressionTrackingOptions).creativeOptions&&(e.creativeOptions={}),!(null!=(o=this.panelTag)?o.director:void 0)||this.panelTag.director.allowedAccessToTop()){for(s=[this.flashTag,this.studioTag,this.backupTag],r=0,a=s.length;a>r;r++)if(h=s[r],null!=h?h.checkEnvironment(this.creativeImpressionTrackingOptions.creativeOptions):void 0){t=h;break}}else t=this.backupTag;return t===this.backupTag&&(this.hasBackup=!0),p=null!=(l=null!=t&&null!=(u=t.size)?u.width:void 0)?l:this.size.width,n=null!=(c=null!=t&&null!=(d=t.size)?d.height:void 0)?c:this.size.height,i='
\n '+(null!=t?t.html():void 0)+"\n
"},e.prototype.random=function(){return Math.floor(1e9*Math.random())},e.prototype.rotate=function(e){var n,i,r,a,o,s,l,u;if(l={},null!=this.params.activeCreativeId)return e[this.params.activeCreativeId];s=function(){var t;t=[];for(a in e)u=e[a],t.push(a);return t}().length>1,r=0,o=Math.random(),s&&t.Console.group("Rotating");for(i in e){if(n=e[i],r+=n.weight,r>o){l=n;break}s&&t.Console.log(i+": "+100*n.weight+"%")}return s&&t.Console.groupEnd(),l},e.prototype._addLoadListeners=function(){var e;return t.Event.onLoad(function(e){return function(){return e.panelTag&&e.sendChannelMessage("panel",{description:"start_auto_expand_timer",action:"autoExpand"}),e.sendChannelMessage("hooks",{description:"after_page_load_hook",type:"afterPageLoad"})}}(this)),null!=(e=this.backupTag)?e.addClickthroughListener():void 0},e.prototype.sendDebugMessage=function(e){return this.sendChannelMessage("debug",e)},e.prototype.sendChannelMessage=function(e,n,i){return null==i&&(i=null),null!=t.Broker?(null==n.iid&&(n.iid=this.iid),null==n.topic&&(n.topic=e),t.Broker.sendOnChannel(n,i)):void 0},e}()}.call(this); (function(){var n,t,e=function(n,t){function e(){this.constructor=n}for(var r in t)o.call(t,r)&&(n[r]=t[r]);return e.prototype=t.prototype,n.prototype=new e,n.__super__=t.prototype,n},o={}.hasOwnProperty;n="undefined"!=typeof window&&null!==window?window:global,t=null!=n.spongecell?n.spongecell:n.spongecell={},t.ExternalPageChannel=function(n){function t(){return t.__super__.constructor.apply(this,arguments)}return e(t,n),t.prototype._init=function(){},t.prototype.send=function(n){var t,e;return e=window,"dynamicItems"===n.subTopic&&(t={topic:"ExternalPage:Items",dynamicItems:n.data}),e.parent.postMessage(JSON.stringify(t),"*")},t}(t.BaseChannel)}).call(this); (function(){var e,t,n,i=function(e,t){function n(){this.constructor=e}for(var i in t)o.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},o={}.hasOwnProperty;t="undefined"!=typeof window&&null!==window?window:global,n=null!=t.spongecell?t.spongecell:t.spongecell={},e=1e3,n.FeatureChannel=function(t){function o(){return o.__super__.constructor.apply(this,arguments)}return i(o,t),o.prototype._init=function(){var e,t,i,o,r,s,l,a,u,d,p,c;if(this.featureTracked={},this.dynodeRequests={},n.Utils.convertUrls(this.options,["ipLocateUrl","locationsUrl"]),null!=this.options.features){for(u=this.options.features,p=[],t=0,r=u.length;r>t;t++)e=u[t],n.Utils.convertUrls(e,["url"]),p.push(n.Net.isSSL()&&null!=(null!=(d=e.fallback)?d.items:void 0)?function(){var t,n,r,u;for(r=e.fallback.items,u=[],t=0,n=r.length;n>t;t++)i=r[t],u.push(function(){var e;e=[];for(s in i){a=i[s],l=[];for(o in a)c=a[o],l.push(o);e.push(l.indexOf("src")>=0&&l.indexOf("src.https")>=0?a.src=a["src.https"]:void 0)}return e}());return u}():void 0);return p}},o.prototype.start=function(){var e,t,n,i,o;if(this.options.features){for(i=this.options.features,o=[],t=0,n=i.length;n>t;t++)e=i[t],o.push(this.writeDynode(e));return o}},o.prototype.send=function(t,i){var o,r,s;return r=n.Utils.isObject(t.feature)?t.feature:{id:t.featureId,name:t.featureName,type:t.featureType},o=this._findFeature(r),null==o&&(n.Console.debug("No Feature matching %o found in settings",r),o=r),s=function(e){return function(n){return e._doFeature(o,t,i,n)}}(this),null==o.processorId?o.url&&"feed"===o.type?(n.callbacks["fed"+o.feedId]=s,n.Net.writeScript(o.url)):s():(this.dynodeRequests[o.id].handleResponse=s,this.checkDynode(o)?void 0:this.dynodeRequests[o.id].dynodeTimer=window.setTimeout(function(e){return function(){return e.checkDynode(o,!0)}}(this),e))},o.prototype.writeDynode=function(e){var t,i,o,r,s,l,a,u,d,p,c,f,h,g,y,m,v;if(e.processorId&&e.id){if(i=this.dynodeRequests[e.id]={response:e.fallback,processorId:e.processorId},i.response.dynamic=!0,null!=e.url){y=e.url+"&iid="+this.iid+"&tzo="+(new Date).getTimezoneOffset(),c=null!=(d=null!=(p=this.impTag.params)?p.flashData:void 0)?d:{};for(r in c)v=c[r],r.match(/^signals\[\d+\]$/)&&(y+="&"+r+"="+v);for(h=null!=(f=e.signalValues)?f:[],o=0,s=h.length;s>o;o++)if(m=h[o],-1===y.indexOf("signals["+m.signalId+"]")){if(l=m.value,null!=this.impTag.params){g=this.impTag.params;for(r in g){v=g[r],u=new RegExp("%"+r+"%","g");try{l=l.replace(u,decodeURIComponent(v))}catch(k){n.Console.log("Ignoring unsubstituted macro passed through spongecellParams: "+v)}}}e.url=y+="&signals["+m.signalId+"]="+encodeURIComponent(l)}return this.impTag.sendChannelMessage("debug",{description:"tag_dynode",type:"start"}),t=function(t){return function(n){return i.responded?void 0:(i.responded=!0,i.response=n,t._trackDynode("complete",i,e.url),t.checkDynode(e))}}(this),a=function(t){return function(){return i.responded?void 0:(i.responded=!0,t._trackDynode("fail",i,e.url),t.checkDynode(e))}}(this),n.Net.writeScript(y,t,a)}return n.Console.log("Dynode: no dynamic url specified; using static fallback")}},o.prototype.checkDynode=function(e,t){var n;return null==t&&(t=!1),n=this.dynodeRequests[e.id],t&&!n.responded&&this._trackDynode("timeout",n,e.url),((null!=n?n.responded:void 0)||t)&&null!=(null!=n?n.handleResponse:void 0)&&(n.handleResponse(n.response),window.clearTimeout(this.dynodeRequests[e.id].dynodeTimer)),null!=n?n.responded:void 0},o.prototype._trackDynode=function(e,t,i){var o,r,s,l,a,u,d,p,c,f,h,g,y,m,v,k,T;if(e&&!this.featureTracked.hasOwnProperty(i)){if(this.featureTracked[i]=e,s=null!=(d=t.response)?d.items:void 0,r=null!=(p=t.response)&&null!=(c=p.items)&&null!=(f=c[0])?f.id:void 0,t.response)try{n.Macros.get().dynodeResponse(t.response,this.impTag)}catch(_){}if(k=[],null!=(h=t.response)?h.signals:void 0)for(g=t.response.signals,o=0,a=g.length;a>o;o++)if(m=g[o],m.signalValues)for(y=m.signalValues,l=0,u=y.length;u>l;l++)v=y[l],k.push(v.id);if(k.length>0&&(T=k.join(",")),this.impTag.tracker.trackDynamic({description:e,sp_id:t.processorId,item_id:r,sv_id:T}),this.impTag.sendChannelMessage("debug",{description:"tag_dynode",type:e}),null!=r&&(this.impTag.tracker.defaultOptions.item_id=r),null!=s&&(this.impTag.tracker.defaultOptions.items=s),null!=T)return this.impTag.tracker.defaultOptions.sv_id=this.impTag.tracker.defaultOptions.sv_id?this.impTag.tracker.defaultOptions.sv_id+","+T:T}},o.prototype._doFeature=function(e,t,i,o){var r,s,l,a,u,d,p,c,f,h;return null==o&&(o=null),r=o,null!=o&&(f=function(e){var t,i,o;if("object"==typeof e){i=[];for(t in e)o=e[t],i.push("href"===t&&"string"==typeof o?e[t]=n.Macros.get().replace(o):"object"==typeof o?f(o):void 0);return i}}),"map"===e.type?("function"==typeof f&&f(r),s=null!=(l=t.params)?l:{},s.upload_id=null!=(a=null!=(u=e.importId)?u:null!=(d=e["import"])?d.id:void 0)?a:null!=(p=e.settings)&&null!=(c=p["import"])?c.id:void 0,null!=s.origin?n.Net.writeScript(this.options.locationsUrl+"?"+n.Utils.toQueryString(s),function(){return null!=i?i.apply(this,arguments):void 0}):n.Net.writeScript(""+this.options.ipLocateUrl,function(e){return function(t){return s.origin=t.city+", "+t.region+", "+t.country,s.lat=t.latitude,s.lng=t.longitude,n.Net.writeScript(e.options.locationsUrl+"?"+n.Utils.toQueryString(s),function(){return null!=i?i.apply(this,arguments):void 0})}}(this))):null!=o&&t.studio?(h=this._studioTransform(e,o),"function"==typeof f&&f(r),"function"==typeof i?i(h):void 0):("function"==typeof f&&f(r),"function"==typeof i?i(null!=o?o:e):void 0)},o.prototype._findFeature=function(e){var t,n,i,o,r,s,l;if(this.options.features&&(e.id||e.name||e.type))for(r=this.options.features,i=0,o=r.length;o>i;i++)if(t=r[i],n=e.id?e.id===t.id:e.name?e.name.toLowerCase()===(null!=(s=t.name)?s.toLowerCase():void 0):e.type?e.type.toLowerCase()===(null!=(l=t.type)?l.toLowerCase():void 0):void 0)return t;return null},o.prototype._studioTransform=function(e,t){var i,o,r,s,l,a,u,d,p,c,f,h;return o=null!=(p=e.dynamicAssets)?p:{},a=null!=(c=e.dynamicLandingPages)?c:{},t.items=function(){var e,p,c,g,y,m,v,k;for(y=t.items,k=[],e=0,c=y.length;c>e;e++){for(l=y[e],f={assets:{},landingPages:{},properties:{}},v=null!=(m=t.properties)?m:{},p=0,g=v.length;g>p;p++)d=v[p],h=l[d.name],h&&null!=d.variant&&(h=h[d.variant]),h&&(null!=o[d.id]?(i={},n.Utils.extend(i,o[d.id]),n.Utils.extend(i,h),i.url=h.src,i.name=d.name,delete h.src,f.assets[i.id]=i):null!=(u=a[d.id])?(h.href&&(s=h.href.replace(/\[clickTag.*?\]/g,this.impTag.clickTags.clickTag)),f.landingPages[u.key]=s):(h.name=d.name,f.properties[d.id]=h,"layout"===d.name&&h&&(f.layout=h.text)));r=this.findClickTags(this.impTag.params),f.landingPages=this.mergeClickTagsAndLandingPages(r,f.landingPages,!0),k.push(f)}return k}.call(this)},o}(n.BaseChannel)}).call(this); (function(){var e,r,n=function(e,r){function n(){this.constructor=e}for(var t in r)i.call(r,t)&&(e[t]=r[t]);return n.prototype=r.prototype,e.prototype=new n,e.__super__=r.prototype,e},i={}.hasOwnProperty;e="undefined"!=typeof window&&null!==window?window:global,r=null!=e.spongecell?e.spongecell:e.spongecell={},r.MRAIDChannel=function(e){function i(){return i.__super__.constructor.apply(this,arguments)}return n(i,e),i.prototype.init=function(){return this.resizeListener=!1},i.prototype.send=function(e,n){var i,t,a,d,o,s,l,u,p,m,c;switch(c=function(e){return function(){return e.resizeListener?void 0:(e.resizeListener=!0,mraid.addEventListener("stateChange",function(r){return"default"===r?e.closeCallback():void 0}))}}(this),e.fn){case"setup":return d=function(){return mraid.isViewable()?(n(),mraid.removeEventListener("ready",d)):mraid.addEventListener("viewableChange",function(e){return e?(n(),mraid.removeEventListener("viewableChange",arguments.callee)):void 0})},mraid&&"loading"===mraid.getState()?mraid.addEventListener("ready",d):n();case"resize":return this.resize=!0,this.closeCallback=null!=(o=e.params)?o.closeCallback:void 0,"undefined"!=typeof mraid&&null!==mraid&&mraid.resize(),c();case"expand":return this.resize=!0,this.closeCallback=null!=(s=e.params)?s.closeCallback:void 0,"undefined"!=typeof mraid&&null!==mraid&&mraid.expand(),c();case"openLink":return"undefined"!=typeof mraid&&null!==mraid?mraid.open(e.params):void 0;case"checkVideoSupport":return i="undefined"!=typeof mraid&&null!==mraid?mraid.supports("inlineVideo"):void 0,n(i);case"playVideo":return"undefined"!=typeof mraid&&null!==mraid?mraid.playVideo(e.params):void 0;case"setResizeProperties":return a="undefined"!=typeof mraid&&null!==mraid&&"function"==typeof mraid.getCurrentPosition?mraid.getCurrentPosition():void 0,e.params.offsetY||(e.params.offsetY=(null!=a?a.y:void 0)>e.params.height-e.params.baseHeight?e.params.height-e.params.baseHeight:0),delete e.params.baseHeight,delete e.params.baseWidth,"undefined"!=typeof mraid&&null!==mraid?mraid.setResizeProperties(e.params):void 0;case"setExpandProperties":return"undefined"!=typeof mraid&&null!==mraid?mraid.setExpandProperties({width:null!=(l=e.params.width)?l:screen.width,height:null!=(u=e.params.height)?u:screen.height}):void 0;case"close":return"default"===("undefined"!=typeof mraid&&null!==mraid?mraid.getState():void 0)&&this.resize?!1:"undefined"!=typeof mraid&&null!==mraid?mraid.close():void 0;case"useCustomClose":return"undefined"!=typeof mraid&&null!==mraid?mraid.useCustomClose(null!=(p=e.params)?p:!0):void 0;case"loadMraid":return t=document.createElement("script"),t.setAttribute("type","text/javascript"),t.setAttribute("src","mraid.js"),t.onerror=function(){return console.error("MRAID not found, serving Mobile Web")},t.onload=function(){return console.log("MRAID found, serving Mobile In-App")},document.head.appendChild(t);default:return null!=(m=r.Console)?m.log("mraid request: Unknown Function: "+e.fn):void 0}},i}(r.BaseChannel)}).call(this); (function(){var t,e,n=function(t,e){function n(){this.constructor=t}for(var i in e)s.call(e,i)&&(t[i]=e[i]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},s={}.hasOwnProperty;t="undefined"!=typeof window&&null!==window?window:global,e=null!=t.spongecell?t.spongecell:t.spongecell={},e.SetupChannel=function(s){function i(){return i.__super__.constructor.apply(this,arguments)}return n(i,s),i.prototype._init=function(){return this.checkFullScreenAccess(),e.Utils.convertUrls(this.options,["creativeSwfUrl","sharedBaseUrl","studioAssetBaseUrl"]),e.Utils.convertUrls(this.options.urls),null!=this.options.assets?this.baseAssets():void 0},i.prototype.start=function(){var t,n,s,i;return t=this.findClickTags(this.impTag.params),this.options.flashData=null!=(n=null!=(s=this.impTag.params)?s.flashData:void 0)?n:{},this.options.mergedLandingPages=this.mergeClickTagsAndLandingPages(t,this.options.landingPages),this.options.clickTagsAndLandingPages=this.flashifyLandingPages(t,this.options.mergedLandingPages),e.Console.log("ClickTags + Landing Pages: %o",this.options.clickTagsAndLandingPages),e.Utils.extend(this.options,this.options.clickTagsAndLandingPages),0===(null!=(i=this.options.features)?i.length:void 0)&&(this.options.features=null),this.impTag.clickTags=t},i.prototype.send=function(t,n){var s,i;return t.action?"polite"===t.action?(this.impTag.sendDebugMessage({description:"tag_polite",type:"start"}),i=!!document&&"complete"===document.readyState,s=function(t){return function(){return n(),t.impTag.sendDebugMessage({description:"tag_polite",type:"stop"})}}(this),i?s():e.Event.onLoad(s)):void 0:(e.Engagement.removeWrappers(),this.options.mraid="undefined"!=typeof mraid&&null!==mraid,this.options.topDimensions=this.impTag.topDimensions,n(this.options))},i.prototype.baseAssets=function(){var t,e,n,s,i;s=this.options.assets,i=[];for(n in s)t=s[n],t.url=""+this.options.studioAssetBaseUrl+t.path,i.push(function(){var n,s,i,o,r;for(o=null!=(i=t.children)?i:[],r=[],n=0,s=o.length;s>n;n++)e=o[n],r.push(e.url=""+this.options.studioAssetBaseUrl+e.path);return r}.call(this));return i},i.prototype.flashifyLandingPages=function(t,e){var n,s,i,o,r,a;i={};for(s in e)a=e[s],s="clickTag"+s,i[s]=a;for(s=n=1;20>=n;s=++n)null==i[o="clickTag"+s]&&(i[o]=null!=(r=t.clickTag)?r:"");return i},i.prototype.checkFullScreenAccess=function(){var n,s,i,o;if(t!==top)try{if(s=null!=t?t.frameElement:void 0,i=t,!s)return void(this.options.disableFullScreen=!0);for(o=[];s&&i&&i!==top;)s.setAttribute("allowfullscreen","true"),s.setAttribute("webkitallowfullscreen","true"),s.setAttribute("mozallowfullscreen","true"),i=i.parent,o.push(s=i.frameElement);return o}catch(r){return n=r,e.Console.log("Iframe not configured for full-screen video"),this.options.disableFullScreen=!0}},i}(e.BaseChannel)}).call(this); (function(){var t,i,s=function(t,i){function s(){this.constructor=t}for(var o in i)a.call(i,o)&&(t[o]=i[o]);return s.prototype=i.prototype,t.prototype=new s,t.__super__=i.prototype,t},a={}.hasOwnProperty;t="undefined"!=typeof window&&null!==window?window:global,i=null!=t.spongecell?t.spongecell:t.spongecell={},i.TrackingChannel=function(t){function a(){return a.__super__.constructor.apply(this,arguments)}return s(a,t),a.prototype._init=function(){var t;t=this.impTag.params,this._checkParam(t,"activityPixel")&&(this.options.pixels.activity=t.activityPixel),this._checkParam(t,"placementId")&&(this.options.placement.id=t.placementId),this._checkParam(t,"siteId")&&(this.options.site.id=t.siteId),this._checkParam(t,"idfa")&&(this.options.idfa=t.idfa),this._checkParam(t,"aaid")&&(this.options.aaid=t.aaid),this._checkParam(t,"puid")&&(this.options.puid=t.puid),this._checkParam(t,"xaid")&&(this.options.xaid=t.xaid),this._checkParam(t,"xcid")&&(this.options.xcid=t.xcid),this._checkParam(t,"xcrv")&&(this.options.xcrv=t.xcrv),this._checkParam(t,"xauc")&&(this.options.xauc=t.xauc);try{i.Macros.get().init(this.options,this.impTag.params)}catch(s){}return i.Utils.convertUrls(this.options,["heatMapBaseUrl","trackingBaseUrl"]),this.options.heatMapTrackingEnabled=this.options.heatMapEnabled,this.options.heatmapBaseURL=this.options.heatMapBaseUrl,this.options.reportBaseURL=this.options.trackingBaseUrl,this.options.trackingDisabled=!this.options.trackingEnabled,this.options.iid=this.iid,this.impTag.tracker=this.tracker=new i.Tracker(this.options),this.impTag.creativeImpressionTrackingOptions={}},a.prototype.send=function(t){return this.tracker.trackEvent(t)},a.prototype._checkParam=function(t,i){return t[i]&&!this._isMacro(i,t.activityPixel)},a.prototype._assignThirdPartyPixel=function(t){var i,s;return i=t+"s",(null!=(s=this.options.pixels[i])?s.length:void 0)>0?this.options.pixels[t]=this.options.pixels[i][0]:void 0},a.prototype._isMacro=function(t,i){var s,a,o;o=this.options.macros[t]||[];for(s in o)if(a=o[s],i===a)return!0;return!1},a}(i.BaseChannel)}).call(this); (function(){var n,e,t=function(n,e){function t(){this.constructor=n}for(var i in e)r.call(e,i)&&(n[i]=e[i]);return t.prototype=e.prototype,n.prototype=new t,n.__super__=e.prototype,n},r={}.hasOwnProperty;n="undefined"!=typeof window&&null!==window?window:global,e=null!=n.spongecell?n.spongecell:n.spongecell={},e.LoadingChannel=function(n){function e(){return e.__super__.constructor.apply(this,arguments)}return t(e,n),e.prototype._init=function(){},e.prototype.start=function(){},e.prototype.send=function(n){return this[n.action]()},e.prototype.styleTag=function(n){var e,t,r,i,s,a,o;return s=n.preloaderType,o=n.width,i=n.height,e=n.bgColor,r=n.fgColor,a=document.createElement("style"),t="#preloader-container {\n background: "+e+";\n margin: auto;\n width: '100%';\n height: '100%';\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n}\n.centered-container {\n position: absolute;\n top: 50%;\n left: 50%;\n -webkit-transform: translate(-50%, -50%);\n -ms-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}",t+=function(){switch(s){case"circle":return this.circleCss(r);case"bars":return this.barsCss(r);case"dots":return this.dotsCss(r)}}.call(this),a.innerHTML=t,a},e.prototype.preloaderContainer=function(n){var e,t;return t=document.createElement("div"),t.id="preloader-container",e=document.createElement("div"),e.className="centered-container",e.innerHTML=function(){switch(n){case"circle":return this.circleHtml();case"bars":return this.barsHtml();case"dots":return this.dotsHtml()}}.call(this),t.appendChild(e),t},e.prototype.removeLoader=function(){var n;return n=document.getElementById("preloader-container"),null!=n?n.parentNode.removeChild(n):void 0},e.prototype.renderPreloader=function(){var n,e,t;if("none"!==this.options.animation.type&&document.body&&window!==top)return e=this.options.animation.fgColor,n=this.options.animation.bgColor,t=this.options.animation.type,document.head.appendChild(this.styleTag({preloaderType:t,width:this.impTag.size.width,height:this.impTag.size.height,bgColor:n,fgColor:e})),document.body.appendChild(this.preloaderContainer(t))},e.prototype.circleHtml=function(){return'
'},e.prototype.barsHtml=function(){return'
\n
\n
\n
\n
\n
\n
'},e.prototype.dotsHtml=function(){return'
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
'},e.prototype.dotsCss=function(n){return".sk-circle {\n margin: 100px auto;\n width: 40px;\n height: 40px;\n position: relative;\n}\n.sk-circle .sk-child {\n width: 100%;\n height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n}\n.sk-circle .sk-child:before {\n content: '';\n display: block;\n margin: 0 auto;\n width: 15%;\n height: 15%;\n background-color: "+n+";\n border-radius: 100%;\n -webkit-animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;\n animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;\n}\n.sk-circle .sk-circle2 {\n -webkit-transform: rotate(30deg);\n -ms-transform: rotate(30deg);\n transform: rotate(30deg); }\n.sk-circle .sk-circle3 {\n -webkit-transform: rotate(60deg);\n -ms-transform: rotate(60deg);\n transform: rotate(60deg); }\n.sk-circle .sk-circle4 {\n -webkit-transform: rotate(90deg);\n -ms-transform: rotate(90deg);\n transform: rotate(90deg); }\n.sk-circle .sk-circle5 {\n -webkit-transform: rotate(120deg);\n -ms-transform: rotate(120deg);\n transform: rotate(120deg); }\n.sk-circle .sk-circle6 {\n -webkit-transform: rotate(150deg);\n -ms-transform: rotate(150deg);\n transform: rotate(150deg); }\n.sk-circle .sk-circle7 {\n -webkit-transform: rotate(180deg);\n -ms-transform: rotate(180deg);\n transform: rotate(180deg); }\n.sk-circle .sk-circle8 {\n -webkit-transform: rotate(210deg);\n -ms-transform: rotate(210deg);\n transform: rotate(210deg); }\n.sk-circle .sk-circle9 {\n -webkit-transform: rotate(240deg);\n -ms-transform: rotate(240deg);\n transform: rotate(240deg); }\n.sk-circle .sk-circle10 {\n -webkit-transform: rotate(270deg);\n -ms-transform: rotate(270deg);\n transform: rotate(270deg); }\n.sk-circle .sk-circle11 {\n -webkit-transform: rotate(300deg);\n -ms-transform: rotate(300deg);\n transform: rotate(300deg); }\n.sk-circle .sk-circle12 {\n -webkit-transform: rotate(330deg);\n -ms-transform: rotate(330deg);\n transform: rotate(330deg); }\n.sk-circle .sk-circle2:before {\n -webkit-animation-delay: -1.1s;\n animation-delay: -1.1s; }\n.sk-circle .sk-circle3:before {\n -webkit-animation-delay: -1s;\n animation-delay: -1s; }\n.sk-circle .sk-circle4:before {\n -webkit-animation-delay: -0.9s;\n animation-delay: -0.9s; }\n.sk-circle .sk-circle5:before {\n -webkit-animation-delay: -0.8s;\n animation-delay: -0.8s; }\n.sk-circle .sk-circle6:before {\n -webkit-animation-delay: -0.7s;\n animation-delay: -0.7s; }\n.sk-circle .sk-circle7:before {\n -webkit-animation-delay: -0.6s;\n animation-delay: -0.6s; }\n.sk-circle .sk-circle8:before {\n -webkit-animation-delay: -0.5s;\n animation-delay: -0.5s; }\n.sk-circle .sk-circle9:before {\n -webkit-animation-delay: -0.4s;\n animation-delay: -0.4s; }\n.sk-circle .sk-circle10:before {\n -webkit-animation-delay: -0.3s;\n animation-delay: -0.3s; }\n.sk-circle .sk-circle11:before {\n -webkit-animation-delay: -0.2s;\n animation-delay: -0.2s; }\n.sk-circle .sk-circle12:before {\n -webkit-animation-delay: -0.1s;\n animation-delay: -0.1s; }\n\n@-webkit-keyframes sk-circleBounceDelay {\n 0%, 80%, 100% {\n -webkit-transform: scale(0);\n transform: scale(0);\n } 40% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n}\n\n@keyframes sk-circleBounceDelay {\n 0%, 80%, 100% {\n -webkit-transform: scale(0);\n transform: scale(0);\n } 40% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n}"},e.prototype.barsCss=function(n){return".spinner {\n margin: 100px auto;\n width: 50px;\n height: 70px;\n text-align: center;\n font-size: 10px;\n}\n\n.spinner > div {\n background-color: "+n+";\n height: 100%;\n width: 6px;\n display: inline-block;\n\n -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;\n animation: sk-stretchdelay 1.2s infinite ease-in-out;\n}\n\n.spinner .rect2 {\n -webkit-animation-delay: -1.1s;\n animation-delay: -1.1s;\n}\n\n.spinner .rect3 {\n -webkit-animation-delay: -1.0s;\n animation-delay: -1.0s;\n}\n\n.spinner .rect4 {\n -webkit-animation-delay: -0.9s;\n animation-delay: -0.9s;\n}\n\n.spinner .rect5 {\n -webkit-animation-delay: -0.8s;\n animation-delay: -0.8s;\n}\n\n@-webkit-keyframes sk-stretchdelay {\n 0%, 40%, 100% { -webkit-transform: scaleY(0.4) }\n 20% { -webkit-transform: scaleY(1.0) }\n}\n\n@keyframes sk-stretchdelay {\n 0%, 40%, 100% {\n transform: scaleY(0.4);\n -webkit-transform: scaleY(0.4);\n } 20% {\n transform: scaleY(1.0);\n -webkit-transform: scaleY(1.0);\n }\n}"},e.prototype.circleCss=function(n){return".sp {\n width: 32px;\n height: 32px;\n clear: both;\n margin: 25% auto;\n}\n\n/* Spinner Circle Rotation */\n.sp-circle {\n border: 5px rgba(0, 0, 0, 0.25) solid;\n border-top: 5px "+n+" solid;\n border-radius: 50%;\n -webkit-animation: spCircRot .6s infinite linear;\n animation: spCircRot .6s infinite linear;\n}\n\n@-webkit-keyframes spCircRot {\n from {\n -webkit-transform: rotate(0deg);\n }\n to {\n -webkit-transform: rotate(359deg);\n }\n}\n@keyframes spCircRot {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}"},e}(e.BaseChannel)}).call(this); (function(){var t,e,i=function(t,e){function i(){this.constructor=t}for(var n in e)r.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},r={}.hasOwnProperty;t="undefined"!=typeof window&&null!==window?window:global,e=null!=t.spongecell?t.spongecell:t.spongecell={},e.BackupTag=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return i(r,t),r.prototype._init=function(){return e.Utils.convertUrls(this,["imageUrl"])},r.prototype.checkEnvironment=function(t){return t.screen="DEFAULT",!0},r.prototype.html=function(){var t,i,r,n,c,o,s,l,a,h,u;if(i=(null!=(o=this.border)?o.thickness:void 0)?this.size.height-2*this.border.thickness:this.size.height-2,r=(null!=(s=this.border)?s.thickness:void 0)?this.size.width-2*this.border.thickness:this.size.width-2,t=(null!=(l=this.border)?l.thickness:void 0)?"border: "+this.border.thickness+"px solid "+this.border.color+";":"border: 1px solid #000;",n='',null!=this.linkUrl){h=this.linkUrl,h=h.replace(/\*\*click_tag\*\*/g,encodeURIComponent(this.clickTags.clickTag)),h=h.replace(/\*\*iid\*\*/g,this.tracker.iid),h=h.replace(/\*\*random\*\*/g,e.Utils.random()),h=h.replace(/\*\*placement_id\*\*/g,this.tracker.placement.id?e.Net.encode(this.tracker.placement.id):""),h=h.replace(/\*\*site_id\*\*/g,this.tracker.site.id?e.Net.encode(this.tracker.site.id):""),this.html5&&e.Utils.isUrl(this.clickTags.clickTag)&&(h=this.clickTags.clickTag+h),a=this.macros;for(c in a)u=a[c],h=h.replace("%"+c+"%",u);return''+n+""}return n},r.prototype.addClickthroughListener=function(){var t,i;return i=function(t){return function(){return t.clicked?(event.preventDefault(),event.stopPropagation()):t.tracker.trackExternalPixels("click_through",{}),t.clicked=!0,setTimeout(function(){return t.clicked=!1},400)}}(this),t=document.getElementById("backup_link"),t?e.Event.on(t,"click",function(){return function(){return i()}}(this)):void 0},r}(e.CreativeTag)}).call(this); (function(){var i,e,n=function(i,e){function n(){this.constructor=i}for(var o in e)t.call(e,o)&&(i[o]=e[o]);return n.prototype=e.prototype,i.prototype=new n,i.__super__=e.prototype,i},t={}.hasOwnProperty;i="undefined"!=typeof window&&null!==window?window:global,e=null!=i.spongecell?i.spongecell:i.spongecell={},e.StudioTag=function(i){function t(i,e,n){this.iid=i,this.params=n,t.__super__.constructor.apply(this,arguments)}return n(t,i),t.prototype.checkEnvironment=function(i){return this.checkBrowser()?!0:(i.nohtml5=!0,!1)},t.prototype.checkBrowser=function(){return this.platform=e.Browser.isMobile()?"mobile":"desktop",e.Browser.supported()},t.prototype._setupMRAIDDimensions=function(){var i;return i=mraid.getMaxSize&&mraid.getMaxSize(),i?(null==this.size&&(this.size={}),this.size.width=i.width,this.size.height=i.height):void 0},t}(e.CreativeTag)}).call(this),function(){var i,e,n=function(i,e){function n(){this.constructor=i}for(var o in e)t.call(e,o)&&(i[o]=e[o]);return n.prototype=e.prototype,i.prototype=new n,i.__super__=e.prototype,i},t={}.hasOwnProperty;i="undefined"!=typeof window&&null!==window?window:global,e=null!=i.spongecell?i.spongecell:i.spongecell={},e.StudioIframeTag=function(i){function t(){return t.__super__.constructor.apply(this,arguments)}return n(t,i),t.prototype._init=function(){var i,n,t,o,r,s;if(e.Utils.convertUrls(this,["backgroundImageUrl","iframeUrl","iframeBaseUrl"]),this.responsive=!this.size,e.Browser.isMobile()){try{e.Expansion.allowedAccessToTop()&&("undefined"!=typeof window&&null!==window?window.innerWidth:void 0)<=1&&("undefined"!=typeof window&&null!==window?window.innerHeight:void 0)<=1&&!window.mraid?(s=top.window.innerWidth,t=top.window.innerHeight,null!=(o=window.frameElement)&&(o.style.width=s+"px"),null!=(r=window.frameElement)&&(r.style.height=t+"px")):(i=this._getDimensionsFromWindow(),s=i.width,t=i.height)}catch(d){n=d,e.Console.log("Error setting dimensions of current frame: ",n),i=this._getDimensionsFromWindow(),s=i.width,t=i.height}return null!=this.size?this.size:this.size={width:s,height:t}}return null!=this.size?this.size:this.size={width:window.innerWidth,height:window.innerHeight}},t.prototype._getDimensionsFromWindow=function(){var i,e;return e=("undefined"!=typeof window&&null!==window?window.innerWidth:void 0)&&screen.width>("undefined"!=typeof window&&null!==window?window.innerWidth:void 0)?window.innerWidth:screen.width,i=("undefined"!=typeof window&&null!==window?window.innerHeight:void 0)&&screen.height>("undefined"!=typeof window&&null!==window?window.innerHeight:void 0)?window.innerHeight:screen.height,{width:e,height:i}},t.prototype.html=function(){var i,n,t,o,r,s,d,l,h,u,a,p,w;return this.responsive&&window.mraid&&this._setupMRAIDDimensions(),t="",s=this.size.width,o=this.size.height,r="width: "+s+"px; height: "+o+"px; position: absolute; top: -1px; left: -1px;",this.backgroundImageUrl&&(t+='
\n \n
'),w=this.getIframeId()+"-wrapper",t+=e.Engagement.wrapperHtml({id:w})+'\n',n=null!=(h=null!=(u=this.border)?u.thickness:void 0)?h:1,i=null!=(a=null!=(p=this.border)?p.color:void 0)?a:"transparent",l=this.size.width,d=this.size.height,'
\n '+t+"\n
"},t.prototype.delegateEvents=function(){return e.Iframe.addMessageListener(function(i){return function(e,n){return i._receiveMessage(e,n)}}(this)),"polite"!==this.loading||window.mraid?this._loadIframe():e.Event.onLoad(function(i){return function(){return i._loadIframe()}}(this))},t.prototype.getIframe=function(){return document.getElementById(this.getIframeId())},t.prototype.getIframeId=function(){return"spongecell-studio-"+this.iid},t.prototype._loadIframe=function(){var i;return null!=this.iframeUrl&&null!=(i=this.getIframe())?i.src=this.iframeUrl+"/"+this.platform+"?sponge="+this.iid:void 0},t.prototype._receiveMessage=function(i,n){var t;return t=function(i){return function(e){return function(n){return i._sendMessage({topic:e.topic,callback:e.callback,response:n})}}}(this),this.iid===i.iid&&(i.iid=this.iid,e.Console.debug("Received postMessage from Studio Ad %s: %o",this.iid,i),n.origin===this.iframeBaseUrl||0===n.origin.indexOf("http://localhost")||n.origin.match(/(\.|\/)spongecell\.com/))?e.Broker.sendOnChannel(i,t(i)):void 0},t.prototype._sendMessage=function(i){var n;return e.Console.debug("Sending message back to Studio Ad %s: %o",this.iid,i),n=JSON.stringify(i),this.getIframe().contentWindow.postMessage(n,this.iframeBaseUrl||"*")},t}(e.StudioTag)}.call(this); window.spongecellParams = window.spongecellParams || {}; var impressionTag = new spongecell.ImpressionTag(impressionTagOptions, window.spongecellParams); impressionTag.render();