3aafa3cd287da6cee8e81556c4aeb958229b9205bf802a3669a05c162cd9916a

Source Code:

"use strict";var EvtHandler=function(){this.add=function(e,r){window.newrelic&&window.newrelic.addPageAction}},evtHandler=new EvtHandler;evtHandler.add("track",{type:"jsloaded",uri:document.location.href,requestUri:window.document.location.href,userAgent:navigator.userAgent});var rawTrackingData=rawTrackingData||null,trackingRedirectHandler=trackingRedirectHandler||null;!function(e,r){var t=function(e){var r=[];for(var t in e)e.hasOwnProperty(t)&&r.push(encodeURIComponent(t)+"="+encodeURIComponent(e[t]));return r.join("&")};function a(e,r,t){var a=function(){for(var e=!1,r=0;r<n.length;r++){try{e=n[r]()}catch(e){continue}break}return e}();if(evtHandler.add("track",{type:"ho",status:a.status,trackUri:e,requestUri:window.document.location.href,userAgent:navigator.userAgent}),a){a.onreadystatechange=function(){evtHandler.add("track",{type:"hodone",status:a.status,readyState:a.readyState,trackUri:e,requestUri:window.document.location.href,userAgent:navigator.userAgent}),4==a.readyState&&(200!=a.status&&304!=a.status||r(a))};var o=t?"POST":"GET";a.open(o,e,!0),t&&a.setRequestHeader("Content-type","application/x-www-form-urlencoded"),4!=a.readyState&&a.send(t)}}var n=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}];function o(){e.pageLoadCallback&&e.pageLoadCallback(i())}function i(){return JSON.parse(decodeURIComponent((e="tracking",(r=document.cookie.match(new RegExp("(?:^|;\\s*)"+e.replace(/([.*+?\^${}()|\[\]\/\\])/g,"\\$1")+"=([^;]*)")))?r[1]:null)))||{};var e,r}function c(e,r,t,a){if(void 0===t&&(t=new Date).setTime(t.getTime()+6048e5),!1==t instanceof Date)throw"Cookie expiration should be an instance of Date";void 0===a&&(a="/"),document.cookie=e+"="+encodeURIComponent(r)+"; expires="+t.toUTCString()+"; path="+a}for(var s,d={},u=/origin\[([^\[\]]+)\][?=]*([^&]*)/gi;s=u.exec(location.search);)d[s[1]]=s[2];if(0!==Object.keys(d).length){var l=[];for(var f in d)d.hasOwnProperty(f)&&l.push(f+"="+d[f]);c("origin",l.join("&"))}var h=new function(r,n){function s(){var e=window.document.location.search,r=window.document.location.pathname;if("/"!==r){var t,a=r.slice(1,-1).split("/");(t=isNaN(a[0])?a[1]:a[0])&&(e+=e?"&":"?",e+="tour="+t)}evtHandler.add("track",{type:"legacy",requestUri:window.document.location.href,trackUri:"/dfsiuh6112hd"+e,userAgent:navigator.userAgent}),document.write('<script src="/dfsiuh6112hd'+e+'" async><\/script>')}this.appendTrackingData=function(e,r){for(var t=["aff_id","url_id","random_url","source","aff_sub","aff_sub2","aff_sub3","aff_sub4","aff_sub5"],a=t.length,n=!1,o=0;o<a;o++){var i=t[o];void 0!==r[i]&&(e[i]=r[i],n=!0)}n&&(e.raw=1)};var d=this;this.createCookie=function(e,r,t,a,n,o,i){c("tracking",JSON.stringify({aff:1,subId1:"",subId2:e,subId3:r,subId4:t,typeInUrl:"",urlParam:a,tourId:n,mirrorId:o}))},this.parseURL=function(e){var r,t,a,n=document.createElement("a"),o={};for(n.href=e,r=n.search.replace(/^\?/,"").split("&"),a=0;a<r.length;a++)t=r[a].split("="),o[decodeURIComponent(t[0])]=decodeURIComponent(t[1]);return{protocol:n.protocol,host:n.host,hostname:n.hostname,port:n.port,pathname:n.pathname,search:n.search,searchObject:o,hash:n.hash}},this.trackingHandler=r,this.redirectHandler=n,this.track=function(r,n,c){var u=d.parseURL(document.location.href).searchObject,l=(u.r||"").split(".");l=l[l.length-1];var f,h=u.s1||u.tracker||l||null,p=i();if(h)return s();if(u.s2){var g=u.s2||p.subId2||"",m=u.s3||"",b=u.s4||"",v=u.url||"";return g===(p.subId2||"")&&(m=m||p.subId3||"",b=b||p.subId4||"",v=u.url||p.urlParam||""),this.createCookie(g,m,b,v,e.tourId,null),o()}if(p.subId1)return s();if(p.subId2)return o();r=r||"offer",n=n||1,(c=c||{}).format="json",c.source=n,c.referrer=document.referrer,e.url_id&&(c.url_id=e.url_id),this.appendTrackingData(c,u);var w=Math.random().toString(36).substr(2,7),k=Math.random().toString(36).substr(2,3),x=c.raw||!1;switch(r){case"offer":f=(x?"jp/of/":"or/")+w,c.offer_id=n;break;case"campaign":f="ad/"+w,c.campaign_id=n;break;default:f=(x?"jp/of/":"or/")+w,c.offer_id=n}if("or/"===f.substring(0,3)){var y=JSON.parse(JSON.stringify(c));delete y.aff_id,delete y.offer_id,a("/"+k+"/"+w+"/"+c.aff_id+"/"+c.offer_id+"?"+t(y),this.trackingHandler)}else a("/"+f+"?"+t(c),this.trackingHandler)}}(function(r){var t=200==r.status?"success":"error",a=JSON.parse(r.response);if("success"===t&&a.response&&a.response.data&&a.response.data.url){var n,i=document.location.hostname.split(".vm1")[0],c=a.response.data.url,s=rawTrackingData.allowedDomains||[];s.unshift({url:i,id:null});for(var d=null,u=0;u<s.length;u++)if(0===(n=c.split("://")[1].indexOf(s[u].url))){d=s[u].id;break}var l=h.parseURL(c),f=h.parseURL(document.location.href).searchObject.url||"";0!==n&&(l.searchObject.s2="noredirect"),h.createCookie(l.searchObject.s2||"",l.searchObject.s3||"",l.searchObject.s4||"",f||l.searchObject.url,e.tourId,d),o()}},r||function(e){var r=document.createElement("div");r.className="redirect-box-ctn",r.innerHTML='<div class="redirect-box">You don\'t have access to the current offer. <br>We\'re going to redirect you to a similar offer available to you at: <a href="'+e+'">'+e+"</a></div>";var t=document.createElement("style");t.innerHTML=".redirect-box-ctn {  background-color: rgba(0, 0, 0, .8);  position: fixed;  top: 0;  right: 0;  bottom: 0;  left: 0;  z-index: 99999;}.redirect-box {  color: #000;  position: absolute;  background-color: #fff;  padding: 30px;  top: 50%;  left: 50%;  -webkit-transform: translate(-50%,-50%);  transform: translate(-50%,-50%);  text-align: center;  font-size: 14px;  line-height: 1.4;  font-weight: 700;  max-width: 400px;  border-radius: 15px;}.redirect-box a {  color: #0074ff;  text-decoration: none;  word-break: break-all;}.redirect-box a:hover {  text-decoration: underline;}",setTimeout(function(){window.location.replace(e)},3e3),document.body.appendChild(t),document.body.appendChild(r)});h.track("offer",e.id,{aff_id:e.affiliate})}(rawTrackingData,trackingRedirectHandler);