var com_sas_ci_acs=com_sas_ci_acs||{},c3=com_sas_ci_acs;"undefined"==typeof com_sas_ci_acs.version&&(com_sas_ci_acs.version="1.1.0",com_sas_ci_acs.webmarketing=!1,com_sas_ci_acs.newvid=!1);(function(){function a(a,c){c=c||{bubbles:!1,cancelable:!1,detail:void 0};var b=document.createEvent("CustomEvent");b.initCustomEvent(a,c.bubbles,c.cancelable,c.detail);return b}if("function"===typeof window.CustomEvent)return!1;a.prototype=window.Event.prototype;window.CustomEvent=a})(); com_sas_ci_acs.ob_util={copyright:"Copyright (c) 2015 by SAS Institute Inc., Cary, NC, USA. All Rights Reserved.",lastActivity:0,maxInactivity:0,csn:0,account:"",jspageerrorCount:0,contentchangeCount:0,jsvarchangeCount:0,mediaEventsCount:0,totalEventsCount:0,maxJspageErrors:5,maxContentChange:10,maxJsVarChange:10,maxMediaEvents:200,maxTotalEvents:2E3,batchSpots:!0,viewId:0,deferredSpots:[],maxDeferredSpotTry:50,deferredSpotInitialTimeout:50,maxUrlSize:1800,deferredSpotTryCount:0,logging:!1,cancelledEvents:[], eventResponses:[],ccsProtocol:null,FS:"/",f:"function",clickEvents:[],timestamp_base:0,timestamp_boot_base:0,cts_base:0,java_version:null,flash_version:null,svg_version:null,flashdirector_version:null,realplayer_version:null,quicktime_version:null,mediaplayer_version:null,acrobat_version:null,cachedTermConfiguration:null,cachedTspSelectors:null,load_event:null,anonymous_form_count:0,windowHasFocus:!0,datahubIdUpdateDelay:1E3,magicBoxEventTypes:"url download transaction term form custom category source promotion view trafficSource homePage internalSearch".split(" "), MAX_PROPERTY_SIZE:1E3,getLoadEventInstance:function(){this.load_event||(this.load_event=new com_sas_ci_acs.ob_event(com_sas_ci_acs.ob_event.EventNameEnum.LOAD));return this.load_event},isMagicBoxEvent:function(a){return this.exists(a)&&-1a.v&&(a.v=d));if("Microsoft Internet Explorer"==navigator.appName){if(null!=this.svg_version)return this.svg_version;d=new ActiveXObject("Adobe.SVGCtl");a.e=!0;a.v=d.GetVariable("$version");this.svg_version=a}return a},flashdirector:function(a,b,c,d){a={e:!1,v:""};c=navigator.mimeTypes;for(b=0;ba.v&&(a.v=e))}if("Microsoft Internet Explorer"==navigator.appName){if(null!=this.flashdirector_version)return this.flashdirector_version;for(b=15;0a.v&&(a.v=e))}if("Microsoft Internet Explorer"==navigator.appName){if(null!=this.realplayer_version)return this.realplayer_version;for(b=15;0a.v&&(a.v=e))}if("Microsoft Internet Explorer"==navigator.appName){if(null!=this.quicktime_version)return this.quicktime_version;for(b=15;0a.v&&(a.v=e))}if("Microsoft Internet Explorer"==navigator.appName){if(null!=this.mediaplayer_version)return this.mediaplayer_version;for(b=15;0a.v&&(a.v=e))}if("Microsoft Internet Explorer"==navigator.appName){if(null!=this.acrobat_version)return this.acrobat_version;for(b=15;0a.v&&(a.v=m));if(""!=a.v)return a;a.e=navigator.javaEnabled();a.v=a.e&&"undefined"!=typeof java?java.lang.System.getProperty("java.version"):"";return a},isUndefined:function(a){return"undefined"==typeof a?!0:!1},exists:function(a){return"undefined"!==typeof a&&null!==a},notBlank:function(a){return"undefined"!==typeof a&&null!==a&&a?!0:!1},idOf:function(a){if(a)return a.getAttribute("id")&&""!=a.getAttribute("id")?a.getAttribute("id"): a.getAttribute("name")},formTag:function(a,b){for(b=com_sas_ci_acs.ob_util.toLowerCase(b);null!=a&&com_sas_ci_acs.ob_util.toLowerCase(a.tagName)!=b&&"body"!=com_sas_ci_acs.ob_util.toLowerCase(a.tagName);)a=a.parentNode;if(null==a||com_sas_ci_acs.ob_util.toLowerCase(a.tagName)!=b||com_sas_ci_acs.ob_util.isScriptLink(a))a=null;return a},parseUri:function(a){var b=document.createElement("a");b.href=a;return{protocol:b.protocol.replace(":",""),host:b.hostname,port:b.port,path:("/"!==b.pathname.charAt(0)? "/":"")+b.pathname,search:b.search.substring(1)}},localUri:function(){return this.parseUri(window.location.href)},isDescendant:function(a,b){for(b=b.parentNode;null!=b;){if(b==a)return!0;b=b.parentNode}return!1},isArray:function(a){return a&&"[object Array]"===Object.prototype.toString.call(a)},getElementPath:function(a){var b=null==a.id||com_sas_ci_acs.ob_util.isUndefined(a.id)||""==a.id?a.nodeName:a.id;for(a=a.parentNode;null!=(a=a.parentNode);)b=com_sas_ci_acs.ob_util.isUndefined(a.id)||null== a.id||""==a.id?a.nodeName+"/"+b:a.id+"/"+b;return"//"+b},getElementSelector:function(a){if(null==a)return"";var b=a.tagName.toLowerCase();if("body"!=b&&"html"!=b){var c=a.getAttribute("id"),d=a.getAttribute("class");a=a.getAttribute("name");if(c)b=0<=c.indexOf(".")?b+("[id='"+c+"']"):b+("#"+c);else{if(d)for(c=d.split(/\s+/),d=0;d "+b;return b},getFirstUniqueParent:function(a){return a.getAttribute("id")||"BODY"===a.tagName?a:this.getFirstUniqueParent(a.parentElement)},getElementInnerText:function(a){return a.textContent&&"undefined"!=typeof a.textContent?a.textContent:a.innerText},isIE8Browser:function(){var a=-1,b=navigator.userAgent,c=/Trident\/([0-9]{1,}[.0-9]{0,})/;null!=c.exec(b)&&(a=parseFloat(RegExp.$1));if(4==a)return!0;c=/MSIE ([0-9]{1,}[.0-9]{0,})/;return null!=c.exec(b)&& (a=parseFloat(RegExp.$1),9>a&&0a&&0b.top&&(e=-1*b.top);0>b.left&&(a=-1*b.left);0>window.innerWidth-b.right&&(d=-1*(window.innerWidth- b.right));0>window.innerHeight-b.bottom&&(f=-1*(window.innerHeight-b.bottom));e+=f;e>b.height&&(e=b.height);a+=d;a>b.width&&(a=b.width);return.5<=(c-(e*b.width+a*b.height))/c?!0:!1},isCartEvent:function(a){var b=com_sas_ci_acs.ob_configure.isCollectionEnabled().pageloads_eventtype;return com_sas_ci_acs.ob_util.isUndefined(b)?!1:(a=b[a],!com_sas_ci_acs.ob_util.isUndefined(a)&&a&&("cart"==a||"checkout"==a||"purchase"==a))},isCartProductAttribute:function(a,b){a=(a=a.cart_att_type)&&"CART_PRODUCT_ATTRIBUTE"== a;return b&&com_sas_ci_acs.ob_util.isCartEvent(b)&&a},isCartAttribute:function(a,b){a=(a=a.cart_att_type)&&"CART_ATTRIBUTE"==a;return b&&com_sas_ci_acs.ob_util.isCartEvent(b)&&a},spotAttributeSetup:function(a,b){try{var c=com_sas_ci_acs.ob_injector.prototype.getSpotDefinitions();if(a&&this.exists(c)){var d=c[a];if(this.exists(d)){var e=d.spot_attributes;e&&this.customAttributeSetup(e,b,null,com_sas_ci_acs.ob_util.getLoadEventInstance())}}}catch(f){com_sas_ci_acs.ob_util.log("Unable to setup spot att for:"+ a+" error:"+f)}},customAttributeSetup:function(a,b,c,d,e){d||(d=b);e&&null!=e||(e=0);for(var f=0;fe?k[e]:k[0]){k=a[f].attribute;var p=h[k];h.attributes&&h.attributes[k]&& h.attributes[k].value&&"value"!=k&&(p=h.attributes[k].value);p&&(h=a[f].filter,k=a[f].filterpattern,(p=com_sas_ci_acs.ob_util.filterPattern(p,h,k))&&""!=p&&(p=p.trim(),"numeric"==a[f].type&&(h="\\"+(com_sas_ci_acs.ob_util.isUndefined(com_sas_ci_acs.ob_configure.thousands_separator)?",":com_sas_ci_acs.ob_configure.thousands_separator),p=parseFloat(p.replace(new RegExp(h,"g"),"").replace(/,/,".")),isNaN(p)&&(p="")),b.add(g,p)))}}else if(m&&""!=m){k=[];try{k=com_sas_ci_acs.ob_util.getElementsBySelector(g)}catch(U){com_sas_ci_acs.ob_util.log("exception occurred in getElementsBySelector for '"+ g+"' : "+U)}(h=k.length>e?k[e]:k[0])&&b.add(g,g)}else if(r&&""!=r){if(h=(new RegExp("[?&]"+encodeURIComponent(r)+"=([^&]*)")).exec(location.search))if(p=decodeURIComponent(h[1]))h=a[f].filter,k=a[f].filterpattern,(p=com_sas_ci_acs.ob_util.filterPattern(p,h,k))&&""!=p&&b.add(g,p.trim())}else if(t&&""!=t){if(p=location.search)p=p.substr(1),h=a[f].filter,k=a[f].filterpattern,(p=com_sas_ci_acs.ob_util.filterPattern(p,h,k))&&""!=p&&b.add(g,p.trim())}else if(n&&""!=n){if(p=com_sas_ci_acs.ob_configure.getDomain())h= a[f].filter,k=a[f].filterpattern,(p=com_sas_ci_acs.ob_util.filterPattern(p,h,k))&&""!=p&&b.add(g,p.trim())}else if(u&&""!=u){if(p=location.pathname)h=a[f].filter,k=a[f].filterpattern,(p=com_sas_ci_acs.ob_util.filterPattern(p,h,k))&&""!=p&&b.add(g,p.trim())}else if(k&&""!=k&&!isNaN(parseInt(k)))(h=location.pathname.split("/"))&&h.length>=parseInt(k)&&(p=h[parseInt(k)])&&(h=a[f].filter,k=a[f].filterpattern,(p=com_sas_ci_acs.ob_util.filterPattern(p,h,k))&&""!=p&&b.add(g,p.trim()));else if(q&&""!=q)(h= com_sas_ci_acs.ob_util.ckR(q))&&""!=h&&(p=com_sas_ci_acs.ob_util.ckR(q))&&(h=a[f].filter,k=a[f].filterpattern,(p=com_sas_ci_acs.ob_util.filterPattern(p,h,k))&&""!=p&&b.add(g,p.trim()));else if(v&&""!=v){if(p=document.title)h=a[f].filter,k=a[f].filterpattern,(p=com_sas_ci_acs.ob_util.filterPattern(p,h,k))&&""!=p&&b.add(g,p.trim())}else if(y&&""!=y){if(p=com_sas_ci_acs.ob_util.extractParam("page_id",window.location.href))h=a[f].filter,k=a[f].filterpattern,(p=com_sas_ci_acs.ob_util.filterPattern(p,h, k))&&""!=p&&b.add(g,p.trim())}else if(I&&""!=I)(h=d.dataElements["meta."+I])&&""!=h&&(p=h)&&(h=a[f].filter,k=a[f].filterpattern,(p=com_sas_ci_acs.ob_util.filterPattern(p,h,k))&&""!=p&&b.add(g,p.trim()));else if(z&&""!=z){if(p=com_sas_ci_acs.ob_util_jsvar.getJsVariable(z))h=a[f].filter,k=a[f].filterpattern,(p=com_sas_ci_acs.ob_util.filterPattern(p,h,k))&&""!=p&&"undefined"!==typeof p.toString&&(p=p.toString().trim(),b.add(g,p))}else if(C&&""!=C){if(p=com_sas_ci_acs.ob_util.extractDomain(d.dataElements.referrer))h= a[f].filter,k=a[f].filterpattern,(p=com_sas_ci_acs.ob_util.filterPattern(p,h,k))&&""!=p&&b.add(g,p.trim())}else if(D&&""!=D){if(p=com_sas_ci_acs.ob_util.extractPath(d.dataElements.referrer))h=a[f].filter,k=a[f].filterpattern,(p=com_sas_ci_acs.ob_util.filterPattern(p,h,k))&&""!=p&&b.add(g,p.trim())}else if(E&&""!=E){if(p=com_sas_ci_acs.ob_util.extractParam(E,d.dataElements.referrer))h=a[f].filter,k=a[f].filterpattern,(p=com_sas_ci_acs.ob_util.filterPattern(p,h,k))&&""!=p&&b.add(g,p.trim())}else A&& ""!=A?(p,c&&("targetId"===A?p=c.id:"targetName"===A?p=c.name:"targetHref"===A?c.parentElement.href?p=c.parentElement.href:c.href&&(p=c.href):"targetAlt"===A?p=c.alt:"targetTagName"===A?p=c.tagName:"targetSelectorPath"===A?p=c.id:"targetInnerText"===A?p=c.innerText:"targetCustomAttribute"===A&&(h=a[f].attribute,null!=h&&(p=c.getAttribute(h)))),p&&(h=a[f].filter,k=a[f].filterpattern,(p=com_sas_ci_acs.ob_util.filterPattern(p,h,k))&&""!=p&&b.add(g,p.trim()))):R&&""!=R&&(p,c&&("formId"==R&&(p=c.id),"formName"== R&&(p=c.name)),p&&(h=a[f].filter,k=a[f].filterpattern,(p=com_sas_ci_acs.ob_util.filterPattern(p,h,k))&&""!=p&&b.add(g,p.trim())))}}},customCartItemAttributeSetup:function(a,b,c,d,e){for(d=0;d")&&(a=a.slice(1).trim());if(!this.isSelectorValid(a))return c;com_sas_ci_acs.ob_util.exists(b)||(d=document);com_sas_ci_acs.ob_util.exists(d.matches)&&d.matches(a)&&(c=c.concat(d));a=d.querySelectorAll(a); if(com_sas_ci_acs.ob_util.exists(a)&&0l||16g?l:g;0<=l&&(k=k.substr(0,l+1),f=k+f)}k=f.indexOf("//");for(l=f.lastIndexOf("//");k!==l;)f=f.slice(0,l)+f.slice(l+1,f.length),k=f.indexOf("//"),l=f.lastIndexOf("//");var h=new com_sas_ci_acs.ob_event(d);h.add("form._o.id",-1== b.indexOf("anonymous_form")?b:"");h.add("form._h.id",null!=a?a.getAttribute("id"):"");h.add("form._h.name",null!=a?a.getAttribute("name"):"");h.add("location",com_sas_ci_acs.ob_util.getElementPath(c));h.add("referrer",document.URL);h.add("uri",f);d=com_sas_ci_acs.ob_configure.forms[b].obs;c=!0;"inc"==com_sas_ci_acs.ob_configure.getFormConfig().nature&&(c=!1);f=com_sas_ci_acs.ob_configure.forms[b].ign;k=com_sas_ci_acs.ob_configure.forms[b].inc;l={};g=1;if(null!=a)for(var m=0;mw||16q?w:q;0<=w&&(n=n.substr(0,w+1),m=n+m)}n=m.indexOf("//");for(w=m.lastIndexOf("//");n!==w;)m=m.slice(0,w)+m.slice(w+1,m.length),n= m.indexOf("//"),w=m.lastIndexOf("//");var v=new com_sas_ci_acs.ob_event(a);v.add("form._o.id",-1==b.indexOf("anonymous_form")?b:"");v.add("form._h.id",null!=f?f.getAttribute("id"):"");v.add("form._h.name",null!=f?f.getAttribute("name"):"");v.add("location",com_sas_ci_acs.ob_util.getElementPath(d));v.add("referrer",document.URL);v.add("uri",m);var r=!1;(f=com_sas_ci_acs.ob_util.idOf(d))&&0!=f.length||(r=!0);m=d.id;n=d.name;w=pa(d);q=com_sas_ci_acs.ob_configure.forms[b];if(!r)if(k)for(var p=0;ph?g:h)+1);g=l.indexOf(":");if(0>g||16h?g:h;0<=g&&(m=m.substr(0,g+1),l=m+l)}var n=new com_sas_ci_acs.ob_event(com_sas_ci_acs.ob_util.toLowerCase(a.type));n.add("eventSource","ace");n.add("referrer",document.URL);n.add("elementTagName",c.tagName);n.add("anchor_id",c.id);n.add("anchor_name",c.name);n.add("anchor_href",k);n.add("location",com_sas_ci_acs.ob_util.getElementPath(d));n.add("targetSelectorPath", com_sas_ci_acs.ob_util.getElementFullSelector(d));n.add("targetInnerText",com_sas_ci_acs.ob_util.getElementInnerText(d));n.add("targetAlt",d.hasAttribute("alt")?d.getAttribute("alt"):"");n.add("onclick",d.hasAttribute("onclick")?d.getAttribute("onclick"):"");n.add("uri",l);n.add("title",f);n.add("port",location.port);n.add("protocol",location.protocol.substr(0,location.protocol.length-1));a=e(d.attributes);for(c=0;ccom_sas_ci_acs.ob_util.MAX_PROPERTY_SIZE&&(d=d.slice(0,com_sas_ci_acs.ob_util.MAX_PROPERTY_SIZE));b.add("message",d);b.add("url",a.filename);b.add("line",a.lineno);b.add("column",a.colno);var c=a.error&&a.error.stack||d;c.length>com_sas_ci_acs.ob_util.MAX_PROPERTY_SIZE&&(c=c.slice(0,com_sas_ci_acs.ob_util.MAX_PROPERTY_SIZE));b.add("error_stack", c);setTimeout(function(){b.send()},0);com_sas_ci_acs.ob_util.jspageerrorCount++}catch(S){com_sas_ci_acs.ob_util.log("exception occurred when sending javascript page error event : "+S)}});var ba=["radio","button","checkbox"];return{initialize:function(){"interactive"===document.readyState||"complete"===document.readyState?d():window.addEventListener("DOMContentLoaded",d)},findElement:function(a){var b=!1;try{0com_sas_ci_acs.ob_util.MAX_PROPERTY_SIZE&&(this.dataElements[a]=b.slice(0,com_sas_ci_acs.ob_util.MAX_PROPERTY_SIZE))}else-1a.status?(com_sas_ci_acs.ob_event_cache.getLocalEventQueue().pop(!1),com_sas_ci_acs.ob_event_cache.timeoutResendCount=0,com_sas_ci_acs.ob_event_cache.processQueuedEvents(!1)): com_sas_ci_acs.ob_event_cache.handleCanceledEvent();if(com_sas_ci_acs.ob_util.isUndefined(com_sas_ci_acs.ob_configure.trackEventResponses)?0:com_sas_ci_acs.ob_configure.trackEventResponses){var b=com_sas_ci_acs.ob_util.eventResponses[a.oe+":"+a.status];void 0===b&&(b=0);b++;com_sas_ci_acs.ob_util.eventResponses[a.oe+":"+a.status]=b;com_sas_ci_acs.ob_configure.updateEventResponses(a.oe,a.status)}g(a)}},c=function(a,b,c){com_sas_ci_acs.ob_util.log("o_ajax timeout: oto = ["+a.oto+"], to = ["+c+"] ms, eventname = ["+ a.oe+"]");a.aborted&&(a.aborted=!0);a.abort();if(com_sas_ci_acs.ob_util.isUndefined(com_sas_ci_acs.ob_configure.trackCancelledEvents)?0:com_sas_ci_acs.ob_configure.trackCancelledEvents)b=com_sas_ci_acs.ob_util.cancelledEvents[a.oe],void 0===b&&(b=0),b++,com_sas_ci_acs.ob_util.cancelledEvents[a.oe]=b,com_sas_ci_acs.ob_configure.updateCancelledEvents(a.oe)},d=function(a,b,c,d,e){try{var f=new XDomainRequest;f.timeout=com_sas_ci_acs.ob_util.isUndefined(com_sas_ci_acs.ob_configure.timeout)?500:com_sas_ci_acs.ob_configure.timeout; f.onerror=function(){com_sas_ci_acs.ob_util.log("o_ajax_ie8: ERROR")};f.onload=function(){com_sas_ci_acs.ob_util.log("o_ajax_ie8: ONLOAD");d(f,e)};f.onprogress=function(){com_sas_ci_acs.ob_util.log("o_ajax_ie8: PROGRESS")};f.ontimeout=function(){com_sas_ci_acs.ob_util.log("o_ajax_ie8: TIMEOUT")};if(com_sas_ci_acs.ob_util.logging){var g="";if(null!=b){var h=b.indexOf("event=");-1!=h&&(g=b.substring(h+6),h=g.indexOf("&"),-1!=h&&(g=g.substring(0,h)))}f.oe=g;com_sas_ci_acs.ob_util.log("o_ajax.ie8_send data: eventname = ["+ g+"]")}var n=document.URL.toLowerCase();com_sas_ci_acs.ob_util.strStartsWith(n,"http:")&&(a=a.toLowerCase(),a=a.replace("https:","http:").replace(":443/","/"),com_sas_ci_acs.ob_util.logging&&com_sas_ci_acs.ob_util.log("converted https to http, the new post url is: "+a));if("POST"==c)f.open(c,a),f.send(b);else{var m=null!=b?0e.length)return function(){try{return new (this.XMLHttpRequest|| ActiveXObject)("MSXML2.XMLHTTP.3.0")}catch(m){com_sas_ci_acs.ob_util.log(m)}}();com_sas_ci_acs.ob_util.logging&&com_sas_ci_acs.ob_util.log("reuse xhr");return e.pop()},g=function(a){com_sas_ci_acs.ob_util.logging&&com_sas_ci_acs.ob_util.log("release xhr");a.onreadystatechange=function(){};e.push(a)},h=function(b,e,g,h,u,k){com_sas_ci_acs.ob_util.isUndefined(h)&&(h=!0);if(com_sas_ci_acs.ob_util.isUndefined(u)||null==u)u=a;if(com_sas_ci_acs.ob_util.isIE89Browser())d(b,e,g,u,k);else try{var q=com_sas_ci_acs.ob_util.isUndefined(com_sas_ci_acs.ob_configure.timeout)? 500:com_sas_ci_acs.ob_configure.timeout,n=f();n.onreadystatechange=function(){u(n,k)};typeof n.onloadend==com_sas_ci_acs.ob_util.f&&(n.onloadend=function(){com_sas_ci_acs.ob_util.log("o_ajax onloadend: eventname = ["+n.oe+"]")});1!=h&&(typeof n.onloadstart==com_sas_ci_acs.ob_util.f?n.onloadstart=function(){n.oto=setTimeout(function(){c(n,b,q)},q);com_sas_ci_acs.ob_util.log("o_ajax setTimeout: oto = ["+n.oto+"], to = ["+q+"] ms")}:(n.oto=setTimeout(function(){c(n,b,q)},q),com_sas_ci_acs.ob_util.log("o_ajax setTimeout: oto = ["+ n.oto+"], to = ["+q+"] ms")));var m=com_sas_ci_acs.ob_util.isUndefined(com_sas_ci_acs.ob_configure.trackCancelledEvents)?!1:com_sas_ci_acs.ob_configure.trackCancelledEvents,r=com_sas_ci_acs.ob_util.isUndefined(com_sas_ci_acs.ob_configure.trackEventResponses)?!1:com_sas_ci_acs.ob_configure.trackEventResponses;if(com_sas_ci_acs.ob_util.logging||m||r){var t="";if(null!=e){var C=e.indexOf("event=");-1!=C&&(t=e.substring(C+6),C=t.indexOf("&"),-1!=C&&(t=t.substring(0,C)))}n.oe=t}if("POST"==g)n.open(g,b, h),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8"),(com_sas_ci_acs.ob_util.sendBodyAsHeaderAll()||com_sas_ci_acs.ob_util.sendBodyAsHeaderLoad()&&e&&-1>16,f>>8&255,f&255))}switch(b){case 1:f=GeneralBase64._getbyte64(a,c)<<18|GeneralBase64._getbyte64(a,c+1)<<12|GeneralBase64._getbyte64(a,c+2)<<6;e.push(String.fromCharCode(f>>16,f>>8&255));break;case 2:f=GeneralBase64._getbyte64(a,c)<< 18|GeneralBase64._getbyte64(a,c+1)<<12,e.push(String.fromCharCode(f>>16))}return e.join("")},_getbyte:function(a,b){a=a.charCodeAt(b);if(255>18));c.push(this._ALPHA.charAt(e>>12&63));c.push(this._ALPHA.charAt(e>>6&63));c.push(this._ALPHA.charAt(e&63))}switch(a.length-d){case 1:e=GeneralBase64._getbyte(a,b)<<16;c.push(this._ALPHA.charAt(e>>18)+this._ALPHA.charAt(e>>12&63)+this._PADCHAR+this._PADCHAR);break;case 2:e=GeneralBase64._getbyte(a,b)<<16|GeneralBase64._getbyte(a,b+1)<<8,c.push(this._ALPHA.charAt(e>>18)+this._ALPHA.charAt(e>>12&63)+this._ALPHA.charAt(e>>6&63)+this._PADCHAR)}return c.join("")}}, Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.-=",encode:function(a){var b="",c=0;for(a=Base64._utf8_encode(a);c>2;d=(d&3)<<4|e>>4;var h=(e&15)<<2|f>>6;var m=f&63;isNaN(e)?h=m=64:isNaN(f)&&(m=64);b=b+this._keyStr.charAt(g)+this._keyStr.charAt(d)+this._keyStr.charAt(h)+this._keyStr.charAt(m)}return b},_utf8_encode:function(a){a=a.replace(/\r\n/g,"\n");for(var b="",c=0;cd?b+=String.fromCharCode(d):(127d?b+=String.fromCharCode(d>>6|192):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128)),b+=String.fromCharCode(d&63|128))}return b}};function getDecisionParams(a){var b=null;if(null!=a&&null!=spotMap)for(var c in spotMap)spotMap.hasOwnProperty(c)&&c==a&&(b=spotMap[c]);return b}var spotMap={};com_sas_ci_acs.ob_inject_batch=function(a){this.spots=a;this.elements=[]}; com_sas_ci_acs.ob_inject_batch.prototype.populateSpotParams=function(a,b,c){if(!a.jsSpot){var d=a.divId;if(d){var e="",f=null;try{f=com_sas_ci_acs.ob_util.getElementsBySelector(d)[0]}catch(t){com_sas_ci_acs.ob_util.log(t)}if(null!=f){var g=a.service;if(!com_sas_ci_acs.ob_util.isUndefined(g.p))for(var h in g.p)if("domain"!==h&&"customerid"!==h&&"sessionid"!==h){var m=g.p[h];com_sas_ci_acs.ob_util.isUndefined(m)||null==m||"null"==m||(e+="/"+h+"="+m)}g=a.spot_properties;if(!com_sas_ci_acs.ob_util.isUndefined(g)&& g&&!com_sas_ci_acs.ob_util.propertyMatch(g,com_sas_ci_acs.ob_util.getLoadEventInstance()))return;h=a.spot_attributes;if(!com_sas_ci_acs.ob_util.isUndefined(h)&&h){g=new com_sas_ci_acs.ob_event(com_sas_ci_acs.ob_event.EventNameEnum.SPOT_ATTRIBUTES);g.dataElements={};com_sas_ci_acs.ob_util.customAttributeSetup(h,g,null,new com_sas_ci_acs.ob_event(com_sas_ci_acs.ob_event.EventNameEnum.LOAD));for(var r in g.dataElements)h=Base64.encode(g.dataElements[r].trim()),m=g.dataElements[r].trim(),h=h.replace(/=/g, ""),"product_id"==r||"product_sku"==r?(r+="_key",e+="/"+r+"="+m):e+="/"+r+"="+h}a=a.spot_set_id;if(!com_sas_ci_acs.ob_util.isUndefined(a))for(;0<\/data><\/data>(.*)$/)[2]}catch(u){com_sas_ci_acs.ob_util.log("error in jsSpotParsing"+u.message)}"undefined"!==typeof ci360&&g.creativeId&&e.spotId&&g.taskId&&ci360("send",{eventName:"impression",creativeId:g.creativeId,spotId:e.spotId,taskId:g.taskId});try{var h=document.createElement("script");h.type="text/javascript"; var m="try { "+g.code+";if (typeof ci360 !== 'undefined') {ci360('send', {'eventName': 'impressionViewable','creativeId':\""+g.creativeId+"\",'spotId': \""+e.spotId+"\",'taskId':\""+g.taskId+'"});}}catch(e) {console.log("error in jsCreative");console.log(e);}';try{h.appendChild(document.createTextNode(m));var r=document.querySelectorAll("script");e=!1;f=void 0;for(g=0;g]*>((.|[\n\r])*)<\/idreference>/im);f.id_reference=b&&b[1]?b[1]:"";var v=JSON.parse(JSON.stringify(f));f=new RegExp(/-|_/);for(k in v)v.hasOwnProperty(k)&&f.test(k)&&(v[k.replace(f,"")]=v[k],delete v[k]);com_sas_ci_acs.ob_util.exists(v.control)&&(v.controlgroup=v.control,delete v.control);d&&(v.spotURL=a.responseURL);v.selector=com_sas_ci_acs.ob_util_async.virtualSpots[v.spotid].selector;v.spotContent=encodeURIComponent(c);com_sas_ci_acs.ob_util_async.virtualSpots[v.spotid].parameters= v;a=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;c=com_sas_ci_acs.ob_util.getElementsBySelector(com_sas_ci_acs.ob_util_async.virtualSpots[v.spotid].selector);for(d=0;dd[D].found)return"group minimum not satisfied for group: "+ D}return com_sas_ci_acs.ob_util.SUCCESS}function d(a){try{var b=f(a);b.event&&null!=b.event&&setTimeout(function(){b.event.send()},0);return b.message}catch(k){return"Error while sending event. "+k}}function e(a,b){try{var c=f(a);if(c.event&&null!=c.event){if("spot-click"===b){var d=c3.ob_configure.isCollectionEnabled().clickThrough_system_eventid;!c3.ob_util.isUndefined(d)&&0r[b].count&&500>h)){r[b].count++;h++;b=!0;break a}b=!1}if(b)switch(k.event){case com_sas_ci_acs.ob_event.EventNameEnum.JS_VAR_CHANGE:case com_sas_ci_acs.ob_event.EventNameEnum.CLICK:case com_sas_ci_acs.ob_event.EventNameEnum.SUBMIT:case com_sas_ci_acs.ob_event.EventNameEnum.CONTENT_CHANGE:case com_sas_ci_acs.ob_event.EventNameEnum.MEDIA:case com_sas_ci_acs.ob_event.EventNameEnum.IDENTITY_EVENT:case com_sas_ci_acs.ob_event.EventNameEnum.CUSTOM:case com_sas_ci_acs.ob_event.EventNameEnum.CART_ACTION:case com_sas_ci_acs.ob_event.EventNameEnum.CHANGE:return d(k); case com_sas_ci_acs.ob_event.EventNameEnum.LOGOUT:try{if(k.event===com_sas_ci_acs.ob_event.EventNameEnum.LOGOUT){com_sas_ci_acs._o_ajax.deleteContent(com_sas_ci_acs.ob_util.getDataHubCallUrl(),null,!0,com_sas_ci_acs.ob_event_cache.handleDatahubIdResponse,null);var q=com_sas_ci_acs.ob_util.SUCCESS}else q="Invalid event."}catch(v){q="Error while sending logout event. "+v}return q;case com_sas_ci_acs.ob_event.EventNameEnum.CART:return g(k);case com_sas_ci_acs.ob_event.EventNameEnum.SPOT_CHANGE:return e(k); case com_sas_ci_acs.ob_event.EventNameEnum.SPOT_VIEWABLE:return e(k,"spot-view");case com_sas_ci_acs.ob_event.EventNameEnum.SPOT_CLICKED:return e(k,"spot-click");default:return k="Event type not recognized",com_sas_ci_acs.ob_util.log(k),k}else return k="Maximum limit has been reached.",com_sas_ci_acs.ob_util.log(k),k}else return k="Validation failed for event: "+k.event+", "+b,com_sas_ci_acs.ob_util.log(k),k;else return k="Event is not valid",com_sas_ci_acs.ob_util.log(k),k;else return k=b+" is not a valid type.", com_sas_ci_acs.ob_util.log(k),k}}}(); com_sas_ci_acs.ob_cart_api=function(){return{isReady:function(){return"undefined"!==typeof com_sas_ci_acs.ob_configure.getLoadId()&&0>>2]|=(c[e>>>2]>>>24-e%4*8&255)<<24-(d+e)%4*8;else if(65535>>2]=c[e>>>2];else b.push.apply(b,c);this.sigBytes+=a;return this},clamp:function(){var b=this.words,c=this.sigBytes;b[c>>>2]&=4294967295<<32- c%4*8;b.length=a.ceil(c/4)},clone:function(){var a=f.clone.call(this);a.words=this.words.slice(0);return a},random:function(b){for(var c=[],d=0;d>>2]>>>24-d%4*8&255;c.push((e>>>4).toString(16));c.push((e&15).toString(16))}return c.join("")},parse:function(a){for(var b=a.length,c=[],d=0;d>>3]|=parseInt(a.substr(d,2),16)<< 24-d%8*4;return new g.init(c,b/2)}},r=h.Latin1={stringify:function(a){var b=a.words;a=a.sigBytes;for(var c=[],d=0;d>>2]>>>24-d%4*8&255));return c.join("")},parse:function(a){for(var b=a.length,c=[],d=0;d>>2]|=(a.charCodeAt(d)&255)<<24-d%4*8;return new g.init(c,b)}},t=h.Utf8={stringify:function(a){try{return decodeURIComponent(escape(r.stringify(a)))}catch(q){throw Error("Malformed UTF-8 data");}},parse:function(a){return r.parse(unescape(encodeURIComponent(a)))}}, n=d.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new g.init;this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=t.parse(a));this._data.concat(a);this._nDataBytes+=a.sigBytes},_process:function(b){var c=this._data,d=c.words,e=c.sigBytes,f=this.blockSize,h=e/(4*f);h=b?a.ceil(h):a.max((h|0)-this._minBufferSize,0);b=h*f;e=a.min(4*b,e);if(b){for(var k=0;km;m++)h[m]=a();d=d.SHA512=c.extend({_doReset:function(){this._hash=new f.init([new e.init(1779033703,4089235720),new e.init(3144134277,2227873595),new e.init(1013904242,4271175723),new e.init(2773480762,1595750129),new e.init(1359893119,2917565137),new e.init(2600822924,725511199),new e.init(528734635,4215389547),new e.init(1541459225,327033209)])},_doProcessBlock:function(a,b){var c=this._hash.words, d=c[0],e=c[1],f=c[2],m=c[3],r=c[4],t=c[5],z=c[6];c=c[7];for(var C=d.high,D=d.low,E=e.high,A=e.low,R=f.high,p=f.low,U=m.high,ca=m.low,qa=r.high,ma=r.low,sa=t.high,ka=t.low,ta=z.high,la=z.low,pa=c.high,da=c.low,P=C,O=D,F=E,Y=A,Z=R,ea=p,W=U,ja=ca,T=qa,N=ma,na=sa,ha=ka,oa=ta,ia=la,ra=pa,ba=da,l=0;80>l;l++){var w=h[l];if(16>l)var x=w.high=a[b+2*l]|0,H=w.low=a[b+2*l+1]|0;else{x=h[l-15];H=x.high;var S=x.low;x=(H>>>1|S<<31)^(H>>>8|S<<24)^H>>>7;S=(S>>>1|H<<31)^(S>>>8|H<<24)^(S>>>7|H<<25);var fa=h[l-2];H=fa.high; var M=fa.low;fa=(H>>>19|M<<13)^(H<<3|M>>>29)^H>>>6;M=(M>>>19|H<<13)^(M<<3|H>>>29)^(M>>>6|H<<26);H=h[l-7];var aa=H.high,X=h[l-16],V=X.high;X=X.low;H=S+H.low;x=x+aa+(H>>>0>>0?1:0);H+=M;x=x+fa+(H>>>0>>0?1:0);H+=X;x=x+V+(H>>>0>>0?1:0);w.high=x;w.low=H}aa=T&na^~T&oa;X=N&ha^~N&ia;w=P&F^P&Z^F&Z;var xa=O&Y^O&ea^Y&ea;S=(P>>>28|O<<4)^(P<<30|O>>>2)^(P<<25|O>>>7);fa=(O>>>28|P<<4)^(O<<30|P>>>2)^(O<<25|P>>>7);M=g[l];var ua=M.high,wa=M.low;M=ba+((N>>>14|T<<18)^(N>>>18|T<<14)^(N<<23|T>>>9));V=ra+((T>>>14| N<<18)^(T>>>18|N<<14)^(T<<23|N>>>9))+(M>>>0>>0?1:0);M+=X;V=V+aa+(M>>>0>>0?1:0);M+=wa;V=V+ua+(M>>>0>>0?1:0);M+=H;V=V+x+(M>>>0>>0?1:0);H=fa+xa;w=S+w+(H>>>0>>0?1:0);ra=oa;ba=ia;oa=na;ia=ha;na=T;ha=N;N=ja+M|0;T=W+V+(N>>>0>>0?1:0)|0;W=Z;ja=ea;Z=F;ea=Y;F=P;Y=O;O=M+H|0;P=V+w+(O>>>0>>0?1:0)|0}D=d.low=D+O;d.high=C+P+(D>>>0>>0?1:0);A=e.low=A+Y;e.high=E+F+(A>>>0>>0?1:0);p=f.low=p+ea;f.high=R+Z+(p>>>0>>0?1:0);ca=m.low=ca+ja;m.high=U+W+(ca>>>0>>0?1:0);ma=r.low=ma+N;r.high= qa+T+(ma>>>0>>0?1:0);ka=t.low=ka+ha;t.high=sa+na+(ka>>>0>>0?1:0);la=z.low=la+ia;z.high=ta+oa+(la>>>0>>0?1:0);da=c.low=da+ba;c.high=pa+ra+(da>>>0>>0?1:0)},_doFinalize:function(){var a=this._data,b=a.words,c=8*this._nDataBytes,d=8*a.sigBytes;b[d>>>5]|=128<<24-d%32;b[(d+128>>>10<<5)+30]=Math.floor(c/4294967296);b[(d+128>>>10<<5)+31]=c;a.sigBytes=4*b.length;this._process();return this._hash.toX32()},clone:function(){var a=c.clone.call(this);a._hash=this._hash.clone();return a},blockSize:32}); b.SHA512=c._createHelper(d);b.HmacSHA512=c._createHmacHelper(d)})(); (function(){var a=CryptoJS,b=a.x64,c=b.Word,d=b.WordArray;b=a.algo;var e=b.SHA512;b=b.SHA384=e.extend({_doReset:function(){this._hash=new d.init([new c.init(3418070365,3238371032),new c.init(1654270250,914150663),new c.init(2438529370,812702999),new c.init(355462360,4144912697),new c.init(1731405415,4290775857),new c.init(2394180231,1750603025),new c.init(3675008525,1694076839),new c.init(1203062813,3204075428)])},_doFinalize:function(){var a=e._doFinalize.call(this);a.sigBytes-=16;return a}});a.SHA384= e._createHelper(b);a.HmacSHA384=e._createHmacHelper(b)})();(function(){var a=document.getElementById("ob-script");null!=a&&"object"==typeof a.attributes&&"undefined"!=typeof a.attributes.getNamedItem?(a=a.attributes.getNamedItem("a"),a=null!=a?a.value:null):a=null;com_sas_ci_acs.ob_util.account=a})(document,"script");