PageSourceSearch

https://www.barracuda.com/etc.clientlibs/barracuda-core/clientlibs…/resources/3851-2c9f72476a49b09d5245.js

js barracuda.com collected 2026-10-01 07:00:07 UTC 28,526 bytes, 1 lines download raw bytes

1(self.webpackChunkaem_module_ui_frontend=self.webpackChunkaem_module_ui_frontend||[]).push([[3851],{3851:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>c});var s=i(2749),n=i(9755),a=i.n(n),o=i(5789),r=i(7510),h=i(6611),l=i(8353);class c extends s.Z{constructor(t){var e;if(super(t),this.C_HEADER=".cmp-header-v2",this.C_HEADER_STICKY="cmp-header-v2--sticky",this.C_HEADER_HIDE_TOP="cmp-header-v2--sticky__hide-top",this.C_HEADER_NO_RIBBON="cmp-header-v2--no-ribbon",this.HEADER_REDUCED_DIV_FOR_DESKTOP=".cmp-header-v2__content",this.HEADER_STICKY_DIV_MOBILE=".cmp-header-v2__site",this.HEADER_OUTER_DIV=".header-v2",this.TAB_NAV_CONTAINER=".cmp-tab-navigation__container",this.TAB_NAV_DESKTOP_CONTAINER=".cmp-tab-navigation__desktop-container",this.TAB_NAV_CONTAINER_FIXED="cmp-tab-navigation__container--fixed",this.S_TAB_NAV_CAROUSEL_BUTTON=".cuda-custom-carousel__nav-button",this.C_TAB_NAV_CAROUSEL_BUTTON_FIXED="cuda-custom-carousel__nav-button--fixed",this.S_TAB_NAV_CAROUSEL_BLUR_EFFECT=".cuda-custom-carousel__blur-effect",this.C_RIBBON_CONTAINER=".cmp-ribbon__container",this.M_CONTAINER_HIDE="cmp-ribbon__container--hide",this.C_HERO_BANNER_CMP=".cmp-hero-banner",this.C_HOMEPAGE_BANNER_WRAPPER="body.home-page-template .cmp-homepage-hero",this.C_HOMEPAGE_BANNER_ON_PRODUCT_PAGE="body.product-page-template .cmp-homepage-hero__outer-wrapper",this.C_FLEXIBLE_PAGE="body.flexible-page-template",this.M_HEADER_HOME_OPEN="cmp-header-v2__topper--selected",this.S_OPEN_HAMBURGER_BUTTON='[data-cmp-hook-headerv2="opennav"]',this.S_HOME_HEADER='[data-cmp-hook-headerv2="home-topper"]',this.M_ALL_CLOSE=".cmp-header-v2__all__close",this.M_PANEL_CLOSE=".cmp-header-v2__panel-topper__close",this.M_NAV=".cmp-header-v2__content-menu__list",this.M_NAV_OPEN="cmp-header-v2__content-menu__list--selected",this.M_FOOTER=".cmp-header-v2__content__footer",this.M_FOOTER_SELECTED="cmp-header-v2__content__footer--selected",this.M_MENU_BUTTON=".cmp-header-v2__content__menu__button-wrapper",this.M_MENU_BUTTON_SELECTED="cmp-header-v2__content__menu__button-wrapper--selected",this.ACTION_STICK="stick",this.ACTION_UNSTICK="unstick",this.$screenWidth=0,this.S_TABLE_HEADING_ROW=".cmp-table__container__table__row--header",this.tableHeaderTicking=!1,this.tableHeaderObserver=null,this.timer=0,this.$hamburgerOpenBtn=a()(this.S_OPEN_HAMBURGER_BUTTON),this.$allCloseBtn=a()(this.M_ALL_CLOSE),this.$panelCloseBtn=a()(this.M_PANEL_CLOSE),this.$mobileHeaderHome=a()(this.S_HOME_HEADER),this.$mobileHeaderNav=a()(this.M_NAV),this.$mobileMenuButton=a()(this.M_MENU_BUTTON),this.$mobileFooter=a()(this.M_FOOTER),this.$nav=a()(c.S_PANEL_NAV),this.$navButtons=a()(c.S_PANEL_BUTTONS),this.$navSelector=a()(c.S_NAV_SELECTOR),this.$panels=a()(c.S_PANELS),this.$subPanels=a()(c.S_SUB_PANELS),this.$singlePanel=a()(c.M_PANEL_CONTENT_SINGLE),this.$firstNavItem=a()(c.M_PANEL_NAV_FIRST),this.$selectedNavItemAll=a()(c.M_PANEL_NAV_SELECTED_ALL),this.$firstMultiPanel=a()(c.M_PANEL_CONTENT_FIRST),this.$panelContent=a()(c.M_PANEL_CONTENT),this.$linkOnFocusVisible=".cmp-header-v2__panel-wrapper a:focus-visible",this.$ribbonContainer=a()(this.C_RIBBON_CONTAINER),this.ribbonHeight=this.$ribbonContainer.outerHeight()||0,this.calculatedRibbonHeight=this.$ribbonContainer.outerHeight()||0,this.$heroBanner=a()(this.C_HERO_BANNER_CMP),this.heroBannerHeight=this.$heroBanner.outerHeight()||0,this.headerHeight=a()(this.C_HEADER).outerHeight()||0,this.$tabnavContainer=a()(this.TAB_NAV_CONTAINER),this.$tabnavDesktopContainer=a()(this.TAB_NAV_DESKTOP_CONTAINER),this.$tabnavCarouselArrowButtons=a()(this.S_TAB_NAV_CAROUSEL_BUTTON),this.$tabnavCarouselBlurEffects=a()(this.S_TAB_NAV_CAROUSEL_BLUR_EFFECT),this.$headerBottomDivDesktop=a()(this.HEADER_REDUCED_DIV_FOR_DESKTOP),this.$headerStickyDivMobile=a()(this.HEADER_STICKY_DIV_MOBILE),this.$headerTopDivDesktop=a()(this.HEADER_STICKY_DIV_MOBILE),this.$headerOuterDiv=a()(this.HEADER_OUTER_DIV),this.headerTopHeight=this.$headerTopDivDesktop.outerHeight()||0,this.scrollPositionToHideHeaderTop=this.ribbonHeight+this.headerTopHeight,this.isRibbonShowing=this.$ribbonContainer.length>0,this.isTopOfMenuShowing=window.scrollY<=this.ribbonHeight+this.headerTopHeight,this.scrollYPositionToStickTabnav=this.ribbonHeight+this.heroBannerHe
1ight,this.scrollYPositionToUnstickTabnav=this.scrollYPositionToStickTabnav,this.tabnavHeight=this.$tabnavDesktopContainer.outerHeight()||0,this.tabnavStickingPoint=0,this.$homepageBanner=a()(this.C_HOMEPAGE_BANNER_WRAPPER),this.isHomepage=this.$homepageBanner.length>0,this.$homepageBannerOnProductTemplate=a()(this.C_HOMEPAGE_BANNER_ON_PRODUCT_PAGE),this.isHomepageBannerOnProductTemplate=this.$homepageBannerOnProductTemplate.length>0,this.isHomepageBannerOnProductTemplate&&(this.$heroBanner=this.$homepageBannerOnProductTemplate,this.heroBannerHeight=this.$homepageBannerOnProductTemplate.outerHeight()||0),this.$flexiblePage=a()(this.C_FLEXIBLE_PAGE),this.isFlexiblePage=this.$flexiblePage.length>0,this.isDesktop=["lg","xl"].includes((0,o.Z)()),this.isResizing=!1,this.isAutoScrolling=!1,this.firstcall=!0,this.adjustRibbonAndHeaderBasedOnScrollY(),this.adjustHeroHandler(),this.adjustTabnavElements("up"),a()(".cmp-ribbon").removeClass("blending-mobile"),this.firstcall){((null===(e=this.$tabnavContainer.offset())||void 0===e?void 0:e.top)||0)!==window.scrollY||!this.$tabnavContainer.length||this.$tabnavContainer.hasClass("cmp-tab-navigation__container--hide-when-not-sticky")||window.location.hash||this.scrollPageToTabnav(window.scrollY),this.adjustHomepageBannerMargin(!0),this.firstcall=!1}window.addEventListener("resize",(()=>{this.isResizing=!0,this.isDesktop=["lg","xl"].includes((0,o.Z)()),this.resetElementsHeight(),this.adjustTabnavElements(),this.adjustRibbonAndHeaderBasedOnScrollY(!0),this.stickHeaderBasedOnScrollPosition(),this.adjustHomepageBannerMargin(),this.adjustHeroHandler(),this.bindElementsBySize(),this.$screenWidth<1200&&this.closeNav(),this.isResizing=!1}),{passive:!0}),this.bindElements(),this.$ribbonContainer.length||(a()(this.$cmp).addClass(this.C_HEADER_NO_RIBBON),a()(this.C_HEADER).css("top",this.ribbonHeight)),this.setupTableHeaderSticky(),this.observeHeaderForTableSticky(),l.f.refresh()}setupTableHeaderSticky(){this.observeHeaderForTableSticky(),this.$cmp&&this.$cmp.addEventListener("transitionend",(t=>{const e=t.propertyName;"transform"!==e&&"top"!==e&&"height"!==e||this.adjustStickyTableRowsPosition()}));const t=document.querySelector(this.TAB_NAV_DESKTOP_CONTAINER);t&&t.addEventListener("transitionend",(t=>{t.propertyName;this.adjustStickyTableRowsPosition()})),window.addEventListener("scroll",(()=>{this.tableHeaderTicking||(window.requestAnimationFrame((()=>{this.adjustStickyTableRowsPosition(),this.tableHeaderTicking=!1})),this.tableHeaderTicking=!0)}),{passive:!0})}observeHeaderForTableSticky(){const t=document.querySelector(this.TAB_NAV_CONTAINER);this.tableHeaderObserver=new MutationObserver((t=>{t.forEach((t=>{t.target}));[50,150,200,500].forEach((t=>{setTimeout((()=>{this.adjustStickyTableRowsPosition()}),t)}))}));const e={attributes:!0,attributeFilter:["class"]};this.$cmp&&this.tableHeaderObserver.observe(this.$cmp,e),t&&this.tableHeaderObserver.observe(t,e)}adjustStickyTableRowsPosition(){const t=document.querySelectorAll(this.S_TABLE_HEADING_ROW);if(0===t.length)return;const e=document.querySelector(this.TAB_NAV_DESKTOP_CONTAINER),i=this.$headerBottomDivDesktop[0];if(!e&&!i)return;let s=0;if(e){const t=e.getBoundingClientRect();s=t.bottom}else if(i){const t=i.getBoundingClientRect();s=t.bottom}s+=1;const n=window.scrollY||window.pageYOffset;t.forEach((t=>{const e=a()(t),i=t.closest(".cmp-table__container__table");if(!i)return;if(!c.shouldTableHeaderBeSticky(i))return void e.css({position:"",top:""});const o=i.getBoundingClientRect(),r=o.top+n,h=o.bottom+n;n>r&&n<h?e.css({position:"sticky",top:`${s}px`}):e.css({position:"",top:""})}))}static shouldTableHeaderBeSticky(t){const e=t.querySelectorAll(".cmp-table__container__table__row"),i=t.querySelectorAll(".cmp-table__container__table__row--header");return e.length-i.length>=3}adjustHomepageBannerMargin(t){if(!this.isHomepage&&!this.isHomepageBannerOnProductTemplate)return;let e=this.$homepageBanner;this.isHomepageBannerOnProductTemplate&&(e=a()(".cmp-homepage-hero")),t&&window.scrollY>=this.ribbonHeight?e.css("margin-top",-this.headerHeight+"px"):window.scrollY>=this.ribbonHeight?e.css("margin-top",0):window.scrollY<this.ribbonHeight&&e.css("margin-top","")}adjustHeroHandler(){this.$ribbonContainer.length?this.adjustHeroMarginBasedOnHeader():this.adjustHeroMarginBasedOnHeader("add")}stickTabnav(){this.$tabnavContainer.addClass(this.TAB_NAV_CONTAINER_FIXED),this.$tabnavDesktopContainer.css("top",`${this.tabnavStickingPoint}px`),c.adjustButtonAlignment()}stickTabnavArrows(){this.$tabnavCarouselArrowButtons.addClass(this.C_TAB_NAV_CAROUSEL_BUTTON_FIXED),this.$tabnavCarouselArrowButtons.css("top",`${this.tabnavStickingPoint+30}px`)}fetchTabnavElements(){this.$tabnavContainer=a()(this.TAB_NAV_CONTAINER),this.$tabnavDesktopContainer=a()(this.TAB_NAV_DESKTOP_CONTAINER),this.$tabnavCarouselArrowButtons=a()(this.S_TAB_NAV_CAROUSEL_BUTTON)}turnOnOffStickyTabnav(t){if(this.fetchTabnavElements(),"stick"===t){if(0===this.$tabnavContainer.length){const t=setInterval((()=>{this.$tabnavContainer=a()(this.TAB_NAV_CONTAINER),this.$tabnavContainer.length>0&&(this.stickTabnav(),clearInterval(t))}),200)}else this.stickTabnav();if(0===this.$tabnavCarouselArrowButtons.length){const t=setInterval((()=>{this.$tabnavCarouselArrowButtons=a()(this.S_TAB_NAV_CAROUSEL_BUTTON),this.$tabnavCarouselArrowButtons.length>0&&(this.stickTabnavArrows(),clearInterval(t))}),200)}else this.stickTabnavArrows()}else"unstick"===t&&(this.$tabnavContainer.removeClass(this.TAB_NAV_CONTAINER_FIXED),this.$tabnavDesktopContainer.css("top","0px"),this.$tabnavCarouselArrowButtons.removeClass(this.C_TAB_NAV_CAROUSEL_BUTTON_FIXED),this.$tabnavCarouselArrowButtons.css("top",""),c.resetButtonAlignment())}static adjustButtonAlignment(){const t=document.querySelector(".cmp-tab-navigation__desktop-container__items");if(!t||t.classList.contains("ribbon-nav"))return;const e=document.querySelector(".cmp-tab-navigation__buttons");if(!e)return;const i=e.getBoundingClientRect(),s=e.previousElementSibling;if(!s)return;const n=s.getBoundingClientRect();if(!(i.top>=n.top+n.height))return;const a=document.querySelector(".cmp-tab-navigation__desktop-container__items__left-wrap"),o=document.querySelector(".cmp-tab-navigation__desktop-container__items__list");e.style.marginRight="auto",e.style.marginBottom="5px",t.style.rowGap="5px",a&&(a.style.minHeight="unset"),o&&o.classList.add("reduce-top-margin")}static resetButtonAlignment(){const t=document.querySelector(".cmp-tab-navigation__desktop-container__items"),e=document.querySelector(".cmp-tab-navigation__buttons"),i=document.querySelector(".cmp-tab-navigation__desktop-container__items__left-wrap"),s=document.querySelector(".cmp-tab-navigation__desktop-container__items__list");e&&(e.style.marginRight="",e.style.marginBottom=""),t&&(t.style.rowGap=""),i&&(i.style.minHeight=""),s&&s.classList.remove("reduce-top-margin")}adjustTabnavElements(t){if(this.isAutoScrolling)return;this.scrollYPositionToStickTabnav=this.ribbonHeight+this.heroBannerHe
1ight,this.scrollYPositionToUnstickTabnav=this.scrollYPositionToStickTabnav,this.tabnavStickingPoint=this.$headerStickyDivMobile.outerHeight()||0;const e=this.$headerBottomDivDesktop.outerHeight()||0;if(this.isDesktop){const i=a()(this.$cmp).hasClass(this.C_HEADER_HIDE_TOP);"down"===t?(this.scrollYPositionToStickTabnav=this.heroBannerHeight+this.headerHeight+this.ribbonHeight,this.tabnavStickingPoint=e):"up"===t?(this.scrollYPositionToUnstickTabnav=this.heroBannerHeight+this.ribbonHeight,this.tabnavStickingPoint=i?e:this.headerHeight):t||(this.scrollYPositionToStickTabnav=this.heroBannerHeight-this.headerHeight,this.tabnavStickingPoint=i?e:this.headerHeight)}this.shouldTabNavBeSticky()?this.turnOnOffStickyTabnav(this.ACTION_STICK):this.turnOnOffStickyTabnav(this.ACTION_UNSTICK)}shouldTabNavBeSticky(){if(!this.$heroBanner||0===this.$heroBanner.length)return!1;const t=this.$heroBanner.get(0);if(!t)return!1;const e=t.getBoundingClientRect().bottom,i=this.isRibbonShowing&&this.$ribbonContainer.outerHeight()||0,s=this.$headerOuterDiv.outerHeight()||0,n=this.$headerBottomDivDesktop.outerHeight()||0,o=e<=i+(a()(this.$cmp).hasClass(this.C_HEADER_HIDE_TOP)?n:s),r=window.scrollY>=this.scrollYPositionToStickTabnav;return o&&r}resetElementsHeight(){this.ribbonHeight=this.$ribbonContainer.outerHeight()||0,this.heroBannerHeight=this.$heroBanner.outerHeight()||0,this.tabnavHeight=this.$tabnavDesktopContainer.outerHeight()||0,this.resetHeaderHeight()}resetHeaderHeight(){this.isDesktop?this.isTopOfMenuShowing?this.headerHeight=a()(this.C_HEADER).outerHeight()||0:this.headerHeight=this.$headerBottomDivDesktop.outerHeight()||0:this.isDesktop||(this.headerHeight=this.$headerStickyDivMobile.outerHeight()||0)}scrollPageToTabnav(t){const e=t-this.tabnavHeight+5;if(this.$tabnavContainer.hasClass("cmp-tab-navigation__container--sections"))return;this.isAutoScrolling=!0,window.scrollTo({top:e,left:0,behavior:"smooth"});const i=setInterval((()=>{Math.abs(window.scrollY-e)<1&&(setTimeout((()=>{this.isAutoScrolling=!1}),100),clearInterval(i))}),100)}adjustRibbonAndHeaderBasedOnScrollY(t){this.firstcall&&(window.scrollY>=this.ribbonHeight?this.turnOnOffStickyHeader(this.ACTION_STICK):this.turnOnOffStickyHeader(this.ACTION_UNSTICK));const e=this.$ribbonContainer.outerHeight()||0;this.$ribbonContainer.length&&window.scrollY<=e?this.showHideRibbonAndAdjustHeaderTop(!0):this.$ribbonContainer.length&&window.scrollY>e&&this.showHideRibbonAndAdjustHeaderTop(!1)}showHideRibbonAndAdjustHeaderTop(t){if(!this.$ribbonContainer.length)return;const e=this.$ribbonContainer.outerHeight()||0;!0===t&&window.scrollY<=e?(this.$ribbonContainer.removeClass(this.M_CONTAINER_HIDE),this.$ribbonContainer.css("transform",""),this.isRibbonShowing=!0,this.calculatedRibbonHeight=this.$ribbonContainer.outerHeight()||0,a()(this.C_HEADER).css("top",this.ribbonHeight)):!1===t&&window.scrollY>e&&(this.$ribbonContainer.addClass(this.M_CONTAINER_HIDE),this.isRibbonShowing=!1,this.calculatedRibbonHeight=0,a()(this.C_HEADER).css("top",0))}adjustHeroMarginBasedOnHeader(t){if(this.isHomepage||this.isHomepageBannerOnProductTemplate||this.isFlexiblePage)return;const e=this.isDesktop?this.headerHeight:this.$headerStickyDivMobile.outerHeight()||0,i=this.$heroBanner.length;let s=this.$heroBanner;i||(s=a()("main > div")),"add"===t?"0"!==s.css("margin-top")&&s.css("margin-top",e):"remove"!==t&&t||s.css("margin-top",0)}bindElements(){this.$hamburgerOpenBtn.on("click",this.open.bind(this)),this.$allCloseBtn.on("click",this.closeNav.bind(this)),this.$panelCloseBtn.on("click",this.closePanelNav.bind(this)),this.scrollUpDownHandler(),this.bindElementsBySize(),this.$navButtons.on("keydown",(t=>{"Enter"===t.key&&this.revealPanelHandlerForEnterkey.call(this,t)})),r.EventBusInstance.on(h.events.cuda.navBarDesktop.openPanel,(t=>{const e=t.detail;this.fadeInPanel(e.panelId,!1)})),r.EventBusInstance.on(h.events.cuda.navBarDesktop.closePanel,(t=>{const e=t.detail;this.fadeOutPanel(e.panelId)}))}bindElementsBySize(){this.$screenWidth=window.innerWidth,this.$navButtons.off("click"),this.$navButtons.off("mouseenter"),this.$navButtons.off("mouseleave"),this.$panels.off("mouseenter"),this.$panels.off("mouseleave"),this.$screenWidth<1200?this.$navButtons.on("click",this.revealPanelHandler.bind(this)):(this.$navButtons.on("mouseenter",this.revealPanelHandler.bind(this)),this.$navButtons.on("mouseleave",this.hidePanelHandler.bind(this)),this.$panels.on("mouseenter",(()=>window.clearTimeout(this.timer))),this.$panels.on("mouseleave",this.panelLeaveHandler.bind(this)))}turnOnOffStickyHeader(t){"stick"===t&&!a()(this.$cmp).hasClass(this.C_HEADER_STICKY)&&window.scrollY>=this.ribbonHeight?(a()(this.$cmp).addClass(this.C_HEADER_STICKY),this.adjustHeroMarginBasedOnHeader("add")):"unstick"===t&&a()(this.$cmp).hasClass(this.C_HEADER_STICKY)&&window.scrollY<this.ribbonHeight&&(a()(this.$cmp).removeClass(this.C_HEADER_STICKY),this.adjustHeroMarginBasedOnHeader("remove"))}showHideHeaderTop(t){"hide"!==t||a()(this.$cmp).hasClass(this.C_HEADER_HIDE_TOP)?"show"===t&&a()(this.$cmp).hasClass(this.C_HEADER_HIDE_TOP)&&(a()(this.$cmp).removeClass(this.C_HEADER_HIDE_TOP),this.isTopOfMenuShowing=!0):window.scrollY>=this.scrollPositionToHideHeaderTop&&(a()(this.$cmp).addClass(this.C_HEADER_HIDE_TOP),this.isTopOfMenuShowing=!1)}syncHeaderState(){const t=a()(this.$cmp).hasClass(this.C_HEADER_HIDE_TOP);this.isTopOfMenuShowing=!t}stickHeaderBasedOnScrollPosition(){window.scrollY>=this.ribbonHeight?this.turnOnOffStickyHeader(this.ACTION_STICK):this.turnOnOffStickyHeader(this.ACTION_UNSTICK)}scrollUpDownHandler(){const t=(t,e)=>{let i=null;return(...s)=>{i&&clearTimeout(i),i=window.setTimeout((()=>{t.apply(this,s)}),e)}},e=t((()=>{this.firstcall||this.isResizing||this.isAutoScrolling?this.firstcall=!1:(this.turnOnOffStickyHeader(this.ACTION_UNSTICK),this.showHideHeaderTop("show"),this.showHideRibbonAn
1dAdjustHeaderTop(!0),this.syncHeaderState(),this.resetHeaderHeight(),this.adjustHomepageBannerMargin(),this.stickHeaderBasedOnScrollPosition(),this.adjustTabnavElements("up"),this.adjustStickyTableRowsPosition())}),50);r.EventBusInstance.on(h.events.cuda.scrollDirection.up,e);const i=t((()=>{const t=this.$ribbonContainer.outerHeight()||0;this.firstcall||this.isResizing?this.firstcall=!1:(!this.isDesktop&&window.scrollY>t?a()(this.C_HEADER).css("top",0):(this.turnOnOffStickyHeader(this.ACTION_STICK),this.showHideHeaderTop("hide")),this.syncHeaderState(),this.showHideRibbonAndAdjustHeaderTop(!1),this.resetHeaderHeight(),this.adjustHomepageBannerMargin(),this.stickHeaderBasedOnScrollPosition(),this.adjustTabnavElements("down"),this.adjustStickyTableRowsPosition())}),50);r.EventBusInstance.on(h.events.cuda.scrollDirection.down,i)}activeNavButtonSwitcher(){this.$navButtons.removeClass(c.M_NAV_BTN_SELECTED),this.$navButtons.attr("aria-expanded","false")}fadeInPanel(t,e){const i=this.$panels.filter(`[data-navigation-panel-id="${t}"]`);this.$navButtons.filter(`[data-navigation-panel="${t}"]`).addClass(c.M_NAV_BTN_SELECTED),window.clearTimeout(this.timer),window.setTimeout((()=>{this.$panels.removeClass(c.M_PANEL_SELECTED),this.fadeInOverlay(),this.$mobileHeaderNav.removeClass(this.M_NAV_OPEN),i.addClass(c.M_PANEL_SELECTED);const t=i.find("a:first").eq(0)[0];window.setTimeout((()=>{!0===e&&t.focus()}),10)}),10)}fadeOutPanel(t){const e=this.$panels.filter(`[data-navigation-panel-id="${t}"]`);this.fadeOutOverlay(),this.$navButtons.removeClass(c.M_NAV_BTN_SELECTED),this.$navButtons.attr("aria-expanded","false"),e.removeClass(c.M_PANEL_SELECTED)}fadeInOverlay(){a()(this.$elements.overlay).addClass(c.M_OVERLAY)}fadeOutOverlay(){a()(this.$elements.overlay).removeClass(c.M_OVERLAY)}revealPanelHandler(t){t.preventDefault();const e=a()(t.currentTarget),i=e.data("navigationPanel");this.activeNavButtonSwitcher.call(this),this.fadeInPanel(parseInt(i,10),!1),this.moveNavSelector(e),this.showNavSelector()}revealPanelHandlerForEnterkey(t){t.preventDefault();const e=a()(t.currentTarget),i=e.data("navigationPanel");this.activeNavButtonSwitcher.call(this),this.fadeInPanel(parseInt(i,10),!0),this.moveNavSelector(e),this.showNavSelector()}hidePanelHandler(t){const e=a()(t.currentTarget).data("navigationPanel");this.timer=window.setTimeout((()=>{this.fadeOutPanel(e),this.hideNavSelector()}),10)}panelLeaveHandler(t){const e=a()(t.currentTarget).data("navigationPanelId");this.timer=window.setTimeout((()=>{this.fadeOutPanel(e),this.hideNavSelector()}),10)}showNavSelector(){this.$navSelector.addClass(c.M_NAV_SELECTOR_SELECTED);const t=a()(".cmp-header-v2__panel__nav__list")[0];t&&t.focus()}hideNavSelector(){this.$navSelector.removeClass(c.M_NAV_SELECTOR_SELECTED)}moveNavSelector(t){this.$navButtons.removeClass(c.M_NAV_BTN_SELECTED),this.$navButtons.attr("aria-expanded","false"),t.addClass(c.M_NAV_BTN_SELECTED),t.attr("aria-expanded","true")}closeNav(){this.$mobileHeaderHome.removeClass(this.M_HEADER_HOME_OPEN),this.$mobileHeaderNav.removeClass(this.M_NAV_OPEN),this.$mobileMenuButton.removeClass(this.M_MENU_BUTTON_SELECTED),this.$mobileFooter.removeClass(this.M_FOOTER_SELECTED),this.$panels.removeClass(c.M_PANEL_SELECTED),this.$navButtons.removeClass(c.M_NAV_BTN_SELECTED),this.$nav.addClass(c.S_PANEL_NAV_SELECTED),this.$panelContent.removeClass(c.M_PANEL_CONTENT_SELECTED),this.$singlePanel.addClass(c.M_PANEL_CONTENT_SELECTED),this.fadeOutOverlay()}closePanelNav(){this.$mobileHeaderHome.addClass(this.M_HEADER_HOME_OPEN),this.$mobileHeaderNav.addClass(this.M_NAV_OPEN),this.$panels.removeClass(c.M_PANEL_SELECTED),this.$panelContent.removeClass(c.M_PANEL_CONTENT_SELECTED),this.$singlePanel.addClass(c.M_PANEL_CONTENT_SELECTED)}open(){this.$mobileHeaderHome.addClass(this.M_HEADER_HOME_OPEN),this.$mobileHeaderNav.addClass(this.M_NAV_OPEN),this.$mobileMenuButton.addClass(this.M_MENU_BUTTON_SELECTED),this.$mobileFooter.addClass(this.M_FOOTER_SELECTED),this.$panels.removeClass(c.M_PANEL_SELECTED),this.$nav.addClass(c.S_PANEL_NAV_SELECTED),this.fadeInOverlay()}}c.M_NAV_BTN=".cmp-header-v2__content-menu__list__item-link",c.M_NAV_BTN_SELECTED="cmp-header-v2__content-menu__list__item-link--selected",c.S_NAV_SELECTOR=".cmp-header-v2__content-menu__list__item--selector",c.M_NAV_SELECTOR_SELECTED="cmp-header-v2__content-menu__list__item--selector--selected",c.S_PANEL_BUTTONS="[data-navigation-panel]",c.S_PANELS="[data-navigation-panel-id]",c.S_SUB_PANELS="[data-sub-navigation-panel-id]",c.M_PANEL_SELECTED="cmp-header-v2__panel-wrapper--selected",c.M_PANEL_CONTENT=".cmp-header-v2__panel__content",c.M_PANEL_CONTENT_SINGLE=".cmp-header-v2__panel__content--single",c.M_PANEL_NAV_FIRST=".cmp-header-v2__panel__nav__list__item:first-child",c.M_PANEL_NAV_SELECTED_ALL=".cmp-header-v2__panel__nav__list__item--selected",c.M_PANEL_NAV_SELECTED="cmp-header-v2__panel__nav__list__item--selected",c.M_PANEL_CONTENT_FIRST=".cmp-header-v2__panel__content:first-child",c.M_PANEL_CONTENT_SELECTED="cmp-header-v2__panel__content--selected",c.S_PANEL_NAV=".cmp-header-v2__panel__nav",c.S_PANEL_NAV_SELECTED="cmp-header-v2__panel__nav--selected",c.M_OVERLAY="cmp-header-v2__overlay--selected"},8353:(t,e,i)=>{"use strict";i.d(e,{f:()=>n});class s{constructor(){this.lastOffset=0,this.suppressHashChange=!1,this.tabNavNaturalTopCache=0,this.ribbon=document.querySelector(".cmp-ribbon__container"),this.header=document.querySelector(".header-v2"),this.headerTopDiv=
1document.querySelector(".cmp-header-v2__site"),this.headerBottomDiv=document.querySelector(".cmp-header-v2__content"),this.tabNav=document.querySelector(".cmp-tab-navigation__container"),this.init()}calculateOffset(){return this.calculateOffsetForScrollPosition(window.scrollY)}calculateOffsetForScrollPosition(t,e){var i,s,n,a;let o=0;const r=(null===(i=this.ribbon)||void 0===i?void 0:i.offsetHeight)||0,h=(null===(s=this.headerTopDiv)||void 0===s?void 0:s.offsetHeight)||0,l=(null===(n=this.headerBottomDiv)||void 0===n?void 0:n.offsetHeight)||0,c=(null===(a=this.header)||void 0===a?void 0:a.offsetHeight)||0,_=window.scrollY,d=window.innerWidth<1200;let u;if(u=void 0!==e?"up"===e:t<_,this.ribbon&&t<=r&&(o+=r),this.header)if(d)o+=h;else if(u)o+=c;else{o+=t>=r+h?l:c}if(this.tabNav){const e=this.tabNav.classList.contains("cmp-tab-navigation__container--fixed"),i=this.tabNav.querySelector(".cmp-tab-navigation__desktop-container"),s=(null==i?void 0:i.offsetHeight)||this.tabNav.offsetHeight||0,n=this.tabNav.getBoundingClientRect().top+_;e||(this.tabNavNaturalTopCache=n);const a=e&&this.tabNavNaturalTopCache>0?this.tabNavNaturalTopCache:n;let r;r=d?h:u?c:l;const E=a-r,v=t-o>=E;if(t-o-s>=E){o+=s;!e&&!u&&!d&&(o+=s)}else v&&(o+=s)}return o+=10,o}updateOffset(){const t=this.calculateOffset();t!==this.lastOffset&&(document.documentElement.style.setProperty("--scroll-offset",`${t}px`),this.lastOffset=t)}refresh(){this.ribbon=document.querySelector(".cmp-ribbon__container"),this.header=document.querySelector(".header-v2"),this.headerTopDiv=document.querySelector(".cmp-header-v2__site"),this.headerBottomDiv=document.querySelector(".cmp-header-v2__content"),this.tabNav=document.querySelector(".cmp-tab-navigation__container"),this.updateOffset()}scrollToTarget(t,e=!0,i=!1){const n="string"==typeof t?document.querySelector(t):t;if(!n)return;const a=n.getBoundingClientRect().top+window.pageYOffset,o=a<window.scrollY?"up":"down",r=this.calculateOffsetForScrollPosition(a,o),h=this.avoidTabNavDangerBand(Math.max(0,a-r));window.scrollTo({top:h,behavior:e?"smooth":"instant"}),s.verifyLargeShiftOnce(n,r,h),i&&"string"==typeof t&&t.startsWith("#")&&(this.suppressHashChange=!0,window.history.replaceState(null,"",window.location.pathname+window.location.search+t))}static verifyLargeShiftOnce(t,e,i){let s=-1,n=0,a=0;const o=window.setInterval((()=>{a+=1,window.scrollY===s?n+=1:(n=0,s=window.scrollY),(n>=6||a>=60)&&(window.clearInterval(o),window.setTimeout((()=>{const s=t.getBoundingClientRect().top-e;if(s>40){const t=window.scrollY+s;window.scrollTo({top:t,behavior:"instant"})}else s<-40&&(window.location.hash&&window.history.replaceState(null,"",window.location.pathname+window.location.search),window.scrollTo({top:i,behavior:"instant"}))}),250))}),50)}avoidTabNavDangerBand(t){var e;if(!this.tabNav||this.tabNavNaturalTopCache<=0)return t;const i=(null===(e=this.headerBottomDiv)||void 0===e?void 0:e.offsetHeight)||0;if(i<=0)return t;const s=this.tabNavNaturalTopCache-i;if(t>s-i&&t<s){return s+5}return t}static waitForScrollSettle(t){let e=-1,i=0,s=0;const n=window.setInterval((()=>{s+=1,window.scrollY===e?i+=1:(i=0,e=window.scrollY),(i>=6||s>=60)&&(window.clearInterval(n),window.setTimeout(t,200))}),50)}getLiveStickyStackBottom(){let t=0;if(this.header){const e=this.header.getBoundingClientRect();(e.top<=0&&e.bottom>
10||e.top>=0&&e.top<10)&&(t=Math.max(t,e.bottom))}if(this.tabNav&&this.tabNav.classList.contains("cmp-tab-navigation__container--fixed")){const e=this.tabNav.querySelector(".cmp-tab-navigation__desktop-container");e&&(t=Math.max(t,e.getBoundingClientRect().bottom))}return t}init(){let t;"loading"===document.readyState?document.addEventListener("DOMContentLoaded",(()=>{this.updateOffset(),this.handleHashOnLoad()})):(this.updateOffset(),this.handleHashOnLoad()),"complete"!==document.readyState&&window.addEventListener("load",(()=>{if(this.tabNavNaturalTopCache=0,this.updateOffset(),window.location.hash){const{hash:t}=window.location;setTimeout((()=>{this.scrollToTarget(t,!1)}),50)}})),this.interceptAnchorClicks(),window.addEventListener("hashchange",(()=>{this.suppressHashChange?this.suppressHashChange=!1:window.location.hash&&this.scrollToTarget(window.location.hash,!0)})),window.addEventListener("resize",(()=>{clearTimeout(t),t=window.setTimeout((()=>{this.updateOffset(),window.location.hash&&this.scrollToTarget(window.location.hash,!1)}),150)})),this.observeClassChanges()}interceptAnchorClicks(){document.addEventListener("click",(t=>{const e=t.target.closest('a[href*="#"]');if(!e)return;const i=e.getAttribute("href");if(!i)return;if(-1===i.indexOf("#"))return;let s;try{s=new URL(i,window.location.href)}catch(t){return}const{hash:n}=s;if(!n||"#"===n)return;if(!(s.origin===window.location.origin&&s.pathname===window.location.pathname))return;if(e.closest(".cmp-tab-navigation__container"))return;if(e.closest(".cmp-sections-outline__vertical-tab"))return;if(e.closest(".cmp-tab-navigation__container"))return;if(e.closest(".cmp-sections-outline__vertical-tab"))return;if(e.closest(".cmp-glossary"))return;const a=n.substring(1);let o=null;try{o=document.querySelector(n)}catch(t){o=document.getElementById(a)}o&&(t.preventDefault(),this.scrollToTarget(o,!0,!0))}),{capture:!0})}observeClassChanges(){const t=new MutationObserver((t=>{t.forEach((t=>{if("attributes"===t.type&&"class"===t.attributeName){t.target}})),this.updateOffset()})),e={attributes:!0,attributeFilter:["class"]};this.ribbon&&t.observe(this.ribbon,e),this.header&&t.observe(this.header,e),this.tabNav&&t.observe(this.tabNav,e)}handleHashOnLoad(){const{hash:t}=window.location;t&&(window.history.replaceState(null,"",window.location.pathname+window.location.search),setTimeout((()=>{this.scrollToTarget(t,!1,!0)}),100))}}window.cudaScrollOffsetCalculator||(window.cudaScrollOffsetCalculator=new s);const n=window.cudaScrollOffsetCalculator}}]);

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.