(()=>{var e={793:()=>{document.addEventListener("DOMContentLoaded",(function(){if(document.querySelector(".uicore-sticky")||document.querySelector(".uicore-will-be-sticky")){var e=function(){var e=window.matchMedia("(max-width: 1025px)").matches,t=window.scrollY||window.pageYOffset,i=document.querySelector(".uicore-top-bar"),n=i?i.offsetHeight:null,r=120;document.querySelector(".uicore-transparent .ui-header-row1")?r=19:document.querySelector(".ui-header-row1")&&(r=400),null==n&&(n=e?25:r),t>n?setTimeout((function(){document.querySelectorAll(".uicore-navbar").forEach((function(e){e.classList.add("uicore-scrolled")}))}),10):document.querySelectorAll(".uicore-navbar").forEach((function(e){e.classList.remove("uicore-scrolled")})),t>o&&o>0&&t>n-.85*n?document.querySelectorAll(".ui-smart-sticky").forEach((function(e){e.classList.add("ui-hide")})):document.querySelectorAll(".ui-smart-sticky").forEach((function(e){e.classList.remove("ui-hide")})),t+window.innerHeight>document.documentElement.scrollHeight-50&&document.querySelectorAll(".ui-smart-sticky").forEach((function(e){e.classList.remove("ui-hide")})),o=t},o=0;e();var t=(i=e,n=500,function(){var e=this,o=arguments;clearTimeout(r),r=setTimeout((function(){r=null,i.apply(e,o)}),n)});window.addEventListener("scroll",e),document.body.addEventListener("touchmove",t)}var i,n,r})),-1!=navigator.appVersion.indexOf("Win")&&document.body.classList.add("win"),document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".uicore-search-btn").forEach((function(e){e.addEventListener("click",(function(){document.body.classList.add("uicore-search-active");var e=document.querySelector(".uicore-search .search-field");e&&e.focus()}))})),document.querySelectorAll(".uicore-search .uicore-close").forEach((function(e){e.addEventListener("click",(function(){document.body.classList.remove("uicore-search-active")}))})),document.addEventListener("keydown",(function(e){27===e.keyCode&&document.body.classList.remove("uicore-search-active")})),document.querySelectorAll(".uicore-h-classic .menu-item-has-children:not(.menu-item-has-megamenu.custom-width)").forEach((function(e){e.addEventListener("mouseenter",(function(o){if(e.querySelector("ul")){var t=e.querySelector(".sub-menu");if(!t)return;t.getBoundingClientRect().left+window.scrollX+t.offsetWidth>document.body.offsetWidth&&e.classList.add("uicore-edge")}})),e.addEventListener("mouseleave",(function(o){e.classList.remove("uicore-edge")}))}));var e=document.getElementById("uicore-back-to-top");e&&(window.addEventListener("scroll",(function(){window.scrollY>300?e.classList.add("uicore-visible"):e.classList.remove("uicore-visible")})),e.addEventListener("click",(function(e){e.preventDefault(),window.scrollTo({top:0,behavior:"smooth"})})))})),document.addEventListener("DOMContentLoaded",(function(){if(document.querySelector(".uicore-progress-bar")){var e,o,t=function(){var e=document.body.scrollHeight-window.innerHeight,o=document.querySelector(".uicore-post-content article");return o&&(e=o.offsetHeight+o.getBoundingClientRect().top+window.scrollY-window.innerHeight),e},i=document.querySelector(".uicore-progress-bar"),n=t(),r=function(){return e=window.scrollY||window.pageYOffset,(o=e/n*100)>100&&(o=100),o+="%"},c=function(){i&&(i.style.width=r())};window.addEventListener("scroll",c),window.addEventListener("resize",(function(){n=t(),c()}))}})),document.addEventListener("DOMContentLoaded",(function(){var e=document.querySelectorAll(".menu-item-has-megamenu.custom-width"),o=function(e){var o=window.matchMedia("(max-width: 1025px)").matches,t=e.querySelector(".uicore-megamenu");if(t&&(t.style.left="auto"),!o&&t){t.style.left="0px";var i=t.offsetWidth,n={left:t.getBoundingClientRect().left+window.scrollX},r=window.innerWidth;if(!i||!n)return;if(n.left+i>=r){var c=n.left+i-r;t.style.left=-c-0+"px"}}};e.forEach((function(e){e.addEventListener("mouseenter",(function(t){o(e)})),e.addEventListener("mouseleave",(function(t){o(e)})),o(e),e.classList.add("with-offsets")}))}))},3895:()=>{document.addEventListener("DOMContentLoaded",(function(){var e=window.matchMedia("(max-width: "+window.uicore_frontend.mobile_br+"px)").matches;function o(e,o,t){document.querySelectorAll(e).forEach((function(e){e.addEventListener(o,t)}))}function t(e,o,t){document.querySelectorAll(e).forEach((function(e){e.removeEventListener(o,t)}))}function i(e,o,t){e.style.transition="opacity "+o+"ms",e.style.opacity=t}function n(){var i,n;t(".uicore-mobile-menu-wrapper .menu-item-has-children > a","click",c),t(".uicore-mobile-menu-wrapper .uicore-menu-container .sub-menu .back > a","click",u),t(".uicore-mobile-menu-wrapper .menu-item-has-children > a:not(.ui-custom-tap)","click",r),t(".uicore-mobile-menu-wrapper li:not(.menu-item-has-children):not(.back) > a","click",q),t(".uicore-mobile-menu-wrapper .uicore-extra a","click",q),t(".uicore-mobile-menu-wrapper.uicore-ham-classic .menu-item-has-children","mouseenter",a),t(".uicore-mobile-menu-wrapper.uicore-ham-classic .menu-item-has-children","mouseleave",l),t(".uicore-mobile-menu-wrapper.uicore-ham-center .menu-item-has-children a, .uicore-mobile-menu-wrapper.uicore-ham-creative .menu-item-has-children a","click",s),e?document.body.classList.contains("ui-a-dsmm-slide")?(!function(){if(!window.uicoreBackLinks){for(var e=document.querySelectorAll(".menu-item-has-children"),o=0;o<e.length;o++){var t=uicore_frontend.back;t||(t=e[o].children[0].innerText);var i=e[o],n=document.createElement("a");n.href="#",n.textContent=t;var r=document.createElement("li");r.className="menu-item back",r.appendChild(n),i.children[1]&&i.children[1].insertBefore(r,i.children[1].firstChild)}window.uicoreBackLinks=!0}}(),o(".uicore-mobile-menu-wrapper .menu-item-has-children > a:not(.ui-custom-tap)","click",c),o(".uicore-mobile-menu-wrapper .uicore-menu-container .sub-menu .back > a","click",u)):o(".uicore-mobile-menu-wrapper .menu-item-has-children > a:not(.ui-custom-tap)","click",r):(o(".uicore-mobile-menu-wrapper.uicore-ham-classic .menu-item-has-children","mouseenter",a),o(".uicore-mobile-menu-wrapper.uicore-ham-classic .menu-item-has-children","mouseleave",l),o(".uicore-mobile-menu-wrapper.uicore-ham-center .menu-item-has-children > a, .uicore-mobile-menu-wrapper.uicore-ham-creative .menu-item-has-children > a","click",s),o(".uicore-mobile-menu-wrapper.uicore-ham-center .menu-item-has-children > a, .uicore-mobile-menu-wrapper.uicore-ham-creative .menu-item-has-children > a","click",m),document.querySelector(".uicore-menu-focus")&&(i=document.querySelectorAll(".menu-item"),n=document.querySelectorAll(".sub-menu, .uicore-megamenu"),i.forEach((function(e){e.addEventListener("mouseenter",f),e.addEventListener("mouseleave",h)})),n.forEach((function(e){e.addEventListener("mouseleave",(function(e){e.relatedTarget&&this.contains(e.relatedTarget)||(d.clear(),y())}))})))),o(".uicore-mobile-menu-wrapper li:not(.menu-item-has-children):not(.back) > a","click",q),o(".uicore-mobile-menu-wrapper .uicore-extra a","click",q)}function r(e){if(e.preventDefault(),window.closeOtherSubMenus){var o=this.parentElement;Array.from(o.parentElement.children).filter((function(e){return e!==o})).forEach((function(e){e.classList.remove("ui-expanded");var o=e.querySelector(".sub-menu");o&&(o.style.display="none")}))}var t=this.parentElement.querySelector(".sub-menu");t&&("block"===t.style.display?t.style.display="none":t.style.display="block"),this.classList.toggle("ui-expanded"),Array.from(this.parentElement.children).forEach((function(e){e!==this&&e.classList.toggle("uicore-active")}),this),"function"==typeof window.uicoreBeforeMobileMenuShow&&window.uicoreBeforeMobileMenuShow(),g()}function c(e){e.preventDefault();var o="";document.querySelectorAll(".uicore-mobile-menu-wrapper .uicore-menu").forEach((function(e){e.classList.add("uicore-animating")})),Array.from(this.parentElement.children).forEach((function(e){e!==this&&e.classList.add("uicore-active")}),this),"function"==typeof window.uicoreBeforeMobileMenuShow&&window.uicoreBeforeMobileMenuShow();var t=document.querySelector(".uicore-mobile-menu-wrapper .uicore-menu-container .uicore-menu"),i=t?t.style.left:"";"0"==i||"0%"==i||""==i?o="-100%":(i=i.replace("-","").replace("%",""),o="-"+(parseInt(i)+100)+"%"),"1"===uicore_frontend.rtl&&(o=o.replace("-","+")),"function"==typeof window.uicoreBeforeMobileMenuShow&&window.uicoreBeforeMobileMenuShow(),setTimeout((function(){t&&(t.style.transition="left 150ms",t.style.left=o,setTimeout((function(){g(),t.classList.remove("uicore-animating")}),150))}),100)}function u(e){e.preventDefault();var o="";document.querySelectorAll(".uicore-mobile-menu-wrapper .uicore-menu-container .uicore-menu").forEach((function(e){e.classList.add("uicore-animating")}));var t=document.querySelector(".uicore-mobile-menu-wrapper .uicore-menu-container .uicore-menu"),i=t?t.style.left:"";"-100%"==i||"0%"==i||""==i||"+100%"==i||"100%"==i?o="0%":(i=i.replace("-","").replace("%",""),o="-"+(parseInt(i)-100)+"%"),"1"===uicore_frontend.rtl&&(o=o.replace("-","+"));var n=this;setTimeout((function(){var e=n.parentElement;e&&e.parentElement&&e.parentElement.classList.remove("uicore-active"),"function"==typeof window.uicoreBeforeMobileMenuShow&&window.uicoreBeforeMobileMenuShow()}),300),setTimeout((function(){t&&(t.style.transition="left 150ms",t.style.left=o,setTimeout((function(){document.querySelectorAll(".uicore-mobile-menu-wrapper .uicore-menu .sub-menu:not(.uicore-active) li").forEach((function(e){e.classList.remove("uicore-visible")})),g(),t.classList.remove("uicore-animating")}),150))}),100)}function a(e){"function"==typeof window.uicoreBeforeMobileMenuShow&&window.uicoreBeforeMobileMenuShow();var o=this.querySelector(".sub-menu");o&&o.classList.add("uicore-active"),g()}function l(e){var o=this.querySelectorAll(".sub-menu");o.length&&o[o.length-1].classList.remove("uicore-active"),this.querySelectorAll("li").forEach((function(e){e.classList.remove("uicore-visible")})),"function"==typeof window.uicoreBeforeMobileMenuShow&&window.uicoreBeforeMobileMenuShow()}function s(e){var o=this.parentElement,t=o.querySelector(".sub-menu");t&&(t.classList.toggle("uicore-active"),"block"===t.style.display?t.style.display="none":t.style.display="block",t.classList.contains("uicore-active")?g():o.querySelectorAll("li").forEach((function(e){e.classList.remove("uicore-visible")})))}function m(o){o.preventDefault();var t=this.getAttribute("href");/^#.+$/.test(t)&&document.body.classList.contains("uicore-overflow-hidden")&&(document.querySelectorAll(".uicore-mobile-menu-overflow").forEach((function(e){e.classList.remove("uicore-overflow-hidden")})),document.body.classList.remove("uicore-overflow-hidden"),document.body.classList.remove("uicore-mobile-nav-show"),e?document.querySelector(".uicore-animate-fade")?document.querySelectorAll(".uicore-navigation-wrapper").forEach((function(e){e.style.transition="opacity 100ms"})):document.querySelector(".uicore-animate-slide-on-top")?document.querySelectorAll(".uicore-navigation-wrapper").forEach((function(e){e.style.transition="transform 400ms"})):document.querySelector(".uicore-animate-expand")?document.querySelectorAll(".uicore-navigation-wrapper").forEach((function(e){e.style.transition="transform 400ms, max-height 400ms, opacity 200ms",e.style.opacity=0})):document.querySelectorAll(".uicore-navigation-wrapper").forEach((function(e){e.style.transition="all 400ms, opacity 200ms",e.style.opacity=0})):document.querySelectorAll(".uicore-navigation-wrapper").forEach((function(e){e.style.transition="opacity 100ms",e.style.opacity=0})),window.location.href=t)}n(),window.onresize=n,document.querySelectorAll(".uicore-toggle").forEach((function(e){e.addEventListener("click",q)}));var d=new Set;function f(){d.add(this);for(var e=this.parentElement.closest(".menu-item");e;)d.add(e),e=e.parentElement.closest(".menu-item");y()}function h(e){var o=e.relatedTarget,t=this.querySelector(".sub-menu, .uicore-megamenu");t&&t.contains(o)||(d.delete(this),y())}function y(){document.querySelectorAll(".menu-item").forEach((function(e){if(d.has(e))i(e,300,1);else{var o=Array.from(d).some((function(o){return o.parentElement===e.parentElement}));i(e,300,o?.4:1)}}))}var p=document.querySelectorAll(".uicore-ham-reveal"),w=document.querySelector(".uicore-mobile-menu-wrapper .uicore-menu-container .uicore-menu"),v=document.querySelector(".uicore-navigation-wrapper"),b=document.querySelectorAll(".uicore-mobile-menu-overflow"),E=document.querySelectorAll(".uicore-mobile-menu-wrapper .uicore-menu-container"),S=document.querySelectorAll(".uicore-mobile-menu-wrapper li"),L=document.querySelectorAll(".uicore-ham-reveal");function q(o){if(!window.uicoreAnimation){window.uicoreAnimation=!0;var t=this.getAttribute("href");if(t){var i=t.split("#");if(i[0]&&i[0]!=window.location.pathname&&i[0]!=window.location.href.split("#")[0])return}if(w.classList.toggle("uicore-active"),document.body.classList.contains("uicore-overflow-hidden"))"function"==typeof window.uicoreBeforeMobileMenuHide&&window.uicoreBeforeMobileMenuHide(),b.forEach((function(e){e.classList.remove("uicore-overflow-hidden")})),document.body.classList.remove("uicore-overflow-hidden"),document.documentElement.classList.remove("uicore-overflow-hidden"),document.body.classList.remove("uicore-mobile-nav-show"),e?document.querySelector(".uicore-animate-fade")?requestAnimationFrame((function(){v.style.transition="opacity 100ms",v.style.opacity=0})):document.querySelector(".uicore-animate-slide-on-top")?requestAnimationFrame((function(){v.style.transition="transform 400ms"})):document.querySelector(".uicore-animate-expand")?requestAnimationFrame((function(){v.style.transition="transform 400ms, max-height 400ms, opacity 200ms",v.style.opacity=0})):requestAnimationFrame((function(){v.style.transition="all 400ms, opacity 200ms",v.style.opacity=0})):requestAnimationFrame((function(){v.style.transition="opacity 100ms",v.style.opacity=0})),S.forEach((function(e){e.classList.remove("uicore-visible")})),L.forEach((function(e){e.style.animationName="none"}));else{"function"==typeof window.uicoreBeforeMobileMenuShow&&window.uicoreBeforeMobileMenuShow();var n,r=0;p.length?(e||(p.forEach((function(e){requestAnimationFrame((function(){e.style.animationName="uiCoreAnimationsHamReveal"}))})),r=100),setTimeout((function(){requestAnimationFrame((function(){v.style.opacity=1}))}),0+r)):(r=10,n=document.querySelector(".uicore-animate-slide-on-top")?"transform 400ms cubic-bezier(0.52, 0, 0.32, 1.01), opacity 50ms":document.querySelector(".uicore-animate-expand")?"transform 400ms cubic-bezier(0.52, 0, 0.32, 1.01), max-height 400ms, opacity 50ms":"all 400ms cubic-bezier(0.52, 0, 0.32, 1.01)",setTimeout((function(){requestAnimationFrame((function(){v.style.transition=n,v.style.opacity=1}))}),r)),document.body.classList.add("uicore-overflow-hidden"),document.documentElement.classList.add("uicore-overflow-hidden"),document.body.classList.add("uicore-mobile-nav-show"),setTimeout((function(){b.forEach((function(e){e.classList.add("uicore-overflow-hidden")})),E.forEach((function(e){requestAnimationFrame((function(){e.style.left="0%"}))})),g()}),r)}this.classList.toggle("collapsed"),setTimeout((function(){window.uicoreAnimation=!1}),50)}}function g(){var e=document.querySelectorAll(".sub-menu.uicore-active > li:not(.uicore-visible), ul.uicore-active > li:not(.uicore-visible)");e.length&&e.forEach((function(e,o){setTimeout((function(){e.classList.add("uicore-visible"),e.classList.contains("menu-item-has-children")&&function(e){var o=e||document.querySelectorAll(".uicore-mobile-menu-wrapper .uicore-menu-container .menu-item-has-children");(o=o instanceof NodeList?Array.from(o):Array.isArray(o)?o:[o]).forEach((function(e){var o=e.querySelector(":scope > a"),t=o?o.getAttribute("href"):null;if(e.querySelectorAll(".ui-custom-tap").forEach((function(e){e.remove()})),t&&"#"!==t){var i=document.createElement("a");i.href=t,i.textContent="",i.className="ui-custom-tap",i.style.minHeight=e.offsetHeight+"px",i.style.transform="translate3d(0,-"+e.offsetHeight+"px,0)",o&&o.nextSibling?e.insertBefore(i,o.nextSibling):o&&e.appendChild(i)}}))}(e)}),50*o)}))}}))},7952:()=>{document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".menu-item-object-uicore-tb").forEach((function(e){["mouseenter","mouseleave"].forEach((function(o){e.addEventListener(o,(function(){e.querySelectorAll(".elementor-element").forEach((function(e){elementorFrontend.elementsHandler.runReadyTrigger(e)}))}))}))}))}))}},o={};function t(i){var n=o[i];if(void 0!==n)return n.exports;var r=o[i]={exports:{}};return e[i](r,r.exports,t),r.exports}t.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return t.d(o,{a:o}),o},t.d=(e,o)=>{for(var i in o)t.o(o,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:o[i]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{"use strict";t(793),t(3895),t(7952)})()})();
(function(){'use strict'
let t,e;const n=new Set,o=document.createElement("link"),i=o.relList&&o.relList.supports&&o.relList.supports("prefetch")&&window.IntersectionObserver&&"isIntersecting"in IntersectionObserverEntry.prototype,s="instantAllowQueryString"in document.body.dataset,a="instantAllowExternalLinks"in document.body.dataset,r="instantWhitelist"in document.body.dataset,c="instantMousedownShortcut"in document.body.dataset,d=1111;let l=65,u=!1,f=!1,m=!1;if("instantIntensity"in document.body.dataset){const t=document.body.dataset.instantIntensity;if("mousedown"==t.substr(0,"mousedown".length))u=!0,"mousedown-only"==t&&(f=!0);else if("viewport"==t.substr(0,"viewport".length))navigator.connection&&(navigator.connection.saveData||navigator.connection.effectiveType&&navigator.connection.effectiveType.includes("2g"))||("viewport"==t?document.documentElement.clientWidth*document.documentElement.clientHeight<45e4&&(m=!0):"viewport-all"==t&&(m=!0));else{const e=parseInt(t);isNaN(e)||(l=e)}}if(i){const n={capture:!0,passive:!0};if(f||document.addEventListener("touchstart",function(t){e=performance.now();const n=t.target.closest("a");if(!h(n))return;v(n.href)},n),u?c||document.addEventListener("mousedown",function(t){const e=t.target.closest("a");if(!h(e))return;v(e.href)},n):document.addEventListener("mouseover",function(n){if(performance.now()-e<d)return;const o=n.target.closest("a");if(!h(o))return;o.addEventListener("mouseout",p,{passive:!0}),t=setTimeout(()=>{v(o.href),t=void 0},l)},n),c&&document.addEventListener("mousedown",function(t){if(performance.now()-e<d)return;const n=t.target.closest("a");if(t.which>1||t.metaKey||t.ctrlKey)return;if(!n)return;n.addEventListener("click",function(t){1337!=t.detail&&t.preventDefault()},{capture:!0,passive:!1,once:!0});const o=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1,detail:1337});n.dispatchEvent(o)},n),m){let t;(t=window.requestIdleCallback?t=>{requestIdleCallback(t,{timeout:1500})}:t=>{t()})(()=>{const t=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){const n=e.target;t.unobserve(n),v(n.href)}})});document.querySelectorAll("a").forEach(e=>{h(e)&&t.observe(e)})})}}function p(e){e.relatedTarget&&e.target.closest("a")==e.relatedTarget.closest("a")||t&&(clearTimeout(t),t=void 0)}function h(t){if(t&&t.href&&(!r||"instant"in t.dataset)&&(a||t.origin==location.origin||"instant"in t.dataset)&&["http:","https:"].includes(t.protocol)&&("http:"!=t.protocol||"https:"!=location.protocol)&&(s||!t.search||"instant"in t.dataset)&&!(t.hash&&t.pathname+t.search==location.pathname+location.search||"noInstant"in t.dataset))return!0}function v(t){if(n.has(t))return;const e=document.createElement("link");e.rel="prefetch",e.href=t,document.head.appendChild(e),n.add(t)}})();document.addEventListener('DOMContentLoaded',()=>{const elementsToAnimate=document.querySelectorAll('[data-ui-animation]');const observer=new IntersectionObserver((entries,observer)=>{entries.forEach(entry=>{if(!entry.isIntersecting)return;const el=entry.target;const animationName=el.getAttribute("data-ui-animation");const animationSpeed=el.getAttribute("data-ui-duration");if(animationSpeed==="fast"){el.classList.add("animated","animated-fast")}else if(animationSpeed==="slow"){el.classList.add("animated","animated-slow")}else{el.classList.add("animated")}
if(animationName){el.classList.add(...animationName.split(" "))}
const onStart=()=>{el.classList.remove("uicore-animate-hide");el.removeEventListener("animationstart",onStart)};el.addEventListener("animationstart",onStart,{once:!0});requestAnimationFrame(()=>{if(getComputedStyle(el).animationDelay==="0s"){el.classList.remove("uicore-animate-hide")}});observer.unobserve(el)})},{rootMargin:'10px',threshold:0});elementsToAnimate.forEach(element=>{observer.observe(element)})});document.body.classList.add('uicore-menu-focus');document.addEventListener('DOMContentLoaded',function(){const mainHeader=document.querySelector('.uicore-header-wrapper');const mainHeaderWrp=document.querySelector('#wrapper-navbar');const tbHeader=document.querySelector('#uicore-tb-header');const pageTitleSticky=document.querySelector('.uicore-tb-pagetitle-sticky');const topBar=document.querySelector('.uicore-top-bar');const wpBar=document.querySelector('#wpadminbar');const pillStyle='true';const isCenterCreative='false';const h=(el)=>el?el.offsetHeight:0;const wpBarH=h(wpBar);const topBarH=h(topBar);const isTopBarSticky=topBar&&window.getComputedStyle(topBar).position==='sticky';const isTbHeaderSticky=tbHeader&&tbHeader.style.position==='sticky';const stickyNavbar=document.querySelector('.uicore-navbar.uicore-sticky');if(pageTitleSticky){const updatePageTitleTop=()=>{if(mainHeaderWrp&&mainHeaderWrp.classList.contains('uicore-sticky')){pageTitleSticky.style.setProperty('top','0px','important');return}
let offset=wpBarH;if(isTbHeaderSticky)offset+=h(tbHeader);if(stickyNavbar)offset+=h(mainHeader);if(isTopBarSticky)offset+=topBarH;pageTitleSticky.style.setProperty('top',offset+'px','important')};updatePageTitleTop();window.addEventListener('scroll',updatePageTitleTop,{passive:!0})}
if(!tbHeader)return;const isDefaultKept=tbHeader.classList.contains('uicore-tb-header-with-default');const isSwitched=tbHeader.classList.contains('uicore-tb-switched');if(!isDefaultKept)return;if(isSwitched){let mainH;if(pillStyle!=='false'){mainH=h(mainHeaderWrp);if(['true','compact'].includes(pillStyle)){const pillStyles=window.getComputedStyle(mainHeaderWrp);mainH+=parseFloat(pillStyles.marginBottom)+parseFloat(pillStyles.borderBottomWidth)}}else{mainH=h(mainHeader)}
const initialTop=wpBarH+topBarH+mainH;if(isTbHeaderSticky){if(stickyNavbar)stickyNavbar.style.setProperty('z-index','100','important');tbHeader.style.setProperty('top',initialTop+'px','important');const updateTbHeaderTop=()=>{const scrollY=window.scrollY||window.pageYOffset;let newTop;if(!stickyNavbar){const minTop=wpBarH+(isTopBarSticky?topBarH:0);newTop=Math.max(initialTop-scrollY,minTop)}else if(isCenterCreative){if(scrollY===0){newTop=initialTop}else if(stickyNavbar.classList.contains('uicore-scrolled')){const mainHeaderTop=parseInt(window.getComputedStyle(mainHeader).top)||0;newTop=wpBarH+(isTopBarSticky?topBarH:Math.max(topBarH-scrollY,0))+h(mainHeader)+mainHeaderTop}else{return}}else{const topBarContrib=isTopBarSticky?topBarH:Math.max(topBarH-scrollY,0);newTop=wpBarH+topBarContrib+h(mainHeader)}
tbHeader.style.setProperty('top',newTop+'px','important')};window.addEventListener('scroll',updateTbHeaderTop,{passive:!0})}else{Object.assign(tbHeader.style,{top:(topBarH+mainH)+'px',position:'absolute',width:'100%',zIndex:'10'})}}else{const tbH=h(tbHeader);if(isTbHeaderSticky){tbHeader.style.setProperty('top',wpBarH+topBarH+'px','important');if(!isTopBarSticky&&topBarH>0){window.addEventListener('scroll',function(){const scrollY=window.scrollY||window.pageYOffset;const tbTop=wpBarH+Math.max(topBarH-scrollY,0);tbHeader.style.setProperty('top',tbTop+'px','important')},{passive:!0})}}
if(stickyNavbar){const initialNavbarTop=wpBarH+topBarH+tbH;stickyNavbar.style.setProperty('top',initialNavbarTop+'px','important');if(!isTbHeaderSticky){const minTop=wpBarH+(isTopBarSticky?topBarH:0);window.addEventListener('scroll',function(){const scrollY=window.scrollY||window.pageYOffset;const topValue=Math.max(initialNavbarTop-scrollY,minTop);stickyNavbar.style.setProperty('top',topValue+'px','important')},{passive:!0})}else if(!isTopBarSticky&&topBarH>0){window.addEventListener('scroll',function(){const scrollY=window.scrollY||window.pageYOffset;const topValue=wpBarH+Math.max(topBarH-scrollY,0)+tbH;stickyNavbar.style.setProperty('top',topValue+'px','important')},{passive:!0})}}}});