!function(){var e={},t=void 0===window.geoSettings?{}:window.geoSettings;(()=>{const e=e=>{for(let a in t.mapping)if(t.mapping[a].split(",").indexOf(e)>-1)return a;return e};if(t.selector=t.selector||".rightrailcontact .contactCol",t.mapping=t.overwriteMappings&&void 0!==t.mapping?t.mapping:{...t.mapping,UK:"GB",M1:"EG,JO,KW,LB,OM,SA,AE,BH,QA,PS,LY,IQ"},t.default=t.default||["GX"],t.defaultKeep=void 0===t.defaultKeep||!!t.defaultKeep,t.akamai_geo=(e=>{e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");const t=new RegExp(`[\\?&]${e.toUpperCase()}=([^&#]*)`).exec(window.location.href.toUpperCase());return null===t?null:decodeURIComponent(t[1].replace(/\+/g," "))})("geo")||"US",t.akamai_geo.length>2)return;t.akamai_geo=e(t.akamai_geo);const a=["GX","AU","AT","BR","CA","FR","FA","CN","IN","IL","IT","JP","LA","MX","M1","NL","N1","US","RU","ES","CH","ZA","S1","UK","DE","BE","TR",null,"KR","LU","PL","E1","AR","A1","IE"];var n=[];[...t.selector.split(",")].forEach((e=>{if(n.push(`${e.trim()}[country="${t.akamai_geo.toLowerCase()}"]`),a.indexOf(t.akamai_geo)>-1){const o=`0${a.indexOf(t.akamai_geo)+1}`.slice(-2);n.push(`${e.trim()}[country="${o}"]`)}})),0===document.querySelectorAll(n.join(",")).length?(t.matchFound=!1,t.defaultKeep=!0):t.matchFound=!0;const{wrappers:o,remainingContactItems:r}=[...document.querySelectorAll(t.selector)].reduce(((n,o)=>{const r=o.closest(".rightrailcontact");r&&n.wrappers.add(r);let i=o.getAttribute("country").toUpperCase();const c=parseInt(i);return isNaN(c)||(i=a[c-1]),i=e(i),i==t.akamai_geo||t.defaultKeep&&t.default.indexOf(i)>-1?n.remainingContactItems.push(o):o.parentNode.removeChild(o),n}),{wrappers:new Set,remainingContactItems:[]});console.log({wrappers:o,remainingContactItems:r}),[...o].filter((e=>!r.find((t=>e.contains(t))))).forEach((e=>e.classList.add("hidden"))),((e,t)=>{const a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:t});document.dispatchEvent(a)})("geoContactsProcessed",t),t.loaded=!0})();var a=window;for(var n in e)a[n]=e[n];e.__esModule&&Object.defineProperty(a,"__esModule",{value:!0})}();