eb5bc514607bcacf1dc2c6fd07728da9ebe9122226696487e2990c9507814d2f

Source Code:

(function(){if(typeof window.QSI==='undefined'){window.QSI={};}
var tempQSIConfig={"hostedJSLocation":"https://siteintercept.qualtrics.com/dxjsmodule/","zoneId":"ZN_2skDLWiOkOg4Zp3"};if(typeof window.QSI.config!=='undefined'&&typeof window.QSI.config==='object'){for(var attrname in tempQSIConfig){window.QSI.config[attrname]=tempQSIConfig[attrname];}}else{window.QSI.config=tempQSIConfig;}
window.QSI.overrides={"baseURL":"https://siteintercept.qualtrics.com"};window.QSI.shouldStripQueryParamsInQLoc=false;})();try{!function(e){function t(t){for(var n,o,i=t[0],a=t[1],s=0,u=[];s<i.length;s++)o=i[s],r[o]&&u.push(r[o][0]),r[o]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(c&&c(t);u.length;)u.shift()()}var n={},r={1:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var i=new Promise(function(t,o){n=r[e]=[t,o]});t.push(n[2]=i);var a,s=document.createElement("script");s.charset="utf-8",s.timeout=120,o.nc&&s.setAttribute("nonce",o.nc),s.src=function(e){return o.p+""+({}[e]||e)+"."+{0:"48ac0461102f45a97058",2:"ea1693fcdb65a23b2b76",3:"0bb5e11b0ae0c8470633",4:"14ec92f3d0b69c0ae8b5",5:"998d6cc4d51d28d3b9e4",6:"7b1831a930b2dbac2b97",7:"ec2fa5c5861d8b526da6",8:"7c5744d732cf8f522893",9:"b9669299b2f1180cf482",10:"1495c78fb69b281b941a"}[e]+".chunk.js?Q_CLIENTVERSION=1.29.0&Q_CLIENTTYPE=web"}(e);var c=new Error;a=function(t){s.onerror=s.onload=null,clearTimeout(u);var n=r[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",c.type=o,c.request=i,n[1](c)}r[e]=void 0}};var u=setTimeout(function(){a({type:"timeout",target:s})},12e4);s.onerror=s.onload=a,document.head.appendChild(s)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o.oe=function(e){throw console.error(e),e};var i=window["WAFQualtricsWebpackJsonP-cloud-1.29.0"]=window["WAFQualtricsWebpackJsonP-cloud-1.29.0"]||[],a=i.push.bind(i);i.push=t,i=i.slice();for(var s=0;s<i.length;s++)t(i[s]);var c=a;o(o.s=1)}([function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};var o=function(){var e,t=window.QSI,o=window.QSI=r(r({},t),{reg:t.reg||{},ed:t.ed||{},reqID:t.reqID||{},overrides:t.overrides||{},shouldStripQueryParamsInQLoc:!!t.shouldStripQueryParamsInQLoc,config:r({zoneId:"",brandId:""},t.config),global:r(r({currentZIndex:2e9,intercepts:{},eventTrackers:[],featureFlags:{},enableJSSanitization:!1,latencySamplePercentage:.02,alreadyFetchedJSModules:[],maxCookieSize:null},t.global),{isHostedJS:function(){return!1},clientType:"web",clientVersion:"1.29.0",hostedJSLocation:t.config.hostedJSLocation||t.config.clientBaseURL,legacyId:t.config.interceptId||t.config.zoneId||t.config.targetingId||t.global.ID}),isFullDbgInitialized:!1,baseURL:"",LoadingState:t.LoadingState||[],PendingQueue:t.PendingQueue||[],debugConfig:t.debugConfig||{},getBaseURLFromConfigAndOverrides:function(){var e="";if(o.overrides.baseURL)0===(e=o.overrides.baseURL).indexOf("https://")?e=e.substring(8):0===e.indexOf("http://")?e=e.substring(7):0===e.indexOf("//")&&(e=e.substring(2));else if(e="siteintercept.qualtrics.com",o.config.brandId){if(!o.config.zoneId)throw"You must specify a zoneId";e=o.config.zoneId.replace("_","").toLowerCase()+"-"+o.config.brandId.toLowerCase()+"."+e}return"//"+e},initFullDbg:function(){o.isFullDbgInitialized=!0},getClientVersionQueryString:function(){var e={Q_CLIENTVERSION:o.global.clientVersion||"unknown",Q_CLIENTTYPE:o.global.clientType||"unknown"};return void 0!==o.clientTypeVariant&&(e.Q_CLIENTTYPE+=o.clientTypeVariant),o.generateQueryString(e)},generateQueryString:function(e){var t=[];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=n;e[n]&&(r+="="+encodeURIComponent(e[n])),t.push(r)}return t.join("&")}});if(!o.global.legacyId)throw"You must specify a zoneId or zoneId and interceptId";return o.global.baseURL=o.getBaseURLFromConfigAndOverrides(),o.global.isHostedJS()&&(o.global.enableJSSanitization=o.config.enableJSSanitization||!0),o.baseURL=o.baseURL||o.overrides.siBaseURL||"https:"+o.global.baseURL+"/WRSiteInterceptEngine/",e=o.global.hostedJSLocation,n.p=e,o}()},function(e,t,n){e.exports=n(8)},function(e,t){QSI.history&&!window.QTest||(QSI.historyStorage={historySessionName:"QSI_HistorySession",get useCookie(){return"sessionStorage"!==QSI.historyStorageType},get limit(){return this.useCookie?2e3:1e4},getHistorySessionData:function(){return this.useCookie?QSI.cookie.get(this.historySessionName):sessionStorage.getItem(this.historySessionName)},eraseHistorySessionData:function(){this.useCookie?QSI.cookie.erase(this.historySessionName):sessionStorage.removeItem(this.historySessionName)},setHistorySessionData:function(e){this.useCookie?QSI.cookie.set(this.historySessionName,e,0):sessionStorage.setItem(this.historySessionName,e)}},QSI.history={historyStorage:QSI.historyStorage,logVisit:function(){this.logCurrentURL(),this.logSearch(),this.startFocusTracking(),this.logReferrer()},startFocusTracking:function(){if(!this.started)try{this.started=!0,this.focusTime=this.getFocusTimeFromBrowserStorage(),this.blurTime=this.getBlurTimeFromBrowserStorage();var e=this;setInterval(function(){try{e.focused?e.focusTime+=1:e.blurTime+=1}catch(e){"undefined"!=typeof QSI&&QSI.dbg&&QSI.dbg.e&&QSI.dbg.e(e)}},1e3);var t,n=function(){try{e.focused=!0}catch(e){"undefined"!=typeof QSI&&QSI.dbg&&QSI.dbg.e&&QSI.dbg.e(e)}};n(),QSI.util.observe(window,"focus",n),QSI.util.observe(window,"blur",function(){try{e.focused=!1}catch(e){"undefined"!=typeof QSI&&QSI.dbg&&QSI.dbg.e&&QSI.dbg.e(e)}}),t=QSI.Browser.isMobile?"pagehide":"unload",QSI.util.observe(window,t,function(){try{QSI.profile.set("History","BlurTime",e.blurTime),QSI.profile.set("History","FocusTime",e.focusTime)}catch(e){"undefined"!=typeof QSI&&QSI.dbg&&QSI.dbg.e&&QSI.dbg.e(e)}})}catch(e){QSI.dbg.e(e)}},logSite:function(e,t){var n,r=this.historyStorage.getHistorySessionData();if(r){var o=(r=decodeURIComponent(r)).split("|");n=o[o.length-1].split("~")[0],r+="|"}else r="",n="";e!==n&&(r+=e+"~"+t,this.writeHistory(r))},writeHistory:function(e,t){if(null!=t&&t<=0)this.historyStorage.eraseHistorySessionData();else{t=t||QSI.historyStorageSize||QSI.global.maxCookieSize||this.historyStorage.limit;var n=encodeURIComponent(e),r=this.limitSize(n,t);try{this.historyStorage.setHistorySessionData(r)}catch(n){e=decodeURIComponent(r),this.writeHistory(e,t-500)}}},limitSize:function(e,t){if(!e.length)return e;for(t=t||this.historyStorage.limit;e.length>t;){var n=decodeURIComponent(e).split("|");n.splice(0,1),e=n.join("|"),e=encodeURIComponent(e)}return e},get:function(){var e=this.historyStorage.getHistorySessionData();return e||(e=[]),e=this.limitSize(e),decodeURIComponent(e)},logCurrentURL:function(){var e=window.location.href,t=1*new Date;this.logSite(e,t)},getReferrer:function(){return document.referrer},logSearch:function(){var e,t,n=this.getReferrer();if(n.search(/(google.com)|(bing.com)|(yahoo.com)/)>=0){var r="";n.search(/(google.com)|(bing.com)/)>=0?(e=/q=(.*?)\&/,(t=n.match(e))&&t.length&&t[1]&&(r=t[1])):n.search(/yahoo.com/)>=0&&(e=/p=(.*?)\&/,(t=n.match(e))&&t.length&&t[1]&&(r=t[1])),r=decodeURIComponent(r),QSI.profile.set("History","SearchTerm",r)}},logReferrer:function(){var e=this.getReferrer();e&&(QSI.util.build("a",{href:e}).hostname!==document.location.host&&QSI.profile.set("History","SiteReferrer",e),QSI.profile.set("History","PageReferrer",e))},logIntercept:function(e,t){t&&this.logActionSet(t)},logActionSet:function(e){if(e.search("AS_")>=0){var t=e,n=1*new Date;QSI.profile.set("ActionSetHistory",t,n),QSI.profile.set("ActionSetHistory",t,n,1)}},logSurvey:function(e,t){QSI.profile.set("QualtricsSurveyHistory",e,t,1)},getSiteReferrer:function(){return QSI.profile.get("History","SiteReferrer")},getPageReferrer:function(){return QSI.profile.get("History","PageReferrer")},getSearch:function(){var e=QSI.profile.get("History","SearchTerm");return e||(e=""),e},getTimeOnSite:function(){var e=this.focusTime;return e+this.blurTime+"|"+e},getFocusTimeFromBrowserStorage:function(){var e=QSI.profile.get("History","FocusTime");return e||(e=0),e},getBlurTimeFromBrowserStorage:function(){var e=QSI.profile.get("History","BlurTime");return e||(e=0),e},getActionSetHistory:function(e,t){var n=QSI.profile.get("ActionSetHistory",e,t);return n||(n=0),n},getPageCount:function(){var e,t,n=this.historyStorage.getHistorySessionData(),r=0,o=[];if(n){var i=(n=decodeURIComponent(n)).split("|");for(t=i.length,e=0;e<t;e++)o.push(i[e].split("~")[0]);var a={};for(t=o.length,e=0;e<t;e++)a[o[e]]||(r++,a[o[e]]=!0)}return{unique:r,total:o.length}}})},function(e,t){QSI.profile||(QSI.profile={namespace:"QSI_",set:function(e,t,n,r){if(void 0===e||void 0===t||void 0===n)throw new Error("To few arguments");try{var o=this.getStorage(r),i=this.namespace+e,a=o.getItem(i);(a=a?JSON.parse(a):{})[t]=n,a=JSON.stringify(a),o.setItem(i,a)}catch(e){QSI.dbg.e("error setting profile item"),QSI.dbg.e(e)}},get:function(e,t,n){var r=this.getStorage(n),o=this.namespace+e,i=r.getItem(o);return i?(i=JSON.parse(i),t?i[t]?i[t]:null:i):null},erase:function(e,t,n){var r=this.getStorage(n),o=this.namespace+e;if(t){var i=JSON.parse(r.getItem(o));delete i[t],i=JSON.stringify(i),r.setItem(o,i)}else r.removeItem(o)},getStorage:function(e){if(this.hasSessionStorage())return e?localStorage:sessionStorage;if(QSI.UserDataStorage){var t=QSI.UserDataStorage;return e?t.isPermanent(!0):t.isPermanent(!1),t}return QSI.CookieStorage},hasSessionStorage:function(){var e="qualtricssessionstoragetestkey",t=window.sessionStorage;try{return t.setItem(e,e),t.removeItem(e),!0}catch(e){return!1}}})},function(e,t){void 0===QSI.util&&(QSI.util={$:function(e){return"string"==typeof e&&(e=document.getElementById(e)),e},forOwn:function(e,t){if(e&&e instanceof Object&&this.isFunction(t))for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(e[n],n,e)},build:function(e,t,n){var r=document.createElement(e);if(t){var o=this;QSI.util.forOwn(t,function(e,n){switch(n){case"style":o.setStyle(r,t[n]);break;case"className":r.className=t[n];break;case"id":r.id=t[n];break;default:r.setAttribute(n,t[n])}})}if(n)if(QSI.util.isString(n))"style"===e&&r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(String(n)));else if(QSI.util.isArray(n))for(var i=0,a=n.length;i<a;i++){var s=n[i];"string"==typeof s||"number"==typeof s?r.appendChild(document.createTextNode(String(s))):s&&s.nodeType&&r.appendChild(s)}return r},setStyle:function(e,t){QSI.util.forOwn(t,function(n,r){try{e.style[r]=t[r]}catch(e){QSI.dbg.e(e)}})},isString:function(e){return"string"==typeof e},isArray:function(e){return"object"==typeof e&&e instanceof Array},getQueryParam:function(e,t){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);return null===n?"":n[1]},observe:function(e,t,n,r){this.obs=this.obs||[],e&&(this.obs.push({el:e,e:t,f:n,preventRemove:r||!1}),e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+this.capFirst(t)]&&(e["on"+this.capFirst(t)]=n))},stopObserving:function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):e["on"+this.capFirst(t)]&&(e["on"+this.capFirst(t)]=null)},removeObservers:function(){var e=this;this.each(this.obs||[],function(t){t.preventRemove||e.stopObserving(t.el,t.e,t.f)})},remove:function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},isFunction:function(e){return"function"==typeof e||!1},capFirst:function(e){return e.charAt(0).toUpperCase()+e.slice(1)},each:function(e,t){var n=e.length;if(n)for(var r=0;r<n;r++)t(e[r],r)}})},function(e,t){QSI.API&&!window.QTest||(QSI.API={load:function(){function e(e){try{if(QSI.reg||this.unloading)return void e.reject();void 0===window.QSI&&(window.QSI={}),void 0===QSI.reg&&(QSI.reg={}),void 0===QSI.ed&&(QSI.ed={}),void 0===QSI.reqID&&(QSI.reqID={}),void 0===QSI.Request&&(QSI.Request={}),void 0===QSI.styleElements&&(QSI.styleElements=[]),QSI.util.forOwn(QSI.reqID,function(t,n){var r={loadingFromAPI:!0};r.id=n,"Editing"===QSI.version&&(r.version="0"),void 0!==QSI.global.clientVersion&&null!==QSI.global.clientVersion&&(r.Q_CLIENTVERSION=QSI.global.clientVersion),void 0!==QSI.global.clientType&&null!==QSI.global.clientType&&(r.Q_CLIENTTYPE=QSI.global.clientType,void 0!==QSI.clientTypeVariant&&(r.Q_CLIENTTYPE+=QSI.clientTypeVariant)),0===n.search(/ZN/)?r.ZoneID=n:r.InterceptID=n,QSI.isDebug&&(r.Q_DEBUG=null),r.deferred=e,QSI.Orchestrator.load(r)})}catch(e){QSI.dbg.e(e)}}try{var t=QSI.Orchestrator.Deferred(),n=t.promise();return QSI.PendingQueue||(QSI.PendingQueue=[]),QSI.LoadingState&&QSI.LoadingState.length>0?QSI.PendingQueue.push(e.bind(this,t)):e.bind(this,t)(),n}catch(e){QSI.dbg.e(e)}},unload:function(){try{if(QSI.PendingQueue||(QSI.PendingQueue=[]),QSI.LoadingState&&QSI.LoadingState.length>0)return void QSI.PendingQueue.push(QSI.API.unload);if(this.unloading=!0,QSI.reg&&(QSI.util.forOwn(QSI.reg,function(e,t){QSI.reg[t].remove()}),QSI.util.removeObservers()),QSI.debug&&(QSI.util.remove(QSI.util.$("QSI_Debug")),QSI.debuggerHasDisplayed=!1),QSI.styleElements)for(var e=QSI.styleElements,t=0;t<e.length;t++)QSI.util.remove(e[t]);QSI.reg=void 0,QSI.Request=void 0,QSI.styleElements=void 0,this.unloading=!1}catch(e){QSI.dbg.e(e)}},run:function(){try{if(QSI.PendingQueue||(QSI.PendingQueue=[]),QSI.LoadingState&&QSI.LoadingState.length>0)return void QSI.PendingQueue.push(QSI.API.run);QSI.InterceptsRan||void 0===QSI.reg||QSI.RunIntercepts(null,!0)}catch(e){QSI.dbg.e(e)}},Events:{increment:function(e){try{QSI.EventTracker.track(e)}catch(e){QSI.dbg.e(e)}},count:function(e){try{return QSI.EventTracker.get(e)}catch(e){QSI.dbg.e(e)}},push:function(e){try{QSI.EventTracker.track(e)}catch(e){QSI.dbg.e(e)}}}})},function(e,t){QSI.ContactFrequency={contactFrequencyRequestTimeout:1e4,contactFrequencyCheckResults:{},contactFrequencyCheckStates:{CAN_CONTACT:"CAN_CONTACT",DO_NOT_CONTACT:"DO_NOT_CONTACT",NOT_CHECKED:"NOT_CHECKED"},checkContactFrequencyRules:function(e,t){var n=QSI.Orchestrator.Deferred(),r={};return QSI.util.forOwn(e,function(e,n){if(this.contactFrequencyCheckResults[n]={status:this.contactFrequencyCheckStates.NOT_CHECKED,brandId:null,surveyId:null},null!==e.Targeting.Decision.ActionSetID){var o=e.Intercept;if(!QSI.util.shouldPreventRepeatedDisplay(n,o.DisplayOptions)&&this.shouldCheckContactFrequency(o)){var i=this.getIQDirectorySettings(o);if(i){var a=this.getTargetSurveyId(o,e.Targeting);a&&(i.surveyId=a,this.contactFrequencyCheckResults[n].surveyId=a),this.contactFrequencyCheckResults[n].brandId=t,i.brandId=t,r[n]=i,this.contactFrequencyCheckResults[n].status=this.contactFrequencyCheckStates.DO_NOT_CONTACT}else this.contactFrequencyCheckResults[n].status=this.contactFrequencyCheckStates.DO_NOT_CONTACT}}}.bind(this)),0!==Object.keys(r).length?this.sendContactFrequencyRequest(r,n):n.resolve(),n.promise()},shouldCheckContactFrequency:function(e){return e.DisplayOptions&&e.DisplayOptions.useContactFrequencyRules},getIQDirectorySettings:function(e){if(!e.DisplayOptions)return null;var t,n=e.DisplayOptions;if(QSI.global.featureFlags["DX.ContactFrequencyV2"]?QSI.config&&QSI.config.externalReference&&(t=QSI.config.externalReference):t=this.resolveContactFrequencyExternalReference(n.contactFrequencyRefLocator,n.contactFrequencyRefExpression),!t)return QSI.dbg.e("Could not retrieve external reference ID for Contact Frequency Check"),null;if(!("string"==typeof t||t instanceof String))return QSI.dbg.e("External reference ID must be a string for Contact Frequency Check"),null;var r=n.contactFrequencyDirectoryID;if(!r)return QSI.dbg.e("Missing directoryId for Contact Frequency Check"),null;var o=n.contactFrequencyUserID;return o?{extRef:t,directoryId:r,userId:o}:(QSI.dbg.e("Missing User Id for Contact Frequency Check"),null)},getTargetSurveyId:function(e,t){if(!t.Decision||!t.Decision.ActionSetID)return null;var n=t.Decision.ActionSetID;return e.ActionSets&&e.ActionSets[n]&&e.ActionSets[n].Target&&"Survey"===e.ActionSets[n].Target.Type?e.ActionSets[n].Target.PrimaryElement:null},resolveContactFrequencyExternalReference:function(e,t){if(!t)return QSI.dbg.e("No reference expression used for contact frequency check"),null;switch(e){case"JavaScript":return QSI.EmbeddedData.getJavaScriptValue(t.expression);case"Cookie":return QSI.cookie.get(t.expression);default:return QSI.dbg.e("Reference locator used for contact frequency check is unsupported:"+e),null}},sendContactFrequencyRequest:function(e,t){var n="https://"+QSI.global.brandDC+"/dx-iqd-proxy/check-frequency-rules";return QSI.LatencyLog.startComponentTimer(QSI.LatencyLog.components.CONTACT_FREQUENCY),void QSI.util.sendHttpRequest({type:"POST",url:n,header:{"Content-type":"application/json"},data:JSON.stringify(e),successCallback:function(e){try{var n;if(e.response&&(n=JSON.parse(e.response)),"object"!=typeof n)throw new Error("ContactFrequency check came back with invalid response: "+results);QSI.util.forOwn(n,function(e,t){null!==e?!0===e.passesFrequencyRules&&(this.contactFrequencyCheckResults[t].status=this.contactFrequencyCheckStates.CAN_CONTACT,this.contactFrequencyCheckResults[t].contactId=e.contactId):QSI.dbg.e("ContactFrequency check for intercept:"+t+" errored; defaulting to no show")}.bind(this))}catch(e){QSI.dbg.e(e)}finally{QSI.LatencyLog.endComponentTimer(QSI.LatencyLog.components.CONTACT_FREQUENCY),t.resolve()}}.bind(this),errorCallback:function(e){var r="Call to ContactFrequency endpoint: "+n+" failed.";e.status&&(r=r+" Status:"+e.status);e.response&&(r=r+" Response:"+e.response);QSI.dbg.e(r),QSI.LatencyLog.endComponentTimer(QSI.LatencyLog.components.CONTACT_FREQUENCY),t.resolve()}.bind(this),timeout:this.contactFrequencyRequestTimeout,timeoutCallback:function(){QSI.dbg.e("ContactFrequency check POST request to:"+n+" timed out"),QSI.LatencyLog.endComponentTimer(QSI.LatencyLog.components.CONTACT_FREQUENCY),t.resolve()}})},recordContactFrequencyRequest:function(e){var t="https://"+QSI.global.brandDC+"/dx-iqd-proxy/record-contact";return void QSI.util.sendHttpRequest({type:"POST",url:t,header:{"Content-type":"application/json"},data:JSON.stringify(e),errorCallback:function(e){var n="Call to ContactFrequency endpoint: "+t+" failed.";e.status&&(n=n+" Status:"+e.status);e.response&&(n=n+" Response:"+e.response);QSI.dbg.e(n)}.bind(this),timeout:this.contactFrequencyRequestTimeout,timeoutCallback:function(){QSI.dbg.e("ContactFrequency record POST request to:"+t+" timed out")}})}}},function(e,t){QSI.AssetManager={promiseFetch:function(e,t,n){var r=QSI.Orchestrator.Deferred(),o=new XMLHttpRequest;return o.open(e,t,!0),o.withCredentials=!0,"POST"===e&&o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.onreadystatechange=function(){4===o.readyState&&(200===o.status?r.resolve(o.responseText):r.reject(o.responseText))},o.send(n),r.promise()},generateDefinitionRequestURL:function(e,t,n,r){var o=QSI.baseURL+"Asset.php?",i=[];if(t=t||n.version,i.push("Module="+e),i.push("Version="+t),null!=r&&i.push("Q_InterceptID="+r),null===n.Q_NOCACHE&&i.push("Q_NOCACHE"),QSI.CORSOrigin&&i.push("Q_ORIGIN="+QSI.CORSOrigin),void 0!==n.Q_CLIENTVERSION&&null!==n.Q_CLIENTVERSION&&i.push("Q_CLIENTVERSION="+n.Q_CLIENTVERSION),void 0!==n.Q_CLIENTTYPE&&null!==n.Q_CLIENTTYPE){var a="Q_CLIENTTYPE="+n.Q_CLIENTTYPE;i.push(a)}return o+=i.join("&")},loadDefinition:function(e,t){var n=QSI.Orchestrator.Deferred(),r=new XMLHttpRequest;return r.open("GET",e,!0),r.onreadystatechange=function(){if(4===r.readyState)if(200===r.status)try{var e=JSON.parse(r.responseText);e.Error?n.reject(e):(t(e),n.resolve(r.responseText))}catch(e){n.reject(r.responseText)}else n.reject(r.responseText)},r.send(),n.promise()},promiseLoadIntercept:function(e,t,n,r){var o=t.InterceptID,i=QSI.AssetManager.generateDefinitionRequestURL(o,t.InterceptRevision,n);return r.startComponentTimer("AssetDefinition-"+o),QSI.AssetManager.loadDefinition(i,function(t){r.endComponentTimer("AssetDefinition-"+o),QSI.Request[e].Intercepts[o].Intercept=t.InterceptDefinition})},promiseLoadCreative:function(e,t,n,r){var o=t.Decision.Creative.ID;if("CR_NoCreative"!==o){var i=QSI.AssetManager.generateDefinitionRequestURL(o,t.Decision.Creative.Revision,n,t.InterceptID);return r.startComponentTimer("AssetDefinition-"+o),QSI.AssetManager.loadDefinition(i,function(n){r.endComponentTimer("AssetDefinition-"+o),QSI.util.isLegacyCreative(n.CreativeDefinition.Type)&&(n.CreativeDefinition=QSI.AssetManager.sortCreativeDefinition(n.CreativeDefinition)),QSI.Request[e].Intercepts[t.InterceptID].Creative=n.CreativeDefinition})}return QSI.Request[e].Intercepts[t.InterceptID].Creative=null,QSI.Orchestrator.Deferred().resolve(null)},promiseLoadPopUnderTarget:function(e,t,n){var r=QSI.AssetManager.generateDefinitionRequestURL(t.Decision.PopUnderTarget.ID,t.Decision.PopUnderTarget.Revision,n,t.InterceptID);return QSI.AssetManager.loadDefinition(r,function(n){QSI.Request[e].Intercepts[t.InterceptID].PopUnderTarget=n.CreativeDefinition})},promiseLoadScript:function(e,t,n,r){var o,i=e+":"+QSI.global.clientVersion;if(-1!==n.global.alreadyFetchedJSModules.indexOf(i))return r.markComponentAlreadyFetched("JSModule-"+e),(o=QSI.Orchestrator.Deferred()).resolve(),o.promise();o=QSI.Orchestrator.Deferred();var a=document.createElement("script");a.src=QSI.global.hostedJSLocation+e+"Module.js?";var s=[];return void 0!==QSI.Orchestrator&&void 0!==QSI.Orchestrator.getClientVersionQueryString&&s.push(QSI.Orchestrator.getClientVersionQueryString()),(-1!==window.location.href.indexOf("Q_DEBUG")||QSI.config.debug)&&s.push("Q_DEBUG=true"),a.src+=s.join("&"),a.defer=!0,a.addEventListener("load",function(){try{!0===QSI.wrongModuleVersionRequested&&(o.reject(),QSI.dbg.e("Script: "+e+" failed to load because an unavailable version ("+t+") was requested.")),n.global.alreadyFetchedJSModules.push(i),r.endComponentTimer("JSModule-"+e),o.resolve()}catch(e){"undefined"!=typeof QSI&&QSI.dbg&&QSI.dbg.e&&QSI.dbg.e(e)}},!1),a.addEventListener("error",function(){try{o.reject(),QSI.dbg.e("Script: "+e+" failed to load.")}catch(e){"undefined"!=typeof QSI&&QSI.dbg&&QSI.dbg.e&&QSI.dbg.e(e)}}),r.startComponentTimer("JSModule-"+e),document.body.appendChild(a),o.promise()},sortCreativeDefinition:function(e){if(e&&e.Options&&e.Options.elements&&e.Options.elements.Elements){var t=e.Options.elements.Elements;t=QSI.util.stableSort(t,function(e,t){return Number(e.style.zIndex)<Number(t.style.zIndex)?-1:Number(e.style.zIndex)>Number(t.style.zIndex)?1:0});for(var n=0;n<t.length;n++)t[n].style&&t[n].style.zIndex&&(t[n].style.zIndex=QSI.global.currentZIndex++);return t=QSI.util.stableSort(t,function(e,t){return Number(e.position.left)<Number(t.position.left)?-1:Number(e.position.left)>Number(t.position.left)?1:0}),t=QSI.util.stableSort(t,function(e,t){return Number(e.position.top)<Number(t.position.top)?-1:Number(e.position.top)>Number(t.position.top)?1:0}),e.Options.elements.Elements=t,e}return e}}},function(e,t,n){"use strict";n.r(t);n(2),n(3),n(4),n(5),n(6),n(7);var r=[],o=function(e){var t=e;return"string"==typeof e&&(t=document.getElementById(e)),t},i=function(e,t,n,o){void 0===o&&(o=!1),r=r||[],e&&(r.push({elementToObserve:e,eventName:t,eventHandler:n,preventRemove:o||!1}),e.addEventListener(t,n,!1))},a=function(e){return"string"==typeof e},s=function(e){return"object"==typeof e&&e instanceof Array},c=function(){return function(){var e=this;this.trackElements=function(){if(0==e.loaded){e.loadCounts();var t=window.QSI,n=t.dbg,r=t.global.eventTrackers;Object.keys(r).forEach(function(t){var n=r[t];e.trackElement(n,t)}),i(window,"beforeunload",function(){try{e.storeCounts()}catch(e){void 0!==window.QSI&&n&&n.e&&n.e(e)}}),e.loaded=!0}},this.trackElement=function(t,n){var r=window.QSI.dbg,a=o(t);a&&i(a,"click",function(){try{e.track(n)}catch(e){void 0!==window.QSI&&r&&r.e&&r.e(e)}})},this.track=function(t){e.clicked=!0,e.counts[t]?e.counts[t]++:e.counts[t]=1},this.storeCounts=function(){if(!0===e.clicked){var t=window.QSI.cookie,n=JSON.stringify(e.counts);t.set(e.cookieName,n)}},this.loadCounts=function(){var t=window.QSI.cookie.get(e.cookieName);t&&(e.counts=JSON.parse(t))},this.get=function(t){return e.counts[t]?e.counts[t]:0},this.incrementEventList=function(){if("_qsie"in window&&s(window._qsie))for(var t=0,n=window._qsie.length;t<n;t++){var r=window._qsie[t];a(r)&&e.track(r)}},this.counts={},this.cookieName="QSI_CT",this.loaded=!1,this.clicked=!1}}(),u=n(0),l=function(){function e(t){var n=this;this.metricName=e.metricName,this.components=e.components,this.overallLatencyStartTime=null,this.overallLatency=null,this.componentStartTimes={},this.componentLatencies={},this.isDuplicateScriptExecution=!1,this.setRequestId=function(e){n.requestId=e},this.startTimer=function(){n.latencyStartTime=Date.now()},this.endTimer=function(){null!==n.latencyStartTime?n.overallLatency=Date.now()-n.latencyStartTime:n.debugLog.e("Tried to log overall end time without a start time.")},this.startComponentTimer=function(e){n.componentStartTimes[e]=Date.now()},this.endComponentTimer=function(e){var t=n.componentStartTimes[e];void 0!==t?n.componentLatencies[e]=Date.now()-t:n.debugLog.e("Tried to log a component end time without a component start time.  Component name: "+e)},this.markComponentAlreadyFetched=function(t){n.componentLatencies[t]||(n.componentLatencies[t]=e.alreadyFetchedMarker)},this.markDuplicateScriptExecution=function(){n.isDuplicateScriptExecution=!0},this.send=function(){try{if(null===n.overallLatency)return void n.debugLog.e("Incomplete Latency Data Provided");var t=u.a.baseURL+"Ajax.php?action=LatencyLog&"+u.a.getClientVersionQueryString(),r=[];for(var o in u.a.Request)Object.prototype.hasOwnProperty.call(u.a.Request,o)&&o!==n.requestId&&r.push(o);var i={MetricName:e.metricName,Latency:n.overallLatency,ComponentLatencies:n.componentLatencies,AdditionalData:{RequestID:n.requestId,ClientURL:u.a.currentURL,UserAgent:navigator.userAgent,BrandID:u.a.global.brandID,BrandDC:u.a.global.brandDC,OtherRequestIDsExecuted:r,IsDuplicateScriptExecution:n.isDuplicateScriptExecution}};QSI.util.sendHttpRequest({type:"POST",url:t,header:{"Content-type":"application/x-www-form-urlencoded"},includeCookies:!1,data:QSI.util.buildQueryString({LoggingData:JSON.stringify(i)})})}catch(e){n.debugLog.e(e)}},this.sampledSend=function(e){try{Math.random()<=e/100==!0&&n.send()}catch(e){n.debugLog.e(e)}},this.debugLog=t}return e.metricName="si.SILatency",e.alreadyFetchedMarker="ALREADY_FETCHED",e.components={CORE_MODULE:"coreModuleRequest",TARGETING:"targetingRequest",DPR_TARGETING:"dprTargetingRequest",XMD_DEBUG_TARGETING:"xmdDebugTargetingRequest",ASSETS_AND_MODULES:"allAssetDefinitionsAndJSModules",CONTACT_FREQUENCY:"contactFrequencyCheck"},e}(),d=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},g=function(){function e(){var e=this;this.init=function(t,r){if(e.latencyLog=t,e.debugLog=r,e.setupJFEMessageEventHandlerForIOSOptimization(),window.QSI.windows={},window.addEventListener("message",e.addWindowHandlersPostMessageListener),e.latencyLog.startTimer(),u.a.global.legacyId){u.a.Request||(u.a.Request={}),u.a.debugConfig=u.a.debugConfig||{};var o=u.a.global.legacyId,i={id:o};e.latencyLog.setRequestId(o),~Object.keys(u.a.Request).indexOf(o)&&t.markDuplicateScriptExecution(),0===o.indexOf("ZN")?i.ZoneID=o:i.InterceptID=o;var a=void 0;if(u.a.global.isHostedJS())(void 0!==(a=e.parseQueryString(window.location.href)).Q_DEBUG||u.a.config.debug)&&(i.Q_DEBUG=null,e.debugLog.enableFullDebug()),(u.a.config.editing||"0"===u.a.global.version)&&(i.version="0");else{var s=void 0;if(document.currentScript)s=document.currentScript.src;else try{var c=document.querySelectorAll("script"),l=[];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(l[d]=c[d]);var g=u.a.global.baseURL;0===g.indexOf("https://")?g=g.substring(8):0===g.indexOf("http://")?g=g.substring(7):0===g.indexOf("//")&&(g=g.substring(2)),s=l.filter(function(e){return(-1!==e.src.indexOf(g+"/WRSiteInterceptEngine/?")||-1!==e.src.indexOf(g+"/SIE/?"))&&(-1===e.src.indexOf("Q_Impress")&&-1===e.src.indexOf("Q_Redirect")&&-1===e.src.indexOf("Q_Click")&&-1===e.src.indexOf("Q_DPR"))})[0].src}catch(t){e.debugLog.e("An error occurred while loading the intercept. "+t)}void 0!==(a=e.parseQueryString(s)).Q_NOCACHE&&(i.Q_NOCACHE=null),void 0!==a.Q_BOOKMARKLET&&(i.Q_BOOKMARKLET=null,i.Q_DEBUG=null,e.debugLog.enableFullDebug()),void 0!==a.Q_DEBUG&&(i.Q_DEBUG=null,e.debugLog.enableFullDebug()),void 0!==a.Q_VERSION&&(i.version=a.Q_VERSION)}return void 0!==u.a.global.clientVersion&&null!==u.a.global.clientVersion&&(i.Q_CLIENTVERSION=u.a.global.clientVersion),void 0!==u.a.global.clientType&&null!==u.a.global.clientType&&(i.Q_CLIENTTYPE=u.a.global.clientType,void 0!==u.a.clientTypeVariant&&(i.Q_CLIENTTYPE+=u.a.clientTypeVariant)),-1!==window.location.search.indexOf("Q_WAF_PREVIEWER")?n.e(10).then(n.bind(null,28)).then(function(e){new(0,e.LivePreviewer)}).catch(function(t){e.debugLog.e("An error occurred while loading the live previewer. "+t)}):(e.load(i),Promise.resolve(null))}if(!u.a.Request){u.a.Request={};for(var p=document.querySelectorAll("[data-siteinterceptscript]"),f=0;f<p.length;f++){var h=p[f];u.a.isDebug=u.a.isDebug||h.hasAttribute("data-qdebug")||-1!==window.location.href.indexOf("Q_DEBUG"),u.a.isDebug&&e.debugLog.enableFullDebug();var S={};return h.hasAttribute("data-interceptid")&&(S.InterceptID=h.getAttribute("data-interceptid"),S.id=S.InterceptID),h.hasAttribute("data-zoneid")&&(S.ZoneID=h.getAttribute("data-zoneid"),S.id=S.ZoneID),h.hasAttribute("data-qnocache")&&(S.Q_NOCACHE=null),h.hasAttribute("data-qbookmarklet")&&(S.Q_BOOKMARKLET=null),u.a.isDebug&&(S.Q_DEBUG=null),h.hasAttribute("data-version")&&(S.version=h.getAttribute("data-version")),e.load(S),Promise.resolve(null)}}},this.generateQueryString=u.a.generateQueryString,this.getClientVersionQueryString=u.a.getClientVersionQueryString,this.Deferred=function(){var t={},n="pending",r=[],o=[],i=[],a=[],s=e,c={state:function(){return n},then:function(e,t){return this.done(e).fail(t),this},done:function(e){if("pending"===n&&e)i.push(e);else if("resolved"===n)try{e.apply(this,r)}catch(e){s.debugLog.e(e)}return this},fail:function(e){if("pending"===n&&e)a.push(e);else if("rejected"===n)try{e.apply(this,o)}catch(e){s.debugLog.e(e)}return this},promise:function(){return c}};return e.forOwn(c,function(e,n){t[n]=c[n]}),t.resolve=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"pending"===n&&(n="resolved",r=e,s.each(i,function(t){try{t.apply(s,e)}catch(e){s.debugLog.e(e)}}))},t.reject=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"pending"===n&&(n="rejected",o=e,s.each(a,function(t){try{t.apply(s,e)}catch(e){s.debugLog.e(e)}}))},t}}return e.prototype.addWindowHandlersPostMessageListener=function(e){if("string"==typeof e.data&&-1!=e.data.indexOf("QSI_popunderwatcher_addWindowHandler")){var t=e.data.split("|"),n=t[1],r=t[2],o=e.source;try{JSON.parse(window.sessionStorage.getItem("QSI_OptInIDsAndWindowNames"))[n]!==r||window.QSI.windows[r]||(window.QSI.windows[r]=o)}catch(e){this.debugLog.e(e)}}},e.prototype.load=function(e){var t=this,n=window.QSI.AssetManager;u.a.LoadingState.push(!0);var r=this.generateTargetingURL(e);this.latencyLog.startComponentTimer(l.components.TARGETING);var o=this.getTargetingPostData(),i=n.promiseFetch("POST",r,o);u.a.Request[e.id]={Intercepts:{},Params:e},i.then(function(){t.latencyLog.endComponentTimer(l.components.TARGETING)}).then(this.handleTargetingResponse.bind(this,e),function(n){t.debugLog.e(n.Message),e.deferred&&e.deferred.reject()})},e.prototype.getTargetingPostData=function(){var e;return e=u.a.shouldStripQueryParamsInQLoc?"Q_LOC="+encodeURIComponent(window.location.href.split("?")[0]):"Q_LOC="+encodeURIComponent(window.location.href),void 0!==u.a.config.externalReference&&(e+="&extRef="+u.a.config.externalReference),e},e.prototype.generateTargetingURL=function(e){var t=u.a.baseURL+"Targeting.php?",n=[];e.InterceptID&&n.push("Q_InterceptID="+e.InterceptID),e.ZoneID&&n.push("Q_ZoneID="+e.ZoneID),e.Q_XMD_DEBUG?n.push("Q_XMD_DEBUG"):(null===e.Q_DEBUG&&(n.push("Q_DEBUG"),u.a.isDebug=!0),null===e.Q_BOOKMARKLET&&n.push("Q_BOOKMARKLET")),null===e.Q_NOCACHE&&n.push("Q_NOCACHE"),void 0!==e.version&&null!==e.version&&n.push("Version="+e.version);var r=u.a.profile.get("QualtricsSurveyHistory","",1);if(r){var o=encodeURIComponent(Object.keys(r).toString());n.push("Q_QualtricsSurveyTaken="+o)}return void 0!==e.Q_CLIENTVERSION&&null!==e.Q_CLIENTVERSION&&n.push("Q_CLIENTVERSION="+e.Q_CLIENTVERSION),void 0!==e.Q_CLIENTTYPE&&null!==e.Q_CLIENTTYPE&&n.push("Q_CLIENTTYPE="+e.Q_CLIENTTYPE),t+n.join("&")},e.prototype.isMessageEventOriginAllowed=function(e){if(u.a.reg)for(var t in u.a.reg)if(Object.prototype.hasOwnProperty.call(u.a.reg,t)&&u.a.reg[t]&&u.a.reg[t].options){var n=u.a.reg[t].options;if(n.targetURLOrigin===e)return!0;if(n.target&&n.target.OriginalURLOrigin===e)return!0}return!1},e.prototype.doCSTargetingEvaluation=function(e,t,n){var r,o=this;if(function(e){e.EMBEDDED_TARGET="EmbeddedTarget"}(r||(r={})),Array.isArray(e.ClientSideIntercepts)){var i=window.QSI.ClientSideTargeting;e.Intercepts=[];var a={Intercepts:{},Type:u.a.config.editing?"Editing":"Published"};e.ClientSideIntercepts.forEach(function(s){if(s)if(s.Error)o.debugLog.log(s.Message);else{var c=i.evaluateIntercept(s,u.a.isDebug),l=c.interceptEntry,d=c.interceptDebugInfo;a.Intercepts[s.InterceptID]=d,l&&(t.Intercepts[s.InterceptID]={},t.Intercepts[s.InterceptID].Targeting=l,e.Intercepts.push(l),l.Decision.Creative&&(l.Decision.Creative.Type&&(e.Modules[l.Decision.Creative.Type]=n),l.Decision.PopUnderTarget&&(e.Modules.PopUnder=n)),l.Decision.Target&&l.Decision.Target.DisplayType===r.EMBEDDED_TARGET&&(e.Modules.EmbeddedTarget=n))}}),e.Intercepts.length>0&&(e.Modules.ScreenCapture=n),u.a.isDebug&&(e.DebugInfo=JSON.stringify(a)),delete e.Modules.DependencyResolver}},e.prototype.handleTargetingResponse=function(e,t){var r=this,o=window.QSI,i=o.AssetManager,a=o.API,s=o.EventTracker,c=o.history;try{var l;if("SampleRejected"===t)return;try{l=JSON.parse(t)}catch(e){return void this.debugLog.e("Failed to parse JSON of targeting response: "+t)}if(l.Error)return void this.debugLog.e(l.Message);this.setGlobalVars(l);var d=l.Modules;c.logVisit(),!u.a.Request[e.id].hasDependencies&&u.a.Request[e.id].hasBeenResolved||(s.trackElements(),s.incrementEventList(),window._qsie=a.Events);var g=this.isBrowserSupported();if(d.Core&&g)i.promiseLoadScript("Core",d.Core,u.a,this.latencyLog).then(function(){try{var t=window.QSI.ClientSideTargeting;u.a.global.featureFlags["DUX.ClientSideTargetingM1"]&&l.ClientSideIntercepts&&l.ClientSideIntercepts.length>0?(t.setEnabled(!0),r.doCSTargetingEvaluation(l,u.a.Request[e.id],u.a.global.clientVersion)):l.Intercepts&&l.Intercepts.forEach(function(t){t&&(t.Error?r.debugLog.log(t.Message):(u.a.Request[e.id].Intercepts[t.InterceptID]={},u.a.Request[e.id].Intercepts[t.InterceptID].Targeting=t))}),!l.Dependencies||u.a.global.featureFlags["DUX.ClientSideTargetingM1"]&&l.ClientSideIntercepts&&l.ClientSideIntercepts.length>0?(n.e(7).then(n.bind(null,31)).then(function(e){(0,e.addPopunderEmbeddedDataHandler)(e.updatePopunderEDCallback)}),u.a.config.externalReference&&u.a.global.featureFlags["DX.ContactFrequencyV3"]&&(u.a.isDebug||t.isEnabled())?(e.Q_XMD_DEBUG=!0,r.handleXMDDebug(e,l)):r.loadModules(e,l)):r.handleDependencyResolver(e,l)}catch(e){r.debugLog.e(e)}},function(){});else this.doneLoading(e)}catch(e){this.debugLog.e(e)}},e.prototype.handleDependencyResolver=function(e,t){var n=this,r=window.QSI.AssetManager,o=this.generateTargetingURL(e);o+="&t="+(new Date).getTime(),o+="&Q_VSI="+encodeURIComponent(JSON.stringify(t.RequestData.validIntercepts)),o+="&Q_DPR=true",this.latencyLog.startComponentTimer(l.components.DPR_TARGETING);var i="";for(var a in t.Dependencies)Object.prototype.hasOwnProperty.call(t.Dependencies,a)&&("SiteCatalyst"===a&&(QSI["Resolve"+a].rootName=u.a.adobeVar),i+=QSI["Resolve"+a].prepare(t.Dependencies[a]));i+="&"+this.getTargetingPostData(),r.promiseFetch("POST",o,i).then(function(){this.latencyLog.endComponentTimer(l.components.DPR_TARGETING)}).then(this.handleTargetingResponse.bind(this,e),function(t){n.debugLog.e(t.Message),e.deferred&&e.deferred.reject()})},e.prototype.handleXMDDebug=function(e,t){var n=this,r=window.QSI.AssetManager,o={};t.Intercepts.forEach(function(e){if(e.Decision&&e.Decision.ActionSetID){var t=e.InterceptID,n=e.Decision.ActionSetID;o[t]=n}});var i=this.generateTargetingURL(e),a="";a+=this.getTargetingPostData(),a+="&ContactFrequencyDebugIntercepts="+JSON.stringify(o),this.latencyLog.startComponentTimer(l.components.XMD_DEBUG_TARGETING),r.promiseFetch("POST",i,a).then(function(r){n.latencyLog.endComponentTimer(l.components.XMD_DEBUG_TARGETING),n.handleXMDDebugResponse(e,t,o,r)})},e.prototype.handleXMDDebugResponse=function(e,t,n,r){var o,i=this;try{o=JSON.parse(r)}catch(e){return void this.debugLog.e("Failed to parse JSON of Q_XMD_DEBUG targeting response: "+r)}if(u.a.isDebug){var a;try{a=JSON.parse(t.DebugInfo)}catch(e){return void this.debugLog.e("Failed to parse debugInfo JSON of Q_DEBUG targeting response: "+t)}o.Intercepts.forEach(function(e){if(e){var t=e.InterceptID;Object.prototype.hasOwnProperty.call(a.Intercepts,t)&&Object.prototype.hasOwnProperty.call(n,t)&&(e.Error?(i.debugLog.log(e.Message),a.Intercepts[t].contactFrequencyPassed=!1):a.Intercepts[t].contactFrequencyPassed=!!e.Decision.ActionSetID)}}),o.DebugInfo=JSON.stringify(a),o.Modules.Debug=u.a.global.clientVersion}o.Intercepts.forEach(function(t){t&&(t.Error?i.debugLog.log(t.Message):(u.a.Request[e.id].Intercepts[t.InterceptID]={},u.a.Request[e.id].Intercepts[t.InterceptID].Targeting=t))}),this.loadModules(e,o)},e.prototype.loadModules=function(e,t){var n=this,r=window.QSI,o=r.AssetManager,i=r.ContactFrequency,a=[],s=t.Modules;for(var c in this.latencyLog.startComponentTimer(l.components.ASSETS_AND_MODULES),s)if(Object.prototype.hasOwnProperty.call(s,c)){if("ScreenCapture"===c){this.setupScreenCaptureListener(s[c]);continue}if("ClientLog"===c)continue;if("DependencyResolver"===c)continue;if(("HTTPRedirect"===c||"LatencyLog"===c)&&u.a.global.isHostedJS()){this.debugLog.c("Module type '"+c+"' is not supported when using Site Intercept Hosted JS");continue}if("EmbeddedFeedback"===c)continue;var d=o.promiseLoadScript(c,s[c],u.a,this.latencyLog);a.push(d)}for(var g=0;g<t.Intercepts.length;g++){var p=t.Intercepts[g];if(p&&!p.Error&&null!==p.Decision.ActionSetID){var f=o.promiseLoadIntercept(e.id,p,e,this.latencyLog),h=o.promiseLoadCreative(e.id,p,e,this.latencyLog);if(a.push(f,h),p.Decision.PopUnderTarget&&p.Decision.PopUnderTarget.ID&&"Target"!==p.Decision.PopUnderTarget.ID){var S=o.promiseLoadPopUnderTarget(e.id,p,e);a.push(S)}}}this.when.apply(this,a).then(function(){try{if(n.latencyLog.endComponentTimer(l.components.ASSETS_AND_MODULES),u.a.global.featureFlags["DX.ContactFrequencyV3"]||!u.a.global.featureFlags["DX.ContactFrequencyV2"]&&!u.a.global.featureFlags["DX.ContactFrequency"])n.prepareIntercepts(e,t);else i.checkContactFrequencyRules(u.a.Request[e.id].Intercepts,u.a.global.brandID).then(function(){n.prepareIntercepts(e,t)})}catch(e){n.debugLog.e(e)}},function(t){var r="";"string"==typeof t?r=t:t&&"string"==typeof t.Message&&(r=t),n.debugLog.e("An error occurred while loading the intercept. "+r),e.deferred&&e.deferred.reject()})},e.prototype.setInterceptDisplayOptionCallback=function(e,t){var n=window.QSI.util;switch(e){case"":case"onfocus":n.waitForFocus().then(t);break;case"onload":t();break;case"onexit":n.waitForExitIntent().then(t);break;default:return}},e.prototype.prepareIntercepts=function(e,t){var r=this;return n.e(6).then(n.bind(null,29)).then(function(){var n=window.QSI.RunIntercepts;!0!==e.loadingFromAPI&&(r.latencyLog.endTimer(),r.latencyLog.sampledSend(u.a.global.latencySamplePercentage)),r.setGlobalIncludes(e,t),("manual"!==u.a.Request[e.id].displayInterceptType&&!u.a.Request[e.id].zoneManualDisplay||u.a.Request[e.id].hasDependencies)&&n(e.id,!1),r.doneLoading(e),e.deferred&&e.deferred.resolve()})},e.prototype.isBrowserSupported=function(){return!("Chrome"===u.a.Browser.name&&u.a.Browser.version<=20)&&(!("Firefox"===u.a.Browser.name&&u.a.Browser.version<=59)&&!("Internet Explorer"===u.a.Browser.name&&u.a.Browser.version<=10))},e.prototype.setGlobalIncludes=function(e,t){if(u.a.isDebug){u.a.Request[e.id].Debug={debugInfo:JSON.parse(t.DebugInfo),version:t.RequestData.bVersion};var n={version:t.RequestData.bVersion,debugInfo:JSON.parse(t.DebugInfo)};u.a.debugConfig=n}u.a.version=t.RequestData.bVersion,u.a.InterceptsRan=!1,u.a.Request[e.id].hasDependencies=t.RequestData.hasDependencies,u.a.Request[e.id].hasBeenResolved=t.RequestData.hasBeenResolved,u.a.Request[e.id].displayInterceptType=t.RequestData.displayInterceptType,u.a.Request[e.id].zoneManualDisplay=t.RequestData.zoneManualDisplay},e.prototype.setGlobalVars=function(e){u.a.Browser={name:e.RequestData.browser,version:e.RequestData.browserVersion,isMobile:e.RequestData.isMobile,isBrowserSupported:e.RequestData.isBrowserSupported},u.a.CORSOrigin=e.RequestData.CORSOrigin,u.a.OS={name:e.RequestData.osName,version:e.RequestData.osVersion},u.a.global.brandID=e.RequestData.brandID,u.a.global.brandDC=e.RequestData.brandDC,u.a.global.isHostedJS()?(u.a.global.graphicPath="https://"+u.a.global.brandDC+"/WRQualtricsSiteIntercept/Graphic.php?IM=",u.a.global.imagePath="https:"+u.a.global.baseURL+"/WRSiteInterceptEngine/../WRQualtricsShared/Graphics/"):(u.a.global.graphicPath="https://"+u.a.global.brandDC+"/WRQualtricsSiteIntercept/Graphic.php?IM=",u.a.global.imagePath=u.a.global.baseURL+"/WRQualtricsShared/Graphics/"),u.a.global.maxCookieSize=e.RequestData.maxCookieSize,u.a.global.featureFlags=e.FeatureFlags,u.a.global.screenCaptureServiceBaseURL=e.RequestData.screenCaptureServiceBaseURL,u.a.global.eventTrackers=e.RequestData.eventTrackers,u.a.adobeVar=e.RequestData.adobeSCVariable,u.a.id=e.RequestData.ID,u.a.reqID[e.RequestData.ID]=!0,u.a.CookieDomain=e.RequestData.cookieDomain,u.a.historyStorageType=e.RequestData.historyStorageType,u.a.historyStorageSize=e.RequestData.historyStorageSize,u.a.currentURL=window.location.href.split("?")[0],function(){var e=document.createElement("div");e.className="scrollbar-measure",e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.position="absolute",e.style.top="-99999px",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;u.a.scrollbarWidth=t,document.body.removeChild(e)}()},e.prototype.parseQueryString=function(e){var t={};if(e&&-1!==e.indexOf("?"))for(var n=e.split("?",2)[1].split("&"),r=0;r<n.length;r++){var o=n[r].split("=",2);"Q_LOC"===o[0]&&-1!==o[1].indexOf("Q_DEBUG")&&(t.Q_DEBUG=!0),o[0]&&(t[o[0]]=decodeURIComponent(o[1]))}return t},e.prototype.replaceAll=function(e,t,n){return t=t.replace(/([.*+?^${}()|[\]\\=!:/])/g,"\\$1"),e.replace(new RegExp(t,"g"),n)},e.prototype.when=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this,o=d([e],t),i=o.length,a=i,s=1===a?e:this.Deferred(),c=function(e,t){return function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];t[e]=arguments.length>1?n:r.createArrayFromArguments(d([n],o)),--a||s.resolve(t)}};if(i>1)for(var u=0;u<i;u++)o[u]&&o[u].promise?o[u].promise().done(c(u,o)).fail(s.reject):a--;return a<1&&s.resolve(o),s.promise()},e.prototype.createArrayFromArguments=function(e){return e?Array.prototype.slice.call(e):[]},e.prototype.isFunction=function(e){return"function"==typeof e||!1},e.prototype.forOwn=function(e,t){if(e&&e instanceof Object&&this.isFunction(t))for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(e[n],n,e)},e.prototype.each=function(e,t){var n=e.length;if(n)for(var r=0;r<n;r++)t(e[r],r)},e.prototype.doneLoading=function(e){if(u.a.LoadingState.pop(),0===u.a.LoadingState.length){if(!0!==e.loadingFromAPI){var t=document.createEvent("Event");t.initEvent("qsi_js_loaded",!0,!0),window.dispatchEvent(t)}for(var n=u.a.PendingQueue.length,r=0;r<n;r++){u.a.PendingQueue.shift()()}}},e.prototype.setupJFEMessageEventHandlerForIOSOptimization=function(){var e=this;if(!u.a.JFEListenerRegistered){u.a.JFEListenerRegistered=!0;return window.addEventListener("message",function(t){try{if(!e.isMessageEventOriginAllowed(t.origin))return;(function(e){var t=null;if("string"==typeof e)try{t=JSON.parse(e)}catch(e){return!1}return null!==t&&"JFE"===t.from&&"SI"===t.to&&"JFELoaded"===t.event&&"iOS"===u.a.OS.name})(t.data)&&(n=t.source,r=t.origin,n.postMessage({event:"addIOSSIWorkaround",from:"SI",to:"JFE"},r))}catch(t){e.debugLog.e(t)}var n,r})}},e.prototype.setupScreenCaptureListener=function(e){var t=this;if(!u.a.screenCaptureListenerRegistered)return u.a.screenCaptureListenerRegistered=!0,window.addEventListener("message",function(n){try{if(!t.isMessageEventOriginAllowed(n.origin))return;var r=window.QSI,o=r.AssetManager,i=r.util.getOriginInterceptOfMessage(n.source);if(!i)return;var a=n.data;if("string"==typeof a)try{a=JSON.parse(a)}catch(e){return}if(!a||"JFE"!==a.from||"SI"!==a.to)return;if(u.a.screenCaptureHandlers||(u.a.screenCaptureHandlers={}),"canScreenCapture"===a.event){void 0===u.a.screenCaptureModulePromise&&(u.a.screenCaptureModulePromise=o.promiseLoadScript("ScreenCapture",e,u.a,t.latencyLog));return void n.source.postMessage(JSON.stringify({event:"canScreenCapture",from:"SI",to:"JFE",canScreenCapture:!0}),n.origin)}void 0!==u.a.screenCaptureModulePromise&&u.a.screenCaptureModulePromise.then(function(){var e=window.QSI.ScreenCaptureHandler;switch(u.a.screenCaptureHandlers[a.sessionId]||(u.a.screenCaptureHandlers[a.sessionId]=new e(i,n.source,a.sessionId,a.translations,n.origin)),a.event){case"startScreenCapture":u.a.screenCaptureHandlers[a.sessionId].captureScreen(a.questionId);break;case"editScreenCapture":u.a.screenCaptureHandlers[a.sessionId].editAnnotations(a.questionId);break;case"removeScreenCapture":u.a.screenCaptureHandlers[a.sessionId].removeScreenCapture(a.questionId);break;case"sessionFinished":u.a.screenCaptureHandlers[a.sessionId].removeAllScreenCaptures();break;default:return}})}catch(e){t.debugLog.e(e)}})},e}(),p=function(){return function(){var e=this;this.isFullDbgInitialized=-1!==window.location.href.indexOf("Q_DEBUG"),this.safeConsole=function(t,n){if(e.isFullDbgInitialized)try{console[t](n)}catch(e){}},this.enableFullDebug=function(){e.isFullDbgInitialized=!0},this.disableFullDebug=function(){e.isFullDbgInitialized=!1},this.log=function(e,t,n){var r=window.QSI,o=r.ClientLog,i=r.global;o&&(i.featureFlags.isClientLoggingEnabled?o.send(e,t,n):o.sampledSend(e,t,n,.02))},this.c=function(t){e.safeConsole("log",t),e.log(t)},this.d=function(t){e.safeConsole("dir",t),e.log(t)},this.t=function(t){e.safeConsole("trace",t),e.log(t)},this.e=function(t){e.safeConsole("log",t&&t.message||"error"),e.safeConsole("error",t),e.log(t)}}}(),f=function(){function e(){}return e.prototype.send=function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="error");try{var r=window.QSI,o=r.baseURL+"Ajax.php?action=ClientLog&"+(0,r.getClientVersionQueryString)(),i=window.QSI.reqID,a="";for(var s in i)i[s]&&(a+=s+" ");t&&e.stack&&(e=e.stack);var c=navigator.userAgent,u={LevelName:n,Message:"requestId: "+a+"\n currentURL: "+window.QSI.currentURL+"\n userAgent: "+c+"\n message: "+e};QSI.util.sendHttpRequest({type:"POST",url:o,header:{"Content-type":"application/x-www-form-urlencoded"},includeCookies:!1,data:QSI.util.buildQueryString(u)})}catch(e){window.QSI.isDebug&&console.log(e)}},e.prototype.sampledSend=function(e,t,n,r){Math.random()<=r/100&&this.send(e,t,n)},e}(),h=function(){function e(){var e=this;this.cookieSize=0,document.cookie.split(";").forEach(function(t){var n=t.indexOf("QSI");~n&&(e.cookieSize+=t.length-n)})}return e.prototype.set=function(e,t,n,r,o){void 0===o&&(o={});var i=u.a.global.maxCookieSize,a=this.get(e),s=this.getCookieSize();a&&(s-=(e+"="+a).length);var c="";if(n){var l=new Date;l.setTime(l.getTime()+864e5*n),c="; expires="+l.toUTCString()}var d="";r?d="domain="+r:u.a.CookieDomain&&(d="domain="+u.a.CookieDomain);var g=e+"="+t,p=s+g.length;if(!(o.force||null!==i&&p<=i||null===i))throw new Error("Cannot exceed the specified maximum cookie size");o.erase?this.cookieSize=s:this.cookieSize=p;var f=""+g+c+"; path=/; "+d;"https:"===location.protocol&&(f+="; secure"),document.cookie=f},e.prototype.get=function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){var o=n[r],i=o.indexOf(t);if(~i)return o.substring(i+t.length,o.length)}return null},e.prototype.erase=function(e,t){this.set(e,"",-1,t,{force:!0,erase:!0})},e.prototype.getCookieSize=function(){return this.cookieSize},e.prototype.areCookiesEnabled=function(){try{document.cookie="cookietest=1";var e=-1!==document.cookie.indexOf("cookietest=");return document.cookie="cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e}catch(e){return!1}},e}(),S=function(){function e(){this.storageCache={},this.cookieName="QSI_DATA",this.refreshFromCookie()}return e.prototype.refreshFromCookie=function(){try{var e=window.QSI.cookie.get(this.cookieName);e&&(this.storageCache=JSON.parse(e))}catch(e){this.storageCache={}}},e.prototype.setToCookie=function(){try{window.QSI.cookie.set(this.cookieName,JSON.stringify(this.storageCache))}catch(e){}},e.prototype.setItem=function(e,t){this.storageCache[e]=t,this.setToCookie()},e.prototype.getItem=function(e){return this.storageCache[e]||null},e.prototype.removeItem=function(e){delete this.storageCache[e],this.setToCookie()},e.prototype.reload=function(){this.refreshFromCookie()},e.prototype.clear=function(){this.storageCache={},this.setToCookie()},e}(),I=new p,y=new l(I);(window.QSI.ClientLog=new f,window.QSI.dbg=I,window.QSI.LatencyLog=y,window.QSI.EventTracker=new c,window.QSI.cookie=new h,window.QSI.CookieStorage=new S,window.QSI.Orchestrator=new g,"function"!=typeof window.Promise)?window.QSI.AssetManager.promiseLoadScript("Polyfills",u.a.global.clientVersion,u.a,y).then(function(){window.QSI.Orchestrator.init(y,I)}):window.QSI.Orchestrator.init(y,I)}]);}catch(e){if(typeof QSI!=='undefined'&&QSI.dbg&&QSI.dbg.e){QSI.dbg.e(e);}}