/*! For license information please see top-subnav.min.js.LICENSE.txt */ (()=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){e=function(){return n};var r,n={},o=Object.prototype,i=o.hasOwnProperty,c=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(r){f=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,i=Object.create(o.prototype),a=new C(n||[]);return c(i,"_invoke",{value:D(t,r,a)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=d;var h="suspendedStart",y="suspendedYield",m="executing",v="completed",g={};function b(){}function w(){}function S(){}var E={};f(E,l,(function(){return this}));var O=Object.getPrototypeOf,L=O&&O(O(A([])));L&&L!==o&&i.call(L,l)&&(E=L);var j=S.prototype=b.prototype=Object.create(E);function x(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function P(e,r){function n(o,c,a,l){var u=p(e[o],e,c);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==t(f)&&i.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,a,l)}),(function(t){n("throw",t,a,l)})):r.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,l)}))}l(u.arg)}var o;c(this,"_invoke",{value:function(t,e){function i(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o.then(i,i):i()}})}function D(t,e,n){var o=h;return function(i,c){if(o===m)throw Error("Generator is already running");if(o===v){if("throw"===i)throw c;return{value:r,done:!0}}for(n.method=i,n.arg=c;;){var a=n.delegate;if(a){var l=I(a,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=p(t,e,n);if("normal"===u.type){if(o=n.done?v:y,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function I(t,e){var n=e.method,o=t.iterator[n];if(o===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=r,I(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=p(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var c=i.arg;return c?c.done?(e[t.resultName]=c.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,g):c:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function A(e){if(e||""===e){var n=e[l];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,c=function t(){for(;++o=0;--o){var c=this.tryEntries[o],a=c.completion;if("root"===c.tryLoc)return n("end");if(c.tryLoc<=this.prev){var l=i.call(c,"catchLoc"),u=i.call(c,"finallyLoc");if(l&&u){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),g}},n}function r(t,e,r,n,o,i,c){try{var a=t[i](c),l=a.value}catch(t){return void r(t)}a.done?e(l):Promise.resolve(l).then(n,o)}var n=function(){var t,n=(t=e().mark((function t(r,n){var o,i,c,a,l,u,s;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(r);case 2:return o=t.sent,t.next=5,o.text();case 5:if(i=t.sent,c=new DOMParser,a=c.parseFromString(i,"image/svg+xml"),(l=a.getElementsByTagName("svg")).length){for(l=l[0],u=l.attributes,s=0;s3&&void 0!==arguments[3]?arguments[3]:{},c=new CustomEvent(e,{detail:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},bubbles:null===(r=i.bubbles)||void 0===r||r,cancelable:null===(n=i.cancelable)||void 0===n||n,composed:null!==(o=i.composed)&&void 0!==o&&o});t.dispatchEvent(c)},f={};"undefined"!=typeof window&&(window.SinchDS=window.SinchDS||f);var d=function(t,e){f[t]=e};function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function y(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{var n=window.scrollY||window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop;if(!r&&null===e&&(t=window.innerHeight,!(S!==t?(S=t,0):E)))return w=n,!1;var o={previousScroll:w,currentScroll:n,forcedDirection:e},i=s(document,b.BEFORE_CHANGE,o,{cancelable:!0});if(i&&i.defaultPrevented)return!1;var c,a=function(t){if(!t)return null;var e=t.toLowerCase().split(",").map((function(t){return t.trim()}));return e.every((function(t){return Object.values(v).includes(t)}))?{direction:e[0],includeTop:e.includes(v.TOP)}:null}(e);return a?(document.body.classList.toggle("scrolling-up",a.direction===v.UP),document.body.classList.toggle("scrolling-down",a.direction===v.DOWN),a.includeTop&&document.body.classList.toggle("is-scrolled-top",n<100)):(n<100?document.body.classList.add("is-scrolled-top"):document.body.classList.remove("is-scrolled-top"),null!==(c=window.SinchDS)&&void 0!==c&&c.__smoothScrollInProgress||Math.abs(n-w)>=1&&(n>w?(document.body.classList.remove("scrolling-up"),document.body.classList.add("scrolling-down")):(document.body.classList.add("scrolling-up"),document.body.classList.remove("scrolling-down")))),w=n,s(document,b.AFTER_CHANGE,y(y({},o),{},{appliedClasses:{isScrolledTop:document.body.classList.contains("is-scrolled-top"),scrollingUp:document.body.classList.contains("scrolling-up"),scrollingDown:document.body.classList.contains("scrolling-down")}})),setTimeout((function(){E=!1}),50),!0}catch(t){return s(document,b.ERROR,{error:t.message,timestamp:(new Date).getTime()}),console.error("Scroll direction error:",t),!1}}));var O=document.getElementById("topSubnavContainer"),L=document.getElementById("topSubnavIcon"),j=document.getElementById("topSubnavIconInner"),x=document.getElementById("topSubnavSiteTitle"),P=document.getElementById("topSubnavSiteTitleInner"),D=document.getElementById("topSubnavSectionTitle"),I=document.getElementById("topSubnavMenuInner"),T=document.getElementById("topSubnavMoreInner"),_=document.getElementById("topSubnavExtraContent"),C=document.getElementById("topSubnavExtraContentInner"),A=0;function N(){var t;O&&I&&T&&(O.offsetWidth-(t=0,j&&(t+=j.offsetWidth),P&&(t+=P.offsetWidth),D&&(t+=D.offsetWidth),C&&(t+=C.offsetWidth),t)>=A?(I.style.display="",T.style.display="none"):(I.style.display="none",T.style.display=""))}function W(){if(L&&j){var t=j.offsetWidth;L.style.maxWidth="".concat(t,"px")}if(x&&P){var e=P.offsetWidth;x.style.maxWidth="".concat(e,"px")}if(_&&C){var r=C.offsetWidth;_.style.maxWidth="".concat(r,"px")}}d("scrollToElement",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&document.querySelectorAll("[data-smoothscroll-offset=true], #wpadminbar").forEach((function(t){r-=t.offsetHeight}));var n=t.getBoundingClientRect().top+window.scrollY+r,o=window.scrollY,i=n-o,c=null;window.SinchDS||(window.SinchDS={}),requestAnimationFrame((function t(r){null===c&&(window.SinchDS.__smoothScrollInProgress=!0,c=r);var n,a,l,u,s=r-c,f=(n=s,a=o,l=i,(n/=e/2)<1?l/2*n*n+a:-l/2*(--n*(n-2)-1)+a);window.scrollTo(0,f),s