function t_menusub_init(e){var t,n,u=document.getElementById("rec"+e);u&&(t_menusub__isBlockVisible(u)?t_menusub__lazyInit(e):(t=!1,n=function(){!t&&t_menusub__isBlockVisible(u)&&(t=!0,window.removeEventListener("orientationchange",n),t_menusub__lazyInit(e))},window.addEventListener("orientationchange",t_throttle(function(){n()},500))))}function t_menusub__lazyInit(u){var e,s,o,t,n=document.getElementById("rec"+u);n&&(e=n.querySelectorAll(".t-menusub"),t=n.querySelectorAll("a.t-menu__link-item"),s=Array.prototype.some.call(t,function(e){return e.getAttribute("data-menu-submenu-hook")}),o=window.t_menusub__isMobile?"orientationchange":"resize",Array.prototype.forEach.call(e,function(e){var t,n=e.getAttribute("data-submenu-hook");n&&(n=document.querySelectorAll(s?'a[data-menu-submenu-hook="'+n+'"]':'a[href="'+n+'"]'),Array.prototype.forEach.call(n,function(e){e.classList.add("t-menusub__target-link"),e.setAttribute("data-tooltip-menu-id",u)}),t=e.querySelector(".t-menusub__menu"),t_menusub__appendArrow(e,n),window.t_menusub__isMobile||"ontouchend"in document?(t_menusub__setUpMenuMobile(e,t,n,u),document.removeEventListener("click",t_menusub__closeFullscreenSubmenu),document.addEventListener("click",t_menusub__closeFullscreenSubmenu)):t_menusub__setUpMenuDesktop(e,t,n),t_menusub__hightlight(),t_menusub__checkAnchorLinks(u),window.addEventListener(o,function(){t&&t_menusub__hideSubmenu(t)}))}),(t=(t=n.querySelector(".t450, .t451"))||n.querySelector("[data-menu]"))&&t.hasAttribute("data-full-submenu-mob")&&(window.t_menusub__isMobile||"ontouchend"in document)&&t_menusub__createFullscreenSubmenu(n,e))}function t_menusub__closeFullscreenSubmenu(e){var t,n=e.target.closest(".t-menusub__menu--fullscreen");n&&(t=e.target.closest(".t-menusub__menu--fullscreen__nav-arrow"),e=e.target.closest(".t-menusub__link-item:not(.t794__tm-link):not(.t978__tm-link):not(.t966__tm-link)"),(t||e)&&(n.style.transform="",document.body.classList.remove("t-body_scroll-locked"),document.documentElement.classList.remove("t-body_scroll-locked"),t&&(e=n.getAttribute("data-cachedPos"))&&window.scrollTo(0,parseInt(e,10)),setTimeout(function(){t_menusub__hideSubmenu(n)},300)))}function t_menusub__setUpMenuDesktop(e,n,t){var u,s=e.getAttribute("data-submenu-margin");Array.prototype.forEach.call(t,function(t){t.addEventListener("mouseenter",function(){t_menusub__showSubmenuOnHover(t,u,n,s)}),t.addEventListener("mouseleave",function(){u=setTimeout(function(){t_menusub__hideSubmenu(n)},300)});["click","auxclick"].forEach(function(e){t.addEventListener(e,function(e){e.preventDefault()})})}),n.addEventListener("mouseenter",function(){t_menusub__showSubmenuOnHover(n,u,n,s)}),n.addEventListener("mouseleave",function(){u=setTimeout(function(){t_menusub__hideSubmenu(n)},300)}),n.addEventListener("submenu:mouseenter",function(){window.clearTimeout(u)}),n.addEventListener("submenu:mouseleave",function(){u=setTimeout(function(){t_menusub__hideSubmenu(n)},300)})}function t_menusub__setUpMenuMobile(n,u,e,s){Array.prototype.forEach.call(e,function(t){t.addEventListener("click",function(e){e.preventDefault(),980l&&(t.style.left="",t.style.right="0",b=!0),d&&u&&n.bottom>r&&980\n \n ',s.appendChild(i),s.appendChild(o),r.insertAdjacentElement("afterbegin",s),l&&l.insertAdjacentElement("beforeend",r))}),window.addEventListener("orientationchange",function(){setTimeout(function(){Array.prototype.forEach.call(document.querySelectorAll(".t-menusub__menu--fullscreen"),function(e){e.style.height=document.documentElement.clientHeight+"px"})},300)})}function t_menusub__createArrowCustomPos(e,t){e.classList.add("t-menusub__menu-custompos"),e.style.setProperty("--custom-pos",t+"px")}function t_menusub__getLeftRelativePos(e){var t=0;if("fixed"===window.getComputedStyle(e).getPropertyValue("position"))n=e.getBoundingClientRect().left;else{for(var n=e.getClientRects().length?e.getBoundingClientRect().left:0,u=e.offsetParent;u&&1===u.nodeType&&"static"===window.getComputedStyle(u).getPropertyValue("position");)u=u.offsetParent;u&&u!==e&&1===u.nodeType&&(t=u.getClientRects().length?u.getBoundingClientRect().left:0)}return n-t}function t_menusub__hideSubmenu(e){var t=document.querySelector(".t-menusub__target-link_active");t&&(t.classList.remove("t-menusub__target-link_active"),t.setAttribute("aria-expanded","false")),e.style.display="",e.style.left="",e.style.top="",e.classList.remove("t-menusub__menu_show"),t_menusub__hideME401Submenu(e)}function t_menusub__appendArrow(e,t){var n;e.getAttribute("data-add-submenu-arrow")&&((n=document.createElement("div")).classList.add("t-menusub__arrow"),Array.prototype.forEach.call(t,function(e){e.insertAdjacentElement("beforeend",n)}))}function t_menusub__hightlight(){var e=window.location.href,t=window.location.pathname,e=(""===(t="/"===t.charAt(0)?t.slice(1):t)&&(t="/"),document.querySelectorAll('.t-menusub__list-item a[href="'+e+'"], .t-menusub__list-item a[href="'+e+'/"], .t-menusub__list-item a[href="'+t+'"], .t-menusub__list-item a[href="/'+t+'"], .t-menusub__list-item a[href="'+t+'/"], .t-menusub__list-item a[href="/'+t+'/"]'));Array.prototype.forEach.call(e,function(e){e.classList.add("t-active")})}function t_menusub__showME401Submenu(e){var t,n,e=e.closest(".t280"),u=e?e.querySelector(".t280__menu__wrapper"):null;u&&(n=t_menusub__isMobileME401(e),t=u.getAttribute("data-submenu-static"),u.classList.contains("t280__menu_static")&&u.setAttribute("data-submenu-static","n"),"n"===t&&n&&!u.classList.contains("t280__menu_static")&&(t=e.querySelector(".t280__menu"),n=e.querySelector(".t280__bottom"),t&&(t.style.transition="none"),n&&(n.style.transition="none"),u&&u.classList.add("t280__menu_static")))}function t_menusub__hideME401Submenu(e){var t,n,u,e=e.closest(".t280");e&&(t=t_menusub__isMobileME401(e),u=(n=e.querySelector(".t280__menu__wrapper"))?n.getAttribute("data-submenu-static"):"",e=e.querySelectorAll(".t280__menu .t-menusub__menu_show"),"n"===u&&window.t_menusub__isMobile&&t&&!e.length&&n.classList.contains("t280__menu_static")&&n.classList.remove("t280__menu_static"))}function t_menusub__isMobileME401(e){var t=e.querySelector(".t280__menu"),n=e.querySelector(".t280__bottom"),e=e.querySelector(".t280__container"),t=t?t.offsetHeight:0,n=n?n.offsetHeight:0,e=e?e.offsetHeight:0;return window.innerHeight-n-e-40=o-window.innerHeight){null===u&&a&&!a.classList.contains("t-active")?(e.forEach(function(e){e.classList.remove("t-active")}),a&&a.classList.add("t-active"),i=null):null!==u&&t[l].id&&u===t[l].id&&(i=null);break}}return i}function t_menusub__updateSectionsOffsets(e){e.forEach(function(e){var t=e.getBoundingClientRect().top+window.pageYOffset;e.getAttribute("data-offset-top")!==t.toString()&&e.setAttribute("data-offset-top",t)})}function t_menusub__isBlockVisible(e){var t=window.innerWidth,n=e.getAttribute("data-screen-min"),e=e.getAttribute("data-screen-max");return!(n&&tparseInt(e,10))}window.t_menusub__isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.msMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.webkitMatchesSelector||Element.prototype.oMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}return null});