!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){const{stripTrackingId:o}=n(1),{checkGDPRConsent:r}=n(2),{localStorageStateManagement:i,createTouchpointManager:a,uuidv4:c}=n(3);((e,t,n,r)=>{const i=o(window,e=>window.history.replaceState(null,"",e));function a(e,t){if(e("Collecting IDs"),TMCONFIG&&"false"===((TMCONFIG||{}).features||{}).reachIdAnalyticsEnabled)return;const n=function(n){const o=[];return o.push=function(r){Array.prototype.push.call(o,r),(async(n,o)=>{const r=n.shift(),i={timestamp:Date.now(),edges:[{source:"REACHID.TOUCHPOINT",id:o},r]};e(`Sending payload [${JSON.stringify(i)}]`),await fetch(t+"/collect",{method:"POST",headers:{"Content-Type":"application/json"},referrerPolicy:"no-referrer",body:JSON.stringify(i)})})(o,n.get())},(e,t)=>{o.push({source:e,id:t})}}(r),o=()=>window.dataLayer.filter(e=>void 0!==e.clientId)[0].clientId;if(window.dataLayer&&window.dataLayer.filter(e=>void 0!==e.clientId).length>0){const t=o();e(`FOUND GA ID: [${t}]`),n("GA",t)}else e("REGISTERING ANALYTICS ID LISTENER"),window.addEventListener("analytics.clientId.ready",(function(){const e=o();n("GA",e)}),{once:!0});window.login_radius_user_profile&&window.login_radius_user_profile.ID?n("LOGINRADIUS",window.login_radius_user_profile.ID):window.addEventListener("loginradius.user.profile",e=>{const t=e.data||e.detail;t&&n("LOGINRADIUS",t.ID)}),(((window.commercialData||{}).info||{}).user||{}).luid&&"unknown"!==window.commercialData.info.user.luid?n("LOTAME",window.commercialData.info.user.luid):window.addEventListener("lotame.id.ready",e=>{const t=e.data||e.detail;t&&n("LOTAME",t)}),i&&n("PURE360",i),window.REACHID=window.REACHID||n,document.dispatchEvent(((e,t)=>{if("function"==typeof window.CustomEvent)return new window.CustomEvent(e,t);t=t||{bubbles:!1,cancelable:!1,detail:void 0};const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n})("REACHID.ready",{detail:n}))}if(e("Checking readers GDPR consent"),n())return e("GDPR Consent given"),a(e,t);e("Waiting for consent"),window.addEventListener("staticConsent.obtained",()=>n()?(e("GDPR Consent given"),a(e,t)):e("GDPR Consent not given"),{once:!0})})(e=>console.debug(`[${(new Date).toUTCString()}] [REACHID] ${e}`),"https://reach-id.orbit.tm-awx.com",()=>r(window),a(c,i))},function(e,t){e.exports={stripTrackingId:(e,t)=>{const n=new URLSearchParams(e.location.search);if(n.has("pure360.trackingid")&&n.get("pure360.trackingid").toLowerCase().match(/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/)){const o=n.get("pure360.trackingid");n.delete("pure360.trackingid");return t(e.location.protocol+"//"+e.location.host+e.location.pathname+(0!=n.toString().length?"?"+n:"")),o}}}},function(e,t){e.exports={checkGDPRConsent:function(e){if((((e.TMConsent||{}).tcfv2consent||{}).purpose||{}).consents){const t=e.TMConsent.tcfv2consent.purpose.consents,n=new Set(["1","2","3","4","5","6","7","8","9","10"]);return 10===Object.keys(t).map(e=>[e,t[e]]).filter(e=>e[1]).map(e=>e[0]).filter(e=>n.has(e)).length}return!1}}},function(e,t){const n={has:e=>!!window.localStorage.getItem(e),set:(e,t)=>window.localStorage.setItem(e,t),get:e=>window.localStorage.getItem(e)};e.exports={uuidv4:()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),localStorageStateManagement:n,createTouchpointManager:(e,t)=>{const n="REACHID.TOUCHPOINT";return{get:()=>{if(t.has(n))return t.get(n);{const o=e();return t.set(n,o),o}},set:e=>{t.set(n,e)}}}}}]);