var $ci360; (function(m){var q=function(){function f(){}f._keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.-=";f.encode=function(a){for(var c="",b,d,g,e,h,k=0,l=f._utf8_encode(a);k>2,b=(b&3)<<4|a>>4,e=(a&15)<<2|d>>6,h=d&63,isNaN(a)?e=h=64:isNaN(d)&&(h=64),c=c+f._keyStr.charAt(g)+f._keyStr.charAt(b)+f._keyStr.charAt(e)+f._keyStr.charAt(h);return c};f._utf8_encode=function(a){a=a.replace(/\r\n/g,"\n");for(var c="", b=0;bd?c+=String.fromCharCode(d):(127d?c+=String.fromCharCode(d>>6|192):(c+=String.fromCharCode(d>>12|224),c+=String.fromCharCode(d>>6&63|128)),c+=String.fromCharCode(d&63|128))}return c};return f}();m.Base64=q})($ci360||($ci360={})); (function(m){var q=function(){function f(a,c,b,d,g,e){this.configService=a;this.persistenceService=c;this.networkService=b;this.paramService=d;this.spotService=g;this.util=e}f.prototype.send=function(a,c){var b=this;void 0===c&&(c=!0);this.persistenceService.registerActivity();var d;a.hasOwnProperty("eventName")&&(d=a.eventName);var g=new m.CI360EventObj(d);this.addFieldsToEvent(g,a);this.decorateEvent(g);if(a=this.paramService.validateEvent(g))this.paramService.obfuscateFields(g),g.paramMap.delete("obfuscateFields"), this.paramService.mapTransportNames(g),this.sendEvent(g,c),"identity"==d&&setTimeout(function(){return b.configService.retrieveDid()},f.RT_DID_TO);return a};f.prototype.addFieldsToEvent=function(a,c){"submit"===a.paramMap.get("eventName")&&this.paramService.submitEventHandling(a,c);"change"===a.paramMap.get("eventName")&&this.paramService.changeEventHandling(a,c);"cart"===a.paramMap.get("eventName")&&this.paramService.cartEventHandling(a,c);"load"===a.paramMap.get("eventName")&&this.networkService.setCachedLoadEvent(a); for(var b in c)c.hasOwnProperty(b)&&"items"!==b&&a.paramMap.set(b,c[b])};f.prototype.sendEvent=function(a,c){c&&a.paramMap.set("initiator","api");a.paramMap.set("event_guid",this.networkService.getRandomGuid());"impression_viewable"===a.paramMap.get("eventName")?a.paramMap.set("event","spot_viewable"):a.paramMap.set("event",a.paramMap.get("eventName"));a.paramMap.set("eventname",a.paramMap.get("eventName"));this.networkService.pushEvent(a)};f.prototype.decorateEvent=function(a){var c=this.configService.getConfig(); a.paramMap.set("tab_id",this.persistenceService.getTabId());a.paramMap.set("hb",this.persistenceService.getSidArray()[2]);var b={ccs:"ccs",csu:"csu",datahubId:"datahub_id",vid:"visitor",sid:"session"},d;for(d in b)a.paramMap.set(b[d],c[d]);"load"!=a.paramMap.get("eventName")&&a.paramMap.set("load_id",this.networkService.getLoadId());this.spotService.decorateEvent(a);this.paramService.addDefaultFields(a)};f.RT_DID_TO=1500;return f}();m.EventService=q})($ci360||($ci360={})); (function(m){var q=function(){function f(){this.readyCallbacks=[];this.isReady=!1;this.initError=null;this.initStarted=!1;this.services=[];this.efname="ci360";this.lazyInit=!1}f.prototype.updateExposedFunction=function(){var a=this,c=this.ef&&this.ef.q,b=window[this.efname]=function(){for(var b=[],c=0;cy.indexOf(e.ciParam)&&(b.href=e.trace(y))}}}catch(t){}};this.trace=function(a){return e.insertQueryParam(a,e.ciParam+"="+e.cdtToken())};this.insertQueryParam= function(a,b){a=a.split("#");var c=a[0];a=a.slice(1);var d=c.split("?");c=d[0];d=d[1];b=(d=void 0===d?"":d)?"".concat(d,"&").concat(b):b;return"".concat(c,"?").concat(b).concat(0(new Date).getTime()&&(screen.height||"1")+""+(screen.width||"1")==b[5]&&b[0]&&b[1]||4==b.length&&parseInt(b[3])+3E5>(new Date).getTime())&&{vid:b[0],sid:b[1],hb:b[2],ref:4==b.length?"1":"0"}||null}catch(l){return null}};this.cdtInfoPage=function(){var a=e.util.getUriInfo().cdt;return a&&e.cdtInfo(a)};this.updateNetworkService=!1;this.getExtTenantId=function(){return e.extTenantId};this.networkServiceObserver=function(){e.updateNetworkService= !0};this.refreshConfig=function(a,b){e.networkService.setFirstLoad(!0);e.networkService.call(e.buildConfigURL(!0),function(c){e.configLoadCallback(c);b();a()})};this.getAttributeStore=function(a){if(a||void 0===e.cachedAttributeStore){a={};a.browser_language=navigator.language;var b=!1;if(navigator.plugins&&navigator.plugins.length){var c=navigator.plugins["Shockwave Flash"];c||(c=navigator.plugins["Shockwave Flash 2.0"]);c&&(b=!0)}a.flash_enabled=b.toString();a.character_set=document.characterSet; a.event_channel="web";a.java_enabled=navigator.javaEnabled().toString();a.javascript_enabled="true";a.platform=navigator.platform;a.protocol=location.protocol.substr(0,location.protocol.length-1);return e.cachedAttributeStore=a}return e.cachedAttributeStore};this.handleConfig=function(a){var b=e.networkService;e.config.sid=a.sid||"";e.config.vid=a.vid||"";e.config.timestamp=a.timestamp||"";e.config.isNewSid=a.isNewSid||!1;e.config.isNewVid=a.isNewVid||!1;e.config.datahubId=a.datahubId||"";e.config.uis= a.uis||!1;e.config.loadId=a.loadId||"";b.setFeatureFlags(e.config.ff);b.setLoadId(e.config.loadId);e.config.csu=a.csu||"";e.config.sld=a.sld||"";e.config.e=a.e;e.config.f=a.f;e.persistenceService.setSld(e.config.sld);b.setSessionId(e.config.sid);b.setClientBaseTimestamp((new Date).getTime());b.setServerTimestamp(parseInt(e.config.timestamp,10));e.config.s=a.s;e.config.c=a.c;e.config.t=a.t;e.config.l=a.l};this.getLoadId=function(){return e.networkService.getLoadId()};this.setCookies=function(a){var b= e.persistenceService;b.setVid(a.vid);b.setSid(a.sid);b.setDid(a.datahubId)};this.configLoadCallback=function(a){a=JSON.parse(a);e.handleConfig(a);e.setCookies(a);e.traceDomains=(e.traceDomains||[]).concat(e.config.t&&e.config.t.d||[]);0z;++z)b[z][0]=c.getInt32()>>>0,b[z][1]=c.getInt32()>>>0;for(;80>z;++z)h=b[z-2],n=h[0],h=h[1],d=((n>>>19|h<<13)^(h>>>29|n<<3)^n>>>6)>>>0,e=((n<<13|h>>>19)^(h<<3|n>>>29)^(n<<26|h>>>6))>>>0,h=b[z-15],n=h[0],h=h[1],g=((n>>>1|h<<31)^(n>>>8|h<<24)^n>>>7)>>>0,l=((n<<31|h>>>1)^(n<<24|h>>>8)^(n<<25|h>>>7))>>>0,n=b[z-7],m=b[z-16],h=e+n[1]+l+m[1],b[z][0]=d+n[0]+g+m[0]+(h/4294967296>>>0)>>>0,b[z][1]=h>>>0;n=a[0][0];m=a[0][1];q=a[1][0];E=a[1][1];B=a[2][0];J= a[2][1];O=a[3][0];P=a[3][1];F=a[4][0];G=a[4][1];M=a[5][0];N=a[5][1];K=a[6][0];L=a[6][1];Q=a[7][0];R=a[7][1];for(z=0;80>z;++z)d=((F>>>14|G<<18)^(F>>>18|G<<14)^(G>>>9|F<<23))>>>0,h=((F<<18|G>>>14)^(F<<14|G>>>18)^(G<<23|F>>>9))>>>0,e=(K^F&(M^K))>>>0,v=(L^G&(N^L))>>>0,g=((n>>>28|m<<4)^(m>>>2|n<<30)^(m>>>7|n<<25))>>>0,l=((n<<4|m>>>28)^(m<<30|n>>>2)^(m<<25|n>>>7))>>>0,p=(n&q|B&(n^q))>>>0,f=(m&E|J&(m^E))>>>0,h=R+h+v+k[z][1]+b[z][1],d=Q+d+e+k[z][0]+b[z][0]+(h/4294967296>>>0)>>>0,e=h>>>0,h=l+f,g=g+p+(h/4294967296>>> 0)>>>0,l=h>>>0,Q=K,R=L,K=M,L=N,M=F,N=G,h=P+e,F=O+d+(h/4294967296>>>0)>>>0,G=h>>>0,O=B,P=J,B=q,J=E,q=n,E=m,h=e+l,n=d+g+(h/4294967296>>>0)>>>0,m=h>>>0;h=a[0][1]+m;a[0][0]=a[0][0]+n+(h/4294967296>>>0)>>>0;a[0][1]=h>>>0;h=a[1][1]+E;a[1][0]=a[1][0]+q+(h/4294967296>>>0)>>>0;a[1][1]=h>>>0;h=a[2][1]+J;a[2][0]=a[2][0]+B+(h/4294967296>>>0)>>>0;a[2][1]=h>>>0;h=a[3][1]+P;a[3][0]=a[3][0]+O+(h/4294967296>>>0)>>>0;a[3][1]=h>>>0;h=a[4][1]+G;a[4][0]=a[4][0]+F+(h/4294967296>>>0)>>>0;a[4][1]=h>>>0;h=a[5][1]+N;a[5][0]= a[5][0]+M+(h/4294967296>>>0)>>>0;a[5][1]=h>>>0;h=a[6][1]+L;a[6][0]=a[6][0]+K+(h/4294967296>>>0)>>>0;a[6][1]=h>>>0;h=a[7][1]+R;a[7][0]=a[7][0]+Q+(h/4294967296>>>0)>>>0;a[7][1]=h>>>0;S-=128}}var b=b||{};b.md=b.md||{};b.md.algorithms=b.md.algorithms||{};var d=b.sha512=b.sha512||{};b.util=b.util||{};b.util.fillString=function(a,b){for(var c="";0>>=1,0=this.length()};b.util.ByteStringBuffer.prototype.putBytes=function(a){this.data+=a;this._optimizeConstructedString(a.length);return this};b.util.ByteStringBuffer.prototype.putInt32=function(a){return this.putBytes(String.fromCharCode(a>>24&255)+String.fromCharCode(a>>16&255)+String.fromCharCode(a>>8&255)+String.fromCharCode(a&255))};b.util.ByteStringBuffer.prototype.putInt= function(a,b){if(8!==b&&16!==b&&24!==b&&32!==b)throw Error("Only 8, 16, 24, or 32 bits supported: "+b);var c="";do b-=8,c+=String.fromCharCode(a>>b&255);while(0c&&(a+="0");a+=c.toString(16)}return a};b.util.ByteStringBuffer.prototype.toString=function(){return b.util.decodeUtf8(this.bytes())};b.md.sha512=b.md.algorithms.sha512=d;var g=b.sha384=b.sha512.sha384=b.sha512.sha384||{};g.create=function(){return d.create("SHA-384")};b.md.sha384=b.md.algorithms.sha384=g;b.sha512.sha256=b.sha512.sha256||{create:function(){return d.create("SHA-512/256")}};b.md["sha512/256"]=b.md.algorithms["sha512/256"]=b.sha512.sha256;b.sha512.sha224=b.sha512.sha224||{create:function(){return d.create("SHA-512/224")}}; b.md["sha512/224"]=b.md.algorithms["sha512/224"]=b.sha512.sha224;d.create=function(a){h||(e=String.fromCharCode(128),e+=b.util.fillString(String.fromCharCode(0),128),k=[[1116352408,3609767458],[1899447441,602891725],[3049323471,3964484399],[3921009573,2173295548],[961987163,4081628472],[1508970993,3053834265],[2453635748,2937671579],[2870763221,3664609560],[3624381080,2734883394],[310598401,1164996542],[607225278,1323610764],[1426881987,3590304994],[1925078388,4068182383],[2162078206,991336113],[2614888103, 633803317],[3248222580,3479774868],[3835390401,2666613458],[4022224774,944711139],[264347078,2341262773],[604807628,2007800933],[770255983,1495990901],[1249150122,1856431235],[1555081692,3175218132],[1996064986,2198950837],[2554220882,3999719339],[2821834349,766784016],[2952996808,2566594879],[3210313671,3203337956],[3336571891,1034457026],[3584528711,2466948901],[113926993,3758326383],[338241895,168717936],[666307205,1188179964],[773529912,1546045734],[1294757372,1522805485],[1396182291,2643833823], [1695183700,2343527390],[1986661051,1014477480],[2177026350,1206759142],[2456956037,344077627],[2730485921,1290863460],[2820302411,3158454273],[3259730800,3505952657],[3345764771,106217008],[3516065817,3606008344],[3600352804,1432725776],[4094571909,1467031594],[275423344,851169720],[430227734,3100823752],[506948616,1363258195],[659060556,3750685593],[883997877,3785050280],[958139571,3318307427],[1322822218,3812723403],[1537002063,2003034995],[1747873779,3602036899],[1955562222,1575990012],[2024104815, 1125592928],[2227730452,2716904306],[2361852424,442776044],[2428436474,593698344],[2756734187,3733110249],[3204031479,2999351573],[3329325298,3815920427],[3391569614,3928383900],[3515267271,566280711],[3940187606,3454069534],[4118630271,4000239992],[116418474,1914138554],[174292421,2731055270],[289380356,3203993006],[460393269,320620315],[685471733,587496836],[852142971,1086792851],[1017036298,365543100],[1126000580,2618297676],[1288033470,3409855158],[1501505948,4234509866],[1607167915,987167468], [1816402316,1246189591]],l={"SHA-512":[[1779033703,4089235720],[3144134277,2227873595],[1013904242,4271175723],[2773480762,1595750129],[1359893119,2917565137],[2600822924,725511199],[528734635,4215389547],[1541459225,327033209]],"SHA-384":[[3418070365,3238371032],[1654270250,914150663],[2438529370,812702999],[355462360,4144912697],[1731405415,4290775857],[2394180231,1750603025],[3675008525,1694076839],[1203062813,3204075428]],"SHA-512/256":[[573645204,4230739756],[2673172387,3360449730],[596883563, 1867755857],[2520282905,1497426621],[2519219938,2827943907],[3193839141,1401305490],[721525244,746961066],[246885852,2177182882]],"SHA-512/224":[[2352822216,424955298],[1944164710,2312950998],[502970286,855612546],[1738396948,1479516111],[258812777,2077511080],[2011393907,79989058],[1067287976,1780299464],[286451373,2446758561]]},h=!0);"undefined"===typeof a&&(a="SHA-512");if(!(a in l))throw Error("Invalid SHA-512 algorithm: "+a);for(var d=l[a],g=null,f=b.util.createBuffer(),v=Array(80),m=0;80>m;++m)v[m]= Array(2);m=64;switch(a){case "SHA-384":m=48;break;case "SHA-512/256":m=32;break;case "SHA-512/224":m=28}var r={algorithm:a.replace("-","").toLowerCase(),blockLength:128,digestLength:m,messageLength:0,fullMessageLength:null,messageLengthSize:16,messageLength128:null,update:null,digest:null,start:function(){r.messageLength=0;r.fullMessageLength=r.messageLength128=[];for(var a=r.messageLengthSize/4,c=0;c>>0,d>>>0];for(var e=r.fullMessageLength.length-1;0<=e;--e)r.fullMessageLength[e]+=d[1],d[1]=d[0]+(r.fullMessageLength[e]/4294967296>>>0),r.fullMessageLength[e]>>>=0,d[0]=d[1]/4294967296>>>0;f.putBytes(a);c(g,v,f);(2048>>0,k+=h,d.putInt32(k>>>0),k=l>>>0;d.putInt32(k);l=Array(g.length);for(n=0;nd.status?d.responseText?(b(d.responseText),c()):c(Error("Response is Empty.")):d.readyState===XMLHttpRequest.DONE&&503===d.status&&c(Error("(503) Service is not available."))};d.withCredentials=!0;d.open(h,a);k&&d.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");d.send(k||null)};this.resendEvent=function(){setTimeout(function(){b.resendCounta.status){b.q.removeEvent(c.guid); if(-1f.MAX_URL_SIZE&&(p.set(r,l),q.push(r),h=0,l=[],r=c);l.push("".concat(x.spotName));I="";A=void 0;a.attributes&&(A=a.attributes[x.spotName]);if(A)for(var B in A)"product_id"===B||"product_sku"===B?(C=A[B],null!=C&&C.trim&&C.trim(),B+="_key",I+="".concat(B,"=").concat(C,"/")):null!=A[B]&&d.containsAttribute(x.spotAttributes,B)&&(C=A[B],C.toString&&(I+="".concat(B,"=").concat(m.Base64.encode(C.toString().trim()).replace(/=/g, ""),"/")));r+="/b".concat(++h,"/spot_id=").concat(x.spotId,"/").concat(I,"viewid=").concat(D.get(x.spotId))}l.length&&(p.set(r,l),q.push(r));k(null,q,p,b)}else k(c,null,null,null)})};this.configService=a;this.networkService=c;this.util=b}f.prototype.init=function(a){this.config=this.configService.getConfig();a()};f.prototype.isConfigValid=function(){return!(!this.config||!this.config.sdu)};f.prototype.handleCreativesUrlResponse=function(a,c,b){return function(){if(a.readyState===XMLHttpRequest.DONE&& 200===a.status){var d=[];if(a.responseText)try{d=JSON.parse(a.responseText)}catch(g){b(Error("Creatives response could not be parsed: ".concat(g)),c,null)}b(null,c,d)}else a.readyState===XMLHttpRequest.DONE&&b(Error("Creatives could not be retrieved: ".concat(a.statusText)),c,null)}};f.prototype.getCreatives=function(a,c,b){var d=this,g=new Map;this.getCreativesUrls(a,c,g,function(c,h,k){if(c)b(c,null,null);else{var e=new Map,f=0,p=!0;c=function(c,h,l){if(!c&&p){f++;var n=c=0;h=k.get(h);for(var v= 0;v--a.retries?c(null,null):setTimeout(function(a,c){b.getPersonalizedCreative(a,c)},a.delay,a,c)}):0===g.size?c(Error("No creative found"),null):1/,"").replace(//,"")},b=a.match(/data-creativeID="([A-Za-z0-9-]+)"/i);if(b)b[1]&&(c.creativeId=b[1]);else if(b=a.indexOf('data-creativeID="'),-1")&&(a=a.slice(1).trim());if(!this.isSelectorValid(a))return b;null!= c&&(d=document);null!=d.matches&&d.matches(a)&&(b=b.concat(d));var h=d.querySelectorAll(a);if(null!=h&&0=c||0>b||r&&a>=A}function e(){var a=Date.now();if(g(a))return h(a);var b=a-m;a=c-(a-u);n=setTimeout(e,r?Math.min(a,A-b):a)}function h(a){n=void 0;if(q&&l)return d(a);l=f=void 0;return p}function k(){for(var a=[],b=0;b=a||(k.mediaEventCount++,k.decorateEventAndSend(c)))};this.changeEventListenerHandler=function(a){a=a.target;var c="";null!=a.id?c=a.id:null!=a[k.CI360_ID_KEY]&& (c=a[k.CI360_ID_KEY]);var b=k.formFieldChangeMap[c];null!=b&&(k.formFieldChangeMap[c]=++b);k.changeEventHandler(a)};this.spotsOnPageMap=new Map;this.getSpotDefinitionsCallback=function(a,c){null==a&&(k.spotDefinitionSelectors=c,k.addFoundSelectorsToPageMap(c,document))};this.getCreativesCallback=function(a,c,b){null==a&&(c.forEach(function(a,b){if(a=this.spotsOnPageMap.get(b))a.creative=c.get(b),a.isCreativeRequested=!0},k),k.injectResponse(b))};this.doesPageRuleMatch=function(a){if(!a)return!1;var c= a.cookieList;if(c)for(var b=0;b=b||(c.mediaEventCount++,c.decorateEventAndSend(a)))})}},d=0;d=c))){c=a.target;var b=this.configService.getContentChangeInfo();if(null!=b)for(var d=0;d<\/data>/))&&n[1]&&(l=n[1]),this.util.loadDoc(l,g)):g.innerHTML=m;null!= e.parentNode&&("DIV"!==e.tagName?e.parentNode.replaceChild(g,e):(e.innerHTML="",e.appendChild(g)));g.style&&(g.style.width="100%",g.style.height="100%",g.style.visibility="visible");g.spotPlaced=!0;l=a[b];q={eventName:"impression",spotName:b};for(h in l)n=!0,u=l[h],!c.recommender||"Y"!==c.recommender||"product_id"!==h&&"product_sku"!==h||(n=!1),n&&(q[h]=u);for(var r in c)u=c[r],q[r]=u;this.decorateEventAndSend(q);g[this.CI360_SPOT_NAME]=b;g[this.CI360_SPOT_ATTRIBUTES]=l;g[this.CI360_SPOT_DATA_TAGS]= c;if(this.isElementInViewport(g)){r={eventName:"impressionViewable",spotName:b};for(h in l)n=!0,u=l[h],!c.recommender||"Y"!==c.recommender||"product_id"!==h&&"product_sku"!==h||(n=!1),n&&(r[h]=u);for(f in c)u=c[f],r[f]=u;this.decorateEventAndSend(r)}else this.spotsToWatchOnScroll.push(g);this.spotIds.push(d)}this.spotsOnPageMap.delete(b)}else c&&c.isCreativeRequested&&((h=this.util.querySelectorShadow(document,c.selector))&&h.style&&(h.style.visibility="visible"),this.spotsOnPageMap.delete(b))},this); this.injectResponseLock=!1;this.newSpotsWaiting&&(this.newSpotsWaiting=!1,this.requestCreatives(!1))};f.prototype.isElementInViewport=function(a){if("undefined"!==typeof a.getBoundingClientRect())a=a.getBoundingClientRect();else if("undefined"!==typeof(a.parentElement&&a.parentElement.getBoundingClientRect()))a=a.parentElement.getBoundingClientRect();else return!1;var c=a.height*a.width,b=0,d=0,g=0,e=0;0>a.top&&(b=-1*a.top);0>a.left&&(g=-1*a.left);0>window.innerWidth-a.right&&(e=-1*(window.innerWidth- a.right));0>window.innerHeight-a.bottom&&(d=-1*(window.innerHeight-a.bottom));b+=d;b>a.height&&(b=a.height);g+=e;g>a.width&&(g=a.width);return.5<=(c-(b*a.width+g*a.height))/c?!0:!1};f.prototype.establishTopLevelListener=function(){this.listenerTopLevel.addEventListener("click",this.topLevelListenerHandler,!0)};f.prototype.identityHelper=function(a,c){var b=a.p,d=a.f,g=a.ds;if("pageElement"===g){g=a.a;var e={};this.addAttributeToObj(a.s,g,c[d],b,g,e);e=e[g]}else"jsVariable"===g?(a=a.dsv,a=this.util.tokenizeObjectString(a), a=this.util.getVariableFromObjectString(a),e=this.filterValue(a,c[d],b)):"urlQueryParameter"===g?(a=a.dsv,a=this.util.extractParam(a,window.location.href),e=this.filterValue(a,c[d],b)):"cookie"===g&&(a=a.dsv,a=this.persistenceService.getCookie(a),e=this.filterValue(a,c[d],b));this.util.isString(e)&&(e=e.toLowerCase().trim());return e};f.prototype.getElementPath=function(a){var c=[];c.unshift(null!=a.id&&null!=a.id&&""!=a.id?a.id:a.nodeName);if(a=a.parentElement)for(;null!=(a=a.parentElement);)null!= a.id&&""!=a.id?c.unshift(a.id):c.unshift(a.nodeName);return"//#document/"+c.join("/")};f.prototype.getElementFullSelector=function(a){for(var c=this.getElementSelector(a);null!=(a=a.parentElement);)c=this.getElementSelector(a)+" > "+c;return c};f.prototype.getElementSelector=function(a){if(null==a)return"";var c=a.tagName.toLowerCase();if("body"!=c&&"html"!=c){var b=a.getAttribute("id"),d=a.getAttribute("class");a=a.getAttribute("name");if(b)c=0<=b.indexOf(".")?c+("[id='"+b+"']"):c+("#"+b);else{if(d)for(b= d.split(/\s+/),d=0;dd?c:d)+1)):"BUTTON"===a.nodeName&&(g=a.innerHTML);c="BUTTON"===a.nodeName?document.URL:encodeURI(document.referrer);d=a.innerText;c={eventName:"click",referrer:c,elementTagName:a.tagName,anchorId:a.id,anchorHref:g,anchorName:a.name,location:this.getElementPath(a),targetSelectorPath:this.getElementFullSelector(a),targetInnerText:null!=a.textContent?a.textContent:a.innerText,targetAlt:a.hasAttribute("alt")?a.getAttribute("alt"):"",onClick:a.hasAttribute("onclick")?a.getAttribute("onclick"): "",uri:a.hasAttribute("href")?a.href:document.URL,title:d};if(0=c)){var b=this.persistenceService.getCookies(),d=this.configService.getJsVars(),g=d.length;for(c= 0;c=e||(c={eventName:"jsvarchange",name:b,action:"update",oldValue:d,newValue:c},a.jsVarChangeCount++,a.decorateEventAndSend(c)))}};try{null!=Object.defineProperty&&Object.defineProperty(d,g,{set:c,get:function(){return f},enumerable:!0,configurable:!0})}catch(v){}}},d=0;d