function init(){function u(n){return n&&n!==document&&n.nodeName!=="HTML"&&n.nodeName!=="BODY"?!0:!1}function h(n){var i=n.type,t=n.tagName;return t=="INPUT"&&s[i]&&!n.readonly?!0:t=="TEXTAREA"&&!n.readonly?!0:n.contentEditable=="true"?!0:!1}function e(n){n.classList.contains("focus-visible")||(n.classList.add("focus-visible"),n.setAttribute("data-focus-visible-added",""))}function c(n){n.hasAttribute("data-focus-visible-added")&&(n.classList.remove("focus-visible"),n.removeAttribute("data-focus-visible-added"))}function l(){u(document.activeElement)&&e(document.activeElement);t=!0}function f(){t=!1}function a(n){u(n.target)&&(t||h(n.target))&&(e(n.target),t=!1)}function v(n){u(n.target)&&(n.target.classList.contains("focus-visible")||n.target.hasAttribute("data-focus-visible-added"))&&(i=!0,window.clearTimeout(r),r=window.setTimeout(function(){i=!1;window.clearTimeout(r)},100),c(n.target))}function y(){document.visibilityState=="hidden"&&(i&&(t=!0),o())}function o(){document.addEventListener("mousemove",n);document.addEventListener("mousedown",n);document.addEventListener("mouseup",n);document.addEventListener("pointermove",n);document.addEventListener("pointerdown",n);document.addEventListener("pointerup",n);document.addEventListener("touchmove",n);document.addEventListener("touchstart",n);document.addEventListener("touchend",n)}function p(){document.removeEventListener("mousemove",n);document.removeEventListener("mousedown",n);document.removeEventListener("mouseup",n);document.removeEventListener("pointermove",n);document.removeEventListener("pointerdown",n);document.removeEventListener("pointerup",n);document.removeEventListener("touchmove",n);document.removeEventListener("touchstart",n);document.removeEventListener("touchend",n)}function n(n){n.target.nodeName.toLowerCase()!=="html"&&(t=!1,p())}var t=!0,i=!1,r=null,s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};document.addEventListener("keydown",l,!0);document.addEventListener("mousedown",f,!0);document.addEventListener("pointerdown",f,!0);document.addEventListener("touchstart",f,!0);document.addEventListener("focus",a,!0);document.addEventListener("blur",v,!0);document.addEventListener("visibilitychange",y,!0);o();document.body.classList.add("js-focus-visible")}function onDOMReady(n){function i(){t||(t=!0,n())}var t;["interactive","complete"].indexOf(document.readyState)>=0?n():(t=!1,document.addEventListener("DOMContentLoaded",i,!1),window.addEventListener("load",i,!1))}typeof document!="undefined"&&onDOMReady(init)