1(self.webpackChunkaem_module_ui_frontend=self.webpackChunkaem_module_ui_frontend||[]).push([[168],{168:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return d}});var s=i(866),a=i(755),o=i.n(a),n=i(709),h=i(666);class c{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=document.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,a,o;let n=0;const h=(null===(i=this.ribbon)||void 0===i?void 0:i.offsetHeight)||0,c=(null===(s=this.headerTopDiv)||void 0===s?void 0:s.offsetHeight)||0,l=(null===(a=this.headerBottomDiv)||void 0===a?void 0:a.offsetHeight)||0,r=(null===(o=this.header)||void 0===o?void 0:o.offsetHeight)||0,d=window.scrollY,v=window.innerWidth<1200;let u;if(u=void 0!==e?"up"===e:t<d,this.ribbon&&t<=h&&(n+=h),this.header)if(v)n+=c;else if(u)n+=r;else{n+=t>=h+c?l:r}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,a=this.tabNav.getBoundingClientRect().top+d;e||(this.tabNavNaturalTopCache=a);const o=e&&this.tabNavNaturalTopCache>0?this.tabNavNaturalTopCache:a;let h;h=v?c:u?r:l;const _=o-h,m=t-n>=_;if(t-n-s>=_){n+=s;!e&&!u&&!v&&(n+=s)}else m&&(n+=s)}return n+=10,n}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 s="string"==typeof t?document.querySelector(t):t;if(!s)return;const a=s.getBoundingClientRect().top+window.pageYOffset,o=a<window.scrollY?"up":"down",n=this.calculateOffsetForScrollPosition(a,o),h=this.avoidTabNavDangerBand(Math.max(0,a-n));window.scrollTo({top:h,behavior:e?"smooth":"instant"}),c.verifyLargeShiftOnce(s,n,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,a=0,o=0;const n=window.setInterval((()=>{o+=1,window.scrollY===s?a+=1:(a=0,s=window.scrollY),(a>=6||o>=60)&&(window.clearInterval(n),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 a=window.setInterval((()=>{s+=1,window.scrollY===e?i+=1:(i=0,e=window.scrollY),(i>=6||s>=60)&&(window.clearInterval(a),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:a}=s;if(!a||"#"===a)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 o=a.substring(1);let n=null;try{n=document.querySelector(a)}catch(t){n=document.getElementById(o)}n&&(t.preventDefault(),this.scrollToTarget(n,!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 c);const l=window.cudaScrollOffsetCalculator;var r=i(933);class d extends s.Z{constructor(t){super(t),this.SECTION_CONTAINER_SELECTOR=".cmp-tab-navigation__section",this.S_NAV_CONTAINER=".cmp-tab-navigation__container",this.S_LIST_ITEM=".js-cmp-tab-navigation__item",this.S_LIST_ITEM_DESKTOP=".cmp-tab-navigation__desktop-item",this.S_NAV_DESKTOP_CONTAINER=".cmp-tab-navigation__desktop-container",this.S_HEADER=".cmp-header-v2",this.C_LIST_ITEM_ACTIVE="cmp-tab-navigation__item--active",this.HEADER_OUTER_DIV=".header-v2",this.HEADER_REDUCED_DIV_FOR_DESKTOP=".cmp-header-v2__content",this.HEADER_STICKY_DIV_MOBILE=".cmp-header-v2__site",this.$WINDOW=o()(window),this.pathnamewithslash="",this.hrefwithslash="",this.lastScrollTop=0,this.onScroll=()=>{this.scrollHandler()},this.clickTimeout=null,this.scrollTimeout=null,this.$header=o()(this.S_HEADER),this.$navContainer=o()(this.S_NAV_CONTAINER,this.$cmp),this.$listItems=o()(this.S_LIST_ITEM_DESKTOP,this.$cmp),this.$tabNav=o()(this.S_NAV_DESKTOP_CONTAINER,this.$cmp),this.tabNavHeight=this.$tabNav.outerHeight()||0,this.$headerBottomDivDesktop=o()(this.HEADER_REDUCED_DIV_FOR_DESKTOP),this.$headerStickyDivMobile=o()(this.HEADER_STICKY_DIV_MOBILE),this.$headerOuterDiv=o()(this.HEADER_OUTER_DIV),this.headerHeight=this.$headerOuterDiv.outerHeight()||0,this.$contentContainer=o()(this.SECTION_CONTAINER_SELECTOR,this.$cmp),this.isDesktop=["md","lg","xl"].includes((0,h.Z)()),this.allowScrollListener=!0,this.hasScrolledPassHero=!1,this.firstCall=!0,this.isSectionTabnav=o()(this.$elements.navContainer).hasClass(d.C_NAV_CONTAINER_SECTIONS),this.activeNavIndex=0,this.prevActiveNavIndex=0,this.lastScrollTop=window.scrollY,this.EventBus=(0,n.Z)(),this.bindScrollEvent(),this.isSectionTabnav?this.selectActiveSection("auto"):this.selectActiveTab(),(0,r.default)(this.$cmp),window.addEventListener("resize",(()=>this.resizeEvents()),{passive:!0})}bindScrollEvent(){this.isSectionTabnav&&(window.addEventListener("scroll",this.onScroll),this.sectionNavClickHandler())}resetFixedElementsHeight(t){var e,i,s;
1this.tabNavHeight=this.$tabNav.outerHeight()||0,this.isDesktop=["md","lg","xl"].includes((0,h.Z)()),"down"===t?this.headerHeight=(null===(e=this.$headerBottomDivDesktop)||void 0===e?void 0:e.outerHeight())||0:"up"===t?this.headerHeight=(null===(i=this.$headerOuterDiv)||void 0===i?void 0:i.outerHeight())||0:t||(this.headerHeight=(null===(s=this.$headerOuterDiv)||void 0===s?void 0:s.outerHeight())||0),this.isDesktop||(this.headerHeight=this.$headerStickyDivMobile.outerHeight()||0)}sectionNavClickHandler(){o()(this.S_LIST_ITEM,this.$cmp).each(((t,e)=>{o()(e).on("click",(i=>{var s,a;i.preventDefault(),this.clickTimeout&&clearTimeout(this.clickTimeout),this.prevActiveNavIndex!==this.activeNavIndex&&(this.prevActiveNavIndex=this.activeNavIndex),this.activeNavIndex=t,this.allowScrollListener=!1;const n=(null===(s=o()(e).attr("href"))||void 0===s?void 0:s.toString())||"",h=o()(n);if(0===h.length)return void(this.allowScrollListener=!0);const c=(null===(a=h.offset())||void 0===a?void 0:a.top)||0,l=c<window.scrollY;let r=0;const d=this.$headerBottomDivDesktop.outerHeight()||0,v=this.$headerOuterDiv.outerHeight()||0;r+=l?v:d,r+=this.$tabNav.outerHeight()||0;const u=c-r;window.scrollTo({top:u,behavior:"smooth"}),this.selectActiveSection("manual",t),this.clickTimeout=setTimeout((()=>{this.allowScrollListener=!0}),1e3)}))}))}updateActiveTabBasedOnScroll(){const{scrollY:t}=window;this.lastScrollTop;this.$contentContainer=o()(this.SECTION_CONTAINER_SELECTOR,this.$cmp);const e=l.calculateOffset();let i=!0;this.$contentContainer.each(((s,a)=>{const o=a.getBoundingClientRect().top,n=o+a.getBoundingClientRect().height,h=Math.ceil(window.pageYOffset+o-e),c=Math.ceil(window.pageYOffset+n-e),l=t<=c,r=h<=t;this.lastScrollTop=window.scrollY,l&&r&&!0===i&&this.allowScrollListener&&(this.prevActiveNavIndex=this.activeNavIndex,this.activeNavIndex=s,this.selectActiveSection("manual",s),i=!1)}))}scrollHandler(){this.debugScrollPosition(),this.updateActiveTabBasedOnScroll()}debugScrollPosition(){var t;const e=(null===(t=this.$tabNav.offset())||void 0===t?void 0:t.top)||0,{scrollY:i}=window;this.hasScrolledPassHero=i>=e}resizeEvents(){this.resetFixedElementsHeight(),this.updateActiveTabBasedOnScroll()}selectActiveSection(t,e){const{hash:i}=window.location,s=this.$listItems;let a=!1;this.isSectionTabnav&&(s.removeClass(this.C_LIST_ITEM_ACTIVE),s.each(((s,n)=>{const h=o()(n).attr("href");"auto"===t?h===i?(a=!0,this.prevActiveNavIndex!==this.activeNavIndex&&(this.prevActiveNavIndex=this.activeNavIndex),this.activeNavIndex=s,o()(n).addClass(this.C_LIST_ITEM_ACTIVE)):o()(n).removeClass(this.C_LIST_ITEM_ACTIVE):("clearInactive"===t||"manual"===t&&void 0!==e)&&(s!==this.activeNavIndex?(o()(n).removeClass(this.C_LIST_ITEM_ACTIVE),o()(n).children().first().css("border-bottom","none")):(o()(n).addClass(this.C_LIST_ITEM_ACTIVE),o()(n).children().first().css("border-bottom","2px solid #0088ce")))})),"auto"===t&&!1===a&&(this.prevActiveNavIndex!==this.activeNavIndex&&(this.prevActiveNavIndex=this.activeNavIndex),this.activeNavIndex=0,s.removeClass(this.C_LIST_ITEM_ACTIVE),o()(s[0]).addClass(this.C_LIST_ITEM_ACTIVE)))}selectActiveTab(){const{pathname:t,hash:e,href:i}=window.location;this.pathnamewithslash=t,this.hrefwithslash=i,"/"!==t.charAt(t.length-1)&&(this.pathnamewithslash=`${t}/`),"/"!==i.charAt(i.length-1)&&(this.hrefwithslash=`${i}/`);const s=o()(`${this.S_LIST_ITEM_DESKTOP}[href$="${this.pathnamewithslash}${e}"]`,this.$cmp);if(s.length>0)s.addClass(this.C_LIST_ITEM_ACTIVE);else{const t=o()(`${this.S_LIST_ITEM}[href="${this.pathnamewithslash}${e}"]`,this.$cmp);if(t.length>0)t.addClass(this.C_LIST_ITEM_ACTIVE);else{const t=o()(`${this.S_LIST_ITEM}[href="${this.hrefwithslash}${e}"]`,this.$cmp);if(t.length>0)t.addClass(this.C_LIST_ITEM_ACTIVE);else{const t=this.pathnamewithslash.split("/"),e=t[t.length-2];let i=!1;const s=this.C_LIST_ITEM_ACTIVE;document.getElementsByClassName("cmp-tab-navigation__list__item");let a=!1;if(o()("a.cmp-tab-navigation__desktop-item").each((function(){o()(this).is(`[href*="${e}"]`)&&!a&&(o()(this).addClass(s),i=!0,a=!0)})),!i){o()(`${this.S_LIST_ITEM_DESKTOP}`,this.$cmp).first().addClass(this.C_LIST_ITEM_ACTIVE)}}}}}}d.HEADER_FULL_HEIGHT=100,d.HEADER_REDUCED_HEIGHT=50,d.C_NAV_CONTAINER_SECTIONS="cmp-tab-navigation__container--sections"}
1,866:function(t,e,i){"use strict";i.d(e,{Z:function(){return s}});class s{constructor(t){var e,i,s;this.$elements={},this.$cmp=t,this.elementName=this.$cmp.dataset.cmpIs?null===(i=null===(e=this.$cmp)||void 0===e?void 0:e.dataset)||void 0===i?void 0:i.cmpIs:"",this.elementDashName=null===(s=this.elementName)||void 0===s?void 0:s.split(/(?=[A-Z])/).join("-").toLowerCase(),this.protect(),this.$elements&&this.cacheElements()}protect(){this.$cmp.removeAttribute("data-cmp-is")}cacheElements(){const t=this.$cmp.querySelectorAll(`[data-cmp-hook-${this.elementDashName}]`);t&&Array.from(t).forEach((t=>{var e,i;const a=`${null===(e=this.elementName)||void 0===e?void 0:e.charAt(0).toUpperCase()}${null===(i=this.elementName)||void 0===i?void 0:i.slice(1)}`;if(t instanceof HTMLElement){const e=t.dataset[`${s.CMP_HOOK}${a}`];e&&(this.$elements[e]=t)}}))}}s.CMP_HOOK="cmpHook"},709:function(t,e){"use strict";e.Z=()=>Array.from(document.body.childNodes).filter((t=>8===t.nodeType&&"event-bus"===t.nodeValue))[0]}}]);
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.