PageSourceSearch

https://www.anpost.com/fe-build/js/_common/m79.js?v=189

js anpost.com collected 2026-09-24 08:34:04 UTC 24,927 bytes, 1 lines download raw bytes

1"use strict";window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),Array.from||(Array.from=function(){var e;try{e=Symbol.iterator?Symbol.iterator:"Symbol(Symbol.iterator)"}catch(t){e="Symbol(Symbol.iterator)"}var t=Object.prototype.toString,r=function(e){return"function"==typeof e||"[object Function]"===t.call(e)},o=Math.pow(2,53)-1,n=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),o)};return function(t){var o=Object(t),i=r(o[e]);if(null==t&&!i)throw new TypeError("Array.from requires an array-like object or iterator - not null or undefined");var s,a=arguments.length>1?arguments[1]:void 0;if(void 0!==a){if(!r(a))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(s=arguments[2])}var l=n(o.length);return function(e,t,r,o,n,i){for(var s=0;s<r||n;){var a=o(s),l=n?a.value:a;if(n&&a.done)return t;t[s]=i?void 0===e?i(l,s):i.call(e,l,s):l,s+=1}if(n)throw new TypeError("Array.from: provided arrayLike or iterator has length more then 2 ** 52 - 1");return t.length=r,t}(s,r(this)?Object(new this(l)):new Array(l),l,function(t,r){var o=t&&r[e]();return function(e){return t?o.next():r[e]}}(i,o),i,a)}}()),Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),r=1;r<arguments.length;r++){var o=arguments[r];if(null!=o){o=Object(o);for(var n=Object.keys(Object(o)),i=0,s=n.length;i<s;i++){var a=n[i],l=Object.getOwnPropertyDescriptor(o,a);void 0!==l&&l.enumerable&&(t[a]=o[a])}}}return t}}),function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),r}e.prototype=window.Event.prototype,window.Event=e}(),function(e,t){try{e.querySelector(":scope body")}catch(r){["querySelector","querySelectorAll"].forEach(function(r){var o=t[r];t[r]=function(t){if(/(^|,)\s*:scope/.test(t)){var n=this.id;this.id="ID_"+Date.now(),t=t.replace(/((^|,)\s*):scope/g,"$1#"+this.id);var i=e[r](t);return this.id=n,i}return o.call(this,t)}})}}(window.document,Element.prototype),[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach(function(e){e.hasOwnProperty("append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach(function(e){var r=e instanceof Node;t.appendChild(r?e:document.createTextNode(String(e)))}),this.appendChild(t)}})}),function(){function e(){this.parentNode&&this.parentNode.removeChild(this)}Element.prototype.remove||(Element.prototype.remove=e),Text&&!Text.prototype.remove&&(Text.prototype.remove=e)}(),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),String.prototype.contains||(String.prototype.contains=function(){return-1!==String.prototype.indexOf.apply(this,arguments)}),function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(){for(var e=window.document,t=n(e);t;)t=n(e=t.ownerDocument);return e}(),t=[],r=null,o=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return r||(r=function(e,r){o=e&&r?h(e,r):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach(function(e){e._checkForIntersections()})}),r},s._resetCrossOriginUpdater=function(){r=null,o=null},s.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},s.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,r){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==r[t-1]})},s.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},s.prototype._monitorIntersections=function(t){var r=t.defaultView;if(r&&-1==this._monitoringDocuments.indexOf(t)){var o=this._checkForIntersections,i=null,s=null;this.POLL_INTERVAL?i=r.setInterval(o,this.POLL_INTERVAL):(a(r,"resize",o,!0),a(t,"scroll",o,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in r&&(s=new r.MutationObserver(o)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push(function(){var e=t.defaultView;e&&(i&&e.clearInterval(i),l(e,"resize",o,!0)),l(t,"scroll",o,!0),s&&s.disconnect()});var c=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=c){var u=n(t);u&&this._monitorIntersections(u.ownerDocument)}}},s.prototype._unmonitorIntersections=function(t){var r=this._monitoringDocuments.indexOf(t);if(-1!=r){var o=this.root&&(this.root.ownerDocument||this.root)||e,i=this._observationTargets.some(function(e){var r=e.element.ownerDocument;if(r==t)return!0;for(;r&&r!=o;){var i=n(r);if((r=i&&i.ownerDocument)==t)return!0}return!1});if(!i){var s=this._monitoringUnsubscribes[r];if(this._monitoringDocuments.splice(r,1),this._monitoringUnsubscribes.splice(r,1),s(),t!=o){var a=n(t);a&&this._unmonitorIntersections(a.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},s.prototype._checkForIntersections=function(){if(this.root||!r||o){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};
1this._observationTargets.forEach(function(o){var n=o.element,s=u(n),a=this._rootContainsTarget(n),l=o.entry,c=e&&a&&this._computeTargetAndRootIntersection(n,s,t),d=null;this._rootContainsTarget(n)?r&&!this.root||(d=t):d={top:0,bottom:0,left:0,right:0,width:0,height:0};var h=o.entry=new i({time:window.performance&&performance.now&&performance.now(),target:n,boundingClientRect:s,rootBounds:d,intersectionRect:c});l?e&&a?this._hasCrossedThreshold(l,h)&&this._queuedEntries.push(h):l&&l.isIntersecting&&this._queuedEntries.push(h):this._queuedEntries.push(h)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(t,n,i){if("none"!=window.getComputedStyle(t).display){for(var s=n,a=m(t),l=!1;!l&&a;){var d=null,p=1==a.nodeType?window.getComputedStyle(a):{};if("none"==p.display)return null;if(a==this.root||9==a.nodeType)if(l=!0,a==this.root||a==e)r&&!this.root?!o||0==o.width&&0==o.height?(a=null,d=null,s=null):d=o:d=i;else{var f=m(a),v=f&&u(f),g=f&&this._computeTargetAndRootIntersection(f,v,i);v&&g?(a=f,d=h(v,g)):(a=null,s=null)}else{var b=a.ownerDocument;a!=b.body&&a!=b.documentElement&&"visible"!=p.overflow&&(d=u(a))}if(d&&(s=c(d,s)),!s)break;a=a&&m(a)}return s}},s.prototype._getRootRect=function(){var t;if(this.root&&!f(this.root))t=u(this.root);else{var r=f(this.root)?this.root:e,o=r.documentElement,n=r.body;t={top:0,left:0,right:o.clientWidth||n.clientWidth,width:o.clientWidth||n.clientWidth,bottom:o.clientHeight||n.clientHeight,height:o.clientHeight||n.clientHeight}}return this._expandRectByRootMargin(t)},s.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map(function(t,r){return"px"==t.unit?t.value:t.value*(r%2?e.width:e.height)/100}),r={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return r.width=r.right-r.left,r.height=r.bottom-r.top,r},s.prototype._hasCrossedThreshold=function(e,t){var r=e&&e.isIntersecting?e.intersectionRatio||0:-1,o=t.isIntersecting?t.intersectionRatio||0:-1;if(r!==o)for(var n=0;n<this.thresholds.length;n++){var i=this.thresholds[n];if(i==r||i==o||i<r!=i<o)return!0}},s.prototype._rootIsInDom=function(){return!this.root||p(e,this.root)},s.prototype._rootContainsTarget=function(t){var r=this.root&&(this.root.ownerDocument||this.root)||e;return p(r,t)&&(!this.root||r==t.ownerDocument)},s.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},s.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=i}function n(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}function i(e){this.time=e.time,this.target=e.target,this.rootBounds=d(e.rootBounds),this.boundingClientRect=d(e.boundingClientRect),this.intersectionRect=d(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,r=t.width*t.height,o=this.intersectionRect,n=o.width*o.height;this.intersectionRatio=r?Number((n/r).toFixed(4)):this.isIntersecting?1:0}function s(e,t){var r,o,n,i=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(i.root&&1!=i.root.nodeType&&9!=i.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(r=this._checkForIntersections.bind(this),o=this.THROTTLE_TIMEOUT,n=null,function(){n||(n=setTimeout(function(){r(),n=null},o))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(i.rootMargin),this.thresholds=this._initThresholds(i.threshold),this.root=i.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(e,t,r,o){"function"==typeof e.addEventListener?e.addEventListener(t,r,o||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,r)}function l(e,t,r,o){"function"==typeof e.removeEventListener?e.removeEventListener(t,r,o||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,r)}function c(e,t){var r=Math.max(e.top,t.top),o=Math.min(e.bottom,t.bottom),n=Math.max(e.left,t.left),i=Math.min(e.right,t.right),s=i-n,a=o-r;return s>=0&&a>
1=0&&{top:r,bottom:o,left:n,right:i,width:s,height:a}||null}function u(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function d(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function h(e,t){var r=t.top-e.top,o=t.left-e.left;return{top:r,left:o,height:t.height,width:t.width,bottom:r+t.height,right:o+t.width}}function p(e,t){for(var r=t;r;){if(r==e)return!0;r=m(r)}return!1}function m(t){var r=t.parentNode;return 9==t.nodeType&&t!=e?n(t):(r&&r.assignedSlot&&(r=r.assignedSlot.parentNode),r&&11==r.nodeType&&r.host?r.host:r)}function f(e){return e&&9===e.nodeType}}();var MOBILE_BREAKPOINT="320",MOBILE_LARGE_BREAKPOINT="414",TABLET_BREAKPOINT="769",TABLET_LARGE_BREAKPOINT="820",DESKTOP_SMALL_BREAKPOINT="940",DESKTOP_BREAKPOINT="1170",XHR_REQUEST=new XMLHttpRequest,debounce=(e,t)=>{var r;return function(){clearTimeout(r),r=setTimeout(()=>e.apply(this,arguments),t)}},doLoop=(e,t)=>{for(var r=0;r<e.length&&!1!==t(r,e[r]);r++);},wrap=(e,t)=>{e.parentNode.insertBefore(t,e),t.appendChild(e)},createEl=(e,t)=>{var r=document.createElement(e);return r.className=t,r},toggleAriaExpanded=e=>{e.setAttribute("aria-expanded","false"===e.getAttribute("aria-expanded")?"true":"false")},toggleAriaHidden=e=>{e.setAttribute("aria-hidden","false"===e.getAttribute("aria-hidden")?"true":"false")},toggleAnswerVisibility=(e,t)=>{e.classList.contains(t)?e.style.visibility="visible":e.style.visibility="hidden"},calculateHeight=(e,t)=>{for(var r=e.children,o=0,n=0;n<r.length;n++)o+=r[n].offsetHeight;e.classList.contains(t)?e.style.height=`${o}px`:e.removeAttribute("style")},trimHtml=(e,t)=>
1{for(var r,o,n,i,s=(t=t||{}).limit||100,a=void 0===t.preserveTags||t.preserveTags,l=void 0!==t.wordBreak&&t.wordBreak,c=t.suffix||"...",u=t.moreLink||"",d=e.replace(/</g,"\n<").replace(/>/g,">\n").replace(/\n\n/g,"\n").replace(/^\n/g,"").replace(/\n$/g,"").split("\n"),h=0,p=[],m=!1,f=0;f<d.length;f++){var v=d[f],g=v.replace(/[ ]+/g," ");if(v.length){if("<"!==v[0])if(h>=s)v="";else if(h+g.length>=s){if(" "===v[(r=s-h)-1])for(;r&&" "===v[(r-=1)-1];);else o=v.substring(r).split("").indexOf(" "),l||(-1!==o?r+=o:r=v.length);v=v.substring(0,r)+c,u&&(v+='<p><a class="'+u.class+'" href="'+u.link+'" aria-expanded="false" aria-label="Show full text" role="button">Read More</a></p>'),h=s,m=!0}else h+=g.length;else if(a){if(h>=s)if(i=(n=v.match(/[a-zA-Z]+/))?n[0]:"")if("</"!==v.substring(0,2))p.push(i),v="";else{for(;p[p.length-1]!==i&&p.length;)p.pop();p.length&&(v=""),p.pop()}else v=""}else v="";d[f]=v}}return{html:d.join("\n").replace(/\n/g,""),more:m}},findAncestor=(e,t)=>{for(;(e=e.parentElement)&&!e.classList.contains(t););return e},addRecaptchaError=e=>{e.querySelector(".g-recaptcha--error").innerHTML='<p class="error">Validation failed, please try again.</p>'},recaptchaValidation=(e,t=!0,r=!1)=>{var o=document.querySelector("#RecaptchaSiteKey").value,n=document.querySelector("#g-recaptcha-response"),i=e.querySelector(".submit");if(o&&n){var s=e.querySelector(".g-recaptcha--error .error");s&&s.remove(),i.classList.add("bn--disabled"),i.setAttribute("disabled",!0),grecaptcha.ready(()=>{grecaptcha.execute(o,{action:"submit"}).then(o=>{if(o){var s=e.closest("form")||e.querySelector("form");n.value=o,r?r(o):t?s.submit():s.requestSubmit()}else addRecaptchaError(e);i.classList.remove("bn--disabled"),i.removeAttribute("disabled")})})}},RenderRecaptchas=()=>{["f13","m92","m106","f25","f32"].forEach(e=>{var t=window[`${e}`];t&&t.reCAPTCHArender&&document.querySelector(`.${e.toLowerCase()}`)&&t.reCAPTCHArender()})},getQueryStringParams=e=>{if(e){var t=e;return/^[?#]/.test(e)&&(t=e.slice(1)),t.split("&").reduce((e,t)=>{var[r,o]=t.split("=");return e[r]=o?decodeURIComponent(o.replace(/\+/g," ")):"",e},{})}return{}},validateAnPostCode=e=>{var t=e.substr(e.length-1),r=e.substring(0,e.length-1),o=[8,6,4,2,3,5,9,7],n=0,i=0;if(8!==r.length)for(var s=new Array(8-r.length),a=0;a<s.length;a++)r="0"+r;switch(doLoop(r,(e,t)=>{n+=parseInt(t,10)*parseInt(o[e],10)}),n%11){case 0:i=5;break;case 1:i=0;break;default:i=11-n%11}return parseInt(t,10)===parseInt(i,10)};function numberWithCommas(e){return e?e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","):""}Math.log10=Math.log10||function(e){return Math.log(e)*Math.LOG10E};var redirectTimer,checkIsValidDate=(e,t,r)=>{var o=new Date;return o.setFullYear(r,t-1,e),o.getFullYear()===r&&o.getMonth()+1===t&&o.getDate()===e},setSessionCookie=(e,t,r=!0)=>{var o=r?encodeURIComponent(t):t;document.cookie=`${e}=${o};path=/`},getCookie=e=>{for(var t=e+"=",r=decodeURIComponent(document.cookie).split(";"),o=0;o<r.length;o++){for(var n=r[o];" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(t))return n.substring(t.length,n.length)}return""},deleteCookie=(e,t)=>{var r=new Date;r.setMonth(r.getMonth()-1),document.cookie=`${e} = ${escape(t)};expires = ${r.toUTCString()};path=/`},showAPLoader=e=>{var t=document.querySelector(".js-loader"),r="loader-wrapper--shown";t&&(e?t.classList.add(r):t.classList.remove(r))},setRedirectTimer=(e,t)=>{var r=6e4*t;clearTimeout(redirectTimer),redirectTimer=setTimeout(()=>{window.location.href=e},r)},reauthenticateUser=()=>{location.search.includes("loggedout")?M78.openLoginRegistration("AP-login"):window.location.href=`${window.location.origin}/myAccount/Auth?loggedout=true`},truncateString=(e,t)=>e.length>t?`${e.substring(0,t-3)}...`:e,checkForAnPostApp=()=>navigator.userAgent.indexOf("An Post")>0,trackItem=(e,t)=>{if(window.dataLayer=window.dataLayer||[],isFormValid(e)&&t){var r=t.match(/^([a-z]{2})[0-9]{9}([a-z]{2})$/i);r?(dataLayer.push({event:"trackItem",result:"found",serviceCode:r[1].toUpperCase(),countryCode:r[2].toUpperCase()}),console.log(dataLayer)):(dataLayer.push({event:"trackItem",result:"not found",serviceCode:"not found",countryCode:"not found"}),console.log(dataLayer))}},pushDataLayer=e=>{window.dataLayer.push(e)},virtualPageView=(e,t)=>{pushDataLayer({event:"virtualPageView",pageview_url:e,pageview_title:t})};function doValidation(e,t,r=null,o=!1,n=!1){var i=e.querySelector(".submit");i&&i.addEventListener("click",function(o){handleFormSubmit(e,o,t,r)});for(var s=e.querySelectorAll("[data-required]"),a=0;a<s.length;++a)s.item(a).addEventListener("change",function(r){var o=e.querySelector(".g-recaptcha--error .error");o&&o.remove();var s=validate(e,t)||{};showErrorsForInput(e,this,s[this.name]),n&&c(e,i)}),o&&(s.item(a).addEventListener("keyup",function(r){var o=e.querySelector(".g-recaptcha--error .error");o&&o.remove();var s=validate(e,t)||{};if(s[this.name]&&d(this,s[this.name])){var a=this.value.slice(0,-1);this.value=a}n&&c(e,i)}),"number"===s.item(a).type&&s.item(a).addEventListener("keypress",function(e){l(e)}));function l(e){var t=void 0===(e=e||window.event).which?e.keyCode:e.which;String.fromCharCode(t).match(/^[0-9\.\+]$/)||e.preventDefault()}var c=(e,t)=>{(e=>{for(var t=e.querySelectorAll("[data-required]"),r=0;r<t.length;++r)if(!t[r].value)return!1;return!0})(e)?(t.disabled=!1,t.classList.remove("bn--disabled"),t.getAttribute("data-enabled-text")&&(t.innerHTML=t.getAttribute("data-enabled-text"),t.value=t.getAttribute("data-enabled-text"))):(t.disabled=!0,t.classList.add("bn--disabled"),t.getAttribute("data-disabled-text")&&(t.innerHTML=t.getAttribute("data-disabled-text"),t.value=t.getAttribute("data-disabled-text")))};function u(e,t,r){var o=!1;return"function"==typeof e&&(e=e(r.value)),e&&e.message&&-1!==t.indexOf(e.message.replace("^",""))&&(e.maximum&&r.value.length>e.maximum||e.lessThanOrEqualTo&&parseInt(r.value)>e.lessThanOrEqualTo||e.strict&&!e.allowKeyup)&&(o=!0),o}function d(e,r){var o=!1;return(o=u(t[e.name].length,r,e))||(o=u(t[e.name].format,r,e)),o||(o=u(t[e.name].numericality,r,e)),o}}function handleFormSubmit(e,t,r,o=null){var n=validate(e,r);showErrors(e,n||{}),n?(e.classList.remove("form-is-valid"),t.preventDefault()):(e.classList.add("form-is-valid"),disableButtonAfterSubmission(e),o&&(t.preventDefault(),"string"==typeof o?window[o]():o()))}function isFormValid(e){return!!e.classList.contains("form-is-valid")}function showErrors(e,t){for(var r=e.querySelectorAll("[data-required]"),o=!1,n=0;n<r.length;n++)showErrorsForInput(e,r[n],t&&t[r[n].name]),t&&!o&&t[r[n].name]&&(r[n].scrollIntoView(),r[n].focus(),window.scrollBy(0,-100),o=!0)}function showErrorsForInput(e,t,r){e.classList.add("form-is-changed"),e.classList.remove("form-is-valid");var o=closestParent(t.parentNode,"form__group")||closestParent(t.parentNode,"form__group__checkbox")||closestParent(t.parentNode,"form__group__radio"),n=o.querySelector(".form__group__error");
1if(resetFormGroup(o),r){o.classList.add("has-error");for(var i=0;i<r.length;i++)t.setAttribute("aria-label",r[i]),addError(n,r[i])}else o.classList.add("has-success"),t.removeAttribute("aria-label")}function closestParent(e,t){return e&&e!=document?e.classList.contains(t)?e:closestParent(e.parentNode,t):null}function resetFormGroup(e){e.classList.remove("has-error"),e.classList.remove("has-success");for(var t=e.querySelectorAll(".error"),r=0;r<t.length;r++)t[r].parentNode.removeChild(t[r])}function addError(e,t){var r=document.createElement("p");r.classList.add("error"),r.innerText=t,e.appendChild(r)}function disableButtonAfterSubmission(e){var t=e.querySelector(".js-disable-on-submit");t&&(t.classList.add("bn--disabled"),"BUTTON"===t.tagName.toUpperCase()?t.textContent="Please wait...":"INPUT"===t.tagName.toUpperCase()&&(t.value="Please wait..."))}var Forms=(()=>{var e="js-slideup",t="js-slideup-select",r="js-slideup-textarea",o="js-radio-group",n="form__group__focused",i="js-show-password",s="js-show-password--selected",a=(e,t)=>{e.onfocus=()=>{t.classList.add(n)}},l=(e,t)=>{e.oninput=()=>{t.classList.add(n)}},c=(e,t)=>{e.onchange=()=>{t.classList.add(n)}},u=(e,t)=>{e.value?t.classList.add(n):t.classList.remove(n)},d=(e,t)=>{e.onblur=()=>{e.value||t.classList.remove(n)}},h=(e,t)=>{e.onblur=()=>{t.classList.remove(n)}},p=(e,t)=>{"number"===e.type&&(e.onkeydown=()=>69!==event.keyCode)},m=(e,t)=>{"password"===e.type&&t.querySelector(`.${i}`)&&t.querySelector(`.${i}`).addEventListener("click",t=>{t.target.classList.contains(s)?e.type="password":e.type="text",t.target.classList.toggle(s)})};return{init:()=>{var n=document.querySelectorAll(`.${e}`);n&&doLoop(n,(e,t)=>{var r=t.querySelector("input");r&&(a(r,t),d(r,t),l(r,t),u(r,t),p(r,t),m(r,t))});var i=document.querySelectorAll(`.${t}`);i&&doLoop(i,(e,t)=>{var r=t.querySelector("select");c(r,t),u(r,t)});var s=document.querySelectorAll(`.${r}`);s&&doLoop(s,(e,t)=>{var r=t.querySelector("textarea");a(r,t),d(r,t),u(r,t)});var f=document.querySelectorAll(`.${o}`);f&&doLoop(f,(e,t)=>{var r=t.querySelector("input");a(r,t),h(r,t)})}}})(),m79=(()=>{var e={modalTriggersCls:"js-open-modal",modalWrappers:document.querySelectorAll(".m79"),openCls:"m79--open",freezeCls:"js--freeze",closeBns:document.querySelectorAll(".m79__modal__close")},t=null,r=[],o=null,n=(n,i)=>{n.preventDefault();for(var s,a=i||n.currentTarget||n.target,l=a.getAttribute("data-modal-id"),c=document.getElementById(l),u=0;u<e.modalWrappers.length;u++)l===e.modalWrappers[u].getAttribute("id")&&e.modalWrappers[u].classList.contains("has-video")&&"undefined"!=typeof dataLayer&&dataLayer.push({event:"videoOpen",video_title:l});c&&(c.classList.contains(e.openCls)||(t=i||null,c.parentElement!==document.body&&document.body.appendChild(c),document.body.classList.add(e.freezeCls),c.classList.add(e.openCls),c.setAttribute("role","dialog"),c.setAttribute("aria-modal","true"),c.setAttribute("tabindex","-1"),c.setAttribute("aria-label",a.textContent.trim()||l),(c.querySelector(".m79__modal__close")||c).focus(),s=c,o=e=>{if("Tab"===e.key){var t=Array.from(s.querySelectorAll('a[href], button:not([disabled]), iframe, [tabindex]:not([tabindex="-1"])'));if(t.length){var r=t[0],o=t[t.length-1];e.shiftKey?document.activeElement===r&&(e.preventDefault(),o.focus()):document.activeElement===o&&(e.preventDefault(),r.focus())}}},document.addEventListener("keydown",o),r=[],Array.from(document.body.children).forEach(e=>{e===c||e.hasAttribute("inert")||(e.setAttribute("inert",""),r.push(e))})))},i=()=>{var n=document.querySelector(`.${e.openCls}`);if(n){var i=n.querySelector("iframe");if("videoModal"===n.getAttribute("id")&&i){var s=i.getAttribute("src");i.setAttribute("src",s)}if(document.querySelectorAll(".has-video")&&i){var a=i.getAttribute("src");i.setAttribute("src",a)}document.body.classList.remove(e.freezeCls),n.classList.remove(e.openCls),o&&(document.removeEventListener("keydown",o),o=null),n.removeAttribute("role"),n.removeAttribute("aria-modal"),n.removeAttribute("tabindex"),n.removeAttribute("aria-label"),document.querySelectorAll("[inert]").forEach(e
1=>e.removeAttribute("inert")),r=[],t&&(t.focus(),t=null)}},s=()=>{document.addEventListener("click",e=>{e.target.classList.contains("m79")&&i()})},a=()=>{document.addEventListener("keydown",e=>{"Escape"===e.key&&i()})};return{init:()=>{var t=document.querySelectorAll(`.${e.modalTriggersCls}`);void 0!==t&&t.length>0&&t.forEach(e=>{e.addEventListener("click",t=>{n(t,e)})}),e.closeBns.length>0&&e.closeBns.forEach(e=>{e.addEventListener("click",e=>{i()})}),s(),a()},openModal:n,closeModal:i}})();m79.init();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.