1function t_submenublocks__highlightActiveLinks(e){var t=window.location.href,n=window.location.pathname,o=window.location.hash;"/"===n[n.length-1]&&(n=n.slice(0,-1)),"/"===n[0]&&(n=n.slice(1)),""===n&&(n="/");var u=document.querySelectorAll(e);(u=Array.prototype.filter.call(u,(function(e){var u=e.getAttribute("href");return"/"===u[0]&&u.length>1&&(u=u.slice(1)),"/"===u[u.length-1]&&u.length>1&&(u=u.slice(0,-1)),u&&(u===t||u===o||u===n)}))).forEach((function(e){e.classList.add("t-active")}))}function t_submenublocks__addEventsDesktop(e,t,n,o){if(!window.t_submenuBlocks__isMobile){var u,s=t.filter((function(t){return t!==e}));n=parseInt(n,10)||0,e.addEventListener("mouseleave",(function(){s.forEach((function(e){var t=e.closest(".t-menusub__menu");t&&t_triggerEvent(t,"submenu:mouseleave")})),u=setTimeout((function(){t_submenublocks__hideSubmenu(e,o)}),300)})),e.addEventListener("mouseenter",(function(){s.forEach((function(e){var t=e.closest(".t-menusub__menu");t&&t_triggerEvent(t,"submenu:mouseenter")})),u&&clearTimeout(u)})),s.forEach((function(t){t.addEventListener("mouseenter",(function(){var s=e.classList.contains(o.slice(1)+"__tooltip-menu_show");u&&clearTimeout(u),s||t_submenublocks__showSubmenu(t,e,n,o)})),t.addEventListener("mouseleave",(function(){u=setTimeout((function(){t_submenublocks__hideSubmenu(e,o)}),300)}))}))}}function t_submenublocks__addEventsMobile(e,t,n,o){t_submenublocks__setMainKeysForSubmenu(e,n,o),t.forEach((function(t){t_submenublocks__setKeysForHookLink(t,e),e.isFullScreen?(t.removeEventListener("click",t_submenublocks__setFullscreenSubmenuClickEvent),t.addEventListener("click",t_submenublocks__setFullscreenSubmenuClickEvent)):(t.removeEventListener("click",t_submenublocks__setMobileClick),t.addEventListener("click",t_submenublocks__setMobileClick))})),t_submenublocks__processSubmenuChangeTimer("create"),window.removeEventListener("orientationchange",t_submenublocks__hideAllSubmenuOnOrientationChange),window.addEventListener("orientationchan …Длинные строки сокращены. Полная версия доступна по ссылке «Полный текст».